.nav-segmented {
    border: 1px solid #f9fafb;
    border-radius: 0.375rem;
    overflow: hidden;
    display: inline-flex;
}

.nav-segmented .nav-link {
    color: #6b7280;
    background-color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav-segmented .nav-link.active {
    background-color: #182433;
    color: white;
}

.nav-segmented .nav-link:focus {
    box-shadow: none;
}

.modal-95 {
    max-width: 95vw;
}

.modal-35 {
    max-width: 35vw;
}

.custom-stepper {
    background: #f8f9fb;
    padding: 24px 0 10px 0;
}
.stepper-item {
    min-width: 120px;
    text-align: center;
    color: #9ca0a7;
}
.stepper-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #cfd2d6;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500;
    font-size: 1.3rem;
    margin: 0 auto;
    transition: background .2s;
}
.stepper-active .stepper-circle,
.stepper-done .stepper-circle {
    background: #fd7114;
}
.stepper-active .stepper-label {
    font-weight: 600;
    color: #212121;
}
.stepper-done .stepper-label {
    color: #fd7114;
}
.stepper-line {
    height: 2px;
    background: #cfd2d6;
    margin: 0 4px;
    transition: background .2s;
}

/* Loading states */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.loading-overlay-content {
    text-align: center;
    color: #6c757d;
}

/* Button loading animation */
.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 8px;
}

.alert .alert-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #f0f9ff;
    color: #059669;
    border-left: 4px solid #059669;
}

.alert-warning {
    background-color: #fffbeb;
    color: #d97706;
    border-left: 4px solid #d97706;
}

/* Toast container positioning */
.toast-container {
    z-index: 1055;
}

.toast {
    min-width: 300px;
}

/* Month selection buttons */
.btn-select-month.active {
    background-color: #fd7114;
    border-color: #fd7114;
    color: white;
}

.btn-select-month:hover {
    background-color: #e6640e;
    border-color: #e6640e;
    color: white;
}

/* Form enhancements */
.form-control:focus {
    border-color: #fd7114;
    box-shadow: 0 0 0 0.2rem rgba(253, 113, 20, 0.25);
}


/* Live validation styles */
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --%3E%3Cpath fill='%23198754' d='m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4M8.6 5.4 7.2 6.8l1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Button state transitions */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Step transitions */
.step-content {
    transition: opacity 0.3s ease-in-out;
}

.step-content.fade-out {
    opacity: 0;
}

.step-content.fade-in {
    opacity: 1;
}

.card-body.pharmacy-details > .datagrid {
    --tblr-datagrid-item-width: 5rem;
}

/* Extra small screens (default, like col-*) */
.col-1-5 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
}

/* Large screens (like col-lg-*) */
@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

#buying-limit-data > .accordion-body {
    padding: 0;
}

#employees-list-data > .accordion-body {
    padding: 0;
}

.dropdown-buy-limit {
    z-index: 1055 !important;
    position: absolute !important;
    transform: translate(0, 38px) !important;
}

#buying-limit-data .dropdown-menu {
    z-index: 1050;
}

#buying-limit-data .table-responsive,
#buying-limit-data .accordion-body,
#employees-list-data .table-responsive,
#employees-list-data .accordion-body {
    overflow: visible;
    position: relative;
}

.sell-percent, .sell-amount {
    font-size: 24px;
}

.sell-amount-percent {
    font-size: 14px;
}

hr.breaking-line {
    border: none;
    border-top: 1px solid #838383;
    margin: 1rem 0 0;
}

.category-dropdown-menu {
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.category-btn {
    background: #f8f9fa;
    border: none;
    color: #333;
    transition: background 0.2s;
}
.category-btn:hover, .category-btn:focus {
    background: #e2e6ea;
    color: #0056b3;
}
.category-btn-main {
    font-weight: bold;
    background: #e9ecef;
    color: #212529;
    margin-bottom: 8px;
}
.ms-3 {
    margin-left: 1.5rem !important;
}

.h-150px {
    height: 150px !important;
}

.chevron-icon.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.min-h-500 {
    min-height: 500px !important;
}

.min-h-1200 {
    min-height: 500px !important;
}

.max-h-1200 {
    max-height: 1200px !important;
}

.max-h-900 {
    max-height: 900px !important;
}

.h-900 {
    height: 900px !important;
}

.max-h-600 {
    max-height: 600px !important;
}

.h-600 {
    height: 600px !important;
}

.h-700 {
    height: 700px !important;
}

.min-h-700 {
    min-height: 700px !important;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove number input spinners */
input[type=number] {
    -moz-appearance: textfield;
}

.litepicker .container__months .month-item-header .button-previous-month > svg,
.litepicker .container__months .month-item-header .button-next-month > svg
{
    fill: var(--litepickerMonthButton) !important;
}

.col-2-4 {
    width: 20%;
}