/* ============================================================
   QUALITY CONTROL MANAGEMENT - FINAL FULL CSS
   Premium ERP Theme | Teal Primary | Responsive | Filter Ready
============================================================ */

:root {
    --primary: #108082;
    --primary-dark: #0b6668;
    --primary-soft: #e7f6f6;

    --green: #16a34a;
    --green-dark: #15803d;
    --green-soft: #dcfce7;
    --green-border: #86efac;

    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-soft: #fef2f2;
    --red-border: #fca5a5;

    --amber: #d97706;
    --amber-soft: #fffbeb;
    --amber-border: #fcd34d;

    --blue: #2563eb;
    --blue-soft: #eff6ff;
    --blue-border: #93c5fd;

    --sky-soft: #e0f2fe;
    --sky-text: #075985;
    --sky-border: #7dd3fc;

    --orange-soft: #fff7ed;
    --orange-text: #c2410c;
    --orange-border: #fdba74;

    --bg: #f4f7fb;
    --card: #ffffff;

    --text: #0f172a;
    --muted: #64748b;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --border: #e5e7eb;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;

    --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.24);
}

/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============================================================
   MAIN LAYOUT
============================================================ */

.main-content {
    width: 100%;
    min-height: 100vh;
    padding: 22px;
}

/* ============================================================
   TOPBAR
============================================================ */

.topbar,
.premium-topbar {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.page-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.topbar h1 {
    color: var(--primary);
    font-size: 23px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.25px;
}

.topbar p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}

/* ============================================================
   SECTION CARD
============================================================ */

.section-card,
.premium-card {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-head {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-head h2 {
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-head h2 i {
    color: var(--primary);
}

.section-head p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   BUTTONS
============================================================ */

.btn {
    min-height: 38px;
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn.primary {
    background: var(--primary);
    color: #ffffff;
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.success {
    background: var(--green);
    color: #ffffff;
}

.btn.success:hover {
    background: var(--green-dark);
}

.btn.secondary {
    background: #f3f4f6;
    color: var(--gray-800);
}

.btn.secondary:hover {
    background: #e5e7eb;
}

.btn.danger {
    background: var(--red);
    color: #ffffff;
}

.btn.danger:hover {
    background: var(--red-dark);
}

/* ============================================================
   FILTER BAR - FINAL WITH ALL FILTERS
============================================================ */

.filter-bar,
.premium-filter,
.qc-filter-bar {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(300px, 1.8fr)
        minmax(140px, 0.85fr)
        minmax(140px, 0.85fr)
        minmax(150px, 0.9fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        minmax(145px, 0.85fr)
        minmax(145px, 0.85fr)
        minmax(118px, 0.6fr)
        minmax(118px, 0.6fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--gray-300);
    border-radius: 11px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.18s ease;
}

.search-box i {
    color: var(--gray-500);
    font-size: 14px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 650;
}

.search-box input::placeholder {
    color: var(--gray-400);
    font-weight: 650;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.12);
}

.qc-filter-bar select,
.qc-filter-bar > input[type="date"],
.filter-bar select,
.filter-bar > input[type="date"] {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--gray-300);
    border-radius: 11px;
    background: #ffffff;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 650;
    outline: none;
    transition: 0.18s ease;
}

.qc-filter-bar select:focus,
.qc-filter-bar > input[type="date"]:focus,
.filter-bar select:focus,
.filter-bar > input[type="date"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.12);
}

.qc-filter-bar .btn,
.filter-bar .btn {
    width: 100%;
    height: 42px;
    border-radius: 11px;
    padding: 0 15px;
}

/* ============================================================
   TABLE WRAPPER
============================================================ */

.table-wrap,
.premium-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.table-wrap::-webkit-scrollbar,
.premium-table-wrap::-webkit-scrollbar {
    height: 9px;
}

.table-wrap::-webkit-scrollbar-track,
.premium-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb,
.premium-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb:hover,
.premium-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   TABLE
============================================================ */

table,
.premium-table {
    width: 100%;
    min-width: 1550px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

thead th,
.premium-table thead th {
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 11.5px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
}

tbody td,
.premium-table tbody td {
    padding: 13px;
    border-bottom: 1px solid #edf2f7;
    color: var(--gray-900);
    font-size: 13.2px;
    font-weight: 600;
    vertical-align: middle;
    background: #ffffff;
}

tbody tr:hover td,
.premium-table tbody tr:hover td {
    background: #f9fdfd;
}

tbody tr:last-child td,
.premium-table tbody tr:last-child td {
    border-bottom: none;
}

tbody td:first-child,
.premium-table tbody td:first-child {
    font-weight: 850;
    color: #020617;
    line-height: 1.35;
}

/* 11 columns */
.premium-table th:nth-child(1),
.premium-table td:nth-child(1),
table th:nth-child(1),
table td:nth-child(1) {
    width: 145px;
}

.premium-table th:nth-child(2),
.premium-table td:nth-child(2),
table th:nth-child(2),
table td:nth-child(2) {
    width: 125px;
}

.premium-table th:nth-child(3),
.premium-table td:nth-child(3),
table th:nth-child(3),
table td:nth-child(3) {
    width: 220px;
    white-space: normal;
    line-height: 1.35;
}

.premium-table th:nth-child(4),
.premium-table td:nth-child(4),
table th:nth-child(4),
table td:nth-child(4) {
    width: 120px;
}

.premium-table th:nth-child(5),
.premium-table td:nth-child(5),
table th:nth-child(5),
table td:nth-child(5) {
    width: 120px;
}

.premium-table th:nth-child(6),
.premium-table td:nth-child(6),
table th:nth-child(6),
table td:nth-child(6) {
    width: 145px;
}

.premium-table th:nth-child(7),
.premium-table td:nth-child(7),
table th:nth-child(7),
table td:nth-child(7) {
    width: 145px;
}

.premium-table th:nth-child(8),
.premium-table td:nth-child(8),
table th:nth-child(8),
table td:nth-child(8) {
    width: 165px;
}

.premium-table th:nth-child(9),
.premium-table td:nth-child(9),
table th:nth-child(9),
table td:nth-child(9) {
    width: 145px;
}

.premium-table th:nth-child(10),
.premium-table td:nth-child(10),
table th:nth-child(10),
table td:nth-child(10) {
    width: 175px;
}

.premium-table th:nth-child(11),
.premium-table td:nth-child(11),
table th:nth-child(11),
table td:nth-child(11) {
    width: 190px;
}

.empty-table,
tbody td[colspan] {
    text-align: center !important;
    padding: 36px 20px !important;
    color: var(--gray-500) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

/* ============================================================
   TABLE FORM ELEMENTS
============================================================ */

td select,
.status-dropdown {
    width: 100%;
    min-width: 150px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dbe3ea;
    border-radius: 9px;
    background: #ffffff;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: 0.18s ease;
}

td select:focus,
.status-dropdown:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.10);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

/* ============================================================
   BADGES
============================================================ */

.badge,
.pay-badge,
.normal-order-badge,
.special-request-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 110px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.badge-success {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
}

.badge-danger {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.badge-warning {
    background: var(--amber-soft);
    color: #b45309;
    border: 1px solid var(--amber-border);
}

.badge-info {
    background: var(--sky-soft);
    color: #0369a1;
    border: 1px solid var(--sky-border);
}

.badge-pending {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.pay-received {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
}

.pay-partial {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.normal-order-badge {
    background: var(--sky-soft);
    color: var(--sky-text);
    border: 1px solid var(--sky-border);
}

.special-request-badge {
    background: var(--orange-soft);
    color: var(--orange-text);
    border: 1px solid var(--orange-border);
    cursor: help;
}

/* ============================================================
   ACTION BUTTONS
============================================================ */

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
}

.action-buttons .btn {
    min-width: 72px;
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 12.5px;
}

/* ============================================================
   QC MODAL
============================================================ */

.order-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
}

.order-modal.show {
    display: flex;
}

.order-modal-box,
.qc-modal-box {
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.24s ease;
}

.modal-head,
.qc-modal-head {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.modal-head h2,
.qc-modal-head h2 {
    font-size: 20px;
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-head p,
.qc-modal-head p {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 500;
}

.modal-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.30);
}

.modal-grid,
.qc-modal-grid {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    overflow-y: auto;
}

/* ============================================================
   MODAL FIELDS
============================================================ */

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--gray-600);
    font-size: 12.5px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.field label i {
    color: var(--primary);
}

.field input,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: 0.18s ease;
}

.field input {
    min-height: 42px;
}

.field textarea {
    min-height: 95px;
    resize: vertical;
    line-height: 1.45;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.12);
}

.field input:disabled,
.field textarea:disabled,
.field textarea[readonly] {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

.status-badge {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 14px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 120px;
}

.status-badge.status-success {
    background: var(--green-soft);
    border-color: var(--green-border);
    color: var(--green-dark);
}

.status-badge.status-danger {
    background: var(--red-soft);
    border-color: var(--red-border);
    color: var(--red);
}

.status-badge.status-warning {
    background: var(--amber-soft);
    border-color: var(--amber-border);
    color: #b45309;
}

.status-badge.status-pending {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-600);
}

/* ============================================================
   REASON BOX
============================================================ */

.reason-box {
    grid-column: 1 / -1;
    padding: 15px 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--red-soft), #fee2e2);
    border: 1px solid var(--red-border);
}

.reason-title {
    margin-bottom: 7px;
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.reason-text {
    color: #7f1d1d;
    font-size: 15px;
    font-weight: 750;
    text-align: center;
    line-height: 1.45;
}

/* ============================================================
   QC IMAGE GALLERY
============================================================ */

.qc-gallery {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qc-gallery img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: 0.18s ease;
}

.qc-gallery img:hover {
    border-color: var(--primary);
    transform: scale(1.04);
}

.view-all-btn {
    margin-top: 8px;
    width: 100%;
}

/* ============================================================
   MODAL FOOTER
============================================================ */

.modal-footer,
.qc-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ============================================================
   CUSTOM POPUPS - REASON / PASSWORD
============================================================ */

.custom-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
}

.custom-popup.show {
    display: flex;
}

.popup-box {
    width: 100%;
    max-width: 430px;
    padding: 26px 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    animation: popupIn 0.22s ease;
}

.popup-title {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.popup-title i {
    color: var(--primary);
    font-size: 19px;
}

.popup-title h3 {
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 850;
}

.danger-title i {
    color: var(--red);
}

.popup-box input,
.popup-box textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: 0.18s ease;
}

.popup-box input {
    height: 42px;
    padding: 0 13px;
}

.popup-box textarea {
    min-height: 95px;
    padding: 11px 13px;
    resize: none;
    line-height: 1.45;
}

.popup-box input:focus,
.popup-box textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 128, 130, 0.12);
}

.popup-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   STATUS POPUP
============================================================ */

.status-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100000;
}

.status-popup.show {
    display: flex;
}

.status-box {
    width: 100%;
    max-width: 370px;
    padding: 32px 28px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: popupIn 0.22s ease;
}

.status-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.status-text {
    color: var(--gray-900);
    font-size: 16.5px;
    font-weight: 850;
    line-height: 1.35;
}

.status-box.is-error {
    border-top: 4px solid var(--red);
}

.status-box.is-warning {
    border-top: 4px solid var(--amber);
}

/* ============================================================
   IMAGE SLIDER POPUP
============================================================ */

.image-slider-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 18px;
}

.slider-box {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.slider-box img {
    max-width: 82vw;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    background: #111111;
}

.slider-counter {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.slider-controls {
    display: flex;
    gap: 20px;
}

.slider-controls button {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.18s ease;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.30);
}

.slider-box .close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: #ffffff;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

#sliderDots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
    margin-top: 28px;
    color: var(--gray-500);
    text-align: center;
    font-size: 13px;
    font-weight: 650;
}

/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1500px) {
    .filter-bar,
    .premium-filter,
    .qc-filter-bar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .search-box {
        grid-column: span 2;
    }
}

@media (max-width: 1100px) {
    .filter-bar,
    .premium-filter,
    .qc-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-box {
        grid-column: span 2;
    }

    table,
    .premium-table {
        min-width: 1500px;
    }

    .modal-grid,
    .qc-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 14px;
    }

    .topbar,
    .premium-topbar {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .topbar-left {
        width: 100%;
        align-items: flex-start;
    }

    .page-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar p {
        font-size: 12.5px;
    }

    .topbar .btn {
        width: 100%;
    }

    .section-card,
    .premium-card {
        padding: 16px;
    }

    .section-head {
        margin-bottom: 16px;
    }

    .filter-bar,
    .premium-filter,
    .qc-filter-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-box {
        grid-column: span 1;
    }

    .qc-filter-bar .btn,
    .filter-bar .btn {
        width: 100%;
    }

    table,
    .premium-table {
        min-width: 1420px;
    }

    .modal-grid,
    .qc-modal-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .order-modal-box,
    .qc-modal-box {
        max-height: 92vh;
    }

    .modal-footer,
    .qc-footer {
        justify-content: stretch;
    }

    .modal-footer .btn,
    .qc-footer .btn {
        width: 100%;
    }

    .popup-actions {
        flex-direction: column;
    }

    .popup-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .topbar-left {
        gap: 12px;
    }

    .page-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .section-head h2 {
        font-size: 16px;
    }

    .status-box {
        padding: 28px 22px;
    }

    .popup-box {
        padding: 22px 18px;
    }

    .slider-box img {
        max-width: 90vw;
        max-height: 68vh;
    }
}