/* ============================================================
   HM INTERNATIONAL - 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: #087A32;
    --brand-primary-rgb: 45, 103, 177;
    --brand-secondary: #5E8FCB;
    --brand-secondary-rgb: 94, 143, 203;
    --brand-accent: #AFC0D6;
    --brand-accent-rgb: 175, 192, 214;
    --brand-dark: #1C477E;
    --brand-surface: #FFFFFF;
    --brand-bg: #F3F7FC;
    --brand-text: #142B4A;
    --brand-muted: #60738B;
    --brand-border: #D5DFEB;
    --brand-success: #12805C;
    --brand-danger: #D92D20;
    --brand-gradient: linear-gradient(135deg, #087A32 0%, #285A98 52%, #7E9CC5 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: 45, 103, 177 !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: #065A2C !important;
        border-color: #065A2C !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 .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;
    }
}

/* ============================================================
   HM INTERNATIONAL - 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; }
}

/* ============================================================
   HM INTERNATIONAL - 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?v=20261203-hm") 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;
    }
}

/* ==========================================================================
   23. SHIPMENT PENDING BALANCE — RECEIVABLES REPORT
   ========================================================================== */
.pending-balance-page {
    --pb-navy: #173f73;
    --pb-blue: #087A32;
    --pb-soft-blue: #EAF4ED;
    --pb-green: #16865b;
    --pb-soft-green: #e8f7f0;
    --pb-amber: #bd6e08;
    --pb-soft-amber: #fff5e2;
    --pb-ink: #172b46;
    --pb-muted: #6d7f94;
    --pb-line: #dce5f0;
}

.pending-balance-page .pb-page-header {
    margin-bottom: 16px;
}

.pb-summary-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 36px;
    min-height: 238px;
    margin-bottom: 18px;
    padding: 34px 38px;
    overflow: hidden;
    border: 1px solid rgba(194, 216, 242, .26);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(460px 240px at 12% 10%, rgba(121, 174, 229, .34), transparent 72%),
        radial-gradient(300px 210px at 93% 110%, rgba(175, 204, 235, .22), transparent 74%),
        linear-gradient(128deg, #163b6e 0%, #275c9e 53%, #346fb6 100%);
    box-shadow: 0 22px 52px rgba(28, 71, 126, .20);
}

.pb-summary-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.pb-summary-copy,
.pb-summary-metrics {
    position: relative;
    z-index: 2;
}

.pb-summary-copy {
    align-self: center;
}

.pb-summary-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #d4e8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.pb-summary-eyebrow i {
    font-size: 15px;
}

.pb-summary-copy h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pb-summary-total {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.pb-summary-total small {
    margin-bottom: 8px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    color: #d9eaff;
    background: rgba(255, 255, 255, .08);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.pb-summary-total strong {
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
}

.pb-summary-copy p {
    margin: 0;
    color: rgba(230, 241, 253, .76);
    font-size: 12px;
}

.pb-summary-copy p b {
    color: #fff;
}

.pb-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: center;
    gap: 12px;
}

.pb-summary-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 14px;
    background: rgba(255, 255, 255, .095);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.pb-summary-metric:last-child {
    grid-column: 1 / -1;
}

.pb-summary-metric > div {
    min-width: 0;
}

.pb-summary-metric small,
.pb-summary-metric strong {
    display: block;
}

.pb-summary-metric small {
    margin-bottom: 3px;
    color: rgba(223, 238, 253, .72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pb-summary-metric strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-metric-icon {
    display: grid;
    flex: 0 0 39px;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.pb-metric-icon i {
    font-size: 19px;
}

.pb-metric-collected { background: rgba(35, 186, 130, .19); }
.pb-metric-paid { background: rgba(134, 199, 255, .17); }

.pb-summary-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

.pb-summary-orbit-one {
    right: -115px;
    bottom: -230px;
    width: 430px;
    height: 430px;
}

.pb-summary-orbit-two {
    right: 45px;
    bottom: -175px;
    width: 330px;
    height: 330px;
}

.pb-report-card {
    overflow: hidden;
    border: 1px solid var(--pb-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 38px rgba(37, 75, 123, .08) !important;
}

.pb-report-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px !important;
    border-bottom: 1px solid var(--pb-line) !important;
    background: #fff !important;
}

.pb-date-filter,
.pb-report-tools,
.pb-status-filter {
    display: flex;
    align-items: flex-end;
}

.pb-date-filter {
    gap: 9px;
}

.pb-filter-field label {
    display: block;
    margin: 0 0 5px 2px;
    color: var(--pb-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pb-input-icon {
    position: relative;
}

.pb-input-icon > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 11px;
    color: #7c8da2;
    font-size: 15px;
    transform: translateY(-50%);
}

.pb-input-icon .form-control {
    width: 145px;
    min-height: 39px;
    padding-left: 34px;
    border-color: var(--pb-line);
    border-radius: 9px;
    color: var(--pb-ink);
    font-size: 11px;
    font-weight: 650;
}

.pb-apply-filter,
.pb-reset-filter {
    min-height: 39px;
    border-radius: 9px !important;
}

.pb-reset-filter {
    display: grid !important;
    place-items: center;
    width: 39px;
    padding: 0 !important;
}

.pb-report-tools {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-export-selected {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    border-radius: 9px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    white-space: nowrap;
}

.pb-export-selected:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.pb-selection-count {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    color: #147651;
    background: rgba(255, 255, 255, .88);
    font-size: 9px;
}

.pb-status-filter {
    padding: 3px;
    border: 1px solid var(--pb-line);
    border-radius: 10px;
    background: #f4f7fb;
}

.pb-status-filter button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 5px 10px;
    border: 0;
    border-radius: 7px;
    color: #667991;
    background: transparent;
    font-size: 10px;
    font-weight: 750;
    transition: all .18s ease;
}

.pb-status-filter button span {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(77, 105, 140, .09);
    font-size: 8px;
}

.pb-status-filter button.active {
    color: var(--pb-blue);
    background: #fff;
    box-shadow: 0 3px 10px rgba(31, 69, 116, .10);
}

.pb-status-filter button.active span {
    color: #fff;
    background: var(--pb-blue);
}

.pb-search-box {
    position: relative;
    display: block;
    margin: 0;
}

.pb-search-box i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #7b8ca1;
    font-size: 15px;
    transform: translateY(-50%);
}

.pb-search-box input {
    width: 240px;
    min-height: 39px;
    padding: 8px 12px 8px 35px;
    border: 1px solid var(--pb-line);
    border-radius: 9px;
    outline: 0;
    color: var(--pb-ink);
    background: #fff;
    font-size: 11px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pb-search-box input:focus {
    border-color: #79a5d8;
    box-shadow: 0 0 0 3px rgba(45, 103, 177, .10);
}

.pb-report-table-wrap {
    min-height: 270px;
}

.pb-report-table {
    min-width: 1180px;
    margin: 0 !important;
}

.pb-report-table thead th {
    padding: 12px 13px !important;
    border-bottom: 1px solid var(--pb-line) !important;
    color: #718298 !important;
    background: #f6f8fb !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-report-table tbody td {
    padding: 14px 13px !important;
    border-bottom: 1px solid #edf1f6 !important;
    color: var(--pb-ink);
    font-size: 11px;
    vertical-align: middle;
}

.pb-report-table tbody tr {
    transition: background .16s ease, box-shadow .16s ease;
}

.pb-report-table tbody tr:hover {
    background: #f8fbff;
    box-shadow: inset 3px 0 0 var(--pb-blue);
}

.pb-report-table .pb-select-column {
    width: 44px;
    min-width: 44px;
}

.pb-select-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--pb-blue);
    vertical-align: middle;
}

.pb-date-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536980;
    font-weight: 650;
    white-space: nowrap;
}

.pb-date-cell i { color: #82a1c5; font-size: 14px; }

.pb-shipment-cell > div {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.pb-shipment-cell > small {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #8795a7;
    font-size: 9px;
}

.pb-tracking-link {
    padding: 0;
    border: 0;
    color: var(--pb-blue);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .025em;
}

.pb-tracking-link:hover { color: #194d8e; text-decoration: underline; }

.pb-type-chip,
.pb-country span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.pb-type-chip {
    color: #546d8b;
    background: #edf2f8;
}

.pb-primary-text {
    max-width: 160px;
    overflow: hidden;
    color: var(--pb-ink);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-secondary-text,
.pb-country {
    color: #8493a5;
    font-size: 9px;
}

.pb-country {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.pb-country span {
    padding: 2px 5px;
    color: #476a93;
    background: #edf3fa;
}

.pb-service-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-service-cell img {
    width: 31px;
    height: 31px;
    padding: 3px;
    border: 1px solid #e1e8f1;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.pb-service-cell span,
.pb-service-cell small {
    display: block;
}

.pb-service-cell span { max-width: 130px; overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.pb-service-cell small { margin-top: 2px; color: #8796a8; font-size: 9px; }

.pb-money {
    display: inline-block;
    min-width: 84px;
    font-weight: 800;
    white-space: nowrap;
}

.pb-money-basic { color: #3d5776; }
.pb-money-paid { color: var(--pb-green); }
.pb-money-balance { color: #c2650b; font-size: 12px; }
.pb-money-zero { color: #7f91a4; }

.pb-payment-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.pb-add-payment {
    min-height: 31px;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
}

.pb-history-btn {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid #cfdbea;
    border-radius: 8px;
    color: #557291;
    background: #fff;
    transition: all .16s ease;
}

.pb-history-btn:hover {
    border-color: #91b3d9;
    color: var(--pb-blue);
    background: #eff6fe;
}

.pb-paid-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid #bfe7d5;
    border-radius: 999px;
    color: #10734d;
    background: var(--pb-soft-green);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.pb-paid-state i { color: #159764; font-size: 14px; }

.pb-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 17px;
    border-top: 1px solid var(--pb-line);
    color: #78899d;
    background: #fff;
    font-size: 10px;
}

.pb-table-footer .dataTables_length select {
    min-width: 62px;
    margin: 0 5px;
    border: 1px solid var(--pb-line);
    border-radius: 7px;
}

.pb-table-footer .pagination { margin: 0; }
.pb-table-footer .page-link { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 3px; border-color: var(--pb-line); color: #59728f; font-size: 10px; }
.pb-table-footer .page-item.active .page-link { border-color: var(--pb-blue); background: var(--pb-blue); }

.pb-empty-state,
.pb-modal-loading,
.pb-modal-error,
.pp-empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pb-empty-state {
    min-height: 320px;
    padding: 35px;
}

.pb-empty-state > span,
.pp-empty-history > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 18px;
    color: #6f8fb3;
    background: #edf4fb;
}

.pb-empty-state > span i,
.pp-empty-history > span i { font-size: 26px; }
.pb-empty-state h5,
.pp-empty-history h6 { margin-bottom: 5px; color: var(--pb-ink); font-weight: 800; }
.pb-empty-state p,
.pp-empty-history p { margin: 0; color: var(--pb-muted); font-size: 11px; }

/* Payment workspace loaded inside the report modal. */
.pb-payment-modal .modal-dialog { max-width: 920px; }
.pb-payment-modal .modal-content { overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 32px 80px rgba(13, 39, 72, .28); }
.pb-payment-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 19px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0, rgba(141, 188, 238, .25), transparent 40%),
        linear-gradient(120deg, #183e70, #087A32);
}

.pb-modal-heading {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.pb-modal-heading > span {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
}

.pb-modal-heading > span i { font-size: 20px; }
.pb-modal-heading small,
.pb-modal-heading h5 { display: block; }
.pb-modal-heading small { margin-bottom: 1px; color: #c8ddf4; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pb-modal-heading h5 { overflow: hidden; color: #fff; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.pb-modal-balance {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 10px;
    background: rgba(255, 255, 255, .09);
    text-align: right;
}

.pb-modal-balance small,
.pb-modal-balance strong { display: block; }
.pb-modal-balance small { color: #c9def4; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.pb-modal-balance strong { color: #fff; font-size: 15px; font-weight: 800; }
.pb-modal-close {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #FFFFFF;
    background: rgba(255, 255, 255, .11);
    transition: background .16s ease, transform .16s ease;
}
.pb-modal-close > span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}
.pb-modal-close:hover { color: #FFFFFF; background: rgba(255, 255, 255, .22); transform: rotate(6deg); }
.pb-payment-modal .modal-body { padding: 0; background: #f5f8fc; }

.pb-modal-loading,
.pb-modal-error { min-height: 300px; padding: 30px; color: #71849b; }
.pb-modal-loading .spinner-border { width: 30px; height: 30px; color: var(--brand-primary); }
.pb-modal-loading p { margin: 12px 0 0; font-size: 11px; }
.pb-modal-error i { margin-bottom: 9px; color: #c86464; font-size: 34px; }
.pb-modal-error h6 { margin-bottom: 4px; color: #293f5b; font-weight: 800; }
.pb-modal-error p { margin: 0; font-size: 11px; }

.pp-payment-panel { color: #1b304a; }
.pp-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e0e8f2;
    background: #fff;
}

.pp-panel-eyebrow { color: #6283a9; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pp-panel-header h6 { margin: 2px 0 2px; color: #1b304a; font-size: 15px; font-weight: 800; }
.pp-panel-header p { margin: 0; color: #8190a2; font-size: 10px; }
.pp-panel-actions { display: flex; align-items: center; gap: 11px; }
.pp-collected-total { padding-right: 12px; border-right: 1px solid #e1e8f1; text-align: right; }
.pp-collected-total small,
.pp-collected-total strong { display: block; }
.pp-collected-total small { color: #8190a2; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.pp-collected-total strong { color: #147651; font-size: 14px; font-weight: 800; }

.pp-payment-form-card {
    margin: 16px 20px;
    padding: 17px;
    border: 1px solid #cdddf0;
    border-radius: 14px;
    background: linear-gradient(145deg, #fafdff, #edf5fd);
    box-shadow: 0 10px 25px rgba(38, 81, 132, .07);
}

.pp-form-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.pp-form-heading > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: var(--brand-primary); }
.pp-form-heading > span i { font-size: 17px; }
.pp-form-heading small,
.pp-form-heading h6 { display: block; }
.pp-form-heading small { color: #71869e; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pp-form-heading h6 { margin: 1px 0 0; color: #1b304a; font-size: 13px; font-weight: 800; }

.pp-payment-form-card .form-label { margin-bottom: 5px; color: #50657e; font-size: 9px; font-weight: 750; }
.pp-payment-form-card .form-label > span { color: #d44d58; }
.pp-payment-form-card .form-label small { margin-left: 4px; color: #8b99a9; font-size: 8px; font-weight: 500; }
.pp-payment-form-card .form-control,
.pp-payment-form-card .form-select { min-height: 41px; border-color: #cfdae7; border-radius: 9px; color: #263d58; background-color: #fff; font-size: 11px; }
.pp-payment-form-card .form-control:focus,
.pp-payment-form-card .form-select:focus { border-color: #78a4d6; box-shadow: 0 0 0 3px rgba(45, 103, 177, .10); }

.pp-amount-input { position: relative; }
.pp-amount-input > b { position: absolute; z-index: 1; top: 50%; left: 12px; color: #3d5e84; transform: translateY(-50%); }
.pp-amount-input .form-control { padding-left: 29px; font-weight: 800; }

.pp-file-input {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    margin: 0;
    padding: 10px 13px;
    border: 1px dashed #aebfd2;
    border-radius: 10px;
    color: #5c7390;
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.pp-file-input:hover { border-color: #6f9bce; background: #fff; }
.pp-file-input > i { color: #5485bd; font-size: 23px; }
.pp-file-input > span { min-width: 0; }
.pp-file-input b,
.pp-file-input small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-file-input b { max-width: 590px; color: #3b536f; font-size: 10px; }
.pp-file-input small { margin-top: 2px; color: #8b99a9; font-size: 8px; }
.pp-file-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.pp-form-message:empty { display: none; }
.pp-form-message { margin-top: 12px; }
.pp-notice { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid; border-radius: 9px; font-size: 10px; font-weight: 650; }
.pp-notice-success { border-color: #b8e2d0; color: #14724f; background: #eaf8f2; }
.pp-notice-warning { border-color: #f0d7a6; color: #9b610d; background: #fff8e9; }
.pp-notice-danger { border-color: #edc1c5; color: #aa3e48; background: #fff1f2; }
.pp-notice i { font-size: 15px; }
.pp-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pp-form-actions .btn { min-width: 112px; border-radius: 9px; }

.pp-history-section { padding: 0 20px 20px; }
.pp-payment-table { margin: 0; overflow: hidden; border: 1px solid #dfe7f0; border-radius: 12px; background: #fff; }
.pp-payment-table thead th { padding: 10px 11px !important; border-bottom: 1px solid #dfe7f0 !important; color: #728398 !important; background: #f4f7fa !important; font-size: 8px !important; font-weight: 800 !important; letter-spacing: .07em; text-transform: uppercase; }
.pp-payment-table tbody td { padding: 12px 11px !important; border-bottom: 1px solid #edf1f5 !important; color: #2a4059; font-size: 10px; vertical-align: middle; }
.pp-payment-table tbody tr:last-child td { border-bottom: 0 !important; }

.pp-transaction-cell { display: flex; align-items: center; gap: 8px; }
.pp-transaction-cell > span { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #477bb5; background: #edf4fb; }
.pp-transaction-cell b,
.pp-transaction-cell small { display: block; }
.pp-transaction-cell b { color: #273e58; font-size: 10px; }
.pp-transaction-cell small { margin-top: 2px; color: #8997a7; font-size: 8px; }
.pp-mode-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; color: #526b89; background: #eef3f8; font-size: 9px; font-weight: 700; }
.pp-payment-amount { color: #147651; font-size: 11px; white-space: nowrap; }
.pp-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #85600c; background: #fff4d9; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.pp-status-badge > i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pp-status-badge.pp-status-success { color: #147651 !important; background: #e8f7f0 !important; }
.pp-status-badge.pp-status-danger { color: #ac3f49 !important; background: #fff0f1 !important; }
.pp-status-badge.pp-status-pending { color: #94600d !important; background: #fff6e4 !important; }
.pp-receipt-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid #d5e0ec; border-radius: 7px; color: #4c7198; background: #fff; font-size: 8px; font-weight: 750; }
.pp-receipt-link:hover { border-color: #87acd5; color: var(--brand-primary); background: #eff6fd; }
.pp-no-receipt { color: #a6b1bd; }
.pp-delete-payment { display: grid; place-items: center; width: 29px; height: 29px; margin: auto; border: 1px solid #efc6ca; border-radius: 7px; color: #c14954; background: #fff5f6; }
.pp-delete-payment:hover { color: #fff; background: #c94c57; }
.pp-delete-payment:disabled { opacity: .6; }

.pp-empty-history { min-height: 210px; padding: 25px; border: 1px dashed #d5dfeb; border-radius: 12px; background: #fff; }

@media (max-width: 1199.98px) {
    .pb-summary-hero { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
    .pb-report-toolbar { align-items: stretch; flex-direction: column; }
    .pb-date-filter,
    .pb-report-tools { width: 100%; }
    .pb-report-tools { justify-content: space-between; }
    .pb-search-box { margin-left: auto; }
}

@media (max-width: 767.98px) {
    .pb-summary-hero { grid-template-columns: 1fr; gap: 22px; padding: 27px 24px; }
    .pb-summary-metrics { grid-template-columns: 1fr 1fr; }
    .pb-date-filter { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: end; width: 100%; }
    .pb-input-icon .form-control { width: 100%; }
    .pb-report-tools { align-items: stretch; flex-direction: column; }
    .pb-status-filter { align-self: flex-start; }
    .pb-search-box,
    .pb-search-box input { width: 100%; }
    .pb-table-footer { align-items: flex-start; flex-wrap: wrap; }
    .pb-payment-modal .modal-dialog { margin: 10px; }
    .pb-payment-modal .modal-header { flex-wrap: wrap; gap: 10px; }
    .pb-modal-heading { flex: 1 1 calc(100% - 40px); }
    .pb-modal-balance { order: 3; width: 100%; text-align: left; }
    .pp-panel-header { align-items: flex-start; flex-direction: column; }
    .pp-panel-actions { justify-content: space-between; width: 100%; }
}

@media (max-width: 575.98px) {
    .pb-summary-total { align-items: flex-start; flex-direction: column; gap: 3px; }
    .pb-summary-total small { margin-bottom: 2px; }
    .pb-summary-metrics { grid-template-columns: 1fr; }
    .pb-summary-metric:last-child { grid-column: auto; }
    .pb-date-filter { grid-template-columns: 1fr 1fr; }
    .pb-apply-filter { width: 100%; }
    .pb-reset-filter { width: 100%; }
    .pb-status-filter { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
    .pb-status-filter button { justify-content: center; }
    .pp-payment-form-card { margin: 12px; padding: 13px; }
    .pp-history-section { padding: 0 12px 12px; }
    .pp-collected-total { padding-right: 0; border-right: 0; text-align: left; }
    .pp-form-actions .btn { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pb-report-table tbody tr,
    .pb-history-btn,
    .pp-file-input { transition: none; }
}

/* ========================================================================== 
   24. HM INTERNATIONAL — 2026 BRAND SYSTEM
   Blue communicates reach and trust; green identifies live movement/action.
   ========================================================================== */

:root {
    --brand-primary: #087A32;
    --brand-primary-rgb: 8, 122, 50;
    --brand-secondary: #16A34A;
    --brand-secondary-rgb: 22, 163, 74;
    --brand-accent: #39BF72;
    --brand-accent-rgb: 73, 219, 154;
    --brand-dark: #0B2417;
    --brand-surface: #FFFFFF;
    --brand-bg: #F4F8FB;
    --brand-text: #172B20;
    --brand-muted: #63788C;
    --brand-border: #D9E5ED;
    --brand-success: #087A32;
    --brand-gradient: linear-gradient(135deg, #0B2417 0%, #087A32 62%, #079665 100%);
    --brand-shadow-card: 0 1px 2px rgba(5, 40, 73, .04), 0 10px 28px rgba(8, 122, 50, .075);
    --brand-shadow-hover: 0 16px 38px rgba(8, 122, 50, .16);
}

html { --primary-rgb: 8, 122, 50 !important; }

body,
.main-wrapper,
.page-wrapper,
.content { background-color: var(--brand-bg) !important; }

.header,
[data-topbar=white] .header {
    background: linear-gradient(90deg, #FFFFFF 0%, #F6FBFF 64%, #EAFBF3 100%) !important;
    border-bottom-color: var(--brand-border) !important;
    box-shadow: 0 5px 22px rgba(8, 122, 50, .075) !important;
}

.header .header-left { background: rgba(255,255,255,.76); }

.header .header-left .as-topbar-logo { justify-content: flex-start; gap: 9px; }

.header .header-left .as-topbar-logo img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 2px;
    border: 0;
    border-radius: 14px;
    object-fit: contain;
    background: #FFFFFF;
    filter: drop-shadow(0 6px 12px rgba(8, 122, 50, .14));
}

.header .header-left .as-wordmark .as-wordmark-top {
    color: var(--brand-dark) !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
    letter-spacing: -.01em !important;
}

.header .header-left .as-wordmark .as-wordmark-bottom {
    color: var(--brand-success) !important;
    font-size: 8px !important;
    letter-spacing: .13em !important;
}

.sidebar { background: #FFFFFF !important; border-right-color: var(--brand-border) !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 {
    color: var(--brand-primary) !important;
    background: linear-gradient(90deg, #ECF6EF, #EFFCF6) !important;
}

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

.btn.btn-primary,
.btn-primary,
[data-color=primary] .btn.btn-primary,
[data-color=primary] .page-header .btn-added {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary) !important;
    box-shadow: 0 9px 21px rgba(var(--brand-primary-rgb), .22) !important;
}

.btn.btn-primary:hover,
.btn-primary:hover,
[data-color=primary] .btn.btn-primary:hover {
    border-color: #065A2C !important;
    background: #065A2C !important;
}

.btn.btn-as-cta,
.btn-as-cta,
a.btn.btn-as-cta {
    border-color: var(--brand-secondary) !important;
    background: var(--brand-secondary) !important;
    box-shadow: 0 8px 20px rgba(var(--brand-secondary-rgb), .25) !important;
}

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

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

.profile-nav .user-letter img {
    padding: 2px;
    border-color: rgba(var(--brand-secondary-rgb), .35);
    object-fit: contain;
    background: #FFFFFF;
}

.as-footer-badge-gold {
    border-color: #BCEAD3 !important;
    background: #ECFBF4 !important;
    color: var(--brand-success) !important;
}

/* HM International logistics preloader */
div#global-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(8, 122, 50, .48), transparent 28%),
        radial-gradient(circle at 18% 15%, rgba(22, 163, 74, .20), transparent 25%),
        radial-gradient(circle at 84% 86%, rgba(22, 163, 74, .16), transparent 28%),
        linear-gradient(145deg, #031C35 0%, #052E55 52%, #03233F 100%) !important;
}

.sky-preloader-aura { background: rgba(var(--brand-secondary-rgb), .27); }
.sky-preloader-route-outer { stroke: rgba(89, 233, 171, .54); }
.sky-preloader-route-cross { stroke: rgba(51, 181, 244, .35); }
.sky-preloader-node { fill: #83D9A2; stroke: rgba(98, 236, 175, .20); }
.sky-preloader-packet { background: linear-gradient(90deg, #DDF8FF, #52C57B 58%, #087A32); box-shadow: 0 0 0 3px rgba(22,163,74,.11), 0 0 20px rgba(22,163,74,.58); }

.sky-preloader-logo {
    padding: 10px;
    border-color: rgba(98, 236, 175, .55);
    background: #FFFFFF;
    box-shadow: 0 0 0 7px rgba(22,163,74,.08), 0 25px 65px rgba(0,7,19,.55), inset 0 0 0 1px rgba(255,255,255,.75);
}

.sky-preloader-logo img { border-radius: 0; object-fit: contain; }
.sky-preloader-kicker { color: #A9F5D1; }
.sky-preloader-kicker > i { background: var(--brand-secondary); box-shadow: 0 0 0 4px rgba(var(--brand-secondary-rgb), .14); }
.sky-preloader-progress > i { background: linear-gradient(90deg, transparent, var(--brand-secondary), #4BD99B, transparent); }

/* Dashboard compositions: quieter surfaces with a high-signal green action layer. */
.party-dashboard-page.pd-dashboard {
    --pd-blue: #087A32;
    --pd-blue-deep: #065A2C;
    --pd-blue-soft: #ECF6EF;
    --pd-orange: #16A34A;
    --pd-orange-soft: #E8F7EC;
    --pd-silver: #8FCFB1;
    --pd-ink: #172B20;
    --pd-copy: #64788B;
    --pd-line: #D9E5ED;
    --pd-shadow: 0 12px 34px rgba(8, 122, 50, .08);
}

.admin-dashboard-page.ad-dashboard {
    --ad-blue: #087A32;
    --ad-blue-deep: #065A2C;
    --ad-blue-soft: #ECF6EF;
    --ad-orange: #16A34A;
    --ad-orange-soft: #E8F7EC;
    --ad-silver: #8FCFB1;
    --ad-ink: #172B20;
    --ad-copy: #64788B;
    --ad-line: #D9E5ED;
    --ad-shadow: 0 12px 34px rgba(8, 122, 50, .08);
}

.pd-welcome,
.ad-command-bar {
    border-color: rgba(var(--brand-primary-rgb), .16);
    background:
        radial-gradient(260px 125px at 91% 118%, rgba(var(--brand-secondary-rgb), .17), transparent 73%),
        linear-gradient(104deg, #FFFFFF 0%, #F8FBFD 58%, #EDFBF5 100%);
    box-shadow: var(--brand-shadow-card);
}

.pd-welcome::before,
.ad-command-bar::before { background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary)); }
.pd-welcome::after { content: "HM"; color: rgba(var(--brand-primary-rgb), .035); }
.ad-command-bar::after { content: "HM"; color: rgba(var(--brand-primary-rgb), .035); }

.pd-welcome-mark,
.ad-command-mark,
.pd-panel-icon,
.ad-panel-icon { border-color: #CDE6DB; color: var(--brand-success); background: #FFFFFF; box-shadow: 0 8px 18px rgba(var(--brand-secondary-rgb), .10); }

.pd-primary-action,
.pd-mini-primary,
.ad-primary-action {
    border-color: var(--brand-secondary);
    background: var(--brand-secondary);
    box-shadow: 0 9px 20px rgba(var(--brand-secondary-rgb), .22);
}

.pd-primary-action:hover,
.pd-mini-primary:hover,
.ad-primary-action:hover { background: var(--brand-success); box-shadow: 0 12px 24px rgba(var(--brand-secondary-rgb), .27); }

.pd-wallet-card,
.ad-kpi-payments {
    background:
        radial-gradient(210px 130px at 100% 100%, rgba(22,163,74,.20), transparent 72%),
        linear-gradient(145deg, #FFFFFF, #F2FBF7) !important;
}

.pd-tone-1,
.ad-status-tone-1 { --pd-tone: #087A32; --pd-tone-bg: #ECF6EF; --ad-status-tone: #087A32; --ad-status-soft: #ECF6EF; }
.pd-tone-2,
.ad-status-tone-2 { --pd-tone: #16A34A; --pd-tone-bg: #E8F7EC; --ad-status-tone: #16A34A; --ad-status-soft: #E8F7EC; }
.pd-tone-3,
.ad-status-tone-3 { --pd-tone: #7B61B5; --pd-tone-bg: #F1EDFA; --ad-status-tone: #7B61B5; --ad-status-soft: #F1EDFA; }
.pd-tone-4,
.ad-status-tone-4 { --pd-tone: #198F51; --pd-tone-bg: #FFF6E6; --ad-status-tone: #198F51; --ad-status-soft: #FFF6E6; }
.pd-tone-5,
.ad-status-tone-5 { --pd-tone: #0B8091; --pd-tone-bg: #E8F8FA; --ad-status-tone: #0B8091; --ad-status-soft: #E8F8FA; }

.pd-country-bar i,
.ad-country-bar i { background: linear-gradient(90deg, #67DFA6, #087A32); }

.as-quick-tone-1 { --as-quick-tone: #087A32; --as-quick-soft: #ECF6EF; }
.as-quick-tone-2 { --as-quick-tone: #16A34A; --as-quick-soft: #E8F7EC; }
.as-quick-tone-3 { --as-quick-tone: #7B61B5; --as-quick-soft: #F1EDFA; }
.as-quick-tone-4 { --as-quick-tone: #198F51; --as-quick-soft: #FFF6E6; }

@media (max-width: 991.98px) {
    .header .header-left .as-topbar-logo img { width: 44px; height: 44px; }
    .header .header-left .as-wordmark { display: none !important; }
}

@media (min-width: 992px) {
    body.mini-sidebar .header .header-left .as-topbar-logo { justify-content: center; }
    body.mini-sidebar .header .header-left .as-topbar-logo img { width: 44px; height: 44px; padding: 2px; border-radius: 13px; }
}

/* Simple professional HM International preloader — authoritative replacement. */
div#global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background: #F7FAFC !important;
    opacity: 1;
    visibility: visible;
    transition: opacity .28s ease, visibility .28s ease;
}

div#global-loader::before,
div#global-loader::after {
    display: none !important;
    content: none !important;
}

/* ========================================================================== 
   SHIPMENT CREATE — FOCUSED BOOKING EXPERIENCE
   ========================================================================== */
.shipment-create-page .shipment-page-header {
    min-height: 76px;
    margin-bottom: 18px !important;
    padding: 14px 18px !important;
    gap: 16px;
    border: 1px solid #DCE7EF;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 28px rgba(7, 60, 105, .07) !important;
}

.shipment-create-page .shipment-page-header .add-item {
    min-width: 0;
    gap: 13px;
}

.shipment-create-page .shipment-title-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #087A32, #064B89);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(8, 122, 50, .18);
}

.shipment-create-page .shipment-title-mark i { font-size: 22px; }

.shipment-create-page .shipment-page-kicker {
    display: block;
    margin-bottom: 2px;
    color: #087A32;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.shipment-create-page .shipment-page-header .page-title h4 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 2px;
    color: #172B20;
    font-size: 19px;
    line-height: 1.25;
}

.shipment-create-page .shipment-page-header .page-title h6 {
    margin: 0;
    color: #687F92;
    font-size: 11px;
    line-height: 1.35;
}

.shipment-create-page .shipment-party-name {
    color: #087A32;
    font-size: 12px;
    font-weight: 750;
}

.shipment-create-page .shipment-party-name:not(:empty)::before { content: "•"; margin-right: 7px; color: #A3B4C3; }
.shipment-create-page .shipment-party-name:empty { display: none; }
.shipment-create-page .shipment-page-header .table-top-head { display: none !important; }

.shipment-create-page .shipment-page-header .page-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.shipment-create-page .shipment-page-header .page-btn .btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
}

.shipment-create-page .shipment-save-btn {
    border: 1px solid #16A34A !important;
    background: #16A34A !important;
    color: #FFFFFF !important;
    box-shadow: 0 7px 16px rgba(22, 163, 74, .18);
}

.shipment-create-page .shipment-save-btn:hover { border-color: #087A32 !important; background: #087A32 !important; }

.shipment-create-page .shipment-back-btn {
    border: 1px solid #C9D8E3 !important;
    background: #FFFFFF !important;
    color: #087A32 !important;
}

.shipment-create-page .shipment-back-btn:hover { border-color: #087A32 !important; background: #EFF7FC !important; }

.shipment-create-start .gne-booking-launch {
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #D7E4ED;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 20px 52px rgba(7, 60, 105, .10);
}

.shipment-create-start .gne-booking-primary {
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
    min-height: 340px;
}

.shipment-create-start .gne-booking-intro {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    background:
        radial-gradient(300px 190px at 105% 105%, rgba(22, 163, 74, .34), transparent 72%),
        linear-gradient(145deg, #0B2417 0%, #087A32 100%);
    color: #FFFFFF;
}

.shipment-create-start .gne-booking-intro::after {
    content: "";
    position: absolute;
    top: -82px;
    right: -70px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 62px rgba(255,255,255,.018);
    pointer-events: none;
}

.shipment-create-start .gne-booking-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #A9F5D1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shipment-create-start .gne-booking-eyebrow i { font-size: 16px; }

.shipment-create-start .gne-booking-intro h2 {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 12px 0 10px;
    color: #FFFFFF;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.shipment-create-start .gne-booking-intro > p {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    line-height: 1.65;
}

.shipment-create-start .gne-booking-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.shipment-create-start .gne-booking-benefits li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.shipment-create-start .gne-booking-benefits li > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.09);
    color: #86F0BB;
    font-size: 17px;
}

.shipment-create-start .gne-booking-benefits li > span { display: flex; min-width: 0; flex-direction: column; }
.shipment-create-start .gne-booking-benefits strong { color: #FFFFFF; font-size: 11px; font-weight: 750; }
.shipment-create-start .gne-booking-benefits small { color: rgba(255,255,255,.59); font-size: 9px; }

.shipment-create-start .gne-party-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 184px;
    align-content: center;
    align-items: end;
    gap: 0 14px;
    padding: 38px 44px;
    border-left: 1px solid #DDE8F0;
    background: #F8FBFD;
}

.shipment-create-start .gne-party-heading,
.shipment-create-start .gne-party-description,
.shipment-create-start .gne-party-note { grid-column: 1 / -1; }

.shipment-create-start .gne-party-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.shipment-create-start .gne-step-badge {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: #E9F5FC;
    color: #087A32;
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(8,122,50,.10);
}

.shipment-create-start .gne-party-heading > div { display: flex; flex-direction: column; gap: 2px; }
.shipment-create-start .gne-party-heading > div > span { color: #087A32; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.shipment-create-start .gne-party-heading h3 { margin: 0; color: #172B20; font-size: 21px; font-weight: 800; letter-spacing: -.025em; }

.shipment-create-start .gne-party-description {
    max-width: 610px;
    margin: 15px 0 22px;
    color: #62788B;
    font-size: 11px;
    line-height: 1.55;
}

.shipment-create-start .gne-party-field { min-width: 0; }

.shipment-create-start .gne-party-field > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #1B344A;
    font-size: 11px;
    font-weight: 750;
}

.shipment-create-start .gne-party-field > label span {
    color: #087A32;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.shipment-create-start .gne-party-field .as-input,
.shipment-create-start .gne-party-field .select2-container--default .select2-selection--single {
    width: 100% !important;
    min-height: 50px;
    border: 1px solid #C7D7E3 !important;
    border-radius: 11px !important;
    background: #FFFFFF !important;
    color: #172B20;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(7,60,105,.035);
}

.shipment-create-start .gne-party-field .select2-container { width: 100% !important; }
.shipment-create-start .gne-party-field .select2-selection__rendered { padding-left: 14px !important; line-height: 48px !important; }
.shipment-create-start .gne-party-field .select2-selection__arrow { height: 48px !important; right: 8px !important; }
.shipment-create-start .gne-party-field .select2-container.is-invalid .select2-selection,
.shipment-create-start .gne-party-field .as-input.is-invalid { border-color: #DC3545 !important; box-shadow: 0 0 0 3px rgba(220,53,69,.10) !important; }

.shipment-create-start .gne-field-error {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #B42332;
    font-size: 9px;
    font-weight: 650;
}

.shipment-create-start .gne-field-error.is-visible { display: flex; }

.shipment-create-start .gne-start-booking {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid #16A34A;
    border-radius: 11px;
    background: #16A34A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(22,163,74,.19);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.shipment-create-start .gne-start-booking:hover { background: #087A32; box-shadow: 0 12px 24px rgba(22,163,74,.24); transform: translateY(-1px); }
.shipment-create-start .gne-start-booking:disabled { cursor: wait; opacity: .72; transform: none; }
.shipment-create-start .gne-start-booking > i { font-size: 17px; }

.shipment-create-start .gne-party-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    color: #73889A;
    font-size: 9px;
}

.shipment-create-start .gne-party-note i { color: #087A32; font-size: 13px; }

.shipment-create-start .gne-booking-flow {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 18px 26px 20px;
    border-top: 1px solid #DFE9F0;
    background: #FFFFFF;
}

.shipment-create-start .gne-flow-title { display: flex; flex-direction: column; gap: 2px; }
.shipment-create-start .gne-flow-title span { color: #16344E; font-size: 11px; font-weight: 800; }
.shipment-create-start .gne-flow-title small { color: #7B8FA0; font-size: 9px; }
.shipment-create-start .gne-flow-scroll { min-width: 0; overflow-x: auto; padding: 4px 3px; scrollbar-width: thin; }

.shipment-create-start .gne-booking-flow ol {
    position: relative;
    display: grid;
    min-width: 630px;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.shipment-create-start .gne-booking-flow li {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    color: #73889A;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.shipment-create-start .gne-booking-flow li::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 50%;
    width: 100%;
    height: 1px;
    background: #D6E2EA;
}

.shipment-create-start .gne-booking-flow li:first-child::before { display: none; }

.shipment-create-start .gne-booking-flow li b {
    position: relative;
    z-index: 1;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #C9D8E3;
    border-radius: 50%;
    background: #FFFFFF;
    color: #537085;
    font-size: 9px;
    font-weight: 800;
}

.shipment-create-start .gne-booking-flow li.active { color: #087A32; }
.shipment-create-start .gne-booking-flow li.active b {
    border-color: #16A34A;
    background: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(22,163,74,.11);
}

/* Improve readability inside an in-progress shipment without expanding the form. */
.shipment-create-workspace .sky-tab-copy strong { font-size: 12px; }
.shipment-create-workspace .sky-tab-copy small { font-size: 9px; }
.shipment-create-workspace .sky-step-intro p { font-size: 10.5px; }
.shipment-create-workspace .as-section-head h5 { font-size: 13px; }
.shipment-create-workspace .as-section-head small { font-size: 9.5px; }
.shipment-create-workspace .as-label { font-size: 10.5px; }
.shipment-create-workspace .as-input,
.shipment-create-workspace .select2-container--default .select2-selection--single { font-size: 11.5px; }

/* ========================================================================== 
   STORE LIST — PARTY DIRECTORY
   ========================================================================== */
.store-list-page .store-list-header {
    min-height: 80px;
    margin-bottom: 16px !important;
    padding: 14px 18px !important;
    gap: 18px;
    border: 1px solid #DCE7EF;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 28px rgba(7, 60, 105, .07) !important;
}

.store-list-page .store-list-header .add-item {
    min-width: 0;
    gap: 13px;
}

.store-list-page .store-title-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #087A32, #064B89);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(8, 122, 50, .18);
}

.store-list-page .store-title-mark i { font-size: 22px; }

.store-list-page .store-page-kicker {
    display: block;
    margin-bottom: 2px;
    color: #087A32;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.store-list-page .store-list-header .page-title h4 {
    margin: 0 0 2px;
    color: #172B20;
    font-size: 19px;
    line-height: 1.25;
}

.store-list-page .store-list-header .page-title h6 {
    margin: 0;
    color: #687F92;
    font-size: 11px;
    line-height: 1.35;
}

.store-list-page .store-header-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: auto;
}

.store-list-page .store-status-filter {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #D7E3EB;
    border-radius: 11px;
    background: #F4F8FB;
}

.store-list-page .store-status-filter a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    color: #62798C;
    font-size: 10.5px;
    font-weight: 750;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.store-list-page .store-status-filter a:hover { color: #087A32; background: #FFFFFF; }
.store-list-page .store-status-filter a.active {
    background: #FFFFFF;
    color: #087A32;
    box-shadow: 0 3px 10px rgba(7,60,105,.09);
}

.store-list-page .store-status-filter a.active.inactive { color: #B42332; }

.store-list-page .store-add-party {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid #087A32;
    border-radius: 10px;
    background: #087A32;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(8,122,50,.20);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.store-list-page .store-add-party:hover {
    background: #065A2C;
    color: #FFFFFF;
    box-shadow: 0 11px 22px rgba(8,122,50,.24);
    transform: translateY(-1px);
}

.store-list-page .store-add-party i { font-size: 16px; }

.store-list-page .store-success-alert {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #BDEAD3;
    border-radius: 12px;
    background: #F0FBF6;
    color: #1B5540;
    box-shadow: 0 6px 18px rgba(5,142,81,.06);
}

.store-list-page .store-alert-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #D9F5E7;
    color: #087A32;
}

.store-list-page .store-alert-icon i { font-size: 19px; }
.store-list-page .store-success-alert > div { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.store-list-page .store-success-alert strong { color: #14553A; font-size: 11px; }
.store-list-page .store-success-alert div span { overflow-wrap: anywhere; color: #3C765F; font-size: 10px; }
.store-list-page .store-success-alert .btn-close { position: static; padding: 8px; font-size: 9px; }

.store-list-page .store-directory-card {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #D7E3EB !important;
    border-radius: 16px !important;
    background: #FFFFFF;
    box-shadow: 0 14px 38px rgba(7,60,105,.08) !important;
}

.store-list-page .store-directory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 13px 16px !important;
    border-bottom: 1px solid #DFE8EF;
    background: #FFFFFF;
}

.store-list-page .store-search-block,
.store-list-page .store-type-block {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.store-list-page .store-search-block { flex: 0 1 320px; }
.store-list-page .store-type-block { align-items: flex-end; }

.store-list-page .store-toolbar-label {
    color: #718699;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.store-list-page .search-set,
.store-list-page .search-input { width: 100%; }

.store-list-page .search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.store-list-page .search-input .btn-searchset {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 12px;
    color: #7890A2;
    transform: translateY(-50%);
    pointer-events: none;
}

.store-list-page .search-input .dataTables_filter { width: 100%; }
.store-list-page .search-input .dataTables_filter label { display: block; width: 100%; }
.store-list-page .search-input .dataTables_filter input {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px;
    padding: 8px 13px 8px 36px !important;
    border: 1px solid #CFDDE7 !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    color: #18354D;
    font-size: 11px;
    box-shadow: none !important;
}

.store-list-page .search-input .dataTables_filter input:focus {
    border-color: #087A32 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(8,122,50,.10) !important;
}

.store-list-page .store-type-filters {
    display: flex;
    max-width: 100%;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.store-list-page .store-type-filters button {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 6px 9px 6px 11px;
    border: 1px solid #CFDCE6;
    border-radius: 9px;
    background: #FFFFFF;
    color: #536D81;
    font-size: 9.5px;
    font-weight: 750;
}

.store-list-page .store-type-filters button:hover { border-color: #8CB5D3; color: #087A32; }
.store-list-page .store-type-filters button b {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 6px;
    background: #EDF3F7;
    color: #526E83;
    font-size: 8px;
}

.store-list-page .store-type-filters button.active {
    border-color: #087A32;
    background: #087A32;
    color: #FFFFFF;
    box-shadow: 0 5px 13px rgba(8,122,50,.18);
}

.store-list-page .store-type-filters button.active b { background: rgba(255,255,255,.16); color: #FFFFFF; }

.store-list-page .store-table-shell {
    width: 100%;
    overflow-x: auto;
    background: #FFFFFF;
    scrollbar-color: #8CB5D3 #EAF0F4;
    scrollbar-width: thin;
}

.store-list-page .store-table-shell::-webkit-scrollbar { height: 7px; }
.store-list-page .store-table-shell::-webkit-scrollbar-track { background: #EAF0F4; }
.store-list-page .store-table-shell::-webkit-scrollbar-thumb { border-radius: 999px; background: #8CB5D3; }

.store-list-page .store-account-table {
    width: 100% !important;
    min-width: 1100px;
    margin: 0 !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.store-list-page .store-account-table .store-col-company { width: 17%; }
.store-list-page .store-account-table .store-col-login { width: 9%; }
.store-list-page .store-account-table .store-col-contact { width: 12%; }
.store-list-page .store-account-table .store-col-mobile { width: 11%; }
.store-list-page .store-account-table .store-col-email { width: 19%; }
.store-list-page .store-account-table .store-col-city { width: 9%; }
.store-list-page .store-account-table .store-col-status { width: 9%; }
.store-list-page .store-account-table .store-col-credit { width: 6%; }
.store-list-page .store-account-table .store-col-action { width: 8%; }

.store-list-page .store-account-table thead th {
    height: 42px;
    padding: 9px 11px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #DCE7EF !important;
    background: #F2F7FB !important;
    color: #47647B !important;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-list-page .store-account-table tbody td {
    height: 64px;
    overflow: hidden;
    padding: 10px 11px !important;
    border-bottom: 1px solid #E9EFF4 !important;
    background: #FFFFFF;
    color: #425E73;
    font-size: 10.5px;
    vertical-align: middle;
}

.store-list-page .store-account-table tbody tr:last-child td { border-bottom: 0 !important; }
.store-list-page .store-account-table tbody tr:hover td { background: #F8FBFD; }

.store-list-page .store-party-identity {
    display: grid;
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.store-list-page .store-party-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #EAF5FC, #E9F9F1);
    color: #087A32;
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(8,122,50,.09);
}

.store-list-page .store-party-identity > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.store-list-page .store-party-identity strong,
.store-list-page .store-cell-primary {
    display: block;
    overflow: hidden;
    color: #173750;
    font-size: 10.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-list-page .store-party-identity small { color: #8295A5; font-size: 8.5px; }

.store-list-page .store-login-code {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 7px;
    border: 1px solid #D6E2EA;
    border-radius: 7px;
    background: #F7FAFC;
    color: #087A32;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 9.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-list-page .store-contact-link,
.store-list-page .store-city {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: #536F84;
    text-decoration: none;
    white-space: nowrap;
}

.store-list-page .store-contact-link:hover { color: #087A32; }
.store-list-page .store-contact-link i,
.store-list-page .store-city i { flex: 0 0 auto; color: #7E96A8; font-size: 13px; }
.store-list-page .store-email-link span { overflow: hidden; text-overflow: ellipsis; }

.store-list-page .store-status-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-list-page .store-status-control .form-check { min-height: 0; margin: 0; padding-left: 34px; }
.store-list-page .store-status-control .form-check-input {
    width: 30px;
    height: 17px;
    margin-top: 0;
    margin-left: -34px;
    border-color: #C2D0DB;
    cursor: pointer;
    box-shadow: none;
}

.store-list-page .store-status-control .form-check-input:checked { border-color: #16A34A; background-color: #16A34A; }
.store-list-page .store-status-control > span { color: #70879A; font-size: 8.5px; font-weight: 700; }

.store-list-page .store-credit-value {
    display: inline-flex;
    min-width: 30px;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 7px;
    background: #F0F5F8;
    color: #4D687C;
    font-size: 9.5px;
    font-weight: 750;
}

.store-list-page .store-row-actions { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.store-list-page .store-action-btn {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    padding: 0;
    border: 1px solid #D0DDE6;
    border-radius: 8px;
    background: #FFFFFF;
    color: #607A8E;
    text-decoration: none;
    box-shadow: none;
}

.store-list-page .store-action-btn:hover { border-color: #8DB5D2; background: #EFF7FC; color: #087A32; }
.store-list-page .store-action-btn.primary { border-color: #B9D8EE; background: #EDF7FD; color: #087A32; }
.store-list-page .store-action-btn i { font-size: 15px; }

.store-list-page .dataTables_wrapper { min-width: 0; }
.store-list-page .dataTables_wrapper::after { display: block; clear: both; content: ""; }
.store-list-page .dataTables_wrapper .dataTables_length,
.store-list-page .dataTables_wrapper .dataTables_paginate {
    min-height: 58px;
    margin: 0;
    padding: 12px 16px !important;
    border-top: 1px solid #E4ECF2;
    background: #FFFFFF;
}

.store-list-page .dataTables_wrapper .dataTables_length label { color: #6D8496; font-size: 10.5px; }
.store-list-page .dataTables_wrapper .dataTables_length select {
    min-width: 56px;
    height: 34px;
    margin: 0 6px;
    border-radius: 8px;
    font-size: 10.5px;
}

.store-list-page .dataTables_wrapper .dataTables_paginate .page-link {
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    padding: 0 8px;
    border-radius: 8px !important;
    font-size: 10px;
}

@media (max-width: 1199.98px) {
    .store-list-page .store-directory-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
    .store-list-page .store-search-block { flex-basis: auto; width: min(100%, 420px); }
    .store-list-page .store-type-block { align-items: flex-start; }
}

@media (max-width: 767.98px) {
    .store-list-page .store-list-header { align-items: flex-start !important; flex-direction: column; padding: 13px !important; }
    .store-list-page .store-header-actions { width: 100%; margin-left: 0; }
    .store-list-page .store-status-filter { flex: 1 1 auto; }
    .store-list-page .store-status-filter a { flex: 1 1 50%; }
    .store-list-page .store-add-party { flex: 0 0 auto; }
    .store-list-page .store-search-block { width: 100%; }
}

@media (max-width: 479.98px) {
    .store-list-page .store-list-header .page-title h4 { font-size: 17px; }
    .store-list-page .store-list-header .page-title h6 { display: none; }
    .store-list-page .store-title-mark { width: 40px; height: 40px; flex-basis: 40px; }
    .store-list-page .store-header-actions { align-items: stretch; flex-direction: column; }
    .store-list-page .store-add-party { width: 100%; }
    .store-list-page .store-directory-toolbar { padding: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .store-list-page .store-status-filter a,
    .store-list-page .store-add-party { transition: none; }
}

@media (max-width: 1199.98px) {
    .shipment-create-start .gne-booking-primary { grid-template-columns: minmax(320px, .9fr) minmax(440px, 1.1fr); }
    .shipment-create-start .gne-booking-intro { padding: 32px; }
    .shipment-create-start .gne-party-panel { grid-template-columns: minmax(0, 1fr) 168px; padding: 34px; }
}

@media (max-width: 991.98px) {
    .shipment-create-start .gne-booking-primary { grid-template-columns: 1fr; }
    .shipment-create-start .gne-booking-intro { min-height: auto; }
    .shipment-create-start .gne-booking-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shipment-create-start .gne-booking-benefits li { grid-template-columns: 32px minmax(0, 1fr); }
    .shipment-create-start .gne-booking-benefits li > i { width: 32px; height: 32px; }
    .shipment-create-start .gne-party-panel { border-top: 1px solid #DDE8F0; border-left: 0; }
    .shipment-create-start .gne-booking-flow { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    .shipment-create-page .shipment-page-header { align-items: flex-start !important; flex-direction: column; padding: 13px !important; }
    .shipment-create-page .shipment-page-header .page-btn { width: 100%; }
    .shipment-create-page .shipment-page-header .page-btn .btn { flex: 1 1 auto; }
    .shipment-create-start .gne-booking-intro,
    .shipment-create-start .gne-party-panel { padding: 27px; }
    .shipment-create-start .gne-booking-benefits { grid-template-columns: 1fr; }
    .shipment-create-start .gne-booking-flow { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
    .shipment-create-start .gne-flow-title { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

@media (max-width: 575.98px) {
    .shipment-create-page .shipment-title-mark { width: 40px; height: 40px; flex-basis: 40px; }
    .shipment-create-page .shipment-page-header .page-title h4 { font-size: 17px; }
    .shipment-create-page .shipment-page-header .page-title h6 { display: none; }
    .shipment-create-start .gne-booking-launch { border-radius: 16px; }
    .shipment-create-start .gne-booking-intro,
    .shipment-create-start .gne-party-panel { padding: 24px 20px; }
    .shipment-create-start .gne-booking-intro h2 { font-size: 25px; }
    .shipment-create-start .gne-party-panel { grid-template-columns: 1fr; }
    .shipment-create-start .gne-start-booking { margin-top: 12px; }
    .shipment-create-start .gne-party-note { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .shipment-create-start .gne-start-booking { transition: none; }
}

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

.gne-loader {
    display: flex;
    width: min(100%, 320px);
    flex-direction: column;
    align-items: center;
    color: #172B20;
    text-align: center;
}

.gne-loader-mark {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
}

.gne-loader-spinner {
    position: absolute;
    inset: 0;
    border: 2px solid #DCE8F1;
    border-top-color: #087A32;
    border-right-color: #16A34A;
    border-radius: 50%;
    animation: gneLoaderSpin .95s linear infinite;
}

.gne-loader-logo {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    padding: 9px;
    border: 1px solid #E1EAF1;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(7, 60, 105, .10);
}

.gne-loader-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gne-loader-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.gne-loader-copy strong {
    color: #0B2417;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.gne-loader-copy span {
    margin-top: 5px;
    color: #087A32;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gne-loader-progress {
    position: relative;
    display: block;
    width: 164px;
    height: 3px;
    overflow: hidden;
    margin-top: 22px;
    border-radius: 999px;
    background: #DFE9F0;
}

.gne-loader-progress > i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 48%;
    border-radius: inherit;
    background: linear-gradient(90deg, #087A32, #16A34A);
    animation: gneLoaderProgress 1.35s ease-in-out infinite;
}

.gne-loader-status {
    margin-top: 11px;
    color: #6B7F90;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
}

@keyframes gneLoaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes gneLoaderProgress {
    0% { transform: translateX(-110%); }
    50% { transform: translateX(55%); }
    100% { transform: translateX(220%); }
}

@media (max-width: 480px) {
    .gne-loader-mark { width: 102px; height: 102px; }
    .gne-loader-logo { width: 80px; height: 80px; border-radius: 21px; }
    .gne-loader-copy strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .gne-loader-spinner,
    .gne-loader-progress > i { animation: none !important; }
    .gne-loader-progress > i { width: 62%; transform: none; }
}

/* ============================================================
   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;
    }
}

/* ============================================================
   QUICK LINKS - PREMIUM LIGHT APPLICATION LAUNCHER
   ============================================================ */
.header .as-quick-menu {
    width: min(720px, calc(100vw - 28px));
    min-width: 0;
    max-width: 720px;
    max-height: calc(100vh - 86px);
    padding: 0 !important;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid #D7E2EE !important;
    border-radius: 18px !important;
    background: #FFFFFF;
    box-shadow: 0 24px 58px rgba(35, 73, 112, .18) !important;
}

.as-quick-menu-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 12px 15px;
    border-bottom: 1px solid #E4ECF4;
    background:
        radial-gradient(190px 80px at 92% 10%, rgba(175, 203, 234, .32), transparent 72%),
        linear-gradient(105deg, #FFFFFF, #F3F8FD);
}

.as-quick-menu-mark {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #CCDBEB;
    border-radius: 12px;
    color: #087A32;
    background: #FFFFFF;
    box-shadow: 0 7px 17px rgba(45, 103, 177, .10);
}

.as-quick-menu-mark i { font-size: 19px; }

.as-quick-menu-title {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    margin-left: 10px;
}

.as-quick-menu-title small {
    color: #8193A7;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.as-quick-menu-title strong,
.staff-dashboard-page .as-quick-menu-title h3 {
    margin-top: 2px;
    color: #183452;
    font-size: 15px;
    font-weight: 820;
    line-height: 1.2;
}

.as-quick-menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid #D4E1EE;
    border-radius: 16px;
    color: #58728E;
    background: rgba(255, 255, 255, .82);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.as-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 13px;
}

.header .as-quick-link,
.staff-dashboard-page .as-quick-link {
    --as-quick-tone: #087A32;
    --as-quick-soft: #EAF4ED;
    position: relative;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 70px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #DEE7F0;
    border-radius: 13px;
    color: #183452 !important;
    background: linear-gradient(135deg, #FFFFFF, #FBFCFE);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(35, 73, 112, .035);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.header .as-quick-link::after,
.staff-dashboard-page .as-quick-link::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 2px;
    border-radius: 3px 3px 0 0;
    background: var(--as-quick-tone);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.header .as-quick-link:hover,
.header .as-quick-link:focus,
.staff-dashboard-page .as-quick-link:hover,
.staff-dashboard-page .as-quick-link:focus {
    border-color: #C4D5E7;
    color: #183452 !important;
    background: linear-gradient(135deg, #FFFFFF, var(--as-quick-soft));
    box-shadow: 0 11px 23px rgba(45, 103, 177, .10);
    transform: translateY(-2px);
}

.header .as-quick-link:hover::after,
.header .as-quick-link:focus::after,
.staff-dashboard-page .as-quick-link:hover::after,
.staff-dashboard-page .as-quick-link:focus::after { opacity: 1; transform: scaleX(1); }

.as-quick-link-icon {
    display: grid;
    flex: 0 0 39px;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    color: var(--as-quick-tone);
    background: var(--as-quick-soft);
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.as-quick-link-icon i { font-size: 17px; }
.header .as-quick-link:hover .as-quick-link-icon,
.staff-dashboard-page .as-quick-link:hover .as-quick-link-icon { color: #FFFFFF; background: var(--as-quick-tone); transform: rotate(-4deg) scale(1.04); }

.as-quick-link-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.as-quick-link-copy strong {
    overflow: hidden;
    color: #183452;
    font-size: 11px;
    font-weight: 780;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-quick-link-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: #8999AC;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.as-quick-link-arrow {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    color: #A3B1C1;
    font-size: 11px;
    transition: color .2s ease, transform .2s ease;
}

.header .as-quick-link:hover .as-quick-link-arrow,
.staff-dashboard-page .as-quick-link:hover .as-quick-link-arrow { color: var(--as-quick-tone); transform: translate(2px, -2px); }
.as-quick-tone-1 { --as-quick-tone: #087A32; --as-quick-soft: #EAF4ED; }
.as-quick-tone-2 { --as-quick-tone: #4E83BD; --as-quick-soft: #EDF5FC; }
.as-quick-tone-3 { --as-quick-tone: #7088A7; --as-quick-soft: #F0F4F8; }
.as-quick-tone-4 { --as-quick-tone: #4F899A; --as-quick-soft: #EDF7F8; }

.as-quick-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 126px;
    padding: 20px;
    color: #8192A5;
    font-size: 10px;
    font-weight: 650;
}

.as-quick-empty i { color: #82A6CD; font-size: 22px; }

.as-quick-menu-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 35px;
    padding: 7px 12px;
    border-top: 1px solid #E8EEF5;
    color: #8A9AAF;
    background: #F8FAFC;
    font-size: 8px;
    font-weight: 650;
}

.as-quick-menu-foot i { color: #6E91BA; font-size: 11px; }

@media (max-width: 991.98px) {
    .header .as-quick-menu { width: calc(100vw - 22px); max-width: calc(100vw - 22px); }
    .as-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .header .as-quick-menu { right: -50px; width: calc(100vw - 18px); max-width: calc(100vw - 18px); border-radius: 15px !important; }
    .as-quick-menu-head { min-height: 60px; padding: 10px 12px; }
    .as-quick-menu-mark { flex-basis: 36px; width: 36px; height: 36px; }
    .as-quick-menu-count { min-width: 26px; padding: 0 7px; font-size: 9px; }
    .as-quick-grid { grid-template-columns: 1fr; gap: 7px; padding: 10px; }
    .header .as-quick-link { min-height: 62px; }
}

/* Final shell colour guards: replace the template's orange navigation and scrollbar accents. */
html {
    scrollbar-color: var(--brand-primary) #E7EDF5;
    scrollbar-width: thin;
}

::-webkit-scrollbar-track {
    background: #E7EDF5 !important;
}

::-webkit-scrollbar-thumb,
[data-color=primary] ::-webkit-scrollbar-thumb {
    border-radius: 50px !important;
    background: var(--brand-primary) !important;
}

::-webkit-scrollbar-thumb:hover,
[data-color=primary] ::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark) !important;
}

[data-color=primary] .sidebar .sidebar-menu > ul > li > a:hover,
[data-color=primary] .sidebar .sidebar-menu > ul > li > a.active,
[data-color=primary] .sidebar .sidebar-menu > ul > li.active > a,
.sidebar .sidebar-menu > ul > li > a:hover,
.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu > ul > li.active > a {
    border-radius: 8px;
    color: var(--brand-primary) !important;
    background: #E7EEF8 !important;
}

[data-color=primary] .sidebar .sidebar-menu > ul > li > a:hover span,
[data-color=primary] .sidebar .sidebar-menu > ul > li > a.active span,
[data-color=primary] .sidebar .sidebar-menu > ul > li.active > a span,
.sidebar .sidebar-menu > ul > li > a:hover span,
.sidebar .sidebar-menu > ul > li > a.active span,
.sidebar .sidebar-menu > ul > li.active > a span,
.sidebar .sidebar-menu > ul > li > a:hover i,
.sidebar .sidebar-menu > ul > li > a.active i,
.sidebar .sidebar-menu > ul > li.active > a i,
.sidebar .sidebar-menu > ul > li > a:hover svg,
.sidebar .sidebar-menu > ul > li > a.active svg,
.sidebar .sidebar-menu > ul > li.active > a svg {
    color: var(--brand-primary) !important;
}

.sidebar .sidebar-menu > ul > li > a:hover .menu-arrow,
.sidebar .sidebar-menu > ul > li > a.active .menu-arrow,
.sidebar .sidebar-menu > ul > li.active > a .menu-arrow {
    background: #DCE8F6 !important;
}

.sidebar .sidebar-menu > ul > li > a:hover .menu-arrow::before,
.sidebar .sidebar-menu > ul > li > a.active .menu-arrow::before,
.sidebar .sidebar-menu > ul > li.active > a .menu-arrow::before {
    border-color: var(--brand-primary) !important;
}

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

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

/* Header wordmark beside the HM International logo */
.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, #3AAE66, #0E8A45) !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, #3AAE66, #0E8A45);
}

.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. HM INTERNATIONAL — 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. BIC 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 {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 26px;
    padding: 24px !important;
}

.shipment-create-page .as-shipment-wizard .as-wizard-tabs {
    top: calc(var(--as-header-h) + 16px);
    gap: 8px;
    padding: 12px !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-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 9px 10px !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 .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: 34px;
    height: 34px;
    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 { color: #9AA6B6; font-size: 17px; }
.shipment-create-page .nav-link.active .sky-tab-arrow { color: #F0D58B; }

.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: 16px;
    padding: 18px;
    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: 16px;
}

.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 .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: 44px;
}

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

.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; }
    .shipment-create-page .as-shipment-wizard > .card-body { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 991.98px) {
    .shipment-create-page .as-shipment-wizard > .card-body { grid-template-columns: 1fr; }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs {
        gap: 8px;
        padding-bottom: 9px !important;
    }
    .shipment-create-page .as-shipment-wizard .as-wizard-tabs .nav-item { flex-basis: 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. LEGACY LIGHT-THEME COMPATIBILITY LAYER
   Retained for the existing component hierarchy; final BIC overrides
   below provide the authoritative navy, royal-blue and silver palette.
   ============================================================ */

.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. HM International route portal preloader
   ========================================================================== */
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;
    color: #fff;
    background:
        radial-gradient(circle at 50% 42%, rgba(41, 111, 202, .44), transparent 27%),
        radial-gradient(circle at 17% 15%, rgba(96, 159, 226, .18), transparent 25%),
        radial-gradient(circle at 82% 86%, rgba(42, 102, 182, .22), transparent 27%),
        linear-gradient(145deg, #071426 0%, #0a1d37 52%, #071222 100%) !important;
    opacity: 1;
    visibility: visible;
    transition: opacity .42s ease, visibility .42s ease;
}

div#global-loader::before,
div#global-loader::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

div#global-loader::before {
    inset: -48px;
    background-image:
        linear-gradient(rgba(151, 191, 235, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(151, 191, 235, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(circle at center, #000 4%, transparent 70%);
    mask-image: radial-gradient(circle at center, #000 4%, transparent 70%);
    animation: skyPreloaderGrid 14s linear infinite;
}

div#global-loader::after {
    top: 50%;
    left: 50%;
    width: min(74vw, 610px);
    aspect-ratio: 1;
    border: 1px solid rgba(148, 192, 239, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 78px rgba(80, 143, 211, .025),
        0 0 0 156px rgba(80, 143, 211, .018);
    transform: translate(-50%, -50%);
    animation: skyPreloaderHalo 4s ease-in-out infinite;
}

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

.sky-preloader {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 360px);
    text-align: center;
}

.sky-preloader-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 252px;
    height: 252px;
}

.sky-preloader-aura {
    position: absolute;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: rgba(44, 118, 208, .34);
    filter: blur(34px);
    animation: skyPreloaderAura 2.8s ease-in-out infinite;
}

.sky-preloader-network {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(103, 166, 233, .18));
}

.sky-preloader-route {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.sky-preloader-route-outer {
    stroke: rgba(142, 188, 236, .48);
    stroke-width: 1.15;
    stroke-dasharray: 13 5 2 5;
    animation: skyPreloaderRouteOuter 5.6s linear infinite;
}

.sky-preloader-route-inner {
    stroke: rgba(255, 255, 255, .16);
    stroke-width: 1;
    stroke-dasharray: 1 5;
    animation: skyPreloaderRouteInner 7s linear infinite reverse;
}

.sky-preloader-route-cross {
    stroke: rgba(111, 171, 235, .28);
    stroke-width: 1;
    stroke-dasharray: 28 72;
    animation: skyPreloaderRouteCross 3.4s ease-in-out infinite;
}

.sky-preloader-route-cross-bottom {
    animation-delay: -1.7s;
}

.sky-preloader-node {
    fill: #b9dbff;
    stroke: rgba(185, 219, 255, .22);
    stroke-width: 7;
    transform-box: fill-box;
    transform-origin: center;
    animation: skyPreloaderNode 1.8s ease-in-out infinite;
}

.sky-preloader-node-two { animation-delay: -.6s; }
.sky-preloader-node-three { animation-delay: -1.2s; }

.sky-preloader-packet-orbit {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    animation: skyPreloaderPacketOrbit 4.4s linear infinite;
}

.sky-preloader-packet {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 26px;
    height: 10px;
    border: 2px solid rgba(8, 25, 49, .75);
    border-radius: 999px;
    background: linear-gradient(90deg, #d9ecff, #6fabec 60%, #367ac5);
    box-shadow: 0 0 0 3px rgba(129, 184, 241, .10), 0 0 18px rgba(115, 180, 248, .55);
    transform: translateX(-50%);
}

.sky-preloader-packet::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
}

.sky-preloader-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 154px;
    height: 154px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(190, 220, 250, .70);
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 7px rgba(144, 192, 240, .08),
        0 25px 65px rgba(0, 7, 19, .55),
        inset 0 0 0 1px rgba(255, 255, 255, .75);
    animation: skyPreloaderLogoBreathe 3s ease-in-out infinite;
}

.sky-preloader-logo::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -12%;
    bottom: -12%;
    left: -62%;
    width: 2px;
    background: rgba(189, 222, 255, .72);
    box-shadow: 0 0 15px 5px rgba(115, 180, 244, .16);
    transform: skewX(-13deg);
    animation: skyPreloaderLogoScan 2.9s cubic-bezier(.6, 0, .4, 1) infinite;
}

.sky-preloader-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: skyPreloaderLogoReveal .8s cubic-bezier(.2, .8, .2, 1) both;
}

.sky-preloader-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.sky-preloader-copy .sky-preloader-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #9bc7f2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.sky-preloader-kicker > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7db9f2;
    box-shadow: 0 0 0 4px rgba(125, 185, 242, .12), 0 0 12px rgba(125, 185, 242, .8);
    animation: skyPreloaderStatusPulse 1.4s ease-in-out infinite;
}

.sky-preloader-copy strong {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
    text-shadow: 0 5px 20px rgba(0, 7, 19, .28);
}

.sky-preloader-copy .sky-preloader-status {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    margin-top: 5px;
    color: rgba(215, 232, 249, .66);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .055em;
}

.sky-preloader-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 5px;
}

.sky-preloader-dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a8cff5;
    animation: skyPreloaderDot 1.2s ease-in-out infinite;
}

.sky-preloader-dots i:nth-child(2) { animation-delay: .16s; }
.sky-preloader-dots i:nth-child(3) { animation-delay: .32s; }

.sky-preloader-progress {
    position: relative;
    display: block;
    width: 224px;
    height: 2px;
    margin-top: 18px;
    overflow: visible;
    border-radius: 999px;
    background: rgba(157, 199, 241, .13);
}

.sky-preloader-progress::before,
.sky-preloader-progress::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(173, 211, 248, .42);
    border-radius: 50%;
    background: #102746;
    transform: translateY(-50%);
}

.sky-preloader-progress::before { left: -2px; }
.sky-preloader-progress::after { right: -2px; }

.sky-preloader-progress > i {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #6babeb 42%, #d7ecff 78%, transparent);
    box-shadow: 0 0 11px rgba(110, 175, 238, .6);
    animation: skyPreloaderProgress 1.75s cubic-bezier(.55, 0, .25, 1) infinite;
}

@keyframes skyPreloaderGrid {
    to { transform: translate3d(48px, 48px, 0); }
}

@keyframes skyPreloaderHalo {
    0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes skyPreloaderAura {
    0%, 100% { opacity: .55; transform: scale(.9); }
    50% { opacity: .95; transform: scale(1.08); }
}

@keyframes skyPreloaderRouteOuter {
    to { stroke-dashoffset: -100; transform: rotate(360deg); transform-origin: center; }
}

@keyframes skyPreloaderRouteInner {
    to { stroke-dashoffset: 100; transform: rotate(-360deg); transform-origin: center; }
}

@keyframes skyPreloaderRouteCross {
    0% { stroke-dashoffset: 100; opacity: .25; }
    50% { opacity: .85; }
    100% { stroke-dashoffset: 0; opacity: .25; }
}

@keyframes skyPreloaderNode {
    0%, 100% { opacity: .45; transform: scale(.7); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes skyPreloaderPacketOrbit {
    to { transform: rotate(360deg); }
}

@keyframes skyPreloaderLogoBreathe {
    0%, 100% { transform: scale(.985); }
    50% { transform: scale(1.02); }
}

@keyframes skyPreloaderLogoScan {
    0%, 24% { left: -62%; opacity: 0; }
    35% { opacity: .9; }
    65%, 100% { left: 122%; opacity: 0; }
}

@keyframes skyPreloaderLogoReveal {
    from { opacity: 0; clip-path: circle(18% at 50% 50%); transform: scale(.9); }
    to { opacity: 1; clip-path: circle(75% at 50% 50%); transform: scale(1); }
}

@keyframes skyPreloaderStatusPulse {
    0%, 100% { opacity: .45; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes skyPreloaderDot {
    0%, 60%, 100% { opacity: .25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes skyPreloaderProgress {
    0% { transform: translateX(-105%); }
    100% { transform: translateX(245%); }
}

@media (max-width: 480px) {
    .sky-preloader-stage {
        width: 222px;
        height: 222px;
    }

    .sky-preloader-logo {
        width: 138px;
        height: 138px;
    }

    .sky-preloader-copy strong {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    div#global-loader::before,
    div#global-loader::after,
    .sky-preloader-aura,
    .sky-preloader-route,
    .sky-preloader-node,
    .sky-preloader-packet-orbit,
    .sky-preloader-logo,
    .sky-preloader-logo::after,
    .sky-preloader-logo img,
    .sky-preloader-kicker > i,
    .sky-preloader-dots i,
    .sky-preloader-progress > i {
        animation: none !important;
    }

    .sky-preloader-progress > i {
        width: 58%;
        transform: none;
    }
}

/* ==========================================================================
   21. HM INTERNATIONAL — AUTHORITATIVE BRAND OVERRIDES
   Airy BIC blue, cool silver and clean white.
   ========================================================================== */

:root {
    --brand-primary: #087A32;
    --brand-primary-rgb: 45, 103, 177;
    --brand-secondary: #5E8FCB;
    --brand-secondary-rgb: 94, 143, 203;
    --brand-accent: #AFC0D6;
    --brand-accent-rgb: 175, 192, 214;
    --brand-dark: #1C477E;
    --brand-surface: #FFFFFF;
    --brand-bg: #F3F7FC;
    --brand-text: #142B4A;
    --brand-muted: #60738B;
    --brand-border: #D5DFEB;
    --brand-gradient: linear-gradient(135deg, #087A32 0%, #285A98 52%, #7E9CC5 100%);
    --brand-shadow-card: 0 1px 2px rgba(45, 103, 177, .04), 0 10px 28px rgba(45, 103, 177, .08);
    --brand-shadow-hover: 0 16px 36px rgba(45, 103, 177, .18);
}

html { --primary-rgb: 45, 103, 177 !important; }

body,
.main-wrapper,
.page-wrapper,
.content {
    background-color: var(--brand-bg) !important;
}

.header,
[data-topbar=white] .header {
    background: linear-gradient(90deg, #FFFFFF 0%, #F3F6FA 62%, #EAF0F8 100%) !important;
    border-bottom-color: var(--brand-border) !important;
    box-shadow: 0 5px 20px rgba(45, 103, 177, .08) !important;
}

.sidebar {
    background: #F8FAFD !important;
    border-right-color: var(--brand-border) !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: #E7EEF8 !important;
    color: var(--brand-primary) !important;
}

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

.header .header-left .as-topbar-logo img,
.fdx-auth-brand-logo img {
    filter: drop-shadow(0 4px 9px rgba(45, 103, 177, .17));
}

.as-wordmark-top {
    color: var(--brand-dark) !important;
}

.as-wordmark-bottom {
    color: var(--brand-primary) !important;
}

.client-rebrand .as-welcome-banner,
.shipment-create-page .fdx-create-overview,
.shipment-view-page .fdx-route-hero {
    border-color: rgba(175, 192, 214, .52) !important;
    background:
        radial-gradient(480px 230px at 96% -8%, rgba(255, 255, 255, .20), transparent 70%),
        radial-gradient(330px 190px at 3% 105%, rgba(175, 192, 214, .22), transparent 72%),
        var(--brand-gradient) !important;
    color: #FFFFFF !important;
    box-shadow: 0 22px 48px rgba(45, 103, 177, .22) !important;
}

.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,
.shipment-create-page .fdx-create-overview-copy > span,
.shipment-create-page .fdx-create-overview-copy h3,
.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: #FFFFFF !important;
}

.client-rebrand .as-welcome-banner .fdx-dashboard-eyebrow,
.client-rebrand .as-welcome-banner .fdx-dashboard-eyebrow i {
    color: #FFFFFF !important;
}

.client-rebrand .as-welcome-banner p,
.client-rebrand .as-welcome-banner .welcome-text p,
.shipment-create-page .fdx-create-overview-copy p {
    color: #D9E5F5 !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,
.shipment-create-page .sky-create-assurance span {
    border-color: rgba(255, 255, 255, .24) !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.shipment-create-page .sky-create-assurance i,
.shipment-create-page .fdx-create-overview-copy > span i,
.shipment-view-page .fdx-route-line i {
    color: #C9D8EA !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: #FFFFFF !important;
}

.shipment-create-page .fdx-create-progress li::before {
    background: rgba(255, 255, 255, .24) !important;
}

.shipment-create-page .fdx-create-progress li.complete b {
    color: #FFFFFF !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card,
.dash-count {
    background: var(--brand-gradient) !important;
    box-shadow: 0 18px 38px rgba(45, 103, 177, .22) !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card .as-kpi-icon,
.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card .as-kpi-value,
.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card .as-kpi-label,
.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card .as-kpi-trend {
    color: #FFFFFF !important;
}

.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card .as-kpi-trend {
    border-color: rgba(255, 255, 255, .24) !important;
    background: rgba(255, 255, 255, .12) !important;
}

.party-dashboard-page .fdx-party-calculator > .card-header,
.shipment-list-page .as-shipment-table thead th {
    background: var(--brand-primary) !important;
}

.shipment-list-page .fdx-list-status-grid .as-filter-card.active {
    background: var(--brand-gradient) !important;
    box-shadow: inset 0 -4px 0 #AFC0D6, 0 12px 26px rgba(45, 103, 177, .22);
}

.shipment-list-page .fdx-list-status-grid .as-filter-card.active,
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-meta,
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-count,
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-label,
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-icon,
.shipment-list-page .fdx-list-status-grid .as-filter-card.active .as-filter-icon i {
    color: #FFFFFF !important;
}

.shipment-list-page .fdx-list-status-grid .as-filter-card.active::after {
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

/* Contrast guard for components that use the dark BIC blue surfaces. */
.client-rebrand .bg-primary,
.client-rebrand .bg-primary *,
.client-rebrand .bg-dark,
.client-rebrand .bg-dark *,
.client-rebrand .text-bg-primary,
.client-rebrand .text-bg-primary *,
.client-rebrand .btn-primary,
.client-rebrand .btn-primary *,
.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card,
.admin-dashboard-page .fdx-admin-kpi-grid > :first-child .as-kpi-card *,
.party-dashboard-page .fdx-party-calculator > .card-header,
.party-dashboard-page .fdx-party-calculator > .card-header *,
.shipment-list-page .as-shipment-table thead th,
.shipment-list-page .as-shipment-table thead th * {
    color: #FFFFFF !important;
}

.btn.btn-primary,
.btn-primary,
[data-color=primary] .btn.btn-primary,
[data-color=primary] .page-header .btn-added,
.btn.btn-as-cta {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 9px 20px rgba(45, 103, 177, .24);
}

.btn.btn-primary:hover,
.btn-primary:hover,
.btn.btn-as-cta:hover {
    border-color: #065A2C !important;
    background: #065A2C !important;
}

.client-rebrand .card {
    border-color: var(--brand-border);
    box-shadow: var(--brand-shadow-card);
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection {
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 3px rgba(45, 103, 177, .13) !important;
}

.as-footer-badge-gold {
    border-color: #CBD6E4 !important;
    background: #EDF2F8 !important;
    color: var(--brand-dark) !important;
}

.sky-preloader-copy strong {
    color: #FFFFFF;
}

/* ========================================================================== 
   22. SHIPMENT CREATE — COMPACT PROFESSIONAL WORKSPACE
   Keeps the active form in the viewport and removes duplicated workflow chrome.
   ========================================================================== */

.shipment-create-workspace .shipment-page-header {
    min-height: 64px;
    margin-bottom: 12px !important;
    padding: 11px 16px !important;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), .07);
}

.shipment-create-workspace .shipment-page-header .page-title h4 {
    margin-bottom: 2px;
    font-size: 19px;
    line-height: 1.25;
}

.shipment-create-workspace .shipment-page-header .page-title h6 {
    margin: 0;
    color: var(--brand-muted);
    font-size: 10.5px;
    line-height: 1.35;
}

.shipment-create-workspace .shipment-page-header .table-top-head { display: none; }
.shipment-create-workspace .shipment-page-header .page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipment-create-workspace .shipment-page-header .page-btn .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
}

.shipment-create-workspace .as-shipment-wizard {
    margin-bottom: 16px;
    overflow: visible;
    border: 1px solid var(--brand-border) !important;
    border-radius: 16px !important;
    background: #FFFFFF;
    box-shadow: 0 12px 34px rgba(var(--brand-primary-rgb), .09) !important;
}

.shipment-create-workspace .as-shipment-wizard > .card-body {
    display: block !important;
    padding: 12px 14px 4px !important;
    background: #F7F9FC;
    border-radius: 16px 16px 0 0;
}

.shipment-create-workspace .as-shipment-wizard .as-wizard-tabs {
    position: static;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 5px;
    margin-bottom: 10px !important;
    padding: 5px !important;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-right: 1px solid var(--brand-border) !important;
    border-radius: 12px;
    background: #FFFFFF !important;
    box-shadow: 0 3px 12px rgba(var(--brand-primary-rgb), .05);
}

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

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

.shipment-create-workspace .as-shipment-wizard .as-wizard-tabs .nav-link:hover {
    border-color: rgba(var(--brand-primary-rgb), .14) !important;
    background: #F2F6FB !important;
}

.shipment-create-workspace .as-shipment-wizard .as-wizard-tabs .nav-link.active {
    border-color: rgba(var(--brand-primary-rgb), .18) !important;
    background: linear-gradient(135deg, var(--brand-primary), #285A98) !important;
    color: #FFFFFF !important;
    box-shadow: 0 5px 14px rgba(var(--brand-primary-rgb), .18) !important;
}

.shipment-create-workspace .sky-tab-number {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10px;
}

.shipment-create-workspace .sky-tab-copy { gap: 1px; }
.shipment-create-workspace .sky-tab-copy strong { font-size: 11.5px; }
.shipment-create-workspace .sky-tab-copy small { font-size: 8.5px; }
.shipment-create-workspace .sky-tab-arrow { display: none; }

.shipment-create-workspace #shipmentTabsContent { min-width: 0; }

.shipment-create-workspace .sky-step-intro {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-left: 3px solid var(--brand-primary);
    border-radius: 10px;
    background: #FFFFFF;
}

.shipment-create-workspace .sky-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(var(--brand-primary-rgb), .15);
}

.shipment-create-workspace .sky-step-icon i { font-size: 18px; }
.shipment-create-workspace .sky-step-kicker {
    margin-bottom: 1px;
    font-size: 8px;
}

.shipment-create-workspace .sky-step-intro h4 {
    margin-bottom: 1px;
    font-size: 15px;
}

.shipment-create-workspace .sky-step-intro p {
    max-width: none;
    font-size: 10px;
    line-height: 1.35;
}

.shipment-create-workspace .sky-required-note {
    min-height: 26px;
    padding: 0 9px;
    font-size: 8.5px;
}

.shipment-create-workspace .as-form-section {
    margin-bottom: 10px;
    padding: 11px 13px;
    border: 1px solid var(--brand-border) !important;
    border-left: 1px solid var(--brand-border) !important;
    border-radius: 10px !important;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb), .035);
}

.shipment-create-workspace .as-section-head {
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E9EEF5;
}

.shipment-create-workspace .as-section-head h5 {
    font-size: 12.5px;
    line-height: 1.25;
}

.shipment-create-workspace .as-section-head small {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.3;
}

.shipment-create-workspace .as-section-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
}

.shipment-create-workspace .as-form-section .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 10px;
}

.shipment-create-workspace .as-label {
    margin-bottom: 3px;
    font-size: 10px;
    line-height: 1.25;
}

.shipment-create-workspace .as-input,
.shipment-create-workspace .select2-container--default .select2-selection--single {
    min-height: 38px;
    border-radius: 8px !important;
    font-size: 11px;
}

.shipment-create-workspace .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.shipment-create-workspace .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.shipment-create-workspace .as-shipment-wizard > .card-footer {
    position: static;
    padding: 9px 14px !important;
    border-radius: 0 0 16px 16px;
    background: #FFFFFF !important;
    backdrop-filter: none;
    box-shadow: 0 -4px 14px rgba(var(--brand-primary-rgb), .04);
}

.shipment-create-workspace .as-shipment-wizard > .card-footer .wizard {
    flex-wrap: nowrap !important;
}

.shipment-create-workspace .as-shipment-wizard > .card-footer .as-btn-cancel,
.shipment-create-workspace .as-shipment-wizard > .card-footer .as-btn-submit {
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 10.5px;
}

.shipment-create-workspace .sky-wizard-status {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 8px;
}

.shipment-create-workspace .sky-wizard-status > span { font-size: 10px; }
.shipment-create-workspace .sky-wizard-status small { font-size: 8.5px; }

.shipment-create-workspace .sky-attachment-shell {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
    gap: 10px;
    align-items: start;
}

.shipment-create-workspace .sky-attachment-panel { margin-bottom: 0; }
.shipment-create-workspace .sky-attachment-form { display: grid; gap: 10px; }

.shipment-create-workspace .sky-attachment-dropzone {
    position: relative;
    display: grid;
    min-height: 126px;
    margin: 0;
    place-items: center;
    overflow: hidden;
    border: 1.5px dashed #B8C6D8;
    border-radius: 10px;
    background: #F8FAFD;
    color: var(--brand-text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.shipment-create-workspace .sky-attachment-dropzone:hover,
.shipment-create-workspace .sky-attachment-dropzone.is-dragging {
    border-color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), .055);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), .08);
}

.shipment-create-workspace .sky-attachment-dropzone > input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.shipment-create-workspace .sky-attachment-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 16px;
    text-align: center;
}

.shipment-create-workspace .sky-attachment-upload-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
    place-items: center;
    border-radius: 9px;
    background: rgba(var(--brand-primary-rgb), .1);
    color: var(--brand-primary);
}

.shipment-create-workspace .sky-attachment-upload-icon i { font-size: 18px; }
.shipment-create-workspace .sky-attachment-drop-content strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-create-workspace .sky-attachment-drop-content small,
.shipment-create-workspace .sky-api-forward small {
    color: var(--brand-muted);
    font-size: 8.5px;
}

.shipment-create-workspace .sky-api-forward {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #E3EAF3;
    border-radius: 9px;
    background: #FAFBFD;
}

.shipment-create-workspace .sky-api-forward .form-check-input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.shipment-create-workspace .sky-api-forward label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    color: var(--brand-text);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.shipment-create-workspace .sky-attachment-status,
.shipment-create-workspace .sky-attachment-form .as-error {
    min-height: 16px;
    font-size: 9px;
}

.shipment-create-workspace .sky-attachment-list { display: grid; gap: 7px; }
.shipment-create-workspace .sky-attachment-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #E3EAF3;
    border-radius: 9px;
    background: #FAFBFD;
}

.shipment-create-workspace .sky-attachment-file-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: rgba(var(--brand-primary-rgb), .09);
    color: var(--brand-primary);
}

.shipment-create-workspace .sky-attachment-file-icon i { font-size: 17px; }
.shipment-create-workspace .sky-attachment-file-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.shipment-create-workspace .sky-attachment-file-info > strong {
    overflow: hidden;
    color: var(--brand-text);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-create-workspace .sky-attachment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    color: var(--brand-muted);
    font-size: 8px;
}

.shipment-create-workspace .sky-attachment-api-badge {
    padding: 2px 5px;
    border-radius: 5px;
    background: #EAF7EF;
    color: #267A47;
    font-weight: 750;
}

.shipment-create-workspace .sky-attachment-actions { display: flex; gap: 5px; }
.shipment-create-workspace .sky-attachment-action {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border-radius: 7px;
}

.shipment-create-workspace .sky-attachment-empty {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    border: 1px dashed #C9D4E2;
    border-radius: 10px;
    background: #FAFBFD;
    color: var(--brand-muted);
    text-align: center;
}

.shipment-create-workspace .sky-attachment-empty > i { font-size: 27px; color: #94A4B8; }
.shipment-create-workspace .sky-attachment-empty strong { color: var(--brand-text); font-size: 11px; }
.shipment-create-workspace .sky-attachment-empty small { max-width: 400px; font-size: 8.5px; }

@media (max-width: 991.98px) {
    .shipment-create-workspace .sky-attachment-shell { grid-template-columns: 1fr; }
}

@media (max-width: 1199.98px) {
    .shipment-create-workspace .as-shipment-wizard .as-wizard-tabs {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .shipment-create-workspace .as-shipment-wizard .as-wizard-tabs .nav-item {
        min-width: 154px;
        flex: 0 0 154px;
    }
}

@media (max-width: 767.98px) {
    .shipment-create-workspace .shipment-page-header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 9px !important;
    }

    .shipment-create-workspace .shipment-page-header .page-btn {
        width: 100%;
    }

    .shipment-create-workspace .shipment-page-header .page-btn .btn { flex: 1 1 auto; }
    .shipment-create-workspace .as-shipment-wizard > .card-body { padding: 9px 9px 2px !important; }
    .shipment-create-workspace .sky-step-intro {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        padding: 9px 10px;
    }

    .shipment-create-workspace .sky-step-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .shipment-create-workspace .sky-step-icon i { font-size: 16px; }
    .shipment-create-workspace .sky-required-note { display: none; }
}

@media (max-width: 575.98px) {
    .shipment-create-workspace .shipment-page-header .page-title h4 { font-size: 16px; }
    .shipment-create-workspace .shipment-page-header .page-title h6 { display: none; }
    .shipment-create-workspace .as-shipment-wizard .as-wizard-tabs .nav-item {
        min-width: 142px;
        flex-basis: 142px;
    }

    .shipment-create-workspace .sky-step-intro p { display: none; }
    .shipment-create-workspace .as-form-section { padding: 11px 10px; }
    .shipment-create-workspace .as-input,
    .shipment-create-workspace .select2-container--default .select2-selection--single { min-height: 40px; }
    .shipment-create-workspace .as-shipment-wizard > .card-footer .wizard { flex-wrap: wrap !important; }
     .shipment-create-workspace .sky-wizard-status {
        order: 3;
        width: 100%;
        padding-top: 2px;
     }

    .shipment-create-workspace .sky-attachment-card {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .shipment-create-workspace .sky-attachment-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

/* Pending-balance component guards for global form/modal rules declared later. */
.pending-balance-page .pb-input-icon .form-control {
    min-height: 39px;
    padding: 8px 11px 8px 34px !important;
    border-color: var(--pb-line) !important;
    border-radius: 9px !important;
    color: var(--pb-ink) !important;
    font-size: 11px;
}

.pb-payment-modal .modal-content {
    overflow: hidden;
    border-radius: 18px !important;
    box-shadow: 0 32px 80px rgba(13, 39, 72, .28) !important;
}

.pb-payment-modal .modal-header {
    padding: 16px 19px !important;
    border: 0 !important;
}

.pb-payment-modal .modal-header .modal-title {
    display: block;
    color: #FFFFFF !important;
}

.pb-payment-modal .modal-body {
    padding: 0 !important;
    background: #f5f8fc !important;
}

.pb-payment-modal .pp-payment-form-card .form-control,
.pb-payment-modal .pp-payment-form-card .form-select {
    min-height: 41px;
    padding: 9px 12px !important;
    border-color: #cfdae7 !important;
    border-radius: 9px !important;
    color: #263d58 !important;
}

.pb-payment-modal .pp-amount-input .form-control {
    padding-left: 29px !important;
}

.pb-payment-modal .pb-modal-close {
    display: grid !important;
    flex: 0 0 38px;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .30) !important;
    border-radius: 50% !important;
    color: #FFFFFF !important;
    background: rgba(7, 34, 68, .22) !important;
    opacity: 1 !important;
}

.pb-payment-modal .pb-modal-close > span {
    color: #FFFFFF !important;
    line-height: .9;
}

.pb-payment-modal .pp-status-badge.pp-status-success {
    border: 1px solid #b9e4cf !important;
    color: #0d744b !important;
    background: #e7f8ef !important;
}

.pb-payment-modal .pp-status-badge.pp-status-pending {
    border: 1px solid #efd59c !important;
    color: #99610e !important;
    background: #fff5df !important;
}

.pb-payment-modal .pp-status-badge.pp-status-danger {
    border: 1px solid #efc2c7 !important;
    color: #af3f4a !important;
    background: #fff0f2 !important;
}

/* ============================================================
   PARTY DASHBOARD - LIGHT PREMIUM CUSTOMER COMMAND CENTRE
   ============================================================ */
.party-dashboard-page.pd-dashboard {
    --pd-blue: #087A32;
    --pd-blue-deep: #065A2C;
    --pd-blue-soft: #EAF4ED;
    --pd-sky-soft: #F2F8FD;
    --pd-silver: #AFC0D6;
    --pd-silver-soft: #F1F5F9;
    --pd-line: #DCE5EF;
    --pd-ink: #183452;
    --pd-copy: #647A94;
    --pd-white: #FFFFFF;
    --pd-shadow: 0 12px 34px rgba(45, 103, 177, .09);
    gap: 22px;
    padding-bottom: 20px;
    color: var(--pd-ink);
}

.pd-dashboard,
.pd-dashboard > *,
.pd-section,
.pd-finance-grid,
.pd-insight-grid,
.pd-network-grid,
.pd-panel { width: 100%; max-width: 100%; }

.pd-dashboard a { text-decoration: none; }

.pd-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    padding: 18px 20px 18px 22px;
    overflow: visible;
    border: 1px solid rgba(175, 192, 214, .55);
    border-radius: 18px;
    background:
        radial-gradient(240px 115px at 10% 110%, rgba(175, 203, 234, .30), transparent 72%),
        linear-gradient(104deg, #FFFFFF 0%, #F6FAFE 58%, #EAF4ED 100%);
    box-shadow: var(--pd-shadow);
}

.pd-welcome::before {
    content: "";
    position: absolute;
    top: 17px;
    bottom: 17px;
    left: 0;
    width: 4px;
    border-radius: 0 5px 5px 0;
    background: var(--pd-blue);
}

.pd-welcome::after {
    content: "BIC";
    position: absolute;
    right: 340px;
    bottom: -15px;
    color: rgba(45, 103, 177, .035);
    font-size: 92px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    pointer-events: none;
}

.pd-welcome-copy,
.pd-welcome-actions { position: relative; z-index: 2; }

.pd-overline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pd-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pd-overline i { font-size: 13px; }

.pd-welcome-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.pd-welcome-mark {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #CFE0F3;
    border-radius: 13px;
    color: var(--pd-blue);
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(45, 103, 177, .10);
}

.pd-welcome-mark i { font-size: 22px; }

.pd-welcome h2 {
    margin: 0 0 2px;
    color: var(--pd-ink) !important;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: -.025em;
}

.pd-welcome p {
    margin: 0;
    color: var(--pd-copy) !important;
    font-size: 12px;
}

.pd-welcome-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pd-primary-action,
.pd-mini-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--pd-blue);
    color: #FFFFFF !important;
    background: var(--pd-blue);
    font-weight: 750;
    box-shadow: 0 9px 20px rgba(45, 103, 177, .20);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.pd-primary-action {
    min-height: 44px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 12px;
}

.pd-primary-action:hover,
.pd-mini-primary:hover {
    color: #FFFFFF !important;
    background: var(--pd-blue-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(45, 103, 177, .25);
}

.pd-range-dropdown { position: relative; }

.pd-range-button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 5px 11px;
    border: 1px solid #CFDCEB;
    border-radius: 12px;
    color: var(--pd-ink);
    background: rgba(255, 255, 255, .90);
    text-align: left;
    box-shadow: 0 6px 16px rgba(35, 73, 112, .05);
}

.pd-range-button::after { display: none; }
.pd-range-button > i:first-child { color: var(--pd-blue); font-size: 17px; }
.pd-range-button > i:last-child { color: #8A9AAF; font-size: 13px; }
.pd-range-button > span { display: flex; min-width: 112px; flex-direction: column; font-size: 11px; font-weight: 750; line-height: 1.25; }
.pd-range-button small { color: #8A9AAF; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pd-range-dropdown .dropdown-menu { z-index: 1080; min-width: 190px; border: 1px solid var(--pd-line); border-radius: 12px; box-shadow: 0 18px 44px rgba(35, 73, 112, .16); }
.pd-range-dropdown .dropdown-item { padding: 9px 11px; color: var(--pd-copy); font-size: 12px; font-weight: 650; }
.pd-range-dropdown .dropdown-item:hover { color: var(--pd-blue); background: var(--pd-blue-soft); }

.pd-icon-action {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #CFDCEB;
    border-radius: 12px;
    color: var(--pd-blue);
    background: #FFFFFF;
    transition: transform .2s ease, background .2s ease;
}

.pd-icon-action:hover { background: var(--pd-blue-soft); transform: rotate(15deg); }
.pd-icon-action i { font-size: 18px; }

.pd-announcement {
    display: flex;
    align-items: center;
    height: auto !important;
    min-height: 44px;
    padding: 7px 10px 7px 8px;
    overflow: hidden;
    overflow-y: hidden;
    border: 1px solid #D6E4F3;
    border-radius: 13px;
    background: linear-gradient(90deg, #F8FBFE, #EFF6FD);
}

.pd-announcement-icon {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--pd-blue);
    background: #FFFFFF;
    box-shadow: 0 5px 12px rgba(45, 103, 177, .10);
}

.pd-announcement-track {
    display: flex;
    flex: 1;
    gap: 38px;
    padding: 0 14px;
    overflow: hidden;
    color: var(--pd-copy);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.pd-announcement-message + .pd-announcement-message::before { content: "•"; margin-right: 38px; color: var(--pd-silver); }

.pd-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pd-blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pd-live-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5B8FC8;
    box-shadow: 0 0 0 4px rgba(91, 143, 200, .12);
    animation: pdPulse 2.2s ease-in-out infinite;
}

.pd-section { min-width: 0; }

.pd-section-head,
.pd-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pd-section-head { margin-bottom: 13px; }
.pd-section-head h3,
.pd-panel-head h3 { margin: 2px 0 0; color: var(--pd-ink); font-weight: 800; letter-spacing: -.02em; }
.pd-section-head h3 { font-size: 20px; }
.pd-section-head-compact { margin-bottom: 12px; }

.pd-section-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pd-period-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid #D9E5F1;
    border-radius: 20px;
    color: #70849A;
    background: #F8FAFD;
    font-size: 10px;
    font-weight: 700;
}

.pd-period-chip i { color: var(--pd-blue); }

.pd-text-link,
.pd-mini-link,
.pd-panel-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pd-blue) !important;
    font-size: 11px;
    font-weight: 800;
}

.pd-text-link:hover,
.pd-mini-link:hover,
.pd-panel-footer-link:hover { color: var(--pd-blue-deep) !important; }
.pd-text-link i,
.pd-mini-link i,
.pd-panel-footer-link i { transition: transform .2s ease; }
.pd-text-link:hover i,
.pd-mini-link:hover i,
.pd-panel-footer-link:hover i { transform: translateX(2px); }

.pd-soft-note { color: #8293A7; font-size: 10px; font-weight: 600; }

.pd-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
    gap: 11px;
}

.pd-status-card {
    --pd-tone: var(--pd-blue);
    --pd-tone-bg: var(--pd-blue-soft);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 14px 13px;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: 15px;
    color: var(--pd-ink) !important;
    background: #FFFFFF;
    box-shadow: 0 8px 23px rgba(45, 103, 177, .065);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.pd-status-card:hover {
    color: var(--pd-ink) !important;
    border-color: color-mix(in srgb, var(--pd-tone) 35%, #FFFFFF);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(45, 103, 177, .12);
}

.pd-status-icon {
    display: grid;
    flex: 0 0 39px;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    color: var(--pd-tone);
    background: var(--pd-tone-bg);
}

.pd-status-icon i { font-size: 16px; }
.pd-status-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; margin-left: 11px; }
.pd-status-copy strong { color: var(--pd-ink); font-size: 21px; font-weight: 850; line-height: 1; }
.pd-status-copy small { margin-top: 5px; overflow: hidden; color: var(--pd-copy); font-size: 10px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pd-status-arrow { align-self: flex-start; color: #A3B2C4; font-size: 13px; }
.pd-status-line { position: absolute; right: 13px; bottom: 8px; left: 13px; height: 2px; overflow: hidden; border-radius: 2px; background: #EDF2F7; }
.pd-status-line::after { content: ""; display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--pd-tone); transform: translateX(-130%); transition: transform .35s ease; }
.pd-status-card:hover .pd-status-line::after { transform: translateX(0); }
.pd-tone-1 { --pd-tone: #087A32; --pd-tone-bg: #EAF4ED; }
.pd-tone-2 { --pd-tone: #4B83BE; --pd-tone-bg: #EDF5FC; }
.pd-tone-3 { --pd-tone: #7088A7; --pd-tone-bg: #F0F4F8; }
.pd-tone-4 { --pd-tone: #5478AF; --pd-tone-bg: #EEF2FA; }
.pd-tone-5 { --pd-tone: #4F899A; --pd-tone-bg: #EDF7F8; }

.pd-finance-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.28fr) repeat(2, minmax(220px, .86fr));
    gap: 14px;
}

.pd-wallet-card,
.pd-motion-card {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: 18px;
    box-shadow: var(--pd-shadow);
}

.pd-wallet-card {
    display: flex;
    align-items: center;
    padding: 22px 24px;
    background:
        radial-gradient(210px 170px at 100% 50%, rgba(175, 203, 234, .42), transparent 72%),
        linear-gradient(118deg, #FFFFFF, #F3F8FD);
}

.pd-wallet-content { position: relative; z-index: 2; }
.pd-card-label { display: inline-flex; align-items: center; gap: 7px; color: #6B7F96; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pd-card-label i { color: var(--pd-blue); font-size: 15px; }
.pd-wallet-card h3,
.pd-motion-card h3 { margin: 12px 0 4px; color: var(--pd-ink); font-size: clamp(25px, 2.4vw, 34px); font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.pd-wallet-card p,
.pd-motion-card p { margin: 0; color: var(--pd-copy); font-size: 10px; }
.pd-wallet-actions { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.pd-mini-primary { min-height: 32px; padding: 0 11px; border-radius: 9px; font-size: 10px; }

.pd-wallet-orbit {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 126px;
    height: 126px;
    transform: translateY(-50%);
}

.pd-orbit { position: absolute; inset: 0; border: 1px dashed rgba(45, 103, 177, .28); border-radius: 50%; animation: pdSpin 16s linear infinite; }
.pd-orbit::after { content: ""; position: absolute; top: 10px; left: 19px; width: 8px; height: 8px; border-radius: 50%; background: #8FB5DF; box-shadow: 0 0 0 5px rgba(143, 181, 223, .18); }
.pd-orbit-two { inset: 18px; animation-direction: reverse; animation-duration: 11s; }
.pd-orbit-two::after { top: auto; right: 2px; bottom: 16px; left: auto; width: 6px; height: 6px; background: #7088A7; }
.pd-wallet-coin { position: absolute; inset: 34px; display: grid; place-items: center; border: 1px solid #C6D9EC; border-radius: 50%; color: var(--pd-blue); background: rgba(255,255,255,.92); box-shadow: 0 12px 25px rgba(45, 103, 177, .15); animation: pdFloat 3.2s ease-in-out infinite; }
.pd-wallet-coin i { font-size: 26px; }

.pd-motion-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: var(--pd-ink) !important;
    background: linear-gradient(145deg, #FFFFFF, #F7FAFD);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pd-motion-card:hover { color: var(--pd-ink) !important; border-color: #BDD0E5; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(45, 103, 177, .13); }
.pd-motion-top { display: flex; align-items: center; justify-content: space-between; }
.pd-card-action { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--pd-blue); background: var(--pd-blue-soft); transition: transform .2s ease; }
.pd-motion-card:hover .pd-card-action { transform: translate(2px, -2px); }
.pd-motion-card h3 small { color: #8192A6; font-size: 13px; font-weight: 750; letter-spacing: 0; }

.pd-spark-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: auto; padding-top: 11px; }
.pd-spark-bars span { flex: 1; height: 28%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #79A5D5, #C7D9EB); transform-origin: bottom; animation: pdBars 2.8s ease-in-out infinite; }
.pd-spark-bars span:nth-child(2) { height: 48%; animation-delay: -.8s; }
.pd-spark-bars span:nth-child(3) { height: 68%; animation-delay: -1.6s; }
.pd-spark-bars span:nth-child(4) { height: 42%; animation-delay: -.4s; }
.pd-spark-bars span:nth-child(5) { height: 82%; animation-delay: -1.2s; }
.pd-spark-bars span:nth-child(6) { height: 62%; animation-delay: -2s; }

.pd-load-card { background: linear-gradient(145deg, #FFFFFF, #F2F6FA); }
.pd-load-motion { position: relative; height: 36px; margin-top: auto; }
.pd-load-track { position: absolute; right: 0; bottom: 6px; left: 0; height: 2px; border-radius: 3px; background: repeating-linear-gradient(90deg, #AFC0D6 0, #AFC0D6 9px, transparent 9px, transparent 15px); }
.pd-moving-box { position: absolute; bottom: 9px; left: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--pd-blue); background: #E7F0FA; box-shadow: 0 6px 14px rgba(45, 103, 177, .12); animation: pdTravel 5s ease-in-out infinite; }
.pd-moving-box i { font-size: 17px; }

.pd-insight-grid,
.pd-network-grid { display: grid; gap: 16px; min-width: 0; }
.pd-insight-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); }
.pd-network-grid { grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr); }

.pd-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--pd-line);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: var(--pd-shadow);
}

.pd-panel-head { min-height: 42px; margin-bottom: 14px; }
.pd-panel-head > div:first-child { display: flex; align-items: center; gap: 10px; }
.pd-panel-head small { display: block; color: #8A9AAF; font-size: 8px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.pd-panel-head h3 { font-size: 15px; }
.pd-panel-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--pd-blue); background: var(--pd-blue-soft); }
.pd-panel-icon i { font-size: 18px; }
.pd-panel-icon-silver { color: #667F9E; background: var(--pd-silver-soft); }
.pd-chart-wrap { position: relative; height: 278px; }
.pd-chart-wrap canvas { max-width: 100% !important; }

.pd-recent-list { display: flex; flex-direction: column; }
.pd-recent-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 49px; padding: 7px 3px; border: 0; border-bottom: 1px solid #EDF2F7; color: var(--pd-ink); background: transparent; text-align: left; transition: padding .2s ease, background .2s ease; }
.pd-recent-item:last-child { border-bottom: 0; }
.pd-recent-item:hover { padding-right: 7px; padding-left: 7px; border-radius: 10px; background: #F7FAFD; }
.pd-country-code { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #D6E3F0; border-radius: 11px; color: var(--pd-blue); background: #F2F7FC; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.pd-recent-copy { display: flex; min-width: 0; flex-direction: column; }
.pd-recent-copy strong { overflow: hidden; color: var(--pd-ink); font-size: 11px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.pd-recent-copy small { margin-top: 2px; overflow: hidden; color: #8A9AAF; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pd-recent-amount { display: flex; align-items: center; gap: 6px; color: #506B88; font-size: 11px; font-weight: 800; }
.pd-recent-amount i { color: #9BAABC; font-size: 12px; }

.pd-fuel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pd-fuel-item { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 61px; padding: 9px; border: 1px solid #E3EAF2; border-radius: 13px; background: linear-gradient(135deg, #FFFFFF, #F8FAFD); transition: transform .2s ease, border-color .2s ease; }
.pd-fuel-item:hover { border-color: #C9D8E9; transform: translateY(-2px); }
.pd-fuel-brand { display: grid; place-items: center; width: 39px; height: 39px; padding: 5px; border: 1px solid #DCE6F0; border-radius: 11px; color: var(--pd-blue); background: #FFFFFF; }
.pd-fuel-brand img { display: block; max-width: 100%; max-height: 27px; object-fit: contain; }
.pd-fuel-brand i { font-size: 18px; }
.pd-fuel-name { display: flex; min-width: 0; flex-direction: column; }
.pd-fuel-name strong { overflow: hidden; color: var(--pd-ink); font-size: 10px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.pd-fuel-name small { margin-top: 2px; overflow: hidden; color: #94A3B5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pd-fuel-rate { color: var(--pd-blue); font-size: 18px; font-weight: 850; letter-spacing: -.03em; }
.pd-fuel-rate small { font-size: 9px; }

.pd-country-summary { display: flex !important; align-items: flex-end !important; gap: 5px !important; }
.pd-country-summary strong { color: var(--pd-blue); font-size: 20px; font-weight: 850; line-height: 1; }
.pd-country-summary small { color: #8A9AAF; font-size: 8px; font-weight: 750; text-transform: none; }
.pd-country-content { display: grid; grid-template-columns: minmax(270px, 1.08fr) minmax(260px, .92fr); align-items: stretch; gap: 14px; }
.pd-country-map-shell { position: relative; min-width: 0; min-height: 294px; overflow: hidden; border: 1px solid #E1E9F2; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #FFFFFF, #F4F8FC); }
.pd-world-map,
.pd-world-map .jvectormap-container { width: 100%; height: 100%; min-height: 294px; }
.pd-world-map .jvectormap-container { background: transparent !important; }
.pd-map-caption { position: absolute; right: 10px; bottom: 9px; left: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 27px; padding: 0 9px; border: 1px solid rgba(207, 220, 235, .88); border-radius: 9px; color: #6E8299; background: rgba(255, 255, 255, .88); font-size: 8px; font-weight: 700; pointer-events: none; backdrop-filter: blur(6px); }
.pd-map-caption i { color: var(--pd-blue); font-size: 11px; }
.pd-country-panel .jvectormap-zoomin,
.pd-country-panel .jvectormap-zoomout { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid #D5E2EF; border-radius: 7px; color: var(--pd-blue); background: rgba(255, 255, 255, .92); font-size: 12px; line-height: 1; }
.jvectormap-tip { display: none; position: absolute; z-index: 1200; min-width: 142px; padding: 9px 11px !important; border: 1px solid #D5E1ED !important; border-radius: 10px !important; color: #62778F !important; background: #FFFFFF !important; box-shadow: 0 12px 28px rgba(35, 73, 112, .15); font-family: inherit !important; font-size: 9px !important; }
.jvectormap-tip strong { display: block; margin-bottom: 4px; color: #183452; font-size: 10px; }
.jvectormap-tip span { display: block; margin-top: 2px; }
.pd-country-list { display: flex; flex-direction: column; gap: 4px; }
.pd-country-row { display: grid; grid-template-columns: 37px minmax(112px, .9fr) minmax(90px, 1.3fr) 30px; align-items: center; gap: 10px; min-height: 45px; padding: 5px 7px; border-radius: 10px; color: var(--pd-ink) !important; transition: background .2s ease; }
.pd-country-row:hover { color: var(--pd-ink) !important; background: #F6F9FC; }
.pd-country-rank { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; color: var(--pd-blue); background: var(--pd-blue-soft); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.pd-country-name { display: flex; min-width: 0; flex-direction: column; }
.pd-country-name strong { overflow: hidden; color: var(--pd-ink); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.pd-country-name small { margin-top: 1px; color: #93A2B4; font-size: 8px; }
.pd-country-bar { height: 6px; overflow: hidden; border-radius: 8px; background: #EAF0F6; }
.pd-country-bar i { display: block; width: var(--pd-country-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #AFCBEA, #087A32); transform-origin: left; animation: pdGrow 1s cubic-bezier(.2,.7,.2,1) both; }
.pd-country-count { color: #516A85; font-size: 11px; font-weight: 850; text-align: right; }
.pd-panel-footer-link { justify-content: center; width: 100%; min-height: 34px; margin-top: 9px; border-top: 1px solid #EDF2F7; padding-top: 9px; }

.pd-empty-state { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 110px; color: #8A9AAF; font-size: 11px; }
.pd-empty-state i { color: #9CB3CD; font-size: 22px; }

.pd-date-modal .modal-content { overflow: hidden; border: 1px solid #D8E4F0; border-radius: 18px; box-shadow: 0 28px 70px rgba(35, 73, 112, .22); }
.pd-date-modal .modal-header { align-items: center; padding: 17px 19px; border-color: #E6EDF5; background: linear-gradient(100deg, #FFFFFF, #F2F7FC); }
.pd-date-modal .modal-title { margin-top: 3px; color: var(--pd-ink); font-size: 17px; font-weight: 800; }
.pd-date-modal .modal-body { padding: 20px; }
.pd-date-form { display: grid; grid-template-columns: 1fr 22px 1fr auto; align-items: end; gap: 10px; }
.pd-date-field label { display: block; margin-bottom: 5px; color: #61758D; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pd-date-field .form-control { min-height: 42px; border-color: #D5E1ED; border-radius: 11px; color: var(--pd-ink); font-size: 11px; }
.pd-date-arrow { display: grid; place-items: center; height: 42px; color: #9AABBD; }

@keyframes pdPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(91, 143, 200, .10); }
    50% { box-shadow: 0 0 0 7px rgba(91, 143, 200, .03); }
}

@keyframes pdSpin { to { transform: rotate(360deg); } }
@keyframes pdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pdBars { 0%, 100% { transform: scaleY(.76); opacity: .72; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes pdTravel { 0%, 100% { left: 2px; } 50% { left: calc(100% - 32px); } }
@keyframes pdGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1199.98px) {
    .pd-welcome::after { display: none; }
    .pd-finance-grid { grid-template-columns: 1.2fr .8fr; }
    .pd-load-card { grid-column: 1 / -1; min-height: 145px; }
    .pd-insight-grid,
    .pd-network-grid { grid-template-columns: 1fr; }
    .pd-fuel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .pd-welcome { align-items: flex-start; flex-direction: column; gap: 14px; }
    .pd-welcome-actions { width: 100%; }
    .pd-range-dropdown { margin-left: auto; }
    .pd-section-head { align-items: flex-start; }
    .pd-soft-note { max-width: 300px; text-align: right; }
}

@media (max-width: 767.98px) {
    .party-dashboard-page.pd-dashboard { gap: 18px; }
    .pd-welcome { padding: 16px; border-radius: 15px; }
    .pd-welcome-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch; width: 100%; }
    .pd-welcome-actions > .pd-primary-action { width: 100%; }
    .pd-range-dropdown { grid-column: 1 / -1; width: 100%; margin-left: 0; }
    .pd-range-button { justify-content: space-between; width: 100%; }
    .pd-section-head { flex-direction: column; gap: 8px; }
    .pd-section-actions { width: 100%; justify-content: space-between; }
    .pd-soft-note { max-width: none; text-align: left; }
    .pd-status-grid { display: flex; width: 100%; margin-right: 0; padding: 1px 0 9px; overflow-x: auto; scroll-snap-type: x proximity; }
    .pd-status-card { flex: 0 0 164px; scroll-snap-align: start; }
    .pd-finance-grid { grid-template-columns: 1fr; }
    .pd-load-card { grid-column: auto; }
    .pd-wallet-orbit { right: 16px; opacity: .72; }
    .pd-fuel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-country-content { grid-template-columns: 1fr; }
    .pd-country-map-shell,
    .pd-world-map,
    .pd-world-map .jvectormap-container { min-height: 250px; }
    .pd-date-form { grid-template-columns: 1fr 1fr; }
    .pd-date-arrow { display: none; }
    .pd-date-form .pd-primary-action { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .pd-welcome-title { align-items: flex-start; }
    .pd-welcome-mark { flex-basis: 38px; width: 38px; height: 38px; }
    .pd-welcome p { max-width: 250px; }
    .pd-welcome-actions > .pd-primary-action span { display: inline; }
    .pd-welcome-actions > .pd-primary-action { order: 1; }
    .pd-range-dropdown { order: 3; }
    .pd-icon-action { order: 2; }
    .pd-announcement-track { padding: 0 9px; }
    .pd-section-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
    .pd-wallet-card { min-height: 190px; padding: 19px; }
    .pd-wallet-orbit { right: -24px; opacity: .48; }
    .pd-wallet-actions { align-items: flex-start; flex-direction: column; gap: 9px; }
    .pd-panel { padding: 14px; border-radius: 15px; }
    .pd-chart-wrap { height: 240px; }
    .pd-fuel-list { grid-template-columns: 1fr; }
    .pd-country-row { grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 8px; }
    .pd-country-bar { grid-column: 2 / 4; grid-row: 2; margin-top: -4px; }
    .pd-recent-amount { font-size: 10px; }
    .pd-date-form { grid-template-columns: 1fr; }
    .pd-date-form .pd-primary-action { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-dashboard *,
    .pd-dashboard *::before,
    .pd-dashboard *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   ADMIN DASHBOARD - LIGHT EXECUTIVE OPERATIONS CENTRE
   ============================================================ */
.admin-dashboard-page.ad-dashboard {
    --ad-blue: #087A32;
    --ad-blue-deep: #065A2C;
    --ad-blue-soft: #EAF4ED;
    --ad-sky-soft: #F3F8FD;
    --ad-silver: #AFC0D6;
    --ad-silver-soft: #F0F4F8;
    --ad-teal: #4F899A;
    --ad-ink: #183452;
    --ad-copy: #647A94;
    --ad-line: #DCE5EF;
    --ad-shadow: 0 12px 34px rgba(45, 103, 177, .09);
    gap: 22px;
    padding-bottom: 24px;
    color: var(--ad-ink);
}

.ad-dashboard,
.ad-dashboard > *,
.ad-section,
.ad-operations-grid,
.ad-analytics-grid,
.ad-market-grid,
.ad-panel { width: 100%; max-width: 100%; }

.ad-dashboard a { text-decoration: none; }

.ad-command-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 108px;
    padding: 18px 20px 18px 22px;
    overflow: visible;
    border: 1px solid rgba(175, 192, 214, .58);
    border-radius: 18px;
    background:
        radial-gradient(260px 125px at 88% 120%, rgba(175, 203, 234, .34), transparent 73%),
        linear-gradient(104deg, #FFFFFF 0%, #F7FAFD 60%, #EBF3FC 100%);
    box-shadow: var(--ad-shadow);
}

.ad-command-bar::before {
    content: "";
    position: absolute;
    top: 17px;
    bottom: 17px;
    left: 0;
    width: 4px;
    border-radius: 0 5px 5px 0;
    background: var(--ad-blue);
}

.ad-command-bar::after {
    content: "CONTROL";
    position: absolute;
    right: 335px;
    bottom: -10px;
    color: rgba(45, 103, 177, .032);
    font-size: 74px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.07em;
    pointer-events: none;
}

.ad-command-copy,
.ad-command-actions { position: relative; z-index: 2; }

.ad-overline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ad-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ad-overline i { font-size: 13px; }
.ad-command-title { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

.ad-command-mark {
    display: grid;
    flex: 0 0 43px;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid #CDDEEF;
    border-radius: 13px;
    color: var(--ad-blue);
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(45, 103, 177, .10);
}

.ad-command-mark i { font-size: 21px; }
.ad-command-bar h2 { margin: 0 0 2px; color: var(--ad-ink) !important; font-size: clamp(19px, 2vw, 25px); font-weight: 820; letter-spacing: -.025em; }
.ad-command-bar p { margin: 0; color: var(--ad-copy) !important; font-size: 12px; }
.ad-command-actions { display: flex; align-items: center; gap: 9px; }

.ad-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--ad-blue);
    border-radius: 12px;
    color: #FFFFFF !important;
    background: var(--ad-blue);
    font-size: 11px;
    font-weight: 780;
    box-shadow: 0 9px 20px rgba(45, 103, 177, .20);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ad-primary-action:hover { color: #FFFFFF !important; background: var(--ad-blue-deep); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(45, 103, 177, .25); }
.ad-range-dropdown { position: relative; }

.ad-range-button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 5px 11px;
    border: 1px solid #CFDCEB;
    border-radius: 12px;
    color: var(--ad-ink);
    background: rgba(255, 255, 255, .92);
    text-align: left;
    box-shadow: 0 6px 16px rgba(35, 73, 112, .05);
}

.ad-range-button::after { display: none; }
.ad-range-button > i:first-child { color: var(--ad-blue); font-size: 17px; }
.ad-range-button > i:last-child { color: #8A9AAF; font-size: 13px; }
.ad-range-button > span { display: flex; min-width: 112px; flex-direction: column; font-size: 11px; font-weight: 760; line-height: 1.25; }
.ad-range-button small { color: #8A9AAF; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ad-range-dropdown .dropdown-menu { z-index: 1080; min-width: 190px; border: 1px solid var(--ad-line); border-radius: 12px; box-shadow: 0 18px 44px rgba(35, 73, 112, .16); }
.ad-range-dropdown .dropdown-item { padding: 9px 11px; color: var(--ad-copy); font-size: 11px; font-weight: 680; }
.ad-range-dropdown .dropdown-item:hover { color: var(--ad-blue); background: var(--ad-blue-soft); }

.ad-icon-action {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #CFDCEB;
    border-radius: 12px;
    color: var(--ad-blue);
    background: #FFFFFF;
    transition: transform .2s ease, background .2s ease;
}

.ad-icon-action:hover { background: var(--ad-blue-soft); transform: rotate(15deg); }
.ad-icon-action i { font-size: 18px; }

.ad-announcement {
    display: flex;
    align-items: center;
    height: auto !important;
    min-height: 44px;
    padding: 7px 10px 7px 8px;
    overflow: hidden;
    overflow-y: hidden;
    border: 1px solid #D6E4F3;
    border-radius: 13px;
    background: linear-gradient(90deg, #F8FBFE, #EFF6FD);
}

.ad-announcement-icon { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ad-blue); background: #FFFFFF; box-shadow: 0 5px 12px rgba(45, 103, 177, .10); }
.ad-announcement-track { display: flex; flex: 1; gap: 38px; padding: 0 14px; overflow: hidden; color: var(--ad-copy); font-size: 10px; font-weight: 650; white-space: nowrap; }
.ad-announcement-track span + span::before { content: "•"; margin-right: 38px; color: var(--ad-silver); }
.ad-live-status { display: inline-flex; align-items: center; gap: 5px; color: var(--ad-blue); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ad-live-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5B8FC8; box-shadow: 0 0 0 4px rgba(91, 143, 200, .12); animation: adPulse 2.2s ease-in-out infinite; }

.ad-section { min-width: 0; }
.ad-section-head,
.ad-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ad-section-head { margin-bottom: 13px; }
.ad-section-head-compact { margin-bottom: 11px; }
.ad-section-head h3,
.ad-panel-head h3 { margin: 2px 0 0; color: var(--ad-ink); font-weight: 820; letter-spacing: -.02em; }
.ad-section-head h3 { font-size: 20px; }
.ad-section-actions { display: flex; align-items: center; gap: 14px; }

.ad-period-chip,
.ad-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #D9E5F1;
    border-radius: 16px;
    color: #70849A;
    background: #F8FAFD;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.ad-period-chip i { color: var(--ad-blue); }
.ad-text-link,
.ad-panel-footer { display: inline-flex; align-items: center; gap: 5px; color: var(--ad-blue) !important; font-size: 10px; font-weight: 800; }
.ad-text-link:hover,
.ad-panel-footer:hover { color: var(--ad-blue-deep) !important; }
.ad-text-link i,
.ad-panel-footer i { transition: transform .2s ease; }
.ad-text-link:hover i,
.ad-panel-footer:hover i { transform: translateX(2px); }

.ad-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.ad-kpi-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 166px;
    flex-direction: column;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--ad-line);
    border-radius: 17px;
    color: var(--ad-ink) !important;
    background: linear-gradient(145deg, #FFFFFF, #F8FAFD);
    box-shadow: var(--ad-shadow);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ad-kpi-card:hover { border-color: #BDD0E5; color: var(--ad-ink) !important; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(45, 103, 177, .13); }
.ad-kpi-card::before { content: ""; position: absolute; top: 0; right: 18px; left: 18px; height: 2px; border-radius: 0 0 3px 3px; background: var(--ad-card-tone, var(--ad-blue)); opacity: .8; }
.ad-kpi-payments { --ad-card-tone: #087A32; background: radial-gradient(180px 100px at 100% 100%, rgba(175,203,234,.28), transparent 75%), linear-gradient(145deg, #FFFFFF, #F5F9FD); }
.ad-kpi-sales { --ad-card-tone: #4E83BD; }
.ad-kpi-load { --ad-card-tone: #7088A7; }
.ad-kpi-shipments { --ad-card-tone: #4F899A; }
.ad-kpi-top { display: flex; align-items: center; justify-content: space-between; }
.ad-kpi-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--ad-card-tone); background: #EAF4ED; }
.ad-kpi-load .ad-kpi-icon { background: #F0F4F8; }
.ad-kpi-shipments .ad-kpi-icon { background: #EDF7F8; }
.ad-kpi-icon i { font-size: 17px; }
.ad-kpi-action { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #8CA0B7; background: #F1F5F9; font-size: 11px; transition: transform .2s ease, color .2s ease; }
.ad-kpi-card:hover .ad-kpi-action { color: var(--ad-card-tone); transform: translate(2px, -2px); }
.ad-kpi-label { margin-top: 12px; color: #71849B; font-size: 9px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.ad-kpi-card h3 { margin: 6px 0 4px; color: var(--ad-ink); font-size: clamp(24px, 2vw, 31px); font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.ad-kpi-card h3 small { color: #8192A6; font-size: 11px; font-weight: 750; letter-spacing: 0; }
.ad-kpi-note { position: relative; z-index: 2; display: flex; align-items: center; gap: 5px; margin-top: auto; color: #7C8FA5; font-size: 8px; font-weight: 670; }
.ad-kpi-note i { color: var(--ad-card-tone); font-size: 11px; }
.ad-kpi-wave { position: absolute; right: -16px; bottom: -24px; width: 100px; height: 100px; border: 1px solid rgba(45,103,177,.13); border-radius: 50%; }
.ad-kpi-wave::before,
.ad-kpi-wave::after { content: ""; position: absolute; border: 1px solid rgba(45,103,177,.11); border-radius: 50%; }
.ad-kpi-wave::before { inset: 14px; }
.ad-kpi-wave::after { inset: 29px; }
.ad-mini-bars { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: flex-end; gap: 3px; height: 31px; opacity: .52; }
.ad-mini-bars i { width: 5px; height: 35%; border-radius: 3px 3px 1px 1px; background: #78A5D5; animation: adBars 2.7s ease-in-out infinite; }
.ad-mini-bars i:nth-child(2) { height: 60%; animation-delay: -.8s; }
.ad-mini-bars i:nth-child(3) { height: 90%; animation-delay: -1.6s; }
.ad-mini-bars i:nth-child(4) { height: 52%; animation-delay: -.4s; }
.ad-mini-bars i:nth-child(5) { height: 76%; animation-delay: -1.2s; }
.ad-load-route { position: absolute; right: 16px; bottom: 14px; width: 56px; height: 20px; border-bottom: 1px dashed #9EB4CD; }
.ad-load-route i { position: absolute; bottom: 2px; left: 0; color: #7088A7; font-size: 16px; animation: adTravel 4.8s ease-in-out infinite; }
.ad-kpi-orbit { position: absolute; right: 15px; bottom: 12px; width: 43px; height: 43px; border: 1px dashed rgba(79,137,154,.40); border-radius: 50%; animation: adSpin 12s linear infinite; }
.ad-kpi-orbit i { position: absolute; top: 3px; left: 5px; width: 6px; height: 6px; border-radius: 50%; background: #4F899A; box-shadow: 0 0 0 4px rgba(79,137,154,.12); }

.ad-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ad-status-card {
    --ad-status-tone: var(--ad-blue);
    --ad-status-soft: var(--ad-blue-soft);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--ad-line);
    border-radius: 14px;
    color: var(--ad-ink) !important;
    background: #FFFFFF;
    box-shadow: 0 7px 20px rgba(45,103,177,.055);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ad-status-card::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ad-status-tone); opacity: .25; transform: scaleX(.35); transition: transform .25s ease, opacity .25s ease; }
.ad-status-card:hover { border-color: #C5D6E8; color: var(--ad-ink) !important; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(45,103,177,.10); }
.ad-status-card:hover::after { opacity: 1; transform: scaleX(1); }
.ad-status-icon { display: grid; flex: 0 0 37px; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--ad-status-tone); background: var(--ad-status-soft); }
.ad-status-icon i { font-size: 15px; }
.ad-status-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; margin-left: 10px; }
.ad-status-copy strong { color: var(--ad-ink); font-size: 19px; font-weight: 850; line-height: 1; }
.ad-status-copy small { margin-top: 4px; overflow: hidden; color: var(--ad-copy); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ad-status-arrow { align-self: flex-start; color: #A2B1C2; font-size: 11px; }
.ad-status-tone-1 { --ad-status-tone: #087A32; --ad-status-soft: #EAF4ED; }
.ad-status-tone-2 { --ad-status-tone: #4E83BD; --ad-status-soft: #EDF5FC; }
.ad-status-tone-3 { --ad-status-tone: #7088A7; --ad-status-soft: #F0F4F8; }
.ad-status-tone-4 { --ad-status-tone: #5478AF; --ad-status-soft: #EEF2FA; }
.ad-status-tone-5 { --ad-status-tone: #4F899A; --ad-status-soft: #EDF7F8; }

.ad-operations-grid,
.ad-analytics-grid,
.ad-market-grid { display: grid; min-width: 0; gap: 16px; }
.ad-operations-grid { grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); }
.ad-analytics-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.ad-market-grid { grid-template-columns: minmax(0, 1.27fr) minmax(360px, .73fr); }

.ad-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--ad-line);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: var(--ad-shadow);
}

.ad-panel-head { min-height: 42px; margin-bottom: 14px; }
.ad-panel-head > div:first-child { display: flex; align-items: center; gap: 10px; }
.ad-panel-head small { display: block; color: #8A9AAF; font-size: 8px; font-weight: 800; letter-spacing: .10em; line-height: 1.2; text-transform: uppercase; }
.ad-panel-head h3 { font-size: 15px; }
.ad-panel-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ad-blue); background: var(--ad-blue-soft); }
.ad-panel-icon i { font-size: 18px; }
.ad-panel-icon-silver { color: #667F9E; background: var(--ad-silver-soft); }

.ad-partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ad-partner-metric { position: relative; display: flex; align-items: center; min-height: 83px; padding: 12px; overflow: hidden; border: 1px solid #E1E9F2; border-radius: 14px; background: linear-gradient(135deg, #FFFFFF, #F7FAFD); }
.ad-partner-metric > span { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: var(--ad-blue); background: var(--ad-blue-soft); }
.ad-partner-metric > span i { font-size: 17px; }
.ad-partner-metric > div { display: flex; min-width: 0; flex-direction: column; margin-left: 9px; }
.ad-partner-metric strong { color: var(--ad-ink); font-size: 20px; font-weight: 850; line-height: 1; }
.ad-partner-metric small { margin-top: 4px; color: var(--ad-copy); font-size: 9px; font-weight: 700; }
.ad-partner-trend { position: absolute; right: 9px; bottom: 8px; color: #B1C0D0; font-size: 14px; }

.ad-fuel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ad-fuel-item { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 58px; padding: 8px; border: 1px solid #E3EAF2; border-radius: 12px; background: linear-gradient(135deg, #FFFFFF, #F8FAFD); transition: border-color .2s ease, transform .2s ease; }
.ad-fuel-item:hover { border-color: #C8D8E8; transform: translateY(-2px); }
.ad-fuel-logo { display: grid; place-items: center; width: 35px; height: 35px; padding: 4px; border: 1px solid #DCE6F0; border-radius: 10px; color: var(--ad-blue); background: #FFFFFF; }
.ad-fuel-logo img { display: block; max-width: 100%; max-height: 24px; object-fit: contain; }
.ad-fuel-name { display: flex; min-width: 0; flex-direction: column; }
.ad-fuel-name strong { overflow: hidden; color: var(--ad-ink); font-size: 9px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.ad-fuel-name small { margin-top: 2px; color: #95A4B6; font-size: 7px; }
.ad-fuel-rate { color: var(--ad-blue); font-size: 16px; font-weight: 850; letter-spacing: -.03em; }
.ad-fuel-rate small { font-size: 8px; }

.ad-chart-wrap { position: relative; height: 286px; }
.ad-chart-wrap canvas { max-width: 100% !important; }
.ad-vendor-content { display: grid; grid-template-columns: minmax(145px, .75fr) minmax(150px, 1fr); align-items: center; gap: 13px; min-height: 286px; }
.ad-vendor-donut { position: relative; height: 194px; }
.ad-vendor-donut canvas { max-width: 100% !important; }
.ad-donut-centre { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; flex-direction: column; transform: translate(-50%, -50%); pointer-events: none; }
.ad-donut-centre strong { color: var(--ad-ink); font-size: 22px; font-weight: 850; line-height: 1; }
.ad-donut-centre small { margin-top: 3px; color: #8A9AAF; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.ad-vendor-list { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.ad-vendor-row { --ad-vendor-tone: #087A32; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 40px; padding: 5px 7px; border-radius: 9px; transition: background .2s ease; }
.ad-vendor-row:hover { background: #F6F9FC; }
.ad-vendor-row > i { width: 7px; height: 7px; border-radius: 50%; background: var(--ad-vendor-tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ad-vendor-tone) 13%, transparent); }
.ad-vendor-row > span { display: flex; min-width: 0; flex-direction: column; }
.ad-vendor-row strong { overflow: hidden; color: var(--ad-ink); font-size: 9px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.ad-vendor-row small { margin-top: 2px; color: #94A3B5; font-size: 7px; }
.ad-vendor-row b { color: #506A86; font-size: 10px; font-weight: 850; }
.ad-vendor-tone-1 { --ad-vendor-tone: #087A32; }
.ad-vendor-tone-2 { --ad-vendor-tone: #5E8FCB; }
.ad-vendor-tone-3 { --ad-vendor-tone: #89ADD5; }
.ad-vendor-tone-4 { --ad-vendor-tone: #AFC0D6; }
.ad-vendor-tone-5 { --ad-vendor-tone: #4F899A; }

.ad-country-total { display: flex; align-items: flex-end; gap: 5px; }
.ad-country-total strong { color: var(--ad-blue); font-size: 20px; font-weight: 850; line-height: 1; }
.ad-country-total small { color: #8A9AAF; font-size: 8px; font-weight: 750; }
.ad-country-content { display: grid; grid-template-columns: minmax(285px, 1.06fr) minmax(260px, .94fr); align-items: stretch; gap: 14px; }
.ad-map-shell { position: relative; min-width: 0; min-height: 302px; overflow: hidden; border: 1px solid #E1E9F2; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #FFFFFF, #F4F8FC); }
.ad-world-map,
.ad-world-map .jvectormap-container { width: 100%; height: 100%; min-height: 302px; }
.ad-world-map .jvectormap-container { background: transparent !important; }
.ad-map-caption { position: absolute; right: 10px; bottom: 9px; left: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 27px; padding: 0 9px; border: 1px solid rgba(207,220,235,.88); border-radius: 9px; color: #6E8299; background: rgba(255,255,255,.88); font-size: 8px; font-weight: 700; pointer-events: none; backdrop-filter: blur(6px); }
.ad-map-caption i { color: var(--ad-blue); font-size: 11px; }
.ad-country-panel .jvectormap-zoomin,
.ad-country-panel .jvectormap-zoomout { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid #D5E2EF; border-radius: 7px; color: var(--ad-blue); background: rgba(255,255,255,.92); font-size: 12px; line-height: 1; }
.ad-country-list { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.ad-country-row { display: grid; grid-template-columns: 35px minmax(95px, .86fr) minmax(70px, 1.15fr) 26px; align-items: center; gap: 8px; min-height: 47px; padding: 5px 6px; border-radius: 10px; color: var(--ad-ink) !important; transition: background .2s ease; }
.ad-country-row:hover { color: var(--ad-ink) !important; background: #F6F9FC; }
.ad-country-code { display: grid; place-items: center; width: 34px; height: 31px; border-radius: 9px; color: var(--ad-blue); background: var(--ad-blue-soft); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.ad-country-name { display: flex; min-width: 0; flex-direction: column; }
.ad-country-name strong { overflow: hidden; color: var(--ad-ink); font-size: 9px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.ad-country-name small { margin-top: 2px; color: #94A3B5; font-size: 7px; }
.ad-country-bar { height: 6px; overflow: hidden; border-radius: 8px; background: #EAF0F6; }
.ad-country-bar i { display: block; width: var(--ad-country-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #AFCBEA, #087A32); transform-origin: left; animation: adGrow 1s cubic-bezier(.2,.7,.2,1) both; }
.ad-country-row > b { color: #516A85; font-size: 10px; font-weight: 850; text-align: right; }

.ad-customer-list { display: flex; flex-direction: column; }
.ad-customer-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 3px; border-bottom: 1px solid #EDF2F7; color: var(--ad-ink) !important; transition: padding .2s ease, background .2s ease; }
.ad-customer-row:last-child { border-bottom: 0; }
.ad-customer-row:hover { padding-right: 7px; padding-left: 7px; border-radius: 10px; color: var(--ad-ink) !important; background: #F7FAFD; }
.ad-customer-avatar { position: relative; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #D2E0EE; border-radius: 11px; color: var(--ad-blue); background: var(--ad-blue-soft); font-size: 11px; font-weight: 850; }
.ad-customer-avatar i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 15px; height: 15px; border: 2px solid #FFFFFF; border-radius: 50%; color: #FFFFFF; background: var(--ad-blue); font-size: 6px; font-style: normal; }
.ad-customer-copy { display: flex; min-width: 0; flex-direction: column; }
.ad-customer-copy strong { overflow: hidden; color: var(--ad-ink); font-size: 10px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.ad-customer-copy small { margin-top: 3px; overflow: hidden; color: #8A9AAF; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ad-customer-value { display: flex; align-items: center; gap: 6px; color: #506B88; }
.ad-customer-value strong { font-size: 10px; font-weight: 850; }
.ad-customer-value i { color: #A1B0C1; font-size: 11px; }
.ad-panel-footer { justify-content: center; width: 100%; min-height: 35px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #EDF2F7; }

.staff-dashboard-page .ad-operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.staff-dashboard-page .staff-quick-panel { padding: 0; overflow: hidden; }
.staff-dashboard-page .as-quick-menu-head { position: static; }
.staff-dashboard-page .as-quick-menu-title h3 { margin-bottom: 0; }
.staff-dashboard-page .as-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-dashboard-page .ad-command-actions { display: flex; }
.staff-dashboard-page .ad-range-dropdown { flex: 1; }
.staff-dashboard-page .ad-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

@media (max-width: 1399.98px) {
    .staff-dashboard-page .ad-operations-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    .staff-dashboard-page .as-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .staff-dashboard-page .as-quick-grid { grid-template-columns: minmax(0, 1fr); }
}

.ad-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 110px; color: #8A9AAF; font-size: 10px; }
.ad-empty i { color: #9CB3CD; font-size: 21px; }

.ad-date-modal .modal-content { overflow: hidden; border: 1px solid #D8E4F0; border-radius: 18px; box-shadow: 0 28px 70px rgba(35,73,112,.22); }
.ad-date-modal .modal-header { align-items: center; padding: 17px 19px; border-color: #E6EDF5; background: linear-gradient(100deg, #FFFFFF, #F2F7FC); }
.ad-date-modal .modal-title { margin-top: 3px; color: var(--ad-ink); font-size: 17px; font-weight: 820; }
.ad-date-modal .modal-body { padding: 20px; }
.ad-date-form { display: grid; grid-template-columns: 1fr 22px 1fr auto; align-items: end; gap: 10px; }
.ad-date-field label { display: block; margin-bottom: 5px; color: #61758D; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ad-date-field .form-control { min-height: 42px; border-color: #D5E1ED; border-radius: 11px; color: var(--ad-ink); font-size: 11px; }
.ad-date-arrow { display: grid; place-items: center; height: 42px; color: #9AABBD; }

@keyframes adPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(91,143,200,.10); } 50% { box-shadow: 0 0 0 7px rgba(91,143,200,.03); } }
@keyframes adBars { 0%,100% { transform: scaleY(.74); opacity: .68; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes adTravel { 0%,100% { left: 0; } 50% { left: calc(100% - 16px); } }
@keyframes adSpin { to { transform: rotate(360deg); } }
@keyframes adGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1399.98px) {
    .ad-command-bar::after { display: none; }
    .ad-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ad-operations-grid,
    .ad-analytics-grid,
    .ad-market-grid { grid-template-columns: 1fr; }
    .ad-country-content { grid-template-columns: minmax(300px, 1.1fr) minmax(270px, .9fr); }
}

@media (max-width: 991.98px) {
    .ad-command-bar { align-items: flex-start; flex-direction: column; gap: 14px; }
    .ad-command-actions { width: 100%; }
    .ad-range-dropdown { margin-left: auto; }
    .ad-partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .admin-dashboard-page.ad-dashboard { gap: 18px; }
    .ad-command-bar { padding: 16px; border-radius: 15px; }
    .ad-command-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch; }
    .ad-command-actions > .ad-primary-action { width: 100%; }
    .ad-range-dropdown { grid-column: 1 / -1; width: 100%; margin-left: 0; }
    .ad-range-button { justify-content: space-between; width: 100%; }
    .ad-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ad-section-actions { width: 100%; justify-content: space-between; }
    .ad-kpi-grid { grid-template-columns: 1fr; }
    .ad-status-grid { display: flex; width: 100%; padding: 1px 0 9px; overflow-x: auto; scroll-snap-type: x proximity; }
    .ad-status-card { flex: 0 0 162px; scroll-snap-align: start; }
    .ad-partner-grid,
    .ad-fuel-grid { grid-template-columns: 1fr; }
    .ad-vendor-content { grid-template-columns: 1fr; }
    .ad-vendor-donut { height: 210px; }
    .ad-country-content { grid-template-columns: 1fr; }
    .ad-map-shell,
    .ad-world-map,
    .ad-world-map .jvectormap-container { min-height: 255px; }
    .ad-date-form { grid-template-columns: 1fr 1fr; }
    .ad-date-arrow { display: none; }
    .ad-date-form .ad-primary-action { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .ad-command-title { align-items: flex-start; }
    .ad-command-mark { flex-basis: 38px; width: 38px; height: 38px; }
    .ad-command-bar p { max-width: 250px; }
    .ad-panel { padding: 14px; border-radius: 15px; }
    .ad-panel-head { align-items: flex-start; }
    .ad-panel-badge { white-space: normal; text-align: right; }
    .ad-country-row { grid-template-columns: 34px minmax(0, 1fr) 26px; }
    .ad-country-bar { grid-column: 2 / 4; grid-row: 2; margin-top: -4px; }
    .ad-customer-value strong { font-size: 9px; }
    .ad-date-form { grid-template-columns: 1fr; }
    .ad-date-form .ad-primary-action { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .ad-dashboard *,
    .ad-dashboard *::before,
    .ad-dashboard *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Final HM International authority layer. Keep this last. */
:root {
    --brand-primary: #087A32;
    --brand-primary-rgb: 8, 122, 50;
    --brand-secondary: #16A34A;
    --brand-secondary-rgb: 22, 163, 74;
    --brand-accent: #39BF72;
    --brand-accent-rgb: 73, 219, 154;
    --brand-dark: #0B2417;
    --brand-bg: #F4F8FB;
    --brand-text: #172B20;
    --brand-muted: #63788C;
    --brand-border: #D9E5ED;
    --brand-success: #087A32;
    --brand-gradient: linear-gradient(135deg, #0B2417 0%, #087A32 62%, #079665 100%);
    --brand-shadow-card: 0 1px 2px rgba(5,40,73,.04), 0 10px 28px rgba(8,122,50,.075);
    --brand-shadow-hover: 0 16px 38px rgba(8,122,50,.16);
}

html { --primary-rgb: 8, 122, 50 !important; }

body, .main-wrapper, .page-wrapper, .content { background-color: var(--brand-bg) !important; }

.header,
[data-topbar=white] .header {
    background: linear-gradient(90deg, #FFFFFF 0%, #F6FBFF 64%, #EAFBF3 100%) !important;
    border-bottom-color: var(--brand-border) !important;
    box-shadow: 0 5px 22px rgba(8,122,50,.075) !important;
}

.header .header-left { background: rgba(255,255,255,.76); }
.header .header-left .as-topbar-logo { justify-content: flex-start; gap: 9px; }
.header .header-left .as-topbar-logo img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 2px;
    border: 0;
    border-radius: 14px;
    object-fit: contain;
    background: #FFFFFF;
    filter: drop-shadow(0 6px 12px rgba(8,122,50,.14));
}

.header .header-left .as-wordmark .as-wordmark-top { color: var(--brand-dark) !important; font-size: 12.5px !important; font-weight: 850 !important; letter-spacing: -.01em !important; }
.header .header-left .as-wordmark .as-wordmark-bottom { color: var(--brand-success) !important; font-size: 8px !important; letter-spacing: .13em !important; }

.sidebar { background: #FFFFFF !important; border-right-color: var(--brand-border) !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 { color: var(--brand-primary) !important; background: linear-gradient(90deg, #ECF6EF, #EFFCF6) !important; }
.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu > ul > li.active > a { box-shadow: inset 3px 0 0 var(--brand-secondary); }

.btn.btn-primary,
.btn-primary,
[data-color=primary] .btn.btn-primary,
[data-color=primary] .page-header .btn-added { border-color: var(--brand-primary) !important; background: var(--brand-primary) !important; box-shadow: 0 9px 21px rgba(var(--brand-primary-rgb),.22) !important; }
.btn.btn-primary:hover,
.btn-primary:hover,
[data-color=primary] .btn.btn-primary:hover { border-color: #065A2C !important; background: #065A2C !important; }
.btn.btn-as-cta,
.btn-as-cta,
a.btn.btn-as-cta { border-color: var(--brand-secondary) !important; background: var(--brand-secondary) !important; box-shadow: 0 8px 20px rgba(var(--brand-secondary-rgb),.25) !important; }
.btn.btn-as-cta:hover,
.btn-as-cta:hover { border-color: var(--brand-success) !important; background: var(--brand-success) !important; }

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

.profile-nav .user-letter img { padding: 2px; border-color: rgba(var(--brand-secondary-rgb),.35); object-fit: contain; background: #FFFFFF; }
.as-footer-badge-gold { border-color: #BCEAD3 !important; background: #ECFBF4 !important; color: var(--brand-success) !important; }

div#global-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(8,122,50,.48), transparent 28%),
        radial-gradient(circle at 18% 15%, rgba(22,163,74,.20), transparent 25%),
        radial-gradient(circle at 84% 86%, rgba(22,163,74,.16), transparent 28%),
        linear-gradient(145deg, #031C35 0%, #052E55 52%, #03233F 100%) !important;
}
.sky-preloader-aura { background: rgba(var(--brand-secondary-rgb),.27); }
.sky-preloader-route-outer { stroke: rgba(89,233,171,.54); }
.sky-preloader-route-cross { stroke: rgba(51,181,244,.35); }
.sky-preloader-node { fill: #83D9A2; stroke: rgba(98,236,175,.20); }
.sky-preloader-packet { background: linear-gradient(90deg, #DDF8FF, #52C57B 58%, #087A32); box-shadow: 0 0 0 3px rgba(22,163,74,.11), 0 0 20px rgba(22,163,74,.58); }
.sky-preloader-logo { padding: 10px; border-color: rgba(98,236,175,.55); background: #FFFFFF; box-shadow: 0 0 0 7px rgba(22,163,74,.08), 0 25px 65px rgba(0,7,19,.55), inset 0 0 0 1px rgba(255,255,255,.75); }
.sky-preloader-logo img { border-radius: 0; object-fit: contain; }
.sky-preloader-kicker { color: #A9F5D1; }
.sky-preloader-kicker > i { background: var(--brand-secondary); box-shadow: 0 0 0 4px rgba(var(--brand-secondary-rgb),.14); }
.sky-preloader-progress > i { background: linear-gradient(90deg, transparent, var(--brand-secondary), #4BD99B, transparent); }

.party-dashboard-page.pd-dashboard {
    --pd-blue: #087A32;
    --pd-blue-deep: #065A2C;
    --pd-blue-soft: #ECF6EF;
    --pd-orange: #16A34A;
    --pd-orange-soft: #E8F7EC;
    --pd-silver: #8FCFB1;
    --pd-ink: #172B20;
    --pd-copy: #64788B;
    --pd-line: #D9E5ED;
    --pd-shadow: 0 12px 34px rgba(8,122,50,.08);
}

.admin-dashboard-page.ad-dashboard {
    --ad-blue: #087A32;
    --ad-blue-deep: #065A2C;
    --ad-blue-soft: #ECF6EF;
    --ad-orange: #16A34A;
    --ad-orange-soft: #E8F7EC;
    --ad-silver: #8FCFB1;
    --ad-ink: #172B20;
    --ad-copy: #64788B;
    --ad-line: #D9E5ED;
    --ad-shadow: 0 12px 34px rgba(8,122,50,.08);
}

.pd-welcome,
.ad-command-bar {
    border-color: rgba(var(--brand-primary-rgb),.16);
    background: radial-gradient(260px 125px at 91% 118%, rgba(var(--brand-secondary-rgb),.17), transparent 73%), linear-gradient(104deg, #FFFFFF 0%, #F8FBFD 58%, #EDFBF5 100%);
    box-shadow: var(--brand-shadow-card);
}
.pd-welcome::before,
.ad-command-bar::before { background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary)); }
.pd-welcome::after,
.ad-command-bar::after { content: "HM"; color: rgba(var(--brand-primary-rgb),.035); }
.pd-welcome-mark,
.ad-command-mark,
.pd-panel-icon,
.ad-panel-icon { border-color: #CDE6DB; color: var(--brand-success); background: #FFFFFF; box-shadow: 0 8px 18px rgba(var(--brand-secondary-rgb),.10); }

.pd-primary-action,
.pd-mini-primary,
.ad-primary-action { border-color: var(--brand-secondary); background: var(--brand-secondary); box-shadow: 0 9px 20px rgba(var(--brand-secondary-rgb),.22); }
.pd-primary-action:hover,
.pd-mini-primary:hover,
.ad-primary-action:hover { background: var(--brand-success); box-shadow: 0 12px 24px rgba(var(--brand-secondary-rgb),.27); }
.pd-wallet-card,
.ad-kpi-payments { background: radial-gradient(210px 130px at 100% 100%, rgba(22,163,74,.20), transparent 72%), linear-gradient(145deg, #FFFFFF, #F2FBF7) !important; }
.pd-country-bar i,
.ad-country-bar i { background: linear-gradient(90deg, #67DFA6, #087A32); }

.pd-tone-1, .ad-status-tone-1 { --pd-tone:#087A32; --pd-tone-bg:#ECF6EF; --ad-status-tone:#087A32; --ad-status-soft:#ECF6EF; }
.pd-tone-2, .ad-status-tone-2 { --pd-tone:#16A34A; --pd-tone-bg:#E8F7EC; --ad-status-tone:#16A34A; --ad-status-soft:#E8F7EC; }
.pd-tone-3, .ad-status-tone-3 { --pd-tone:#7B61B5; --pd-tone-bg:#F1EDFA; --ad-status-tone:#7B61B5; --ad-status-soft:#F1EDFA; }
.pd-tone-4, .ad-status-tone-4 { --pd-tone:#198F51; --pd-tone-bg:#FFF6E6; --ad-status-tone:#198F51; --ad-status-soft:#FFF6E6; }
.pd-tone-5, .ad-status-tone-5 { --pd-tone:#0B8091; --pd-tone-bg:#E8F8FA; --ad-status-tone:#0B8091; --ad-status-soft:#E8F8FA; }
.as-quick-tone-1 { --as-quick-tone:#087A32; --as-quick-soft:#ECF6EF; }
.as-quick-tone-2 { --as-quick-tone:#16A34A; --as-quick-soft:#E8F7EC; }
.as-quick-tone-3 { --as-quick-tone:#7B61B5; --as-quick-soft:#F1EDFA; }
.as-quick-tone-4 { --as-quick-tone:#198F51; --as-quick-soft:#FFF6E6; }

@media (max-width: 991.98px) {
    .header .header-left .as-topbar-logo img { width: 44px; height: 44px; }
    .header .header-left .as-wordmark { display: none !important; }
}

@media (min-width: 992px) {
    body.mini-sidebar .header .header-left .as-topbar-logo { justify-content: center; }
    body.mini-sidebar .header .header-left .as-topbar-logo img { width: 44px; height: 44px; padding: 2px; border-radius: 13px; }
}

/* Keep the simplified preloader surface authoritative over legacy rules. */
div#global-loader {
    padding: 24px !important;
    background: #F7FAFC !important;
    transition: opacity .28s ease, visibility .28s ease !important;
}

div#global-loader::before,
div#global-loader::after {
    display: none !important;
    content: none !important;
}

/* Final Shipment/Create readability guard. */
.shipment-create-workspace .sky-tab-copy strong { font-size: 12px; }
.shipment-create-workspace .sky-tab-copy small { font-size: 9px; }
.shipment-create-workspace .sky-step-intro p { font-size: 10.5px; }
.shipment-create-workspace .as-section-head h5 { font-size: 13px; }
.shipment-create-workspace .as-section-head small { font-size: 9.5px; }
.shipment-create-workspace .as-label { font-size: 10.5px; }
.shipment-create-workspace .as-input,
.shipment-create-workspace .select2-container--default .select2-selection--single { font-size: 11.5px; }

/* Global HM International Select2 color system — replaces every legacy orange state. */
.select2-container--default .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted),
.select2-container--default .select2-results__option--selected:not(.select2-results__option--highlighted),
.select2-container--classic .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background: #E7F8F0 !important;
    color: #076B35 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--selectable.select2-results__option--highlighted,
.select2-container--classic .select2-results__option--highlighted[aria-selected],
[data-color] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-theme=dark] .select2-container--default .select2-results__option--highlighted[aria-selected],
.main-chat-blk .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #16A34A !important;
    color: #FFFFFF !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple,
[data-color] .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
[data-color] .select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
    border-color: #16A34A !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .11) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus,
.select2-container--classic .select2-search--dropdown .select2-search__field:focus {
    border-color: #16A34A !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .10) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
    border-color: #16A34A !important;
    background: #16A34A !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
    border-color: rgba(255,255,255,.24) !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #087A32 !important;
    color: #FFFFFF !important;
}

/* Shipment register — compact operations workspace. */
.shipment-list-page {
    --sl-navy: #0B2417;
    --sl-blue: #087A32;
    --sl-green: #16A34A;
    --sl-ink: #172B20;
    --sl-muted: #687E91;
    --sl-line: #DCE7EF;
    --sl-soft: #F5F9FC;
    --sl-green-soft: #EAF9F2;
}

.shipment-list-page .shipment-list-header {
    min-height: 94px;
    margin-bottom: 18px;
    padding: 18px 22px !important;
    border: 1px solid #D7E7EE !important;
    border-left: 5px solid var(--sl-green) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 86% 5%, rgba(22,163,74,.10), transparent 28%),
        linear-gradient(115deg, #F7FBFE 0%, #EDF8F7 100%) !important;
    box-shadow: 0 12px 32px rgba(7,59,115,.08) !important;
}

.shipment-list-page .shipment-list-header .page-title {
    gap: 13px;
}

.shipment-list-page .shipment-list-title-mark {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(8,122,50,.10);
    border-radius: 13px;
    color: var(--sl-blue);
    background: #E4F1FA;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.shipment-list-page .shipment-list-title-mark i { font-size: 19px; }
.shipment-list-page .shipment-list-header .fdx-page-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--sl-green) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1;
    text-transform: uppercase;
}

.shipment-list-page .shipment-list-header h4 {
    color: var(--sl-ink);
    font-size: 21px;
    line-height: 1.2;
}

.shipment-list-page .shipment-list-header h4 .text-primary { color: var(--sl-blue) !important; }
.shipment-list-page .shipment-list-header h6 {
    margin-top: 4px;
    color: var(--sl-muted);
    font-size: 12px;
    font-weight: 500;
}

.shipment-list-page .shipment-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.shipment-list-page .shipment-range-chip {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(8,122,50,.14);
    border-radius: 12px;
    color: var(--sl-navy);
    background: rgba(255,255,255,.72);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.shipment-list-page .shipment-range-chip > i:first-child { color: var(--sl-green); font-size: 15px; }
.shipment-list-page .shipment-range-chip .ti-arrow-right { color: #91A4B4; font-size: 12px; }
.shipment-list-page .shipment-new-btn,
.shipment-list-page .shipment-back-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px !important;
    font-size: 12px;
    font-weight: 750;
}

.shipment-list-page .shipment-back-btn {
    border: 1px solid rgba(8,122,50,.34) !important;
    color: var(--sl-blue) !important;
    background: rgba(255,255,255,.70) !important;
    box-shadow: none !important;
}

.shipment-list-page .shipment-back-btn:hover { background: #FFFFFF !important; }

.shipment-list-page .shipment-status-panel {
    margin-bottom: 18px;
    padding: 15px 16px 16px;
    border: 1px solid var(--sl-line);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 9px 26px rgba(7,59,115,.055);
}

.shipment-list-page .shipment-status-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.shipment-list-page .shipment-section-kicker,
.shipment-list-page .shipment-results-heading > div > span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    color: var(--sl-green);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
}

.shipment-list-page .shipment-status-heading h2,
.shipment-list-page .shipment-results-heading h2 {
    margin: 0;
    color: var(--sl-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.shipment-list-page .shipment-status-heading p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--sl-muted);
    font-size: 10.5px;
}

.shipment-list-page .shipment-status-heading p i { color: var(--sl-blue); font-size: 14px; }

.shipment-list-page .shipment-status-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.shipment-list-page .shipment-status-card {
    position: relative;
    min-width: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    overflow: hidden;
    border: 1px solid var(--sl-line);
    border-radius: 14px;
    color: var(--sl-ink);
    background: #FBFDFE;
    box-shadow: 0 3px 10px rgba(16,42,67,.035);
    text-decoration: none !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.shipment-list-page .shipment-status-card::before {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    content: "";
    background: transparent;
}

.shipment-list-page .shipment-status-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8,122,50,.28);
    color: var(--sl-ink);
    background: #FFFFFF;
    box-shadow: 0 10px 22px rgba(8,122,50,.09);
}

.shipment-list-page .shipment-status-card:focus-visible {
    outline: 3px solid rgba(22,163,74,.20);
    outline-offset: 2px;
}

.shipment-list-page .shipment-status-card.active {
    border-color: transparent;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--sl-navy), var(--sl-blue) 58%, #078B72) !important;
    box-shadow: 0 11px 24px rgba(8,122,50,.20);
}

.shipment-list-page .shipment-status-card.active::before { background: #39DB94; }
.shipment-list-page .shipment-status-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(16,42,67,.12);
}

.shipment-list-page .shipment-status-icon i { color: inherit !important; font-size: 15px; }
.shipment-list-page .shipment-status-card.active .shipment-status-icon {
    color: #FFFFFF !important;
    background: rgba(255,255,255,.16) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
}

.shipment-list-page .shipment-status-copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.shipment-list-page .shipment-status-copy strong {
    color: var(--sl-ink);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.05;
}

.shipment-list-page .shipment-status-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-list-page .shipment-status-card.active .shipment-status-copy strong,
.shipment-list-page .shipment-status-card.active .shipment-status-copy small { color: #FFFFFF !important; }
.shipment-list-page .shipment-status-arrow {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8296A7;
    background: #EFF4F7;
    font-size: 11px;
}

.shipment-list-page .shipment-status-card.active .shipment-status-arrow {
    color: #FFFFFF;
    background: rgba(255,255,255,.17);
}

.shipment-list-page .shipment-results-card {
    overflow: hidden;
    border: 1px solid var(--sl-line) !important;
    border-radius: 18px !important;
    background: #FFFFFF;
    box-shadow: 0 15px 36px rgba(7,59,115,.08) !important;
}

.shipment-list-page .shipment-results-toolbar {
    display: grid !important;
    grid-template-columns: minmax(205px,.75fr) minmax(390px,1.2fr) minmax(225px,.65fr);
    align-items: end !important;
    gap: 20px !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--sl-line) !important;
    background: linear-gradient(180deg, #FFFFFF, #F8FBFD) !important;
}

.shipment-list-page .shipment-results-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 1px;
}

.shipment-list-page .shipment-results-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--sl-blue);
    background: #EAF4FB;
    font-size: 17px;
}

.shipment-list-page .shipment-results-heading h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shipment-list-page .shipment-results-heading h2 small {
    display: inline-flex;
    margin-left: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #076B35;
    background: var(--sl-green-soft);
    font-size: 9px;
    font-weight: 800;
    vertical-align: 2px;
}

.shipment-list-page .shipment-date-filter {
    display: grid;
    grid-template-columns: minmax(135px,1fr) minmax(135px,1fr) auto;
    align-items: end;
    gap: 9px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.shipment-list-page .shipment-date-filter .as-field { min-width: 0; }
.shipment-list-page .shipment-date-filter .as-field label,
.shipment-list-page .shipment-list-search > label {
    display: flex;
    min-height: 14px;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    color: var(--sl-muted);
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
}

.shipment-list-page .shipment-date-filter .form-control {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid #D6E3EC;
    border-radius: 10px;
    color: var(--sl-ink);
    background: #FFFFFF;
    font-size: 11px;
    box-shadow: none;
}

.shipment-list-page .shipment-date-filter .form-control:focus {
    border-color: var(--sl-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,.10);
}

.shipment-list-page .shipment-date-filter .as-apply-btn {
    min-width: 82px;
    height: 40px;
    justify-content: center;
    border-radius: 10px !important;
    font-size: 11px;
}

.shipment-list-page .shipment-list-search { min-width: 0; }
.shipment-list-page .shipment-list-search > label { margin-left: 1px; }
.shipment-list-page .shipment-list-search > label i { color: var(--sl-green); font-size: 13px; }
.shipment-list-page .shipment-list-search .search-set,
.shipment-list-page .shipment-list-search .search-input,
.shipment-list-page .shipment-list-search .dataTables_filter { width: 100%; }
.shipment-list-page .shipment-list-search .dataTables_filter { margin: 0 !important; }
.shipment-list-page .shipment-list-search .dataTables_filter label { width: 100%; margin: 0 !important; }
.shipment-list-page .shipment-list-search .dataTables_filter input {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 8px 38px 8px 12px !important;
    border: 1px solid #D6E3EC !important;
    border-radius: 10px !important;
    color: var(--sl-ink) !important;
    background-color: #FFFFFF !important;
    background-position: calc(100% - 12px) center !important;
    box-shadow: none !important;
    font-size: 11px !important;
}

.shipment-list-page .shipment-list-search .dataTables_filter input:focus {
    border-color: var(--sl-green) !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.10) !important;
}

.shipment-list-page .as-shipment-table-wrap.table-responsive { overflow-x: auto; }
.shipment-list-page .as-shipment-table.dataTable,
.shipment-list-page .as-shipment-table {
    min-width: 1080px;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.shipment-list-page .as-shipment-table thead th {
    height: 48px;
    padding: 11px 10px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    color: #FFFFFF !important;
    background: var(--sl-navy) !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: .07em;
    line-height: 1.25;
    text-transform: uppercase;
}

.shipment-list-page .as-shipment-table thead th:first-child { padding-left: 16px !important; }
.shipment-list-page .as-shipment-table thead th:last-child { border-right: 0 !important; }
.shipment-list-page .as-shipment-table tbody td {
    padding: 13px 10px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #E6EEF3 !important;
    color: #53697C;
    background: #FFFFFF;
    font-size: 10.5px;
    line-height: 1.4;
}

.shipment-list-page .as-shipment-table tbody td:first-child { padding-left: 16px !important; }
.shipment-list-page .as-shipment-table tbody tr:last-child td { border-bottom: 0 !important; }
.shipment-list-page .as-shipment-table tbody tr:not(:has(td.dataTables_empty)):hover td { background: #F6FBFE; }
.shipment-list-page .as-shipment-table tbody tr:not(:has(td.dataTables_empty)) { transition: background .15s ease; }
.shipment-list-page .as-shipment-table .as-cell-strong { color: var(--sl-ink); font-weight: 750; }
.shipment-list-page .as-shipment-table .as-cell-sub { margin-top: 2px; color: #7A8D9D; font-size: 9.5px; }
.shipment-list-page .as-shipment-table .as-mono { color: var(--sl-blue); font-size: 10.5px; font-weight: 800; }
.shipment-list-page .as-shipment-table .as-price { color: var(--sl-ink); font-size: 11px; font-weight: 850; }
.shipment-list-page .as-shipment-table .as-type-badge,
.shipment-list-page .as-shipment-table .as-status-tag,
.shipment-list-page .as-shipment-table .as-country-chip {
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

.shipment-list-page .as-shipment-table .as-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid #D7E8F4;
    color: var(--sl-blue);
    background: #EFF7FC;
}

.shipment-list-page .as-shipment-table .as-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #D8E9E1;
    color: #076B35;
    background: #EFFAF5;
}

.shipment-list-page .as-shipment-table .as-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.shipment-list-page .as-shipment-table .as-net-logo {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 3px;
    border: 1px solid #E0EAF0;
    border-radius: 8px;
    object-fit: contain;
    background: #FFFFFF;
}

.shipment-list-page .as-shipment-table .as-actions { gap: 4px; }
.shipment-list-page .as-shipment-table .as-action-btn {
    width: 29px;
    height: 29px;
    border: 1px solid #D7E4EC;
    border-radius: 8px !important;
    color: #577087;
    background: #FFFFFF;
    box-shadow: 0 2px 5px rgba(16,42,67,.035);
    cursor: pointer;
}

.shipment-list-page .as-shipment-table .as-action-btn i { font-size: 13px; }
.shipment-list-page .as-shipment-table .as-action-btn:hover {
    transform: translateY(-1px);
    border-color: var(--sl-blue);
    color: var(--sl-blue);
    background: #EDF6FC;
    box-shadow: 0 5px 12px rgba(8,122,50,.11);
}

.shipment-list-page .as-shipment-table .as-action-edit:hover {
    border-color: var(--sl-green);
    color: #076B35;
    background: var(--sl-green-soft);
}

.shipment-list-page .as-shipment-table .as-action-del:hover {
    border-color: #E1525D;
    color: #CF3542;
    background: #FFF1F2;
}

.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_length,
.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_info,
.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_paginate {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_length {
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 10px 0 10px 18px;
    color: var(--sl-muted);
    font-size: 10px;
}

.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_info {
    padding: 23px 10px 10px !important;
    color: var(--sl-muted);
    font-size: 10px;
}

.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_paginate {
    padding: 14px 18px 10px 0 !important;
}

.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_length,
.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_info,
.shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_paginate {
    border-top: 1px solid #E6EEF3;
}

.shipment-list-page .shipment-results-card .dataTables_length select {
    height: 34px !important;
    margin: 0 6px !important;
    border: 1px solid #D7E4EC !important;
    border-radius: 9px !important;
    color: var(--sl-ink) !important;
    background-color: #FFFFFF !important;
    font-size: 10.5px;
}

.shipment-list-page .shipment-results-card .paginate_button {
    min-width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 2px !important;
    padding: 0 9px !important;
    border: 1px solid #D7E4EC !important;
    border-radius: 8px !important;
    color: var(--sl-blue) !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

.shipment-list-page .shipment-results-card .paginate_button.current,
.shipment-list-page .shipment-results-card .paginate_button:hover {
    border-color: var(--sl-blue) !important;
    color: #FFFFFF !important;
    background: var(--sl-blue) !important;
}

.shipment-list-page .shipment-results-card .paginate_button.disabled {
    border-color: #E5EDF2 !important;
    color: #B8C4CE !important;
    background: #FAFCFD !important;
}

.shipment-list-page .as-shipment-table td.dataTables_empty {
    height: 215px;
    padding: 0 !important;
    border-bottom: 0 !important;
}

.shipment-list-page .shipment-empty-state {
    min-height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(22,163,74,.055), transparent 34%),
        #FFFFFF;
}

.shipment-list-page .shipment-empty-icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid #DCEAF0;
    border-radius: 16px;
    color: var(--sl-blue);
    background: linear-gradient(145deg, #EFF7FC, #EBFAF3);
    box-shadow: 0 8px 18px rgba(8,122,50,.08);
    font-size: 23px;
}

.shipment-list-page .shipment-empty-icon::after {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 15px;
    height: 15px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    content: "";
    background: var(--sl-green);
}

.shipment-list-page .shipment-empty-state h3 {
    margin: 0 0 4px;
    color: var(--sl-ink);
    font-size: 14px;
    font-weight: 800;
}

.shipment-list-page .shipment-empty-state p {
    max-width: 400px;
    margin: 0 0 12px;
    color: var(--sl-muted);
    font-size: 10.5px;
    line-height: 1.55;
}

.shipment-list-page .shipment-empty-state .btn {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 9px !important;
    font-size: 10.5px;
}

@media (max-width: 1399.98px) {
    .shipment-list-page .shipment-range-chip { display: none; }
    .shipment-list-page .shipment-results-toolbar {
        grid-template-columns: minmax(190px,.65fr) minmax(370px,1.1fr) minmax(210px,.65fr);
        gap: 14px !important;
    }
    .shipment-list-page .shipment-status-card { padding: 9px; }
    .shipment-list-page .shipment-status-arrow { display: none; }
}

@media (max-width: 1199.98px) {
    .shipment-list-page .shipment-status-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
    .shipment-list-page .shipment-results-toolbar {
        grid-template-columns: minmax(190px,.7fr) minmax(390px,1.3fr);
    }
    .shipment-list-page .shipment-list-search { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .shipment-list-page .as-shipment-table.dataTable,
    .shipment-list-page .as-shipment-table { min-width: 0; }
    .shipment-list-page .as-shipment-table tbody tr.shipment-data-row {
        margin: 8px 0 12px;
        border: 1px solid var(--sl-line) !important;
        border-left: 4px solid var(--sl-blue) !important;
        border-radius: 14px !important;
        background: #FFFFFF;
        box-shadow: 0 7px 18px rgba(7,59,115,.06);
    }
    .shipment-list-page .as-shipment-table td.dataTables_empty {
        height: auto;
        display: block;
        padding: 0 !important;
    }
    .shipment-list-page .shipment-empty-state { min-height: 230px; border-radius: 13px; }
}

@media (max-width: 767.98px) {
    .shipment-list-page .shipment-list-header {
        align-items: flex-start !important;
        gap: 14px;
        padding: 16px !important;
    }
    .shipment-list-page .shipment-list-header .page-title { align-items: flex-start !important; }
    .shipment-list-page .shipment-list-title-mark { flex-basis: 40px; width: 40px; height: 40px; }
    .shipment-list-page .shipment-list-header h4 { font-size: 18px; }
    .shipment-list-page .shipment-list-header h6 { line-height: 1.45; }
    .shipment-list-page .shipment-header-actions { width: 100%; }
    .shipment-list-page .shipment-header-actions .btn { flex: 1 1 auto; }
    .shipment-list-page .shipment-status-panel { padding: 13px; }
    .shipment-list-page .shipment-status-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .shipment-list-page .shipment-status-grid {
        grid-template-columns: repeat(6, minmax(150px,1fr));
        margin-right: -13px;
        padding-right: 13px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }
    .shipment-list-page .shipment-status-card { scroll-snap-align: start; }
    .shipment-list-page .shipment-results-toolbar { grid-template-columns: 1fr; padding: 14px !important; }
    .shipment-list-page .shipment-list-search { grid-column: auto; }
    .shipment-list-page .shipment-date-filter { grid-template-columns: 1fr 1fr; }
    .shipment-list-page .shipment-date-filter .as-field:last-child { grid-column: 1 / -1; }
    .shipment-list-page .shipment-date-filter .as-apply-btn { width: 100%; }
    .shipment-list-page .as-shipment-table.dataTable,
    .shipment-list-page .as-shipment-table { min-width: 0; }
    .shipment-list-page .as-shipment-table-wrap.table-responsive { padding: 8px 10px 0; }
    .shipment-list-page .as-shipment-table tbody tr.shipment-data-row {
        margin: 8px 0 12px;
        padding: 5px 12px;
        border: 1px solid var(--sl-line) !important;
        border-left: 4px solid var(--sl-blue) !important;
        border-radius: 14px !important;
        background: #FFFFFF;
        box-shadow: 0 7px 18px rgba(7,59,115,.06);
    }
    .shipment-list-page .as-shipment-table tbody td {
        grid-template-columns: 92px minmax(0,1fr);
        padding: 9px 0 !important;
        background: transparent !important;
        font-size: 10.5px;
    }
    .shipment-list-page .as-shipment-table tbody td:first-child { padding-left: 0 !important; }
    .shipment-list-page .as-shipment-table td.dataTables_empty {
        height: auto;
        display: block;
        padding: 0 !important;
    }
    .shipment-list-page .shipment-empty-state { min-height: 230px; border-radius: 13px; }
    .shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_length,
    .shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_info,
    .shipment-list-page .shipment-results-card .dataTables_wrapper > .dataTables_paginate {
        width: 100% !important;
        min-height: auto;
        float: none !important;
        padding: 10px 14px !important;
        text-align: center !important;
    }
}

@media (max-width: 479.98px) {
    .shipment-list-page .shipment-list-header .page-title { width: 100%; }
    .shipment-list-page .shipment-list-title-mark { display: none; }
    .shipment-list-page .shipment-new-btn { flex: 1 1 60%; }
    .shipment-list-page .shipment-back-btn { flex: 1 1 35%; }
    .shipment-list-page .shipment-date-filter { grid-template-columns: 1fr; }
    .shipment-list-page .shipment-date-filter .as-field:last-child { grid-column: auto; }
}

/* Application footer */
.copyright-footer.as-app-footer {
    display: block !important;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    border-top: 4px solid #0B8A41 !important;
    background: #F8FBF9 !important;
    color: #102A1B;
    box-shadow: 0 -10px 28px rgba(5, 42, 22, .06);
    text-align: left;
}

.as-app-footer .as-footer-main {
    display: grid;
    grid-template-columns: minmax(225px, 270px) minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    padding: 16px 24px;
}

.as-app-footer .as-footer-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
    padding: 12px 15px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(125deg, #071E12, #0C3C25);
    box-shadow: 0 8px 20px rgba(6, 46, 23, .12);
}

.as-app-footer .as-footer-brand::after {
    position: absolute;
    right: -36px;
    bottom: -76px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(108, 225, 150, .16);
    border-radius: 50%;
    content: "";
}

.as-app-footer .as-footer-brand-mark {
    z-index: 1;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 12px;
    background: #FFFFFF;
}

.as-app-footer .as-footer-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.as-app-footer .as-footer-brand-copy,
.as-app-footer .as-footer-contact-copy {
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.as-app-footer .as-footer-brand-copy strong {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.as-app-footer .as-footer-brand-copy small {
    margin-top: 4px;
    color: #A5DDB9;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.as-app-footer .as-footer-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.55fr);
    align-items: center;
    min-width: 0;
}

.as-app-footer .as-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 12px;
    border-left: 1px solid #DCE9E0;
    color: #102A1B !important;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

.as-app-footer a.as-footer-contact-item:hover,
.as-app-footer a.as-footer-contact-item:focus-visible {
    border-radius: 10px;
    color: #087A32 !important;
    background: #E9F6ED;
}

.as-app-footer .as-footer-contact-icon {
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #D6EADC;
    border-radius: 11px;
    color: #087A32;
    background: #EBF7EF;
    font-size: 17px;
}

.as-app-footer .as-footer-contact-copy small {
    margin-bottom: 4px;
    color: #728A79;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.as-app-footer .as-footer-contact-copy strong {
    color: #102A1B;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.as-app-footer .as-footer-contact-address .as-footer-contact-copy strong {
    font-size: 10.5px;
    font-weight: 600;
}

.as-app-footer .as-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    padding: 7px 24px;
    border-top: 1px solid #DDEBE1;
    background: #EDF5EF;
}

.as-app-footer .as-footer-bottom > small {
    color: #5C7565;
    font-size: 10px;
    font-weight: 600;
}

.as-app-footer .as-footer-credit {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #6C8372;
    font-size: 10px;
    white-space: nowrap;
}

.as-app-footer .as-footer-credit a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #087A32 !important;
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
}

.as-app-footer .as-footer-credit a:hover { color: #0B2417 !important; }

@media (max-width: 1499.98px) {
    .as-app-footer .as-footer-main { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); }
    .as-app-footer .as-footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .as-app-footer .as-footer-main { grid-template-columns: 1fr; gap: 12px; padding: 14px 18px; }
    .as-app-footer .as-footer-brand { min-height: 66px; }
    .as-app-footer .as-footer-contact-item { border-left: 0; border-top: 1px solid #DCE9E0; }
    .as-app-footer .as-footer-bottom { padding: 9px 18px; }
}

@media (max-width: 575.98px) {
    .as-app-footer .as-footer-contact { grid-template-columns: 1fr; }
    .as-app-footer .as-footer-contact-item { min-height: 52px; padding: 8px 4px; }
    .as-app-footer .as-footer-bottom { align-items: flex-start; flex-direction: column; gap: 4px; }
    .as-app-footer .as-footer-credit { flex-wrap: wrap; white-space: normal; }
}


/* Dashboard world map — stable, non-flickering hover details. */
.jvectormap-tip {
    pointer-events: none !important;
}

.admin-dashboard-page .dashboard-map-caption,
.party-dashboard-page .dashboard-map-caption {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-color: rgba(207,220,235,.92);
    color: #183452;
    background: rgba(255,255,255,.94);
    text-align: left;
    pointer-events: none;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.admin-dashboard-page .dashboard-map-caption.is-active,
.party-dashboard-page .dashboard-map-caption.is-active {
    border-color: rgba(22,163,74,.38);
    background: rgba(247,253,250,.97);
    box-shadow: 0 7px 18px rgba(5,142,81,.09);
}

.dashboard-map-caption .dashboard-map-caption-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #087A32;
    background: #EAF4FB;
    font-size: 13px;
    transition: color .16s ease, background-color .16s ease;
}

.dashboard-map-caption.is-active .dashboard-map-caption-icon {
    color: #FFFFFF;
    background: #16A34A;
}

.dashboard-map-caption .dashboard-map-caption-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-map-caption .dashboard-map-caption-copy strong {
    overflow: hidden;
    color: #183452;
    font-size: 9px;
    font-weight: 820;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-map-caption .dashboard-map-caption-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #71869A;
    font-size: 7.5px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header .header-left .as-topbar-logo img,
.as-app-footer .as-footer-brand-mark img,
.profile-nav .user-letter img {
    object-fit: contain;
}
