﻿/* ============================================================
   JT INTERNATIONAL COURIER - Brand stylesheet
   Loaded AFTER style.css so it wins. New layout model:
   full-width topbar on top + fixed sidebar below it on the left.
   Selectors mirror the template's `[data-color=primary]` pattern
   where needed to beat its !important rules without editing it.
   ============================================================ */

:root {
    --brand-primary: #082B5C;
    --brand-primary-rgb: 8, 43, 92;
    --brand-secondary: #E22735;
    --brand-secondary-rgb: 226, 39, 53;
    --brand-accent: #2A78C5;
    --brand-accent-rgb: 42, 120, 197;
    --brand-dark: #061A36;
    --brand-surface: #FFFFFF;
    --brand-bg: #F4F7FB;
    --brand-text: #12233F;
    --brand-muted: #5E6E84;
    --brand-border: #D9E2EE;
    --brand-success: #14804A;
    --brand-danger: #D92D20;
    --brand-gradient: linear-gradient(135deg, #082B5C 0%, #124985 100%);
    --brand-radius: 18px;
    --brand-radius-sm: 12px;
    --brand-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --brand-shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.12);
    --as-header-h: 64px;
    --as-sidebar-w: 260px;
    --as-sidebar-mini-w: 78px;
}

html { --primary-rgb: 8, 43, 92 !important; }

/* ============================================================
   1. CORE LAYOUT - full-width topbar + sidebar below it
   ============================================================ */

/* Topbar: spans the full width, fixed to the very top */
.header,
[data-topbar=white] .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--as-header-h) !important;
    background: #fff !important;
    border-bottom: 1px solid var(--brand-border) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    z-index: 1040 !important;
    margin: 0 !important;
}

.header .main-header {
    height: var(--as-header-h);
    display: flex;
    align-items: center;
    padding: 0 18px 0 0;
    margin: 0;
    width: 100%;
}

/* Sidebar: sits below the topbar, fixed to the left */
.sidebar {
    position: fixed !important;
    top: var(--as-header-h) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--as-sidebar-w) !important;
    height: calc(100vh - var(--as-header-h)) !important;
    background: #fff !important;
    border-right: 1px solid var(--brand-border) !important;
    margin: 0 !important;
    z-index: 1035 !important;
    transition: width .2s ease, transform .2s ease;
}

.page-wrapper {
    margin-left: var(--as-sidebar-w) !important;
    padding-top: var(--as-header-h) !important;
    transition: margin-left .2s ease;
    min-height: 100vh;
}

/* Brand zone in the topbar - aligns over the sidebar column */
.header .header-left {
    width: var(--as-sidebar-w);
    height: var(--as-header-h);
    display: flex !important;
    align-items: center;
    padding: 0 14px;
    margin: 0;
    border-right: 1px solid var(--brand-border);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: width .2s ease;
}

/* Desktop collapse (mini) sidebar */
@media (min-width: 992px) {
    body.mini-sidebar .sidebar { width: var(--as-sidebar-mini-w) !important; }
    body.mini-sidebar .page-wrapper { margin-left: var(--as-sidebar-mini-w) !important; }
    /* collapsed rail: shrink the logo to fit the narrow column */
    body.mini-sidebar .header .header-left { width: var(--as-sidebar-mini-w); padding: 0 8px; }
    body.mini-sidebar .header .header-left .as-topbar-logo img { height: auto; padding: 5px 8px; border-radius: 10px; }

    /* hover-to-expand while collapsed */
    body.mini-sidebar.expand-menu .sidebar {
        width: var(--as-sidebar-w) !important;
        box-shadow: var(--brand-shadow-hover);
    }
}

/* Mobile: sidebar becomes an off-canvas drawer */
@media (max-width: 991.98px) {
    .header .header-left { width: auto; border-right: none; padding: 0 12px; }
    .sidebar { transform: translateX(-100%); width: var(--as-sidebar-w) !important; }
    .main-wrapper.slide-nav .sidebar { transform: translateX(0); box-shadow: var(--brand-shadow-hover); }
    .page-wrapper { margin-left: 0 !important; }
}

/* Mobile overlay behind the open drawer */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--as-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.45);
    z-index: 1034;
}
.sidebar-overlay.opened { display: block; }
@media (min-width: 992px) {
    .sidebar-overlay, .sidebar-overlay.opened { display: none !important; }
}

/* Hide the template's injected theme-customizer gear if it ever loads */
.sidebar-contact, .toggle-theme, .sidebar-themesettings { display: none !important; }

/* ============================================================
   2. GLOBAL CHROME
   ============================================================ */
body,
.main-wrapper,
.page-wrapper,
.content {
    background-color: var(--brand-bg) !important;
    color: var(--brand-text);
}

a { color: var(--brand-primary); }
a:hover { color: var(--brand-secondary); }

::selection { background: rgba(var(--brand-primary-rgb), 0.18); }

/* ============================================================
   3. BUTTONS - beat [data-color=primary] rules
   ============================================================ */
[data-color=primary] .btn.btn-primary,
[data-color=primary] .page-header .btn-added,
.btn.btn-primary,
.btn-primary {
    background-color: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary) !important;
    color: #fff !important;
    border-radius: var(--brand-radius-sm) !important;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.18);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    [data-color=primary] .btn.btn-primary:hover,
    [data-color=primary] .btn.btn-primary:focus,
    [data-color=primary] .btn.btn-primary:active,
    .btn.btn-primary:hover,
    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #09264D !important;
        border-color: #09264D !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.28);
    }

[data-color=primary] .link-primary,
[data-color=primary] .text-primary,
.link-primary,
.text-primary { color: var(--brand-primary) !important; }

[data-color=primary] .badge.badge-primary,
.badge.badge-primary,
.bg-primary { background: var(--brand-primary) !important; }

.bg-secondary { background: var(--brand-secondary) !important; }

.btn-secondary,
.btn.btn-secondary {
    background: transparent !important;
    border: 1px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    border-radius: var(--brand-radius-sm) !important;
}

    .btn-secondary:hover,
    .btn.btn-secondary:hover {
        background: var(--brand-primary) !important;
        color: #fff !important;
    }

.btn-success {
    background: var(--brand-success) !important;
    border-color: var(--brand-success) !important;
}

.btn-danger {
    background: var(--brand-danger) !important;
    border-color: var(--brand-danger) !important;
}

/* Orange CTA */
.btn.btn-as-cta,
.btn-as-cta,
a.btn.btn-as-cta {
    background: var(--brand-secondary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--brand-radius-sm) !important;
    height: 40px;
    padding: 0 18px !important;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(var(--brand-secondary-rgb), 0.32);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    white-space: nowrap;
}

    .btn-as-cta:hover {
        background: #066984 !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(var(--brand-secondary-rgb), 0.42);
    }

/* ============================================================
   4. TOPBAR CONTENTS
   ============================================================ */

/* Brand logo + wordmark */
.header .header-left .as-topbar-logo {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
    min-width: 0;
    opacity: 1 !important;
    visibility: visible !important;
}
    .header .header-left .as-topbar-logo img {
        height: 46px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
        padding: 6px 16px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.06), rgba(var(--brand-secondary-rgb), 0.06));
        border: 1px solid var(--brand-border);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .header .header-left .as-topbar-logo:hover img {
        transform: translateY(-1px);
        box-shadow: var(--brand-shadow-hover);
        border-color: rgba(var(--brand-primary-rgb), 0.30);
    }

a.as-wordmark,
.as-wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    text-decoration: none !important;
    color: var(--brand-text);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

    .as-wordmark .as-wordmark-top {
        font-size: 14px;
        font-weight: 800;
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .as-wordmark .as-wordmark-bottom {
        font-size: 8px;
        letter-spacing: 0.7px;
        font-weight: 700;
        color: var(--brand-muted);
        text-transform: uppercase;
        margin-top: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

/* Collapse toggle - now lives in the topbar, just right of the brand divider */
.header #toggle_btn.as-collapse-btn,
.header a#toggle_btn.as-collapse-btn {
    position: static !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    margin: 0 0 0 16px !important;
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--brand-muted) !important;
    background: var(--brand-bg) !important;
    border: 1px solid var(--brand-border) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: all .15s ease;
}
    .header #toggle_btn.as-collapse-btn:hover {
        background: rgba(var(--brand-primary-rgb), 0.10) !important;
        color: var(--brand-primary) !important;
        border-color: rgba(var(--brand-primary-rgb), 0.25) !important;
    }
    .header #toggle_btn.as-collapse-btn i { font-size: 18px; transition: transform .2s ease; line-height: 1; }
    body.mini-sidebar .header #toggle_btn.as-collapse-btn i { transform: rotate(180deg); }

@media (max-width: 1199.98px) { .as-wordmark { display: none !important; } }
@media (min-width: 992px) { body.mini-sidebar .as-wordmark { display: none !important; } }
@media (max-width: 991.98px) {
    /* mobile uses the hamburger drawer - hide the brand logo column and collapse toggle */
    .header .header-left { display: none !important; }
    .header #toggle_btn.as-collapse-btn,
    .as-collapse-btn { display: none !important; }
}

/* Mobile hamburger */
.mobile_btn { display: none; }
@media (max-width: 991.98px) {
    .mobile_btn { display: inline-flex !important; align-items: center; padding: 0 6px; }
    .mobile_btn .bar-icon { display: inline-block; width: 22px; }
    .mobile_btn .bar-icon span { display: block; height: 2px; border-radius: 2px; background: var(--brand-primary); margin: 4px 0; }
}

/* Topbar menu container */
.header .user-menu {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 0 0 18px;
    margin: 0;
    list-style: none;
    height: var(--as-header-h);
}
    .header .user-menu > li { display: flex; align-items: center; }

/* Search */
.header .nav-searchinputs { flex: 0 1 420px; margin-right: auto; }
.header .top-nav-search { width: 100%; }
.header .top-nav-search form { width: 100%; }
.header .searchinputs {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    height: 42px;
    padding: 0 12px;
}
    .header .searchinputs .as-search-icon { color: var(--brand-muted); font-size: 17px; display: inline-flex; }
    .header .searchinputs input {
        flex: 1 1 auto;
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        color: var(--brand-text);
        padding: 0 10px;
    }
    .header .searchinputs input::placeholder { color: #94a3b8; }
    .header .searchinputs .as-search-kbd {
        font-size: 11px;
        font-weight: 600;
        color: var(--brand-muted);
        background: #fff;
        border: 1px solid var(--brand-border);
        border-radius: 6px;
        padding: 2px 7px;
        white-space: nowrap;
    }
.header .responsive-search { display: none; }
.header .searchinputs.dropdown-toggle::after { display: none !important; }

/* Quick Links button */
.as-ghost-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--brand-radius-sm);
    border: 1px solid var(--brand-border);
    background: #fff;
    color: var(--brand-text) !important;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s ease;
    gap: 8px;
}
    .as-ghost-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary) !important; background: rgba(var(--brand-primary-rgb), 0.05); }

.as-ghost-btn.as-quick-btn {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.28);
}
    .as-ghost-btn.as-quick-btn:hover,
    .as-ghost-btn.as-quick-btn:focus {
        background: #1748b6;
        border-color: #1748b6;
        color: #fff !important;
        box-shadow: 0 8px 22px rgba(var(--brand-primary-rgb), 0.36);
        transform: translateY(-1px);
    }

/* Quick links mega dropdown */
.dropdown-xl { min-width: 460px; padding: 14px; border: 1px solid var(--brand-border); border-radius: var(--brand-radius); box-shadow: var(--brand-shadow-hover); }
.link-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: var(--brand-radius-sm);
    border: 1px solid var(--brand-border); color: var(--brand-text);
    text-decoration: none; height: 100%; transition: all .15s ease;
}
    .link-item:hover { border-color: var(--brand-primary); background: rgba(var(--brand-primary-rgb), 0.05); color: var(--brand-primary); }
    .link-item .link-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--brand-secondary-rgb), 0.12); color: var(--brand-secondary); flex-shrink: 0; }
    .link-item p { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.25; }

/* Header action buttons */
.user-menu .as-track-cta { height: 40px; padding: 0 16px !important; color: #fff !important; }

.user-menu .as-rate-cta {
    height: 40px;
    padding: 0 16px !important;
    border-radius: var(--brand-radius-sm) !important;
    border: none !important;
    background: #0F766E !important;
    color: #fff !important;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
    .user-menu .as-rate-cta:hover,
    .user-menu .as-rate-cta:focus {
        background: #115E59 !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(15, 118, 110, 0.36);
    }

/* Divider */
.as-topbar-divider { width: 1px; height: 26px; background: var(--brand-border); margin: 0 4px; }

/* Generic round icon buttons (bell, lang, fullscreen) */
.as-icon-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
    border-radius: var(--brand-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text) !important;
    background: transparent;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: all .15s ease;
}
    .as-icon-btn:hover { background: var(--brand-bg); color: var(--brand-primary) !important; }
    .as-icon-btn i { font-size: 19px; }

/* Notification bell red dot */
.as-bell { position: relative; }
    .as-bell::after {
        content: "";
        position: absolute;
        top: 7px;
        right: 9px;
        width: 8px;
        height: 8px;
        background: var(--brand-secondary);
        border-radius: 50%;
        box-shadow: 0 0 0 2px #fff;
    }

/* Profile */
.profile-nav .userset { gap: 10px; padding: 4px 6px; border-radius: var(--brand-radius-sm); transition: background .15s ease; }
    .profile-nav .userset:hover { background: var(--brand-bg); }
    .profile-nav .user-letter img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-border); }
.as-user-meta { flex-direction: column; line-height: 1.1; align-items: flex-start; }
    .as-user-name { font-size: 13.5px; font-weight: 700; color: var(--brand-text); }
    .as-user-role { font-size: 11px; color: var(--brand-muted); }
.as-user-caret { color: var(--brand-muted); font-size: 14px; }

.menu-drop-user { min-width: 240px; border: 1px solid var(--brand-border); border-radius: var(--brand-radius); box-shadow: var(--brand-shadow-hover); padding: 8px; }
    .menu-drop-user .profileset { padding: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--brand-border); }
    .menu-drop-user .user-img img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
    .menu-drop-user .dropdown-item { border-radius: 8px; padding: 9px 10px; font-weight: 500; }
    .menu-drop-user .dropdown-item:hover { background: rgba(var(--brand-primary-rgb), 0.07); color: var(--brand-primary); }
    .menu-drop-user .tutorial-link { color: var(--brand-primary); }
    .menu-drop-user .tutorial-link:hover { background: rgba(var(--brand-primary-rgb), 0.09); }
    .menu-drop-user .logout:hover { background: rgba(var(--brand-danger), 0.08); color: var(--brand-danger); }

.mobile-user-menu { display: none !important; }

@media (min-width: 992px) {
    .header .main-header {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        min-width: 0;
        height: var(--as-header-h);
        overflow: visible;
    }

    .header .user-menu {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        gap: 10px;
        height: var(--as-header-h);
        padding: 0 0 0 18px;
        overflow: visible;
    }

    .header .user-menu > li {
        flex: 0 0 auto;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-inline-end: 0 !important;
        align-items: center;
    }

    .header .user-menu .nav-searchinputs {
        flex: 1 1 420px;
        min-width: 150px;
        max-width: 525px;
        margin: 0 auto 0 0 !important;
    }

    .header .nav-searchinputs .top-nav-search,
    .header .nav-searchinputs form,
    .header .searchinputs {
        min-width: 0;
    }

    .header .searchinputs input {
        width: 100% !important;
        min-width: 0;
    }

    .header .as-desktop-action,
    .header .nav-item-box,
    .header .profile-nav {
        flex: 0 0 auto;
        align-items: center;
        white-space: nowrap;
    }

    .header .as-desktop-action > a,
    .header .nav-item-box > a,
    .header .profile-nav .userset {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header .user-menu .nav-item-box > a.as-icon-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0 10px;
    }

    .header .as-topbar-divider {
        flex: 0 0 1px;
        align-self: center;
        margin: 0 4px !important;
    }

    .header .profile-nav .userset {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    .header .profile-nav .user-letter {
        flex: 0 0 auto;
    }

    .header .as-user-meta {
        min-width: 0;
        max-width: 160px;
    }

    .header .as-user-name,
    .header .as-user-role {
        display: block;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .header .nav-searchinputs { display: none; }
    .header .main-header {
        flex-wrap: nowrap !important;
        overflow: hidden;
        padding: 0 8px !important;
    }
    .mobile_btn {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        justify-content: center;
        padding: 0 !important;
        border: 1px solid var(--brand-border);
        border-radius: var(--brand-radius-sm);
        background: #fff;
    }
    .header .user-menu {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap !important;
        gap: 6px;
        padding-left: 6px;
        overflow: visible;
    }
    .header .user-menu > li {
        flex: 0 0 auto;
        min-width: 0;
    }
    .header .as-action-text { display: none !important; }
    .header .as-ghost-btn,
    .user-menu .as-track-cta,
    .user-menu .as-rate-cta {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0 !important;
        justify-content: center;
        gap: 0;
    }
    .header .dropdown-xl {
        min-width: auto;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        right: 0;
        left: auto;
    }
    .header .dropdown-xl .link-item { min-height: 56px; }
}

@media (max-width: 1199.98px) {
    .header .nav-searchinputs { flex-basis: 300px; }
    .header .as-action-text { display: none !important; }
    .header .as-ghost-btn,
    .user-menu .as-track-cta,
    .user-menu .as-rate-cta {
        width: 40px;
        min-width: 40px;
        padding: 0 !important;
        justify-content: center;
    }
    .as-topbar-divider { margin: 0 2px; }
}

/* Shared collapse used by the page-level #collapse-header control. */
body.header-collapse .header {
    right: auto !important;
    width: calc(var(--as-sidebar-w) + 76px) !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    pointer-events: none;
}

body.header-collapse .header .main-header {
    width: auto;
    min-width: 0;
    padding-right: 0 !important;
    overflow: visible;
}

body.header-collapse .header .header-left {
    background: #fff !important;
    pointer-events: auto;
}

body.header-collapse .header .user-menu,
body.header-collapse .header .as-mobile-quick-actions {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.header-collapse .header #toggle_btn.as-collapse-btn,
body.header-collapse .header .mobile_btn {
    pointer-events: auto;
}

body.mini-sidebar.header-collapse .header {
    width: calc(var(--as-sidebar-mini-w) + 76px) !important;
}

body.header-collapse .page-wrapper {
    padding-top: 0 !important;
    transition: margin-left .2s ease, padding-top .18s ease;
}

@media (min-width: 992px) {
    body.header-collapse .header #toggle_btn.as-collapse-btn {
        display: inline-flex !important;
    }
}

.as-mobile-quick-actions {
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.as-mobile-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--brand-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    flex: 0 0 38px;
}

.as-mobile-action-btn i { font-size: 17px; }
.as-mobile-quick-btn { background: var(--brand-primary); }
.as-mobile-rate-btn { background: #0F766E; }
.as-mobile-track-btn { background: var(--brand-secondary); }

@media (min-width: 768px) {
    .header .as-desktop-action .as-quick-btn {
        height: 44px;
        padding: 0 20px !important;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, #087FA9 0%, #35B8D6 100%);
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
        gap: 10px;
        box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), 0.24);
    }

    .header .as-desktop-action .as-quick-btn i {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        line-height: 1;
    }

    .header .as-desktop-action .as-quick-btn:hover,
    .header .as-desktop-action .as-quick-btn:focus {
        background: linear-gradient(135deg, #076F95 0%, #20A8C8 100%);
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), 0.32);
        transform: translateY(-1px);
    }
}

@media (max-width: 767.98px) {
    .header .main-header {
        gap: 8px;
        padding: 0 10px !important;
        overflow: visible;
    }

    .as-mobile-quick-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        overflow: visible;
    }

    .header .user-menu {
        flex: 0 0 auto !important;
        width: auto;
        height: var(--as-header-h);
        padding: 0 !important;
        gap: 0;
    }

    .header .user-menu > li:not(.profile-nav),
    .header .nav-searchinputs,
    .header .as-desktop-action,
    .header .nav-item-box,
    .header .as-topbar-divider {
        display: none !important;
    }

    .profile-nav .userset {
        gap: 0;
        padding: 0;
        background: transparent !important;
    }

    .profile-nav .user-letter img {
        width: 38px;
        height: 38px;
        border-width: 1px;
    }

    .header .dropdown-xl {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        padding: 10px;
        right: -50px;
    }

    .page-header {
        padding: 14px !important;
        margin-bottom: 18px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .page-header .page-title h4 {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }

    .page-header .page-title h6 {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .page-header .table-top-head {
        display: none !important;
    }

    .page-header .page-btn {
        width: 100%;
        margin-top: 0 !important;
    }

    .page-header .page-btn .btn {
        min-height: 38px;
        padding: 0 14px !important;
        display: inline-flex;
        align-items: center;
    }
}

/* ============================================================
   JT INTERNATIONAL COURIER - DASHBOARD COMPOSITIONS
   ============================================================ */
.client-rebrand.admin-dashboard-page,
.client-rebrand.party-dashboard-page {
    display: flex;
    flex-direction: column;
}

.client-rebrand.admin-dashboard-page > *,
.client-rebrand.party-dashboard-page > * { order: 10; }

.client-rebrand.admin-dashboard-page > .as-welcome-banner,
.client-rebrand.party-dashboard-page > .as-welcome-banner { order: 1; }
.client-rebrand.admin-dashboard-page > .marquee-wrapper,
.client-rebrand.party-dashboard-page > .marquee-wrapper { order: 2; }

.client-rebrand.admin-dashboard-page > .fdx-admin-kpi-grid { order: 3; }
.client-rebrand.admin-dashboard-page > .fdx-status-heading { order: 4; }
.client-rebrand.admin-dashboard-page > .fdx-admin-status-grid { order: 5; }
.client-rebrand.admin-dashboard-page > .fdx-admin-operations-row { order: 6; }
.client-rebrand.admin-dashboard-page > .fdx-admin-analytics-row { order: 7; }
.client-rebrand.admin-dashboard-page > .fdx-admin-insights-row { order: 8; }
.client-rebrand.admin-dashboard-page > #CustomDateModal { order: 20; }

.client-rebrand.party-dashboard-page > .fdx-party-calculator { order: 3; }
.client-rebrand.party-dashboard-page > .fdx-party-account-row { order: 4; }
.client-rebrand.party-dashboard-page > .fdx-party-status-heading { order: 5; }
.client-rebrand.party-dashboard-page > .fdx-party-status-grid { order: 6; }
.client-rebrand.party-dashboard-page > .fdx-party-insights-row { order: 7; }
.client-rebrand.party-dashboard-page > #CustomDateModal { order: 20; }

.client-rebrand .fdx-dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #F0D58B;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.client-rebrand .fdx-banner-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    margin-right: 10px;
    padding: 0 15px;
    border-radius: var(--brand-radius-sm);
    background: var(--brand-secondary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(var(--brand-secondary-rgb), .28);
}

.client-rebrand .fdx-banner-action:hover {
    background: #066984;
    transform: translateY(-1px);
}

.client-rebrand .fdx-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 0 12px;
}

.client-rebrand .fdx-section-heading span {
    color: var(--brand-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.client-rebrand .fdx-section-heading h4 {
    margin: 3px 0 0;
    color: var(--brand-text);
    font-size: 20px;
    font-weight: 800;
}

.client-rebrand .fdx-section-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 12px;
    text-align: right;
}

.admin-dashboard-page .as-welcome-banner {
    min-height: 154px;
    border-left: 5px solid var(--brand-secondary) !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"] {
    flex: 1 1 210px;
    max-width: none;
}

.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"]:first-child { flex-grow: 1.45; }

.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"]:first-child .as-kpi-card {
    background: linear-gradient(145deg, var(--brand-dark), #0B5E86);
    border-color: transparent;
}

.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"]:first-child .as-kpi-value,
.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"]:first-child .as-kpi-label { color: #fff; }
.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"]:first-child .as-kpi-icon {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.admin-dashboard-page .fdx-admin-status-grid,
.party-dashboard-page .fdx-party-status-grid { margin-bottom: 24px; }

.admin-dashboard-page .fdx-admin-status-grid > .col,
.party-dashboard-page .fdx-party-status-grid > .col {
    flex: 1 1 150px;
    min-width: 140px;
}

.admin-dashboard-page .fdx-admin-status-grid .as-stat-card {
    padding: 14px;
    border-radius: 14px;
    box-shadow: none;
}

.admin-dashboard-page .fdx-admin-status-grid .as-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.admin-dashboard-page .fdx-admin-status-grid .as-stat-value { font-size: 22px; }

.admin-dashboard-page .fdx-admin-operations-row > div > .card,
.admin-dashboard-page .fdx-admin-analytics-row > div > .card,
.admin-dashboard-page .fdx-admin-insights-row > div > .card {
    border-top: 3px solid rgba(var(--brand-primary-rgb), .24);
}

.party-dashboard-page .as-welcome-banner {
    min-height: 142px;
    background:
        linear-gradient(115deg, rgba(7,29,73,.98), rgba(0,56,168,.93)),
        var(--brand-dark) !important;
}

.party-dashboard-page .fdx-party-calculator {
    overflow: hidden;
    margin-bottom: 18px;
    border: 0 !important;
    box-shadow: 0 18px 42px rgba(7,29,73,.12) !important;
}

.party-dashboard-page .fdx-party-calculator > .card-header {
    padding: 18px 22px;
    background: linear-gradient(100deg, var(--brand-primary), #0A87AD);
    border: 0;
}

.party-dashboard-page .fdx-party-calculator > .card-header h5,
.party-dashboard-page .fdx-party-calculator > .card-header .title-icon { color: #fff !important; }
.party-dashboard-page .fdx-party-calculator > .card-header .title-icon { background: rgba(255,255,255,.15); }
.party-dashboard-page .fdx-party-calculator > .card-body { padding: 22px; }
.party-dashboard-page .fdx-party-calculator > .card-footer:empty { display: none; }

.party-dashboard-page .fdx-party-account-row > [class*="col-"] { flex: 1 1 230px; max-width: none; }
.party-dashboard-page .fdx-party-account-row > [class*="col-"]:first-child { flex-grow: 1.45; }

.party-dashboard-page .fdx-party-status-grid .dash-count {
    width: 100%;
    min-height: 92px;
    padding: 15px;
    background: #fff !important;
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow-card);
    opacity: 1 !important;
}

.party-dashboard-page .fdx-party-status-grid .dash-count h4,
.party-dashboard-page .fdx-party-status-grid .dash-count p { color: var(--brand-text) !important; }
.party-dashboard-page .fdx-party-status-grid .dash-count p { color: var(--brand-muted) !important; }
.party-dashboard-page .fdx-party-status-grid .dash-imgs {
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), .09);
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .client-rebrand .as-welcome-banner { align-items: flex-start !important; }
    .client-rebrand .as-banner-controls { width: 100%; margin-top: 18px; flex-wrap: wrap; }
    .client-rebrand .fdx-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .client-rebrand .fdx-section-heading p { text-align: left; }
}

@media (max-width: 575.98px) {
    .client-rebrand .fdx-banner-action span { display: none; }
    .client-rebrand .fdx-banner-action { width: 40px; padding: 0; justify-content: center; }
    .admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"] { flex-basis: 100%; }
    .admin-dashboard-page .fdx-admin-status-grid,
    .party-dashboard-page .fdx-party-status-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .admin-dashboard-page .fdx-admin-status-grid > .col,
    .party-dashboard-page .fdx-party-status-grid > .col { flex: 0 0 170px; }
}

/* ============================================================
   ADMIN DASHBOARD - REFINED OPERATIONS COMMAND BAR
   Keep decoration clipped independently so dropdowns stay usable.
   ============================================================ */
.client-rebrand.admin-dashboard-page > .jt-command-bar {
    isolation: isolate;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: clamp(28px, 4vw, 72px);
    min-height: 196px;
    padding: clamp(28px, 2.6vw, 42px) clamp(26px, 3.2vw, 50px) !important;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 24px 8px 24px 8px !important;
    background: #071f43 !important;
    box-shadow: 0 22px 52px rgba(5,24,51,.2) !important;
}

.admin-dashboard-page .jt-command-bar::after { content: none; }

.admin-dashboard-page .jt-command-bar .as-banner-bg {
    overflow: hidden;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 46px 46px,
        radial-gradient(circle at 82% 22%, rgba(45,126,207,.36), transparent 31%),
        linear-gradient(120deg, #061a38 0%, #092d60 61%, #10477f 100%);
}

.admin-dashboard-page .jt-command-bar .as-banner-bg::before {
    top: auto;
    right: -64px;
    bottom: -155px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 0 0 42px rgba(255,255,255,.025),
        0 0 0 86px rgba(255,255,255,.018);
}

.admin-dashboard-page .jt-command-bar .as-banner-bg::after {
    content: "";
    position: absolute;
    top: -52%;
    right: 25%;
    width: 34px;
    height: 210%;
    transform: rotate(25deg);
    background: linear-gradient(180deg, #ed283b, #c7182a);
    box-shadow: 18px 0 0 rgba(255,255,255,.035);
}

.admin-dashboard-page .jt-command-bar .as-banner-icon {
    right: 22px;
    bottom: -74px;
    width: 310px;
    height: 310px;
    opacity: .065;
    filter: grayscale(1) brightness(3);
}

.admin-dashboard-page .jt-command-copy,
.admin-dashboard-page .jt-command-actions {
    position: relative;
    z-index: 2;
}

.admin-dashboard-page .jt-command-copy { max-width: 760px; }

.admin-dashboard-page .jt-command-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 11px;
}

.admin-dashboard-page .jt-command-kicker .fdx-dashboard-eyebrow { margin: 0; }

.admin-dashboard-page .jt-command-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.82);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-dashboard-page .jt-command-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #42d59b;
    box-shadow: 0 0 0 4px rgba(66,213,155,.12);
}

.admin-dashboard-page .jt-command-title {
    margin: 0 0 7px;
    color: #fff !important;
    font-size: clamp(28px, 2.35vw, 40px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.admin-dashboard-page .jt-command-subtitle {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.7) !important;
    font-size: 14px;
    line-height: 1.55;
}

.admin-dashboard-page .jt-command-bar .jt-dashboard-signal {
    gap: 8px;
    margin-top: 18px;
}

.admin-dashboard-page .jt-command-bar .jt-signal-chip {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px 3px 9px 3px;
    background: rgba(1,14,34,.22);
    color: rgba(255,255,255,.8);
    backdrop-filter: blur(4px);
}

.admin-dashboard-page .jt-command-actions {
    min-width: 385px;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px 5px 16px 5px;
    background: rgba(2,19,44,.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(12px);
}

.admin-dashboard-page .jt-command-actions-label {
    display: block;
    margin: 0 0 9px 2px;
    color: rgba(255,255,255,.53);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-dashboard-page .jt-command-action-row {
    display: grid;
    grid-template-columns: minmax(138px, 1fr) minmax(120px, auto) 42px;
    align-items: center;
    gap: 8px;
}

.admin-dashboard-page .jt-command-bar .fdx-banner-action {
    justify-content: center;
    height: 42px;
    margin: 0;
    padding: 0 15px;
    border: 0 !important;
    border-radius: 11px 3px 11px 3px;
    background: linear-gradient(135deg, #ef2d40, #d8172a) !important;
    box-shadow: 0 10px 24px rgba(216,23,42,.28) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.admin-dashboard-page .jt-command-bar .fdx-banner-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(216,23,42,.34) !important;
}

.admin-dashboard-page .jt-command-period,
.admin-dashboard-page .jt-command-period .dropdown { min-width: 0; }

.admin-dashboard-page .jt-command-bar .jt-command-period .dropdown-toggle {
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 11px 3px 11px 3px !important;
    background: rgba(255,255,255,.1) !important;
    font-size: 12px;
}

.admin-dashboard-page .jt-command-bar .table-top-head li a {
    width: 42px;
    height: 42px;
    border-radius: 11px 3px 11px 3px;
    transition: transform .18s ease, background .18s ease;
}

.admin-dashboard-page .jt-command-bar .table-top-head li a:hover { transform: rotate(18deg); }

.admin-dashboard-page .jt-command-period-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.52);
    font-size: 10px;
}

.admin-dashboard-page .jt-command-period-note i { color: #ff7180; font-size: 13px; }
.admin-dashboard-page .jt-command-period-note strong { color: rgba(255,255,255,.82); font-weight: 700; }

@media (max-width: 1199.98px) {
    .client-rebrand.admin-dashboard-page > .jt-command-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .admin-dashboard-page .jt-command-actions {
        width: min(100%, 470px);
        min-width: 0;
    }

    .admin-dashboard-page .jt-command-bar .as-banner-bg::after { right: 13%; }
}

@media (max-width: 575.98px) {
    .client-rebrand.admin-dashboard-page > .jt-command-bar {
        gap: 20px;
        padding: 24px 18px !important;
        border-radius: 18px 5px 18px 5px !important;
    }

    .admin-dashboard-page .jt-command-title { font-size: 27px; }
    .admin-dashboard-page .jt-command-subtitle { font-size: 13px; }
    .admin-dashboard-page .jt-command-bar .jt-dashboard-signal { flex-direction: row; }
    .admin-dashboard-page .jt-command-bar .jt-signal-chip { width: 100%; }

    .admin-dashboard-page .jt-command-actions {
        width: 100%;
        padding: 12px;
    }

    .admin-dashboard-page .jt-command-action-row {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .admin-dashboard-page .jt-command-bar .fdx-banner-action {
        width: auto;
        grid-column: 1 / -1;
    }

    .admin-dashboard-page .jt-command-bar .fdx-banner-action span { display: inline; }
    .admin-dashboard-page .jt-command-bar .as-banner-bg::after { right: 2%; opacity: .75; }
    .admin-dashboard-page .jt-command-bar .as-banner-icon { right: -34px; opacity: .045; }
}

/* ============================================================
   JT INTERNATIONAL COURIER - SHIPMENT WORKSPACE COMPOSITIONS
   ============================================================ */
.client-rebrand .fdx-page-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--brand-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.shipment-create-page .fdx-create-overview {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(480px, 1.22fr);
    align-items: center;
    gap: 34px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: var(--brand-radius);
    background: linear-gradient(125deg, var(--brand-dark), var(--brand-primary));
    color: #fff;
    box-shadow: 0 18px 42px rgba(var(--brand-primary-rgb), .18);
}

.shipment-create-page .fdx-create-overview-copy > span,
.shipment-view-page .fdx-route-eyebrow {
    color: #F0D58B;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.shipment-create-page .fdx-create-overview-copy h3 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.shipment-create-page .fdx-create-overview-copy p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    line-height: 1.55;
}

.shipment-create-page .fdx-create-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shipment-create-page .fdx-create-progress li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.shipment-create-page .fdx-create-progress li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.2);
}
.shipment-create-page .fdx-create-progress li:first-child::before { display: none; }

.shipment-create-page .fdx-create-progress b {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(7,29,73,.76);
    color: #fff;
}

.shipment-create-page .fdx-create-progress li.active b,
.shipment-create-page .fdx-create-progress li.complete b {
    border-color: var(--brand-secondary);
    background: var(--brand-secondary);
}
.shipment-create-page .fdx-create-progress li.active,
.shipment-create-page .fdx-create-progress li.complete { color: #fff; }

.shipment-create-page .as-shipment-wizard > .card-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: 22px !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs {
    position: sticky;
    top: calc(var(--as-header-h) + 18px);
    flex-direction: column !important;
    align-items: stretch;
    margin: 0 !important;
    padding: 10px;
    background: linear-gradient(180deg, #fff, #F7F9FD);
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-item { width: 100%; }
.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-link {
    width: 100%;
    min-height: 48px;
    text-align: left;
}

.shipment-create-page .as-shipment-wizard .tab-content { min-width: 0; }
.shipment-create-page .as-shipment-wizard .as-form-section {
    border-radius: 16px;
    box-shadow: none;
}

.shipment-create-page .as-shipment-wizard > .card-footer {
    position: sticky;
    z-index: 12;
    bottom: 0;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 28px rgba(7,29,73,.08);
}

.shipment-list-page .fdx-list-header,
.shipment-view-page .fdx-view-header {
    padding: 18px 20px;
    border-left: 4px solid var(--brand-secondary);
}

.shipment-list-page .fdx-section-heading { margin: 0 0 12px; }
.shipment-list-page .fdx-list-status-grid > [class*="col-"] { flex: 1 1 150px; max-width: none; }
.shipment-list-page .fdx-list-status-grid .as-filter-card {
    min-height: 82px;
    padding: 12px;
    border-radius: 14px;
    box-shadow: none;
}
.shipment-list-page .fdx-list-status-grid .as-filter-icon { width: 40px; height: 40px; }

.shipment-list-page .fdx-list-card {
    overflow: hidden;
    border: 0 !important;
    box-shadow: 0 18px 48px rgba(7,29,73,.10) !important;
}

.shipment-list-page .fdx-list-card > .card-header {
    background: linear-gradient(180deg, #fff, #F8FAFD);
    border-bottom: 1px solid var(--brand-border);
}

.shipment-view-page .fdx-shipment-search-card {
    max-width: 900px;
    margin: 38px auto;
    border: 0 !important;
    box-shadow: 0 24px 64px rgba(7,29,73,.12) !important;
}
.shipment-view-page .fdx-shipment-search-card > .card-header { padding: 28px; }

.shipment-view-page .fdx-route-hero {
    position: relative;
    overflow: hidden;
    padding: 24px 28px;
    border-left: 5px solid var(--brand-secondary);
    border-radius: var(--brand-radius);
    background: linear-gradient(115deg, var(--brand-dark), var(--brand-primary)) !important;
    box-shadow: 0 18px 46px rgba(var(--brand-primary-rgb), .20);
}

.shipment-view-page .fdx-route-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 5px 0 7px;
    color: #fff;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 850;
}
.shipment-view-page .fdx-route-line i { color: #F0D58B; font-size: .85em; }

.shipment-view-page .fdx-route-parties { position: relative; margin-bottom: 18px; }
.shipment-view-page .fdx-route-parties::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% - 14px);
    width: 28px;
    height: 2px;
    background: var(--brand-secondary);
}
.shipment-view-page .fdx-route-party-card {
    min-height: 148px;
    border: 1px solid var(--brand-border) !important;
    border-radius: 16px;
    background: #fff !important;
    color: var(--brand-text) !important;
    box-shadow: var(--brand-shadow-card);
}
.shipment-view-page .fdx-route-party-card .text-primary { color: var(--brand-text) !important; }

.shipment-view-page .fdx-detail-accordion {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-card);
}
.shipment-view-page .fdx-detail-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--brand-border); }
.shipment-view-page .fdx-detail-accordion .accordion-item:last-child { border-bottom: 0; }
.shipment-view-page .fdx-detail-accordion .accordion-button { padding: 17px 20px; font-weight: 800; }

.shipment-view-page .fdx-view-insights-row > div > .card { border-top: 3px solid rgba(var(--brand-primary-rgb), .26); }
.shipment-view-page .fdx-view-action-dock {
    position: sticky;
    z-index: 11;
    bottom: 12px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 40px rgba(7,29,73,.16);
    backdrop-filter: blur(12px);
}

@media (max-width: 991.98px) {
    .shipment-create-page .fdx-create-overview { grid-template-columns: 1fr; gap: 20px; }
    .shipment-create-page .as-shipment-wizard > .card-body { grid-template-columns: 1fr; }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs {
        position: static;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-item { flex: 0 0 150px; }
    .shipment-view-page .fdx-route-parties::after { display: none; }
}

@media (max-width: 575.98px) {
    .shipment-create-page .fdx-create-overview { padding: 18px; }
    .shipment-create-page .fdx-create-progress { overflow-x: auto; grid-template-columns: repeat(5, 76px); }
    .shipment-create-page .as-shipment-wizard > .card-body { padding: 12px !important; }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-item { flex-basis: 130px; }
    .shipment-list-page .fdx-list-status-grid { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
    .shipment-list-page .fdx-list-status-grid > [class*="col-"] { flex: 0 0 176px; }
    .shipment-view-page .fdx-route-hero { padding: 20px; }
    .shipment-view-page .fdx-route-line { align-items: flex-start; flex-direction: column; gap: 2px; }
    .shipment-view-page .fdx-route-line i { transform: rotate(90deg); }
    .shipment-view-page .fdx-view-action-dock { position: static; width: 100%; }
}

/* ============================================================
   5. SIDEBAR
   ============================================================ */
.sidebar-inner { height: calc(100vh - var(--as-header-h)); overflow-y: auto; overflow-x: hidden; }

.sidebar .sidebar-menu { padding: 14px 0 24px; }
.sidebar .sidebar-menu > ul { list-style: none; margin: 0; padding: 0; }

/* Section labels */
.sidebar .menu-title {
    padding: 14px 22px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}
    .sidebar .menu-title span { display: inline; }

.sidebar .sidebar-menu > ul > li { position: relative; }

.sidebar .sidebar-menu > ul > li > a,
.sidebar .sidebar-menu > ul li.submenu > a,
.sidebar .sidebar-menu > ul li ul li a {
    display: flex;
    align-items: center;
    color: var(--brand-text);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--brand-radius-sm);
    margin: 2px 12px;
    padding: 10px 12px;
    transition: background-color .15s ease, color .15s ease;
    position: relative;
}

.sidebar .sidebar-menu > ul > li > a > i,
.sidebar .sidebar-menu > ul li.submenu > a > i {
    font-size: 18px;
    width: 22px;
    margin-right: 12px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .sidebar-menu .menu-arrow { margin-left: auto; }

.sidebar .sidebar-menu > ul > li > a:hover,
.sidebar .sidebar-menu > ul li.submenu > a:hover {
    background: rgba(var(--brand-primary-rgb), 0.06);
    color: var(--brand-primary);
}

/* Submenu (child) items */
.sidebar .sidebar-menu > ul li ul {
    list-style: none;
    padding: 2px 0 4px;
    margin: 0;
}
.sidebar .sidebar-menu > ul li ul li a {
    font-size: 13px;
    padding: 8px 12px 8px 46px;
    margin: 1px 12px;
    color: var(--brand-muted);
}
    .sidebar .sidebar-menu > ul li ul li a::before {
        content: "";
        position: absolute;
        left: 26px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px; height: 6px;
        border-radius: 50%;
        background: var(--brand-border);
        transition: background .15s ease;
    }
    .sidebar .sidebar-menu > ul li ul li a:hover { color: var(--brand-primary); background: rgba(var(--brand-primary-rgb), 0.05); }
    .sidebar .sidebar-menu > ul li ul li a:hover::before { background: var(--brand-primary); }

/* Active states (blue) - override the template's red */
[data-color=primary] .sidebar .sidebar-menu > ul > li.active > a,
[data-color=primary] .sidebar .sidebar-menu > ul > li > a.active,
[data-color=primary] .sidebar .sidebar-menu > ul > li > a.subdrop,
.sidebar .sidebar-menu > ul > li.active > a,
.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu > ul > li > a.subdrop {
    background: rgba(var(--brand-primary-rgb), 0.10) !important;
    color: var(--brand-primary) !important;
}

[data-color=primary] .sidebar .sidebar-menu > ul > li.active > a::before,
[data-color=primary] .sidebar .sidebar-menu > ul > li > a.active::before,
.sidebar .sidebar-menu > ul > li.active > a::before,
.sidebar .sidebar-menu > ul > li > a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 7px;
    bottom: 7px;
    width: 4px;
    background: var(--brand-secondary);
    border-radius: 0 4px 4px 0;
}

[data-color=primary] .sidebar .sidebar-menu > ul > li ul li a.active,
.sidebar .sidebar-menu > ul > li ul li a.active {
    color: var(--brand-primary) !important;
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    font-weight: 600;
}
    .sidebar .sidebar-menu > ul > li ul li a.active::before { background: var(--brand-primary); }

/* Keep the active open submenu aligned; the base template has stronger
   .submenu-open rules that otherwise remove the child indentation. */
.sidebar .sidebar-menu > ul > li.submenu > ul,
.sidebar .sidebar-menu > ul > li.submenu-open > ul {
    list-style: none;
    margin: 0 !important;
    padding: 2px 0 4px !important;
    border-bottom: 0 !important;
}

.sidebar .sidebar-menu > ul > li.submenu > ul > li > a,
.sidebar .sidebar-menu > ul > li.submenu-open > ul > li > a {
    display: flex !important;
    align-items: center;
    width: auto !important;
    min-height: 36px;
    margin: 1px 12px !important;
    padding: 8px 12px 8px 46px !important;
    color: var(--brand-muted);
    background: transparent;
    box-sizing: border-box;
}

.sidebar .sidebar-menu > ul > li.submenu > ul > li > a::after,
.sidebar .sidebar-menu > ul > li.submenu-open > ul > li > a::after {
    display: none !important;
    content: none !important;
}

.sidebar .sidebar-menu .menu-arrow::before { color: var(--brand-muted); }

/* Mini (collapsed) sidebar - icon-only */
@media (min-width: 992px) {
    body.mini-sidebar:not(.expand-menu) .sidebar .menu-title span { display: none; }
    body.mini-sidebar:not(.expand-menu) .sidebar .menu-title { text-align: center; padding: 12px 0 4px; }
    body.mini-sidebar:not(.expand-menu) .sidebar .menu-title::after { content: "..."; color: #cbd5e1; letter-spacing: 1px; }
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul > li > a > span,
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul li.submenu > a > span,
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu .menu-arrow { display: none; }
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul > li > a,
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul li.submenu > a { justify-content: center; padding: 11px; }
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul > li > a > i { margin-right: 0; }
    body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul li ul { display: none !important; }
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
    background: var(--brand-surface) !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius) !important;
    box-shadow: var(--brand-shadow-card) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--brand-border) !important;
    padding: 16px 20px 14px !important;
}

.card-title { color: var(--brand-text); font-weight: 700; }

.title-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--brand-primary-rgb), 0.10);
    color: var(--brand-primary);
}
    .title-icon.bg-soft-orange, .title-icon.bg-soft-danger { background: rgba(var(--brand-secondary-rgb), 0.12); color: var(--brand-secondary); }

/* ============================================================
   7. WELCOME / HERO BANNER
   ============================================================ */
.as-welcome-banner {
    background: linear-gradient(120deg, var(--brand-dark) 0%, #0B5E86 52%, var(--brand-primary) 100%) !important;
    color: #fff !important;
    border-radius: var(--brand-radius) !important;
    min-height: 132px;
    padding: 24px 28px !important;
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
    box-shadow: 0 12px 32px rgba(var(--brand-primary-rgb), 0.18);
    border: none !important;
}
    /* clipped background layer holds the decorative glow + globe icon, so the
       banner itself can keep overflow:visible and let the date dropdown show fully */
    .as-welcome-banner .as-banner-bg {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        overflow: hidden;
        z-index: 0;
        pointer-events: none;
    }
    /* subtle orange glow accent in the corner */
    .as-welcome-banner .as-banner-bg::before {
        content: "";
        position: absolute;
        top: -60px; right: -40px;
        width: 280px; height: 280px;
        background: radial-gradient(circle, rgba(var(--brand-secondary-rgb), 0.45), transparent 65%);
        pointer-events: none;
    }

    .as-welcome-banner h2,
    .as-welcome-banner h3,
    .as-welcome-banner h6 { color: #fff !important; font-weight: 700; margin-bottom: 6px; }

    .as-welcome-banner p,
    .as-welcome-banner .welcome-text p { color: rgba(255, 255, 255, 0.85) !important; margin-bottom: 0; }

    .as-welcome-banner .as-banner-icon {
        position: absolute;
        right: -18px;
        bottom: -76px;
        width: 300px;
        height: 300px;
        opacity: 0.16;
        pointer-events: none;
        background: url("/Content/assets/img/CompanyLogo.png") center / contain no-repeat;
        filter: saturate(1.05) drop-shadow(0 20px 44px rgba(0, 0, 0, .18));
    }
        .as-welcome-banner .as-banner-icon svg { display: none; }

    .as-welcome-banner .welcome-text { position: relative; z-index: 1; }
    .as-welcome-banner .as-banner-controls { position: relative; z-index: 30; }
    .as-welcome-banner .dropdown { position: relative; z-index: 40; }
    .as-welcome-banner .dropdown-menu {
        z-index: 1085 !important;
        border: 1px solid var(--brand-border);
        border-radius: var(--brand-radius-sm);
        box-shadow: 0 18px 44px rgba(6, 42, 86, .18);
    }

    /* Date dropdown as a clean glass control */
    .as-welcome-banner .as-banner-controls .dropdown-toggle,
    .as-welcome-banner .as-banner-controls .btn-white {
        background: rgba(255, 255, 255, 0.14) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.30) !important;
        border-radius: var(--brand-radius-sm) !important;
        backdrop-filter: blur(4px);
        height: 40px;
        font-weight: 600;
        padding: 0 16px;
    }
        .as-welcome-banner .as-banner-controls .dropdown-toggle:hover { background: rgba(255,255,255,0.22) !important; }
        .as-welcome-banner .as-banner-controls .dropdown-toggle::after { display: none !important; }

    /* Table-top icon buttons (refresh) - glassy circles */
    .as-welcome-banner .table-top-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
    .as-welcome-banner .table-top-head li a {
        width: 40px; height: 40px;
        border-radius: var(--brand-radius-sm);
        display: inline-flex; align-items: center; justify-content: center;
        background: rgba(255, 255, 255, 0.14) !important;
        border: 1px solid rgba(255, 255, 255, 0.30);
        color: #fff !important;
        cursor: pointer;
    }
        .as-welcome-banner .table-top-head li a:hover { background: rgba(255,255,255,0.24) !important; }
        .as-welcome-banner .table-top-head li a i { font-size: 18px; }

/* ============================================================
   8. STAT TILES (Draft / Booked / Forwarded / ...)
   ============================================================ */
.as-stat-row { margin-bottom: 8px; }

.as-stat-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-card);
    padding: 18px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
    .as-stat-card:hover { transform: translateY(-2px); box-shadow: var(--brand-shadow-hover); border-color: rgba(var(--brand-primary-rgb), 0.35); }

    .as-stat-card .as-stat-icon {
        width: 48px; height: 48px;
        border-radius: 12px;
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--brand-primary);
        color: #fff;
        flex-shrink: 0;
    }
        .as-stat-card .as-stat-icon i { font-size: 22px; color: #fff; }

    .as-stat-card .as-stat-value { font-size: 26px; font-weight: 800; line-height: 1; margin: 0; color: var(--brand-text); }
    .as-stat-card .as-stat-label { font-size: 13px; color: var(--brand-muted); margin: 4px 0 0; font-weight: 500; }

/* ============================================================
   8b. KPI CARDS
   ============================================================ */
.as-kpi-row { margin-bottom: 24px; }

.as-kpi-card {
    background: #fff;
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-card);
    padding: 20px 20px 16px;
    border: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
    color: var(--brand-text);
    position: relative;
    overflow: hidden;
}
    /* bottom accent bar instead of a left border */
    .as-kpi-card::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 3px;
        background: var(--brand-primary);
    }
    .as-kpi-card.as-kpi-accent-orange::after { background: var(--brand-secondary); }

    .as-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow-hover); }

    .as-kpi-card .as-kpi-icon {
        width: 44px; height: 44px;
        border-radius: 12px;
        display: inline-flex; align-items: center; justify-content: center;
        background: rgba(var(--brand-primary-rgb), 0.10);
        color: var(--brand-primary);
        margin-bottom: 14px;
        font-size: 20px;
    }
    .as-kpi-card.as-kpi-accent-orange .as-kpi-icon { background: rgba(var(--brand-secondary-rgb), 0.12); color: var(--brand-secondary); }

    .as-kpi-card .as-kpi-value { font-size: 27px; font-weight: 800; color: var(--brand-text); margin: 0; line-height: 1.1; }
    .as-kpi-card .as-kpi-label { font-size: 13px; color: var(--brand-muted); margin-top: 4px; font-weight: 500; }

    /* trend rendered as a pill badge */
    .as-kpi-card .as-kpi-trend {
        margin-top: 14px;
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 999px;
    }
        .as-kpi-card .as-kpi-trend.as-trend-up { color: var(--brand-success); background: rgba(16, 185, 129, 0.12); }
        .as-kpi-card .as-kpi-trend.as-trend-down { color: var(--brand-danger); background: rgba(239, 68, 68, 0.12); }

/* legacy dash-count used on other dashboards - keep tidy */
.dash-count { border-radius: var(--brand-radius) !important; box-shadow: var(--brand-shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
    .dash-count:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow-hover); }

/* Partner / fuel mini-cards */
.info-item { border-radius: var(--brand-radius-sm); }
.avatar.bg-primary { background: var(--brand-primary) !important; }

/* ============================================================
   9. TABLES
   ============================================================ */
.table { color: var(--brand-text); }

.table thead th {
    background: #f8fafc !important;
    color: var(--brand-text) !important;
    font-weight: 700;
    border-bottom: 1px solid var(--brand-border);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.table tbody tr { transition: background-color .12s ease; }
.table tbody tr:hover { background: var(--brand-bg) !important; }
.table td, .table th { border-color: var(--brand-border); vertical-align: middle; }

.as-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(var(--brand-primary-rgb), 0.10);
    color: var(--brand-primary);
}

    .as-status-pill.as-pill-intransit { background: rgba(var(--brand-secondary-rgb), 0.14); color: var(--brand-secondary); }
    .as-status-pill.as-pill-pending { background: rgba(100, 116, 139, 0.12); color: var(--brand-muted); }
    .as-status-pill.as-pill-delivered { background: rgba(16, 185, 129, 0.12); color: var(--brand-success); }

.as-route-arrow { display: inline-block; margin: 0 8px; color: var(--brand-secondary); font-weight: 700; }

/* ============================================================
   10. FORMS
   ============================================================ */
.as-form-section {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--brand-shadow-card);
}

    .as-form-section .as-section-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--brand-border);
    }

        .as-form-section .as-section-head .as-section-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--brand-secondary);
            box-shadow: 0 0 0 4px rgba(var(--brand-secondary-rgb), 0.15);
        }

        .as-form-section .as-section-head h5,
        .as-form-section .as-section-head h6 {
            margin: 0;
            font-weight: 700;
            color: var(--brand-text);
        }

.as-form-group { margin-bottom: 18px; }

.as-label,
.as-form-group > label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 6px;
}

/* Orange-dot required indicator (replaces template's red *) */
.as-required-dot,
label .text-danger,
label small.text-danger {
    color: transparent !important;
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-block;
    background: var(--brand-secondary);
    border-radius: 50%;
    margin-left: 6px;
    font-size: 0 !important;
    vertical-align: middle;
    line-height: 0;
}

.as-input,
.form-control {
    background: #fff !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius-sm) !important;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 14px;
    color: var(--brand-text) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea.form-control, textarea.as-input { min-height: 96px; padding: 12px 14px !important; }

.select2-container--default .select2-selection--single {
    background: #fff !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius-sm) !important;
    min-height: 44px;
    height: 44px;
    padding: 8px 12px !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 26px;
        padding-left: 0;
        color: var(--brand-text);
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }

.form-control:focus,
.as-input:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.12) !important;
    outline: none;
}

.pac-container {
    z-index: 1080;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    box-shadow: var(--brand-shadow-card);
    font-family: inherit;
}

.form-control.input-validation-error,
.as-input.input-validation-error {
    border-color: var(--brand-danger) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

.field-validation-error,
.as-error {
    color: var(--brand-danger) !important;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.as-helper { font-size: 12px; color: var(--brand-muted); margin-top: 4px; }

.as-btn-submit,
.btn-login {
    background: var(--brand-secondary) !important;
    color: #fff !important;
    border: none !important;
    height: 44px;
    padding: 0 26px !important;
    border-radius: var(--brand-radius-sm) !important;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(var(--brand-secondary-rgb), 0.28);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .as-btn-submit:hover,
    .btn-login:hover {
        background: #ea670c !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(var(--brand-secondary-rgb), 0.38);
    }

.as-btn-cancel {
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    height: 44px;
    padding: 0 22px;
    border-radius: var(--brand-radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .as-btn-cancel:hover { background: rgba(var(--brand-primary-rgb), 0.08); color: var(--brand-primary); }

/* ============================================================
   11. LOGIN PAGE (legacy template hooks - kept harmless;
   the live login page is self-contained under .asg-login)
   ============================================================ */
.account-page,
body.account-page { background: var(--brand-bg) !important; }

.login-wrapper { min-height: 100vh; background: var(--brand-bg); }

.login-content { background: #fff; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.10); border-radius: var(--brand-radius); padding: 40px; }

.login-img { background: var(--brand-gradient); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
    .login-img img { max-width: 72%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.25)); }

.forgot-link { color: var(--brand-secondary) !important; font-weight: 600; }

/* ============================================================
   12. PAGE HEADER (used on most internal views)
   ============================================================ */
.page-header {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--brand-shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

    .page-header .page-title h4 { color: var(--brand-text); font-weight: 700; margin-bottom: 2px; }
    .page-header .page-title h4 i { color: var(--brand-secondary); margin-right: 6px; }
    .page-header .page-title h6 { color: var(--brand-muted); font-size: 13px; margin: 0; }

/* ============================================================
   12b. SHIPMENT WIZARD (Shipment/Create.cshtml)
   ============================================================ */
.as-shipment-wizard { overflow: hidden; }

.as-shipment-wizard .card-body { background: var(--brand-bg); }

.as-wizard-tabs {
    background: #fff;
    border-radius: var(--brand-radius);
    padding: 8px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow-card);
    gap: 6px;
}

    .as-wizard-tabs .nav-item { flex: 1 1 auto; min-width: 0; }

    .as-wizard-tabs .nav-link {
        background: transparent;
        color: var(--brand-muted) !important;
        font-weight: 600;
        font-size: 14px;
        border: 1px solid transparent;
        border-radius: var(--brand-radius-sm);
        padding: 10px 14px;
        transition: all .15s ease;
        white-space: nowrap;
    }

        .as-wizard-tabs .nav-link i { margin-right: 6px; }

        .as-wizard-tabs .nav-link:hover {
            background: rgba(var(--brand-primary-rgb), 0.05);
            color: var(--brand-primary) !important;
            border-color: rgba(var(--brand-primary-rgb), 0.10);
        }

        .as-wizard-tabs .nav-link.active {
            background: var(--brand-gradient) !important;
            color: #fff !important;
            border-color: transparent;
            box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb), 0.22);
        }

.as-choose-party { margin-top: 12px; }

.as-shipment-wizard .as-form-section { background: #fff; }

@media (max-width: 575px) {
    .as-wizard-tabs { padding: 6px; }
    .as-wizard-tabs .nav-link { padding: 8px 10px; font-size: 13px; }
    .as-wizard-tabs .nav-link i { display: none; }
}

/* ============================================================
   13. MISC HELPERS
   ============================================================ */
.as-divider { height: 1px; background: var(--brand-border); margin: 16px 0; }
.as-soft-blue { background: rgba(var(--brand-primary-rgb), 0.10) !important; color: var(--brand-primary) !important; }
.as-soft-orange { background: rgba(var(--brand-secondary-rgb), 0.12) !important; color: var(--brand-secondary) !important; }

.marquee-wrapper {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    overflow: hidden;
}

.as-quick-actions { display: flex; flex-direction: column; gap: 10px; }

    .as-quick-actions .as-quick-action {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: var(--brand-radius-sm);
        border: 1px solid var(--brand-border);
        background: #fff;
        color: var(--brand-text);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: all .15s ease;
    }

        .as-quick-actions .as-quick-action:hover {
            border-color: var(--brand-primary);
            background: rgba(var(--brand-primary-rgb), 0.05);
            color: var(--brand-primary);
            transform: translateX(2px);
        }

        .as-quick-actions .as-quick-action .as-qa-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(var(--brand-secondary-rgb), 0.12);
            color: var(--brand-secondary);
            flex-shrink: 0;
        }

.copyright-footer {
    background: #fff !important;
    border-top: 1px solid var(--brand-border) !important;
    padding: 14px 22px !important;
}

    .copyright-footer a { color: var(--brand-primary); font-weight: 600; }
    .as-footer-contact .as-footer-badge {
        min-height: 40px;
        padding: 0 16px;
        border-radius: var(--brand-radius-sm);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        color: #fff !important;
        background: var(--brand-secondary);
        box-shadow: 0 4px 14px rgba(var(--brand-secondary-rgb), 0.28);
        text-decoration: none;
    }
    .as-footer-contact .as-footer-badge-primary {
        background: var(--brand-primary);
        color: #fff;
        box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.26);
    }
    .as-footer-contact .as-footer-badge-gold {
        background: var(--brand-accent);
        color: var(--brand-dark) !important;
        box-shadow: 0 4px 14px rgba(var(--brand-accent-rgb), 0.28);
    }
    .as-footer-contact .as-footer-badge i { color: #fff; }
    .as-footer-contact .as-footer-badge-gold i { color: var(--brand-dark); }

@media (max-width: 991.98px) {
    .copyright-footer {
        justify-content: center !important;
        text-align: center;
        padding: 12px 16px !important;
    }
    .as-footer-contact { justify-content: center; }
    .as-footer-contact .as-footer-badge {
        white-space: normal;
        justify-content: center;
    }
}

/* ============================================================
   14. TOPBAR SEARCH DROPDOWN (suggestions + Menu_Search results)
   ============================================================ */
.search-dropdown {
    width: 360px !important;
    height: auto !important;
    max-height: 440px !important;
    overflow-y: auto !important;
    padding: 12px !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius) !important;
    box-shadow: var(--brand-shadow-hover) !important;
    background: #fff !important;
    margin-top: 8px !important;
}
    .search-dropdown .search-info { color: var(--brand-text) !important; margin: 0 !important; padding: 0 !important; border: none !important; }

.as-search-results { width: 100%; }

.as-search-results-head,
.search-dropdown .search-info h6 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brand-muted);
    padding: 2px 6px 10px;
    margin: 0 0 6px !important;
    border-bottom: 1px solid var(--brand-border);
}

.as-search-results-title { display: inline-flex; align-items: center; gap: 7px; }
    .as-search-results-title i { color: var(--brand-secondary); font-size: 15px; }

.as-search-count {
    background: rgba(var(--brand-primary-rgb), 0.10);
    color: var(--brand-primary);
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 11px;
    font-weight: 700;
}

.as-result-list { list-style: none; margin: 0; padding: 0; }
    .as-result-list li { margin: 0; }

.as-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--brand-radius-sm);
    color: var(--brand-text);
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}
    .as-result-item:hover { background: rgba(var(--brand-primary-rgb), 0.07); color: var(--brand-primary); }

    .as-result-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(var(--brand-secondary-rgb), 0.12);
        color: var(--brand-secondary);
        flex-shrink: 0;
        font-size: 16px;
    }
        .as-result-item:hover .as-result-icon { background: var(--brand-primary); color: #fff; }

    .as-result-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
    .as-result-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .as-result-parent { font-size: 11px; color: var(--brand-muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .as-result-parent i { font-size: 12px; flex-shrink: 0; }

    .as-result-go { color: var(--brand-muted); font-size: 16px; flex-shrink: 0; opacity: 0; transform: translateX(-4px); transition: all .12s ease; }
        .as-result-item:hover .as-result-go { opacity: 1; transform: none; color: var(--brand-primary); }

.as-result-empty { text-align: center; padding: 28px 16px 22px; }
    .as-result-empty-icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-bg);
        color: var(--brand-muted);
        font-size: 26px;
        margin-bottom: 12px;
    }
    .as-result-empty-title { font-size: 14px; font-weight: 600; color: var(--brand-text); margin: 0 0 2px; }
    .as-result-empty-sub { font-size: 12px; color: var(--brand-muted); margin: 0; }


/* loading spinner injected before results */
.search-dropdown .loading-overlay { display: flex; align-items: center; justify-content: center; padding: 40px 0; color: var(--brand-primary); }

/* ============================================================
   15. LIST / TABLE PAGES (Shipment_List and similar)
   ============================================================ */

/* Status filter cards */
.as-filter-row { margin-bottom: 22px; }

.as-filter-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 14px;
    box-shadow: var(--brand-shadow-card);
    cursor: pointer;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
    .as-filter-card:hover { transform: translateY(-2px); box-shadow: var(--brand-shadow-hover); border-color: rgba(var(--brand-primary-rgb), 0.35); }
    .as-filter-card.active { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12); background: rgba(var(--brand-primary-rgb), 0.04); }
    .as-filter-card.active::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }

    .as-filter-icon {
        width: 46px; height: 46px;
        border-radius: 12px;
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--brand-primary);
        color: #fff;
        flex-shrink: 0;
        font-size: 19px;
    }
        .as-filter-icon i { color: #fff; }

    .as-filter-meta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
    .as-filter-count { font-size: 22px; font-weight: 800; color: var(--brand-text); }
    .as-filter-label { font-size: 12px; color: var(--brand-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* List toolbar (card header with date filter + relocated search) */
.as-list-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.as-filter-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0; }
    .as-filter-form .as-field { display: flex; flex-direction: column; }
    .as-filter-form .as-field label { font-size: 12px; font-weight: 600; color: var(--brand-muted); margin-bottom: 5px; }
    .as-filter-form .as-field input { height: 42px; min-width: 160px; }
    .as-apply-btn { height: 42px; display: inline-flex; align-items: center; gap: 6px; }

/* DataTables search box (relocated into .search-input) */
.as-table-search { display: flex; align-items: flex-end; flex: 1 1 auto; justify-content: flex-end; }
.dataTables_filter { margin: 0; }
    .dataTables_filter label { margin: 0; font-size: 0; }
    .dataTables_filter input {
        height: 42px;
        min-width: 250px;
        border: 1px solid var(--brand-border) !important;
        border-radius: 999px !important;
        padding: 0 18px !important;
        background: var(--brand-bg) !important;
        font-size: 14px;
        margin: 0 !important;
    }
        .dataTables_filter input:focus { border-color: var(--brand-primary) !important; box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.12) !important; background: #fff !important; outline: none; }

/* DataTables bottom controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info { color: var(--brand-muted); font-size: 13px; padding: 14px 18px; }
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 5px 10px;
    margin: 0 6px;
    color: var(--brand-text);
    background: #fff;
}
.dataTables_wrapper .dataTables_paginate { padding: 12px 16px; }
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid var(--brand-border) !important;
    color: var(--brand-text) !important;
    background: #fff !important;
    min-width: 34px;
    text-align: center;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .page-link:hover {
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    color: var(--brand-primary) !important;
    border-color: rgba(var(--brand-primary-rgb), 0.30) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link { opacity: .5; }

/* Table cell helpers */
.as-cell-strong { font-weight: 700; color: var(--brand-text); }
.as-cell-sub { font-size: 11.5px; color: var(--brand-muted); }
.as-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .2px; color: var(--brand-text); }

.as-type-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
    background: rgba(var(--brand-primary-rgb), 0.08); color: var(--brand-primary);
}

.as-country-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand-muted); margin-top: 2px; }
    .as-country-chip .as-cc { background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: 5px; padding: 0 6px; font-size: 10.5px; font-weight: 700; color: var(--brand-text); letter-spacing: .3px; }

.as-net-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--brand-border); padding: 2px; flex-shrink: 0; }

.as-status-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    background: var(--brand-bg); color: var(--brand-text);
    border: 1px solid var(--brand-border);
    white-space: nowrap;
}
    .as-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--brand-primary); }

.as-price { font-weight: 800; color: var(--brand-text); font-size: 14px; }

/* Shipment list table: keep the list inside the card width */
.as-shipment-table-wrap.table-responsive { overflow-x: hidden; }

.as-shipment-table.dataTable,
.as-shipment-table {
    width: 100% !important;
    table-layout: fixed;
}

.as-shipment-table th,
.as-shipment-table td {
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    padding-left: 8px;
    padding-right: 8px;
}

.as-shipment-table .as-col-date { width: 8%; }
.as-shipment-table .as-col-type { width: 7%; }
.as-shipment-table .as-col-tracking { width: 12%; }
.as-shipment-table .as-col-consignee { width: 17%; }
.as-shipment-table .as-col-party { width: 11%; }
.as-shipment-table .as-col-service { width: 21%; }
.as-shipment-table .as-col-status { width: 10%; }
.as-shipment-table .as-col-amount { width: 7%; }
.as-shipment-table .as-col-actions { width: 7%; }

.as-shipment-table .as-type-badge,
.as-shipment-table .as-status-tag {
    max-width: 100%;
}

.as-shipment-table .as-type-badge {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-shipment-table .d-flex,
.as-shipment-table .d-flex > div {
    min-width: 0;
}

.as-shipment-table .as-awb-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.as-shipment-table .as-awb-inline i {
    color: var(--brand-primary);
    font-size: 12px;
}

.as-shipment-table .as-awb-inline span {
    color: var(--brand-primary);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.as-shipment-table .as-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.as-shipment-table .as-action-btn {
    width: 30px;
    height: 30px;
}

/* Row action buttons */
.as-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.as-action-btn {
    width: 34px; height: 34px;
    border-radius: 9px;
    border: 1px solid var(--brand-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand-muted);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all .12s ease;
}
    .as-action-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: rgba(var(--brand-primary-rgb), 0.06); }
    .as-action-btn.as-action-edit:hover { border-color: var(--brand-secondary); color: var(--brand-secondary); background: rgba(var(--brand-secondary-rgb), 0.08); }
    .as-action-btn.as-action-del:hover { border-color: var(--brand-danger); color: var(--brand-danger); background: rgba(239, 68, 68, 0.08); }
    .as-action-btn i { font-size: 16px; }
    .as-action-btn.dropdown-toggle::after { display: none; }

/* Modal polish */
.modal-content { border: none !important; border-radius: var(--brand-radius) !important; box-shadow: 0 24px 60px rgba(10, 22, 40, 0.22) !important; }
.modal-header { border-bottom: 1px solid var(--brand-border) !important; padding: 16px 20px !important; }
    .modal-header .modal-title { font-weight: 700; color: var(--brand-text); display: inline-flex; align-items: center; gap: 8px; }
    .modal-header .modal-title i { color: var(--brand-secondary); }
.modal-body { padding: 20px !important; }

@media (max-width: 991.98px) {
    .as-list-toolbar { align-items: stretch; }
    .as-table-search { justify-content: flex-start; }
    .dataTables_filter input { min-width: 100%; width: 100%; }

    .as-shipment-table-wrap.table-responsive {
        overflow-x: hidden;
        padding: 0 12px 12px;
    }

    .as-shipment-table.dataTable,
    .as-shipment-table,
    .as-shipment-table thead,
    .as-shipment-table tbody,
    .as-shipment-table tr,
    .as-shipment-table td {
        display: block;
        width: 100% !important;
    }

    .as-shipment-table thead {
        display: none;
    }

    .as-shipment-table tbody tr {
        margin: 12px 0;
        padding: 12px 14px;
        border: 1px solid var(--brand-border);
        border-radius: var(--brand-radius-sm);
        background: #fff;
        box-shadow: var(--brand-shadow-card);
    }

    .as-shipment-table tbody td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        border: 0 !important;
        border-bottom: 1px solid var(--brand-border) !important;
        padding: 9px 0 !important;
        text-align: left !important;
    }

    .as-shipment-table tbody td:last-child {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .as-shipment-table tbody td::before {
        content: attr(data-label);
        color: var(--brand-muted);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .as-shipment-table .as-col-actions {
        display: block;
    }

    .as-shipment-table .as-col-actions::before {
        display: block;
        margin-bottom: 8px;
    }

    .as-shipment-table .as-actions {
        justify-content: flex-start;
    }

    .as-shipment-table .as-type-badge {
        white-space: normal;
        text-overflow: clip;
    }

    .as-shipment-table td.dataTables_empty {
        display: block;
        text-align: center !important;
        border-bottom: 0 !important;
    }

    .as-shipment-table td.dataTables_empty::before {
        content: "";
        display: none;
    }
}

/* ============================================================
   16. JT INTERNATIONAL COURIER REBRAND REFINEMENTS
   Scoped visual upgrades for requested courier workflows.
   ============================================================ */

/* Header wordmark beside the JT International Courier mark */
.header .header-left .as-topbar-logo {
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none !important;
}

.header .header-left .as-topbar-logo img {
    width: 72px;
    height: 52px;
    object-fit: contain;
    padding: 2px;
    border-radius: 10px;
    background: #fff;
}

.header .header-left .as-topbar-logo .as-wordmark {
    display: flex;
}

.header .header-left .as-wordmark .as-wordmark-top {
    font-size: 18px;
    letter-spacing: 0;
    color: var(--brand-dark);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.header .header-left .as-wordmark .as-wordmark-bottom {
    color: var(--brand-secondary);
    letter-spacing: 1px;
}

body.mini-sidebar .header .header-left .as-topbar-logo {
    justify-content: center;
}

body.mini-sidebar .header .header-left .as-topbar-logo .as-wordmark {
    display: none !important;
}

/* Page headers */
.page-header {
    background:
        linear-gradient(135deg, rgba(var(--brand-primary-rgb), .10), rgba(var(--brand-secondary-rgb), .10)),
        #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow-card);
    padding: 18px 20px;
    margin-bottom: 22px;
}

.page-header .page-title h4,
.page-header .page-title h6 {
    margin-bottom: 0;
}

.page-header .page-title h4 {
    color: var(--brand-dark);
}

.page-header .page-title h4 i,
.page-header .title-icon i {
    color: var(--brand-secondary);
}

.page-header .page-title h6 {
    color: var(--brand-muted);
    margin-top: 4px;
    font-size: 13px;
}

/* Cards, tables, and form controls used across target pages */
.card {
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius) !important;
    box-shadow: var(--brand-shadow-card) !important;
}

.card-header {
    background: linear-gradient(180deg, #fff, #fbfdff) !important;
    border-bottom: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius) var(--brand-radius) 0 0 !important;
}

.card-title {
    color: var(--brand-dark);
    font-weight: 700;
}

.form-control,
.form-select,
select.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--brand-border) !important;
    border-radius: 10px !important;
    min-height: 42px;
    color: var(--brand-text);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), .12) !important;
}

label,
.control-label,
.as-label {
    color: var(--brand-dark);
    font-weight: 650;
    font-size: 13px;
}

.table {
    color: var(--brand-text);
}

.table thead th,
.table-light th {
    background: #eef5ff !important;
    color: var(--brand-dark) !important;
    border-bottom: 1px solid var(--brand-border) !important;
    font-weight: 750;
    font-size: 12px;
    text-transform: uppercase;
}

.table tbody td {
    border-color: #eef2f7 !important;
}

.datatable tbody tr:hover,
.table tbody tr:hover {
    background: rgba(var(--brand-primary-rgb), .035);
}

/* Dashboard cards */
.as-welcome-banner,
.welcome-wrap {
    position: relative;
    background:
        radial-gradient(580px 180px at 88% 18%, rgba(var(--brand-secondary-rgb), .28), transparent 60%),
        linear-gradient(135deg, var(--brand-dark), #006FD1 68%, #0693E3) !important;
    color: #fff;
    border-radius: var(--brand-radius);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(6, 42, 86, .24);
    padding: 24px;
    margin-bottom: 22px;
}

.as-welcome-banner {
    overflow: visible !important;
}

.welcome-wrap {
    overflow: hidden;
}

.as-welcome-banner .welcome-text h2,
.welcome-wrap h2 {
    color: #fff;
    font-weight: 800;
}

.as-welcome-banner .welcome-text p,
.welcome-wrap b {
    color: rgba(255,255,255,.82);
}

.dash-count,
.as-stat-card,
.as-kpi-card,
.sales-cards .card.color-info,
.sales-cards > div > .card {
    border-radius: var(--brand-radius) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), .10);
    box-shadow: var(--brand-shadow-card);
    transition: transform .16s ease, box-shadow .16s ease;
}

.dash-count:hover,
.as-stat-card:hover,
.as-kpi-card:hover,
.sales-cards > div > .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--brand-shadow-hover);
}

.dash-count {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary)) !important;
}

.dash-count .dash-imgs i {
    color: rgba(255,255,255,.92);
}

.sales-cards .card.color-info.bg-secondary {
    background: linear-gradient(135deg, #F59E0B, #F97316) !important;
}

/* Executive dashboard KPI cards */
.as-kpi-row.g-3 {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
    margin-bottom: 28px;
}

.as-kpi-card,
.as-kpi-card.as-kpi-accent-orange {
    min-height: 178px;
    padding: 22px 22px 18px;
    border-radius: 18px !important;
    border: 1px solid #dbe7f5 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.98) 100%) !important;
    box-shadow: 0 14px 36px rgba(6, 42, 86, .08) !important;
    color: var(--brand-text) !important;
    overflow: hidden;
    isolation: isolate;
}

.as-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), #08A7EF);
    z-index: 1;
}

.as-kpi-card.as-kpi-accent-orange::before {
    background: linear-gradient(90deg, #F59E0B, #F97316);
}

.as-kpi-card::after {
    content: "";
    position: absolute;
    right: -52px;
    top: -54px;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-primary-rgb), .13), transparent 68%);
    z-index: -1;
}

.as-kpi-card.as-kpi-accent-orange::after {
    background: radial-gradient(circle, rgba(var(--brand-secondary-rgb), .16), transparent 68%);
}

.as-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-primary-rgb), .28) !important;
    box-shadow: 0 20px 44px rgba(6, 42, 86, .13) !important;
}

.as-kpi-card .as-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), .12), rgba(8, 167, 239, .10));
    color: var(--brand-primary);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), .08);
}

.as-kpi-card.as-kpi-accent-orange .as-kpi-icon {
    background: linear-gradient(135deg, rgba(var(--brand-secondary-rgb), .16), rgba(249, 115, 22, .10));
    color: var(--brand-secondary);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-secondary-rgb), .10);
}

.as-kpi-card .as-kpi-icon i {
    font-size: 24px;
    stroke-width: 1.8;
}

.as-kpi-card .as-kpi-value {
    margin: 0 0 6px;
    color: #061B3A !important;
    font-size: clamp(25px, 2.1vw, 32px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    word-break: break-word;
}

.as-kpi-card .as-kpi-label {
    margin: 0;
    color: #50627F !important;
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 700;
}

.as-kpi-card .as-kpi-trend {
    margin-top: auto;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0;
    border: 1px solid transparent;
}

.as-kpi-card .as-kpi-trend.as-trend-up {
    color: #047857 !important;
    background: rgba(16, 185, 129, .10) !important;
    border-color: rgba(16, 185, 129, .16);
}

.as-kpi-card .as-kpi-trend.as-trend-down {
    color: #DC2626 !important;
    background: rgba(239, 68, 68, .09) !important;
    border-color: rgba(239, 68, 68, .15);
}

.as-kpi-card .as-kpi-trend i {
    font-size: 14px;
}

/* Top customers dashboard list */
.as-top-customers-card {
    overflow: hidden;
}

.as-top-customers-card .card-header {
    padding: 17px 20px;
}

.as-customer-count {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(var(--brand-primary-rgb), .08);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.as-top-customers-body {
    padding: 14px 16px 16px !important;
}

.as-customer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.as-customer-row:first-child {
    padding-top: 2px;
}

.as-customer-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.as-customer-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 230px;
}

.as-customer-avatar {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: visible;
    flex: 0 0 52px;
    background: #f4f8fc;
    box-shadow: inset 0 0 0 1px #e4edf7;
}

.as-customer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.as-customer-avatar span {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-secondary);
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.as-customer-info {
    min-width: 0;
}

.as-customer-info h6 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.as-customer-info h6 a {
    color: var(--brand-primary);
}

.as-customer-info h6 a:hover {
    color: var(--brand-secondary);
}

.as-customer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.as-customer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f6f9fc;
    color: #50627F;
    border: 1px solid #e7edf5;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.as-customer-meta i {
    color: var(--brand-secondary);
    font-size: 12px;
}

.as-customer-amount {
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    min-width: 108px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), .10), rgba(var(--brand-secondary-rgb), .09));
    color: #061B3A;
    text-align: right;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

@media (max-width: 575.98px) {
    .as-customer-main {
        flex-basis: 100%;
    }

    .as-customer-amount {
        margin-left: 64px;
        text-align: left;
    }
}

.as-customer-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--brand-muted);
    text-align: center;
}

.as-customer-empty span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-primary-rgb), .08);
    color: var(--brand-primary);
    font-size: 22px;
}

.as-customer-empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 750;
}

/* Store register/edit workflow */
.form-wizard-header,
.as-wizard-tabs,
.vertical-tabs-2 {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 8px;
    box-shadow: var(--brand-shadow-card);
}

.form-wizard-header .nav-link,
.vertical-tabs-2 .nav-link {
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--brand-muted) !important;
    font-weight: 700;
}

.form-wizard-header .nav-link.active,
.vertical-tabs-2 .nav-link.active {
    background: var(--brand-gradient) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), .20);
}

.form-wizard-header .nav-link:hover,
.vertical-tabs-2 .nav-link:hover {
    background: rgba(var(--brand-primary-rgb), .07);
    color: var(--brand-primary) !important;
}

/* Shipment detail page */
.alert.alert-primary {
    background: #fff !important;
    border: 1px solid var(--brand-border) !important;
    border-left: 4px solid var(--brand-primary) !important;
    border-radius: var(--brand-radius-sm) !important;
    color: var(--brand-text) !important;
    box-shadow: var(--brand-shadow-card);
}

.alert.alert-primary .text-primary {
    color: var(--brand-text) !important;
}

.accordion-primary .accordion-item {
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius-sm) !important;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--brand-shadow-card);
}

.accordion-primary .accordion-button {
    background: #fff !important;
    color: var(--brand-dark) !important;
    font-weight: 750;
}

.accordion-primary .accordion-button:not(.collapsed) {
    background: rgba(var(--brand-primary-rgb), .08) !important;
    color: var(--brand-primary) !important;
}

.timeline-modern .timeline-body {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
}

/* Vendor and service lists */
.search-set,
.as-table-search {
    min-height: 42px;
}

.form-switch .form-check-input {
    width: 42px;
    height: 22px;
    cursor: pointer;
    border-color: var(--brand-border);
}

.form-switch .form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.sell-product > .d-flex.align-items-center.justify-content-between {
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.sell-product > .d-flex.align-items-center.justify-content-between:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--brand-primary-rgb), .35) !important;
    box-shadow: var(--brand-shadow-card);
}

.destiny-form-card > .card-body {
    padding: 24px;
}

.destiny-form-card .tab-content {
    background:
        linear-gradient(180deg, rgba(var(--brand-primary-rgb), .025), transparent 160px),
        #fff;
    border-radius: 0 0 var(--brand-radius-sm) var(--brand-radius-sm);
}

.destiny-register-tabs .nav-link i,
.destiny-profile-tabs .nav-link i {
    color: inherit;
}

.destiny-service-table td {
    vertical-align: middle;
}

.destiny-service-table .as-status-tag {
    justify-content: center;
}

.sell-product .avatar img,
.avatar.avatar-lg img {
    border: 1px solid var(--brand-border);
    background: #fff;
    object-fit: contain;
}

.badge.bg-outline-success,
.btn.bg-outline-success {
    border: 1px solid var(--brand-success) !important;
    color: var(--brand-success) !important;
    background: rgba(16, 185, 129, .08) !important;
}

.badge.bg-success,
.btn.bg-success {
    background: var(--brand-success) !important;
    color: #fff !important;
}

.btn-outline-primary,
.btn.btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: rgba(var(--brand-primary-rgb), .45) !important;
    border-radius: 10px !important;
}

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

/* Compact mobile polish for requested table/form pages */
@media (max-width: 767.98px) {
    .page-header {
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

    .page-header .page-btn,
    .page-header .table-top-head {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .form-wizard-header .nav-item,
    .as-wizard-tabs .nav-item {
        flex: 1 1 100%;
    }

    .vertical-tabs-2 {
        flex-direction: row !important;
        margin-bottom: 16px;
    }
}

/* ============================================================
   17. JT INTERNATIONAL COURIER — CLIENT COMPOSITION
   Brand-specific layout, hierarchy and responsive treatment.
   ============================================================ */

.as-topbar-logo img {
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(7, 27, 55, .14));
}

.as-wordmark-top {
    color: var(--brand-dark) !important;
    font-size: 13px !important;
    letter-spacing: .015em !important;
}

.as-wordmark-bottom {
    color: var(--brand-secondary) !important;
    letter-spacing: .13em !important;
}

.as-track-cta,
.as-mobile-track-btn {
    background: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
}

.as-rate-cta,
.as-mobile-rate-btn {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu > ul > li.active > a,
.sidebar .sidebar-menu .submenu ul li a.active {
    box-shadow: inset 4px 0 0 var(--brand-secondary);
}

.client-rebrand {
    --sky-panel: #FFFFFF;
    --sky-soft: #F3F8FB;
    --sky-navy-soft: #E9F0F7;
    --sky-teal-soft: #E8F6FA;
}

.client-rebrand .as-welcome-banner {
    min-height: 188px;
    padding: 30px 34px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 10px 28px 10px 28px !important;
    background:
        linear-gradient(110deg, rgba(7, 27, 55, .98), rgba(14, 47, 95, .96) 68%, rgba(8, 126, 164, .92)) !important;
    box-shadow: 0 18px 42px rgba(7, 27, 55, .18) !important;
}

.client-rebrand .as-welcome-banner::after {
    content: "SKY";
    position: absolute;
    right: 22px;
    bottom: -36px;
    color: rgba(255, 255, 255, .055);
    font-size: clamp(110px, 14vw, 190px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    pointer-events: none;
}

.client-rebrand .as-welcome-banner .welcome-text,
.client-rebrand .as-welcome-banner .as-banner-controls {
    position: relative;
    z-index: 2;
}

.client-rebrand .fdx-dashboard-eyebrow,
.client-rebrand .fdx-page-eyebrow {
    color: #F0D58B !important;
}

.client-rebrand .fdx-banner-action {
    background: #fff !important;
    color: var(--brand-dark) !important;
    box-shadow: 0 9px 22px rgba(7, 27, 55, .24) !important;
}

.client-rebrand .fdx-banner-action:hover {
    background: var(--sky-teal-soft) !important;
    color: var(--brand-secondary) !important;
}

.client-rebrand .fdx-section-heading {
    padding-left: 15px;
    border-left: 4px solid var(--brand-secondary);
}

.client-rebrand .fdx-section-heading span {
    color: var(--brand-secondary) !important;
}

/* Admin: asymmetric executive composition */
.admin-dashboard-page .fdx-admin-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-right: 0;
    margin-left: 0;
}

.admin-dashboard-page .fdx-admin-kpi-grid > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding: 0;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(1),
.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(2) { grid-column: span 4; }
.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(3),
.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(4) { grid-column: span 2; }

.admin-dashboard-page .fdx-admin-kpi-grid .as-kpi-card {
    min-height: 174px;
    border: 1px solid var(--brand-border) !important;
    border-radius: 8px 22px 8px 22px !important;
    box-shadow: 0 10px 28px rgba(7, 27, 55, .07) !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card {
    background: linear-gradient(145deg, var(--brand-dark), var(--brand-primary)) !important;
    border-color: transparent !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(2) .as-kpi-card {
    border-top: 4px solid var(--brand-secondary) !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(3) .as-kpi-card,
.admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(4) .as-kpi-card {
    padding: 22px 18px;
    background: var(--sky-soft) !important;
}

.admin-dashboard-page .fdx-admin-status-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
    gap: 12px;
    margin-right: 0;
    margin-left: 0;
}

.admin-dashboard-page .fdx-admin-status-grid > .col {
    width: auto;
    padding: 0;
}

.admin-dashboard-page .fdx-admin-status-grid .as-stat-card {
    min-height: 84px;
    border-radius: 10px !important;
    border-left: 3px solid var(--brand-secondary) !important;
}

.admin-dashboard-page .fdx-admin-operations-row,
.admin-dashboard-page .fdx-admin-analytics-row,
.admin-dashboard-page .fdx-admin-insights-row {
    display: grid !important;
    gap: 20px;
    margin-right: 0;
    margin-left: 0;
}

.admin-dashboard-page .fdx-admin-operations-row { grid-template-columns: 1.2fr .8fr; }
.admin-dashboard-page .fdx-admin-analytics-row { grid-template-columns: 1.75fr 1fr; }
.admin-dashboard-page .fdx-admin-insights-row { grid-template-columns: .85fr 1.55fr; }

.admin-dashboard-page .fdx-admin-operations-row > div,
.admin-dashboard-page .fdx-admin-analytics-row > div,
.admin-dashboard-page .fdx-admin-insights-row > div {
    width: auto !important;
    max-width: none !important;
    padding: 0;
}

.admin-dashboard-page .fdx-admin-operations-row .card,
.admin-dashboard-page .fdx-admin-analytics-row .card,
.admin-dashboard-page .fdx-admin-insights-row .card {
    border-radius: 9px 20px 9px 20px !important;
    border-top: 0 !important;
}

/* Party: task-first customer workspace, deliberately unlike Admin */
.party-dashboard-page .as-welcome-banner {
    min-height: 162px;
    border-radius: 24px 8px 24px 8px !important;
}

.party-dashboard-page .fdx-party-calculator {
    border: 0 !important;
    border-radius: 24px 8px 24px 8px !important;
    box-shadow: 0 16px 38px rgba(7, 27, 55, .11) !important;
    overflow: hidden;
}

.party-dashboard-page .fdx-party-calculator > .card-header {
    padding: 18px 24px;
    background: var(--brand-primary) !important;
    border-left: 7px solid var(--brand-secondary);
}

.party-dashboard-page .fdx-party-calculator > .card-body {
    padding: 26px 24px;
    background: linear-gradient(100deg, #fff, var(--sky-soft));
}

.party-dashboard-page .fdx-party-account-row {
    display: grid !important;
    grid-template-columns: 1.45fr .8fr .8fr;
    gap: 16px;
    margin-right: 0;
    margin-left: 0;
}

.party-dashboard-page .fdx-party-account-row > div {
    width: auto !important;
    max-width: none !important;
    padding: 0;
}

.party-dashboard-page .fdx-party-account-row .card {
    min-height: 148px;
    border-radius: 18px 6px 18px 6px !important;
}

.party-dashboard-page .fdx-party-status-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
    margin-right: 0;
    margin-left: 0;
}

.party-dashboard-page .fdx-party-status-grid > .col { width: auto; padding: 0; }
.party-dashboard-page .fdx-party-status-grid .dash-count {
    border-radius: 18px 6px 18px 6px !important;
    border-bottom: 3px solid var(--brand-secondary) !important;
}

.party-dashboard-page .fdx-party-insights-row > div:first-child .card {
    border-left: 4px solid var(--brand-primary) !important;
}

.party-dashboard-page .fdx-party-insights-row > div:last-child .card {
    border-left: 4px solid var(--brand-secondary) !important;
}

/* Login: brand story first on desktop, form first on smaller screens */
body.fdx-login-page .fdx-auth-workspace {
    grid-template-columns: minmax(430px, 1.08fr) minmax(380px, .92fr);
    border-radius: 10px 34px 10px 34px;
    box-shadow: 0 28px 70px rgba(7, 27, 55, .20);
}

body.fdx-login-page .fdx-operations-column {
    order: 1;
    background: linear-gradient(145deg, #E8F9FC, #BDECF5 62%, #78D3E6);
}

body.fdx-login-page .fdx-login-column {
    order: 2;
    background: #fff;
}

body.fdx-login-page .fdx-login-submit {
    background: linear-gradient(100deg, var(--brand-primary), var(--brand-dark));
    border-radius: 8px 18px 8px 18px;
}

body.fdx-login-page .fdx-login-submit:hover {
    background: linear-gradient(100deg, var(--brand-secondary), #066984);
}

body.fdx-login-page .fdx-route-node.active,
body.fdx-login-page .fdx-route-segment::after {
    background: var(--brand-secondary) !important;
    border-color: #F0D58B !important;
}

/* Shipment workspaces */
.shipment-create-page .fdx-create-overview,
.shipment-list-page .fdx-list-header,
.shipment-view-page .fdx-view-header {
    border-radius: 8px 24px 8px 24px !important;
}

.shipment-create-page .fdx-create-overview {
    background: linear-gradient(112deg, var(--brand-dark), var(--brand-primary) 74%, var(--brand-secondary)) !important;
}

.shipment-create-page .as-shipment-wizard {
    border-radius: 8px 24px 8px 24px !important;
    box-shadow: 0 16px 40px rgba(7, 27, 55, .10) !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs {
    border-right: 1px solid var(--brand-border);
    background: linear-gradient(180deg, var(--brand-dark), var(--brand-primary)) !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-link {
    color: rgba(255,255,255,.72) !important;
    border-radius: 6px 14px 6px 14px !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-link.active {
    color: var(--brand-dark) !important;
    background: #fff !important;
    box-shadow: inset 4px 0 0 var(--brand-secondary);
}

.shipment-create-page .as-form-section {
    border-radius: 7px 18px 7px 18px !important;
    border-top: 0 !important;
    border-left: 3px solid var(--brand-primary) !important;
}

.shipment-create-page .as-shipment-wizard > .card-footer {
    background: rgba(244, 247, 251, .96) !important;
    backdrop-filter: blur(12px);
}

.shipment-list-page .fdx-list-card {
    overflow: hidden;
    border-radius: 8px 24px 8px 24px !important;
    box-shadow: 0 14px 34px rgba(7, 27, 55, .09) !important;
}

.shipment-list-page .fdx-list-status-grid .as-filter-card {
    border-radius: 16px 6px 16px 6px !important;
}

.shipment-list-page .fdx-list-status-grid .as-filter-card.active {
    color: #fff !important;
    background: var(--brand-primary) !important;
    box-shadow: inset 0 -4px 0 var(--brand-secondary), 0 10px 24px rgba(7,27,55,.16);
}

.shipment-list-page .as-filter-form {
    border-left: 4px solid var(--brand-secondary);
    background: var(--sky-soft);
}

.shipment-list-page .as-shipment-table thead th {
    color: #fff !important;
    background: var(--brand-primary) !important;
    border-color: rgba(255,255,255,.12) !important;
}

.shipment-list-page .as-action-btn {
    border-radius: 6px 11px 6px 11px !important;
}

.shipment-list-page .dataTables_empty {
    padding: 42px 18px !important;
    color: var(--brand-muted) !important;
}

.shipment-view-page .fdx-route-hero {
    border-radius: 8px 28px 8px 28px !important;
    background: linear-gradient(112deg, var(--brand-dark), var(--brand-primary) 72%, var(--brand-secondary)) !important;
    box-shadow: 0 18px 44px rgba(7,27,55,.17) !important;
}

.shipment-view-page .fdx-route-party-card {
    border-radius: 20px 7px 20px 7px !important;
    border-color: var(--brand-border) !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(7,27,55,.07);
}

.shipment-view-page .fdx-route-parties > div:first-child .fdx-route-party-card {
    border-left: 4px solid var(--brand-primary) !important;
}

.shipment-view-page .fdx-route-parties > div:last-child .fdx-route-party-card {
    border-left: 4px solid var(--brand-secondary) !important;
}

.shipment-view-page .fdx-detail-accordion .accordion-item {
    border-radius: 7px 18px 7px 18px !important;
    overflow: hidden;
}

.shipment-view-page .fdx-view-action-dock {
    border-radius: 18px 6px 18px 6px;
    background: var(--brand-dark);
    box-shadow: 0 14px 34px rgba(7,27,55,.18);
}

@media (max-width: 1199.98px) {
    .admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(n) { grid-column: span 6; }
    .admin-dashboard-page .fdx-admin-operations-row,
    .admin-dashboard-page .fdx-admin-analytics-row,
    .admin-dashboard-page .fdx-admin-insights-row { grid-template-columns: 1fr; }
    .party-dashboard-page .fdx-party-account-row { grid-template-columns: 1fr 1fr; }
    .party-dashboard-page .fdx-party-account-row > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    body.fdx-login-page .fdx-auth-workspace { grid-template-columns: 1fr; }
    body.fdx-login-page .fdx-login-column { order: 1; }
    body.fdx-login-page .fdx-operations-column { order: 2; }
}

@media (max-width: 767.98px) {
    .client-rebrand .as-welcome-banner {
        min-height: 0;
        padding: 24px 20px !important;
        border-radius: 8px 20px 8px 20px !important;
    }
    .client-rebrand .as-welcome-banner::after { font-size: 92px; right: 8px; }
    .admin-dashboard-page .fdx-admin-kpi-grid > :nth-child(n) { grid-column: 1 / -1; }
    .party-dashboard-page .fdx-party-account-row { grid-template-columns: 1fr; }
    .party-dashboard-page .fdx-party-account-row > :first-child { grid-column: auto; }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs {
        border-right: 0;
        border-bottom: 1px solid var(--brand-border);
        background: var(--brand-dark) !important;
    }
    .shipment-list-page .as-shipment-table thead { display: none; }
    .shipment-list-page .as-shipment-table tbody tr {
        border-left: 4px solid var(--brand-primary) !important;
        border-radius: 8px 18px 8px 18px !important;
    }
}

/* ============================================================
   RATE CALCULATOR
   ============================================================ */
.rate-calculator-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.rate-calculator-page .rc-page-header {
    position: relative;
    overflow: hidden;
    padding: 20px 24px;
    background:
        radial-gradient(circle at 88% 16%, rgba(var(--brand-secondary-rgb), .10), transparent 26%),
        linear-gradient(135deg, rgba(var(--brand-primary-rgb), .09), rgba(255, 255, 255, .98) 48%, rgba(var(--brand-secondary-rgb), .04));
}

.rate-calculator-page .rc-page-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

.rc-page-title-wrap,
.rc-header-actions,
.rc-action-bar,
.rc-results-heading,
.rc-service-summary,
.rc-empty-state,
.rc-loading-state {
    display: flex;
    align-items: center;
}

.rc-page-title-wrap {
    min-width: 0;
    gap: 14px;
}

.rc-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-primary), #0d467f);
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), .20);
}

.rc-page-icon i { font-size: 25px; }

.rate-calculator-page .page-title h4 {
    font-size: 21px;
    line-height: 1.25;
}

.rc-eyebrow,
.rc-section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-secondary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rc-header-actions {
    position: relative;
    z-index: 1;
    gap: 10px;
}

.rc-icon-btn,
.rc-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(var(--brand-primary-rgb), .18) !important;
    background: rgba(255,255,255,.88) !important;
    color: var(--brand-primary) !important;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), .06);
}

.rc-icon-btn {
    width: 42px;
    padding: 0;
    border-radius: 11px !important;
}

.rc-back-btn {
    gap: 8px;
    padding: 0 17px;
    border-radius: 11px !important;
    font-weight: 700;
}

.rc-icon-btn:hover,
.rc-back-btn:hover {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.rc-search-card {
    overflow: visible;
    background: #fff;
}

.rc-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px !important;
}

.rc-search-header .card-title {
    font-size: 17px;
    line-height: 1.35;
}

.rc-section-copy,
.rc-results-heading p,
.rc-empty-state p,
.rc-loading-state p {
    color: var(--brand-muted);
    font-size: 13px;
}

.rc-secure-note,
.rc-results-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--brand-success);
    background: rgba(18, 128, 92, .08);
    border: 1px solid rgba(18, 128, 92, .14);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.rc-search-body { padding: 24px !important; }

.rc-form-field .form-label {
    display: flex;
    align-items: center;
    min-height: 18px;
    gap: 6px;
    margin-bottom: 8px;
}

.rc-form-field .form-label > i {
    color: var(--brand-primary);
    font-size: 15px;
}

.rc-required { color: var(--brand-danger); }

.rc-optional {
    margin-left: auto;
    color: #8792a3;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rate-calculator-page .form-control,
.rate-calculator-page .select2-container--default .select2-selection--single {
    min-height: 46px;
    border-radius: 11px !important;
}

.rate-calculator-page .form-control {
    padding: 10px 13px;
    font-size: 14px;
}

.rate-calculator-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 34px;
    padding-left: 13px;
    line-height: 44px;
}

.rate-calculator-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 2px;
    right: 6px;
    height: 42px;
}

.rate-calculator-page .form-control::placeholder { color: #9aa4b3; }

.rc-weight-input .form-control {
    border-right: 0 !important;
    border-radius: 11px 0 0 11px !important;
}

.rc-weight-input .input-group-text {
    min-width: 44px;
    justify-content: center;
    color: var(--brand-primary);
    background: #f6f9fd;
    border-color: var(--brand-border);
    border-radius: 0 11px 11px 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.rc-field-error {
    display: none;
    margin-top: 6px;
    color: var(--brand-danger);
    font-size: 11px;
    font-weight: 600;
}

.rc-form-field.has-error .rc-field-error { display: block; }

.rc-form-field.has-error .form-control,
.rc-form-field.has-error .select2-selection--single,
.rc-form-field.has-error .input-group-text {
    border-color: rgba(217, 45, 32, .72) !important;
}

.rc-form-field.has-error .select2-selection--single,
.rc-form-field.has-error .rc-weight-input {
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .08);
    border-radius: 11px;
}

.rc-action-bar {
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f6;
}

.rc-action-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-muted);
    font-size: 12px;
}

.rc-action-hint i { color: var(--brand-primary); font-size: 16px; }

.rc-calculate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 154px;
    min-height: 44px;
    padding: 0 18px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand-primary), #0d467f) !important;
    border: 0 !important;
    border-radius: 11px !important;
    box-shadow: 0 9px 20px rgba(var(--brand-primary-rgb), .20);
    font-size: 13px;
    font-weight: 750;
}

.rc-calculate-btn:hover {
    background: linear-gradient(135deg, #0d467f, var(--brand-primary)) !important;
    box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), .26);
    transform: translateY(-1px);
}

.rc-calculate-btn:disabled {
    opacity: .72;
    transform: none;
}

.rc-results-container {
    min-height: 112px;
    border-top: 1px solid var(--brand-border);
    background: #fbfcfe;
    border-radius: 0 0 var(--brand-radius) var(--brand-radius);
}

.rc-results-heading {
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
}

.rc-results-heading h5,
.rc-empty-state h5,
.rc-loading-state h5 {
    margin: 0 0 3px;
    color: var(--brand-dark);
    font-size: 15px;
    font-weight: 750;
}

.rc-results-heading p,
.rc-empty-state p,
.rc-loading-state p { margin: 0; }

.rc-results-count { color: var(--brand-primary); background: #eef5ff; border-color: #dce9f9; }

.rc-rate-table-wrap {
    padding: 0 24px 24px;
    background: #fff;
}

.rc-rate-table {
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 13px;
}

.rc-rate-table thead th {
    padding: 12px 18px;
    background: #f2f6fb !important;
    border-bottom: 1px solid var(--brand-border) !important;
    font-size: 10px;
    letter-spacing: .07em;
}

.rc-rate-table tbody td {
    padding: 17px 18px;
    vertical-align: middle;
    background: #fff;
}

.rc-rate-table tbody tr:last-child td { border-bottom: 0 !important; }

.rc-rate-table tbody tr:hover td { background: #fbfdff; }

.rc-service-summary { gap: 13px; }

.rc-service-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    color: var(--brand-primary);
    background: #f6f8fb;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
}

.rc-service-logo img {
    display: block;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
}

.rc-service-logo > i { font-size: 23px; }

.rc-service-copy { min-width: 0; }

.rc-service-copy h6 {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 750;
}

.rc-delivery-time,
.rc-remote-charge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-muted);
    font-size: 11px;
    line-height: 1.4;
}

.rc-delivery-time i { color: var(--brand-primary); }

.rc-remote-charge {
    width: fit-content;
    margin-top: 6px;
    padding: 4px 8px;
    color: #b54708;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 7px;
    font-weight: 650;
}

.rc-weight-value {
    color: var(--brand-text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.rc-zone-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 6px 9px;
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), .07);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.rc-rate-cell { min-width: 140px; }

.rc-per-kg-cell { min-width: 150px; }

.rc-per-kg-amount {
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.rc-per-kg-amount small {
    color: var(--brand-muted);
    font-size: 10px;
    font-weight: 650;
}

.rc-rate-amount {
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.rc-currency {
    margin-right: 1px;
    color: var(--brand-secondary);
    font-size: 14px;
}

.rc-empty-state,
.rc-loading-state {
    justify-content: center;
    gap: 14px;
    min-height: 126px;
    padding: 28px 24px;
    text-align: left;
}

.rc-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), .08);
    border-radius: 13px;
}

.rc-empty-icon i { font-size: 23px; }

.rc-loading-state .spinner-border {
    width: 32px;
    height: 32px;
    color: var(--brand-primary);
    border-width: 3px;
}

.rc-error-state .rc-empty-icon { color: var(--brand-danger); background: rgba(217, 45, 32, .08); }

.rc-retry-btn {
    margin-left: 8px;
    color: var(--brand-primary) !important;
    background: #fff !important;
    border: 1px solid rgba(var(--brand-primary-rgb), .22) !important;
    border-radius: 9px !important;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .rc-search-header,
    .rc-results-heading { padding: 18px 20px !important; }

    .rc-search-body { padding: 20px !important; }

    .rc-rate-table-wrap { padding: 0 20px 20px; }
}

@media (max-width: 767.98px) {
    .rate-calculator-page .rc-page-header {
        align-items: center !important;
        padding: 16px !important;
    }

    .rc-page-title-wrap { align-items: flex-start; }

    .rc-page-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 11px;
    }

    .rc-page-icon i { font-size: 22px; }
    .rate-calculator-page .page-title h4 { font-size: 18px !important; }

    .rc-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .rc-back-btn { flex: 1 1 auto; }

    .rc-search-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 17px 16px !important;
    }

    .rc-search-body { padding: 18px 16px !important; }

    .rc-action-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        margin-top: 20px;
        padding-top: 17px;
    }

    .rc-calculate-btn { width: 100%; }

    .rc-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 17px 16px !important;
    }

    .rc-rate-table-wrap {
        overflow: visible;
        padding: 12px;
        background: #f5f8fc;
    }

    .rc-rate-table,
    .rc-rate-table tbody {
        display: block;
        width: 100%;
        border: 0;
    }

    .rc-rate-table thead { display: none; }

    .rc-rate-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--brand-border);
        border-left: 4px solid var(--brand-primary);
        border-radius: 10px 18px 10px 18px;
        box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
    }

    .rc-rate-table tbody tr:last-child { margin-bottom: 0; }

    .rc-rate-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: auto;
        min-width: 0;
        min-height: 54px;
        padding: 11px 13px;
        border-bottom: 0 !important;
    }

    .rc-rate-table tbody td[data-label]::before {
        content: attr(data-label);
        color: var(--brand-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .rc-rate-table .rc-service-cell {
        grid-column: 1 / -1;
        padding: 15px 13px;
        border-bottom: 1px solid #edf1f6 !important;
    }

    .rc-rate-cell {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: right;
        background: #f8fbff !important;
        border-top: 1px solid #edf1f6 !important;
    }

    .rc-empty-state,
    .rc-loading-state {
        min-height: 144px;
        padding: 26px 18px;
    }

    .rc-error-state { flex-wrap: wrap; }
    .rc-error-state .rc-retry-btn { margin: 0; }
}

@media (max-width: 419.98px) {
    .rc-page-title-wrap { gap: 10px; }
    .rc-eyebrow { display: none; }
    .rate-calculator-page .page-title h6 { font-size: 11px !important; }
    .rc-secure-note { white-space: normal; }

    .rc-rate-table tbody tr { grid-template-columns: 1fr; }
    .rc-rate-table tbody td { grid-column: 1; }
    .rc-rate-table .rc-service-cell,
    .rc-rate-table .rc-rate-cell { grid-column: 1; }

    .rc-service-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .rc-empty-state,
    .rc-loading-state {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

/* Rate calculator: compact single-window composition */
.rate-calculator-page.rc-one-page {
    position: relative;
    z-index: 2;
    max-width: 1480px;
    margin: 0 auto;
    isolation: isolate;
}

.rc-one-window {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.rc-one-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 16px 20px;
    background:
        radial-gradient(circle at 90% 0, rgba(var(--brand-secondary-rgb), .09), transparent 32%),
        linear-gradient(135deg, #f8fbff, #fff 54%);
    border-bottom: 1px solid var(--brand-border);
}

.rc-one-title,
.rc-one-actions,
.rc-auto-note,
.rc-one-back {
    display: flex;
    align-items: center;
}

.rc-one-title {
    min-width: 0;
    gap: 12px;
}

.rc-one-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-primary), #0d467f);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), .18);
}

.rc-one-icon i { font-size: 23px; }

.rc-one-title h4 {
    margin: 0 0 3px;
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.rc-one-title p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.4;
}

.rc-one-actions { gap: 10px; }

.rc-auto-note {
    gap: 6px;
    padding: 7px 10px;
    color: var(--brand-success);
    background: rgba(18, 128, 92, .08);
    border: 1px solid rgba(18, 128, 92, .13);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.rc-one-back {
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    color: var(--brand-primary) !important;
    background: #fff !important;
    border: 1px solid rgba(var(--brand-primary-rgb), .18) !important;
    border-radius: 10px !important;
    font-size: 12px;
    font-weight: 750;
}

.rc-one-back:hover {
    color: #fff !important;
    background: var(--brand-primary) !important;
}

.rc-one-body {
    position: relative;
    padding: 20px;
    background: #fff;
}

.rc-one-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: start;
}

.rc-one-grid.has-party .rc-one-party { grid-column: span 4; }
.rc-one-grid.has-party .rc-one-country { grid-column: span 3; }
.rc-one-grid.has-party .rc-one-package { grid-column: span 3; }
.rc-one-grid.has-party .rc-one-weight { grid-column: span 2; }
.rc-one-grid.no-party .rc-one-country,
.rc-one-grid.no-party .rc-one-package,
.rc-one-grid.no-party .rc-one-weight { grid-column: span 4; }
.rc-one-postal,
.rc-one-city { grid-column: span 5; }
.rc-one-submit { grid-column: span 2; }

.rc-one-page .rc-form-field {
    min-width: 0;
}

.rc-one-page .rc-form-field .form-label {
    min-height: 17px;
    margin-bottom: 7px;
    font-size: 12px;
}

.rc-one-page .form-control,
.rc-one-page .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 44px;
    background: #fff !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.rc-one-page .select2-container { width: 100% !important; }

.rc-one-page .form-control:focus,
.rc-one-page .select2-container--open .select2-selection--single {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .10) !important;
}

.rc-one-page .rc-weight-input .form-control {
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
}

.rc-one-page .rc-weight-input .input-group-text {
    border-radius: 0 10px 10px 0;
}

.rc-one-page .rc-optional {
    color: #7b8797;
    background: #f1f4f8;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1.5;
}

.rc-one-submit {
    align-self: start;
    padding-top: 25px;
}

.rc-one-submit .rc-calculate-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
}

.rc-one-submit small {
    display: block;
    margin-top: 5px;
    color: var(--brand-muted);
    font-size: 9px;
    text-align: center;
}

.rc-one-page .rc-field-error {
    margin-top: 5px;
    font-size: 10px;
}

.rc-one-page .rc-results-container {
    min-height: 0;
    background: #fafcff;
    border-radius: 0;
}

.rc-one-page .rc-one-empty {
    justify-content: flex-start;
    min-height: 76px;
    padding: 14px 20px;
}

.rc-one-page .rc-one-empty .rc-empty-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
}

.rc-one-page .rc-one-empty .rc-empty-icon i { font-size: 19px; }
.rc-one-page .rc-one-empty h5 { font-size: 13px; }
.rc-one-page .rc-one-empty p { font-size: 11px; }

.rc-one-page .rc-results-heading {
    padding: 15px 20px;
}

.rc-one-page .rc-rate-table-wrap {
    padding: 0 20px 20px;
}

.rc-one-page .rc-loading-state,
.rc-one-page .rc-empty-state:not(.rc-one-empty) {
    min-height: 96px;
    padding: 20px;
}

@media (max-width: 1199.98px) {
    .rc-one-grid.has-party .rc-one-party,
    .rc-one-grid.has-party .rc-one-country { grid-column: span 6; }
    .rc-one-grid.has-party .rc-one-package,
    .rc-one-grid.has-party .rc-one-weight,
    .rc-one-grid.has-party .rc-one-postal { grid-column: span 4; }
    .rc-one-grid.has-party .rc-one-city { grid-column: span 8; }
    .rc-one-grid.has-party .rc-one-submit { grid-column: span 4; }
}

@media (max-width: 991.98px) {
    .rc-one-grid.has-party .rc-one-party,
    .rc-one-grid.has-party .rc-one-country,
    .rc-one-grid.has-party .rc-one-package,
    .rc-one-grid.has-party .rc-one-weight,
    .rc-one-grid.no-party .rc-one-country,
    .rc-one-grid.no-party .rc-one-package,
    .rc-one-grid.no-party .rc-one-weight,
    .rc-one-postal,
    .rc-one-city,
    .rc-one-submit { grid-column: span 6; }
}

@media (max-width: 575.98px) {
    .rc-one-window { border-radius: 14px; }

    .rc-one-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .rc-one-actions {
        width: 100%;
        justify-content: space-between;
    }

    .rc-one-body { padding: 16px 15px; }
    .rc-one-grid { gap: 15px; }

    .rc-one-grid.has-party .rc-one-party,
    .rc-one-grid.has-party .rc-one-country,
    .rc-one-grid.has-party .rc-one-package,
    .rc-one-grid.has-party .rc-one-weight,
    .rc-one-grid.no-party .rc-one-country,
    .rc-one-grid.no-party .rc-one-package,
    .rc-one-grid.no-party .rc-one-weight,
    .rc-one-postal,
    .rc-one-city,
    .rc-one-submit { grid-column: 1 / -1; }

    .rc-one-submit { padding-top: 0; }

    .rc-one-page .rc-one-empty {
        align-items: center;
        flex-direction: row;
        padding: 13px 15px;
        text-align: left;
    }
}

/* ============================================================
   18. JT GUIDED SHIPMENT BOOKING
   A task-first booking composition scoped to Shipment/Create.
   ============================================================ */

.shipment-create-page .fdx-create-overview {
    grid-template-columns: minmax(320px, .88fr) minmax(560px, 1.12fr);
    gap: 38px;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px !important;
    background:
        radial-gradient(400px 210px at 98% 0, rgba(var(--brand-secondary-rgb), .38), transparent 68%),
        linear-gradient(120deg, var(--brand-dark), var(--brand-primary) 72%, #0B678B) !important;
}

.shipment-create-page .fdx-create-overview-copy h3 {
    margin-top: 7px;
    font-size: clamp(23px, 2.4vw, 30px);
    letter-spacing: -.025em;
}

.shipment-create-page .fdx-create-overview-copy p {
    max-width: 560px;
    font-size: 13px;
}

.shipment-create-page .sky-create-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.shipment-create-page .sky-create-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    font-size: 10px;
    font-weight: 700;
}

.shipment-create-page .sky-create-assurance i { color: #F0D58B; font-size: 14px; }
.shipment-create-page .fdx-create-progress { grid-template-columns: repeat(6, minmax(62px, 1fr)); }

.shipment-create-page .fdx-create-progress b {
    border-color: rgba(255,255,255,.30);
    background: rgba(7,27,55,.66);
    box-shadow: 0 0 0 4px rgba(255,255,255,.03);
}

.shipment-create-page .fdx-create-progress li.active b {
    border-color: #F0D58B;
    background: var(--brand-accent);
    color: var(--brand-dark);
    box-shadow: 0 0 0 5px rgba(var(--brand-accent-rgb), .16);
}

.shipment-create-page .fdx-create-progress li.complete b {
    border-color: var(--brand-secondary);
    background: var(--brand-secondary);
}

.shipment-create-page .fdx-create-progress li.complete::before { background: var(--brand-secondary); }

.shipment-create-page .as-choose-party {
    border: 0;
    border-top: 4px solid var(--brand-accent);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(7,27,55,.10);
}

.shipment-create-page .as-shipment-wizard {
    overflow: visible;
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 52px rgba(7,27,55,.11) !important;
}

.shipment-create-page .as-shipment-wizard > .card-body {
    display: block;
    padding: 12px !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs {
    position: relative;
    top: auto;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 10px !important;
    padding: 5px !important;
    border: 1px solid var(--brand-border);
    border-right: 1px solid var(--brand-border) !important;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(var(--brand-secondary-rgb), .055), rgba(var(--brand-primary-rgb), .025)),
        #fff !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 6px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--brand-text) !important;
    text-align: left;
    box-shadow: none !important;
}

.shipment-create-page .as-shipment-wizard .tab-content,
.shipment-create-page .as-shipment-wizard .tab-pane {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-link:hover {
    border-color: rgba(var(--brand-secondary-rgb), .22) !important;
    background: var(--sky-teal-soft) !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-link.active {
    border-color: var(--brand-primary) !important;
    background: linear-gradient(135deg, var(--brand-primary), #0B678B) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), .20) !important;
}

.shipment-create-page .sky-tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(var(--brand-primary-rgb), .16);
    border-radius: 10px;
    background: #fff;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 850;
}

.shipment-create-page .nav-link.active .sky-tab-number {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.14);
    color: #F0D58B;
}

.shipment-create-page .nav-link.is-complete .sky-tab-number {
    border-color: rgba(var(--brand-secondary-rgb), .22);
    background: var(--sky-teal-soft);
    color: var(--brand-secondary);
}

.shipment-create-page .sky-tab-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.shipment-create-page .sky-tab-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.shipment-create-page .sky-tab-copy small {
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 9.5px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-create-page .nav-link.active .sky-tab-copy small { color: rgba(255,255,255,.68); }
.shipment-create-page .sky-tab-arrow { display: none; }

.shipment-create-page .sky-step-intro {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 17px 18px;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-left: 4px solid var(--brand-accent);
    border-radius: 14px;
    background:
        radial-gradient(240px 100px at 100% 0, rgba(var(--brand-secondary-rgb), .09), transparent 74%),
        #F8FBFD;
}

.shipment-create-page .sky-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand-primary), #0B678B);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), .18);
}

.shipment-create-page .sky-step-icon i { font-size: 23px; }
.shipment-create-page .sky-step-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--brand-secondary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shipment-create-page .sky-step-intro h4 {
    margin: 0 0 3px;
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 820;
}

.shipment-create-page .sky-step-intro p {
    max-width: 700px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.shipment-create-page .sky-required-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(var(--brand-secondary-rgb), .16);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-secondary);
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.shipment-create-page .as-form-section {
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid var(--brand-border) !important;
    border-left: 3px solid var(--brand-secondary) !important;
    border-radius: 14px !important;
    background: #fff;
}

.shipment-create-page .as-section-head {
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 9px;
}

.shipment-create-page .as-section-head > div { min-width: 0; }
.shipment-create-page .as-section-head h5 { margin: 0; }
.shipment-create-page .as-section-head small {
    display: block;
    margin-top: 3px;
    color: var(--brand-muted);
    font-size: 10.5px;
    font-weight: 500;
}

.shipment-create-page .as-section-head-with-control {
    align-items: center;
    flex-wrap: wrap;
}

.shipment-create-page .as-item-currency {
    flex: 0 0 220px;
    min-width: 180px !important;
    margin-left: auto;
}

.shipment-create-page .as-item-currency .as-label {
    margin-bottom: 5px;
    font-size: 11px;
}

.shipment-create-page .as-item-currency .as-input {
    min-height: 38px;
}

.shipment-create-page .page-header {
    margin-bottom: 14px;
    padding: 12px 16px;
}

.shipment-create-page .as-shipment-wizard .tab-pane > .as-form-section:last-child {
    margin-bottom: 0;
}

.shipment-create-page .as-shipment-wizard .row.g-3 {
    --bs-gutter-y: .65rem;
}

.shipment-create-page .as-form-group > label,
.shipment-create-page .as-label {
    margin-bottom: 4px;
    font-size: 12px;
}

.shipment-create-page #PackageBodyID .form-control,
.shipment-create-page #ItemBodyID .form-control {
    min-height: 40px;
    padding: 7px 12px !important;
}

.shipment-create-page #PackageBodyID label,
.shipment-create-page #ItemBodyID label {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
}

.shipment-create-page #ItemBodyID > .row > [class*="col-"] {
    margin-bottom: .5rem !important;
}

.shipment-create-page #PackageBodyID .table > :not(caption) > * > *,
.shipment-create-page #ItemBodyID .table > :not(caption) > * > * {
    padding: .42rem .5rem;
}

.shipment-create-page .page-header .page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipment-create-page .shipment-save-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 5px 14px 5px 7px;
    border: 1px solid var(--brand-primary);
    border-radius: 12px 4px 12px 4px;
    background: linear-gradient(135deg, var(--brand-primary), #0B678B);
    color: #fff;
    box-shadow: 0 9px 20px rgba(var(--brand-primary-rgb), .20);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.shipment-create-page .shipment-save-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), .26);
}

.shipment-create-page .shipment-save-button:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
}

.shipment-create-page .shipment-save-button.is-saved {
    border-color: #1f9d69;
    background: #1f9d69;
}

.shipment-create-page .shipment-save-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 9px 3px 9px 3px;
    background: rgba(255,255,255,.12);
    font-size: 16px;
}

.shipment-create-page .shipment-save-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.05;
}

.shipment-create-page .shipment-save-copy strong {
    font-size: 11.5px;
    font-weight: 850;
}

.shipment-create-page .shipment-save-copy small {
    margin-top: 3px;
    color: rgba(255,255,255,.70);
    font-size: 8.5px;
    font-weight: 600;
}

.shipment-create-page .shipment-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px 4px 12px 4px;
}

.shipment-create-page .shipment-type-btn {
    min-width: 58px;
    border-radius: 10px;
    font-weight: 800;
}

.shipment-create-page .shipment-type-btn.is-selected {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(var(--brand-primary-rgb), .18);
}

@media (max-width: 575.98px) {
    .shipment-create-page .as-item-currency {
        flex-basis: calc(100% - 18px);
        width: calc(100% - 18px);
        margin-left: 18px;
    }

    .shipment-create-page .shipment-save-button {
        flex: 1 1 auto;
    }
}

.shipment-create-page .sky-required-mark {
    margin-left: 3px;
    color: var(--brand-secondary);
    font-weight: 900;
}

.shipment-create-page .as-input,
.shipment-create-page .select2-container--default .select2-selection--single {
    min-height: 42px;
}

.shipment-create-page .select2-container--default .select2-selection--single {
    height: 42px;
}

.shipment-create-page .as-shipment-wizard > .card-footer { border-radius: 0 0 20px 20px; }

.shipment-create-page .as-shipment-wizard > .card-footer .as-btn-cancel,
.shipment-create-page .as-shipment-wizard > .card-footer .as-btn-submit {
    height: 38px;
    padding: 0 16px !important;
}

.shipment-create-page .sky-wizard-status {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    color: var(--brand-dark);
    text-align: center;
}

.shipment-create-page .sky-wizard-status > span {
    font-size: 11px;
    font-weight: 800;
}

.shipment-create-page .sky-wizard-status small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-muted);
    font-size: 9.5px;
}

.shipment-create-page .sky-wizard-status small i { color: var(--brand-secondary); }
.shipment-create-page #wizardPrev.is-hidden,
.shipment-create-page #wizardNext.is-hidden { visibility: hidden; pointer-events: none; }
.shipment-create-page .sky-spin { animation: sky-spin .8s linear infinite; }
@keyframes sky-spin { to { transform: rotate(360deg); } }

@media (max-width: 1199.98px) {
    .shipment-create-page .fdx-create-overview { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs {
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 9px !important;
        scrollbar-width: thin;
    }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-item {
        flex: 0 0 184px;
        width: 184px;
    }
    .shipment-create-page .sky-step-intro { grid-template-columns: 48px minmax(0, 1fr); }
    .shipment-create-page .sky-required-note { display: none; }
}

@media (max-width: 575.98px) {
    .shipment-create-page .fdx-create-overview { padding: 20px 17px; }
    .shipment-create-page .fdx-create-progress {
        grid-template-columns: repeat(6, 72px);
        padding-bottom: 6px;
    }
    .shipment-create-page .as-shipment-wizard > .card-body { padding: 10px !important; }
    .shipment-create-page .sky-step-intro {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }
    .shipment-create-page .sky-step-icon { width: 40px; height: 40px; border-radius: 12px; }
    .shipment-create-page .sky-step-icon i { font-size: 20px; }
    .shipment-create-page .sky-step-intro h4 { font-size: 16px; }
    .shipment-create-page .as-form-section { padding: 15px 13px; }
    .shipment-create-page .sky-wizard-status { order: 3; width: 100%; padding-top: 7px; }
    .shipment-create-page .as-shipment-wizard > .card-footer .wizard { justify-content: space-between !important; }
}

/* ============================================================
   19. LIGHT SKY-BLUE BRAND THEME
   Legacy light-theme layer retained below the final JT overrides.
   Navy remains only for readable text and compact controls.
   ============================================================ */

.header,
[data-topbar=white] .header {
    background: linear-gradient(90deg, #FFFFFF, #F4FCFE) !important;
    border-bottom-color: #C6E8F1 !important;
    box-shadow: 0 4px 18px rgba(var(--brand-primary-rgb), .07) !important;
}

.sidebar {
    background: #F9FDFF !important;
    border-right-color: #C6E8F1 !important;
}

.sidebar .sidebar-menu > ul > li > a:hover,
.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu > ul > li.active > a,
.sidebar .sidebar-menu .submenu ul li a.active {
    background: #DDF6FC !important;
    color: var(--brand-primary) !important;
}

.client-rebrand {
    --sky-soft: #F2FBFD;
    --sky-navy-soft: #E6F6FA;
    --sky-teal-soft: #DDF7FC;
}

.as-welcome-banner {
    border: 1px solid rgba(var(--brand-primary-rgb), .12) !important;
    background:
        radial-gradient(420px 210px at 96% 0, rgba(255,255,255,.72), transparent 72%),
        linear-gradient(112deg, #E4F8FC 0%, #B9EAF4 58%, #76D2E6 100%) !important;
    color: var(--brand-dark) !important;
    box-shadow: 0 18px 42px rgba(var(--brand-primary-rgb), .13) !important;
}

.as-welcome-banner h2,
.as-welcome-banner h3,
.as-welcome-banner h6,
.as-welcome-banner .welcome-text h2,
.as-welcome-banner .welcome-text h3,
.as-welcome-banner .welcome-text h6 {
    color: var(--brand-dark) !important;
}

.as-welcome-banner p,
.as-welcome-banner .welcome-text p {
    color: rgba(11, 59, 89, .72) !important;
}

.as-welcome-banner .as-banner-controls .dropdown-toggle,
.as-welcome-banner .as-banner-controls .btn-white,
.as-welcome-banner .table-top-head li a {
    border-color: rgba(var(--brand-primary-rgb), .14) !important;
    background: rgba(255,255,255,.66) !important;
    color: var(--brand-dark) !important;
}

.client-rebrand .as-welcome-banner {
    border: 1px solid rgba(var(--brand-primary-rgb), .12) !important;
    background:
        radial-gradient(420px 210px at 96% 0, rgba(255,255,255,.72), transparent 72%),
        linear-gradient(112deg, #E4F8FC 0%, #B9EAF4 58%, #76D2E6 100%) !important;
    box-shadow: 0 18px 42px rgba(var(--brand-primary-rgb), .13) !important;
}

.client-rebrand .as-welcome-banner::after {
    color: rgba(var(--brand-primary-rgb), .075);
}

.client-rebrand .as-welcome-banner h2,
.client-rebrand .as-welcome-banner h3,
.client-rebrand .as-welcome-banner h6,
.client-rebrand .as-welcome-banner .welcome-text h2,
.client-rebrand .as-welcome-banner .welcome-text h3,
.client-rebrand .as-welcome-banner .welcome-text h6 {
    color: var(--brand-dark) !important;
}

.client-rebrand .as-welcome-banner p,
.client-rebrand .as-welcome-banner .welcome-text p {
    color: rgba(11, 59, 89, .72) !important;
}

.client-rebrand .fdx-dashboard-eyebrow,
.client-rebrand .fdx-page-eyebrow {
    color: var(--brand-primary) !important;
}

.client-rebrand .as-welcome-banner .as-banner-controls .dropdown-toggle,
.client-rebrand .as-welcome-banner .as-banner-controls .btn-white,
.client-rebrand .as-welcome-banner .table-top-head li a {
    border-color: rgba(var(--brand-primary-rgb), .14) !important;
    background: rgba(255,255,255,.66) !important;
    color: var(--brand-dark) !important;
    box-shadow: 0 8px 22px rgba(var(--brand-primary-rgb), .08);
}

.client-rebrand .as-welcome-banner .as-banner-controls .dropdown-toggle:hover,
.client-rebrand .as-welcome-banner .table-top-head li a:hover {
    background: #fff !important;
    color: var(--brand-primary) !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card {
    background: linear-gradient(140deg, #138CB6, #58C7DE) !important;
    box-shadow: 0 16px 34px rgba(var(--brand-primary-rgb), .18) !important;
}

.dash-count {
    background: linear-gradient(140deg, #138CB6, #58C7DE) !important;
    box-shadow: 0 13px 28px rgba(var(--brand-primary-rgb), .15) !important;
}

.party-dashboard-page .fdx-party-calculator > .card-header,
.shipment-list-page .as-shipment-table thead th {
    background: #138CB6 !important;
}

.shipment-create-page .fdx-create-overview {
    border-color: rgba(var(--brand-primary-rgb), .13) !important;
    background:
        radial-gradient(420px 220px at 96% 0, rgba(255,255,255,.68), transparent 70%),
        linear-gradient(118deg, #E7F9FC 0%, #B9EAF4 58%, #78D3E6 100%) !important;
    color: var(--brand-dark) !important;
    box-shadow: 0 18px 42px rgba(var(--brand-primary-rgb), .12) !important;
}

.shipment-create-page .fdx-create-overview-copy > span,
.shipment-create-page .fdx-create-overview-copy h3 {
    color: var(--brand-dark) !important;
}

.shipment-create-page .fdx-create-overview-copy > span i {
    color: var(--brand-primary) !important;
}

.shipment-create-page .fdx-create-overview-copy p {
    color: rgba(11, 59, 89, .72) !important;
}

.shipment-create-page .sky-create-assurance span {
    border-color: rgba(var(--brand-primary-rgb), .13);
    background: rgba(255,255,255,.56);
    color: var(--brand-dark);
}

.shipment-create-page .sky-create-assurance i {
    color: var(--brand-primary);
}

.shipment-create-page .fdx-create-progress li,
.shipment-create-page .fdx-create-progress li.active,
.shipment-create-page .fdx-create-progress li.complete {
    color: rgba(11, 59, 89, .72);
}

.shipment-create-page .fdx-create-progress li::before {
    background: rgba(var(--brand-primary-rgb), .18);
}

.shipment-create-page .fdx-create-progress b {
    border-color: rgba(var(--brand-primary-rgb), .20);
    background: rgba(255,255,255,.80);
    color: var(--brand-dark);
    box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}

.shipment-create-page .fdx-create-progress li.active b {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(var(--brand-primary-rgb), .14);
}

.shipment-create-page .fdx-create-progress li.complete b {
    border-color: var(--brand-secondary);
    background: var(--brand-secondary);
    color: var(--brand-dark);
}

.shipment-view-page .fdx-route-hero {
    border-color: var(--brand-secondary) !important;
    background:
        radial-gradient(360px 180px at 94% 0, rgba(255,255,255,.72), transparent 72%),
        linear-gradient(115deg, #E5F8FC, #B8EAF4 60%, #75D1E5) !important;
    color: var(--brand-dark) !important;
    box-shadow: 0 18px 42px rgba(var(--brand-primary-rgb), .12) !important;
}

.shipment-view-page .fdx-route-eyebrow,
.shipment-view-page .fdx-route-line,
.shipment-view-page .fdx-route-hero b,
.shipment-view-page .fdx-route-hero .text-white {
    color: var(--brand-dark) !important;
}

.shipment-view-page .fdx-route-line i {
    color: var(--brand-primary) !important;
}

.shipment-view-page .fdx-view-action-dock {
    border-color: rgba(var(--brand-primary-rgb), .15);
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 34px rgba(var(--brand-primary-rgb), .13);
}

.shipment-list-page .fdx-list-status-grid .as-filter-card.active {
    background: var(--brand-primary) !important;
    box-shadow: inset 0 -4px 0 var(--brand-secondary), 0 10px 24px rgba(var(--brand-primary-rgb), .18);
}

.btn.btn-primary,
.btn-primary,
[data-color=primary] .btn.btn-primary,
[data-color=primary] .page-header .btn-added {
    box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), .20);
}

/* ========================================================================== 
   20. Legacy live-route preloader styles
   ========================================================================== */
div#global-loader {
    position: fixed;
    z-index: 9999999;
    display: grid;
    place-items: center;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(var(--brand-secondary-rgb), .17), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(var(--brand-accent-rgb), .13), transparent 27%),
        linear-gradient(145deg, #f9fdff 0%, #eef9fc 50%, #e7f5f9 100%) !important;
    opacity: 1;
    visibility: visible;
    transition: opacity .38s ease, visibility .38s ease;
}

div#global-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(var(--brand-primary-rgb), .12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .38;
    -webkit-mask-image: radial-gradient(circle at center, #000 5%, transparent 69%);
    mask-image: radial-gradient(circle at center, #000 5%, transparent 69%);
    pointer-events: none;
}

div#global-loader::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(76vw, 760px);
    height: min(76vw, 760px);
    border: 1px solid rgba(var(--brand-primary-rgb), .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 72px rgba(var(--brand-primary-rgb), .025),
        0 0 0 144px rgba(var(--brand-primary-rgb), .018);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

div#global-loader.sky-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sky-preloader {
    position: relative;
    z-index: 1;
    width: min(100%, 450px);
    text-align: center;
}

.sky-preloader-panel {
    position: relative;
    overflow: hidden;
    padding: 24px 30px 22px;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 30px;
    background: rgba(255, 255, 255, .76);
    box-shadow:
        0 30px 80px rgba(11, 59, 89, .14),
        inset 0 0 0 1px rgba(var(--brand-primary-rgb), .06);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.sky-preloader-panel::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(var(--brand-secondary-rgb), .10);
    filter: blur(2px);
    pointer-events: none;
}

.sky-preloader-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(var(--brand-primary-rgb), .13);
    border-radius: 999px;
    background: rgba(var(--brand-secondary-rgb), .08);
    color: var(--brand-primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.sky-preloader-badge i {
    color: var(--brand-accent);
    font-size: 14px;
}

.sky-preloader-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 240px;
    height: 174px;
    margin: 5px auto 0;
    overflow: hidden;
    isolation: isolate;
}

.sky-preloader-logo::before {
    content: "";
    position: absolute;
    inset: 22px 25px 18px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-secondary-rgb), .16), transparent 70%);
    animation: skyLogoAura 2.2s ease-in-out infinite;
}

.sky-preloader-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 218px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 13px 13px rgba(11, 59, 89, .13));
    animation: skyLogoArrive 1.8s ease-in-out infinite;
}

.sky-preloader-scan {
    position: absolute;
    z-index: 2;
    top: 16%;
    left: 7%;
    width: 86%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--brand-secondary) 22%, #fff 50%, var(--brand-primary) 78%, transparent);
    box-shadow: 0 0 16px 3px rgba(var(--brand-secondary-rgb), .24);
    opacity: 0;
    animation: skyLogoScan 2.35s cubic-bezier(.45, 0, .55, 1) infinite;
}

.sky-preloader-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-top: -1px;
}

.sky-preloader-copy strong {
    color: var(--brand-dark);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.sky-preloader-copy span {
    margin-top: 4px;
    color: #638096;
    font-size: 11px;
    font-weight: 600;
}

.sky-route-loader {
    position: relative;
    z-index: 1;
    margin: 24px 8px 0;
}

.sky-route-track {
    position: absolute;
    top: 5px;
    right: 8px;
    left: 8px;
    height: 3px;
    border-radius: 999px;
    background: rgba(var(--brand-primary-rgb), .12);
}

.sky-route-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transform-origin: left center;
    animation: skyRouteFill 2.8s cubic-bezier(.5, 0, .2, 1) infinite;
}

.sky-route-vehicle {
    position: absolute;
    top: 50%;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border: 3px solid rgba(255, 255, 255, .96);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), .26);
    animation: skyRouteVehicle 2.8s cubic-bezier(.5, 0, .2, 1) infinite;
}

.sky-route-vehicle i {
    font-size: 14px;
    transform: rotate(12deg);
}

.sky-route-stops {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.sky-route-stops > span {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    color: var(--brand-muted);
}

.sky-route-stops i {
    position: relative;
    z-index: 2;
    display: block;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #b9d9e3;
    box-shadow: 0 0 0 1px rgba(var(--brand-primary-rgb), .12);
    animation: skyRouteStop 2.8s ease-in-out infinite;
}

.sky-route-stops > span:nth-child(2) i { animation-delay: .82s; }
.sky-route-stops > span:nth-child(3) i { animation-delay: 1.64s; }

.sky-route-stops small {
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sky-loading-status {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: #6d8795;
    font-size: 10px;
    font-weight: 650;
}

.sky-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sky-loading-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-primary);
    animation: skyLoadingDot 1s ease-in-out infinite;
}

.sky-loading-dots i:nth-child(2) { animation-delay: .14s; }
.sky-loading-dots i:nth-child(3) { animation-delay: .28s; }

@keyframes skyLogoAura {
    0%, 100% { opacity: .48; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes skyLogoArrive {
    0%, 100% { transform: translateY(2px); }
    50% { transform: translateY(-3px); }
}

@keyframes skyLogoScan {
    0%, 12% { top: 16%; opacity: 0; }
    24% { opacity: .9; }
    68% { opacity: .9; }
    82%, 100% { top: 83%; opacity: 0; }
}

@keyframes skyRouteFill {
    0%, 8% { transform: scaleX(0); }
    82%, 100% { transform: scaleX(1); }
}

@keyframes skyRouteVehicle {
    0%, 8% { left: 0; transform: translateX(-50%) scale(.9); }
    82%, 100% { left: 100%; transform: translateX(-50%) scale(1); }
}

@keyframes skyRouteStop {
    0%, 18%, 100% { background: #b9d9e3; transform: scale(1); }
    23%, 46% { background: var(--brand-accent); transform: scale(1.28); box-shadow: 0 0 0 5px rgba(var(--brand-accent-rgb), .13); }
    52%, 96% { background: var(--brand-secondary); transform: scale(1); }
}

@keyframes skyLoadingDot {
    0%, 60%, 100% { opacity: .28; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 480px) {
    div#global-loader { padding: 15px; }

    .sky-preloader-panel {
        padding: 21px 20px 19px;
        border-radius: 24px;
    }

    .sky-preloader-logo {
        width: 210px;
        height: 154px;
    }

    .sky-preloader-logo img { width: 192px; }
    .sky-preloader-copy strong { font-size: 19px; }
    .sky-route-loader { margin-right: 3px; margin-left: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .sky-preloader-logo::before,
    .sky-preloader-logo img,
    .sky-preloader-scan,
    .sky-route-fill,
    .sky-route-vehicle,
    .sky-route-stops i,
    .sky-loading-dots i {
        animation: none !important;
    }

    .sky-preloader-scan { display: none; }
    .sky-route-fill { transform: scaleX(.62); }
    .sky-route-vehicle { left: 62%; transform: translateX(-50%); }
    .sky-route-stops i { background: var(--brand-secondary); }
}

/* ============================================================
   ADMIN DASHBOARD - FINANCIAL OVERVIEW
   ============================================================ */
.client-rebrand.admin-dashboard-page > .fdx-admin-finance-panel {
    order: 3;
}

.fdx-admin-finance-panel {
    position: relative;
    margin: 0 0 26px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(var(--brand-primary-rgb), .15);
    border-radius: 24px 8px 24px 8px;
    background:
        radial-gradient(500px 210px at 100% 0, rgba(67, 196, 222, .17), transparent 72%),
        linear-gradient(135deg, #f8fcff 0%, #edf9fc 100%);
    box-shadow: 0 14px 36px rgba(15, 58, 93, .08);
}

.fdx-admin-finance-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12%;
    width: 180px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--brand-secondary), #6dd5e7);
}

.fdx-finance-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.fdx-finance-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--brand-secondary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.fdx-finance-heading h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.015em;
}

.fdx-finance-heading p {
    margin: 3px 0 0;
    color: var(--brand-muted);
    font-size: 12px;
}

.fdx-finance-period {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(var(--brand-primary-rgb), .13);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #476079;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(15, 58, 93, .055);
}

.fdx-finance-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fdx-finance-card {
    --finance-accent: #0891b2;
    --finance-soft: rgba(8, 145, 178, .11);
    position: relative;
    min-width: 0;
    min-height: 190px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(14, 75, 112, .11);
    border-top: 4px solid var(--finance-accent);
    border-radius: 16px 5px 16px 5px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 25px rgba(15, 58, 93, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fdx-finance-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -52px;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--finance-soft), transparent 70%);
    pointer-events: none;
}

.fdx-finance-card:hover {
    transform: translateY(-4px);
    border-color: var(--finance-accent);
    box-shadow: 0 17px 34px rgba(15, 58, 93, .13);
}

.fdx-finance-card.fdx-finance-sale {
    --finance-accent: #2563eb;
    --finance-soft: rgba(37, 99, 235, .12);
}

.fdx-finance-card.fdx-finance-purchase {
    --finance-accent: #f59e0b;
    --finance-soft: rgba(245, 158, 11, .15);
}

.fdx-finance-card.fdx-finance-profit {
    --finance-accent: #10b981;
    --finance-soft: rgba(16, 185, 129, .13);
}

.fdx-finance-card.fdx-finance-profit.is-negative {
    --finance-accent: #dc3545;
    --finance-soft: rgba(220, 53, 69, .13);
}

.fdx-finance-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.fdx-finance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 13px 5px 13px 5px;
    background: var(--finance-soft);
    color: var(--finance-accent);
    font-size: 21px;
    box-shadow: inset 0 0 0 1px var(--finance-soft);
}

.fdx-finance-tag {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--finance-soft);
    color: var(--finance-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fdx-finance-label {
    margin: 0 0 3px;
    color: #607187;
    font-size: 12px;
    font-weight: 800;
}

.fdx-finance-value {
    margin: 0;
    overflow: hidden;
    color: #071b36;
    font-size: clamp(23px, 1.7vw, 30px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdx-finance-value > span {
    margin-right: 2px;
    color: var(--finance-accent);
    font-size: .78em;
}

.fdx-finance-foot {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: calc(100% - 36px);
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--finance-soft);
    color: var(--finance-accent);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdx-finance-foot i { flex: 0 0 auto; font-size: 13px; }

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

@media (max-width: 575.98px) {
    .fdx-admin-finance-panel { padding: 17px; border-radius: 18px 6px 18px 6px; }
    .fdx-finance-heading { align-items: flex-start; flex-direction: column; }
    .fdx-finance-period { white-space: normal; }
    .fdx-finance-grid { grid-template-columns: 1fr; }
    .fdx-finance-card { min-height: 182px; }
    .fdx-finance-value { font-size: 27px; }
}

/* ========================================================================== 
   21. JT INTERNATIONAL COURIER — 2026 identity and dashboard system
   ========================================================================== */

body,
.main-wrapper,
.page-wrapper,
.content {
    background-color: var(--brand-bg) !important;
    color: var(--brand-text);
}

.header,
[data-topbar=white] .header {
    border-top: 3px solid var(--brand-secondary) !important;
    border-bottom-color: #d8e1ed !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 8px 28px rgba(6, 26, 54, .08) !important;
}

.header .header-left {
    border-right-color: rgba(255,255,255,.12) !important;
    background: var(--brand-dark) !important;
}

.header .as-topbar-logo img {
    padding: 4px;
    border-radius: 12px;
    background: #fff;
}

.header .as-wordmark-top { color: #fff !important; }
.header .as-wordmark-bottom { color: #ff7180 !important; letter-spacing: .18em; }

.sidebar {
    border-right-color: #d8e1ed !important;
    background: #fff !important;
    box-shadow: 10px 0 32px rgba(6, 26, 54, .045);
}

.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu > ul > li > a:hover,
.sidebar .sidebar-menu .submenu ul li a.active {
    border-color: transparent !important;
    background: #edf3fb !important;
    color: var(--brand-primary) !important;
    box-shadow: inset 4px 0 0 var(--brand-secondary);
}

.sidebar .sidebar-menu .menu-title span {
    color: #8592a6;
    letter-spacing: .13em;
}

.btn.btn-as-cta,
.btn-as-cta,
a.btn.btn-as-cta,
.as-mobile-track-btn {
    background: var(--brand-secondary) !important;
    box-shadow: 0 8px 18px rgba(var(--brand-secondary-rgb), .24) !important;
}

.btn.btn-as-cta:hover,
a.btn.btn-as-cta:hover { background: #bd1827 !important; }

.as-footer-badge-gold {
    border-color: rgba(var(--brand-secondary-rgb), .2) !important;
    background: rgba(var(--brand-secondary-rgb), .08) !important;
    color: #a81422 !important;
}

/* Executive dashboard: dark command strip + clipped courier geometry. */
.client-rebrand.admin-dashboard-page > .as-welcome-banner {
    position: relative;
    min-height: 178px;
    padding: 30px 32px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 22px 6px 22px 6px !important;
    background:
        linear-gradient(115deg, transparent 0 68%, rgba(226,39,53,.96) 68% 71%, transparent 71%),
        radial-gradient(circle at 87% 16%, rgba(42,120,197,.34), transparent 30%),
        linear-gradient(130deg, #061a36 0%, #082b5c 58%, #0f3f77 100%) !important;
    box-shadow: 0 22px 48px rgba(6,26,54,.18) !important;
}

.admin-dashboard-page .as-welcome-banner::after {
    content: "JT";
    position: absolute;
    right: 34px;
    bottom: -41px;
    color: rgba(255,255,255,.065);
    font-size: 146px;
    font-weight: 950;
    letter-spacing: -.11em;
    line-height: 1;
    pointer-events: none;
}

.admin-dashboard-page .as-welcome-banner .welcome-text,
.admin-dashboard-page .as-welcome-banner .as-banner-controls { position: relative; z-index: 2; }
.admin-dashboard-page .as-welcome-banner .welcome-text h2 { color: #fff !important; font-size: clamp(25px, 2vw, 34px); }
.admin-dashboard-page .as-welcome-banner .welcome-text p { color: rgba(255,255,255,.72) !important; }
.admin-dashboard-page .fdx-dashboard-eyebrow { color: #ff7784 !important; }
.admin-dashboard-page .as-welcome-banner .fdx-banner-action {
    border: 1px solid rgba(255,255,255,.16) !important;
    background: var(--brand-secondary) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.admin-dashboard-page .as-welcome-banner .as-banner-controls .dropdown-toggle,
.admin-dashboard-page .as-welcome-banner .table-top-head li a {
    border-color: rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.jt-dashboard-signal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 15px;
}

.jt-dashboard-signal span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: 11px;
    font-weight: 750;
}

.admin-dashboard-page .jt-dashboard-signal span { color: rgba(255,255,255,.78); }
.admin-dashboard-page .jt-dashboard-signal i { color: #ff7784; font-size: 14px; }

.admin-dashboard-page .fdx-admin-status-grid .as-stat-card {
    min-height: 112px;
    border: 0 !important;
    border-top: 4px solid var(--brand-primary) !important;
    border-radius: 15px 4px 15px 4px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(6,26,54,.075) !important;
}

.admin-dashboard-page .fdx-admin-status-grid > :nth-child(2n) .as-stat-card { border-top-color: var(--brand-secondary) !important; }
.admin-dashboard-page .fdx-admin-status-grid .as-stat-icon { border-radius: 12px 3px 12px 3px !important; }

.client-rebrand.admin-dashboard-page > .fdx-admin-finance-panel {
    border: 0 !important;
    border-left: 6px solid var(--brand-primary) !important;
    border-radius: 5px 20px 5px 20px !important;
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(6,26,54,.08) !important;
}

.fdx-admin-finance-panel::before { background: var(--brand-secondary) !important; }
.fdx-finance-card { border-radius: 13px 3px 13px 3px !important; box-shadow: none !important; }
.fdx-finance-card.fdx-finance-received { --finance-accent: #082B5C; --finance-soft: rgba(8,43,92,.09); }

/* Party dashboard: bright booking console, distinct from the admin view. */
.client-rebrand.party-dashboard-page > .as-welcome-banner {
    position: relative;
    min-height: 164px;
    padding: 27px 30px 27px 36px !important;
    overflow: hidden;
    border: 1px solid #dfe6f0 !important;
    border-left: 8px solid var(--brand-secondary) !important;
    border-radius: 6px 24px 6px 24px !important;
    background:
        linear-gradient(90deg, rgba(8,43,92,.045) 1px, transparent 1px),
        linear-gradient(rgba(8,43,92,.045) 1px, transparent 1px),
        #fff !important;
    background-size: 24px 24px !important;
    box-shadow: 0 18px 40px rgba(6,26,54,.075) !important;
}

.party-dashboard-page .as-welcome-banner::after {
    content: "";
    position: absolute;
    top: -55px;
    right: -42px;
    width: 240px;
    height: 240px;
    border: 38px solid rgba(var(--brand-primary-rgb), .055);
    border-radius: 50%;
}

.party-dashboard-page .as-welcome-banner .welcome-text h2 { color: var(--brand-dark) !important; }
.party-dashboard-page .as-welcome-banner .welcome-text p { color: var(--brand-muted) !important; }
.party-dashboard-page .fdx-dashboard-eyebrow { color: var(--brand-secondary) !important; }
.party-dashboard-page .jt-dashboard-signal { color: var(--brand-primary); }
.party-dashboard-page .jt-dashboard-signal i { color: var(--brand-secondary); }
.party-dashboard-page .fdx-banner-action { border: 0 !important; background: var(--brand-primary) !important; color: #fff !important; }

.party-dashboard-page .fdx-party-status-grid .dash-count {
    min-height: 112px;
    border: 1px solid #dde5ef !important;
    border-bottom: 4px solid var(--brand-secondary) !important;
    border-radius: 5px 16px 5px 16px !important;
    background: #fff !important;
    color: var(--brand-text) !important;
    box-shadow: 0 10px 25px rgba(6,26,54,.07) !important;
}

.party-dashboard-page .fdx-party-status-grid .dash-count h4,
.party-dashboard-page .fdx-party-status-grid .dash-count p,
.party-dashboard-page .fdx-party-status-grid .dash-count i { color: var(--brand-primary) !important; }

.party-dashboard-page .fdx-party-calculator {
    border: 0 !important;
    border-radius: 20px 5px 20px 5px !important;
    box-shadow: 0 16px 38px rgba(6,26,54,.085) !important;
}

.party-dashboard-page .fdx-party-calculator > .card-header { background: var(--brand-dark) !important; color: #fff !important; }
.party-dashboard-page .fdx-party-calculator > .card-header h5 { color: #fff !important; }

/* Shipment workspaces inherit the JT navy/red system. */
.shipment-create-page .fdx-create-overview {
    border: 0 !important;
    border-left: 7px solid var(--brand-secondary) !important;
    border-radius: 5px 22px 5px 22px !important;
    background:
        linear-gradient(120deg, transparent 0 76%, rgba(226,39,53,.9) 76% 78%, transparent 78%),
        radial-gradient(circle at 91% 15%, rgba(42,120,197,.28), transparent 28%),
        var(--brand-dark) !important;
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(6,26,54,.17) !important;
}

.shipment-create-page .fdx-create-overview-copy > span,
.shipment-create-page .fdx-create-overview-copy h3 { color: #fff !important; }
.shipment-create-page .fdx-create-overview-copy p { color: rgba(255,255,255,.7) !important; }
.shipment-create-page .fdx-create-overview-copy > span i { color: #ff7b87 !important; }
.shipment-create-page .sky-create-assurance span {
    border-color: rgba(255,255,255,.14) !important;
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
}
.shipment-create-page .sky-create-assurance i { color: #ff7b87 !important; }
.shipment-create-page .fdx-create-progress li,
.shipment-create-page .fdx-create-progress li.active,
.shipment-create-page .fdx-create-progress li.complete { color: rgba(255,255,255,.72) !important; }
.shipment-create-page .fdx-create-progress li::before { background: rgba(255,255,255,.16) !important; }
.shipment-create-page .fdx-create-progress b { border-color: rgba(255,255,255,.24) !important; background: #fff !important; color: var(--brand-dark) !important; }
.shipment-create-page .fdx-create-progress li.active b { border-color: var(--brand-secondary) !important; background: var(--brand-secondary) !important; color: #fff !important; }
.shipment-create-page .as-shipment-wizard { border-top: 4px solid var(--brand-primary) !important; border-radius: 16px 4px 16px 4px !important; }

.shipment-list-page .fdx-list-card {
    overflow: hidden;
    border: 0 !important;
    border-radius: 18px 5px 18px 5px !important;
    box-shadow: 0 16px 38px rgba(6,26,54,.085) !important;
}
.shipment-list-page .as-shipment-table thead th { background: var(--brand-dark) !important; color: #fff !important; }
.shipment-list-page .fdx-list-status-grid .as-filter-card.active {
    background: var(--brand-primary) !important;
    box-shadow: inset 0 -4px 0 var(--brand-secondary), 0 10px 24px rgba(var(--brand-primary-rgb), .18) !important;
}
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-count {
    color: #fff;
}
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-label {
    color: rgba(255,255,255,.78);
}
.shipment-list-page .fdx-list-status-grid .as-filter-card.active::after {
    background: var(--brand-secondary);
}

.shipment-view-page .fdx-route-hero {
    border: 0 !important;
    border-right: 7px solid var(--brand-secondary) !important;
    border-radius: 21px 5px 21px 5px !important;
    background:
        linear-gradient(118deg, transparent 0 73%, rgba(226,39,53,.86) 73% 75%, transparent 75%),
        radial-gradient(circle at 90% 10%, rgba(42,120,197,.3), transparent 26%),
        var(--brand-dark) !important;
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(6,26,54,.18) !important;
}
.shipment-view-page .fdx-route-eyebrow { color: #ff7b87 !important; }
.shipment-view-page .fdx-route-line,
.shipment-view-page .fdx-route-hero b,
.shipment-view-page .fdx-route-hero .text-white { color: #fff !important; }
.shipment-view-page .fdx-route-line i { color: #ff7b87 !important; }
.shipment-view-page .fdx-view-action-dock { border-top: 4px solid var(--brand-secondary) !important; border-radius: 16px 4px 16px 4px !important; }

/* Login page identity override. */
body.fdx-login-page {
    background:
        radial-gradient(700px 500px at 0 100%, rgba(42,120,197,.14), transparent 68%),
        linear-gradient(135deg, #f8fafc 0%, #edf2f8 100%) !important;
}

body.fdx-login-page::before {
    opacity: .3 !important;
    background-image: linear-gradient(rgba(8,43,92,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(8,43,92,.06) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
}

.fdx-login-page .fdx-auth-brand-logo { border-radius: 12px 3px 12px 3px !important; }
.fdx-login-page .fdx-login-card {
    border: 0 !important;
    border-top: 5px solid var(--brand-secondary) !important;
    border-radius: 22px 5px 22px 5px !important;
    box-shadow: 0 24px 55px rgba(6,26,54,.12) !important;
}

.fdx-login-page .fdx-operations-column {
    position: relative;
    overflow: hidden;
    border-radius: 5px 26px 5px 26px !important;
    background:
        linear-gradient(128deg, transparent 0 72%, rgba(226,39,53,.82) 72% 73.5%, transparent 73.5%),
        radial-gradient(circle at 86% 12%, rgba(42,120,197,.33), transparent 28%),
        #061a36 !important;
    box-shadow: 0 28px 60px rgba(6,26,54,.22) !important;
}

.fdx-login-page .fdx-login-submit { background: var(--brand-secondary) !important; box-shadow: 0 12px 25px rgba(var(--brand-secondary-rgb), .24) !important; }
.fdx-login-page .fdx-login-submit:hover { background: #bd1827 !important; }
.fdx-login-page .fdx-operations-badge,
.fdx-login-page .sky-motion-code { color: #ff8994 !important; }

.fdx-login-page .fdx-operations-heading { color: #fff !important; }
.fdx-login-page .fdx-operations-heading em { color: #ff7b87 !important; }
.fdx-login-page .fdx-operations-intro { color: rgba(255,255,255,.72) !important; }
.fdx-login-page .fdx-operations-footer { color: rgba(255,255,255,.64) !important; }
.fdx-login-page .fdx-operations-footer a { color: #fff !important; }

/* New JT route-scan preloader. */
div#global-loader {
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 75% 20%, rgba(42,120,197,.24), transparent 30%),
        #061a36 !important;
    background-size: 34px 34px, 34px 34px, auto, auto !important;
}

div#global-loader::before,
div#global-loader::after { display: none !important; }

.jt-loader-shell {
    position: relative;
    width: min(100%, 440px);
    padding: 0 28px 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px 6px 24px 6px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 34px 90px rgba(0,0,0,.32);
}

.jt-loader-shell::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border: 27px solid rgba(8,43,92,.05);
    border-radius: 50%;
    pointer-events: none;
}

.jt-loader-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin: 0 -28px;
    padding: 0 18px;
    background: var(--brand-dark);
    color: rgba(255,255,255,.72);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.jt-loader-statusbar span { display: inline-flex; align-items: center; gap: 6px; }
.jt-loader-statusbar i { color: #64a4e5; font-size: 14px; }
.jt-loader-statusbar b { color: #ff7180; font-size: 9px; letter-spacing: .14em; }

.jt-loader-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 0 21px;
}

.jt-loader-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 50%;
    background: #f4f7fb;
    box-shadow: inset 0 0 0 1px #dce4ef;
}

.jt-loader-mark::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid transparent;
    border-top-color: var(--brand-secondary);
    border-right-color: var(--brand-primary);
    border-radius: 50%;
    animation: jtMarkSpin 1.55s linear infinite;
}

.jt-loader-mark img { width: 67px; height: 67px; object-fit: contain; }
.jt-loader-wordmark { display: flex; align-items: flex-start; flex-direction: column; }
.jt-loader-wordmark strong { color: var(--brand-dark); font-size: 25px; font-weight: 950; letter-spacing: -.045em; line-height: 1; }
.jt-loader-wordmark small { margin-top: 7px; color: var(--brand-secondary); font-size: 10px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase; }

.jt-loader-route { position: relative; height: 32px; margin: 5px 5px 0; }
.jt-loader-line {
    position: absolute;
    top: 14px;
    right: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe6ef;
}

.jt-loader-line::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: left center;
    animation: jtRouteProgress 2.35s cubic-bezier(.55,0,.2,1) infinite;
}

.jt-loader-pulse {
    position: absolute;
    top: 9px;
    z-index: 2;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #c4cfdd;
    box-shadow: 0 0 0 1px #c4cfdd;
    animation: jtPulse 2.35s ease infinite;
}

.jt-loader-pulse-one { left: 0; }
.jt-loader-pulse-two { left: calc(50% - 6px); animation-delay: .6s; }
.jt-loader-pulse-three { right: 0; animation-delay: 1.2s; }

.jt-loader-flight {
    position: absolute;
    top: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: 0 8px 17px rgba(var(--brand-secondary-rgb),.28);
    animation: jtFlight 2.35s cubic-bezier(.55,0,.2,1) infinite;
}

.jt-loader-flight i { font-size: 14px; transform: rotate(12deg); }
.jt-loader-copy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #6a778b; font-size: 10px; font-weight: 700; }
.jt-loader-dots { display: inline-flex; gap: 3px; }
.jt-loader-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-secondary); animation: jtDot .9s ease infinite; }
.jt-loader-dots i:nth-child(2) { animation-delay: .13s; }
.jt-loader-dots i:nth-child(3) { animation-delay: .26s; }

@keyframes jtMarkSpin { to { transform: rotate(360deg); } }
@keyframes jtRouteProgress { 0%,8% { transform: scaleX(0); } 82%,100% { transform: scaleX(1); } }
@keyframes jtFlight { 0%,8% { left: 0; transform: translateX(-50%) rotate(-4deg); } 82%,100% { left: 100%; transform: translateX(-50%) rotate(4deg); } }
@keyframes jtPulse { 0%,18%,100% { background: #c4cfdd; transform: scale(1); } 24%,48% { background: var(--brand-secondary); transform: scale(1.22); } 55%,95% { background: var(--brand-accent); transform: scale(1); } }
@keyframes jtDot { 0%,65%,100% { opacity: .25; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 991.98px) {
    .client-rebrand.admin-dashboard-page > .as-welcome-banner,
    .client-rebrand.party-dashboard-page > .as-welcome-banner { padding: 24px !important; }
    .admin-dashboard-page .as-welcome-banner::after { right: 18px; opacity: .5; }
}

@media (max-width: 575.98px) {
    .jt-loader-shell { padding: 0 20px 22px; border-radius: 19px 5px 19px 5px; }
    .jt-loader-statusbar { margin: 0 -20px; }
    .jt-loader-brand { gap: 12px; }
    .jt-loader-mark { width: 69px; height: 69px; flex-basis: 69px; }
    .jt-loader-mark img { width: 56px; height: 56px; }
    .jt-loader-wordmark strong { font-size: 21px; }
    .client-rebrand.admin-dashboard-page > .as-welcome-banner,
    .client-rebrand.party-dashboard-page > .as-welcome-banner { border-radius: 17px 5px 17px 5px !important; }
    .jt-dashboard-signal { align-items: flex-start; flex-direction: column; }
    body.fdx-login-page { min-width: 0; }
    .fdx-login-page .fdx-auth-main {
        width: calc(100% - 24px) !important;
        min-width: 0;
        margin-right: 12px !important;
        margin-left: 12px !important;
    }
    .fdx-login-page .fdx-auth-workspace {
        width: 100% !important;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .fdx-login-page .fdx-login-column { min-width: 0; padding: 30px 20px !important; }
    .fdx-login-page .fdx-login-card,
    .fdx-login-page .fdx-auth-form,
    .fdx-login-page .fdx-auth-field,
    .fdx-login-page .fdx-input-shell { width: 100%; min-width: 0; max-width: 100%; }
    .fdx-login-page .fdx-input-shell input[type="text"],
    .fdx-login-page .fdx-input-shell input[type="password"] { width: 100%; min-width: 0; max-width: 100%; }
    .fdx-login-page .fdx-auth-support .fdx-support-link:nth-of-type(n+2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .jt-loader-mark::after,
    .jt-loader-line::after,
    .jt-loader-pulse,
    .jt-loader-flight,
    .jt-loader-dots i { animation: none !important; }
    .jt-loader-line::after { transform: scaleX(.68); }
    .jt-loader-flight { left: 68%; transform: translateX(-50%); }
}

/* Final command-bar layer: intentionally follows legacy theme overrides. */
.client-rebrand.admin-dashboard-page > .as-welcome-banner.jt-command-bar {
    display: grid !important;
    min-height: 196px;
    padding: clamp(28px, 2.6vw, 42px) clamp(26px, 3.2vw, 50px) !important;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 24px 8px 24px 8px !important;
    background: #071f43 !important;
    box-shadow: 0 22px 52px rgba(5,24,51,.2) !important;
}

.admin-dashboard-page .as-welcome-banner.jt-command-bar::after { content: none; }

.admin-dashboard-page .as-welcome-banner.jt-command-bar .fdx-banner-action {
    border: 0 !important;
    background: linear-gradient(135deg, #ef2d40, #d8172a) !important;
}

@media (max-width: 991.98px) {
    .client-rebrand.admin-dashboard-page > .as-welcome-banner.jt-command-bar {
        padding: 24px !important;
    }
}

@media (max-width: 575.98px) {
    .client-rebrand.admin-dashboard-page > .as-welcome-banner.jt-command-bar {
        padding: 24px 18px !important;
        border-radius: 18px 5px 18px 5px !important;
    }
}

/* ============================================================
   VENDOR DIRECTORY (Vendor/List.cshtml)
   ============================================================ */
.vendor-list-page .vendor-list-header {
    min-height: 112px;
    padding: 22px 24px !important;
    overflow: hidden;
    border: 0 !important;
    border-left: 6px solid var(--brand-secondary) !important;
    border-radius: 6px 22px 6px 22px !important;
    background:
        radial-gradient(circle at 86% 12%, rgba(var(--brand-accent-rgb), .16), transparent 27%),
        linear-gradient(135deg, rgba(var(--brand-primary-rgb), .06), rgba(var(--brand-secondary-rgb), .055)),
        #fff !important;
    box-shadow: 0 16px 38px rgba(6, 26, 54, .08) !important;
}

.vendor-list-page .vendor-page-title { gap: 14px; }

.vendor-list-page .vendor-title-icon {
    position: relative;
    display: inline-grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px 5px 15px 5px;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), .2);
}

.vendor-list-page .vendor-title-icon::after {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand-secondary);
    content: "";
}

.vendor-list-page .vendor-title-icon i { font-size: 24px; }

.vendor-list-page .vendor-page-eyebrow,
.vendor-list-page .vendor-toolbar-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--brand-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.vendor-list-page .vendor-page-title h4 { font-size: 22px; }
.vendor-list-page .vendor-page-title h6 { max-width: 520px; }

.vendor-list-page .vendor-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.vendor-list-page .vendor-status-tabs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(var(--brand-primary-rgb), .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 6px 18px rgba(6, 26, 54, .05);
    backdrop-filter: blur(8px);
}

.vendor-list-page .vendor-status-tab {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vendor-list-page .vendor-status-tab:hover {
    background: var(--brand-bg);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.vendor-list-page .vendor-status-tab strong {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: #edf2f7;
    color: var(--brand-dark);
    font-size: 10px;
}

.vendor-list-page .vendor-status-active.active {
    background: var(--brand-success);
    color: #fff;
    box-shadow: 0 7px 16px rgba(20, 128, 74, .2);
}

.vendor-list-page .vendor-status-inactive.active {
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: 0 7px 16px rgba(var(--brand-secondary-rgb), .2);
}

.vendor-list-page .vendor-status-tab.active strong {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.vendor-list-page .vendor-icon-button {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--brand-border);
    border-radius: 11px;
    background: #fff;
    color: var(--brand-dark);
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease, transform .16s ease;
}

.vendor-list-page .vendor-icon-button:hover {
    border-color: rgba(var(--brand-primary-rgb), .35);
    color: var(--brand-primary);
    transform: translateY(-1px);
}

.vendor-list-page .vendor-add-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 0 17px;
    border: 0 !important;
    border-radius: 12px 4px 12px 4px !important;
    background: var(--brand-primary) !important;
    box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), .2);
    font-weight: 750;
}

.vendor-list-page .vendor-add-button:hover {
    background: var(--brand-dark) !important;
    transform: translateY(-1px);
}

.vendor-list-page .vendor-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid rgba(20, 128, 74, .2) !important;
    border-left: 4px solid var(--brand-success) !important;
    border-radius: 5px 13px 5px 13px;
    background: #f0faf4;
    color: #11663d;
}

.vendor-list-page .vendor-alert-icon {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(20, 128, 74, .1);
    font-size: 18px;
}

.vendor-list-page .vendor-alert div { display: grid; gap: 1px; }
.vendor-list-page .vendor-alert strong { font-size: 12px; }
.vendor-list-page .vendor-alert div > span { font-size: 13px; }

.vendor-list-page .vendor-directory-card {
    overflow: hidden;
    border: 0 !important;
    border-radius: 18px 5px 18px 5px !important;
    box-shadow: 0 16px 38px rgba(6, 26, 54, .085) !important;
}

.vendor-list-page .vendor-list-toolbar {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 22px !important;
    background: #fff !important;
}

.vendor-list-page .vendor-toolbar-copy h5 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 800;
}

.vendor-list-page .vendor-toolbar-copy p {
    margin: 3px 0 0;
    color: var(--brand-muted);
    font-size: 12px;
}

.vendor-list-page .vendor-search-set,
.vendor-list-page .vendor-search-set .search-input { width: min(330px, 100%); }

.vendor-list-page .vendor-search-set .search-input { position: relative; }

.vendor-list-page .vendor-search-set .dataTables_filter { width: 100%; }

.vendor-list-page .vendor-search-set .dataTables_filter label { display: block; width: 100%; }

.vendor-list-page .vendor-search-set .dataTables_filter input {
    width: 100% !important;
    min-width: 0;
    height: 46px;
    padding: 0 42px 0 42px !important;
    border-radius: 12px !important;
    background: var(--brand-bg) !important;
}

.vendor-list-page .vendor-search-set .btn-searchset {
    left: 14px;
    z-index: 2;
    color: var(--brand-primary);
}

.vendor-list-page .vendor-table-wrap { overflow-x: auto; }

.vendor-list-page .vendor-table {
    width: 100% !important;
    table-layout: fixed;
}

.vendor-list-page .vendor-table .vendor-col-name { width: 21%; }
.vendor-list-page .vendor-table .vendor-col-code { width: 11%; }
.vendor-list-page .vendor-table .vendor-col-tracking { width: 27%; }
.vendor-list-page .vendor-table .vendor-col-status { width: 14%; }
.vendor-list-page .vendor-table .vendor-col-date { width: 16%; }
.vendor-list-page .vendor-table .vendor-col-actions { width: 11%; }

.vendor-list-page .vendor-table thead th {
    height: 52px;
    padding: 12px 16px;
    border: 0 !important;
    background: var(--brand-dark) !important;
    color: #fff !important;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    vertical-align: middle;
}

.vendor-list-page .vendor-table tbody td {
    padding: 14px 16px;
    background: #fff;
    vertical-align: middle;
}

.vendor-list-page .vendor-table tbody tr { transition: background .16s ease, transform .16s ease; }

.vendor-list-page .vendor-table tbody tr:hover td { background: #f8fbff; }

.vendor-list-page .vendor-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.vendor-list-page .vendor-avatar {
    display: inline-grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(var(--brand-primary-rgb), .12);
    border-radius: 12px 4px 12px 4px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), .12), rgba(var(--brand-accent-rgb), .1));
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 850;
}

.vendor-list-page .vendor-identity-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.vendor-list-page .vendor-identity-copy strong {
    overflow: hidden;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-list-page .vendor-identity-copy small {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-list-page .vendor-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(var(--brand-primary-rgb), .09);
    border-radius: 999px;
    background: #eef3f9;
    color: var(--brand-primary);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.vendor-list-page .vendor-tracking-link {
    display: grid;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    color: var(--brand-dark);
    text-decoration: none;
}

.vendor-list-page .vendor-tracking-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: rgba(var(--brand-accent-rgb), .1);
    color: var(--brand-accent);
}

.vendor-list-page .vendor-tracking-link > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.vendor-list-page .vendor-tracking-link strong {
    color: var(--brand-primary);
    font-size: 11.5px;
    font-weight: 750;
}

.vendor-list-page .vendor-tracking-link small {
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-list-page .vendor-tracking-open { color: #94a3b8; font-size: 13px; }

.vendor-list-page .vendor-tracking-link:hover strong,
.vendor-list-page .vendor-tracking-link:hover .vendor-tracking-open { color: var(--brand-secondary); }

.vendor-list-page .vendor-tracking-text,
.vendor-list-page .vendor-not-set {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--brand-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-list-page .vendor-not-set { color: #94a3b8; }

.vendor-list-page .vendor-status-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vendor-list-page .vendor-switch {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.vendor-list-page .vendor-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vendor-list-page .vendor-switch-track {
    position: relative;
    display: block;
    width: 42px;
    height: 23px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #dfe6ef;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vendor-list-page .vendor-switch-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(6, 26, 54, .2);
    content: "";
    transition: transform .18s ease;
}

.vendor-list-page .vendor-switch input:checked + .vendor-switch-track {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.vendor-list-page .vendor-switch input:checked + .vendor-switch-track::after { transform: translateX(19px); }

.vendor-list-page .vendor-switch input:focus-visible + .vendor-switch-track {
    box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), .18);
}

.vendor-list-page .vendor-switch input:disabled + .vendor-switch-track { cursor: wait; opacity: .55; }

.vendor-list-page .vendor-status-text {
    min-width: 42px;
    font-size: 10.5px;
    font-weight: 750;
}

.vendor-list-page .vendor-status-text.is-active { color: var(--brand-success); }
.vendor-list-page .vendor-status-text.is-inactive { color: var(--brand-danger); }

.vendor-list-page .vendor-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-muted);
    font-size: 11px;
    white-space: nowrap;
}

.vendor-list-page .vendor-date i { color: var(--brand-accent); }
.vendor-list-page .vendor-actions { justify-content: center; }

.vendor-list-page .vendor-services-button { color: var(--brand-primary); }

.vendor-list-page .vendor-services-button:hover {
    border-color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), .07);
    color: var(--brand-primary);
}

.vendor-list-page .dataTables_wrapper .row:last-child {
    align-items: center;
    border-top: 1px solid var(--brand-border);
    background: #fbfdff;
}

.vendor-list-page .dataTables_empty {
    padding: 44px 20px !important;
    color: var(--brand-muted);
    text-align: center !important;
}

@media (max-width: 1199.98px) {
    .vendor-list-page .vendor-list-header { align-items: flex-start; }
    .vendor-list-page .vendor-header-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 767.98px) {
    .vendor-list-page .vendor-list-header { padding: 19px !important; }
    .vendor-list-page .vendor-page-title { align-items: flex-start !important; }
    .vendor-list-page .vendor-page-title h6 { line-height: 1.45; }
    .vendor-list-page .vendor-header-actions { flex-wrap: wrap; }
    .vendor-list-page .vendor-status-tabs { flex: 1 1 100%; }
    .vendor-list-page .vendor-status-tab { flex: 1 1 0; justify-content: center; }
    .vendor-list-page .vendor-add-button { flex: 1 1 auto; justify-content: center; }

    .vendor-list-page .vendor-list-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .vendor-list-page .vendor-search-set,
    .vendor-list-page .vendor-search-set .search-input { width: 100%; }

    .vendor-list-page .vendor-table-wrap { padding: 12px; background: var(--brand-bg); }

    .vendor-list-page .vendor-table,
    .vendor-list-page .vendor-table thead,
    .vendor-list-page .vendor-table tbody,
    .vendor-list-page .vendor-table tr,
    .vendor-list-page .vendor-table td { display: block; width: 100% !important; }

    .vendor-list-page .vendor-table thead { display: none; }

    .vendor-list-page .vendor-table tbody tr {
        overflow: hidden;
        margin-bottom: 12px;
        border: 1px solid var(--brand-border);
        border-left: 4px solid var(--brand-primary);
        border-radius: 5px 14px 5px 14px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(6, 26, 54, .05);
    }

    .vendor-list-page .vendor-table tbody td {
        display: grid;
        min-height: 48px;
        grid-template-columns: 105px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 10px 13px;
        text-align: left !important;
    }

    .vendor-list-page .vendor-table tbody td::before {
        color: var(--brand-muted);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .vendor-list-page .vendor-table tbody td + td { border-top: 1px dashed #e2e8f0 !important; }
    .vendor-list-page .vendor-status-control,
    .vendor-list-page .vendor-actions { justify-content: flex-start; }
    .vendor-list-page .vendor-tracking-link { max-width: 100%; }

    .vendor-list-page .vendor-table tbody td.dataTables_empty {
        display: block;
        min-height: 0;
    }

    .vendor-list-page .vendor-table tbody td.dataTables_empty::before { display: none; }
}

@media (max-width: 479.98px) {
    .vendor-list-page .vendor-title-icon { display: none; }
    .vendor-list-page .vendor-page-title h4 { font-size: 20px; }
    .vendor-list-page .vendor-status-tab { padding-right: 7px; padding-left: 7px; }
    .vendor-list-page .vendor-table tbody td { grid-template-columns: 88px minmax(0, 1fr); }
    .vendor-list-page .vendor-tracking-link small { display: none; }
}
