﻿/* ============================================================
   COURIER MASTER - 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: #2D67B1;
    --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, #2D67B1 0%, #477DBE 52%, #6D9BD0 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: #25599E !important;
        border-color: #25599E !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;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Header wordmark beside the uploaded Courier Master 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, #F59E0B, #F97316) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================================
   17. COURIER MASTER — 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. COURIER MASTER 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 brand 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. Animated Courier Master logo 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;
    background:
        radial-gradient(circle at 50% 42%, rgba(53, 184, 214, .20), transparent 30%),
        radial-gradient(circle at 12% 12%, rgba(8, 127, 169, .10), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(226, 185, 87, .12), transparent 25%),
        #f6fcfe !important;
    opacity: 1;
    visibility: visible;
    transition: opacity .38s ease, visibility .38s ease;
}

/* ========================================================================== 
   23. APPLICATION FOOTER
   Compact contact actions, clear ownership and reliable responsive wrapping.
   ========================================================================== */

.page-wrapper {
    display: flex;
    flex-direction: column;
}

.page-wrapper > .content {
    flex: 1 0 auto;
    min-height: 0;
}

.copyright-footer.as-app-footer {
    position: relative;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0 !important;
    color: var(--brand-text);
    background: #FFFFFF !important;
    border-top: 1px solid var(--brand-border) !important;
    box-shadow: 0 -8px 28px rgba(var(--brand-primary-rgb), .045);
}

.copyright-footer.as-app-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent) 52%, var(--brand-secondary));
}

.as-app-footer__primary {
    display: grid;
    grid-template-columns: minmax(215px, .7fr) minmax(620px, 1.6fr);
    align-items: center;
    gap: 28px;
    padding: 18px 24px 14px;
}

.as-app-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    color: var(--brand-text) !important;
    text-decoration: none;
}

.as-app-footer__brand:hover {
    color: var(--brand-primary) !important;
}

.as-app-footer__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #FFFFFF;
    background: var(--brand-gradient);
    box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), .20);
}

.as-app-footer__brand-mark i {
    font-size: 21px;
}

.as-app-footer__brand-copy,
.as-footer-link__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.as-app-footer__brand-copy strong {
    color: var(--brand-primary);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.as-app-footer__brand-copy span {
    margin-top: 2px;
    color: var(--brand-muted);
    font-size: 11.5px;
    line-height: 1.3;
}

.as-footer-contact {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(175px, .9fr) minmax(205px, 1fr);
    gap: 10px;
    min-width: 0;
}

.copyright-footer.as-app-footer .as-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    padding: 8px 11px;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    color: var(--brand-text) !important;
    background: #FCFAFC;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), .045);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.copyright-footer.as-app-footer .as-footer-link:hover {
    border-color: rgba(var(--brand-primary-rgb), .35);
    color: var(--brand-primary) !important;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), .10);
    transform: translateY(-1px);
}

.as-footer-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    color: var(--brand-primary);
    background: rgba(var(--brand-primary-rgb), .08);
}

.as-footer-link__icon i {
    color: inherit !important;
    font-size: 16px;
}

.as-footer-link__copy small {
    margin-bottom: 1px;
    color: var(--brand-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.as-footer-link__copy strong {
    overflow: hidden;
    color: inherit;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-footer-link__external {
    margin-left: auto;
    flex: 0 0 auto;
    color: #A99CAD;
    font-size: 14px;
}

.as-app-footer__secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    padding: 10px 24px;
    border-top: 1px solid #F0EAF1;
    background: #FCFAFC;
}

.as-app-footer__address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    color: var(--brand-muted);
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.4;
}

.as-app-footer__address i {
    flex: 0 0 auto;
    color: var(--brand-secondary);
    font-size: 15px;
}

.as-app-footer__legal {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--brand-muted);
    font-size: 11.5px;
    line-height: 1.4;
    white-space: nowrap;
}

.copyright-footer.as-app-footer .as-app-footer__legal a {
    color: var(--brand-primary) !important;
    font-weight: 700;
    text-decoration: none;
}

.copyright-footer.as-app-footer .as-app-footer__legal a:hover {
    color: var(--brand-secondary) !important;
    text-decoration: underline;
}

.as-app-footer__divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C9BCCB;
}

@media (max-width: 1199.98px) {
    .as-app-footer__primary {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .as-app-footer__secondary {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .as-app-footer__legal {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .as-app-footer__primary {
        padding: 18px 15px 14px;
    }

    .as-footer-contact {
        grid-template-columns: 1fr;
    }

    .as-footer-link__copy strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .as-app-footer__secondary {
        padding: 11px 15px 14px;
    }

    .as-app-footer__legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        white-space: normal;
    }

    .as-app-footer__divider {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .copyright-footer.as-app-footer .as-footer-link {
        transition: none;
    }
}

div#global-loader::before,
div#global-loader::after {
    content: "";
    position: absolute;
    width: min(56vw, 680px);
    aspect-ratio: 1;
    border: 1px solid rgba(var(--brand-primary-rgb), .07);
    border-radius: 50%;
    pointer-events: none;
}

div#global-loader::before {
    top: -38%;
    left: -17%;
}

div#global-loader::after {
    right: -20%;
    bottom: -48%;
}

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%, 320px);
    text-align: center;
}

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

.sky-preloader-ripple {
    position: absolute;
    inset: 21px;
    border: 1px solid rgba(53, 184, 214, .30);
    border-radius: 50%;
    opacity: 0;
    animation: skyPreloaderRipple 2.35s ease-out infinite;
}

.sky-preloader-ripple-two {
    animation-delay: 1.15s;
}

.sky-preloader-orbit {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    animation: skyPreloaderOrbit 2.7s linear infinite;
}

.sky-preloader-orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(
        from 12deg,
        rgba(53, 184, 214, 0) 0 12%,
        rgba(53, 184, 214, .95) 30%,
        rgba(8, 127, 169, .95) 52%,
        rgba(226, 185, 87, .95) 68%,
        rgba(226, 185, 87, 0) 82% 100%
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
}

.sky-preloader-plane {
    position: absolute;
    top: 50%;
    right: -1px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border: 3px solid #f6fcfe;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), .28);
    transform: rotate(14deg);
}

.sky-preloader-plane i {
    display: block;
    font-size: 17px;
}

.sky-preloader-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 148px;
    height: 122px;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid rgba(53, 184, 214, .25);
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 22px 54px rgba(var(--brand-primary-rgb), .16),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    animation: skyPreloaderFloat 2.1s ease-in-out infinite;
}

.sky-preloader-logo::before {
    content: "";
    position: absolute;
    top: -65%;
    left: -70%;
    width: 46%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    transform: rotate(24deg);
    animation: skyPreloaderShine 2.8s ease-in-out infinite;
}

.sky-preloader-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 124px;
    height: auto;
    object-fit: contain;
}

.sky-preloader-copy {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

.sky-preloader-copy strong {
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.sky-preloader-copy span {
    margin-top: 4px;
    color: #638096;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sky-preloader-progress {
    position: relative;
    display: block;
    width: 172px;
    height: 4px;
    margin-top: 17px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--brand-primary-rgb), .11);
}

.sky-preloader-progress i {
    position: absolute;
    top: 0;
    left: -45%;
    width: 46%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary), var(--brand-accent));
    animation: skyPreloaderProgress 1.35s cubic-bezier(.65, 0, .35, 1) infinite;
}

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

@keyframes skyPreloaderRipple {
    0% {
        transform: scale(.72);
        opacity: 0;
    }
    18% { opacity: .72; }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@keyframes skyPreloaderFloat {
    0%, 100% { transform: translateY(2px) scale(.985); }
    50% { transform: translateY(-5px) scale(1); }
}

@keyframes skyPreloaderShine {
    0%, 30% { left: -70%; }
    65%, 100% { left: 125%; }
}

@keyframes skyPreloaderProgress {
    0% { left: -46%; }
    55% { width: 62%; }
    100% { left: 102%; }
}

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

    .sky-preloader-logo {
        width: 132px;
        height: 108px;
        border-radius: 25px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .sky-preloader-ripple,
    .sky-preloader-orbit,
    .sky-preloader-logo,
    .sky-preloader-logo::before,
    .sky-preloader-progress i {
        animation: none !important;
    }

    .sky-preloader-ripple {
        opacity: .35;
    }

    .sky-preloader-progress i {
        left: 0;
        width: 58%;
    }
}

/* ==========================================================================
   21. LEGACY BRAND OVERRIDES
   Retained underneath the authoritative Courier Master system.
   ========================================================================== */

:root {
    --brand-primary: #2D67B1;
    --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, #2D67B1 0%, #477DBE 52%, #6D9BD0 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 dark brand 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: #25599E !important;
    background: #25599E !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;
}

div#global-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(45, 103, 177, .18), transparent 30%),
        radial-gradient(circle at 12% 12%, rgba(45, 103, 177, .12), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(175, 192, 214, .18), transparent 25%),
        #F3F6FA !important;
}

.sky-preloader-orbit {
    border-color: rgba(45, 103, 177, .20);
}

.sky-preloader-ripple {
    border-color: rgba(45, 103, 177, .30);
}

.sky-preloader-plane,
.sky-preloader-copy strong {
    color: var(--brand-primary);
}

/* ==========================================================================
   22. COURIER MASTER — AUTHORITATIVE BRAND SYSTEM
   A white-led interface using the plum, magenta and freight-blue logo palette.
   ========================================================================== */

:root {
    --brand-primary: #702870;
    --brand-primary-rgb: 112, 40, 112;
    --brand-secondary: #385A8C;
    --brand-secondary-rgb: 56, 90, 140;
    --brand-accent: #B03068;
    --brand-accent-rgb: 176, 48, 104;
    --brand-dark: #4F214F;
    --brand-surface: #FFFFFF;
    --brand-bg: #FBF9FC;
    --brand-text: #34283A;
    --brand-muted: #766B7C;
    --brand-border: #E7DFE9;
    --brand-gradient: linear-gradient(135deg, #4F214F 0%, #702870 52%, #A03068 100%);
    --brand-shadow-card: 0 1px 2px rgba(79, 33, 79, .04), 0 12px 30px rgba(79, 33, 79, .07);
    --brand-shadow-hover: 0 18px 40px rgba(79, 33, 79, .16);
}

html {
    --primary-rgb: 112, 40, 112 !important;
}

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

.header,
[data-topbar=white] .header {
    background: #FFFFFF !important;
    border-bottom-color: var(--brand-border) !important;
    box-shadow: 0 4px 18px rgba(79, 33, 79, .07) !important;
}

.header .header-left {
    background: #FFFFFF !important;
    border-right-color: var(--brand-border) !important;
}

.sidebar {
    background: #FFFFFF !important;
    border-right-color: var(--brand-border) !important;
}

.sidebar .sidebar-menu .menu-title span,
.page-header .page-title h4,
.page-header .page-title h5,
.page-header .page-title h6,
.card .card-header h4,
.card .card-header h5,
.card .card-header h6,
.modal-header .modal-title {
    color: var(--brand-primary) !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: #F6EEF6 !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-accent);
}

.header .header-left .as-topbar-logo img,
.fdx-auth-brand-logo img {
    filter: drop-shadow(0 5px 10px rgba(112, 40, 112, .13));
}

.header .header-left .as-topbar-logo img {
    width: 76px;
    height: 54px;
    padding: 0;
}

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

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

a,
.link-primary,
.text-primary {
    color: var(--brand-secondary) !important;
}

a:hover,
.link-primary:hover {
    color: var(--brand-primary) !important;
}

.page-header {
    background:
        radial-gradient(260px 120px at 100% 0%, rgba(var(--brand-accent-rgb), .08), transparent 72%),
        #FFFFFF !important;
    border-color: var(--brand-border) !important;
}

.card,
.modal-content,
.dropdown-menu,
.copyright-footer {
    background: #FFFFFF !important;
    border-color: var(--brand-border) !important;
}

.card .card-header,
.modal-header {
    background: #FFFFFF !important;
    border-bottom-color: var(--brand-border) !important;
}

.table thead th {
    border-color: #E2D6E5 !important;
    background: #F5EFF6 !important;
    color: var(--brand-primary) !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-gradient) !important;
    color: #FFFFFF !important;
    box-shadow: 0 9px 20px rgba(var(--brand-primary-rgb), .22);
}

.btn.btn-primary:hover,
.btn-primary:hover,
.btn.btn-as-cta:hover {
    border-color: #5D205D !important;
    background: linear-gradient(135deg, #442044 0%, #5D205D 55%, #8F285F 100%) !important;
    color: #FFFFFF !important;
}

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

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

.badge.bg-primary,
.text-bg-primary,
.bg-primary {
    background-color: var(--brand-primary) !important;
    color: #FFFFFF !important;
}

.client-rebrand .as-welcome-banner,
.shipment-create-page .fdx-create-overview,
.shipment-view-page .fdx-route-hero {
    border-color: rgba(var(--brand-accent-rgb), .35) !important;
    background:
        radial-gradient(480px 230px at 96% -8%, rgba(255, 255, 255, .18), transparent 70%),
        radial-gradient(330px 190px at 3% 105%, rgba(var(--brand-secondary-rgb), .30), transparent 72%),
        var(--brand-gradient) !important;
    box-shadow: 0 22px 48px rgba(var(--brand-primary-rgb), .22) !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(var(--brand-primary-rgb), .20) !important;
}

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

.shipment-list-page .fdx-list-status-grid .as-filter-card.active {
    background: var(--brand-gradient) !important;
    box-shadow: inset 0 -4px 0 #D686AF, 0 12px 26px rgba(var(--brand-primary-rgb), .20);
}

.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(var(--brand-primary-rgb), .12) !important;
}

.as-footer-badge {
    border-color: var(--brand-border) !important;
    background: #FFFFFF !important;
    color: var(--brand-secondary) !important;
}

.as-footer-badge-primary {
    border-color: #E3C9DD !important;
    background: #FAF2F7 !important;
    color: var(--brand-primary) !important;
}

.as-footer-badge-gold {
    border-color: #D9E2EF !important;
    background: #F1F5FA !important;
    color: var(--brand-secondary) !important;
}

div#global-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--brand-primary-rgb), .16), transparent 30%),
        radial-gradient(circle at 12% 12%, rgba(var(--brand-secondary-rgb), .11), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(var(--brand-accent-rgb), .13), transparent 25%),
        #FBF9FC !important;
}

.sky-preloader-orbit {
    border-color: rgba(var(--brand-primary-rgb), .20);
}

.sky-preloader-ripple {
    border-color: rgba(var(--brand-accent-rgb), .30);
}

.sky-preloader-logo {
    border-color: rgba(var(--brand-accent-rgb), .22);
}

.sky-preloader-progress i,
.sky-preloader-plane {
    background: var(--brand-gradient);
}

@media (max-width: 575.98px) {
    .header .header-left .as-topbar-logo img {
        width: 62px;
        height: 46px;
    }

    .header .header-left .as-wordmark {
        display: none !important;
    }
}
