:root{--brand-blue:#003c6d;--brand-red:#d81d22;--brand-sky:#2c7dc1;--white:#fff;--page-bg:#f5f7fa;--surface:#fff;--surface-soft:#f8fafc;--text-primary:#172033;--text-secondary:#5f6b7a;--text-muted:#8a94a3;--border:#dfe4ea;--border-dark:#c8d0d9;--success:#16834a;--success-bg:#e9f8ef;--danger:#b42318;--danger-bg:#fff0ee;--shadow-sm:0 2px 8px rgba(0,60,109,.06);--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--transition:.2s ease}*,*::before,*::after{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{min-height:100%;margin:0;background:var(--page-bg);color:var(--text-primary);font-family:"Poppins",Arial,Helvetica,sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}a{color:var(--brand-blue);text-decoration:none;transition:.2s ease}a:hover{color:var(--brand-red)}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6{margin-top:0;color:var(--brand-blue);font-weight:700;line-height:1.25}p{margin-top:0}.text-muted{color:var(--text-secondary)}.text-small{font-size:12px}.required-mark{color:var(--brand-red)}.page-container{width:min(1180px,calc(100% - 32px));margin:30px auto}.page-container.narrow{max-width:920px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.page-header-content{min-width:0}.page-title{margin-bottom:4px}.page-subtitle{margin:0;color:var(--text-secondary)}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.form-card,.user-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.form-card{padding:28px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:var(--radius-sm);font-size:14px;font-weight:600;line-height:1;cursor:pointer;transition:.2s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--brand-blue);border-color:var(--brand-blue);color:var(--white)}.btn-primary:hover{background:#002f56;color:#fff}.btn-secondary{background:#fff;border-color:var(--border-dark);color:var(--brand-blue)}.btn-secondary:hover{background:var(--surface-soft);border-color:var(--brand-blue);color:var(--brand-blue)}.btn-edit{min-height:34px;padding:8px 12px;font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-group{display:flex;flex-direction:column;gap:7px}.form-group.full-width{grid-column:1/-1}.form-label{font-size:13px;font-weight:600}.form-control{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border-dark);border-radius:var(--radius-sm);background:#fff;color:var(--text-primary);outline:none;transition:.2s ease}.form-control:focus{border-color:var(--brand-sky);box-shadow:0 0 0 3px rgba(44,125,193,.14)}.form-hint{margin:0;color:var(--text-secondary);font-size:12px}.status-box{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--border-dark);border-radius:var(--radius-sm);background:var(--surface-soft)}.status-box input{width:18px;height:18px;margin:0;accent-color:var(--brand-blue)}.status-text{font-weight:600}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}.table-responsive{width:100%;overflow-x:auto}.users-table{width:100%;min-width:800px;border-collapse:collapse}.users-table th,.users-table td{padding:14px 16px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.users-table th{background:#f0f5f9;color:var(--brand-blue);font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}.users-table td{font-size:13px}.users-table tbody tr:hover{background:#fbfcfd}.user-name{font-weight:600}.role-badge,.status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}.role-admin{background:#e8f1f8;color:var(--brand-blue)}.role-sales{background:#edf6fd;color:#185f93}.role-manufacturing{background:#fff0f1;color:var(--brand-red)}.status-active{background:var(--success-bg);color:var(--success)}.status-inactive{background:var(--danger-bg);color:var(--danger)}.alert{margin-bottom:20px;padding:13px 15px;border:1px solid transparent;border-radius:var(--radius-md);font-size:13px}.alert ul{margin:0;padding-left:18px}.alert-success{background:var(--success-bg);border-color:#b7e4c7;color:var(--success)}.alert-error{background:var(--danger-bg);border-color:#f4c7c3;color:var(--danger)}.empty-state{padding:50px 24px;text-align:center}.empty-state h2{margin-bottom:7px}.empty-state p{margin:0;color:var(--text-secondary)}@media(max-width:700px){body{font-size:13px}.page-container{width:min(100% - 20px,1180px);margin:20px auto}.page-header{flex-direction:column}.header-actions{width:100%;justify-content:flex-start}.header-actions .btn{flex:1}.form-card{padding:20px}.form-grid{grid-template-columns:1fr;gap:16px}.form-group.full-width{grid-column:auto}.form-actions{flex-direction:column-reverse}.form-actions .btn{width:100%}}@media(max-width:480px){.btn{width:100%}.header-actions{flex-direction:column}}




.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.app-header-inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.app-brand {
    flex: 0 0 auto;
}

.app-brand-link {
    color: #003c6d;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    font: inherit;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover,
.nav-link-active {
    background: #eef6fc;
    color: #003c6d;
}

.nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.nav-dropdown-toggle {
    gap: 7px;
    list-style: none;
}

.nav-dropdown-toggle::-webkit-details-marker {
    display: none;
}

.nav-dropdown-toggle::marker {
    display: none;
    content: "";
}

.nav-dropdown-arrow {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.nav-dropdown[open] .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1100;
    display: none;
    width: 210px;
    padding: 8px;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 60, 109, 0.16);
}

.nav-dropdown[open] .nav-dropdown-menu {
    display: grid;
    gap: 3px;
}

.nav-dropdown-menu::before {
    position: absolute;
    top: -6px;
    left: 24px;
    width: 11px;
    height: 11px;
    border-top: 1px solid #e1e7ed;
    border-left: 1px solid #e1e7ed;
    background: #ffffff;
    content: "";
    transform: rotate(45deg);
}

.nav-dropdown-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.nav-link-active {
    background: #eef6fc;
    color: #003c6d;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.app-user-name {
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

.app-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #cfd8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #003c6d;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.app-logout-link:hover {
    border-color: #003c6d;
    background: #f7fafc;
    color: #003c6d;
}

.navigation-toggle {
    display: none;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #003c6d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 130px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 60, 109, 0.06);
}

.dashboard-card:hover {
    border-color: #2c7dc1;
    transform: translateY(-1px);
}

.dashboard-card-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-card-value {
    color: #003c6d;
    font-size: 34px;
    line-height: 1;
}

.status-completed {
    background: #e8f7ee;
    color: #18794e;
}

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

    .navigation-toggle {
        display: inline-flex;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 14px 30px rgba(0, 60, 109, 0.12);
    }

    .main-navigation-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 4px;
        padding: 5px 0 5px 13px;
        border: 0;
        border-left: 2px solid #d8e5ef;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-item {
        width: 100%;
        min-height: 38px;
        padding: 8px 12px;
    }

    .app-user {
        margin-left: auto;
    }

    .app-user-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .app-header-inner {
        padding: 12px 16px;
        gap: 10px;
    }

    .navigation-toggle {
        margin-left: auto;
    }

    .app-user {
        margin-left: 0;
    }

    .app-logout-link {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 110px;
    }

    .app-brand-link {
        font-size: 17px;
    }
}



.content-card {
    margin-bottom: 22px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f0f5f9;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #fbfcfd;
}

.primary-cell {
    color: var(--brand-blue);
    font-weight: 600;
}

.status-pending {
    background: #fff7df;
    color: #856404;
}

.status-ready {
    background: #eaf4ff;
    color: #185f93;
}

dialog {
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 40px);
    padding: 26px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 35, 65, .24);
    overflow-y: auto;
}

dialog::backdrop {
    background: rgba(10, 24, 39, .58);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(440px, 100%);
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 60, 109, .10);
}

@media (max-width: 700px) {
    .content-card {
        padding: 18px;
    }

    dialog {
        padding: 20px;
    }
}


.manufacturing-page {
    max-width: 1160px;
}

.manufacturing-sheet {
    width: min(760px, 100%);
    margin: 0 auto 24px;
    overflow: hidden;
    border: 1px solid #9ca3af;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 60, 109, 0.08);
}

.manufacturing-order-number {
    padding: 12px 16px;
    border-bottom: 1px solid #9ca3af;
    background: #d81d22;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.manufacturing-meta-row {
    display: grid;
    grid-template-columns: 35% 65%;
    border-bottom: 1px solid #d1d5db;
}

.manufacturing-meta-label,
.manufacturing-meta-value {
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
}

.manufacturing-meta-label {
    border-right: 1px solid #d1d5db;
    color: #111827;
    font-weight: 800;
}

.manufacturing-meta-value {
    color: #111827;
    font-weight: 700;
}

.manufacturing-remarks-row {
    min-height: 72px;
}

.manufacturing-remarks {
    align-items: flex-start;
    color: #1d4ed8;
    font-weight: 700;
    line-height: 1.5;
}

.manufacturing-items-wrap {
    overflow-x: auto;
}

.manufacturing-items-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.manufacturing-items-table td {
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    padding: 8px 10px;
    vertical-align: middle;
}

.manufacturing-items-table tr td:last-child {
    border-right: 0;
}

.manufacturing-sr {
    width: 58px;
    text-align: center;
    font-weight: 800;
}

.manufacturing-product {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.manufacturing-quantity {
    width: 92px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
}

.manufacturing-packing {
    width: 130px;
    font-size: 16px;
    font-weight: 800;
}

.manufacturing-empty {
    height: 100px;
    color: #6b7280;
    text-align: center;
}

.manufacturing-items-table tfoot td {
    padding: 12px 10px;
    border-bottom: 0;
    background: #fff200;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.manufacturing-total-label {
    text-align: center;
}

.manufacturing-total-value {
    text-align: center;
}

.manufacturing-total-article {
    text-align: center;
}

.manufacturing-status-panel {
    width: min(760px, 100%);
    margin: 0 auto 24px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.manufacturing-current-status {
    margin-top: 6px;
    color: var(--brand-blue);
    font-size: 20px;
    font-weight: 700;
}

.manufacturing-status-form {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns:
        minmax(180px, 0.8fr)
        minmax(240px, 1.4fr)
        auto;
    align-items: end;
    gap: 14px;
}

.manufacturing-note-field {
    min-width: 0;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .manufacturing-sheet {
        width: 100%;
    }

    .manufacturing-order-number {
        font-size: 24px;
    }

    .manufacturing-meta-row {
        grid-template-columns: 34% 66%;
    }

    .manufacturing-meta-label,
    .manufacturing-meta-value {
        padding: 8px;
        font-size: 13px;
    }

    .manufacturing-status-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .manufacturing-status-form {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
    }

    .no-print,
    .app-header {
        display: none !important;
    }

    .page-container,
    .manufacturing-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .manufacturing-sheet {
        width: 100% !important;
        margin: 0 !important;
        border: 1px solid #000000;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .manufacturing-order-number {
        background: #d81d22 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .manufacturing-items-table tfoot td {
        background: #fff200 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


.manufacturing-index-page {
    max-width: 1440px;
}

.manufacturing-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.manufacturing-summary-card {
    min-height: 112px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.manufacturing-summary-card:hover,
.manufacturing-summary-active {
    border-color: var(--brand-sky);
    box-shadow: 0 10px 28px rgba(0, 60, 109, 0.1);
    transform: translateY(-1px);
}

.manufacturing-summary-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.manufacturing-summary-value {
    color: var(--brand-blue);
    font-size: 32px;
    line-height: 1;
}

.manufacturing-filter-card {
    padding: 18px 20px;
}

.manufacturing-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) minmax(190px, 0.6fr) auto;
    align-items: end;
    gap: 16px;
}

.manufacturing-search-field {
    min-width: 0;
}

.manufacturing-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manufacturing-order-list {
    display: grid;
    gap: 18px;
}

.manufacturing-order-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-left: 5px solid var(--brand-sky);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.manufacturing-order-card.manufacturing-status-production {
    border-left-color: var(--brand-blue);
}

.manufacturing-order-card.manufacturing-status-ready {
    border-left-color: #5995c4;
}

.manufacturing-order-details {
    width: 100%;
}

.manufacturing-order-summary {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(500px, 1.7fr) auto;
    align-items: center;
    gap: 20px;
    list-style: none;
    cursor: pointer;
    background: #ffffff;
}

.manufacturing-order-summary::-webkit-details-marker {
    display: none;
}

.manufacturing-order-summary:hover {
    background: #f7fafc;
}

.manufacturing-order-number-small {
    color: var(--brand-blue);
    font-size: 21px;
    font-weight: 750;
}

.manufacturing-po-number {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.manufacturing-order-summary-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    align-items: center;
    gap: 14px;
}

.manufacturing-order-summary-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manufacturing-summary-meta-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manufacturing-expand-label {
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.manufacturing-order-details[open] .manufacturing-expand-label {
    color: var(--text-muted);
}

.manufacturing-order-details[open] .manufacturing-expand-label::after {
    content: " Hide";
}

.manufacturing-order-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
    background: #fbfcfd;
}

.manufacturing-order-info-grid {
    padding: 18px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.manufacturing-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.manufacturing-order-remarks {
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px solid #d9e6f0;
    border-radius: 10px;
    background: #f2f7fb;
}

.manufacturing-index-items-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #ffffff;
}

.manufacturing-index-items-table th,
.manufacturing-index-items-table td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.manufacturing-index-items-table th {
    background: #eaf2f8;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.manufacturing-index-items-table tbody tr:hover {
    background: #f8fbfd;
}

.manufacturing-item-sr {
    width: 62px;
    text-align: center !important;
    font-weight: 700;
}

.manufacturing-item-product {
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
}

.manufacturing-item-qty {
    width: 105px;
    text-align: center !important;
    font-size: 16px;
    font-weight: 750;
}

.manufacturing-item-pack {
    width: 145px;
    font-weight: 700;
}

.manufacturing-index-items-table tfoot td {
    background: #dfeef8;
    color: var(--brand-blue);
    font-size: 15px;
    font-weight: 800;
}

.manufacturing-index-items-table tfoot td:first-child {
    text-align: right;
}

.manufacturing-index-items-table tfoot td:nth-child(2),
.manufacturing-index-items-table tfoot td:nth-child(3) {
    text-align: center;
}

.manufacturing-no-items {
    height: 90px;
    color: var(--text-muted);
    text-align: center !important;
}

.manufacturing-order-actions {
    margin-top: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.manufacturing-quick-status-form {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
    max-width: 620px;
}

.manufacturing-quick-note {
    min-width: 0;
}

.manufacturing-ready-message {
    padding: 11px 14px;
    border: 1px solid #b8d4e8;
    border-radius: 8px;
    background: #edf6fc;
    color: var(--brand-blue);
    font-weight: 650;
}

.manufacturing-status-pending {
    background: #eef5fa;
    color: #315b78;
}

.manufacturing-status-production {
    background: #e4f0f8;
    color: var(--brand-blue);
}

.manufacturing-status-ready {
    background: #edf6fc;
    color: #27678f;
}

.manufacturing-status-default {
    background: #f0f1f3;
    color: #4b5563;
}

@media (max-width: 1050px) {
    .manufacturing-order-summary {
        grid-template-columns: 1fr auto;
    }

    .manufacturing-order-summary-meta {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .manufacturing-expand-label {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 800px) {
    .manufacturing-summary-grid {
        grid-template-columns: 1fr;
    }

    .manufacturing-summary-card {
        min-height: 92px;
    }

    .manufacturing-filter-form {
        grid-template-columns: 1fr;
    }

    .manufacturing-filter-actions {
        align-items: stretch;
    }

    .manufacturing-filter-actions .btn {
        flex: 1;
    }

    .manufacturing-order-summary {
        padding: 16px;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .manufacturing-order-summary-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manufacturing-order-body {
        padding: 0 14px 16px;
    }

    .manufacturing-order-info-grid {
        grid-template-columns: 1fr;
    }

    .manufacturing-order-remarks {
        grid-column: auto;
    }

    .manufacturing-order-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .manufacturing-quick-status-form {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr;
    }

    .manufacturing-order-actions > .btn,
    .manufacturing-quick-status-form .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .manufacturing-order-summary-meta {
        grid-template-columns: 1fr 1fr;
    }

    .manufacturing-order-number-small {
        font-size: 18px;
    }

    .manufacturing-expand-label {
        font-size: 12px;
    }
}




.manufacturing-index-page {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.manufacturing-page-title {
    margin-bottom: 16px;
}

.manufacturing-page-title h1 {
    margin: 0;
    color: var(--brand-blue);
    font-size: 26px;
    font-weight: 800;
}

.manufacturing-order-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.manufacturing-order-card {
    overflow: hidden;
    border: 1px solid #d9e5ee;
    border-left: 4px solid var(--brand-blue);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 60, 109, 0.06);
}

.manufacturing-order-card.is-production {
    border-left-color: #2c7dc1;
}

.manufacturing-order-card.is-ready {
    border-left-color: #76a9cf;
}

.manufacturing-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e4ebf1;
    background: #f7fafc;
}

.manufacturing-order-heading {
    min-width: 0;
}

.manufacturing-order-number {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--brand-blue);
    font-size: 20px;
    font-weight: 800;
}

.manufacturing-po-number {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.manufacturing-status-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9f2f8;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.manufacturing-status-badge.is-production {
    background: #deedf7;
}

.manufacturing-status-badge.is-ready {
    background: #edf6fc;
}

.manufacturing-order-meta {
    display: grid;
    grid-template-columns:
        minmax(110px, 0.7fr)
        minmax(160px, 1.3fr)
        minmax(130px, 1fr)
        minmax(220px, 2fr);
    gap: 1px;
    border-bottom: 1px solid #e4ebf1;
    background: #e4ebf1;
}

.manufacturing-meta-item {
    min-width: 0;
    padding: 13px 15px;
    background: #ffffff;
}

.manufacturing-meta-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manufacturing-meta-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.manufacturing-products {
    padding: 16px 18px 18px;
}

.manufacturing-products-head,
.manufacturing-product-row {
    display: grid;
    grid-template-columns:
        54px
        minmax(0, 1fr)
        120px
        150px;
    align-items: stretch;
}

.manufacturing-products-head {
    border: 1px solid #cadbe8;
    border-bottom: 0;
    background: #eaf2f8;
    color: var(--brand-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.manufacturing-products-head span,
.manufacturing-product-row > * {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid #d7e2ea;
}

.manufacturing-products-head span:last-child,
.manufacturing-product-row > *:last-child {
    border-right: 0;
}

.manufacturing-product-row {
    border: 1px solid #d7e2ea;
    border-bottom: 0;
    background: #ffffff;
}

.manufacturing-product-row:nth-of-type(even) {
    background: #fbfdfe;
}

.manufacturing-product-row > * {
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.manufacturing-product-sr,
.manufacturing-product-qty {
    justify-content: center;
    text-align: center;
}

.manufacturing-product-name {
    color: var(--text);
    text-transform: uppercase;
}

.manufacturing-product-qty,
.manufacturing-product-pack {
    color: var(--brand-blue);
}

.manufacturing-product-pack {
    justify-content: flex-start;
}

.manufacturing-products-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 11px 15px;
    border: 1px solid #c7d9e6;
    background: #dfeef8;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 800;
}

.manufacturing-products-total strong {
    min-width: 90px;
    text-align: center;
    font-size: 17px;
}

.manufacturing-no-items {
    padding: 24px;
    border: 1px solid #d7e2ea;
    color: var(--text-muted);
    text-align: center;
}

.manufacturing-slider-form {
    padding: 0 18px 18px;
}

.manufacturing-slide-control {
    --slide-progress: 0%;

    position: relative;
    height: 54px;
    overflow: hidden;
    border: 1px solid #a9c9df;
    border-radius: 28px;
    background:
        linear-gradient(
            90deg,
            rgba(44, 125, 193, 0.17) 0,
            rgba(44, 125, 193, 0.17)
                var(--slide-progress),
            #edf5fa var(--slide-progress),
            #edf5fa 100%
        );
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.manufacturing-slide-control.is-complete {
    border-color: var(--brand-blue);
}

.manufacturing-slide-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 66px;
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.manufacturing-status-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: grab;
    touch-action: pan-y;
}

.manufacturing-status-slider:active {
    cursor: grabbing;
}

.manufacturing-status-slider:disabled {
    cursor: default;
    opacity: 0.7;
}

.manufacturing-status-slider::-webkit-slider-runnable-track {
    height: 54px;
    background: transparent;
}

.manufacturing-status-slider::-webkit-slider-thumb {
    width: 46px;
    height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(0, 60, 109, 0.28);
}

.manufacturing-status-slider::-moz-range-track {
    height: 54px;
    background: transparent;
}

.manufacturing-status-slider::-moz-range-thumb {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(0, 60, 109, 0.28);
}

.manufacturing-ready-message {
    margin: 0 18px 18px;
    padding: 12px 15px;
    border: 1px solid #bad4e7;
    border-radius: 9px;
    background: #edf6fc;
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}



@media (max-width: 850px) {
    .manufacturing-order-meta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .manufacturing-meta-remarks {
        grid-column: 1 / -1;
    }

    .manufacturing-products-head,
    .manufacturing-product-row {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            82px
            100px;
    }

    .manufacturing-products-head span,
    .manufacturing-product-row > * {
        padding: 9px 8px;
    }
}



@media (max-width: 560px) {
    .manufacturing-index-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .manufacturing-page-title {
        margin-bottom: 12px;
    }

    .manufacturing-page-title h1 {
        font-size: 21px;
    }

    .manufacturing-order-list {
        gap: 13px;
    }

    .manufacturing-order-card {
        border-left-width: 3px;
        border-radius: 10px;
    }

    .manufacturing-order-header {
        align-items: center;
        gap: 8px;
        padding: 12px 10px;
    }

    .manufacturing-order-number {
        font-size: 16px;
    }

    .manufacturing-po-number {
        font-size: 11px;
    }

    .manufacturing-status-badge {
        padding: 5px 7px;
        font-size: 9px;
    }

    .manufacturing-order-meta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .manufacturing-meta-item {
        padding: 9px 8px;
    }

    .manufacturing-meta-item span {
        margin-bottom: 3px;
        font-size: 8px;
    }

    .manufacturing-meta-item strong {
        font-size: 11px;
        line-height: 1.35;
    }

    .manufacturing-meta-remarks {
        grid-column: 1 / -1;
    }

    .manufacturing-products {
        padding: 10px 6px 11px;
    }

    .manufacturing-products-head,
    .manufacturing-product-row {
        width: 100%;
        grid-template-columns:
            26px
            minmax(0, 1fr)
            48px
            62px;
    }

    .manufacturing-products-head span,
    .manufacturing-product-row > * {
        padding: 7px 3px;
    }

    .manufacturing-products-head {
        font-size: 7px;
        letter-spacing: 0;
    }

    .manufacturing-product-row > * {
        font-size: 9px;
        line-height: 1.25;
    }

    .manufacturing-product-name {
        font-size: 9px;
        line-height: 1.25;
    }

    .manufacturing-product-sr,
    .manufacturing-product-qty,
    .manufacturing-product-pack {
        justify-content: center;
        text-align: center;
    }

    .manufacturing-product-pack {
        overflow-wrap: anywhere;
    }

    .manufacturing-products-total {
        gap: 8px;
        padding: 8px 7px;
        font-size: 10px;
    }

    .manufacturing-products-total strong {
        min-width: 45px;
        font-size: 13px;
    }

    .manufacturing-slider-form {
        padding: 0 9px 11px;
    }

    .manufacturing-slide-control {
        height: 48px;
    }

    .manufacturing-slide-label {
        padding: 0 52px;
        font-size: 10px;
    }

    .manufacturing-status-slider::-webkit-slider-runnable-track {
        height: 48px;
    }

    .manufacturing-status-slider::-webkit-slider-thumb {
        width: 40px;
        height: 40px;
        margin-top: 4px;
    }

    .manufacturing-status-slider::-moz-range-track {
        height: 48px;
    }

    .manufacturing-status-slider::-moz-range-thumb {
        width: 40px;
        height: 40px;
    }

    .manufacturing-ready-message {
        margin: 0 9px 11px;
        padding: 10px;
        font-size: 11px;
    }
}



@media (max-width: 380px) {
    .manufacturing-products-head,
    .manufacturing-product-row {
        grid-template-columns:
            23px
            minmax(0, 1fr)
            43px
            54px;
    }

    .manufacturing-products-head span,
    .manufacturing-product-row > * {
        padding-right: 2px;
        padding-left: 2px;
    }

    .manufacturing-product-row > * {
        font-size: 8px;
    }

    .manufacturing-product-name {
        font-size: 8px;
    }
}


.manufacturing-order-card .manufacturing-order-number {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #003c6d !important;
    box-shadow: none;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.manufacturing-order-card .manufacturing-order-heading {
    padding: 0;
    background: transparent;
}


.manufacturing-order-card .manufacturing-order-number {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #003c6d !important;
    box-shadow: none;
    font-size: 17pt;
    font-weight: 800;
    line-height: 1.2;
}

.manufacturing-po-number {
    margin-top: 4px;
    font-size: 10pt;
    font-weight: 600;
}

.manufacturing-meta-item span {
    font-size: 10pt;
}

.manufacturing-meta-item strong {
    font-size: 10pt;
}

.manufacturing-products-head {
    font-size: 10pt;
}

.manufacturing-product-row > * {
    font-size: 10pt;
}

.manufacturing-products-total {
    font-size: 10pt;
}

.manufacturing-products-total strong {
    font-size: 10pt;
}

.manufacturing-status-badge {
    font-size: 10pt;
}

.manufacturing-slide-label {
    font-size: 10pt;
}
@media (max-width: 560px) {
    .manufacturing-order-card .manufacturing-order-number {
        font-size: 17pt;
    }

    .manufacturing-po-number,
    .manufacturing-meta-item span,
    .manufacturing-meta-item strong,
    .manufacturing-products-head,
    .manufacturing-product-row > *,
    .manufacturing-products-total,
    .manufacturing-products-total strong,
    .manufacturing-status-badge,
    .manufacturing-slide-label {
        font-size: 10pt;
    }
}


.manufacturing-slide-control {
    --slide-progress: 0%;

    position: relative;
    height: 54px;
    overflow: hidden;
    border: 1px solid #a9c9df;
    border-radius: 28px;
    background:
        linear-gradient(
            90deg,
            rgba(44, 125, 193, 0.18) 0,
            rgba(44, 125, 193, 0.18)
                var(--slide-progress),
            #edf5fa var(--slide-progress),
            #edf5fa 100%
        );
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.manufacturing-slider-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 68px;
    color: #003c6d;
    font-size: 10pt;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.slider-placeholder-arrow {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -3px;
    animation: manufacturingSliderArrow 1.2s ease-in-out infinite;
}

.manufacturing-status-slider {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: grab;
    touch-action: pan-y;
}

.manufacturing-status-slider:active {
    cursor: grabbing;
}

.manufacturing-status-slider:disabled {
    cursor: default;
}

.manufacturing-status-slider::-webkit-slider-runnable-track {
    height: 54px;
    background: transparent;
}

.manufacturing-status-slider::-webkit-slider-thumb {
    width: 46px;
    height: 46px;
    margin-top: 4px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #003c6d;
    box-shadow:
        0 2px 8px rgba(0, 60, 109, 0.3),
        0 0 0 1px rgba(0, 60, 109, 0.12);
}

.manufacturing-status-slider::-moz-range-track {
    height: 54px;
    background: transparent;
}

.manufacturing-status-slider::-moz-range-thumb {
    width: 46px;
    height: 46px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #003c6d;
    box-shadow:
        0 2px 8px rgba(0, 60, 109, 0.3),
        0 0 0 1px rgba(0, 60, 109, 0.12);
}

.manufacturing-slide-control.is-complete {
    border-color: #003c6d;
}

.manufacturing-slide-control.is-submitting {
    opacity: 0.75;
    pointer-events: none;
}

@keyframes manufacturingSliderArrow {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0.55;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

@media (max-width: 560px) {
    .manufacturing-slide-control {
        height: 48px;
    }

    .manufacturing-slider-placeholder {
        gap: 6px;
        padding: 0 54px;
        font-size: 10pt;
    }

    .slider-placeholder-arrow {
        font-size: 16px;
    }

    .manufacturing-status-slider::-webkit-slider-runnable-track {
        height: 48px;
    }

    .manufacturing-status-slider::-webkit-slider-thumb {
        width: 40px;
        height: 40px;
        margin-top: 4px;
    }

    .manufacturing-status-slider::-moz-range-track {
        height: 48px;
    }

    .manufacturing-status-slider::-moz-range-thumb {
        width: 40px;
        height: 40px;
    }
}
.manufacturing-product-row.is-added-item {
    background: #e8f4ff;
}

.manufacturing-product-row.is-updated-item {
    background: #fff7d6;
}

.manufacturing-product-row.is-cancelled-item {
    background: #fdeaea;
}

.manufacturing-product-row.is-cancelled-item > * {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.manufacturing-product-content {
    min-width: 0;
}

.manufacturing-item-description {
    margin-top: 3px;
    color: #5f6b76;
    font-size: 8pt;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.manufacturing-product-row.is-cancelled-item
.manufacturing-item-description {
    text-decoration: line-through;
}



#edit-order-items-body tr.is-cancelled-item .form-control.is-cancelled-field {
    pointer-events: none;
    user-select: none;
    opacity: 0.72;
}

#edit-order-items-body tr.is-cancelled-item .cancel-row-button {
    pointer-events: auto;
    opacity: 1;
}


.manufacturing-product-content {
    display: flex !important;
    min-width: 0;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center;
    gap: 3px;
    white-space: normal !important;
}

.manufacturing-product-name {
    display: block !important;
    width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
}

.manufacturing-item-description {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    color: #5f6b76;
    font-size: 8pt !important;
    font-style: italic;
    font-weight: 400 !important;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: anywhere;
}


@media (max-width: 760px) {
    .manufacturing-products-head,
    .manufacturing-product-row > *,
    .manufacturing-product-name,
    .manufacturing-product-qty,
    .manufacturing-product-pack,
    .manufacturing-products-total,
    .manufacturing-products-total strong {
        font-size: 10pt !important;
    }

    .manufacturing-item-description {
        font-size: 8pt !important;
    }

    .manufacturing-product-row {
        align-items: stretch;
    }

    .manufacturing-product-content {
        min-width: 0;
        white-space: normal !important;
    }
}


.order-view-products-table td {
    vertical-align: top;
}

.order-view-products-table tr.is-added-item td {
    background: #e8f4ff;
}

.order-view-products-table tr.is-updated-item td {
    background: #fff7d6;
}

.order-view-products-table tr.is-cancelled-item td {
    background: #fdeaea;
    color: #9b3434;
}

.order-view-products-table
tr.is-cancelled-item
td {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.order-view-products-table
tr.is-cancelled-item
.order-view-product-content {
    text-decoration: line-through;
}

.order-view-product-content {
    display: block;
    min-width: 0;
}

.order-view-product-name {
    display: block;
    color: #17233a;
    font-size: 10pt;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-view-product-content
.manufacturing-item-description {
    display: block;
    margin-top: 3px;
    color: #5f6b76;
    font-size: 8pt;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}



.order-status-select {
    max-width: 260px;
    font-weight: 700;
    color: #003c6d;
}



.order-status-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-status-modal.is-open {
    display: flex;
}

.order-status-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 45, 0.55);
    backdrop-filter: blur(2px);
}

.order-status-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 20px 60px rgba(0, 35, 65, 0.25);
    text-align: center;
}

.order-status-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff0d9;
    color: #c76d00;
    font-size: 28px;
    font-weight: 800;
}

.order-status-modal-dialog h2 {
    margin: 0 0 10px;
    color: #003c6d;
    font-size: 21px;
    font-weight: 800;
}

.order-status-modal-dialog p {
    margin: 0;
    color: #536171;
    font-size: 14px;
    line-height: 1.6;
}

.order-status-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.btn-danger {
    border-color: #d81d22 !important;
    background: #d81d22 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .order-view-products-table th,
    .order-view-products-table td {
        font-size: 10pt !important;
    }

    .order-view-product-name {
        font-size: 10pt !important;
    }

    .order-view-product-content
    .manufacturing-item-description {
        font-size: 8pt !important;
    }

    .order-status-select {
        max-width: 100%;
    }

    .order-status-modal-dialog {
        padding: 22px 18px;
    }

    .order-status-modal-actions {
        flex-direction: column-reverse;
    }

    .order-status-modal-actions .btn {
        width: 100%;
    }
}
.dispatch-document-fields {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d5e3ed;
    border-radius: 12px;
    background: #f7fbfe;
    text-align: left;
}

.dispatch-fields-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dispatch-document-fields
.form-group {
    margin: 0;
}

.dispatch-document-fields
input[type="file"] {
    padding: 8px;
    background: #ffffff;
}

.form-help-text {
    display: block;
    margin-top: 5px;
    color: #667585;
    font-size: 11px;
    line-height: 1.4;
}

.dispatch-form-error {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #efb4b6;
    border-radius: 8px;
    background: #fff0f0;
    color: #b3181d;
    font-size: 13px;
    font-weight: 600;
}

.document-link {
    color: #003c6d;
    font-weight: 700;
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .dispatch-fields-grid {
        grid-template-columns: 1fr;
    }

    .dispatch-document-fields {
        padding: 14px;
    }
}




.order-view-products-table td {
    vertical-align: top;
}

.order-view-products-table
tr.is-added-item td {
    background: #e8f4ff;
}

.order-view-products-table
tr.is-updated-item td {
    background: #fff7d6;
}

.order-view-products-table
tr.is-cancelled-item td {
    background: #fdeaea;
    color: #9b3434;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.order-view-products-table
tr.is-cancelled-item
.order-view-product-name,
.order-view-products-table
tr.is-cancelled-item
.order-view-item-description {
    color: #9b3434;
}

.order-view-product-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.order-view-product-name {
    display: block;
    color: #17233a;
    font-size: 10pt;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-view-item-description {
    display: block;
    margin-top: 3px;
    color: #5f6b76;
    font-size: 8pt;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}





.order-status-select {
    width: 100%;
    max-width: 260px;
    color: #003c6d;
    font-weight: 700;
}





.order-status-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-status-modal.is-open {
    display: flex;
}

.order-status-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 45, 0.58);
    backdrop-filter: blur(2px);
}

.order-status-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    padding: 28px;
    overflow-y: auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 20px 60px
        rgba(0, 35, 65, 0.28);
    text-align: center;
}

.order-status-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff0d9;
    color: #c76d00;
    font-size: 28px;
    font-weight: 800;
}

.order-status-modal-dialog h2 {
    margin: 0 0 10px;
    color: #003c6d;
    font-size: 21px;
    font-weight: 800;
}

.order-status-modal-dialog > p {
    margin: 0;
    color: #536171;
    font-size: 14px;
    line-height: 1.6;
}

.order-status-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.order-status-modal-actions .btn {
    min-width: 150px;
}

.btn-danger {
    border-color: #d81d22 !important;
    background: #d81d22 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    border-color: #b6161b !important;
    background: #b6161b !important;
}





.dispatch-document-fields {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d5e3ed;
    border-radius: 12px;
    background: #f7fbfe;
    text-align: left;
}

.dispatch-document-fields[hidden] {
    display: none !important;
}

.dispatch-fields-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dispatch-document-fields
.form-group {
    min-width: 0;
    margin: 0;
}

.dispatch-document-fields
.form-label {
    display: block;
    margin-bottom: 6px;
}

.dispatch-document-fields
.form-control {
    width: 100%;
}

.dispatch-document-fields
input[type="file"] {
    padding: 8px;
    background: #ffffff;
}

.required-mark {
    color: #d81d22;
}

.form-help-text {
    display: block;
    margin-top: 5px;
    color: #667585;
    font-size: 11px;
    line-height: 1.4;
}

.dispatch-form-error {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #efb4b6;
    border-radius: 8px;
    background: #fff0f0;
    color: #b3181d;
    font-size: 13px;
    font-weight: 600;
}

.dispatch-form-error[hidden] {
    display: none !important;
}





.document-link {
    display: inline-flex;
    align-items: center;
    color: #003c6d;
    font-weight: 700;
    text-decoration: none;
}

.document-link:hover {
    color: #2c7dc1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .order-view-products-table th,
    .order-view-products-table td {
        font-size: 10pt !important;
    }

    .order-view-product-name {
        font-size: 10pt !important;
    }

    .order-view-item-description {
        font-size: 8pt !important;
    }

    .order-status-select {
        max-width: 100%;
    }

    .order-status-modal {
        padding: 12px;
    }

    .order-status-modal-dialog {
        max-height: calc(100vh - 24px);
        padding: 22px 18px;
        border-radius: 13px;
    }

    .dispatch-fields-grid {
        grid-template-columns: 1fr;
    }

    .dispatch-document-fields {
        padding: 14px;
    }

    .order-status-modal-actions {
        flex-direction: column-reverse;
    }

    .order-status-modal-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
.status-lock-text {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2f5;
    color: #667585;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}
.manufacturing-order-reference{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.manufacturing-order-number{
    margin:0;
    line-height:1;
}

.manufacturing-po-divider{
    width:1px;
    height:18px;
    background:#d7dee7;
}

.manufacturing-po-number{
    display:flex;
    align-items:center;
    gap:4px;
    margin:0;
    font-size:12px;
    font-weight:600;
    color:#6b7280;
    line-height:1;
}

.manufacturing-po-label{
    color:#9aa4b2;
    font-weight:700;
}

.manufacturing-order-header{
    padding:12px 18px;
    min-height:auto;
}

@media (max-width:768px){

    .manufacturing-order-header{
        padding:10px 14px;
    }

    .manufacturing-order-number{
        font-size:28px;
    }

    .manufacturing-po-number{
        font-size:11px;
    }

    .manufacturing-po-divider{
        height:15px;
    }

}


.manufacturing-order-header {
    min-height: 58px;
    padding: 10px 18px;
    border-bottom: 0;
    background: #003c6d;
}

.manufacturing-order-heading {
    min-width: 0;
}

.manufacturing-order-reference {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.manufacturing-order-number {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.manufacturing-po-divider {
    width: 1px;
    height: 17px;
    background: rgba(255, 255, 255, 0.4);
}

.manufacturing-po-number {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #dbeaf6;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.manufacturing-po-label {
    color: #a9c9df;
    font-weight: 700;
}



.manufacturing-order-header .manufacturing-status-badge {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: none;
}

.manufacturing-order-header
.manufacturing-status-badge.is-pending,
.manufacturing-order-header
.manufacturing-status-badge.is-production,
.manufacturing-order-header
.manufacturing-status-badge.is-ready {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}



.manufacturing-product-name {
    color: #003c6d;
    font-weight: 800;
}

.manufacturing-item-description {
    color: #64748b;
}



.manufacturing-products-head {
    background: #e4eff7;
    color: #003c6d;
}

.manufacturing-products-head span {
    color: #003c6d;
}



@media (max-width: 768px) {
    .manufacturing-order-header {
        min-height: 48px;
        padding: 9px 12px;
    }

    .manufacturing-order-number {
        font-size: 20px;
    }

    .manufacturing-po-number {
        font-size: 10px;
    }

    .manufacturing-po-divider {
        height: 14px;
    }

    .manufacturing-order-header
    .manufacturing-status-badge {
        padding: 6px 10px;
        font-size: 10px;
    }
}
.manufacturing-order-heading {
    display: flex;
    align-items: center;
    min-width: 0;
}

.manufacturing-order-reference {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}

.manufacturing-order-number {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 24px;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.manufacturing-po-divider {
    flex: 0 0 1px;
}

.manufacturing-po-number {
    flex: 0 1 auto;
    white-space: nowrap;
}
.manufacturing-order-header {
    min-height: 0 !important;
    padding: 10px 18px !important;
}
@media (max-width: 768px) {
    .manufacturing-order-header {
        padding: 9px 12px !important;
    }

    .manufacturing-order-number {
        min-width: 20px;
        font-size: 20px;
    }
}
.manufacturing-order-reference-new {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.manufacturing-order-id-new {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    min-width: 24px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #ffffff !important;
    font-family: Poppins, sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.manufacturing-po-divider-new {
    display: inline-block !important;
    flex: 0 0 1px !important;
    width: 1px !important;
    height: 17px !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.manufacturing-po-number-new {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #dbeaf6 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.manufacturing-po-label-new {
    color: #a9c9df !important;
}

@media (max-width: 768px) {
    .manufacturing-order-id-new {
        min-width: 20px !important;
        font-size: 20px !important;
    }

    .manufacturing-po-divider-new {
        height: 14px !important;
    }

    .manufacturing-po-number-new {
        font-size: 10px !important;
    }
}
.manufacturing-item-description {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
}
@media (max-width: 768px) {
    .manufacturing-item-description {
        font-size: 10px;
        font-weight: 700;
    }
}
.manufacturing-product-row .manufacturing-item-description,
.manufacturing-products .manufacturing-item-description,
.manufacturing-order-card .manufacturing-item-description {
    display: block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-style: italic !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}
@media (max-width: 768px) {
    .manufacturing-product-row .manufacturing-item-description,
    .manufacturing-products .manufacturing-item-description,
    .manufacturing-order-card .manufacturing-item-description {
        font-size: 10px !important;
        font-style: italic !important;
        font-weight: 700 !important;
    }
}
@media (max-width: 768px) {

    .manufacturing-order-meta {
        display: block !important;
    }

    .manufacturing-meta-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;

        width: 100% !important;
        min-height: 0 !important;
        padding: 10px 14px !important;

        border-right: 0 !important;
        border-bottom: 1px solid #dbe3eb !important;
    }

    .manufacturing-meta-item:last-child {
        border-bottom: 0 !important;
    }

    .manufacturing-meta-item span {
        flex: 0 0 auto !important;
        margin: 0 !important;

        color: #8a95a5 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.25px !important;
    }

    .manufacturing-meta-item strong {
        flex: 1 1 auto !important;
        margin: 0 !important;

        color: #172033 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        text-align: right !important;
        overflow-wrap: anywhere !important;
    }

    .manufacturing-meta-remarks {
        grid-column: auto !important;
    }
}
@media (max-width: 768px) {

    .manufacturing-meta-item span {
        color: #003c6d !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: 0.35px !important;
    }

    .manufacturing-meta-item strong {
        color: #172033 !important;
        font-weight: 800 !important;
    }

}
@media (max-width: 768px) {

    .manufacturing-meta-item {
        background: #f8fbfd !important;
    }

    .manufacturing-meta-item:nth-child(even) {
        background: #ffffff !important;
    }

}
@media (max-width: 768px) {

    .manufacturing-order-meta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .manufacturing-meta-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;

        width: auto !important;
        min-width: 0 !important;
        padding: 9px 10px !important;

        border-right: 1px solid #dbe3eb !important;
        border-bottom: 1px solid #dbe3eb !important;
        background: #ffffff !important;
    }

    .manufacturing-meta-item:nth-child(2n) {
        border-right: 0 !important;
    }

    .manufacturing-meta-item:nth-last-child(-n + 2) {
        border-bottom: 0 !important;
    }

    .manufacturing-meta-item span {
        flex: 0 0 auto !important;
        margin: 0 !important;

        color: #003c6d !important;
        font-size: 9px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
    }

    .manufacturing-meta-item strong {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;

        color: #172033 !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        text-align: right !important;

        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .manufacturing-meta-remarks {
        grid-column: auto !important;
    }
}
@media (max-width: 768px) {

    .manufacturing-order-meta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .manufacturing-meta-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;

        width: auto !important;
        min-width: 0 !important;
        padding: 10px 14px !important;

        border-right: 0 !important;
        border-bottom: 1px solid #dbe3eb !important;
        background: #ffffff !important;
    }

    
    .manufacturing-meta-item:nth-child(1) {
        grid-column: 1 !important;
        border-right: 1px solid #dbe3eb !important;
    }

    
    .manufacturing-meta-item:nth-child(2) {
        grid-column: 2 !important;
    }

    
    .manufacturing-meta-item:nth-child(3) {
        grid-column: 1 / -1 !important;
    }

    
    .manufacturing-meta-item:nth-child(4) {
        grid-column: 1 / -1 !important;
        border-bottom: 0 !important;
    }

    .manufacturing-meta-item span {
        flex: 0 0 auto !important;
        margin: 0 !important;

        color: #003c6d !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
    }

    .manufacturing-meta-item strong {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;

        color: #172033 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        text-align: right !important;

        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .manufacturing-meta-remarks {
        grid-column: 1 / -1 !important;
    }
}
.brand-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.brand-selection-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2d3d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.brand-selection-option:hover {
    border-color: #2c7dc1;
    background: #f5f9fd;
}

.brand-selection-option:has(input:checked) {
    border-color: #003c6d;
    background: #edf5fb;
    box-shadow: 0 0 0 1px rgba(0, 60, 109, 0.08);
}

.brand-selection-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #003c6d;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .brand-selection-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .brand-selection-option {
        min-height: 44px;
        padding: 10px 12px;
    }
}
.assigned-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 150px;
}

.assigned-brand-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(0, 60, 109, 0.18);
    border-radius: 20px;
    background: #edf5fb;
    color: #003c6d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .assigned-brands-list {
        min-width: 120px;
    }

    .assigned-brand-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.locked-order-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #f5f7f9;
    color: #263746;
    font-size: 14px;
    font-weight: 600;
}

.locked-field-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid rgba(0, 60, 109, 0.18);
    border-radius: 20px;
    background: #edf5fb;
    color: #003c6d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.btn-danger {
    border-color: #d81d22;
    background: #d81d22;
    color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus {
    border-color: #b81519;
    background: #b81519;
    color: #ffffff;
}



.login-card h1 {
    margin: 0 0 8px;
    color: var(--primary-dark, #003c6d);
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
}

.login-card > p {
    margin: 0 0 24px;
    color: var(--text-muted, #64748b);
}

.login-card form {
    display: grid;
    gap: 18px;
}

.login-card form > label {
    display: grid;
    gap: 8px;
    color: var(--text, #172033);
    font-size: 14px;
    font-weight: 600;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--border, #d7dde5);
    border-radius: 10px;
    background: #fff;
    color: var(--text, #172033);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
    border-color: var(--sky, #2c7dc1);
    box-shadow: 0 0 0 3px rgba(44, 125, 193, .14);
}

.login-card button[type="submit"] {
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--primary, #003c6d);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.login-card button[type="submit"]:hover {
    background: #002f56;
    transform: translateY(-1px);
}

.login-card .error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}



.login-card h1 { margin: 0 0 8px; font-size: 30px; }
.login-card > p { margin: 0 0 24px; color: var(--text-secondary); }
.login-form { display: grid; gap: 18px; width: 100%; }
.login-label { display: grid; gap: 7px; width: 100%; color: var(--text-primary); font-size: 13px; font-weight: 600; }
.login-input { display: block; width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid var(--border-dark); border-radius: 8px; background: #fff; color: var(--text-primary); outline: none; }
.login-input:focus { border-color: var(--brand-sky); box-shadow: 0 0 0 3px rgba(44,125,193,.14); }
.login-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 11px 16px; border: 1px solid var(--brand-blue); border-radius: 8px; background: var(--brand-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.login-submit:hover { background: #002f56; }
.login-card .error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f4c7c3; border-radius: 8px; background: var(--danger-bg); color: var(--danger); }
@media (max-width: 520px) { .login-shell { padding: 16px; } .login-card { padding: 24px 20px; } .login-card h1 { font-size: 26px; } }


.variant-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
}

.variant-entry-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.variant-entry-table th,
.variant-entry-table td {
    padding: 12px;
    border-bottom: 1px solid #e8edf3;
    vertical-align: middle;
}

.variant-entry-table th {
    background: #f5f8fb;
    color: #003c6d;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.variant-entry-table tr:last-child td {
    border-bottom: 0;
}

.variant-entry-table .form-control {
    min-width: 110px;
}

.variant-entry-table .variant-sku {
    min-width: 72px;
    font-weight: 700;
    color: #003c6d;
}

.variant-row-inactive {
    opacity: 0.62;
    background: #fff4f4;
}

.variant-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.variant-section-header h2 {
    margin: 0;
    font-size: 18px;
    color: #003c6d;
}

.variant-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eaf3fb;
    color: #003c6d;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .variant-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}





.manufacturing-index-page {
    padding-top: 18px;
}

.manufacturing-order-meta-compact {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: #ffffff !important;
}

.manufacturing-meta-primary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    border-bottom: 1px solid #dbe5ed;
}

.manufacturing-meta-inline,
.manufacturing-meta-full-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 13px 16px;
    background: #ffffff;
}

.manufacturing-meta-inline:first-child {
    border-right: 1px solid #dbe5ed;
}

.manufacturing-meta-full-row {
    border-bottom: 1px solid #dbe5ed;
}

.manufacturing-meta-remarks-row {
    border-bottom: 0;
}

.manufacturing-meta-label {
    flex: 0 0 auto;
    color: #003c6d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.15px;
    text-transform: uppercase;
    white-space: nowrap;
}

.manufacturing-meta-value {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
}

.manufacturing-meta-date .manufacturing-meta-value,
.manufacturing-meta-brand .manufacturing-meta-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manufacturing-slider-form {
    padding: 16px 18px 18px;
}

.manufacturing-slide-control {
    --slide-progress: 0%;
    position: relative;
    height: 66px;
    overflow: hidden;
    border: 2px solid #9cc8e8;
    border-radius: 999px;
    background: #edf7fd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    isolation: isolate;
}

.manufacturing-slide-progress {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 0;
    width: var(--slide-progress);
    border-radius: inherit;
    background: linear-gradient(90deg, #d9effd 0%, #9fd3f5 100%);
    transition: width 80ms linear;
    pointer-events: none;
}

.manufacturing-slider-placeholder {
    position: absolute;
    inset: 0 18px 0 82px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #003c6d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.slider-placeholder-arrow {
    flex: 0 0 auto;
    font-size: 27px;
    font-weight: 500;
    line-height: 1;
}

.manufacturing-status-slider {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 1;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: grab;
}

.manufacturing-status-slider:active {
    cursor: grabbing;
}

.manufacturing-status-slider::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}

.manufacturing-status-slider::-moz-range-track {
    height: 100%;
    background: transparent;
}

.manufacturing-status-slider::-webkit-slider-thumb {
    width: 56px;
    height: 56px;
    margin-top: 3px;
    border: 6px solid #ffffff;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #004878;
    box-shadow: 0 3px 8px rgba(0, 60, 109, 0.25);
}

.manufacturing-status-slider::-moz-range-thumb {
    width: 44px;
    height: 44px;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: #004878;
    box-shadow: 0 3px 8px rgba(0, 60, 109, 0.25);
}

.manufacturing-slide-control.is-confirmable {
    border-color: #2c7dc1;
}

.manufacturing-slide-control.is-processing {
    border-color: #69b889;
    background: #edf9f1;
}

.manufacturing-slide-control.is-processing .manufacturing-slide-progress {
    background: #bfe8cd;
}

.manufacturing-slide-control.is-processing .manufacturing-slider-placeholder {
    color: #17643a;
}

.nav-link-logout {
    color: #b3181d;
}

.nav-link-logout:hover,
.nav-link-logout:focus {
    color: #ffffff;
    background: #d81d22;
}

@media (max-width: 768px) {
    .manufacturing-index-page {
        padding-top: 14px;
    }

    .manufacturing-order-meta-compact,
    .manufacturing-order-meta-compact * {
        box-sizing: border-box;
    }

    .manufacturing-order-meta-compact {
        display: block !important;
    }

    .manufacturing-meta-primary-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    }

    .manufacturing-meta-inline,
    .manufacturing-meta-full-row {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 11px 12px !important;
        border-right: 0 !important;
        background: #ffffff !important;
    }

    .manufacturing-meta-inline:first-child {
        border-right: 1px solid #dbe5ed !important;
    }

    .manufacturing-meta-label {
        flex: 0 0 auto !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .manufacturing-meta-value {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .manufacturing-meta-date .manufacturing-meta-value,
    .manufacturing-meta-brand .manufacturing-meta-value {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .manufacturing-slider-form {
        padding: 14px 14px 16px;
    }

    .manufacturing-slide-control {
        height: 60px;
    }

    .manufacturing-slider-placeholder {
        left: 72px;
        right: 12px;
        font-size: 14px;
        gap: 8px;
    }

    .slider-placeholder-arrow {
        font-size: 23px;
    }

    .manufacturing-status-slider::-webkit-slider-thumb {
        width: 52px;
        height: 52px;
        margin-top: 2px;
        border-width: 5px;
    }

    .manufacturing-status-slider::-moz-range-thumb {
        width: 42px;
        height: 42px;
        border-width: 5px;
    }

    .app-user:empty,
    .app-user:not(:has(.app-user-name:not(:empty))) {
        display: none;
    }
}

@media (max-width: 390px) {
    .manufacturing-meta-primary-row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
    }

    .manufacturing-meta-inline,
    .manufacturing-meta-full-row {
        padding: 10px 9px !important;
        gap: 4px !important;
    }

    .manufacturing-meta-label {
        font-size: 9px !important;
    }

    .manufacturing-meta-value {
        font-size: 10px !important;
    }
}
.order-product-picker::before,
.order-product-picker::after {
    content: none !important;
    display: none !important;
}

.client-filter-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    align-self: end;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    min-height: 44px;
}

.client-filter-actions .btn {
    width: auto;
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .client-filter-actions {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }

    .client-filter-actions .btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    .client-filter-actions .btn {
        width: auto;
    }
}
