.pagination {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #007bff;
}

.page-link:hover {
    background-color: #f8f9fa;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.completed-order{
    border-left: 8px solid #1ABA00;
}

.pending-order{
    border-left: 8px solid #BA0000;
}

.btn-hold, .btn-hold:hover, .btn-hold:active {
    background-color: #BA0000;
    color: #ffffff;
}

.btn-release, .btn-release:hover, .btn-release:active {
    background-color: #1ABA00;
    color: #ffffff;
}

.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pagination-container nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pagination-container .flex-1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.pagination-container p {
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.pagination-container .relative.inline-flex.items-center {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    font-size: 14px;
    color: #007bff; /* Text color */
    background-color: #fff; /* Background color */
    border: 1px solid #ddd; /* Border color */
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination-container .relative.inline-flex.items-center:hover {
    background-color: #007bff; /* Hover background color */
    color: white; /* Hover text color */
}

.pagination-container .relative.inline-flex.items-center[aria-current="page"] {
    background-color: #007bff;
    color: white;
    cursor: default;
}

.pagination-container .relative.inline-flex.items-center[aria-disabled="true"] {
    background-color: #f7f7f7;
    color: #999;
    border-color: #ddd;
    cursor: default;
}

.pagination-container .relative.inline-flex.items-center:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.customer-name-elem {
    margin-left: 60px;
}

.pagination-container .relative.inline-flex.items-center:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination-container svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.nav-link{
    text-transform: capitalize;
}

.login-page-topbar{
    left: 0 !important
}

.btn-small {
    padding: 0.25rem 0.5rem; 
    font-size: 0.75rem; 
    line-height: 1.25;
    border-radius: 0.2rem; 
    display: inline-block; 
    cursor: pointer; 
}


.ft-capitalize{
    text-transform: capitalize;
}

.notes {
    position: absolute;
    right: 12px;
    bottom: 5px;
    font-weight: bold;
    cursor: pointer;
    color: #BA0000;
}

button#notes-close-btn {
    border: 0;
    border-radius: 50%;
}

@media (min-width: 1024.1px) {
.navbar-brand-box {
    display: inline-block !important;
    }
    .full-screen-display{
        display: none;
    }
}

@media (max-width: 767.98px) {
    [data-layout=vertical] .navbar-brand-box {
        display:  inline-block !important;
    }
     .full-screen-display,.checked-font-display{
        display: none;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand-box {
        display: inline-block !important;
    }
}

.nav-link.active {
    background-color: #007bff;
    color: white;
}

div#new-orders {
    display: contents;
}


div#new-orders .item {
    padding-left: 15px;
}

span.checkin {
    display: block;
    padding: 0 15px;
}

span.badge-counter {
    border: 1px solid red;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    position: relative;
}

span.counter-info {
    position: absolute;
    width: 100%;
    left: 9px;
}

 @media (max-width: 768px) {
        .shift-field-set {
            flex-direction: row !important;
        }
        .shift-field-set-container {
            overflow: scroll;
        }
        .form-group {
            width: 100% !important;
            margin-bottom: 15px;
        }
        .form-group button {
            width: 100% !important;
        }
        .schedule-container{
            overflow: scroll;
        }
         .full-screen-display,.checked-font-display{
            display: none;
        }
    }

    @media (min-width: 769px) {
        .shift-field-set-container {
            overflow: scroll;
        }
        .shift-field-set {
            display: flex;
            align-items: center;
        }
        .form-group {
            margin-right: 10px;
        }
        .schedule-container{
            overflow: scroll;
        }
         .full-screen-display{
            display: none;
        }
    }

    #loader-page-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); 
        z-index: 9998; 
        display: none; 
    }

    .spinner-border {
        width: 50px;
        height: 50px;
        border-width: 5px;
        border-color: #f3f3f3 transparent #3498db transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    #loader {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        text-align: center;
        display: none; /* Hidden initially */
    }

    .spinner {
        border: 8px solid #f3f3f3; /* Light grey */
        border-top: 8px solid #3498db; /* Blue */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        margin: auto;
        animation: spin 1s linear infinite; /* Animation for spinning */
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    #loader p {
        font-size: 16px;
        margin-top: 10px;
    }

    .disabled-link {
        pointer-events: none;
        opacity: 0.5;
    }

    .mr-4{
        margin-right: 4rem !important;
    }

    .mr-3{
        margin-right: 3rem !important;
    }

    .mr-1{
        margin-right: 1rem !important;
    }

    .coupon-success {
        color: green !important; 
    }
    .coupon-error {
        color: red !important; 
    }

    .readonly, .readonly:focus  {
        background: lightgrey;
        width: 90%;
    }


    @media screen and (max-width:992px) {
        .extra-info {
            display: block;
            text-align: center;
            margin: 5px 0;
        }
    }
    

    .icon-set td .bi-copy::before {
        content: \F759;
    }

    .layout-width {
        /* box-shadow: 1px 1px 1px #dde1ef; */
    }
   

    p.notes-2.mb-1 {
        margin: -5px 0 0 0;
        font-size: 10px;
        font-weight: 800;
        display: flex;
        gap: 7px;
        cursor: pointer;
    }

    p.notes-2.mb-1 span{
        color: #BA0000;
    }
    p.notes-2.mb-1 span:hover{
        color: #000000;
    }

    .me-2 {
       width: 12px;
    }

    span.cust-name {
        color: #2b2be3;
    }

    .live-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 12px;
        border-radius: 50px;
        background: rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.35);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        backdrop-filter: blur(4px);
        box-shadow: 0 0 10px rgba(25, 135, 84, .15);
    }
    
    .live-dot {
        width: 8px;
        height: 8px;
        background: #000000;
        border-radius: 50%;
        position: relative;
    }
    
    .live-dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #000000;
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 0.8;
        }
    
        70% {
            transform: scale(2.8);
            opacity: 0;
        }
    
        100% {
            transform: scale(2.8);
            opacity: 0;
        }
    }

    .kitchen-switcher {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .kitchen-list {
        display: flex;
        align-items: center;
        gap: 6px;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateX(10px);
        transition:
            max-width 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease;
    }

    .kitchen-switcher.open .kitchen-list {
        max-width: 500px;
        opacity: 1;
        transform: translateX(0);
    }

    .kitchen-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        background: #f1f8ff;
        border: 1px solid #0dcaf0;
        border-radius: 20px;
        color: #087990;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
    }

    .kitchen-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        white-space: nowrap;
    }

    .kitchen-toggle i {
        transition: transform 0.3s ease;
    }

    .kitchen-switcher.open .kitchen-toggle i {
        transform: rotate(180deg);
    }

    /* ============================================
NOTIFICATION DROPDOWN
============================================ */

.notification-dropdown {
    position: relative;
}

.notification-dropdown .nav-link {
    position: relative;
    color: var(--bs-body-color);
    padding: 0.5rem 0.75rem;
}

.notification-dropdown .nav-link:hover {
    color: var(--bs-primary);
}

/* Unread badge */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

/* Dropdown menu */
.notification-menu {
    width: 380px;
    max-width: 92vw;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-top: 8px !important;
}

/* Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.notification-header h6 {
    font-size: 15px;
}

.notification-header small {
    font-size: 12px;
}

/* Tabs */
.notification-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    overflow-x: auto;
    scrollbar-width: none;
}

.notification-tabs::-webkit-scrollbar {
    display: none;
}

.notification-tab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: pointer;
}

.notification-tab:hover {
    background: #e2e8f0;
    color: #334155;
}

.notification-tab.active {
    background: var(--bs-primary);
    color: #4ab0c1;
}

/* List */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Item */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f9ff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--bs-primary);
    border-radius: 50%;
}

.notification-item.unread:hover {
    background: #e0f2fe;
}

/* Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-icon.order {
    background: #dbeafe;
    color: #2563eb;
}

.notification-icon.system {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon.alert {
    background: #fee2e2;
    color: #dc2626;
}

.notification-icon.success {
    background: #d1fae5;
    color: #059669;
}

/* Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content .title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.3;
}

.notification-content .message {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-content .time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.notification-content .time i {
    font-size: 10px;
}

/* Item action (delete) */
.notification-item .item-delete {
    flex-shrink: 0;
    align-self: flex-start;
    opacity: 0;
    padding: 2px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.notification-item:hover .item-delete {
    opacity: 1;
}

.notification-item .item-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Empty state */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.notification-empty i {
    font-size: 42px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.notification-empty small {
    font-size: 12px;
}

/* Footer */
.notification-footer {
    padding: 12px 20px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 600;
}

.notification-footer a {
    color: var(--bs-primary);
}

.notification-footer a:hover {
    color: var(--bs-primary);
    text-decoration: underline !important;
}

/* Dark mode */
[data-bs-theme="dark"] .notification-menu {
    background: #1e293b;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .notification-header,
[data-bs-theme="dark"] .notification-footer {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .notification-header h6,
[data-bs-theme="dark"] .notification-content .title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .notification-tabs {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .notification-tab {
    color: #94a3b8;
}
[data-bs-theme="dark"] .notification-tab.active {
    color: #4ab0c1;
}

[data-bs-theme="dark"] .notification-tab:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .notification-item {
    border-color: #334155;
}

[data-bs-theme="dark"] .notification-item:hover {
    background: #0f172a;
}

[data-bs-theme="dark"] .notification-item.unread {
    background: #0c2d48;
}

[data-bs-theme="dark"] .notification-item.unread:hover {
    background: #0e3a5f;
}

[data-bs-theme="dark"] .notification-content .message {
    color: #94a3b8;
}

[data-bs-theme="dark"] .notification-footer {
    border-color: #334155;
}

/* Mobile */
@media (max-width: 480px) {
    .notification-menu {
        width: 320px;
    }

    .notification-item {
        padding: 12px 16px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .notification-content .title {
        font-size: 12px;
    }

    .notification-content .message {
        font-size: 11px;
    }
}

.notification-dropdown {
    list-style: none;
}

.notification-dropdown::marker {
    content: '';
    display: none;
}

.kitchen-msg-thread {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
}
[data-bs-theme="dark"] .kitchen-msg-thread {
    background: #1e293b;
    border-color: #f59e0b;
}

.kmt-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #ea580c;
    font-weight: 600;
}

.kmt-list {
    max-height: 75px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kmt-msg {
    padding: 6px 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #fed7aa;
}
[data-bs-theme="dark"] .kmt-msg {
    background: #0f172a;
    border-color: #334155;
}

.kmt-msg .who {
    font-weight: 600;
    color: #ea580c;
    font-size: 11px;
}

.kmt-msg .txt {
    color: #1f2937;
    word-wrap: break-word;
}
[data-bs-theme="dark"] .kmt-msg .txt {
    color: #f1f5f9;
}

.kmt-msg .time {
    font-size: 10px;
    color: #9ca3af;
    text-align: right;
    margin-top: 2px;
}

/* Pulsing badge on card header */
.order-msg-badge {
    animation: pulseMsg 1.5s infinite;
}
@keyframes pulseMsg {
    0%, 100% { transform: scale(1);   }
    50%      { transform: scale(1.08); }
}


/* ============================================
   Kitchen Message Thread — above card
   ============================================ */
   .kitchen-msg-thread {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(251, 146, 60, 0.15);
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .kitchen-msg-thread {
    background: #1e293b;
    border-color: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.kmt-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #ea580c;
    font-weight: 600;
    font-size: 12px;
}

.kmt-header i {
    font-size: 14px;
}

.kmt-header .kmt-toggle {
    color: #ea580c;
    text-decoration: none;
    font-size: 12px;
}

.kmt-header .kmt-toggle:hover {
    color: #c2410c;
}

.kmt-list {
    max-height: 75px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}

/* Custom scrollbar (webkit) */
.kmt-list::-webkit-scrollbar {
    width: 4px;
}
.kmt-list::-webkit-scrollbar-thumb {
    background: #fdba74;
    border-radius: 4px;
}
.kmt-list::-webkit-scrollbar-track {
    background: transparent;
}

.kmt-msg {
    padding: 6px 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #fed7aa;
}

[data-bs-theme="dark"] .kmt-msg {
    background: #0f172a;
    border-color: #334155;
}

.kmt-msg .who {
    font-weight: 600;
    color: #ea580c;
    font-size: 11px;
    margin-bottom: 2px;
}

.kmt-msg .txt {
    color: #1f2937;
    word-wrap: break-word;
    font-size: 12px;
    line-height: 1.4;
}

[data-bs-theme="dark"] .kmt-msg .txt {
    color: #f1f5f9;
}

.kmt-msg .time {
    font-size: 10px;
    color: #9ca3af;
    text-align: right;
    margin-top: 2px;
}
/* ============================================
   Kitchen Filter Bar
   ============================================ */
   .filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

[data-bs-theme="dark"] .filter-bar {
    background: #1e293b;
    border-color: #334155;
}

/* ---------- Field wrapper ---------- */
.filter-field {
    position: relative;
    width: 100%;
}

.filter-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 5;
    line-height: 1;
}

/* ---------- Native inputs (order id, date) ---------- */
.filter-field input.form-control {
    width: 100%;
    padding-left: 40px !important;   /* space for icon */
    padding-right: 14px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: none;
}

.filter-field input.form-control:focus {
    border-color: #4ab0c1;
    box-shadow: 0 0 0 3px rgba(74, 176, 193, 0.15);
    outline: none;
}

.filter-field input.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-size: 13px;
}

/* ---------- Choices.js wrapper (the visible one) ---------- */
.filter-field .choices {
    margin: 0;
    width: 100%;
    min-height: 42px;
}

/* The inner "visible" box that Choices renders */
.filter-field .choices__inner {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 36px 0 40px !important;  /* 40 = icon space, 36 = arrow space */
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.filter-field .choices.is-focused .choices__inner,
.filter-field .choices.is-open .choices__inner {
    border-color: #4ab0c1;
    box-shadow: 0 0 0 3px rgba(74, 176, 193, 0.15);
}

/* The placeholder text (Choices stores it in a data attribute) */
.filter-field .choices__placeholder {
    color: #94a3b8;
    opacity: 1;
    font-size: 13px;
}

/* Selected item text */
.filter-field .choices__list--single {
    padding: 0;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.4;
}

.filter-field .choices__list--single .choices__item {
    padding: 0;
    margin: 0;
}

/* The dropdown arrow */
.filter-field .choices[data-type*="select-one"]::after {
    right: 14px;
    border-color: #94a3b8 transparent transparent transparent;
    border-width: 5px;
    margin-top: -3px;
}

.filter-field .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent #94a3b8 transparent;
    margin-top: -7px;
}

/* Dropdown menu */
.filter-field .choices__list--dropdown {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    margin-top: 4px;
    z-index: 1050;
    overflow: hidden;
}

.filter-field .choices__list--dropdown .choices__item {
    border-radius: 6px;
    font-size: 13px;
}

.filter-field .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Search input inside choices dropdown */
.filter-field .choices__input {
    background-color: #f8fafc;
    font-size: 13px;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 4px;
    height: auto !important;
    min-height: 34px;
    padding-left: 10px !important;
    box-shadow: none !important;
}

/* ---------- Dark mode ---------- */
[data-bs-theme="dark"] .filter-field input.form-control,
[data-bs-theme="dark"] .filter-field .choices__inner {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .filter-field input.form-control::placeholder,
[data-bs-theme="dark"] .filter-field .choices__placeholder {
    color: #64748b;
}

[data-bs-theme="dark"] .filter-field .choices__list--single {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .filter-field .choices__list--dropdown {
    background-color: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .filter-field .choices__list--dropdown .choices__item {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .filter-field .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #0c4a6e;
    color: #bae6fd;
}

[data-bs-theme="dark"] .filter-field .choices__input {
    background-color: #0f172a;
    border-color: #334155 !important;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .filter-icon {
    color: #64748b;
}

/* ---------- Buttons ---------- */
.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-submit {
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 13px;
}

.filter-reset {
    height: 42px;
    width: 42px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

/* ---------- Active filter chips ---------- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 4px 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    background: #bae6fd;
    color: #075985;
}

.filter-chip i {
    font-size: 11px;
    opacity: 0.7;
}

[data-bs-theme="dark"] .filter-chip {
    background: #0c4a6e;
    color: #bae6fd;
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
    .filter-bar {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    }
}

@media (max-width: 1200px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .filter-submit {
        flex: 1;
        justify-content: center;
    }
}