:root {
    --sc-navy-950: #030a18;
    --sc-navy-900: #07142b;
    --sc-navy-800: #102340;
    --sc-gold: #f5bd1f;
    --sc-gold-soft: #fff7dc;
    --sc-canvas: #f3f5f8;
    --sc-surface: #ffffff;
    --sc-ink: #182234;
    --sc-muted: #6d788c;
    --sc-line: #e1e5eb;
    --sc-success: #2f7b55;
    --sc-danger: #b94343;
    --sc-radius-sm: 10px;
    --sc-radius: 16px;
    --sc-shadow: 0 12px 32px rgba(7, 20, 43, 0.07);
}

[x-cloak] { display: none !important; }

body {
    font-family: "DM Sans", Inter, system-ui, sans-serif;
    background: var(--sc-canvas);
}

.font-display { font-family: Manrope, "DM Sans", system-ui, sans-serif; }

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

button,
a { -webkit-tap-highlight-color: transparent; }

iconify-icon { display: inline-flex; flex: 0 0 auto; }

.sc-shell {
    min-height: 100vh;
    background: var(--sc-canvas);
}

.sc-sidebar {
    position: relative;
    width: 280px;
    background: var(--sc-navy-900);
    color: #fff;
    box-shadow: 12px 0 30px rgba(3, 10, 24, 0.12);
}

.sc-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 0%, rgba(245, 189, 31, 0.13), transparent 24%);
}

.sc-sidebar-brand {
    height: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-brand-lockup {
    display: inline-block;
}

.sc-brand-lockup img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sc-sidebar-lockup { width: 172px; }
.sc-modal-lockup { width: 104px; }

.sc-sidebar nav { scrollbar-width: thin; scrollbar-color: rgba(139, 154, 177, .38) transparent; }
.sc-sidebar nav::-webkit-scrollbar { width: 5px; }
.sc-sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sc-sidebar nav::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(139, 154, 177, .35); }

.sc-nav-section { margin-top: 22px; }
.sc-nav-section:first-child { margin-top: 4px; }

.sc-nav-label {
    margin: 0 14px 8px;
    color: #71809b;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sc-nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 3px 8px;
    padding: 0 13px;
    border-radius: 11px;
    color: #b9c3d2;
    font-size: 12.5px;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sc-nav-link iconify-icon {
    width: 20px;
    margin-right: 12px;
    color: #8997ad;
    font-size: 19px;
}

.sc-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    transform: translateX(2px);
}

.sc-nav-link.is-active {
    color: #fff;
    background: #142846;
    box-shadow: inset 3px 0 0 var(--sc-gold);
}

.sc-nav-link.is-active iconify-icon { color: var(--sc-gold); }

.sc-user-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(1, 7, 18, 0.4);
}

.sc-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(245, 189, 31, 0.4);
    border-radius: 12px;
    background: rgba(245, 189, 31, 0.14);
    color: var(--sc-gold);
    font-family: Manrope, sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.sc-topbar {
    min-height: 76px;
    border-bottom: 1px solid var(--sc-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.sc-topbar-title {
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--sc-navy-900);
}

.sc-topbar.is-admin {
    border-color: rgba(255, 255, 255, .09);
    background: var(--sc-navy-900);
    color: #fff;
}

.sc-topbar.is-admin .sc-topbar-title { color: #fff; }
.sc-topbar.is-admin .sc-icon-button { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #d5dce7; }
.sc-topbar.is-admin .sc-icon-button:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .11); color: #fff; }
.sc-topbar.is-admin input { border-color: rgba(255, 255, 255, .18) !important; background: rgba(255, 255, 255, .06) !important; color: #fff !important; }
.sc-topbar.is-admin input::placeholder { color: #8997ad !important; }

.sc-icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--sc-line);
    border-radius: 11px;
    background: #fff;
    color: #566277;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.sc-mobile-only { display: none; }

.sc-icon-button:hover { border-color: #bdc6d2; color: var(--sc-navy-900); background: #fafbfc; }
.sc-sidebar .sc-icon-button { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); color: #fff; }
.sc-sidebar .sc-icon-button:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .13); color: #fff; }

.sc-primary-button,
.sc-secondary-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sc-primary-button { background: var(--sc-gold); color: var(--sc-navy-950); box-shadow: 0 7px 16px rgba(245, 189, 31, 0.22); }
.sc-primary-button:hover { background: #ffc928; transform: translateY(-1px); }
.sc-secondary-button { border: 1px solid var(--sc-line); background: #fff; color: var(--sc-navy-900); }
.sc-secondary-button:hover { border-color: #c7ced8; background: #fafbfc; }

.sc-main {
    min-width: 0;
    color: var(--sc-ink);
    background:
        linear-gradient(rgba(243, 245, 248, 0.92), rgba(243, 245, 248, 0.92)),
        radial-gradient(circle at 80% 10%, rgba(245, 189, 31, 0.08), transparent 26%);
}

.sc-page {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 34px 34px 56px;
}

.sc-kicker {
    color: #7b8799;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sc-display-title {
    margin: 4px 0 0;
    color: var(--sc-navy-900);
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.sc-subtitle { color: var(--sc-muted); font-size: 13px; line-height: 1.6; }

.sc-card {
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    background: var(--sc-surface);
    box-shadow: 0 1px 0 rgba(7, 20, 43, 0.02);
}

.sc-card-elevated { box-shadow: var(--sc-shadow); }

.sc-section-title {
    color: var(--sc-navy-900);
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.sc-section-meta { color: var(--sc-muted); font-size: 11px; }

.sc-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 20px;
    border: 1px solid var(--sc-line);
    border-radius: 15px;
    background: #fff;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sc-metric-card:hover { border-color: #c2cad5; transform: translateY(-2px); box-shadow: var(--sc-shadow); }
.sc-metric-card::after { content: ""; position: absolute; right: -22px; bottom: -32px; width: 90px; height: 90px; border-radius: 50%; background: var(--metric-wash, #f5f7fa); }
.sc-metric-value { display: block; margin-top: 14px; font-family: Manrope, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -0.04em; color: var(--sc-navy-900); }

.sc-metric-label { color: #6f7b8e; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }

.sc-action-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.sc-action-row:last-child { border-bottom: 0; }

.sc-action-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #f5f7fa;
    color: var(--sc-navy-800);
}

.sc-action-icon.is-attention { background: var(--sc-gold-soft); color: #9b7100; }
.sc-action-icon.is-danger { background: #fff0f0; color: var(--sc-danger); }
.sc-action-title { color: var(--sc-navy-900); font-size: 12px; font-weight: 700; }
.sc-action-copy { margin-top: 2px; color: var(--sc-muted); font-size: 11px; }

.sc-journey {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    background: #fff;
}

.sc-journey-item { position: relative; padding: 22px 20px; border-right: 1px solid var(--sc-line); }
.sc-journey-item:last-child { border-right: 0; }
.sc-journey-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--journey-color, var(--sc-navy-800)); }
.sc-journey-value { display: block; margin-top: 8px; color: var(--sc-navy-900); font-family: Manrope, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }

.sc-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #eef1f5; }
.sc-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--sc-gold); }

.sc-boundary-note {
    border: 1px solid #dae2ed;
    border-radius: 13px;
    background: #f8fafc;
    color: #526078;
    font-size: 11px;
    line-height: 1.55;
}

.sc-filters summary { list-style: none; cursor: pointer; }
.sc-filters summary::-webkit-details-marker { display: none; }
.sc-filters[open] summary iconify-icon { transform: rotate(180deg); }

.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th { padding: 13px 16px; background: #f7f8fa; color: #768196; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.sc-table td { padding: 14px 16px; border-top: 1px solid #edf0f4; color: #435067; font-size: 11px; }
.sc-table tbody tr:hover { background: #fbfcfd; }

.sc-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    background: var(--sc-navy-950);
}

.sc-login-story {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 6vw, 76px);
    color: #fff;
    background: var(--sc-navy-900);
}

.sc-login-story::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(3, 10, 24, .96) 10%, rgba(7, 20, 43, .72) 62%, rgba(7, 20, 43, .43)), url('/images/sprint_brand_logistics_hero.jpg') center/cover;
}

.sc-login-story::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(245, 189, 31, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(245, 189, 31, .04), 0 0 0 140px rgba(245, 189, 31, .025);
}

.sc-login-content { position: relative; z-index: 1; }
.sc-login-logo { width: min(230px, 54vw); }
.sc-login-heading { max-width: 650px; color: #fff; font-family: Manrope, sans-serif; font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.055em; line-height: .98; }
.sc-login-heading span { color: var(--sc-gold); }
.sc-login-copy { max-width: 520px; color: #c2ccda; font-size: 15px; line-height: 1.75; }

.sc-login-form-side {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(28px, 5vw, 72px);
    background: #fff;
}

.sc-login-form { width: min(100%, 430px); }
.sc-login-field label { display: block; margin-bottom: 8px; color: #3b475b; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sc-login-field input {
    width: 100%;
    height: 52px;
    border: 1px solid #dce1e8;
    border-radius: 12px;
    padding: 0 15px;
    background: #fafbfc;
    color: var(--sc-navy-900);
    font-size: 13px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.sc-login-field input:focus { border-color: #8ea0b8; background: #fff; box-shadow: 0 0 0 4px rgba(16, 35, 64, .08); }
.sc-field-label { display: block; color: #536077; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Shared polish for legacy Livewire screens, scoped to the application canvas. */
.sc-main > div:not(.sc-page) { color: var(--sc-ink); }
.sc-main input:not([type="checkbox"]):not([type="radio"]),
.sc-main select,
.sc-main textarea { border-color: #dce1e8; border-radius: 10px; background-color: #fff; }
.sc-main input:focus,
.sc-main select:focus,
.sc-main textarea:focus { outline: none; border-color: #91a0b5; box-shadow: 0 0 0 3px rgba(16, 35, 64, .08); }
.sc-main table { border-collapse: collapse; }
.sc-main table thead { background: #f7f8fa; }
.sc-main table th { color: #707d91; font-size: 10px; letter-spacing: .045em; }
.sc-main table tbody tr { border-color: #e9edf2; }
.sc-main .rounded-xl,
.sc-main .rounded-2xl { border-radius: 15px; }

@media (max-width: 1100px) {
    .sc-page { padding: 28px 24px 48px; }
    .sc-login { grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); }
    .sc-journey { grid-template-columns: repeat(3, 1fr); }
    .sc-journey-item:nth-child(3) { border-right: 0; }
    .sc-journey-item:nth-child(n+4) { border-top: 1px solid var(--sc-line); }
}

@media (max-width: 767px) {
    html,
    body { width: 100%; overflow-x: hidden; }
    .sc-shell { width: 100%; height: 100dvh; min-height: 100dvh; }
    .sc-shell > div:last-child { width: 100%; min-width: 0; }
    .sc-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 300px); transform: translateX(-105%); transition: transform 220ms ease; }
    .sc-sidebar.is-open { transform: translateX(0); }
    .sc-sidebar-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(3, 10, 24, .62); backdrop-filter: blur(2px); }
    .sc-topbar { min-height: 66px; flex: 0 0 auto; gap: 10px; padding-inline: max(12px, env(safe-area-inset-left)) !important; }
    .sc-topbar .hidden { display: none !important; }
    .sc-mobile-only { display: inline-grid; }
    .sc-icon-button { width: 44px; height: 44px; flex: 0 0 44px; }
    .sc-global-search { display: block !important; min-width: 0; flex: 1 1 auto; }
    .sc-global-search input { min-height: 44px; font-size: 16px; }
    .sc-main { width: 100%; min-width: 0; overflow-x: hidden; overscroll-behavior-y: contain; }
    .sc-main > div { max-width: 100%; }
    .sc-main > .p-6,
    .sc-main > .min-h-screen.p-6 { padding: 16px !important; }
    .sc-page { padding: 20px 16px max(40px, env(safe-area-inset-bottom)); }
    .sc-display-title { font-size: clamp(26px, 8vw, 34px); overflow-wrap: anywhere; }
    .sc-card,
    .sc-main section,
    .sc-main article { min-width: 0; }
    .sc-main h1,
    .sc-main h2,
    .sc-main h3,
    .sc-main p,
    .sc-main dd,
    .sc-main a { overflow-wrap: anywhere; }
    .sc-main input:not([type="checkbox"]):not([type="radio"]),
    .sc-main select,
    .sc-main textarea { max-width: 100%; min-height: 44px; font-size: 16px; }
    .sc-main button { min-height: 44px; }
    .sc-table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
    .sc-table-scroll::after { content: "Swipe to view more columns"; display: block; position: sticky; left: 0; padding: 9px 14px; border-top: 1px solid var(--sc-line); background: #f8fafc; color: #6d788c; font-size: 10px; font-weight: 700; }
    .sc-main > .min-w-\[1400px\] { width: 100%; min-width: 0 !important; padding: 16px !important; }
    .sc-main .grid-cols-10 { display: flex; width: 100%; min-width: 0; overflow-x: auto; gap: 12px; padding-bottom: 12px; scroll-snap-type: x proximity; }
    .sc-main .grid-cols-10 > section { width: min(82vw, 300px); min-width: min(82vw, 300px); scroll-snap-align: start; }
    .sc-main > .min-w-\[1400px\] > header { flex-direction: column; align-items: stretch; gap: 14px; }
    .sc-main > .min-w-\[1400px\] > header a { width: 100%; text-align: center; }
    .sc-page > .space-y-5 > header > .flex { flex-direction: column; }
    .sc-page > .space-y-5 > header .text-right { text-align: left; }
    .sc-login { display: block; background: #fff; }
    .sc-login-story { min-height: 248px; justify-content: flex-start; gap: 20px; padding: 22px 20px 24px; }
    .sc-login-logo { width: min(185px, 58vw); }
    .sc-login-story .sc-login-content.py-8 { padding-block: 0; }
    .sc-login-story .sc-login-content:last-child { display: none; }
    .sc-login-story .mb-5 { margin-bottom: 12px; }
    .sc-login-heading { margin-top: 0; max-width: 330px; font-size: 32px; line-height: 1.02; }
    .sc-login-copy { display: none; }
    .sc-login-form-side { min-height: auto; align-items: flex-start; padding: 30px 20px max(40px, env(safe-area-inset-bottom)); }
    .sc-login-form > .mb-10 { margin-bottom: 24px; }
    .sc-login-field input { min-height: 52px; font-size: 16px; }
    .sc-journey { grid-template-columns: 1fr 1fr; }
    .sc-journey-item:nth-child(2n) { border-right: 0; }
    .sc-journey-item:nth-child(n+3) { border-top: 1px solid var(--sc-line); }
}

@media (max-width: 480px) {
    .sc-login-story { min-height: 228px; }
    .sc-login-heading { font-size: 30px; }
    .sc-main .grid-cols-3,
    .sc-main .grid-cols-4,
    .sc-main .grid-cols-6 { grid-template-columns: minmax(0, 1fr); }
    .sc-journey { grid-template-columns: 1fr; }
    .sc-journey-item { border-right: 0; border-top: 1px solid var(--sc-line); }
    .sc-journey-item:first-child { border-top: 0; }
}
