:root {
    --sms-blue: #1a468c;
    --sms-blue-dark: #12366f;
    --sms-blue-light: #2a5aa3;
    --sms-gold: #ebab20;
    --sms-gold-hover: #d99a12;

    --portal-background: #eef1f5;
    --sidebar-background: #17202b;
    --sidebar-hover: #263548;

    --card-background: #ffffff;
    --field-background: #ffffff;

    --text-primary: #1d2939;
    --text-secondary: #667085;
    --text-light: #f8fafc;

    --border: #d0d5dd;
    --border-light: #e4e7ec;

    --danger: #b42318;
    --danger-background: #fef3f2;
    --danger-border: #fecdca;

    --success: #067647;
    --success-background: #ecfdf3;
    --success-border: #abefc6;

    --focus-ring: rgba(26, 70, 140, 0.2);

    --shadow-small:
        0 1px 3px rgba(16, 24, 40, 0.08);

    --shadow:
        0 4px 14px rgba(16, 24, 40, 0.08);

    --sidebar-width: 255px;
    --header-height: 90px;
    --border-radius: 10px;
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background: var(--portal-background);
    color: var(--text-primary);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

/*
|--------------------------------------------------------------------------
| Portal shell
|--------------------------------------------------------------------------
*/

.portal-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;

    min-height: 100vh;
}

/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    height: 100vh;

    overflow-y: auto;

    background: var(--sidebar-background);
    color: var(--text-light);
}

.portal-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    height: var(--header-height);

    padding: 12px 18px;

    background: #ffffff;

    border-bottom: 4px solid var(--sms-gold);

    flex-shrink: 0;
}

.portal-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.portal-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;

    padding: 20px 12px;
}

.portal-nav-label {
    margin: 15px 12px 6px;

    color: #98a2b3;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 44px;
    padding: 10px 13px;

    border-radius: 7px;

    color: #d0d5dd;

    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 150ms ease,
        color 150ms ease,
        transform 100ms ease;
}

.portal-nav-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.portal-nav-link:active {
    transform: translateY(1px);
}

.portal-nav-link.active {
    background: var(--sms-blue);
    color: #ffffff;
}

.portal-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    min-width: 22px;

    color: var(--sms-gold);

    font-size: 1rem;
}

.portal-sidebar-footer {
    padding: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #98a2b3;
    font-size: 0.78rem;
}

/*
|--------------------------------------------------------------------------
| Main portal area
|--------------------------------------------------------------------------
*/

.portal-main {
    grid-column: 2;

    min-width: 0;
    min-height: 100vh;
}

/*
|--------------------------------------------------------------------------
| Top header
|--------------------------------------------------------------------------
*/

.portal-header {
    position: sticky;
    top: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: var(--header-height);

    padding: 0 30px;

    background: #ffffff;

    border-bottom: 4px solid var(--sms-gold);

    box-shadow: var(--shadow-small);
}

.portal-header-left {
    min-width: 0;
}

.portal-header-title {
    margin: 0;

    color: var(--sms-blue-dark);

    font-size: 1.45rem;
    font-weight: 800;
}

.portal-header-subtitle {
    margin: 2px 0 0;

    color: var(--text-secondary);

    font-size: .9rem;
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-user {
    text-align: right;
}

.portal-user-name {
    display: block;

    color: var(--text-primary);

    font-size: 0.88rem;
    font-weight: 700;
}

.portal-user-role {
    display: block;

    color: var(--text-secondary);
    font-size: 0.75rem;
}

/*
|--------------------------------------------------------------------------
| Main content
|--------------------------------------------------------------------------
*/

.page {
    width: 100%;
    padding: 32px;
}

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0 0 5px;

    color: var(--sms-blue-dark);

    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-heading p {
    margin: 0;

    color: var(--text-secondary);
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.card {
    overflow: hidden;

    padding: 0;

    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);

    background: var(--card-background);
    box-shadow: var(--shadow);
}

.card::before {
    display: block;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        var(--sms-blue) 0%,
        var(--sms-blue) 78%,
        var(--sms-gold) 78%,
        var(--sms-gold) 100%
    );

    content: "";
}

.card-content {
    padding: 28px;
}

/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    min-width: 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

label {
    display: inline-block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 0.9rem;
    font-weight: 700;
}

.required {
    color: var(--danger);
}

input,
select,
textarea {
    display: block;

    width: 100%;
    min-height: 46px;
    padding: 10px 12px;

    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;

    background: var(--field-background);
    color: var(--text-primary);

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

select {
    cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #98a2b3;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--sms-blue);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}

.field-help {
    margin: 6px 0 0;

    color: var(--text-secondary);
    font-size: 0.82rem;
}

.field-error {
    margin: 6px 0 0;

    color: var(--danger);
    font-size: 0.84rem;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Notices
|--------------------------------------------------------------------------
*/

.notice {
    margin-bottom: 22px;
    padding: 18px 22px;

    border-radius: 10px;
    border-left: 5px solid transparent;
}

.notice h2,
.notice h3,
.notice strong {
    display: block;
    margin: 0 0 8px;
}

.notice p {
    margin: 0;
    line-height: 1.6;
}

.notice p + p {
    margin-top: 10px;
}

.notice-success {
    background: #ecfdf3;
    border-left-color: #12b76a;
    color: #065f46;
}

.notice-error {
    background: #fef3f2;
    border-left-color: #f04438;
    color: #7a271a;
}

/*
|--------------------------------------------------------------------------
| Temporary password
|--------------------------------------------------------------------------
*/

.temporary-password-box {
    margin-top: 14px;
    padding: 15px;

    border: 1px solid var(--success-border);
    border-radius: 8px;

    background: #ffffff;
}

.temporary-password-label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-secondary);

    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.temporary-password {
    display: block;

    width: 100%;
    padding: 13px;

    overflow-wrap: anywhere;

    border: 1px dashed var(--sms-blue);
    border-radius: 7px;

    background: #f8fafc;
    color: var(--sms-blue-dark);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: 0.05em;

    user-select: all;
}

.temporary-password-warning {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    grid-column: 1 / -1;

    margin: 8px -28px -28px;
    padding: 18px 28px;

    border-top: 1px solid var(--border-light);

    background: #f9fafb;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 22px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: var(--sms-blue);
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 80ms ease,
        box-shadow 150ms ease;
}

.button:hover {
    background: var(--sms-blue-dark);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.button-secondary {
    border-color: var(--border);

    background: #ffffff;
    color: var(--text-primary);
}

.button-secondary:hover {
    background: #f2f4f7;
}

/*
|--------------------------------------------------------------------------
| Portal dashboard utility cards
|--------------------------------------------------------------------------
*/

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-card {
    padding: 20px;

    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);

    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.dashboard-card-label {
    margin: 0 0 8px;

    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-card-value {
    margin: 0;

    color: var(--sms-blue-dark);

    font-size: 1.8rem;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Tables for future order screens
|--------------------------------------------------------------------------
*/

.table-container {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);

    background: #ffffff;
}

.portal-table {
    width: 100%;

    border-collapse: collapse;
    white-space: nowrap;
}

.portal-table th,
.portal-table td {
    padding: 13px 16px;

    border-bottom: 1px solid var(--border-light);

    text-align: left;
}

.portal-table th {
    background: #f8fafc;
    color: #475467;

    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.portal-table td {
    color: #344054;
    font-size: 0.9rem;
}

.portal-table tbody tr:hover {
    background: #f9fafb;
}

.temporary-password-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.button-download {
    min-height: 40px;
    padding: 8px 16px;

    background: var(--sms-gold);
    color: #17202b;

    font-size: 0.88rem;
}

.button-download:hover {
    background: var(--sms-gold-hover);
    color: #17202b;
}

@media (max-width: 600px) {
    .temporary-password-actions {
        display: block;
    }

    .button-download {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile menu button
|--------------------------------------------------------------------------
*/

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: #ffffff;
    color: var(--sms-blue);

    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    :root {
        --sidebar-width: 215px;
    }

    .portal-header {
        padding-inline: 22px;
    }

    .page {
        padding: 26px 22px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {
    .portal-shell {
        display: block;
    }

    .portal-sidebar {
        position: static;

        width: 100%;
        height: auto;
    }

    .portal-brand {
        justify-content: center;
    }

    .portal-logo {
        max-width: 190px;
    }

    .portal-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        padding: 12px;
    }

    .portal-nav-label,
    .portal-sidebar-footer {
        display: none;
    }

    .portal-main {
        min-height: auto;
    }

    .portal-header {
        position: static;

        min-height: 64px;
        padding: 10px 15px;
    }

    .portal-header-subtitle,
    .portal-user-role {
        display: none;
    }

    .page {
        padding: 20px 14px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-content {
        padding: 20px 16px;
    }

    .notice {
        margin: 18px 16px 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group-full,
    .form-actions {
        grid-column: auto;
    }

    .form-actions {
        margin: 4px -16px -20px;
        padding: 16px;

        flex-direction: column-reverse;
    }

    .button {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Small mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {
    .portal-nav {
        grid-template-columns: 1fr;
    }

    .portal-header-title {
        font-size: 1rem;
    }

    .portal-user {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/*
|--------------------------------------------------------------------------
| Login page
|--------------------------------------------------------------------------
*/

.login-body {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            rgba(18, 54, 111, 0.98),
            rgba(26, 70, 140, 0.94)
        );

    color: var(--text-primary);
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 32px 20px;
}

.login-panel {
    width: 100%;
    max-width: 470px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 22px;
    padding: 18px 20px;

    border-bottom: 4px solid var(--sms-gold);
    border-radius: 10px 10px 0 0;

    background: #ffffff;
    box-shadow: var(--shadow);
}

.login-logo {
    display: block;

    width: 150px;
    max-width: 42%;
    height: auto;
}

.login-brand-divider {
    align-self: stretch;

    width: 1px;

    background: var(--border-light);
}

.login-brand-text {
    min-width: 0;
}

.login-brand-text h1 {
    margin: 0 0 4px;

    color: var(--sms-blue-dark);

    font-size: 1.08rem;
    line-height: 1.25;
}

.login-brand-text p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 0.78rem;
}

.login-card {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius);

    background: #ffffff;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.22);
}

.login-card-header {
    margin-bottom: 24px;
}

.login-card-header h2 {
    margin: 0 0 6px;

    color: var(--sms-blue-dark);

    font-size: 1.65rem;
    line-height: 1.2;
}

.login-card-header p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-notice {
    margin: 0 0 20px;
}

.login-form-group {
    margin-bottom: 18px;
}

.login-form-group label {
    display: block;
}

.login-button {
    width: 100%;
    margin-top: 4px;

    border-bottom: 3px solid var(--sms-gold);
}

.login-button:hover {
    border-bottom-color: var(--sms-gold-hover);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-button:disabled:hover {
    background: var(--sms-blue);
}

.login-help {
    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid var(--border-light);

    text-align: center;
}

.login-help p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 0.8rem;
}

.login-footer {
    margin-top: 18px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.75rem;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Mobile login page
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {
    .login-page {
        align-items: flex-start;
        padding: 18px 12px;
    }

    .login-brand {
        flex-direction: column;
        gap: 12px;

        margin-bottom: 14px;

        text-align: center;
    }

    .login-logo {
        width: 190px;
        max-width: 80%;
    }

    .login-brand-divider {
        width: 100%;
        height: 1px;
    }

    .login-card {
        padding: 24px 18px;
    }

    .login-brand-text h1 {
        font-size: 1rem;
    }
.sidebar-user {
    margin-bottom: 18px;
    padding-bottom: 18px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-user-name {
    color: white;

    font-size: .92rem;
    font-weight: 700;
}

.sidebar-user-role {
    margin-top: 2px;

    color: #98a2b3;

    font-size: .78rem;
}
.customer-list-card {
    margin-top: 22px;
}

.customer-list-card h2,
.card-content h2 {
    margin-top: 0;
    color: var(--sms-blue-dark);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 78px;
    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 750;
}

.status-active {
    background: var(--success-background);
    color: var(--success);
}

.status-inactive {
    background: #f2f4f7;
    color: #667085;
}

.manage-panel summary {
    color: var(--sms-blue);
    font-weight: 700;
    cursor: pointer;
}

.manage-panel-content {
    width: min(360px, 70vw);
    margin-top: 12px;
    padding: 14px;

    border: 1px solid var(--border-light);
    border-radius: 8px;

    background: #f8fafc;
}

.manage-save-button {
    width: 100%;
    margin-top: 10px;
}

.customer-status-form {
    margin-top: 10px;
}

.customer-status-form .button {
    width: 100%;
}

.empty-state {
    padding: 28px;

    border: 1px dashed var(--border);
    border-radius: 8px;

    background: #f8fafc;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 6px;

    color: var(--sms-blue-dark);
}

.empty-state p {
    margin: 0;
    color: var(--text-secondary);
}
}

/*
|--------------------------------------------------------------------------
| Shutdown list
|--------------------------------------------------------------------------
*/

.shutdown-filter-card {
    margin-bottom: 22px;
}

.shutdown-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    align-items: end;
    gap: 16px;
}

.shutdown-filter-actions {
    display: flex;
    gap: 10px;
}

.shutdown-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.shutdown-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);

    background: #ffffff;
    box-shadow: var(--shadow-small);

    color: inherit;
    text-decoration: none;

    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        border-color 150ms ease;
}

.shutdown-card:hover {
    transform: translateY(-2px);

    border-color: var(--sms-blue);

    box-shadow: var(--shadow);
}

.shutdown-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    padding: 22px 22px 16px;
}

.shutdown-card-customer {
    margin: 0 0 3px;

    color: var(--text-secondary);

    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shutdown-card-unit {
    margin: 0;

    color: var(--sms-blue-dark);

    font-size: 1.45rem;
    line-height: 1.2;
}

.shutdown-card-name {
    margin: 6px 0 0;

    color: var(--text-secondary);
    font-size: 0.86rem;
}

.shutdown-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.74rem;
    font-weight: 800;
}

.shutdown-status-open {
    background: var(--success-background);
    color: var(--success);
}

.shutdown-status-overdue {
    background: var(--danger-background);
    color: var(--danger);
}

.shutdown-status-shipped {
    background: #f2f4f7;
    color: #667085;
}

.shutdown-card-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 10px 22px;

    border-top: 1px solid var(--border-light);
}

.shutdown-card-date span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.shutdown-card-date strong {
    color: var(--text-primary);
    font-size: 0.88rem;
    text-align: right;
}

.shutdown-card-counts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    margin-top: auto;

    border-top: 1px solid var(--border-light);
}

.shutdown-card-counts div {
    padding: 16px 22px;
}

.shutdown-card-counts div + div {
    border-left: 1px solid var(--border-light);
}

.shutdown-card-counts strong {
    display: block;

    color: var(--sms-blue-dark);
    font-size: 1.35rem;
}

.shutdown-card-counts span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.shutdown-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 22px;

    background: #f8fafc;
    color: var(--sms-blue);

    font-size: 0.84rem;
    font-weight: 750;
}

.shutdown-empty-card {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .shutdown-card-grid {
        grid-template-columns: 1fr;
    }

    .shutdown-filter-form {
        grid-template-columns: 1fr 190px;
    }

    .shutdown-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .shutdown-filter-form {
        grid-template-columns: 1fr;
    }

    .shutdown-filter-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .shutdown-filter-actions .button {
        width: 100%;
    }

    .shutdown-card-top {
        padding: 18px 16px 14px;
    }

    .shutdown-card-date {
        padding-inline: 16px;
    }

    .shutdown-card-counts div {
        padding: 14px 16px;
    }

    .shutdown-card-footer {
        padding-inline: 16px;
    }
}
/*
|--------------------------------------------------------------------------
| Shutdown workspace
|--------------------------------------------------------------------------
*/

.shutdown-workspace-back {
    margin-bottom: 16px;
}

.shutdown-workspace-back a {
    color: var(--sms-blue);
    font-weight: 700;
    text-decoration: none;
}

.shutdown-workspace-back a:hover {
    text-decoration: underline;
}

.shutdown-workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.shutdown-workspace-customer {
    margin: 0 0 4px;

    color: var(--text-secondary);

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shutdown-workspace-heading h1 {
    margin: 0;

    color: var(--sms-blue-dark);

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.1;
}

.shutdown-workspace-name {
    margin: 7px 0 0;

    color: var(--text-secondary);
}

.shutdown-locked-notice {
    margin: 0 0 22px;

    border-color: #d0d5dd;

    background: #f2f4f7;
    color: #344054;
}

.shutdown-locked-notice p {
    margin: 7px 0 0;
}

.shutdown-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 22px;
}

.shutdown-summary-card {
    padding: 18px;

    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);

    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.shutdown-summary-label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 750;
}

.shutdown-summary-value {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.shutdown-summary-number {
    color: var(--sms-blue-dark);
    font-size: 1.7rem;
    line-height: 1;
}

.shutdown-next-action-card {
    margin-bottom: 22px;
}

.shutdown-next-action-heading h2 {
    margin: 0 0 5px;
}

.shutdown-next-action-heading p {
    margin: 0;
    color: var(--text-secondary);
}

.shutdown-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 20px;
}

.shutdown-action-button {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 18px;

    border: 2px solid var(--border-light);
    border-radius: 9px;

    background: #ffffff;
    color: inherit;
    text-decoration: none;

    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        transform 100ms ease;
}

.shutdown-action-button:hover {
    border-color: var(--sms-blue);
    background: #f8fafc;
    transform: translateY(-1px);
}

.shutdown-action-button strong {
    color: var(--sms-blue-dark);
    font-size: 1rem;
}

.shutdown-action-button span {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.shutdown-action-primary {
    border-color: var(--sms-blue);
    background: #f7faff;
}

.shutdown-workspace-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    margin-bottom: 22px;
}

.shutdown-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.shutdown-section-heading h2 {
    margin: 0 0 4px;
}

.shutdown-section-heading p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 0.86rem;
}

.shutdown-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 10px;

    border-radius: 999px;

    background: #eef4ff;
    color: var(--sms-blue-dark);

    font-weight: 800;
}

.shutdown-details-card {
    margin-bottom: 22px;
}

.shutdown-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    margin: 0;

    border: 1px solid var(--border-light);
    border-radius: 8px;

    overflow: hidden;
}

.shutdown-detail-list div {
    padding: 14px 16px;

    border-bottom: 1px solid var(--border-light);
}

.shutdown-detail-list div:nth-child(odd) {
    border-right: 1px solid var(--border-light);
}

.shutdown-detail-list dt {
    margin-bottom: 3px;

    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 750;
}

.shutdown-detail-list dd {
    margin: 0;

    color: var(--text-primary);
    font-weight: 700;
}

.shutdown-notes-section {
    margin-top: 20px;
}

.shutdown-notes-section h3 {
    margin: 0 0 7px;

    color: var(--sms-blue-dark);
}

.shutdown-notes-section p {
    margin: 0;
}

.shutdown-shipping-card {
    border-color: var(--sms-gold);
}

.shutdown-shipping-card .card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.shutdown-shipping-card h2 {
    margin: 0 0 5px;
}

.shutdown-shipping-card p {
    margin: 0;

    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .shutdown-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shutdown-workspace-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .shutdown-workspace-header {
        flex-direction: column;
    }

    .shutdown-summary-grid {
        grid-template-columns: 1fr;
    }

    .shutdown-primary-actions {
        grid-template-columns: 1fr;
    }

    .shutdown-detail-list {
        grid-template-columns: 1fr;
    }

    .shutdown-detail-list div:nth-child(odd) {
        border-right: 0;
    }

    .shutdown-shipping-card .card-content {
        align-items: stretch;
        flex-direction: column;
    }

    .shutdown-shipping-card .button {
        width: 100%;
    }
}
/*
|--------------------------------------------------------------------------
| Shutdown staging actions
|--------------------------------------------------------------------------
*/

.shutdown-work-actions-card {
    margin-bottom: 22px;
}

.shutdown-work-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.shutdown-work-action {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 7px;

    min-height: 145px;
    padding: 20px;

    border: 2px solid var(--border-light);
    border-radius: 10px;

    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.shutdown-work-action:hover {
    border-color: var(--sms-blue);
    background: #f8fafc;
}

.shutdown-work-action-primary {
    border-color: var(--sms-blue);
    background: #f7faff;
}

.shutdown-work-action-title {
    color: var(--sms-blue-dark);

    font-size: 1rem;
    font-weight: 800;
}

.shutdown-work-action-description {
    color: var(--text-secondary);

    font-size: 0.84rem;
    line-height: 1.5;
}

.shutdown-work-action-count {
    align-self: flex-start;

    margin-top: auto;
    padding: 4px 8px;

    border-radius: 999px;

    background: var(--success-background);
    color: var(--success);

    font-size: 0.74rem;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Staged material list
|--------------------------------------------------------------------------
*/

.staged-material-card {
    margin-bottom: 22px;
}

.staged-material-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staged-package-identity {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}

.staged-package-identity > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staged-package-identity strong {
    color: var(--text-primary);
}

.staged-package-identity span:not(
    .staged-package-id
) {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.staged-package-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 55px;
    min-height: 44px;
    padding: 8px 10px;

    border-radius: 8px;

    background: var(--sms-blue-dark);
    color: #ffffff;

    font-size: 1rem;
    font-weight: 850;
}

/*
|--------------------------------------------------------------------------
| Standard staged packages
|--------------------------------------------------------------------------
*/

.standard-package-row {
    overflow: hidden;

    border: 1px solid var(--border-light);
    border-radius: 10px;

    background: #ffffff;
}

.standard-package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 16px;

    background: #f8fafc;
}

.standard-package-status {
    padding: 5px 9px;

    border-radius: 999px;

    background: #eef4ff;
    color: var(--sms-blue-dark);

    font-size: 0.72rem;
    font-weight: 800;
}

.standard-piece-row {
    display: grid;
    grid-template-columns:
        minmax(55px, 0.45fr)
        minmax(150px, 1.5fr)
        minmax(110px, 1fr)
        minmax(90px, 0.8fr);
    gap: 14px;

    padding: 12px 16px;

    border-top: 1px solid var(--border-light);
}

.standard-piece-row strong {
    color: var(--sms-blue-dark);
}

.standard-piece-row span {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

/*
|--------------------------------------------------------------------------
| Mixed crates
|--------------------------------------------------------------------------
*/

.mixed-crate-row {
    overflow: hidden;

    border: 2px solid;
    border-radius: 10px;

    background: #ffffff;
}

.mixed-crate-open {
    border-color: #75d7a1;
}

.mixed-crate-closed {
    border-color: #d0d5dd;
}

.mixed-crate-summary {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 15px 16px;

    cursor: pointer;
    list-style: none;
}

.mixed-crate-summary::-webkit-details-marker {
    display: none;
}

.mixed-crate-open .mixed-crate-summary {
    background: var(--success-background);
}

.mixed-crate-closed .mixed-crate-summary {
    background: #f2f4f7;
}

.mixed-crate-summary-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mixed-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 850;
}

.mixed-status-open {
    background: #d1fadf;
    color: #05603a;
}

.mixed-status-closed {
    background: #e4e7ec;
    color: #475467;
}

.mixed-crate-expand-text {
    color: var(--sms-blue);

    font-size: 0.78rem;
    font-weight: 750;
}

.mixed-crate-content {
    padding: 18px;

    border-top: 1px solid var(--border-light);
}

.mixed-order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mixed-order-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    padding: 12px;

    border: 1px solid var(--border-light);
    border-radius: 8px;

    background: #f8fafc;
}

.mixed-order-item div {
    min-width: 0;
}

.mixed-order-item span {
    display: block;

    margin-bottom: 2px;

    color: var(--text-secondary);
    font-size: 0.72rem;
}

.mixed-order-item strong {
    display: block;

    overflow-wrap: anywhere;

    color: var(--text-primary);
    font-size: 0.84rem;
}

.mixed-crate-piece-info {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 14px;
}

.mixed-crate-piece-info > div {
    display: grid;
    grid-template-columns:
        70px
        minmax(150px, 1.5fr)
        minmax(110px, 1fr)
        minmax(90px, 0.8fr);
    gap: 14px;

    padding: 10px 12px;

    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.mixed-crate-piece-info span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.mixed-crate-locked-text {
    margin: 14px 0 0;
    padding: 10px 12px;

    border-radius: 8px;

    background: #f2f4f7;
    color: #475467;

    font-size: 0.82rem;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Mobile staged-material layout
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .shutdown-work-actions {
        grid-template-columns: 1fr;
    }

    .mixed-order-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mixed-crate-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .mixed-crate-summary-right {
        width: 100%;
        justify-content: space-between;
    }

    .standard-package-header {
        align-items: flex-start;
    }

    .standard-piece-row,
    .mixed-crate-piece-info > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .mixed-order-item {
        grid-template-columns: 1fr;
    }
}
.mixed-crate-quick-total {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.mixed-crate-totals {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(90px, 1fr))
        minmax(140px, 1.4fr);
    gap: 10px;

    margin-top: 16px;
}

.mixed-crate-totals > div {
    padding: 12px;

    border: 1px solid var(--border-light);
    border-radius: 8px;

    background: #f8fafc;
}

.mixed-crate-totals span {
    display: block;

    margin-bottom: 3px;

    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
}

.mixed-crate-totals strong {
    color: var(--sms-blue-dark);
    font-size: 1rem;
}

.mixed-crate-total-weight {
    background: #eef4ff !important;
}

@media (max-width: 800px) {
    .mixed-crate-totals {
        grid-template-columns: repeat(2, 1fr);
    }

    .mixed-crate-total-weight {
        grid-column: 1 / -1;
    }
}

@media (max-width: 500px) {
    .mixed-crate-totals {
        grid-template-columns: 1fr;
    }

    .mixed-crate-total-weight {
        grid-column: auto;
    }
}
.mixed-id-card,
.mixed-form-section {
    margin-bottom: 22px;
}

.mixed-id-card .card-content {
    text-align: center;
}

.mixed-id-label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
}

.mixed-id-value,
.label-confirmation-id {
    display: block;

    margin: 0;

    color: var(--sms-blue-dark);

    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
}

.mixed-id-card p {
    margin: 12px 0 0;
    color: var(--text-secondary);
}

.mixed-quantity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-top: 20px;
}

.mixed-quantity-grid input {
    min-height: 52px;

    font-size: 1.1rem;
    font-weight: 750;
    text-align: center;
}

.mixed-weight-field {
    margin-top: 20px;
}

.input-with-unit {
    display: flex;
    align-items: stretch;
}

.input-with-unit input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-with-unit span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    padding: 0 14px;

    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 8px 8px 0;

    background: #f2f4f7;
    color: var(--text-secondary);

    font-weight: 800;
}

.mixed-submit-card {
    margin-bottom: 14px;

    border-color: var(--sms-blue);
}

.mixed-submit-card .card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mixed-submit-card h2 {
    margin: 0 0 5px;
}

.mixed-submit-card p {
    margin: 0;
    color: var(--text-secondary);
}

.mixed-cancel-form {
    margin-bottom: 22px;
}

@media (max-width: 800px) {
    .mixed-quantity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mixed-submit-card .card-content {
        align-items: stretch;
        flex-direction: column;
    }

    .mixed-submit-card .button,
    .mixed-cancel-form .button {
        width: 100%;
    }
}
.open-mixed-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 18px;
}

.open-mixed-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 16px 18px;

    border: 2px solid #75d7a1;
    border-radius: 10px;

    background: var(--success-background);
    color: inherit;
    text-decoration: none;
}

.open-mixed-option:hover {
    border-color: var(--success);
}

.open-mixed-option > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.open-mixed-option strong {
    color: var(--sms-blue-dark);
}

.open-mixed-option span:not(.mixed-status-badge) {
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.mixed-crate-content .dashboard-actions {
    margin-top: 18px;
}
.mixed-crate-location {
    color: var(--sms-blue-dark) !important;
    font-size: 0.78rem !important;
    font-weight: 800;
}
/* ==========================================================================
   Manage Users
   ========================================================================== */

.user-management-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    overflow: hidden;
}

.user-management-header {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) minmax(220px, 1fr) auto;
    gap: 20px;
    align-items: center;

    padding: 12px 18px;

    background: #f3f6f9;
    border-bottom: 1px solid #d9e0e8;

    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6775;
}

.user-management-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) minmax(220px, 1fr) auto;
    gap: 20px;
    align-items: center;

    padding: 16px 18px;

    border-bottom: 1px solid #e6ebf0;
    background: #ffffff;
}

.user-management-row:last-child {
    border-bottom: 0;
}

.user-management-row:hover {
    background: #fafbfd;
}

.user-management-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-management-person strong {
    font-size: 1rem;
    color: #152238;
}

.user-management-person span {
    font-size: 0.88rem;
    color: #5c6877;
    overflow-wrap: anywhere;
}

.user-management-person small {
    display: inline-block;
    margin-top: 4px;

    font-size: 0.75rem;
    font-weight: 600;
    color: #866400;
}

/* Role section */

.user-management-role {
    min-width: 0;
}

.user-management-role form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.user-management-role select {
    width: auto;
    min-width: 150px;
    height: 38px;

    padding: 6px 34px 6px 10px;

    border: 1px solid #cbd4df;
    border-radius: 6px;

    background: #ffffff;

    font-size: 0.9rem;
}

.user-management-role strong {
    display: inline-flex;
    align-items: center;

    min-height: 34px;
    padding: 5px 10px;

    border-radius: 999px;
    background: #edf3fb;

    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #063b78;
}

/* Buttons */

.user-management-table .button {
    min-height: 36px;
    padding: 7px 13px;

    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.user-management-role .button {
    margin: 0;
}

.user-management-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.user-management-actions form {
    margin: 0;
}

.user-management-actions .button {
    margin: 0;
}

/* Delete button */

.user-management-actions form:last-child .button {
    border-color: #c94c4c;
    color: #a52d2d;
    background: #ffffff;
}

.user-management-actions form:last-child .button:hover {
    background: #fff1f1;
    border-color: #a52d2d;
}

/* Current account shouldn't feel empty */

.user-management-row:has(.user-management-role > strong) {
    background: #fbfcfe;
}

/* Responsive */

@media (max-width: 900px) {
    .user-management-header {
        display: none;
    }

    .user-management-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-management-role form {
        flex-wrap: wrap;
    }

    .user-management-role select {
        flex: 1;
        min-width: 180px;
    }

    .user-management-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
/* ==========================================================================
   Audit / Logged Transactions
   ========================================================================== */

.audit-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.audit-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
}

.audit-table th {
    padding: 11px 12px;
    border-bottom: 2px solid #d7dee8;

    background: #f5f7fa;

    text-align: left;
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;

    color: #5b6573;
}

.audit-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e9ef;

    vertical-align: top;
    font-size: 0.88rem;
}

.audit-table tbody tr:hover {
    background: #fafbfd;
}

.audit-date-cell {
    white-space: nowrap;
}

.audit-date-cell strong,
.audit-date-cell span {
    display: block;
}

.audit-secondary {
    display: block;

    margin-top: 2px;

    color: #6b7583;
    font-size: 0.79rem;
}

.audit-action-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    background: #edf3fb;
    color: #083b73;

    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;

    white-space: nowrap;
}

.audit-action-created {
    background: #eaf7ef;
    color: #176b3a;
}

.audit-action-updated,
.audit-action-permission_changed {
    background: #fff7dc;
    color: #7a5a00;
}

.audit-action-deleted {
    background: #fdecec;
    color: #a12626;
}

.audit-action-shipped {
    background: #e9eefc;
    color: #253f8f;
}

.audit-action-login,
.audit-action-logout {
    background: #f0f2f4;
    color: #48515d;
}

.audit-change {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audit-change span {
    color: #5b6573;
    font-size: 0.79rem;
}

@media (max-width: 900px) {
    .audit-filter-grid {
        grid-template-columns: 1fr;
    }
}
.shutdown-customer-quick-search {
    margin-top: 18px;
}

.shutdown-customer-quick-label {
    display: block;
    margin-bottom: 8px;

    font-size: 0.8rem;
    font-weight: 800;
    color: #5d6877;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shutdown-customer-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shutdown-customer-chip {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    border: 1px solid #ccd5df;
    border-radius: 999px;

    background: #ffffff;
    color: #183b6b;

    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.shutdown-customer-chip:hover {
    border-color: #1f4f91;
    background: #f2f6fb;
}

.shutdown-customer-chip.active {
    border-color: #1f4f91;
    background: #1f4f91;
    color: #ffffff;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-hero {
    margin-bottom: 20px;
}

.dashboard-hero-copy h1 {
    margin: 0 0 8px;

    font-size: 2rem;
    color: #073a78;
}

.dashboard-eyebrow {
    margin: 0 0 6px;

    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;

    color: #6a7684;
}

.dashboard-hero-text {
    margin: 0;

    max-width: 720px;

    font-size: 1rem;
    line-height: 1.6;

    color: #5f6875;
}

.dashboard-primary-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 22px;
    padding: 28px 30px;

    border: 1px solid #d8e0e8;
    border-top: 5px solid #1f4f91;
    border-radius: 12px;

    background: #ffffff;

    box-shadow: 0 8px 22px rgba(20, 35, 55, 0.07);
}

.dashboard-primary-action h2 {
    margin: 4px 0 8px;

    font-size: 1.5rem;
    color: #0a376d;
}

.dashboard-primary-action p {
    margin: 0;

    max-width: 680px;

    line-height: 1.55;
    color: #5d6875;
}

.dashboard-action-kicker {
    display: inline-block;

    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: #dc9400;
}

.dashboard-primary-button {
    flex: 0 0 auto;

    padding: 13px 20px;

    font-size: 0.95rem;
}

.dashboard-task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 28px;
}

.dashboard-task-card {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;

    min-height: 130px;

    padding: 22px;

    border: 1px solid #d8e0e8;
    border-radius: 11px;

    background: #ffffff;
    color: inherit;

    text-decoration: none;

    box-shadow: 0 4px 14px rgba(20, 35, 55, 0.05);

    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        border-color 120ms ease;
}

.dashboard-task-card:hover {
    transform: translateY(-2px);

    border-color: #9db3ce;

    box-shadow: 0 8px 20px rgba(20, 35, 55, 0.09);
}

.dashboard-task-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 10px;

    background: #eef3f9;

    font-size: 1.35rem;
}

.dashboard-task-card h2 {
    margin: 0 0 5px;

    font-size: 1.05rem;
    color: #0a376d;
}

.dashboard-task-card p {
    margin: 0;

    line-height: 1.45;

    color: #67717f;
    font-size: 0.88rem;
}

.dashboard-task-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f4f91;
}

.dashboard-overview-section {
    margin-bottom: 28px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 12px;
}

.dashboard-section-heading h2 {
    margin: 0;

    font-size: 1.25rem;
    color: #0a376d;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-overview-card {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 18px;

    border: 1px solid #d9e0e8;
    border-radius: 9px;

    background: #ffffff;
    color: inherit;

    text-decoration: none;
}

.dashboard-overview-card span {
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;

    color: #65717f;
}

.dashboard-overview-card strong {
    font-size: 1.75rem;
    line-height: 1;

    color: #093b76;
}

.dashboard-help-card {
    margin-bottom: 28px;
}

.dashboard-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-help-item {
    padding: 17px;

    border: 1px solid #e0e5eb;
    border-radius: 9px;

    background: #fafbfd;
}

.dashboard-help-item h3 {
    margin: 0 0 10px;

    font-size: 0.95rem;
    color: #173d6b;
}

.dashboard-help-item ol {
    margin: 0;
    padding-left: 20px;

    color: #626d7b;
    line-height: 1.65;

    font-size: 0.85rem;
}

.dashboard-admin-section {
    margin-bottom: 30px;
}

.dashboard-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 950px) {

    .dashboard-primary-action {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-task-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-help-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-task-card {
        grid-template-columns: auto 1fr;
    }

    .dashboard-task-arrow {
        display: none;
    }

}
.open-mixed-location {
    display: block;

    margin-top: 6px;

    font-size: 0.82rem;
    color: #526171;
}

.open-mixed-location strong {
    color: #173f70;
    font-weight: 800;
}
.mixed-order-entered-by {
    opacity: 0.85;
}

.mixed-order-entered-by strong {
    color: #173f70;
}
/* ==========================================================================
   Mixed crate individual order actions
   ========================================================================== */

.mixed-order-actions {
    grid-column: 1 / -1;

    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 4px;
    padding-top: 10px;

    border-top: 1px solid #e1e6ec;
}

.button-small {
    min-height: 34px;
    padding: 6px 12px;

    font-size: 0.78rem;
}

.button-danger {
    border-color: #b42318;
    background: #b42318;
    color: #ffffff;
}

.button-danger:hover {
    border-color: #8f1c14;
    background: #8f1c14;
    color: #ffffff;
}

.mixed-move-option {
    cursor: pointer;
}

.mixed-move-option input[type="radio"] {
    margin-right: 10px;
}
/* ==========================================================================
   Standard staging page
   ========================================================================== */

.standard-mixed-warning {
    margin-bottom: 20px;
    padding: 16px 18px;

    border: 2px solid #d49b1e;
    border-radius: 8px;

    background: #fff7df;
}

.standard-mixed-warning strong {
    display: block;
    margin-bottom: 8px;

    font-size: 1rem;
}

.standard-mixed-warning p {
    margin: 5px 0;
}

.standard-reserved-id {
    padding: 8px 12px;

    border-radius: 6px;

    background: #f1f5f9;

    font-size: 0.85rem;
}

.standard-reserved-id strong {
    margin-left: 5px;

    font-size: 1.2rem;
}

.standard-order-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );

    gap: 16px;
}

.standard-material-entry {
    margin-top: 15px;
    padding: 16px;

    border: 1px solid #dfe5eb;
    border-radius: 8px;

    background: #fafbfd;
}

.standard-material-entry:first-child {
    margin-top: 0;
}

.standard-material-entry-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.standard-material-grid {
    display: grid;

    grid-template-columns:
        70px
        minmax(170px, 2fr)
        minmax(120px, 1fr)
        85px
        85px
        85px
        120px
        minmax(140px, 1fr);

    gap: 12px;

    align-items: end;
}

.standard-piece-note {
    grid-column: 1 / -1;
}

.material-remove {
    padding: 0;

    border: 0;

    background: transparent;

    color: #9d3832;

    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;
}

.material-remove:hover {
    text-decoration: underline;
}

.material-add-link {
    margin-top: 16px;
    padding: 0;

    border: 0;

    background: transparent;

    color: #315f8c;

    font-size: 0.82rem;
    font-weight: 700;

    cursor: pointer;
}

.material-add-link:hover {
    text-decoration: underline;
}

@media (max-width: 1050px) {

    .standard-material-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 620px) {

    .standard-material-grid,
    .standard-order-grid {
        grid-template-columns: 1fr;
    }

}
.standard-mixed-warning {
    margin: 24px 0 28px;
    padding: 18px 22px 18px 24px;

    border: 3px solid #d88700;
    border-left: 8px solid #d88700;
    border-radius: 10px;

    background: #fff3cd;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);

    color: #4a3200;
}

.standard-mixed-warning strong {
    display: block;

    margin-bottom: 10px;

    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;

    color: #7a4500;
}

.standard-mixed-warning p {
    margin: 6px 0;

    font-size: 0.96rem;
    line-height: 1.5;
}

.standard-mixed-warning p:first-of-type {
    font-weight: 700;
}
.dashboard-guide-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 2px solid #1f5fae;

    background: #eef5ff;
}

.dashboard-guide-item h3 {
    color: #123f7a;
}

.dashboard-guide-item p {
    margin-bottom: 16px;
}