: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: #cbd5df;

    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 {
    gap: 14px;
}

.portal-header-tip {
    flex: 1 1 auto;
}

.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: #3d474a;

    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;
}
.manifest-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem; border: 1px solid #d6dce3; border-radius: .5rem; margin: .6rem 0; cursor: pointer; }
.manifest-choice input { width: 1.2rem; height: 1.2rem; }
.manifest-choice span { color: #536274; }

.manifest-export-button { background: #1769c2; border: 1px solid #1769c2; color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(23,105,194,.22); }
.manifest-export-button:hover, .manifest-export-button:focus-visible { background: #0d519e; border-color: #0d519e; color: #fff; }

/* Small, rotating guidance in the signed-in header. */
.portal-header-tip {
    min-width: 0;
    max-width: 390px;
    margin: 0 18px;
    color: #667085;
    font-size: 0.79rem;
    line-height: 1.35;
    text-align: center;
}

.portal-header-tip span {
    margin-right: 6px;
    color: #768396;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
    .portal-header-tip { display: none; }
}

/* Dashboard help and supervisor bulletins. */
.dashboard-reworked { display: grid; gap: 24px; padding-bottom: 36px; }
.dashboard-quick-help { margin: 0; }
.dashboard-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.dashboard-section-heading h1, .dashboard-section-heading h2 { margin: 2px 0 5px; }
.dashboard-section-heading p { margin: 0; }
.dashboard-eyebrow { color: #667085; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-quick-help .dashboard-help-grid { margin: 0; }
.dashboard-bulletins { padding: 0 2px; }
.bulletin-list { display: grid; gap: 12px; }
.bulletin-card, .bulletin-empty, .bulletin-management-item { background: #fff; border: 1px solid #dce2e9; border-radius: 10px; box-shadow: 0 2px 8px rgba(18, 32, 51, .04); }
.bulletin-card { padding: 18px 20px; border-left: 4px solid #596c83; }
.bulletin-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bulletin-card h3 { margin: 0; font-size: 1.08rem; }
.bulletin-card time, .bulletin-byline { color: #667085; font-size: .8rem; }
.bulletin-body { margin: 11px 0; line-height: 1.55; overflow-wrap: anywhere; }
.bulletin-byline { margin: 0; }
.bulletin-empty { padding: 24px; color: #667085; }
.bulletin-management { margin-top: 28px; }
.bulletin-management-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0; padding: 14px 18px; }
.bulletin-management-item h3 { margin: 0 0 4px; }
.bulletin-management-item p { margin: 0; color: #667085; font-size: .85rem; }
.bulletin-management-item .dashboard-actions { display: flex; align-items: center; gap: 8px; }
.bulletin-management-item form { margin: 0; }
@media (max-width: 700px) {
  .dashboard-section-heading, .bulletin-card-heading, .bulletin-management-item { flex-direction: column; align-items: flex-start; }
}

/* Clear package-label confirmation after standard staging. */
.standard-label-instructions { margin-top: 18px; padding: 20px; border: 1px solid #b9d3c8; border-radius: 12px; background: #fff; color: #243441; }
.standard-label-title { display: block; margin-bottom: 5px; font-size: 1.06rem; color: #1c3940; }
.standard-label-help { margin: 0 0 16px; color: #586575; line-height: 1.5; }
.standard-label-list { display: grid; gap: 9px; }
.standard-label-row { display: flex; align-items: center; gap: 16px; padding: 12px 15px; border: 1px solid #dbe4e7; border-radius: 8px; background: #f8fafb; }
.standard-label-id { flex: 0 0 auto; min-width: 110px; font-size: 1.4rem; font-weight: 850; letter-spacing: .04em; color: #182d3d; }
.standard-label-details { color: #485767; line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 650px) { .standard-label-row { align-items: flex-start; flex-direction: column; gap: 4px; } }

/* Search across staged material and order references. */
.stage-search { padding-bottom: 36px; }
.stage-search-form { margin-bottom: 24px; }
.stage-search-form label { display: block; margin-bottom: 10px; font-weight: 700; }
.stage-search-controls { display: flex; gap: 10px; }
.stage-search-controls input { flex: 1; min-width: 0; font-size: 1rem; }
.stage-search-heading { margin-bottom: 15px; }
.stage-search-heading h2 { margin: 0 0 5px; font-size: 1.25rem; }
.stage-search-heading p { margin: 0; color: #667085; }
.stage-search-result { margin: 14px 0; }
.stage-search-result-head, .stage-search-piece, .stage-search-order { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage-search-result-head { padding-bottom: 14px; border-bottom: 1px solid #e0e5ea; }
.stage-search-kicker { margin: 0 0 5px; color: #657285; font-size: .82rem; }
.stage-search-result-head h3 { margin: 0; font-size: 1.35rem; }
.stage-search-result-head h3 span { margin-left: 6px; font-size: .87rem; font-weight: 500; color: #657285; }
.stage-search-status { padding: 5px 9px; border-radius: 5px; background: #edf1f5; color: #445368; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.stage-search-piece { padding: 14px 0; border-bottom: 1px solid #e8ecf0; }
.stage-search-piece > div, .stage-search-order > div { display: grid; gap: 4px; min-width: 0; }
.stage-search-piece span, .stage-search-order span { color: #536273; font-size: .85rem; overflow-wrap: anywhere; }
.stage-search-piece strong { font-size: 1.04rem; }
.stage-search-orders { padding: 13px 0 2px; }
.stage-search-orders h4 { margin: 0 0 5px; }
.stage-search-order { padding: 10px 0; border-bottom: 1px solid #edf0f2; }
.stage-search-order a { flex: 0 0 auto; font-size: .83rem; font-weight: 700; }
.stage-search-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 17px; }
@media (max-width: 680px) {
    .stage-search-controls, .stage-search-result-head, .stage-search-piece, .stage-search-order { align-items: flex-start; flex-direction: column; }
    .stage-search-controls input, .stage-search-controls button { width: 100%; }
}

.stage-search-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.stage-search-form h2 { margin: 0 0 5px; font-size: 1.18rem; }
.stage-search-fields input { width: 100%; }
@media (max-width: 680px) { .stage-search-fields { grid-template-columns: 1fr; } }

/* Help Center */
.help-page { padding-bottom: 3rem; }
.help-intro { background:#eff6ff; border:1px solid #bfdbfe; border-radius:16px; padding:1.1rem 1.25rem; margin:1.3rem 0; color:#17345e; line-height:1.6; }
.help-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem; margin:1.3rem 0; }
.help-topic { display:flex; gap:1rem; align-items:center; padding:1.25rem; min-height:105px; border:1px solid #d8e1ec; border-radius:18px; background:#fff; color:#172c47; text-decoration:none; box-shadow:0 5px 20px #14243c0a; }
.help-topic:hover,.help-topic:focus-visible { border-color:#2774c7; box-shadow:0 6px 22px #2774c724; transform:translateY(-2px); }
.help-topic strong,.help-topic small { display:block; } .help-topic strong {font-size:1.08rem;} .help-topic small { color:#526578; margin-top:.3rem; }
.help-icon { flex:none; display:grid; place-items:center; width:3rem; height:3rem; border-radius:13px; background:#e9f3ff; font-size:1.5rem; }
.help-arrow { margin-left:auto; font-size:1.5rem; color:#2370bc; }
.help-back { display:inline-block; margin:1rem 0; font-weight:700; }
.help-lesson-title {display:flex; align-items:center; gap:1rem; margin:0 0 1.5rem;} .help-lesson-title h2 {margin:0;} .help-lesson-title p {margin:.2rem 0 0;color:#586b80;}
.help-steps {display:grid;gap:1.15rem;max-width:1000px;} .help-step {display:grid;grid-template-columns:minmax(200px,1fr) minmax(260px,1.1fr);gap:1.4rem;align-items:center;background:#fff;border:1px solid #d9e2ec;border-radius:20px;padding:1.35rem;}
.help-number {display:inline-block;padding:.28rem .65rem;border-radius:8px;background:#e6f2ff;color:#175b9d;font-weight:800;font-size:.78rem;letter-spacing:.06em;}
.help-step h3 {font-size:1.4rem;line-height:1.25;margin:.7rem 0;} .help-step p {font-size:1.05rem;line-height:1.6;margin:0;color:#34465b;}
.help-picture {border:2px solid #d4e2f0;border-radius:14px;overflow:hidden;background:#f2f6fa;min-height:180px;box-shadow:0 8px 18px #17325418;}
.help-picture-top {background:#1d3654;color:#fff;padding:.65rem 1rem;display:flex;align-items:center;gap:.28rem;} .help-picture-top b {margin-left:auto;font-size:.85rem;}
.help-dot {height:.55rem;width:.55rem;border-radius:50%;background:#7692af;}
.help-picture-body {padding:1.15rem;display:flex;flex-direction:column;gap:.8rem;justify-content:center;min-height:130px;overflow-wrap:anywhere;}
.help-picture-menu {background:#fff;border-radius:8px;padding:.55rem 1rem;line-height:2.1;color:#66778c;max-width:230px;} .help-picture-menu mark {background:#ffed9d;color:#102d4d;font-weight:800;padding:.15rem .4rem;border:2px solid #e5a900;border-radius:6px;}
.help-picture-muted {color:#617287;font-size:.86rem;} .help-picture-target,.help-picture-row,.help-picture-input {display:block;background:#fff;padding:.75rem 1rem;border-radius:9px;border:2px solid #eab308;color:#17375b;font-weight:800;line-height:1.5;}
.help-picture-target {background:#2568ab;color:white;border-color:#eab308;width:fit-content;max-width:100%;} .help-picture-row b {float:right;} .help-end {display:flex;gap:.7rem;flex-wrap:wrap;margin:1.7rem 0;}
@media(max-width:700px){.help-step{grid-template-columns:1fr}.help-page .page-heading{margin-bottom:.5rem}.help-picture{min-height:160px}}

/* Staged order details and waterproof label actions. */

.waterproof-label-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.waterproof-label-link { font-size:.85rem; font-weight:600; color:#1459a6; text-decoration:underline; text-underline-offset:3px; }
.waterproof-label-link:hover { color:#0c3565; }

/* The original Print Label links open one shared, accessible policy dialog. */
.label-policy-dialog {
    width: min(460px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #d6e2ef;
    border-radius: 14px;
    background: #fff;
    color: #24374c;
    box-shadow: 0 24px 80px rgba(13, 32, 55, .32);
}
.label-policy-dialog::backdrop {
    background: rgba(10, 23, 42, .55);
}
.label-policy-dialog-content {
    padding: 26px;
}
.label-policy-dialog-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}
.label-policy-dialog-icon {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ecd4a1;
    border-radius: 12px;
    background: #fff5df;
    color: #795217;
    font-size: 1.35rem;
    font-weight: 800;
}
.label-policy-dialog h2 {
    margin: 0;
    color: #16365b;
    font-size: 1.18rem;
    line-height: 1.3;
}
.label-policy-dialog-subtitle {
    margin: 3px 0 0;
    color: #687d93;
    font-size: .82rem;
}
#label-policy-description {
    margin: 18px 0 24px;
    color: #44566c;
    font-size: .94rem;
    line-height: 1.65;
}
.label-policy-dialog-actions {
    display: flex;
    justify-content: flex-end;
}
.label-policy-dialog-actions .button {
    min-width: 92px;
    cursor: pointer;
}
@media (max-width: 520px) {
    .label-policy-dialog-content { padding: 21px; }
    .label-policy-dialog h2 { font-size: 1.08rem; }
}

.standard-order-details,.staged-piece-details { padding:16px 18px; border-top:1px solid #e2e8f0; }
.staged-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:14px; margin:0; }
.staged-piece-measurements { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:0; }
.staged-detail-grid dt,.staged-piece-measurements dt { font-size:.78rem; font-weight:600; color:#64748b; margin-bottom:5px; }
.staged-detail-grid dd,.staged-piece-measurements dd { margin:0; font-weight:650; color:#153252; overflow-wrap:anywhere; }
.staged-piece-measurements dd { font-size:1.05rem; }
.staged-piece-details h3 { font-size:.95rem; margin:0 0 12px; }
@media(max-width:600px) { .standard-package-header { align-items:flex-start; flex-wrap:wrap; gap:12px; } .waterproof-label-actions { align-items:flex-start; } .staged-piece-measurements { grid-template-columns:1fr; } }

/* Mixed crate measurements and label actions stay visible above the contents. */
.mixed-crate-row > .mixed-crate-summary {
    display:grid;
    grid-template-columns:minmax(145px,.8fr) minmax(280px,2fr) minmax(180px,1fr);
    align-items:start;
    gap:20px;
}
.mixed-crate-header-details {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 20px;
    margin:0;
    padding:0;
}
.mixed-crate-header-details dt {
    font-size:.78rem;
    font-weight:600;
    color:#64748b;
    margin:0 0 5px;
}
.mixed-crate-header-details dd {
    font-size:1rem;
    font-weight:650;
    color:#153252;
    margin:0;
    overflow-wrap:anywhere;
}
.mixed-crate-header-loaded-weight dd { font-size:1.1rem; }
.mixed-crate-row > .mixed-crate-summary .mixed-crate-summary-right {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
    text-align:right;
}
.mixed-crate-summary-right .waterproof-label-link {
    line-height:1.4;
    font-size:.85rem;
}
@media(max-width:1000px) {
    .mixed-crate-row > .mixed-crate-summary {
        grid-template-columns:minmax(0,1fr) auto;
    }
    .mixed-crate-header-details { grid-column:1 / -1; grid-row:2; }
}
@media(max-width:600px) {
    .mixed-crate-row > .mixed-crate-summary { gap:14px; }
    .mixed-crate-summary-right .waterproof-label-link { max-width:160px; }
    .mixed-crate-header-details { gap:14px; }
}

/* Compact search results and direct links to individual staged orders. */
.stage-search-result-head h3 span { font-size:1.05rem; font-weight:650; color:#173252; }
.stage-search-status.stage-search-status-open { background:#e7f6ec; color:#24713f; }
.stage-search-location-action { font-size:.8rem; color:#64748b; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.stage-search-location-action:hover { color:#173252; }
.stage-search-order .stage-search-container-link { font-size:.95rem; font-weight:700; color:#173d6a; text-decoration:none; }
.stage-search-order .stage-search-container-link:hover { text-decoration:underline; text-underline-offset:3px; }
.stage-search-order-meta { display:flex; flex-wrap:wrap; gap:4px 14px; margin:0; }
.stage-search-order-meta > div { display:flex; align-items:baseline; gap:5px; }
.stage-search-order-meta dt { margin:0; font-size:.72rem; font-weight:600; color:#64748b; text-transform:uppercase; letter-spacing:.02em; }
.stage-search-order-meta dd { margin:0; font-size:.82rem; font-weight:600; color:#34465c; overflow-wrap:anywhere; }
.stage-search-order > .stage-search-order-actions { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.stage-search-order .stage-search-transfer-action { color:#173d6a; font-size:.83rem; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.mixed-order-item[id],.staged-detail-grid[id] { scroll-margin-top:100px; }
.mixed-order-item:target,.staged-detail-grid:target { outline:2px solid #2463a6; outline-offset:3px; background:#edf4ff; }


.supervisor-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:20px 0}.supervisor-stat{display:flex;flex-direction:column;padding:18px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;color:#243047;text-decoration:none}.supervisor-stat strong{font-size:30px}.supervisor-stat-alert{border:2px solid #b42318;background:#fff1f0}.robbed-badge{display:inline-block;background:#fee4e2;color:#912018;border-radius:5px;padding:4px 8px;font-size:13px}.supervisor-record{padding:16px 0;border-bottom:1px solid #dce2ea}.supervisor-record input:not([type=checkbox]){max-width:100%;padding:8px}.supervisor-record summary{cursor:pointer;font-weight:600}

/* Order holds stay beside their order and remain visibly actionable. */
.portal-main .order-hold-link { color:#b42318; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.portal-main .order-hold-link:hover { color:#7a1710; }
.portal-main .order-hold-link:focus-visible { outline:2px solid #b42318; outline-offset:3px; }

.mixed-crate-hold-alert { display:inline-block; font-size:.75rem; font-weight:700; color:#912018; background:#fee4e2; padding:3px 7px; border-radius:5px; }
.order-cancellation-form { margin-top:24px; border-top:1px solid #e2e8f0; padding-top:16px; }
.order-cancellation-form summary { cursor:pointer; color:#b42318; font-weight:700; }
.mixed-order-actions small { display:block; font-size:.75rem; color:#912018; }

.order-hold-location { display:block; font-size:.75rem; font-weight:500; color:#912018; }

/* Compact order actions and hold records. */
.portal-main .order-action { display:inline-flex; align-items:center; min-height:30px; padding:4px 9px; border:1px solid #dbe2e9; border-radius:6px; background:#fff; color:#475569; font-size:.76rem; font-weight:650; line-height:1.35; text-decoration:none; white-space:normal; text-align:center; }
.portal-main .order-action:hover { background:#f1f5f9; border-color:#bac6d2; }
.portal-main .order-action-hold,.portal-main .order-action-cancel { color:#a33b35; border-color:#ecd5d2; background:#fffafa; }
.portal-main .order-action-return { color:#315544; border-color:#ccddd3; background:#f8fbf9; }
.portal-main .order-action:focus-visible,.hold-back-link:focus-visible { outline:2px solid #64748b; outline-offset:3px; }
.order-action-group { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.portal-main .order-status-pill,.portal-main .robbed-badge { display:inline-flex; align-items:center; padding:3px 7px; border-radius:5px; background:#fff2e5; color:#955419; font-size:.71rem; font-weight:700; line-height:1.4; }
.portal-main .order-status-cancelled { background:#edf0f4; color:#626d7d; }
.portal-main .mixed-crate-hold-alert { background:#fff2e5; color:#955419; border:1px solid #f3dcc3; padding:2px 6px; font-size:.7rem; line-height:1.4; }
.portal-main .order-hold-location { color:#64748b; font-size:.73rem; margin:2px 0; }
.mixed-order-actions { flex-wrap:wrap; align-items:center; gap:6px; }
.supervisor-stats { gap:8px; margin:16px 0; }
.supervisor-stat { padding:12px 14px; border-radius:8px; }
.supervisor-stat strong { font-size:1.55rem; line-height:1.2; }
.supervisor-stat span { font-size:.77rem; margin-top:4px; }
.supervisor-stat-alert { border:1px solid #ebd7bf; background:#fffaf4; }
.supervisor-holds-card .card-content>h2 { margin-bottom:6px; }
.supervisor-holds-card .card-content>p { margin-top:0; font-size:.84rem; color:#64748b; }
.supervisor-hold-record,.cancelled-order-record { padding:14px 0; border-top:1px solid #e7ecf1; }
.supervisor-hold-heading,.cancelled-order-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.supervisor-hold-heading>div,.cancelled-order-heading>div { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline; }
.supervisor-hold-heading strong,.cancelled-order-heading strong { font-size:.88rem; color:#263548; }
.supervisor-hold-heading>div>span,.cancelled-order-heading>div>span { color:#64748b; font-size:.77rem; overflow-wrap:anywhere; }
.hold-order-refs { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:8px 16px; margin:12px 0; }
.hold-order-refs dt { font-size:.66rem; font-weight:700; color:#778496; text-transform:uppercase; letter-spacing:.045em; margin-bottom:3px; }
.hold-order-refs dd { margin:0; font-size:.82rem; font-weight:650; color:#29384c; overflow-wrap:anywhere; }
.supervisor-hold-reason,.cancelled-order-reason { font-size:.81rem; color:#475569; margin:8px 0; line-height:1.5; overflow-wrap:anywhere; }
.supervisor-hold-footer { display:flex; justify-content:space-between; align-items:center; gap:8px 16px; flex-wrap:wrap; }
.supervisor-hold-footer small,.cancelled-order-footer small { font-size:.7rem; color:#7b8796; }
.cancelled-order-footer { display:flex; flex-direction:column; gap:8px; }
.cancelled-order-history summary { display:inline-block; color:#53647a; font-size:.76rem; font-weight:650; cursor:pointer; }
.cancelled-order-history summary:hover { color:#21344c; }
.hold-history { padding:0 0 0 18px; margin:12px 0 0; border-left:2px solid #e5eaf0; list-style:none; }
.hold-history li { position:relative; margin:0 0 12px; }
.hold-history li:before { content:""; position:absolute; width:7px; height:7px; background:#a7b3c1; border-radius:50%; top:6px; left:-22px; }
.hold-history strong { font-size:.77rem; color:#344459; }
.hold-history p { margin:3px 0; font-size:.77rem; color:#64748b; overflow-wrap:anywhere; }
.hold-history small { color:#8993a0; font-size:.68rem; }
/* One purpose per action page. */
.portal-main .hold-form-container { max-width:760px; }
.hold-form-container>.hold-back-link { display:inline-block; margin-bottom:12px; }
.hold-back-link { color:#617087; font-size:.8rem; font-weight:600; text-decoration:none; }
.hold-back-link:hover { color:#24384f; }
.hold-form-card { border-top:3px solid #64748b; }
.hold-return-card { border-top-color:#61816e; }
.hold-cancel-card { border-top-color:#a9554e; }
.portal-main .hold-form-card .card-content { padding:24px; }
.hold-eyebrow { margin:0 0 5px; font-size:.67rem; font-weight:750; text-transform:uppercase; letter-spacing:.1em; color:#7a8797; }
.hold-form-heading h1 { margin:0 0 6px; font-size:1.5rem; line-height:1.25; color:#243347; }
.hold-form-heading>p:last-child { margin:0; color:#738096; font-size:.82rem; line-height:1.5; }
.hold-order-identity { margin:18px 0; padding:12px 14px; background:#f7f9fc; border:1px solid #e7ecf2; border-radius:7px; }
.hold-order-customer { margin:0; font-size:.84rem; font-weight:650; color:#34465d; }
.hold-order-customer span { font-weight:400; color:#7a8695; }
.hold-order-identity .hold-order-refs { margin:12px 0 0; }
.hold-context { margin:14px 0; }
.hold-context-heading { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.hold-context-location { font-size:.75rem; color:#788595; }
.hold-context-location strong { color:#53657b; }
.hold-context>p { font-size:.82rem; color:#53657b; margin:8px 0 4px; line-height:1.5; overflow-wrap:anywhere; }
.hold-context>small { color:#8792a1; font-size:.71rem; }
.hold-action-notice { background:#f4f6f9; border-left:3px solid #cbd5e1; border-radius:4px; padding:10px 12px; margin:14px 0; color:#5d6c80; font-size:.79rem; line-height:1.5; }
.hold-action-notice-danger { background:#fff7f6; border-left-color:#d19b94; color:#8c4b45; }
.hold-action-form>label,.hold-action-form>div>label { display:block; font-size:.79rem; font-weight:650; color:#344459; margin:14px 0 6px; }
.hold-required { font-size:.65rem; font-weight:500; color:#8995a4; margin-left:6px; }
.portal-main .hold-action-form input:not([type=checkbox]),.portal-main .hold-action-form select,.portal-main .hold-action-form textarea { display:block; box-sizing:border-box; width:100%; padding:9px 11px; border:1px solid #d7dfe8; border-radius:6px; background:#fff; color:#334155; font:inherit; font-size:.82rem; }
.portal-main .hold-action-form textarea { min-height:82px; resize:vertical; }
.hold-action-form input:focus,.hold-action-form textarea:focus,.hold-action-form select:focus { outline:2px solid #aebfd3; outline-offset:1px; }
.hold-field-help { font-size:.72rem; line-height:1.5; color:#7b8798; margin:6px 0 12px; }
.portal-main .hold-action-form .hold-confirmation { display:flex; align-items:flex-start; gap:9px; padding:10px 0; margin:10px 0; font-size:.78rem; font-weight:500; line-height:1.5; }
.hold-confirmation input { flex:0 0 auto; margin-top:3px; width:16px; height:16px; }
.hold-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px; border-top:1px solid #e7ecf1; padding-top:16px; margin-top:8px; }
.hold-submit { background:#3d4f66; border:1px solid #3d4f66; border-radius:6px; color:#fff; padding:10px 15px; font-size:.8rem; font-weight:650; cursor:pointer; line-height:1.35; }
.hold-submit:hover { filter:brightness(.92); }
.hold-submit-return { background:#466652; border-color:#466652; }
.hold-submit-cancel { background:#9e4942; border-color:#9e4942; }
.hold-submit:focus-visible { outline:2px solid #64748b; outline-offset:3px; }
#hold-location-fields[hidden] { display:none; }
@media(max-width:600px) {
  .portal-main .hold-form-card .card-content { padding:18px; }
  .hold-form-heading h1 { font-size:1.3rem; }
  .supervisor-hold-heading,.cancelled-order-heading { flex-wrap:wrap; gap:8px; }
  .supervisor-hold-heading>div,.cancelled-order-heading>div { flex-direction:column; gap:3px; }
  .supervisor-hold-footer { align-items:flex-start; flex-direction:column; }
  .hold-order-refs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-main .order-action { min-height:34px; }
}

/* Shutdown history: shared, compact vertical activity timeline. */
.stagepoint-activity-list{list-style:none;margin:1rem 0 0;padding:0 0 0 1.25rem;border-left:2px solid #d9e3e8}
.stagepoint-activity-event{position:relative;padding:0 0 1rem 1.25rem;line-height:1.45}
.stagepoint-activity-event:last-child{padding-bottom:0}
.stagepoint-activity-dot{position:absolute;left:-1.63rem;top:.3rem;background:#c89829;border:3px solid #fff;box-shadow:0 0 0 1px #cad7df;width:.75rem;height:.75rem;border-radius:50%}
.stagepoint-activity-meta{display:block;color:#5a6872;font-size:.8rem;margin-top:.15rem}
.stagepoint-activity-event p{margin:.35rem 0 0;overflow-wrap:anywhere}
.stagepoint-activity-event small,.stagepoint-activity-note{color:#667784}
.stagepoint-report-table{width:100%;border-collapse:collapse}
.stagepoint-report-table th,.stagepoint-report-table td{text-align:left;border-bottom:1px solid #e0e5e8;padding:.6rem .75rem;vertical-align:top}
.stagepoint-report-table th{font-size:.82rem;color:#465c6b}
.stagepoint-report-scroll{overflow-x:auto}
.stagepoint-report-number{font-size:1.75rem;font-weight:750}
.stagepoint-report-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin:1rem 0}

/* Private messages: unread count in every account navigation, including pages that do not load account styling. */
.portal-nav-link .sp-nav-unread,.sp-nav-unread{display:inline-flex;justify-content:center;align-items:center;min-width:20px;min-height:20px;padding:2px 6px;border-radius:12px;margin-left:auto;background:#dcebf8;color:#174c73;font-size:.67rem;font-weight:850;line-height:1}
html[data-theme="dark"] .sp-nav-unread{background:#315d7e;color:#eef6ff}
