/* =========================================================
   GLP WAREHOUSE WMS
   Prototype-style UI
   ========================================================= */

:root {
    --green-950: #06383a;
    --green-900: #073f41;
    --green-800: #0b4d4d;
    --green-700: #11665d;
    --green-600: #16845d;
    --green-500: #1b9567;

    --mint-50: #f5faf8;
    --mint-100: #edf7f3;
    --mint-200: #dfeee9;

    --text-900: #123b3c;
    --text-700: #45696a;
    --text-500: #6d8888;

    --border: #d5e3e1;
    --border-light: #e3ecea;

    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(7, 63, 65, 0.05);
    --shadow-md: 0 8px 24px rgba(7, 63, 65, 0.06);

    --radius: 12px;
}


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #bcebd7;
    color: #06383a;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at top left, rgba(166, 224, 206, 0.35), transparent 28%),
        linear-gradient(180deg, #edf7f3 0%, #f5faf8 100%);
    color: var(--text-900);
    font-size: 14px;
    line-height: 1.5;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, transform .12s ease;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(27, 149, 103, .28);
    outline-offset: 2px;
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

input::placeholder,
textarea::placeholder {
    color: #9aadaa;
    opacity: 1;
}

/* =========================================================
   PROFESSIONAL VISUAL REFRESH
   Additive polish layer: elevation, hover depth, sharper
   active/focus states. Does not alter layout structure.
   ========================================================= */

.sidebar {
    box-shadow: 6px 0 28px rgba(6, 56, 58, 0.2);
}

.brand-mark {
    box-shadow: 0 3px 10px rgba(6, 56, 58, 0.28);
}

.sidebar-nav a {
    font-weight: 600;
}

.sidebar-nav a.active {
    box-shadow:
        inset 3px 0 0 #62d7ae,
        0 1px 3px rgba(0, 0, 0, 0.12);
}

.top-header {
    box-shadow:
        0 1px 0 rgba(20, 60, 50, 0.03),
        0 6px 18px rgba(20, 60, 50, 0.035);
}

.header-user {
    box-shadow: 0 0 0 3px rgba(27, 149, 103, 0.14);
}

.ops-panel,
.card {
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.ops-panel:hover,
.card:hover {
    border-color: #c3dcd4;
    box-shadow: 0 10px 26px rgba(20, 60, 50, 0.07);
}

.ops-kpi-card,
.stat-card,
.kpi-card,
.report-kpi {
    transition: box-shadow .18s ease, transform .18s ease;
}

.ops-kpi-card:hover,
.stat-card:hover,
.kpi-card:hover,
.report-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20, 60, 50, 0.1);
}

.ops-refresh,
.inbound-btn,
.movement-primary,
.movement-warning,
.ops-data-button,
.report-clear,
button[type="submit"],
.btn-primary,
.primary-button {
    letter-spacing: .1px;
    box-shadow: 0 1px 2px rgba(20, 60, 50, 0.04);
}

.inbound-btn-green,
.movement-primary,
button[type="submit"],
.btn-primary,
.primary-button {
    box-shadow: 0 4px 12px rgba(19, 130, 89, 0.22);
}

.inbound-btn-green:hover,
.movement-primary:hover,
button[type="submit"]:hover,
.btn-primary:hover,
.primary-button:hover {
    box-shadow: 0 6px 16px rgba(19, 130, 89, 0.28);
}

thead th {
    letter-spacing: 1px;
}

.badge {
    border: 1px solid rgba(17, 115, 94, 0.12);
}

tbody tr:hover td {
    box-shadow: inset 0 0 0 9999px rgba(20, 60, 50, 0.012);
}

.auth-submit {
    box-shadow: 0 6px 18px rgba(19, 130, 89, 0.28);
}

.auth-submit:hover {
    box-shadow: 0 8px 22px rgba(19, 130, 89, 0.34);
}

.auth-form input:focus {
    box-shadow: 0 0 0 3px rgba(27, 149, 103, .12), 0 2px 8px rgba(20, 60, 50, .05);
}

/* =========================================================
   AUTHENTICATION
   ========================================================= */

body.auth {
    min-height: 100vh;
    background: #edf7f3;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 58px;
    overflow: hidden;
    background: linear-gradient(145deg, #06383a 0%, #0a5550 58%, #11665d 100%);
    color: #e9f5f2;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(150, 230, 202, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(150, 230, 202, .04), 0 0 0 70px rgba(150, 230, 202, .035);
}

.auth-brand-lockup,
.auth-mobile-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-lockup {
    position: relative;
    z-index: 1;
}

.auth-brand-lockup strong,
.auth-mobile-mark strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.auth-brand-lockup small {
    display: block;
    margin-top: 3px;
    color: #8dc0b5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: auto 0;
}

.auth-eyebrow {
    display: block;
    color: #16865b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.auth-brand-panel .auth-eyebrow {
    color: #77d5ae;
}

.auth-brand-copy h1 {
    margin: 14px 0 17px;
    color: #fff;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.auth-brand-copy h1 em {
    color: #8ee0bd;
    font-style: normal;
}

.auth-brand-copy p {
    max-width: 410px;
    margin: 0;
    color: #b7d8d0;
    font-size: 14px;
    line-height: 1.7;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    color: #83aca5;
    font-size: 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f5faf8;
}

.auth-form-wrap {
    width: min(100%, 390px);
}

.auth-mobile-mark {
    display: none;
}

.auth-form-wrap h2 {
    margin: 12px 0 7px;
    color: #183d35;
    font-size: 30px;
    letter-spacing: -.7px;
}

.auth-form-intro {
    margin: 0 0 29px;
    color: #6c857e;
    font-size: 13px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    margin: 0 0 7px;
    color: #55756d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    height: 44px;
    margin-bottom: 18px;
    padding: 0 13px;
    border: 1px solid #c5dbd3;
    border-radius: 8px;
    background: #fff;
    color: #183d35;
    font-size: 13px;
}

.auth-form input:focus {
    outline: none;
    border-color: #5eb492;
    box-shadow: 0 0 0 3px rgba(27, 149, 103, .1);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 45px;
    margin-top: 7px;
    padding: 0 15px 0 17px;
    border: 0;
    border-radius: 8px;
    background: #16865b;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.auth-submit:hover {
    background: #116d4c;
}

.auth-submit span {
    font-size: 19px;
    font-weight: 400;
}

.auth-note {
    margin: 23px 0 0;
    color: #78918a;
    font-size: 10px;
    text-align: center;
}

.auth-error,
.auth-field-error {
    color: #a04b3f;
    font-size: 11px;
}

.auth-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #efd0d0;
    border-radius: 7px;
    background: #fbeeee;
}

.auth-field-error {
    margin: -12px 0 13px;
}

@media (max-width: 800px) {
    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        min-height: 260px;
        padding: 28px 25px;
    }

    .auth-brand-copy {
        margin: 45px 0 10px;
    }

    .auth-brand-copy h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .auth-brand-copy p,
    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        min-height: calc(100vh - 260px);
        padding: 38px 25px;
    }
}

/* Supplied reference layout: shared desktop shell and page scale. */
@media (min-width: 821px) {
    .sidebar {
        width: 252px;
        min-width: 252px;
    }

    .brand {
        height: auto;
        min-height: 78px;
        padding: 24px 21px 20px;
        gap: 11px;
    }

    .brand-mark {
        width: 33px;
        height: 33px;
        border-radius: 9px;
        font-size: 16px;
        line-height: 12px;
    }

    .brand-mark span {
        font-size: 7px;
        letter-spacing: .8px;
    }

    .brand-text strong {
        font-size: 16px;
        letter-spacing: -.04em;
    }

    .brand-text small {
        margin-top: 2px;
        font-size: 10px;
        letter-spacing: 1.1px;
    }

    .sidebar-section {
        padding: 20px 25px 6px;
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .sidebar-nav {
        padding: 0;
    }

    .sidebar-nav a {
        min-height: 42px;
        padding: 0 15px;
        margin: 2px 10px;
        border-radius: 8px;
        font-size: 13px;
    }

    .main-area {
        margin-left: 252px;
        width: calc(100% - 252px);
    }

    .top-header {
        height: 72px;
        padding: 0 34px;
        gap: 25px;
    }

    .breadcrumb,
    .header-system,
    .header-date {
        font-size: 10px;
    }

    .page-title {
        font-size: 12px;
    }

    .page-subtitle {
        margin-top: 2px;
        font-size: 11px;
    }

    .header-right {
        gap: 13px;
    }

    .header-user,
    .logout-link {
        width: 27px;
        height: 27px;
        font-size: 9px;
        line-height: 27px;
    }

    .content {
        width: 100%;
        max-width: 1540px;
        padding: 0;
        gap: 0;
    }

    .ops-page,
    .inventory-page,
    .stock-page,
    .movements-page,
    .reports-page,
    .integrations-page,
    .account-page {
        width: 100%;
        max-width: 1540px;
        padding: 30px 34px 52px;
    }

    .ops-hero {
        gap: 30px;
        margin-bottom: 24px;
    }

    .ops-eyebrow {
        margin-bottom: 8px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .ops-hero h1 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .ops-hero p {
        margin-top: 10px;
        font-size: 14px;
    }

    .ops-panel,
    .card {
        padding: 20px;
        border-radius: 14px;
    }

    .ops-panel-header {
        gap: 15px;
        margin-bottom: 18px;
    }

    .ops-panel-header h2 {
        font-size: 15px;
    }

    .ops-panel-header p {
        margin-top: 5px;
        font-size: 10px;
    }

    .ops-kpi-grid,
    .report-kpi-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 11px;
    }

    .ops-kpi-card {
        min-height: 123px;
        padding: 17px;
        border-radius: 14px;
    }

    .ops-kpi-label {
        font-size: 11px;
    }

    .ops-kpi-value {
        margin-top: 17px;
        font-size: 30px;
    }

    .ops-kpi-note {
        margin-top: 1px;
        font-size: 11px;
    }

    .ops-two-column {
        gap: 16px;
        margin-bottom: 16px;
    }

    .ops-line-grid {
        gap: 8px;
    }

    .ops-line-card {
        padding: 12px;
        border-radius: 10px;
    }

    .ops-line-card span {
        font-size: 11px;
    }

    .ops-line-card strong {
        margin: 7px 0 6px;
        font-size: 21px;
    }

    .ops-line-card small {
        font-size: 11px;
    }

    .stock-filter-panel,
    .report-filter-grid,
    .integration-form-grid,
    .account-form-grid {
        gap: 13px;
    }

    .stock-filter-panel label,
    .report-filter-grid label,
    .integration-form-grid label,
    .account-form-grid label {
        font-size: 10px;
    }

    .stock-filter-panel input,
    .stock-filter-panel select,
    .report-filter-grid input,
    .report-filter-grid select,
    .integration-form-grid input,
    .integration-form-grid select,
    .account-form-grid input,
    .account-form-grid select {
        height: 40px;
        min-height: 40px;
        font-size: 12px;
    }

    .report-kpi {
        min-height: 78px;
        padding: 13px 14px;
        border-radius: 12px;
    }

    .report-kpi small {
        font-size: 10px;
    }

    .report-kpi strong {
        margin-top: 8px;
        font-size: 24px;
    }

    .inventory-page tbody td,
    .stock-page tbody td,
    .movements-page tbody td,
    .reports-page tbody td,
    .integrations-page tbody td,
    .account-page tbody td {
        font-size: 12px;
    }
}

@media (min-width: 821px) and (max-width: 1180px) {
    .ops-kpi-grid,
    .report-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-two-column,
    .ops-bottom-grid {
        grid-template-columns: 1fr;
    }

    .stock-filter-panel,
    .report-filter-grid,
    .integration-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .auth-brand-panel {
        min-height: 185px;
    }

    .auth-brand-copy,
    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        min-height: calc(100vh - 185px);
        padding: 32px 22px;
    }

    .auth-mobile-mark {
        display: flex;
        margin-bottom: 28px;
    }

    .auth-mobile-mark .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .auth-mobile-mark .brand-mark span {
        font-size: 7px;
    }

    .auth-mobile-mark strong {
        color: #183d35;
        font-size: 15px;
    }
}


/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 252px;
    min-width: 252px;

    min-height: 100vh;

    background:
        linear-gradient(180deg,
            #06383a 0%,
            #073d3f 55%,
            #063537 100%);

    color: #e9f5f2;

    display: flex;
    flex-direction: column;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    z-index: 20;

    border-right: 1px solid rgba(255, 255, 255, 0.04);
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    height: 112px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
    width: 40px;
    height: 40px;

    background: #ffffff;

    color: #06383a;

    border-radius: 9px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    font-size: 19px;
    font-weight: 800;

    line-height: 14px;

    flex-shrink: 0;
}

.brand-mark span {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 700;

    letter-spacing: -0.2px;
}

.brand-text small {
    margin-top: 3px;

    font-size: 8px;
    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #91b8b2;
}


/* =========================================================
   SIDEBAR SECTION
   ========================================================= */

.sidebar-section {
    padding: 26px 20px 9px;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #78aaa3;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.sidebar-nav {
    padding: 0 9px;
}

.sidebar-nav a {
    min-height: 42px;

    padding: 0 12px;

    margin: 2px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    text-decoration: none;

    color: #d5e8e5;

    border-radius: 9px;

    font-size: 13px;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.sidebar-nav a.active {
    background: rgba(74, 168, 143, 0.22);

    color: #ffffff;

    box-shadow:
        inset 3px 0 0 #62d7ae;
}

.nav-arrow {
    font-size: 20px;
    line-height: 1;

    color: #78d4b5;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding: 20px 18px 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shift-title {
    color: #78aaa3;

    font-size: 9px;

    letter-spacing: 1.4px;

    font-weight: 700;

    margin-bottom: 7px;
}

.shift-active {
    color: #e6f3f0;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 3px;
}

.shift-active span {
    color: #7bd8b2;
    font-size: 9px;
}

.shift-subtitle {
    color: #7ea9a4;

    font-size: 11px;
}

.reset-button {
    margin-top: 13px;

    background: transparent;

    color: #d4e7e3;

    border: 0;

    padding: 4px 0;

    font-size: 11px;
}

.reset-button:hover {
    color: #ffffff;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.main-area {
    margin-left: 252px;

    width: calc(100% - 252px);

    min-height: 100vh;

    background:
        radial-gradient(circle at 80% 0%,
            rgba(191, 235, 219, 0.45),
            transparent 30%),
        linear-gradient(180deg, #f3faf7 0%, #edf6f2 100%);
}


/* =========================================================
   HEADER
   ========================================================= */

.top-header {
    height: 100px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    padding: 0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}

.mobile-page-selector {
    display: none;
    position: relative;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 10px;
    background: rgba(255, 255, 255, 0.38);
    border-bottom: 1px solid rgba(13, 74, 67, 0.08);
}

.mobile-page-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
    min-height: 42px;
    padding: 0 12px 0 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(116, 170, 156, 0.65);
    border-radius: 10px;
    color: #0e4b46;
    box-shadow: 0 2px 8px rgba(12, 62, 57, 0.04);
    text-align: left;
}

.mobile-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(19, 120, 93, 0.10);
    color: #0d6559;
    font-size: 18px;
    line-height: 1;
}

.mobile-page-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.mobile-page-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 2px;
}

.mobile-page-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1c9b7d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.mobile-logout-form {
    display: flex;
}

.mobile-logout-link {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(116, 170, 156, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #0d6559;
    font-size: 16px;
    line-height: 1;
}

.mobile-page-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(116, 170, 156, 0.7);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(9, 46, 43, 0.12);
    z-index: 50;
}

.mobile-page-menu.is-open {
    display: flex;
}

.mobile-page-link {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 9px;
    background: transparent;
    color: #195451;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
}

.mobile-page-link.active,
.mobile-page-link:hover {
    background: rgba(25, 142, 106, 0.09);
    border-color: rgba(25, 142, 106, 0.18);
}

.header-left {
    min-width: 0;
}

.breadcrumb {
    color: #527474;

    font-size: 12px;

    margin-bottom: 3px;
}

.breadcrumb span {
    padding: 0 6px;

    color: #9bb1b0;
}

.page-title {
    color: var(--text-900);

    font-size: 17px;

    font-weight: 700;

    line-height: 1.2;
}

.page-subtitle {
    color: #6e8988;

    font-size: 11px;

    margin-top: 3px;
}

.header-right {
    display: flex;

    align-items: center;

    gap: 13px;

    color: #527272;

    white-space: nowrap;
}

.header-system {
    font-size: 11px;
}

.header-system span {
    color: #a1b5b3;
    padding: 0 4px;
}

.header-date {
    font-size: 11px;

    padding-left: 13px;

    border-left: 1px solid var(--border);
}

.header-user {
    width: 31px;
    height: 31px;

    border-radius: 50%;

    background: var(--green-600);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;
    font-weight: 700;

    overflow: hidden;
}

.logout-link {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--green-700);
    font-size: 17px;
    line-height: 31px;
}

.logout-link:hover {
    color: var(--green-500);
}

.header-account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logout-form {
    display: flex;
    margin: 0;
}

.header-switch-user {
    display: flex;
    align-items: center;
}

.header-switch-user span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.header-switch-user select {
    width: 112px;
    height: 31px;
    padding: 0 8px;
    border: 1px solid #bdd5cc;
    border-radius: 7px;
    background: #fff;
    color: #214c42;
    font-size: 10px;
}

.header-return-owner {
    height: 31px;
    padding: 0 9px;
    border: 1px solid #bdd5cc;
    border-radius: 7px;
    background: #e5f1ed;
    color: #214c42;
    font-size: 10px;
    font-weight: 700;
}

.header-return-owner:hover {
    background: #d9ebe5;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content {
    padding: 24px 28px 42px;
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content > * {
    animation: fadeSlideUp 0.32s ease both;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(149, 194, 182, 0.7);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(14, 47, 45, 0.04);
    padding: 20px;
    margin-bottom: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.ops-panel:hover,
.report-kpi:hover,
.toolbar input:hover,
.toolbar select:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 47, 45, 0.08);
}

.card h2,
.card h3 {
    margin: 0;

    color: var(--text-900);

    font-weight: 700;

    letter-spacing: -0.3px;
}

.card h2 {
    font-size: 17px;
}

.card h3 {
    font-size: 15px;
}

.card p {
    margin: 6px 0 0;

    color: var(--text-700);

    font-size: 12px;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    flex-wrap: wrap;
}

.toolbar input,
.toolbar select {
    height: 40px;
    border: 1px solid rgba(143, 183, 172, 0.95);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-900);
    padding: 0 12px;
    outline: none;
    min-width: 180px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.toolbar input::placeholder {
    color: #8ca4a2;
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: #7bbda9;

    box-shadow:
        0 0 0 3px rgba(27, 149, 103, 0.08);
}


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

button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fbfa;
    color: var(--text-900);
    font-size: 12px;
    font-weight: 600;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

button:hover {
    background: #edf6f2;
    border-color: #bdd5cf;
    box-shadow: 0 6px 16px rgba(17, 70, 64, 0.08);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}


/* Green primary button */

button[type="submit"],
.btn-primary,
.primary-button {
    background: var(--green-600);

    color: #ffffff;

    border-color: var(--green-600);
}

button[type="submit"]:hover,
.btn-primary:hover,
.primary-button:hover {
    background: var(--green-700);

    border-color: var(--green-700);
}


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

table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    overflow: hidden;

    font-size: 12px;
}

thead th {
    background: #f2f8f6;

    color: #557776;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    padding: 10px 10px;

    text-align: left;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

thead th:first-child {
    border-left: 1px solid var(--border);

    border-top-left-radius: 8px;
}

thead th:last-child {
    border-right: 1px solid var(--border);

    border-top-right-radius: 8px;
}

tbody td {
    padding: 12px 10px;

    color: #174b4d;

    border-bottom: 1px solid var(--border-light);

    vertical-align: middle;

    background: #ffffff;
}

tbody tr:hover td {
    background: #f8fcfa;
}

tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
}


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

.badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 24px;

    padding: 3px 9px;

    border-radius: 999px;

    background: #edf6f3;

    color: #11735e;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


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

.badge.PASS,
.badge.pass {
    background: #e7f5ee;
    color: #147556;
}

.badge.FAIL,
.badge.fail {
    background: #fceceb;
    color: #a34747;
}

.badge.REWORK,
.badge.rework {
    background: #fff4dc;
    color: #9a6a18;
}

.badge.PENDING,
.badge.pending {
    background: #eef3f2;
    color: #607978;
}


/* =========================================================
   FORMS
   ========================================================= */

form {
    width: 100%;
}

input,
select,
textarea {
    border: 1px solid var(--border);

    border-radius: 8px;

    background: #ffffff;

    color: var(--text-900);

    outline: none;
}

input,
select {
    height: 40px;

    padding: 0 12px;
}

textarea {
    padding: 11px 12px;

    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #79bba6;

    box-shadow:
        0 0 0 3px rgba(27, 149, 103, 0.08);
}


/* =========================================================
   REGISTER / EDIT AREAS
   ========================================================= */

#registerCard {
    background: #ffffff;

    border-color: #cfe1dc;
}

#registerCard h3 {
    margin-bottom: 15px;
}

#registerMessage {
    font-size: 12px;
}


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

td button {
    min-height: 34px;

    padding: 0 12px;

    font-size: 11px;
}

td button:hover {
    background: #edf7f3;
}


/* =========================================================
   TEST RESULT OPTIONS
   ========================================================= */

[id^="options-"] {
    display: none;

    gap: 5px;

    align-items: center;

    flex-wrap: wrap;
}

[id^="options-"] button {
    min-height: 30px;

    padding: 0 9px;

    font-size: 10px;
}

[id^="options-"] button:first-child {
    background: #e8f5ee;
    color: #147556;
    border-color: #cce6d9;
}

[id^="options-"] button:nth-child(2) {
    background: #fff5df;
    color: #986b1d;
    border-color: #ead9af;
}

[id^="options-"] button:nth-child(3) {
    background: #fbecec;
    color: #a14949;
    border-color: #efd0d0;
}


/* =========================================================
   FILTER / SEARCH AREA
   ========================================================= */

#q {
    flex: 1;

    min-width: 260px;
}

#statusFilter,
#gradeFilter {
    flex: 1;

    min-width: 180px;
}

#clearFilters {
    min-width: 70px;
}


/* =========================================================
   DASHBOARD STAT CARDS
   ========================================================= */

.stats,
.stat-grid,
.kpi-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 18px;
}

.stat-card,
.kpi-card {
    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 14px 15px;

    min-height: 78px;
}

.stat-card small,
.kpi-card small {
    display: block;

    color: #668180;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    font-weight: 700;

    margin-bottom: 6px;
}

.stat-card strong,
.kpi-card strong {
    display: block;

    font-size: 20px;

    line-height: 1;

    color: var(--text-900);
}


/* =========================================================
   TWO-COLUMN PROTOTYPE LAYOUT
   ========================================================= */

.two-column {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);

    gap: 14px;
}

.three-column {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    min-height: 160px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    color: #6f8886;
}

.empty-state strong {
    color: #365c5b;

    margin-bottom: 4px;
}


/* =========================================================
   ALERTS / MESSAGES
   ========================================================= */

.success,
.alert-success {
    padding: 10px 12px;

    border-radius: 8px;

    background: #eaf6f0;

    color: #147154;

    border: 1px solid #cce8da;
}

.error,
.alert-error {
    padding: 10px 12px;

    border-radius: 8px;

    background: #fbeeee;

    color: #9e4444;

    border: 1px solid #efd0d0;
}

.warning,
.alert-warning {
    padding: 10px 12px;

    border-radius: 8px;

    background: #fff6e1;

    color: #956918;

    border: 1px solid #eeddb3;
}


/* =========================================================
   LINKS
   ========================================================= */

.content a {
    color: #126d62;

    text-decoration: none;
}

.content a:hover {
    color: #0c554e;
}


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

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    border-radius: 8px;
}


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

@media (max-width: 1100px) {

    .sidebar {
        width: 220px;
        min-width: 220px;
    }

    .main-area {
        margin-left: 220px;

        width: calc(100% - 220px);
    }

    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .top-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-system,
    .header-date {
        display: none;
    }

    .stats,
    .stat-grid,
    .kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-area {
        width: 100%;
        margin-left: 0;
        min-height: 100vh;
        background: #dfeee8;
    }

    .mobile-page-selector {
        display: flex;
    }

    .top-header {
        display: none;
    }

    .header-left {
        width: 100%;
    }

    .header-right {
        display: none;
    }

    .content {
        padding: 15px;
    }

    .card {
        padding: 15px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar input,
    .toolbar select,
    .toolbar button {
        width: 100%;
    }

    .two-column,
    .three-column,
    .stats,
    .stat-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 850px;
    }
}


@media (max-width: 600px) {
    .content {
        padding: 15px;
    }

    .card {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   OPERATIONS DESK
   Prototype styling
   ========================================================= */

.ops-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 34px 50px;
}

.inventory-page,
.stock-page,
.movements-page,
.reports-page,
.integrations-page,
.account-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 34px 50px;
}

.inventory-page .ops-panel,
.stock-page .ops-panel,
.movements-page .ops-panel,
.reports-page .ops-panel,
.integrations-page .ops-panel,
.account-page .ops-panel {
    border: 1px solid #d6e3de;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 60, 50, 0.025);
}

.inventory-page label,
.stock-page label,
.movements-page label,
.reports-page label,
.integrations-page label,
.account-page label,
.report-preview-field,
.inventory-receive-fields label,
.inventory-imei-field,
.stock-filter-panel label,
.report-filter-grid label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.inventory-page input,
.inventory-page select,
.inventory-page textarea,
.stock-page input,
.stock-page select,
.stock-page textarea,
.movements-page input,
.movements-page select,
.movements-page textarea,
.reports-page input,
.reports-page select,
.reports-page textarea,
.integrations-page input,
.integrations-page select,
.integrations-page textarea,
.account-page input,
.account-page select,
.account-page textarea,
.report-preview-field input,
.report-preview-field select,
.stock-filter-panel input,
.stock-filter-panel select,
.report-filter-grid input,
.report-filter-grid select,
.integration-form-grid input,
.integration-form-grid select,
.account-create-user input,
.account-create-user select {
    width: 100%;
    min-width: 0;
    border: 1px solid #bdd7cf;
    border-radius: 7px;
    background: #fff;
    color: #234947;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.inventory-page input,
.inventory-page select,
.stock-page input,
.stock-page select,
.movements-page input,
.movements-page select,
.reports-page input,
.reports-page select,
.integrations-page input,
.integrations-page select,
.account-page input,
.account-page select {
    min-height: 40px;
    padding: 0 10px;
}

.inventory-page textarea,
.stock-page textarea,
.movements-page textarea,
.reports-page textarea,
.integrations-page textarea,
.account-page textarea,
.report-preview-field textarea {
    min-height: 90px;
    padding: 10px 12px;
    resize: vertical;
}

.inventory-page table,
.stock-page table,
.movements-page table,
.reports-page table,
.integrations-page table,
.account-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.inventory-page thead th,
.stock-page thead th,
.movements-page thead th,
.reports-page thead th,
.integrations-page thead th,
.account-page thead th {
    background: #f1f8f6;
    color: #355f5b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.inventory-page tbody td,
.stock-page tbody td,
.movements-page tbody td,
.reports-page tbody td,
.integrations-page tbody td,
.account-page tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #edf3f1;
    color: #23483f;
    font-size: 12px;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.ops-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.ops-hero-copy {
    min-width: 0;
}

.ops-eyebrow {
    margin-bottom: 8px;
    color: #11885d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ops-hero h1 {
    margin: 0;
    color: #173c35;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.ops-hero p {
    margin: 10px 0 0;
    color: #617d75;
    font-size: 14px;
    line-height: 1.5;
}

.ops-hero-action {
    flex-shrink: 0;
}

.ops-refresh {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #e5f1ed;
    color: #214c42;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ops-refresh:hover {
    background: #d9ebe5;
}


/* ---------------------------------------------------------
   KPI GRID
   --------------------------------------------------------- */

.ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ops-kpi-card {
    position: relative;
    min-height: 116px;
    overflow: hidden;
    padding: 18px 17px 16px;
    border: 1px solid #d7e4df;
    border-top-width: 3px;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 60, 50, 0.03);
}

.ops-kpi-green {
    border-top-color: #13895c;
}

.ops-kpi-yellow {
    border-top-color: #f5b718;
}

.ops-kpi-red {
    border-top-color: #dc3328;
}

.ops-kpi-neutral {
    border-top-color: #d7e4df;
}

.ops-kpi-label {
    position: relative;
    z-index: 2;
    color: #68827b;
    font-size: 10px;
    font-weight: 700;
}

.ops-kpi-value {
    position: relative;
    z-index: 2;
    margin-top: 15px;
    color: #183d35;
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
}

.ops-kpi-note {
    position: relative;
    z-index: 2;
    margin-top: 9px;
    color: #718983;
    font-size: 10px;
}

.ops-kpi-decoration {
    position: absolute;
    right: -10px;
    bottom: -24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(246, 190, 44, 0.18);
}


/* ---------------------------------------------------------
   TWO COLUMN SECTIONS
   --------------------------------------------------------- */

.ops-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
    gap: 14px;
    margin-bottom: 14px;
}

.ops-bottom-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.ops-panel {
    min-width: 0;
    padding: 19px;
    border: 1px solid #d6e3de;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 60, 50, 0.025);
}

.ops-location-panel,
.ops-exceptions-panel {
    min-height: 275px;
}

.ops-exceptions-panel {
    height: 360px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ops-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.ops-panel-header h2 {
    margin: 0;
    color: #183d35;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.ops-panel-header p {
    margin: 5px 0 0;
    color: #6c857e;
    font-size: 10px;
    line-height: 1.4;
}

.ops-live-badge {
    padding: 4px 9px;
    border-radius: 20px;
    background: #e5f5ee;
    color: #19865c;
    font-size: 9px;
    font-weight: 800;
}

.ops-warning-icon {
    color: #efac16;
    font-size: 18px;
}

.ops-activity-icon {
    color: #15865b;
    font-size: 19px;
}

.ops-panel-link,
.ops-review-link {
    color: #16875c;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.ops-panel-link:hover,
.ops-review-link:hover {
    text-decoration: underline;
}

.ops-day-summary {
    margin-bottom: 14px;
}

.ops-day-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ops-day-summary-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #cce2d9;
    background: #f3faf7;
}

.ops-day-summary-grid strong {
    color: #16865b;
    font-size: 22px;
}

.ops-day-summary-grid span {
    color: #52736a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   LOCATION SUMMARY
   --------------------------------------------------------- */

.ops-location-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding-top: 3px;
}

.ops-location-row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 14px;
}

.ops-location-title {
    color: #29483f;
    font-size: 11px;
    font-weight: 700;
}

.ops-location-bar-wrap {
    height: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: #e6efeb;
}

.ops-location-bar {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
}

.ops-bar-green {
    background: #16865b;
}

.ops-bar-yellow {
    background: #f5b51b;
}

.ops-location-number {
    color: #28483f;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}


/* ---------------------------------------------------------
   EXCEPTIONS
   --------------------------------------------------------- */

.ops-exception-list {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.ops-exception-scroll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding-right: 6px;
    scrollbar-color: #8bb9a8 #edf4f1;
    scrollbar-width: thin;
}

.ops-exception-scroll::-webkit-scrollbar {
    width: 8px;
}

.ops-exception-scroll::-webkit-scrollbar-track {
    background: #edf4f1;
    border-radius: 8px;
}

.ops-exception-scroll::-webkit-scrollbar-thumb {
    background: #8bb9a8;
    border-radius: 8px;
}

.ops-exception-records {
    min-width: 900px;
}

.ops-exception-table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

.ops-exception-table th,
.ops-exception-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d9e5e0;
    text-align: left;
    white-space: nowrap;
}

.ops-exception-table th {
    color: #52736a;
    background: #f1f8f5;
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ops-exception-table td {
    color: #29483f;
    font-size: 10px;
}

.ops-exception {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #d9e5e0;
}

.ops-exception:first-child {
    padding-top: 0;
}

.ops-exception-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #fff3dc;
    color: #d58a10;
    font-size: 12px;
}

.ops-exception strong {
    display: block;
    color: #29483f;
    font-size: 10px;
    line-height: 1.4;
}

.ops-exception p {
    margin: 4px 0 0;
    color: #718982;
    font-size: 9px;
    line-height: 1.45;
}

.ops-review-link {
    display: inline-block;
    margin-top: 14px;
}


/* ---------------------------------------------------------
   PRODUCTION LINES
   --------------------------------------------------------- */

.ops-line-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.ops-line-card {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid #cfe5dc;
    border-radius: 9px;
    background: #eef8f4;
}

.ops-line-card span {
    display: block;
    color: #668179;
    font-size: 9px;
    font-weight: 700;
}

.ops-line-card strong {
    display: block;
    margin: 7px 0 6px;
    color: #12865b;
    font-size: 18px;
}

.ops-line-card small {
    display: block;
    margin-top: 3px;
    color: #69827b;
    font-size: 8px;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   MOVEMENTS
   --------------------------------------------------------- */

.ops-movement-list {
    display: flex;
    flex-direction: column;
}

.ops-movement-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #d9e5e0;
}

.ops-movement-dot {
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    background: #67b898;
}

.ops-movement-content strong {
    display: block;
    color: #29483f;
    font-size: 9px;
    line-height: 1.35;
}

.ops-movement-content span,
.ops-movement-content small {
    display: block;
    margin-top: 3px;
    color: #708880;
    font-size: 8px;
}

.ops-movement-row time {
    color: #718780;
    font-size: 8px;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   EMPTY STATES
   --------------------------------------------------------- */

.ops-empty {
    padding: 30px 10px;
    color: #7a908a;
    font-size: 11px;
    text-align: center;
}

.movement-empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1200px) {
    .ops-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .ops-two-column,
    .ops-bottom-grid {
        grid-template-columns: 1fr;
    }

    .ops-line-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .ops-page {
        padding: 22px 16px 35px;
    }

    .ops-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-hero h1 {
        font-size: 28px;
    }

    .ops-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-location-row {
        grid-template-columns: 80px minmax(0, 1fr) 40px;
    }
}

/* =========================================================
   MOVEMENTS & REWORK WORKSPACE
   ========================================================= */

.movements-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 34px 50px;
}

.movements-hero {
    margin-bottom: 26px;
}

.movements-hero h1 {
    font-size: 34px;
}

.movements-hero p {
    margin: 10px 0 0;
    font-size: 14px;
}

.movements-data-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.movement-tool-button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #bdd8cf;
    border-radius: 7px;
    background: #fff;
    color: #14785e;
    font-size: 11px;
    font-weight: 800;
}

.movement-tool-button:hover {
    background: #edf8f3;
}

.movements-action-grid,
.movements-history-grid {
    gap: 14px;
}

.movements-history-grid {
    margin-top: 14px;
}

.movement-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.movement-card-header h2 {
    margin: 0 0 3px;
    color: #183f3d;
    font-size: 15px;
}

.movement-card-header p {
    margin: 0;
    color: #6b8781;
    font-size: 11px;
}

.movement-card-icon {
    font-size: 21px;
    line-height: 1;
}

.movement-icon-green {
    color: #188465;
}

.movement-icon-amber {
    color: #8d6a3a;
}

.movement-note {
    margin-bottom: 13px;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.movement-note-blue {
    border-color: #c7e3e2;
    background: #eaf7f7;
    color: #3b6c6a;
}

.movement-note-amber {
    border-color: #eed5a2;
    background: #fff4df;
    color: #896627;
}

.movement-fields {
    display: grid;
    gap: 11px;
    margin-bottom: 12px;
}

.movement-fields-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movement-fields-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movements-page label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: #6a8580;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.movements-page input,
.movements-page select,
.movements-page textarea {
    width: 100%;
    min-width: 0;
    border-color: #bdd7cf;
    border-radius: 7px;
    color: #234947;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.movements-page input,
.movements-page select {
    height: 34px;
    padding: 0 10px;
}

.movements-page textarea {
    min-height: 78px;
    padding: 10px;
    resize: vertical;
}

.movement-field-full {
    display: flex;
    margin-bottom: 12px;
}

.movement-actions {
    display: flex;
    justify-content: flex-start;
}

.movement-primary,
.movement-warning {
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.movement-primary {
    background: #138259;
}

.movement-primary:hover {
    background: #0d6948;
}

.movement-warning {
    background: #f5b51b;
    color: #58420d;
}

.movement-warning:hover {
    background: #e4a40d;
}

.movement-message {
    margin-bottom: 14px;
    padding: 10px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.movement-message-success {
    border: 1px solid #bfe1d0;
    background: #eaf8f0;
    color: #196d4f;
}

.movement-message-error {
    border: 1px solid #efd0c9;
    background: #fff0ed;
    color: #a04b3f;
}

.movement-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
}

.movement-history-card {
    padding-bottom: 12px;
}

.movement-history-card table {
    min-width: 560px;
}

.movement-history-card thead th {
    padding: 8px 10px;
    font-size: 8px;
}

.movement-history-card tbody td {
    padding: 10px;
    font-size: 11px;
}

.movement-empty {
    height: 145px;
    text-align: center;
    color: #78918d;
}

.movement-empty strong,
.movement-empty b,
.movement-empty span {
    display: block;
}

.movement-empty strong {
    margin-bottom: 8px;
    color: #77938c;
    font-size: 22px;
    font-weight: 400;
}

.movement-empty b {
    color: #486965;
    font-size: 12px;
}

.movement-empty span {
    margin-top: 3px;
    font-size: 10px;
}

.ops-movement-row {
    color: inherit;
    text-decoration: none;
}

.ops-movement-row:hover {
    background: #f5faf8;
}

.stock-filter-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 11px;
}

.stock-filter-panel label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.stock-filter-panel input,
.stock-filter-panel select {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-color: #b9d4ca;
    border-radius: 7px;
    color: #274942;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.stock-filter-search {
    grid-column: span 2;
}

.stock-clear-filter {
    grid-column: 4;
    justify-self: end;
    align-self: end;
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #13815a;
    font-size: 11px;
    font-weight: 800;
}

.stock-clear-filter:hover {
    text-decoration: underline;
}


.integration-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.integration-upload input[type="file"] {
    min-height: 40px;
    padding: 8px 10px;
}

.integration-result {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid #d6e3de;
    border-radius: 8px;
    background: #f5faf8;
    color: #365c56;
    font: inherit;
    font-size: 12px;
}

.integration-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.integration-field input,
.integration-field select {
    height: 40px;
    padding: 0 12px;
    border-color: #b9d4ca;
    border-radius: 8px;
    color: #274942;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.integration-save {
    margin-top: 3px;
}

.integration-notice {
    margin: -8px 0 14px;
    padding: 11px 14px;
    border: 1px solid #c6e3e3;
    border-radius: 8px;
    background: #eaf7f7;
    color: #3b6c6a;
    font-size: 11px;
}

.integration-message {
    margin-bottom: 14px;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.integration-message.success {
    border: 1px solid #cce8da;
    background: #eaf6f0;
    color: #147154;
}

.integration-message.error {
    border: 1px solid #efd0d0;
    background: #fbeeee;
    color: #9e4444;
}

.integration-card-grid {
    align-items: stretch;
}

.integration-card {
    min-width: 0;
    padding: 19px;
}

.integration-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.integration-card-title h2 {
    margin: 0;
    color: #183d35;
    font-size: 15px;
}

.integration-card-title p {
    margin: 5px 0 0;
    color: #6c857e;
    font-size: 10px;
}

.integration-icon {
    color: #18966a;
    font-size: 20px;
}

.integration-icon-dark {
    color: #6b5d49;
}

.integration-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

.integration-status span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fbeceb;
    color: #a45e56;
    font-size: 9px;
    font-weight: 800;
}

.integration-status small {
    color: #78918a;
    font-size: 10px;
}

.integration-description {
    min-height: 43px;
    margin: 13px 0 19px;
    color: #6a837c;
    font-size: 11px;
    line-height: 1.5;
}

.integration-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, .75fr) minmax(0, .75fr);
    gap: 12px 10px;
    align-items: end;
}

.integration-form-grid label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.integration-form-grid label:first-child {
    grid-column: span 1;
}

.integration-form-grid input,
.integration-form-grid select {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border-color: #b9d4ca;
    border-radius: 7px;
    color: #274942;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.integration-enable {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 11px;
    border: 1px solid #cfe2dc;
    border-radius: 8px;
    background: #eaf3f0;
    color: #537169;
}

.integration-enable input {
    margin-top: 2px;
    accent-color: #16865b;
}

.integration-enable span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.integration-enable strong {
    color: #365c55;
    font-size: 10px;
}

.integration-enable small {
    font-size: 9px;
}

.integration-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 13px;
}

.integration-connect {
    padding: 0;
    border: 0;
    background: transparent;
    color: #16865b;
    font-size: 11px;
    font-weight: 800;
}

.integration-connect:hover {
    text-decoration: underline;
}

.integration-ownership {
    margin-top: 14px;
}

.integration-ownership table {
    min-width: 620px;
}

.integration-ownership tbody td {
    padding: 10px;
    font-size: 11px;
}

.ownership-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.ownership-blue {
    background: #e6f0fb;
    color: #4b79ae;
}

.ownership-green {
    background: #e7f5ee;
    color: #268264;
}

.ownership-yellow {
    background: #fff1d7;
    color: #a17426;
}

.integration-import-panel {
    margin-top: 14px;
}

.inventory-validation-note {
    margin: -8px 0 14px;
    padding: 11px 14px;
    border: 1px solid #c6e3e3;
    border-radius: 8px;
    background: #eaf7f7;
    color: #3b6c6a;
    font-size: 11px;
}

.inventory-receive-card {
    padding: 19px 21px;
}

.inventory-receive-fields {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr;
    gap: 12px;
}

.inventory-receive-fields label,
.inventory-imei-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.inventory-receive-fields input,
.inventory-receive-fields select,
.inventory-imei-field textarea {
    width: 100%;
    min-width: 0;
    border-color: #b9d4ca;
    border-radius: 8px;
    color: #274942;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.inventory-receive-fields input,
.inventory-receive-fields select {
    height: 40px;
    padding: 0 12px;
}

.inventory-receive-fields input[readonly] {
    background: #fff;
}

.inventory-imei-field {
    margin-top: 14px;
}

.inventory-imei-field textarea {
    min-height: 120px;
    padding: 11px 12px;
    resize: vertical;
}

.inventory-receive-actions {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.inventory-message {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.inventory-message-success {
    border: 1px solid #cce8da;
    background: #eaf6f0;
    color: #147154;
}

.inventory-message-error {
    border: 1px solid #efd0d0;
    background: #fbeeee;
    color: #9e4444;
}

.inventory-history-card {
    margin-top: 14px;
    height: 480px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inventory-history-card .inventory-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: scroll;
    scrollbar-color: #8bb9a8 #edf4f1;
    scrollbar-width: thin;
}

.inventory-history-card .inventory-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.inventory-history-card .inventory-table-wrap::-webkit-scrollbar-track {
    background: #edf4f1;
}

.inventory-history-card .inventory-table-wrap::-webkit-scrollbar-thumb {
    background: #8bb9a8;
    border-radius: 8px;
}

.inventory-history-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.inventory-history-actions .ops-refresh {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
}

.inventory-empty {
    padding: 34px 10px;
    color: #7a908a;
    text-align: center;
}

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

@media (max-width: 560px) {
    .inventory-receive-fields {
        grid-template-columns: 1fr;
    }

    .inventory-receive-actions,
    .inventory-history-actions {
        flex-wrap: wrap;
    }
}

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

    .integration-form-grid label:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 650px) {
    .integration-form-grid {
        grid-template-columns: 1fr;
    }

    .integration-form-grid label:first-child {
        grid-column: auto;
    }

    .integration-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .stock-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-filter-search {
        grid-column: span 2;
    }

    .stock-clear-filter {
        grid-column: 2;
    }
}

@media (max-width: 1000px) {
    .movement-fields-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .movements-page {
        padding-top: 0;
    }

    .movements-hero,
    .movements-action-grid,
    .movements-history-grid {
        grid-template-columns: 1fr;
    }

    .movements-hero {
        display: block;
    }

    .movements-data-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

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

/* Legacy template fragment retained for reference, but excluded from CSS parsing.
{% extends "wms/base.html" %}
{% load static %}

{% block content %}
<link rel="stylesheet" href="{% static 'wms/css/inbound.css' %}">

<div class="inbound-page">

    <!-- PAGE HEADER -->
    <header class="inbound-hero">
        <div class="inbound-hero-copy">
            <div class="inbound-eyebrow">DOCK → LINE</div>
            <h1>Inbound &amp; testing</h1>
            <p>Register devices once, then keep their identity attached through every production event.</p>
        </div>

        <div class="inbound-hero-actions">
            <div class="inbound-export-actions">
                <button type="button" class="inbound-header-btn">
                    <span class="inbound-btn-icon">⇧</span>
                    Import Excel
                </button>
                <button type="button" class="inbound-header-btn inbound-header-btn-link">
                    <span class="inbound-btn-icon">⇩</span>
                    Export Excel
                </button>
            </div>
            <div class="inbound-helper">GLP templates and Dr.Fones Cloud Portal exports supported</div>
        </div>
    </header>

    <!-- INFORMATION BANNER -->
    <div class="inbound-info-banner">
        <span class="inbound-info-icon">♢</span>
        <span>
            Paste one IMEI per line, preview the scan set, and import.
            Registered devices start in Inbound until a line allocation or test event moves them.
        </span>
    </div>

    <!-- TOP ROW -->
    <div class="inbound-grid inbound-top-grid">

        <!-- REGISTER INBOUND -->
        <section class="inbound-card inbound-register-card">
            <div class="inbound-card-header">
                <div>
                    <h2>Register inbound IMEIs</h2>
                    <p>Step 01 · create the traceability record</p>
                </div>
                <span class="inbound-card-icon inbound-icon-green">♧</span>
            </div>

            <form method="post" class="inbound-form">
                {% csrf_token %}

                <div class="inbound-fields inbound-four">
                    <div class="inbound-field">
                        <label for="shipment_no">DO / SHIPMENT NO.</label>
                        <input id="shipment_no" name="shipment_no" type="text" value="{{ shipment_no|default:'DO-2423' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="source_supplier">SOURCE / SUPPLIER</label>
                        <input id="source_supplier" name="source_supplier" type="text" value="{{ source_supplier|default:'Westfield Trade' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="supplier_grade">SUPPLIER GRADE</label>
                        <input id="supplier_grade" name="supplier_grade" type="text" value="{{ supplier_grade|default:'JP AB' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="inbound_staff">INBOUND STAFF</label>
                        <input id="inbound_staff" name="inbound_staff" type="text" value="{{ inbound_staff|default:'Inbound' }}">
                    </div>
                </div>

                <div class="inbound-field inbound-imei-field">
                    <label for="inbound_imeis">IMEI SCAN / PASTE</label>
                    <textarea id="inbound_imeis" name="imeis" rows="5" placeholder="356789104552201&#10;356789104552219">{{ imeis|default:'' }}</textarea>
                </div>

                <div class="inbound-form-actions">
                    <button type="button" class="inbound-btn inbound-btn-soft">
                        <span>⌕</span> Preview import
                    </button>
                    <button type="submit" class="inbound-btn inbound-btn-green" name="action" value="import">
                        <span>⇩</span> Import to WMS
                    </button>
                </div>
            </form>
        </section>

        <!-- IMPORT PREVIEW -->
        <section class="inbound-card inbound-preview-card">
            <div class="inbound-card-header">
                <div>
                    <h2>Import preview</h2>
                    <p>Awaiting a scan set</p>
                </div>
                <span class="inbound-card-icon inbound-icon-dark">▧</span>
            </div>

            <div class="inbound-preview-empty">
                <div class="inbound-preview-document">▧</div>
                <strong>No preview yet</strong>
                <p>Your cleaned IMEI set will appear here before it changes stock.</p>
            </div>
        </section>
    </div>

    <!-- BOTTOM ROW -->
    <div class="inbound-grid inbound-bottom-grid">

        <!-- ALLOCATE -->
        <section class="inbound-card inbound-allocation-card">
            <div class="inbound-card-header">
                <div>
                    <h2>Allocate to production</h2>
                    <p>Step 02 · reserve line capacity</p>
                </div>
                <span class="inbound-card-icon inbound-icon-amber">⌁</span>
            </div>

            <form method="post" class="inbound-form">
                {% csrf_token %}

                <div class="inbound-fields inbound-four">
                    <div class="inbound-field">
                        <label for="production_line">PRODUCTION LINE</label>
                        <select id="production_line" name="production_line">
                            <option>Line 1</option>
                            <option>Line 2</option>
                            <option>Line 3</option>
                            <option>Line 4</option>
                        </select>
                    </div>

                    <div class="inbound-field">
                        <label for="allocation_model">MODEL</label>
                        <input id="allocation_model" name="model" type="text" value="{{ model|default:'iPhone 15' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="allocation_gb">GB</label>
                        <input id="allocation_gb" name="gb" type="text" value="{{ gb|default:'128GB' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="allocation_quantity">QUANTITY</label>
                        <input id="allocation_quantity" name="quantity" type="number" value="{{ quantity|default:'' }}">
                    </div>
                </div>

                <div class="inbound-fields inbound-two allocation-second-row">
                    <div class="inbound-field">
                        <label for="batch_ref">DO / BATCH REF</label>
                        <input id="batch_ref" name="batch_ref" type="text" value="{{ batch_ref|default:'DO-2423' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="allocated_by">ALLOCATED BY</label>
                        <input id="allocated_by" name="allocated_by" type="text" value="{{ allocated_by|default:'Inbound' }}">
                    </div>
                </div>

                <div class="inbound-form-actions">
                    <button type="submit" class="inbound-btn inbound-btn-yellow" name="action" value="allocate">
                        <span>＋</span> Allocate to line
                    </button>
                </div>
            </form>
        </section>

        <!-- MANUAL TEST -->
        <section class="inbound-card inbound-test-card">
            <div class="inbound-card-header">
                <div>
                    <h2>Manual test event</h2>
                    <p>Step 03 · testing bench input</p>
                </div>
                <span class="inbound-card-icon inbound-icon-green">✎</span>
            </div>

            <form method="post" class="inbound-form">
                {% csrf_token %}

                <div class="inbound-fields inbound-test-first-row">
                    <div class="inbound-field inbound-imei-control">
                        <label for="test_imei">IMEI</label>
                        <input id="test_imei" name="test_imei" type="text" placeholder="Scan device IMEI">
                    </div>

                    <div class="inbound-field">
                        <label for="test_model">MODEL</label>
                        <input id="test_model" name="test_model" type="text" value="{{ test_model|default:'iPhone 15' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="test_gb">GB</label>
                        <input id="test_gb" name="test_gb" type="text" value="{{ test_gb|default:'128GB' }}">
                    </div>
                </div>

                <div class="inbound-fields inbound-test-second-row">
                    <div class="inbound-field">
                        <label for="test_line">LINE</label>
                        <select id="test_line" name="test_line">
                            <option>Line 1</option>
                            <option>Line 2</option>
                            <option>Line 3</option>
                            <option>Line 4</option>
                        </select>
                    </div>

                    <div class="inbound-field">
                        <label for="test_grade">GRADE</label>
                        <input id="test_grade" name="test_grade" type="text" value="{{ test_grade|default:'A2' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="test_battery">BATTERY</label>
                        <input id="test_battery" name="test_battery" type="text" value="{{ test_battery|default:'90%' }}">
                    </div>

                    <div class="inbound-field">
                        <label for="test_result">RESULT</label>
                        <select id="test_result" name="test_result">
                            <option>PASS</option>
                            <option>FAIL</option>
                            <option>REWORK</option>
                        </select>
                    </div>
                </div>

                <div class="inbound-form-actions">
                    <button type="submit" class="inbound-btn inbound-btn-green" name="action" value="test">
                        <span>✎</span> Log test result
                    </button>
                </div>
            </form>
        </section>
    </div>

</div>
*/
/* =========================================================
   INBOUND & TESTING — PROTOTYPE LAYOUT
   ========================================================= */

/* Main inbound page */
.inbound-page {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 30px 34px 50px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.inbound-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.inbound-hero-copy {
    min-width: 0;
}

.inbound-eyebrow {
    margin-bottom: 8px;
    color: #11885d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.inbound-hero h1 {
    margin: 0;
    color: #173c35;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.inbound-hero p {
    margin: 10px 0 0;
    color: #617d75;
    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   TWO COLUMN LAYOUT
   --------------------------------------------------------- */

.inbound-two-column {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: 14px !important;
    width: 100%;
    margin-bottom: 14px;
    align-items: stretch;
}


/* Make sure both cards stay beside each other */
.inbound-two-column>* {
    min-width: 0;
}


/* ---------------------------------------------------------
   INBOUND CARDS
   --------------------------------------------------------- */

.inbound-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #d6e3de;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 60, 50, 0.025);
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   CARD HEADER
   --------------------------------------------------------- */

.inbound-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.inbound-card-header h2 {
    margin: 0;
    color: #183d35;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.inbound-card-header p {
    margin: 5px 0 0;
    color: #6c857e;
    font-size: 10px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   FORM GRID
   --------------------------------------------------------- */

.inbound-form-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100%;
}


/* Full width fields */
.inbound-form-full {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   IMPORT PREVIEW
   --------------------------------------------------------- */

.inbound-preview {
    min-height: 338px;
}

.inbound-preview-body {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ---------------------------------------------------------
   BOTTOM TWO COLUMN SECTION
   --------------------------------------------------------- */

.inbound-bottom-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: 14px !important;
    width: 100%;
    align-items: stretch;
}

.inbound-bottom-grid>* {
    min-width: 0;
}


/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

.inbound-page input,
.inbound-page select,
.inbound-page textarea {
    width: 100%;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   BUTTON ROW
   --------------------------------------------------------- */

.inbound-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}


/* ---------------------------------------------------------
   DO NOT LET GLOBAL GRID CSS STACK THESE
   --------------------------------------------------------- */

.inbound-page .grid {
    display: grid !important;
}

.inbound-page .inbound-two-column {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
}

.inbound-page .inbound-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.inbound-test-imei {
    grid-column: span 2;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .inbound-two-column,
    .inbound-bottom-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .inbound-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 650px) {

    .inbound-page {
        padding: 22px 16px 35px;
    }

    .inbound-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .inbound-hero h1 {
        font-size: 28px;
    }

    .inbound-form-grid {
        grid-template-columns: 1fr !important;
    }

    .inbound-two-column,
    .inbound-bottom-grid {
        grid-template-columns: 1fr !important;
    }

    .inbound-page .inbound-bottom-grid {
        grid-template-columns: 1fr !important;
    }

    .inbound-test-imei {
        grid-column: auto;
    }
}

/* Inbound controls share the Operations desk visual language. */
.inbound-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.inbound-form-full {
    grid-column: 1 / -1;
}

.inbound-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.inbound-field input,
.inbound-field select,
.inbound-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #d5e3e1;
    border-radius: 8px;
    background: #fff;
    color: #183d35;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.inbound-field textarea {
    resize: vertical;
    line-height: 1.5;
}

.inbound-field input:focus,
.inbound-field select:focus,
.inbound-field textarea:focus {
    outline: none;
    border-color: #7bbda9;
    box-shadow: 0 0 0 3px rgba(27, 149, 103, .08);
}

.inbound-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.inbound-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.inbound-btn-soft {
    background: #e5f1ed;
    color: #214c42;
}

.inbound-btn-green {
    background: #16865b;
    color: #fff;
}

.inbound-btn-yellow {
    background: #f5b51b;
    color: #493600;
}

.inbound-preview-body {
    min-height: 180px;
    max-height: 320px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7a908a;
    font-size: 11px;
    text-align: center;
}

.inbound-import-preview-table {
    width: 100%;
    overflow: auto;
}

.inbound-import-preview-table table {
    width: 100%;
    border-collapse: collapse;
}

.inbound-import-preview-table th,
.inbound-import-preview-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #d9e5e0;
    text-align: left;
    white-space: nowrap;
}

.inbound-import-preview-table th {
    color: #52736a;
    font-size: 9px;
    text-transform: uppercase;
}

.inbound-import-preview-table td {
    color: #29483f;
    font-size: 10px;
}

.inbound-preview-body p {
    max-width: 100%;
    margin: 0;
    color: #617d75;
    overflow-wrap: anywhere;
}

.inbound-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.inbound-batch-preview-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.inbound-batch-preview-table th,
.inbound-batch-preview-table td {
    padding: 7px 9px;
    border-bottom: 1px solid #d9e5e0;
    font-size: 10px;
}

.inbound-batch-preview-table th {
    width: 42%;
    color: #52736a;
    font-weight: 700;
}

.inbound-batch-preview-table td {
    color: #29483f;
}

.inbound-message {
    margin-bottom: 14px;
    padding: 12px 16px;
    color: #176846;
    font-size: 12px;
}

.inbound-message-error {
    color: #a43d34;
}

.inbound-table-wrap {
    overflow-x: auto;
}

.inbound-tests-panel {
    height: 520px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inbound-tests-panel .inbound-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-color: #8bb9a8 #edf4f1;
    scrollbar-width: thin;
}

.inbound-table-wrap table {
    min-width: 760px;
}

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

@media (max-width: 650px) {
    .inbound-form-grid {
        grid-template-columns: 1fr;
    }

    .inbound-form-full {
        grid-column: auto;
    }
}

.ops-data-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ops-data-button {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #d5e3e1;
    border-radius: 8px;
    background: #fff;
    color: #214c42;
    font-size: 12px;
    font-weight: 700;
}

.ops-data-button:hover {
    background: #edf6f2;
    border-color: #bdd5cf;
}

.ops-data-status {
    min-height: 16px;
    margin-top: 6px;
    color: #68827b;
    font-size: 10px;
    text-align: right;
}

.stock-data-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.stock-import-status {
    text-align: right;
}

@media (max-width: 650px) {
    .ops-data-actions {
        justify-content: flex-start;
    }

    .ops-data-status {
        text-align: left;
    }

    .stock-data-actions {
        justify-content: flex-start;
    }

    .stock-import-status {
        text-align: left;
    }
}

.ops-time-tools {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ops-calendar,
.ops-clock {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ops-calendar input {
    min-height: 40px;
    padding: 0 9px;
    border: 1px solid #d5e3e1;
    border-radius: 8px;
    background: #fff;
    color: #214c42;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.ops-calendar input:focus {
    outline: none;
    border-color: #7bbda9;
    box-shadow: 0 0 0 3px rgba(27, 149, 103, .08);
}

.ops-clock {
    min-width: 84px;
}

.ops-clock strong {
    min-height: 40px;
    display: flex;
    align-items: center;
    color: #183d35;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: none;
}

.dashboard-user-switcher {
    display: flex;
    align-items: flex-end;
}

.dashboard-user-switcher label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.dashboard-user-switcher select {
    min-width: 190px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #bdd5cc;
    border-radius: 8px;
    background: #fff;
    color: #214c42;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard-return-owner {
    white-space: nowrap;
}

@media (max-width: 650px) {
    .ops-time-tools {
        justify-content: flex-start;
    }

    .dashboard-user-switcher {
        margin-bottom: 10px;
    }
}

.reports-actions {
    display: flex;
    align-items: flex-end;
}

.reports-grid {
    margin-bottom: 14px;
}

.report-panel {
    min-width: 0;
}

.report-location-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-stat-list {
    display: grid;
    gap: 12px;
}

.report-stat-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #d9e5e0;
}

.report-stat-list div:last-child {
    border-bottom: 0;
}

.report-stat-list span {
    color: #68827b;
    font-size: 11px;
    font-weight: 700;
}

.report-stat-list strong {
    color: #16865b;
    font-size: 20px;
}

.report-notice {
    margin: -8px 0 14px;
    padding: 11px 14px;
    border: 1px solid #c6e3e3;
    border-radius: 8px;
    background: #eaf7f7;
    color: #3b6c6a;
    font-size: 11px;
    line-height: 1.45;
}

.report-control-panel {
    margin-bottom: 14px;
    padding: 0 17px 15px;
}

.report-tabs {
    display: flex;
    gap: 24px;
    margin: 0 -17px 15px;
    padding: 0 17px;
    border-bottom: 1px solid #d6e3de;
}

.report-tabs button {
    min-height: 43px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #718981;
    font-size: 10px;
    font-weight: 800;
}

.report-tabs button.active {
    border-bottom-color: #16865b;
    color: #16865b;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 11px;
}

.report-filter-grid label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.report-filter-grid input,
.report-filter-grid select {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-color: #b9d4ca;
    border-radius: 7px;
    color: #274942;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.report-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.report-clear {
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: #16865b;
    font-size: 11px;
    font-weight: 800;
}

.report-clear:hover {
    text-decoration: underline;
}

#report-match-count {
    color: #78918a;
    font-size: 10px;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 15px;
}

.report-kpi {
    min-width: 0;
    min-height: 72px;
    padding: 11px 12px;
    border: 1px solid #d4e3de;
    border-top: 3px solid;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    appearance: none;
}

.report-kpi:hover {
    box-shadow: 0 10px 22px rgba(20, 60, 50, 0.08);
}

.report-kpi:focus-visible {
    outline: 3px solid rgba(27, 149, 103, .28);
    outline-offset: 2px;
}

.report-kpi small {
    display: block;
    color: #6d8880;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.25;
}

.report-kpi strong {
    display: block;
    margin-top: 9px;
    color: #23483f;
    font-size: 21px;
    line-height: 1;
}

.report-kpi-green {
    border-top-color: #2db67e;
}

.report-kpi-yellow {
    border-top-color: #e8a91b;
}

.report-kpi-blue {
    border-top-color: #5992d5;
}

.report-kpi-teal {
    border-top-color: #39b6b0;
}

.report-kpi-purple {
    border-top-color: #9a6ac5;
}

.report-results-panel {
    padding-bottom: 12px;
}

.report-results-panel .ops-panel-header {
    margin-bottom: 12px;
}

.report-preview-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 120;
}

.report-preview-modal.is-open {
    display: block;
}

.report-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 31, 33, 0.46);
}

.report-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 48px));
    max-height: min(80vh, 760px);
    margin: 64px auto 0;
    padding: 18px 18px 14px;
    border: 1px solid #d9e7e3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(7, 63, 65, 0.12);
}

.report-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.report-preview-label {
    margin: 0 0 2px;
    color: #7a8d89;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.report-preview-header h3 {
    margin: 0;
    color: #1d3d3b;
    font-size: 22px;
}

.report-preview-close {
    width: 38px;
    height: 38px;
    border: 1px solid #d3e3df;
    border-radius: 8px;
    background: #f5faf8;
    color: #0b504d;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.report-preview-summary {
    margin-bottom: 12px;
    color: #56706f;
    font-size: 12px;
    font-weight: 700;
}

.report-preview-filters {
    margin-bottom: 18px;
    padding: 12px 12px 0;
    border: 1px solid #dfeae8;
    border-radius: 12px;
    background: #f8fbfa;
}

.report-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
}

.report-preview-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4a6d6a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-preview-field input,
.report-preview-field select {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cfe2dd;
    border-radius: 8px;
    background: #fff;
    color: #143d3d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.report-preview-field input::placeholder {
    color: #87a09d;
    text-transform: none;
}

.report-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 14px;
}

.report-preview-apply,
.report-preview-reset {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #bdd8d1;
    border-radius: 8px;
    background: #fff;
    color: #0c4d4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.report-preview-apply {
    background: linear-gradient(180deg, #1aa574 0%, #16845d 100%);
    border-color: #16845d;
    color: #fff;
}

.report-preview-reset {
    background: #f4faf8;
}

.report-preview-table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #dfeae8;
    border-radius: 12px;
    background: #fff;
}

.report-preview-table-wrap table {
    width: 100%;
    min-width: 740px;
    border-collapse: collapse;
}

.report-preview-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 12px;
    background: #f1f8f6;
    border-bottom: 1px solid #dfeae8;
    color: #355f5b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
}

.report-preview-table-wrap tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf3f1;
    color: #23483f;
    font-size: 12px;
}

.report-preview-table-wrap tbody tr:hover td {
    background: #f7fbfa;
}

.report-preview-empty {
    color: #57726f;
    font-weight: 600;
}

/* =========================================================
   REPORT TABLE - FIXED SCROLLING AREA
   ========================================================= */

.report-results-panel {
    overflow: hidden;
}

.report-table-wrap {
    display: block !important;
    width: 100% !important;

    /* FIXED VIEWING AREA */
    height: 450px !important;
    max-height: 450px !important;

    /* SCROLL INSIDE THE TABLE */
    overflow-y: scroll !important;
    overflow-x: auto !important;

    position: relative !important;
}

.batch-analysis-panel .batch-analysis-table-wrap {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-color: #8bb9a8 #edf4f1;
    scrollbar-width: thin;
}

.batch-analysis-panel .batch-analysis-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.batch-analysis-panel .batch-analysis-table-wrap::-webkit-scrollbar-track {
    background: #edf4f1;
}

.batch-analysis-panel .batch-analysis-table-wrap::-webkit-scrollbar-thumb {
    background: #8bb9a8;
    border-radius: 8px;
}

/* =========================================================
   REPORT TABLE - FIXED SCROLLING AREA
   ========================================================= */

.report-results-panel {
    overflow: hidden;
}

.report-table-wrap {
    display: block !important;
    width: 100% !important;

    /* FIXED VIEWING AREA */
    height: 450px !important;
    max-height: 450px !important;

    /* SCROLL INSIDE THE TABLE */
    overflow-y: scroll !important;
    overflow-x: auto !important;

    position: relative !important;
}

/* Keep table normal */
.report-table-wrap table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

/* Sticky column headings */
.report-table-wrap thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

.report-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f1f8f6;
}

/* Rows */
.report-table-wrap tbody tr {
    height: 44px;
}

/* Scrollbar */
.report-table-wrap::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.report-table-wrap::-webkit-scrollbar-track {
    background: #eef7f4;
}

.report-table-wrap::-webkit-scrollbar-thumb {
    background: #9bcfc0;
    border-radius: 8px;
}

.report-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #6fae9d;
}
@media (max-width: 1100px) {
    .report-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-tabs {
        gap: 14px;
        overflow-x: auto;
    }
}

@media print {

    .sidebar,
    .top-header,
    .reports-actions,
    .report-notice,
    .report-control-panel,
    .report-tabs {
        display: none !important;
    }

    .main-area {
        width: 100%;
        margin: 0;
    }

    .content,
    .reports-page {
        padding: 0;
    }

    .report-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .report-results-panel {
        box-shadow: none;
    }
}

.report-table-wrap {
    overflow-x: auto;
}

.report-table-wrap table {
    min-width: 720px;
}

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

@media print {
    @page {
        margin: 14mm;
    }

    .sidebar,
    .top-header,
    .reports-actions,
    .global-data-actions,
    .toast-stack {
        display: none !important;
    }

    .main-area {
        margin-left: 0;
    }

    .content,
    .ops-page {
        max-width: none;
        padding: 0;
    }

    .ops-panel {
        break-inside: avoid;
        box-shadow: none;
    }

    body {
        background: #fff;
    }
}

.account-grid {
    align-items: start;
}

.account-panel {
    min-width: 0;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-form-full {
    grid-column: 1 / -1;
}

.account-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d9e5e0;
}

.account-access-list {
    display: grid;
    gap: 0;
}

.account-access-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #d9e5e0;
}

.account-access-list div:last-child {
    border-bottom: 0;
}

.account-access-list span {
    color: #68827b;
    font-size: 11px;
    font-weight: 700;
}

.account-access-list strong {
    color: #183d35;
    font-size: 12px;
}

.account-note {
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid #d9e5e0;
    color: #718983;
    font-size: 11px;
    line-height: 1.55;
}

.account-users-panel {
    margin-top: 14px;
}

.account-create-user {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 17px;
    padding: 13px;
    border: 1px solid #d7e6e0;
    border-radius: 9px;
    background: #f5faf8;
}

.account-create-user label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #68827b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.account-create-user input,
.account-create-user select {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border-color: #bdd5cc;
    border-radius: 7px;
    color: #274942;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.account-create-user button {
    white-space: nowrap;
}

.account-users-table-wrap {
    overflow-x: auto;
}

.account-users-table-wrap table {
    min-width: 760px;
}

.account-users-table-wrap tbody td {
    padding: 10px;
    font-size: 11px;
}

.account-approve-button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #b9d9ca;
    border-radius: 6px;
    background: #eaf6f0;
    color: #197452;
    font-size: 10px;
    font-weight: 800;
}

.account-approve-button:hover {
    background: #d9eee3;
}

.account-delete-button {
    min-height: 28px;
    margin-left: 6px;
    padding: 0 9px;
    border: 1px solid #efd0d0;
    border-radius: 6px;
    background: #fbeeee;
    color: #a04b3f;
    font-size: 10px;
    font-weight: 800;
}

.account-delete-button:hover {
    background: #f5dede;
}

.account-muted {
    color: #78918a;
    font-size: 10px;
}

.account-empty {
    padding: 28px 10px;
    color: #78918a;
    text-align: center;
}

@media (max-width: 1000px) {
    .account-create-user {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .account-create-user {
        grid-template-columns: 1fr;
    }
}

.account-message {
    margin-bottom: 14px;
    padding: 12px 16px;
    color: #176846;
    font-size: 12px;
}

.account-message-error {
    color: #a43d34;
}

@media (max-width: 900px) {
    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-form-full {
        grid-column: auto;
    }
}

/* =========================================================
   RESET DATA CONFIRMATION MODAL
   ========================================================= */

.reset-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.reset-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reset-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 56, 58, 0.62);
    backdrop-filter: blur(4px);
}

.reset-modal-box {
    position: relative;
    z-index: 2;
    width: 480px;
    max-width: 100%;
    padding: 28px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dbe8e3;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(6, 56, 58, 0.28);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.2s ease;
}

.reset-modal.show .reset-modal-box {
    transform: translateY(0) scale(1);
}

.reset-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fdf1ef;
    color: #a04b3f;
    font-size: 23px;
    font-weight: 800;
}

.reset-modal-content h2 {
    margin: 0 0 9px;
    color: #23483f;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.reset-modal-content p {
    margin: 0 0 15px;
    color: #617b75;
    font-size: 13px;
    line-height: 1.6;
}

.reset-modal-warning {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 17px 0;
    padding: 13px 15px;
    border: 1px solid #efd0d0;
    border-radius: 9px;
    background: #fbeeee;
    color: #8f4038;
    font-size: 12px;
    line-height: 1.5;
}

.reset-modal-warning strong {
    color: #943f37;
    font-size: 13px;
}

.reset-modal-warning span {
    color: #a04b3f;
}

.reset-modal-content .reset-modal-note {
    margin-bottom: 0;
    color: #8a9d98;
    font-size: 11px;
}

.reset-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.reset-cancel-button,
.reset-confirm-button {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.reset-cancel-button {
    border: 1px solid #bdd5cc;
    background: #ffffff;
    color: #49665f;
}

.reset-cancel-button:hover {
    background: #f2f7f5;
}

.reset-confirm-button {
    border: 1px solid #a04b3f;
    background: #a04b3f;
    color: #ffffff;
}

.reset-confirm-button:hover {
    background: #873d34;
    border-color: #873d34;
}

.reset-confirm-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.reset-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .reset-modal-box {
        padding: 22px;
        border-radius: 13px;
    }

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

    .reset-cancel-button,
    .reset-confirm-button {
        width: 100%;
    }
}
/* =========================================================
   STOCK MASTER - SCROLLABLE DATA TABLE
   ========================================================= */

.stock-table-panel {
    overflow: hidden;
}

.stock-table-wrap {
    display: block !important;
    width: 100% !important;
    height: 450px !important;
    max-height: 450px !important;
    overflow-y: scroll !important;
    overflow-x: auto !important;
    position: relative !important;
}

.stock-table-wrap #tbl {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.stock-table-wrap #tbl thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

.stock-table-wrap #tbl thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f1f8f6;
}

.stock-table-wrap #tbl tbody tr {
    height: 44px;
}

.stock-table-wrap::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.stock-table-wrap::-webkit-scrollbar-track {
    background: #eef7f4;
}

.stock-table-wrap::-webkit-scrollbar-thumb {
    background: #9bcfc0;
    border-radius: 8px;
}

.stock-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #6fae9d;
}

/* Desktop reference layout: compact shell, dense workspace, consistent across pages. */
@media (min-width: 1101px) {
    .sidebar {
        width: 180px;
        min-width: 180px;
    }

    .brand {
        height: 60px;
        gap: 9px;
        padding: 0 15px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 14px;
        line-height: 10px;
    }

    .brand-mark span {
        font-size: 6px;
        letter-spacing: .7px;
    }

    .brand-text strong {
        font-size: 11px;
    }

    .brand-text small {
        margin-top: 1px;
        font-size: 6px;
        letter-spacing: 1px;
    }

    .sidebar-section {
        padding: 17px 15px 6px;
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .sidebar-nav {
        padding: 0 7px;
    }

    .sidebar-nav a {
        min-height: 32px;
        padding: 0 9px;
        margin: 1px 0;
        border-radius: 6px;
        font-size: 10px;
    }

    .nav-arrow {
        font-size: 16px;
    }

    .sidebar-bottom {
        padding: 13px 13px 16px;
    }

    .shift-title {
        font-size: 7px;
        letter-spacing: 1.1px;
    }

    .shift-active {
        font-size: 9px;
    }

    .shift-subtitle {
        font-size: 8px;
    }

    .main-area {
        margin-left: 180px;
        width: calc(100% - 180px);
    }

    .top-header {
        height: 50px;
        padding: 0 20px;
        gap: 16px;
    }

    .breadcrumb,
    .header-system,
    .header-date {
        font-size: 8px;
    }

    .page-title {
        font-size: 11px;
    }

    .page-subtitle {
        margin-top: 1px;
        font-size: 8px;
    }

    .header-right {
        gap: 9px;
    }

    .header-user,
    .logout-link {
        width: 22px;
        height: 22px;
        font-size: 7px;
        line-height: 22px;
    }

    .header-switch-user select,
    .header-return-owner {
        width: 92px;
        height: 22px;
        font-size: 8px;
    }

    .content {
        padding: 0 28px 30px;
        max-width: 1480px;
        gap: 12px;
    }

    .ops-page,
    .inventory-page,
    .stock-page,
    .movements-page,
    .reports-page,
    .integrations-page,
    .account-page {
        padding: 22px 34px 38px;
    }

    .ops-hero {
        gap: 20px;
        margin-bottom: 18px;
    }

    .ops-eyebrow {
        margin-bottom: 5px;
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .ops-hero h1 {
        font-size: 25px;
        letter-spacing: -.8px;
    }

    .ops-hero p {
        margin-top: 6px;
        font-size: 10px;
    }

    .ops-panel {
        padding: 14px;
        border-radius: 10px;
    }

    .ops-panel-header {
        gap: 10px;
        margin-bottom: 13px;
    }

    .ops-panel-header h2 {
        font-size: 11px;
    }

    .ops-panel-header p {
        margin-top: 3px;
        font-size: 8px;
    }

    .ops-live-badge {
        padding: 3px 7px;
        font-size: 7px;
    }

    .ops-kpi-grid,
    .report-kpi-grid {
        gap: 8px;
        margin-bottom: 12px;
    }

    .ops-kpi-card {
        min-height: 96px;
        padding: 13px 12px 11px;
        border-radius: 10px;
    }

    .ops-kpi-label,
    .ops-kpi-note {
        font-size: 8px;
    }

    .ops-kpi-value {
        margin-top: 11px;
        font-size: 22px;
    }

    .ops-kpi-note {
        margin-top: 6px;
    }

    .ops-two-column {
        gap: 10px;
        margin-bottom: 10px;
    }

    .ops-line-grid {
        gap: 5px;
    }

    .ops-line-card {
        padding: 9px 8px;
        border-radius: 7px;
    }

    .ops-line-card span {
        font-size: 7px;
    }

    .ops-line-card strong {
        margin: 5px 0 4px;
        font-size: 15px;
    }

    .ops-line-card small {
        font-size: 7px;
    }

    .stock-filter-panel,
    .report-filter-grid,
    .integration-form-grid,
    .account-form-grid {
        gap: 9px 8px;
    }

    .stock-filter-panel label,
    .report-filter-grid label,
    .integration-form-grid label,
    .account-form-grid label {
        font-size: 8px;
    }

    .stock-filter-panel input,
    .stock-filter-panel select,
    .report-filter-grid input,
    .report-filter-grid select,
    .integration-form-grid input,
    .integration-form-grid select,
    .account-form-grid input,
    .account-form-grid select {
        height: 34px;
        min-height: 34px;
        font-size: 10px;
    }

    .report-control-panel {
        padding: 0 14px 12px;
    }

    .report-tabs {
        margin: 0 -14px 12px;
        padding: 0 14px;
    }

    .report-tabs button {
        min-height: 36px;
        font-size: 8px;
    }

    .report-kpi {
        min-height: 62px;
        padding: 9px 10px;
        border-radius: 8px;
    }

    .report-kpi small {
        font-size: 7px;
    }

    .report-kpi strong {
        margin-top: 6px;
        font-size: 17px;
    }

    .movement-fields-four,
    .movement-fields-three {
        gap: 8px;
    }

    .integration-card,
    .inventory-receive-card {
        padding: 14px;
    }

    .integration-card-title h2 {
        font-size: 12px;
    }

    .integration-card-title p,
    .integration-description {
        font-size: 9px;
    }

    .account-create-user {
        gap: 8px;
        padding: 10px;
    }

    .account-create-user label {
        font-size: 8px;
    }
}

/* Readable desktop scale: keep the reference shell compact without shrinking the work surface. */
@media (min-width: 1101px) {
    .ops-page,
    .inventory-page,
    .stock-page,
    .movements-page,
    .reports-page,
    .integrations-page,
    .account-page {
        padding: 26px 34px 44px;
    }

    .ops-eyebrow {
        margin-bottom: 7px;
        font-size: 9px;
        letter-spacing: 1.7px;
    }

    .ops-hero h1 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .ops-hero p {
        margin-top: 8px;
        font-size: 11px;
    }

    .ops-panel {
        padding: 17px;
        border-radius: 11px;
    }

    .ops-panel-header {
        margin-bottom: 16px;
    }

    .ops-panel-header h2 {
        font-size: 13px;
    }

    .ops-panel-header p {
        font-size: 9px;
    }

    .ops-kpi-card {
        min-height: 108px;
        padding: 15px 14px 13px;
        border-radius: 11px;
    }

    .ops-kpi-label,
    .ops-kpi-note {
        font-size: 9px;
    }

    .ops-kpi-value {
        margin-top: 13px;
        font-size: 25px;
    }

    .ops-kpi-note {
        margin-top: 8px;
    }

    .ops-line-card span {
        font-size: 8px;
    }

    .ops-line-card strong {
        font-size: 17px;
    }

    .ops-line-card small {
        font-size: 8px;
    }

    .stock-filter-panel label,
    .report-filter-grid label,
    .integration-form-grid label,
    .account-form-grid label {
        font-size: 9px;
    }

    .stock-filter-panel input,
    .stock-filter-panel select,
    .report-filter-grid input,
    .report-filter-grid select,
    .integration-form-grid input,
    .integration-form-grid select,
    .account-form-grid input,
    .account-form-grid select {
        height: 38px;
        min-height: 38px;
        font-size: 11px;
    }

    .report-tabs button {
        min-height: 40px;
        font-size: 9px;
    }

    .report-kpi {
        min-height: 70px;
        padding: 10px 11px;
    }

    .report-kpi small {
        font-size: 8px;
    }

    .report-kpi strong {
        font-size: 20px;
    }

    .inventory-page tbody td,
    .stock-page tbody td,
    .movements-page tbody td,
    .reports-page tbody td,
    .integrations-page tbody td,
    .account-page tbody td {
        font-size: 11px;
    }
}

/* Smaller desktop windows: retain the full shell until the mobile breakpoint. */
@media (min-width: 801px) and (max-width: 1100px) {
    .sidebar {
        width: 190px;
        min-width: 190px;
    }

    .main-area {
        margin-left: 190px;
        width: calc(100% - 190px);
    }

    .brand {
        height: 72px;
        padding: 0 15px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .sidebar-section {
        padding: 20px 15px 7px;
    }

    .sidebar-nav a {
        min-height: 36px;
        padding: 0 9px;
        font-size: 11px;
    }

    .top-header {
        height: 68px;
        padding: 0 18px;
    }

    .header-system,
    .header-date {
        display: none;
    }

    .content {
        padding: 18px 18px 30px;
    }

    .ops-page,
    .inventory-page,
    .stock-page,
    .movements-page,
    .reports-page,
    .integrations-page,
    .account-page {
        padding: 22px 20px 36px;
    }

    .ops-hero h1 {
        font-size: 27px;
    }

    .ops-kpi-grid,
    .report-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-two-column,
    .ops-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stock-filter-panel,
    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-filter-search {
        grid-column: span 2;
    }

    .integration-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .content {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        overflow-x: hidden;
    }

    .ops-page,
    .inventory-page,
    .stock-page,
    .movements-page,
    .reports-page,
    .integrations-page,
    .account-page {
        width: 100%;
        max-width: 100%;
        padding: 18px 0 30px;
    }

    .ops-hero,
    .ops-hero-action,
    .stock-data-actions,
    .movements-data-actions,
    .reports-actions,
    .ops-data-actions {
        width: 100%;
    }

    .ops-hero-action,
    .stock-data-actions,
    .movements-data-actions,
    .reports-actions,
    .ops-data-actions {
        justify-content: flex-start;
    }

    .ops-refresh,
    .ops-data-button {
        min-height: 38px;
    }

    .ops-panel,
    .card {
        max-width: 100%;
    }

    .stock-table-wrap,
    .report-table-wrap,
    .movement-table-wrap,
    .inbound-table-wrap,
    .account-users-table-wrap,
    .integration-ownership {
        max-width: 100%;
    }
}

/* Final reference-layout cascade. */
@media (min-width: 821px) {
    .sidebar { width: 252px; min-width: 252px; }
    .brand { height: auto; min-height: 78px; padding: 24px 21px 20px; gap: 11px; }
    .brand-mark { width: 33px; height: 33px; border-radius: 9px; font-size: 16px; line-height: 12px; }
    .brand-mark span { font-size: 7px; letter-spacing: .8px; }
    .brand-text strong { font-size: 16px; letter-spacing: -.04em; }
    .brand-text small { margin-top: 2px; font-size: 10px; letter-spacing: 1.1px; }
    .sidebar-section { padding: 20px 25px 6px; font-size: 10px; letter-spacing: 1.6px; }
    .sidebar-nav { padding: 0; }
    .sidebar-nav a { min-height: 42px; padding: 0 15px; margin: 2px 10px; border-radius: 8px; font-size: 13px; }
    .main-area { margin-left: 252px; width: calc(100% - 252px); }
    .top-header { height: 72px; padding: 0 34px; gap: 25px; }
    .breadcrumb, .header-system, .header-date { font-size: 10px; }
    .page-title { font-size: 12px; }
    .page-subtitle { margin-top: 2px; font-size: 11px; }
    .header-right { gap: 13px; }
    .header-user, .logout-link { width: 27px; height: 27px; font-size: 9px; line-height: 27px; }
    .content { width: 100%; max-width: 1540px; padding: 0; gap: 0; }
    .ops-page, .inventory-page, .stock-page, .movements-page, .reports-page, .integrations-page, .account-page { width: 100%; max-width: 1540px; padding: 30px 34px 52px; }
    .ops-eyebrow { margin-bottom: 8px; font-size: 11px; letter-spacing: 2px; }
    .ops-hero h1 { font-size: 34px; letter-spacing: -1.2px; }
    .ops-hero p { margin-top: 10px; font-size: 14px; }
    .ops-panel, .card { padding: 20px; border-radius: 14px; }
    .ops-panel-header { gap: 15px; margin-bottom: 18px; }
    .ops-panel-header h2 { font-size: 15px; }
    .ops-panel-header p { margin-top: 5px; font-size: 10px; }
    .ops-kpi-grid, .report-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
    .ops-kpi-card { min-height: 123px; padding: 17px; border-radius: 14px; }
    .ops-kpi-label { font-size: 11px; }
    .ops-kpi-value { margin-top: 17px; font-size: 30px; }
    .ops-kpi-note { margin-top: 1px; font-size: 11px; }
    .report-kpi { min-height: 78px; padding: 13px 14px; border-radius: 12px; }
    .report-kpi small { font-size: 10px; }
    .report-kpi strong { margin-top: 8px; font-size: 24px; }
}

@media (min-width: 821px) and (max-width: 1180px) {
    .ops-kpi-grid, .report-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ops-two-column, .ops-bottom-grid { grid-template-columns: 1fr; }
    .stock-filter-panel, .report-filter-grid, .integration-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Final integration checkbox styling. */
.integrations-page .integration-enable {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
}

.integrations-page .integration-enable > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.integrations-page .integration-enable > span {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-height: 24px;
    padding-left: 32px;
}

.integrations-page .integration-enable > span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #9dbeb2;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 60, 50, .08);
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.integrations-page .integration-enable > span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(.7);
    transition: opacity .16s ease, transform .16s ease;
}

.integrations-page .integration-enable:hover > span::before {
    border-color: #16865b;
    box-shadow: 0 0 0 3px rgba(22, 134, 91, .08);
}

.integrations-page .integration-enable > input[type="checkbox"]:checked + span::before {
    border-color: #16865b;
    background: #16865b;
}

.integrations-page .integration-enable > input[type="checkbox"]:checked + span::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.integrations-page .integration-enable > input[type="checkbox"]:focus-visible + span::before {
    outline: 3px solid rgba(27, 149, 103, .24);
    outline-offset: 2px;
}

.report-unbatched-badge {
    border-color: #ead29a;
    background: #fff5d9;
    color: #986b18;
}

.batch-analysis-panel {
    margin-top: 14px;
}

.batch-analysis-heading {
    margin: 0 0 9px;
    color: #4b6d65;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.batch-analysis-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-section-print {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
}

.unbatched-analysis-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d9e5e0;
}

.batch-analysis-table-wrap {
    overflow-x: auto;
    border: 1px solid #d6e3de;
    border-radius: 9px;
}

.batch-analysis-table-wrap table {
    min-width: 780px;
}

.batch-overview-block .batch-analysis-table-wrap table {
    min-width: 1500px;
}

#line-analysis .batch-analysis-table-wrap table {
    min-width: 1120px;
}

.batch-overview-total-row td {
    border-top: 2px solid #a9cfc0;
    background: #edf8f3;
    color: #164f3e;
}

.batch-overview-total-row td:last-child {
    color: #087047;
    font-size: 13px;
}

.batch-analysis-table-wrap th,
.batch-analysis-table-wrap td {
    white-space: nowrap;
}