:root {
    --admin-ink: #101820;
    --admin-panel: #ffffff;
    --admin-muted: #647182;
    --admin-line: #dde4ec;
    --admin-soft: #f4f7fa;
    --admin-red: #d71920;
    --admin-red-dark: #a90f15;
    --admin-blue: #1b64f2;
    --admin-teal: #008b82;
    --admin-amber: #f4b000;
    --admin-shadow: 0 22px 60px rgba(16, 24, 32, 0.1);
    --admin-radius: 8px;
}

/* Admin Dropify dashboard: direct implementation for tracking/index.php */
body.admin-dropify-page {
    --drop-bg: #dcd7ee;
    --drop-panel: #ffffff;
    --drop-soft: #f6f3fb;
    --drop-ink: #222129;
    --drop-muted: #777382;
    --drop-purple: #9174ea;
    --drop-dark: #232229;
    --drop-line: #ece8f4;
    background: radial-gradient(circle at 15% 12%, rgba(255,255,255,0.6), transparent 22%), var(--drop-bg) !important;
}

body.admin-dropify-page .courier-topbar,
body.admin-dropify-page .courier-dashboard-v5,
body.admin-dropify-page .command-strip,
body.admin-dropify-page .kpi-grid,
body.admin-dropify-page .ops-grid,
body.admin-dropify-page .shipment-board,
body.admin-dropify-page .admin-bottom-grid {
    display: none !important;
}

body.admin-dropify-page .sidebar {
    width: 168px !important;
    left: calc(50% - 448px);
    top: 96px;
    height: 576px;
    padding: 26px 16px 18px;
    border: 0;
    border-radius: 24px 0 0 24px;
    background: rgba(255,255,255,0.94) !important;
    box-shadow: none !important;
    z-index: 5;
}

body.admin-dropify-page .sidebar .logo {
    height: auto;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.admin-dropify-page .sidebar .logo img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    border-radius: 50%;
    background: var(--drop-purple);
    box-shadow: 0 10px 24px rgba(145,116,234,0.3);
}

body.admin-dropify-page .sidebar .logo h5 {
    margin: 0 !important;
    color: var(--drop-ink);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: none;
}

body.admin-dropify-page .sidebar-menu {
    gap: 5px;
}

body.admin-dropify-page .sidebar-menu a {
    min-height: 34px;
    padding: 0 10px !important;
    border-radius: 999px;
    color: var(--drop-muted) !important;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: none !important;
}

body.admin-dropify-page .sidebar-menu a.active {
    color: #ffffff !important;
    background: var(--drop-purple) !important;
    box-shadow: 0 16px 30px rgba(145,116,234,0.34) !important;
}

body.admin-dropify-page .sidebar-menu a i {
    width: 15px;
    color: inherit !important;
}

body.admin-dropify-page .main-content {
    width: min(896px, calc(100vw - 40px));
    min-height: 576px;
    margin: 96px auto 60px !important;
    padding: 16px 16px 16px 184px !important;
    border-radius: 24px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 30px 78px rgba(62,54,92,0.16);
    overflow: hidden;
}

.admin-dropify-shell {
    display: grid;
    grid-template-rows: 52px 74px minmax(0, 1fr);
    gap: 12px;
    color: var(--drop-ink);
}

.admin-dropify-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.admin-dropify-topbar h1 {
    margin: 0;
    color: var(--drop-ink);
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.admin-dropify-topbar p {
    margin: 4px 0 0;
    color: var(--drop-muted);
    font-size: 0.62rem;
    font-weight: 800;
}

.admin-dropify-topbar p strong {
    color: var(--drop-purple);
}

.admin-dropify-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-dropify-actions button,
.admin-dropify-actions label,
.admin-dropify-actions a {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
}

.admin-dropify-actions button {
    width: 32px;
    color: var(--drop-dark);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(62,54,92,0.08);
}

.admin-dropify-actions label {
    width: 32px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--drop-dark);
    cursor: pointer;
}

.admin-dropify-actions label input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-dropify-actions a {
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: var(--drop-purple);
    box-shadow: 0 16px 30px rgba(145,116,234,0.34);
}

.admin-dropify-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-dropify-metrics article {
    min-height: 74px;
    padding: 12px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 10px;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #f8f6fc);
    box-shadow: 0 14px 34px rgba(62,54,92,0.075);
}

.admin-dropify-metrics i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--drop-dark);
    font-size: 0.78rem;
}

.admin-dropify-metrics span {
    grid-column: 2;
    grid-row: 2;
    color: var(--drop-muted);
    font-size: 0.62rem;
    font-weight: 900;
}

.admin-dropify-metrics strong {
    grid-column: 2;
    grid-row: 1;
    color: #777382;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
}

.metric-bars,
.metric-lines,
.metric-dots {
    height: 36px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
}

.metric-bars b {
    width: 8px;
    border-radius: 8px 8px 2px 2px;
    background: #d1c6f8;
}

.metric-bars b:nth-child(1) { height: 12px; }
.metric-bars b:nth-child(2) { height: 21px; }
.metric-bars b:nth-child(3) { height: 29px; }
.metric-bars b:nth-child(4) { height: 36px; background: var(--drop-purple); }

.metric-lines b {
    width: 4px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ded7fb, var(--drop-purple), #ded7fb);
}

.metric-dots {
    position: relative;
    align-items: center;
}

.metric-dots b {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--drop-purple);
}

.metric-dots b:nth-child(1) { transform: translateY(8px); opacity: 0.82; }
.metric-dots b:nth-child(2) { transform: translateY(-2px); opacity: 0.58; }
.metric-dots b:nth-child(3) { transform: translateY(5px); }
.metric-dots b:nth-child(4) { transform: translateY(-12px); opacity: 0.62; }

.admin-dropify-board {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.24fr) minmax(0, 1.05fr);
    grid-template-rows: 160px 54px 156px;
    gap: 12px;
}

.admin-drop-card {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(62,54,92,0.075);
}

.drop-card-title {
    padding: 12px 12px 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.drop-card-title h2 {
    margin: 0;
    color: var(--drop-ink);
    font-size: 0.82rem;
    line-height: 1.05;
    font-weight: 950;
}

.drop-card-title span,
.drop-card-title a,
.robot-card p {
    margin: 0;
    color: var(--drop-muted);
    font-size: 0.58rem;
    font-weight: 900;
}

.package-card {
    grid-column: 1;
    grid-row: 1;
}

.package-pills {
    padding: 8px 12px 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.package-pills span {
    min-height: 31px;
    padding: 5px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--drop-soft);
    color: var(--drop-muted);
    font-size: 0.54rem;
    font-weight: 900;
    text-align: center;
}

.package-pills strong {
    display: block;
    color: var(--drop-ink);
    font-size: 0.64rem;
}

.receiver-row {
    margin: 4px 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.receiver-avatar {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #242329, #7a62d7);
    font-size: 0.62rem;
    font-weight: 950;
}

.receiver-row strong,
.receiver-row em {
    display: block;
    font-style: normal;
}

.receiver-row strong {
    color: var(--drop-ink);
    font-size: 0.62rem;
}

.receiver-row em {
    color: var(--drop-muted);
    font-size: 0.58rem;
}

.receiver-row a {
    margin-left: auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--drop-purple);
    font-size: 0.7rem;
}

.order-card {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 10px;
}

.order-card .drop-card-title {
    grid-column: 1 / -1;
}

.order-card-grid {
    grid-column: 1 / -1;
    display: contents;
}

.route-tile {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    min-height: 94px;
    margin: 10px 0 8px 12px;
    padding: 12px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #8c6dec, #ad97fb);
}

.route-tile div,
.route-tile small {
    display: flex;
    justify-content: space-between;
}

.route-tile div strong {
    font-size: 0.98rem;
}

.route-tile i {
    position: absolute;
    left: 50%;
    top: 42px;
    z-index: 2;
    transform: translateX(-50%);
    font-size: 1.35rem;
}

.route-tile .route-line {
    position: absolute;
    left: 28px;
    right: 28px;
    top: 55px;
    height: 2px;
    background: rgba(255,255,255,0.78);
}

.route-tile .route-line::before,
.route-tile .route-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
}

.route-tile .route-line::before { left: 0; }
.route-tile .route-line::after { right: 0; }

.route-tile small {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 12px;
    font-size: 0.54rem;
}

.order-events {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0 12px 0 0;
    display: grid;
    gap: 4px;
}

.order-events span {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 4px;
    align-items: center;
    color: var(--drop-muted);
    font-size: 0.58rem;
    font-weight: 850;
}

.order-events i {
    width: 6px;
    height: 6px;
    border: 1px solid #d8cffb;
    border-radius: 50%;
}

.order-events .active i {
    background: var(--drop-purple);
}

.order-events strong {
    color: var(--drop-ink);
}

.order-events em {
    font-style: normal;
}

.completion-row {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--drop-muted);
    font-size: 0.62rem;
    font-weight: 900;
}

.completion-row span {
    width: 14px;
    height: 14px;
    border: 3px solid #d8cffb;
    border-top-color: var(--drop-purple);
    border-radius: 50%;
}

.completion-row em {
    font-style: normal;
}

.map-card {
    grid-column: 3;
    grid-row: 1 / 4;
}

.admin-map-canvas {
    position: absolute;
    inset: 48px 10px 10px;
    overflow: hidden;
    border-radius: 15px;
    background:
        radial-gradient(ellipse at 96% 20%, rgba(185,184,188,0.45) 0 18%, transparent 19%),
        radial-gradient(ellipse at 88% 46%, rgba(198,197,200,0.58) 0 18%, transparent 19%),
        radial-gradient(ellipse at 86% 82%, rgba(196,195,198,0.52) 0 20%, transparent 21%),
        linear-gradient(115deg, transparent 0 48%, rgba(145,116,234,0.18) 49% 51%, transparent 52%),
        repeating-linear-gradient(28deg, transparent 0 42px, rgba(32,32,38,0.08) 43px 44px),
        repeating-linear-gradient(-37deg, transparent 0 54px, rgba(32,32,38,0.06) 55px 56px),
        #f0eef3;
}

.admin-map-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(150deg, transparent 0 46%, rgba(255,255,255,0.55) 47% 49%, transparent 50%),
        linear-gradient(22deg, transparent 0 58%, rgba(32,32,38,0.08) 59% 60%, transparent 61%);
}

.map-route-line {
    position: absolute;
    left: 28px;
    right: 28px;
    top: 54%;
    height: 3px;
    background: linear-gradient(90deg, var(--drop-dark) 0 45%, var(--drop-purple) 45% 100%);
    transform: rotate(-29deg);
    transform-origin: left center;
}

.map-route-line::before,
.map-route-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--drop-purple);
    transform: translateY(-50%);
    box-shadow: 0 8px 20px rgba(62,54,92,0.22);
}

.map-route-line::before { left: -2px; }
.map-route-line::after { right: -2px; }

.admin-map-canvas .pin {
    position: absolute;
    z-index: 2;
    color: var(--drop-ink);
    font-size: 0.86rem;
    font-weight: 950;
}

.admin-map-canvas .phi { left: 22px; bottom: 82px; }
.admin-map-canvas .nyc { right: 24px; top: 92px; }

.admin-map-canvas > strong {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    font-size: 0.86rem;
}

.admin-map-canvas > div {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 7px;
}

.admin-map-canvas > div span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--drop-muted);
    font-size: 0.72rem;
    font-weight: 950;
}

.speed-card {
    grid-column: 1;
    grid-row: 2 / 4;
}

.speed-dial {
    width: 112px;
    height: 112px;
    margin: 14px auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 48%, transparent 49%),
        conic-gradient(var(--drop-purple) 0 58%, var(--drop-dark) 58% 76%, #eeeaf6 76% 100%);
}

.speed-dial strong {
    display: block;
    color: #777382;
    font-size: 1.62rem;
    line-height: 1;
}

.speed-dial span {
    color: var(--drop-muted);
    font-size: 0.58rem;
    font-weight: 900;
    text-align: center;
}

.speed-key {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: var(--drop-muted);
    font-size: 0.6rem;
    font-weight: 900;
}

.robot-card {
    grid-column: 2;
    grid-row: 3;
    background: radial-gradient(circle at 78% 30%, rgba(145,116,234,0.16), transparent 34%), #ffffff;
}

.robot-card h2 {
    position: relative;
    z-index: 2;
    max-width: 132px;
    margin: 10px 0 0 12px;
    color: var(--drop-ink);
    font-size: 0.86rem;
    line-height: 1.05;
}

.robot-card p {
    position: relative;
    z-index: 2;
    margin-left: 12px;
}

.robot-spec-grid {
    position: absolute;
    left: 12px;
    bottom: 9px;
    z-index: 2;
    width: 118px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.robot-spec-grid span {
    padding: 5px;
    border-radius: 8px;
    background: var(--drop-soft);
    color: var(--drop-muted);
    font-size: 0.52rem;
    font-weight: 850;
}

.robot-spec-grid strong {
    display: block;
    color: var(--drop-ink);
    font-size: 0.62rem;
}

.robot-mini {
    position: absolute;
    right: -18px;
    bottom: 5px;
    width: 190px;
    height: 108px;
    transform: scale(0.9);
    transform-origin: right bottom;
}

.robot-mini .robot-shadow {
    position: absolute;
    left: 20px;
    right: 8px;
    bottom: 4px;
    height: 8px;
    border-radius: 999px;
    background: var(--drop-purple);
    opacity: 0.5;
}

.robot-mini .robot-body {
    position: absolute;
    right: 42px;
    bottom: 24px;
    width: 120px;
    height: 72px;
    border-radius: 45px 45px 22px 22px;
    background: linear-gradient(135deg, #f6f5fb 0 46%, #8f6ded 47% 100%);
    box-shadow: inset -14px -12px 0 rgba(35,34,41,0.1), 0 18px 34px rgba(62,54,92,0.18);
}

.robot-mini .robot-body span {
    position: absolute;
    right: 24px;
    top: -22px;
    width: 64px;
    height: 66px;
    border-radius: 42px 42px 16px 16px;
    background: linear-gradient(135deg, #232229, #4c4856 58%, #f7f6fb 59%);
}

.robot-mini b {
    position: absolute;
    bottom: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #6d50d4 0 32%, #232229 33% 58%, #9273ef 59%);
}

.robot-mini .wheel-one { right: 44px; }
.robot-mini .wheel-two { left: 52px; }

@media (max-width: 1180px) {
    body.admin-dropify-page .sidebar {
        left: 20px;
    }
}

@media (max-width: 900px) {
    body.admin-dropify-page .sidebar {
        top: 0;
        left: 0;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
    }

    body.admin-dropify-page .sidebar.active {
        transform: translateX(0);
    }

    body.admin-dropify-page .main-content {
        width: min(100% - 24px, 540px);
        margin: 12px auto 40px !important;
        padding: 12px !important;
    }

    .admin-dropify-shell,
    .admin-dropify-topbar,
    .admin-dropify-metrics,
    .admin-dropify-board {
        grid-template-columns: 1fr;
    }

    .admin-dropify-board {
        grid-template-rows: auto;
    }

    .package-card,
    .order-card,
    .map-card,
    .speed-card,
    .robot-card {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }

    .order-card {
        display: block;
    }

    .route-tile {
        margin-right: 12px;
    }

    .order-events {
        margin: 10px 12px;
    }

    .map-card {
        min-height: 400px;
    }
}

/* Admin v6 locked responsive overrides. These keep the compact courier sample layout after legacy admin layers. */
@media (max-width: 720px) {
    body.admin-dashboard .courier-topbar {
        gap: 12px !important;
        padding: 16px !important;
    }

    body.admin-dashboard .head-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
    }

    body.admin-dashboard .head-actions .btn {
        width: auto !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding-inline: 0.86rem !important;
        white-space: nowrap !important;
    }

    body.admin-dashboard .profile-pill {
        width: auto !important;
        min-width: 0 !important;
        padding: 5px 9px 5px 5px !important;
    }

    body.admin-dashboard .global-search input {
        text-overflow: ellipsis !important;
    }

    body.admin-dashboard .hero-copy {
        padding: 20px !important;
    }

    body.admin-dashboard .hero-copy h2 {
        margin-bottom: 0.75rem !important;
        font-size: clamp(2.25rem, 14vw, 3.25rem) !important;
    }

    body.admin-dashboard .hero-split {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.admin-dashboard .hero-split span {
        min-width: 0 !important;
        padding: 0.72rem 0.64rem !important;
    }

    body.admin-dashboard .tracking-wallet {
        min-height: 318px !important;
    }

    body.admin-dashboard .tracking-wallet article {
        min-height: 86px !important;
        margin-bottom: 8px !important;
        padding: 13px !important;
    }

    body.admin-dashboard .tracking-wallet strong {
        font-size: 1.58rem !important;
    }
}

/* Final orange brand pass for admin login and legacy admin fragments. */
:root {
    --uas-orange: #f97316;
    --uas-orange-dark: #c2410c;
    --uas-orange-soft: #fff7ed;
    --uas-coral: #f97316;
    --uas-coral-dark: #c2410c;
}

body.admin-login {
    background:
        radial-gradient(circle at 20% 12%, rgba(255,255,255,0.28), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(249,115,22,0.26), transparent 30%),
        linear-gradient(135deg, #111827 0%, #24160f 48%, #c2410c 100%) !important;
}

body.admin-login .login-container {
    border: 1px solid rgba(255,255,255,0.28) !important;
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 32px 90px rgba(36,22,15,0.32) !important;
    backdrop-filter: blur(24px) saturate(1.16);
    -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

body.admin-login .login-visual {
    background:
        linear-gradient(140deg, rgba(17,24,39,0.92), rgba(194,65,12,0.74)),
        radial-gradient(circle at 72% 24%, rgba(251,146,60,0.65), transparent 32%) !important;
}

body.admin-login .login-plane-mark,
body.admin-login .visual-content mark,
body.admin-login .btn-login {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 48%, #c2410c 100%) !important;
}

body.admin-login .visual-content mark {
    color: #ffffff !important;
}

body.admin-login .form-control:focus {
    border-color: var(--uas-orange) !important;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.18) !important;
}

body.admin-login .security-notice {
    border-left-color: var(--uas-orange) !important;
    background: var(--uas-orange-soft) !important;
}

body.admin-login .security-notice i,
body.admin-login .password-toggle:hover,
body.admin-login .form-group label span {
    color: var(--uas-orange) !important;
}

/* Admin v6: compact close-match refinement to the provided courier SaaS samples. */
body.admin-login {
    padding: 32px;
    background:
        radial-gradient(circle at 23% 18%, rgba(168, 231, 86, 0.28), transparent 25%),
        linear-gradient(135deg, #ebefec 0%, #f7f6f0 100%) !important;
}

body.admin-login .login-container {
    width: min(980px, calc(100vw - 44px));
    min-height: 590px;
    grid-template-columns: minmax(390px, 0.93fr) minmax(390px, 1fr);
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 30px 76px rgba(21, 32, 27, 0.14);
}

.login-visual {
    min-height: 570px;
    padding: 28px;
    border-radius: 16px;
}

.login-brand-mark img {
    width: 38px;
    height: 38px;
}

.login-plane-mark {
    font-size: clamp(4.7rem, 8vw, 7.4rem);
}

.login-visual .visual-content {
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.login-visual .visual-content h2 {
    font-size: clamp(2.05rem, 3.5vw, 3rem);
    line-height: 1.05;
    font-weight: 780;
}

.login-visual .visual-content mark {
    padding: 0;
    color: #d7ff58;
    background: transparent;
}

body.admin-login .login-panel {
    padding: 42px 48px;
}

body.admin-login .login-header h1 {
    font-size: clamp(1.72rem, 2.8vw, 2.45rem);
    line-height: 1.08;
}

body.admin-login .login-header p {
    max-width: 340px;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.admin-login .form-control {
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.88rem;
}

body.admin-login .btn-login {
    min-height: 48px;
    border-radius: 9px;
}

.social-login-grid button {
    min-height: 42px;
    border-radius: 9px;
}

.login-divider {
    margin: 20px 0 14px;
}

body.admin-dashboard .sidebar {
    width: 218px !important;
    padding: 18px 12px;
}

body.admin-dashboard .main-content {
    margin-left: 218px !important;
    padding: 22px 28px !important;
}

.sidebar .logo img {
    height: 36px !important;
}

.sidebar-menu a {
    min-height: 40px;
    padding: 0.66rem 0.78rem !important;
    gap: 0.62rem;
    font-size: 0.88rem;
}

.courier-topbar {
    min-height: 64px;
    grid-template-columns: 200px minmax(280px, 1fr) auto;
    gap: 14px;
    margin-bottom: 14px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
}

.topbar-title h4 {
    font-size: 1.18rem;
}

.global-search input {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.icon-button,
.profile-pill,
.head-actions .btn {
    min-height: 40px;
}

.icon-button {
    width: 40px;
    height: 40px;
}

.profile-pill span {
    width: 30px;
    height: 30px;
}

.courier-dashboard-v5 {
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 14px;
}

.courier-main-stage,
.courier-side-stage {
    gap: 14px;
}

.courier-hero-card,
.service-action,
.flow-board,
.shipment-ledger-v5,
.context-panel {
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(23, 27, 31, 0.068);
}

.courier-hero-card {
    min-height: 188px;
    padding: 12px;
    grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1fr);
    gap: 12px;
}

.hero-copy {
    padding: 22px;
    border-radius: 14px;
}

.hero-copy h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.hero-split span {
    padding: 0.68rem;
}

.tracking-wallet {
    min-height: 166px;
}

.tracking-wallet article {
    width: 230px;
    min-height: 96px;
    padding: 14px;
    border-radius: 13px;
}

.tracking-wallet article:nth-child(1) {
    top: 4px;
}

.tracking-wallet article:nth-child(2) {
    left: 74px;
    top: 38px;
}

.tracking-wallet article:nth-child(3) {
    top: 74px;
}

.tracking-wallet strong {
    font-size: 1.72rem;
}

.service-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-head {
    grid-column: 1 / -1;
    margin: 0 0 -2px;
}

.service-action {
    min-height: 102px;
    padding: 15px;
    border-radius: 14px;
}

.service-action i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.flow-board,
.shipment-ledger-v5,
.context-panel {
    padding: 15px;
}

.workspace-head {
    margin-bottom: 12px;
}

.workspace-head h3 {
    font-size: 1rem;
}

.flow-grid {
    gap: 10px;
}

.flow-item {
    min-height: 62px;
    padding: 10px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    border-radius: 13px;
}

.flow-item i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.ledger-controls input {
    width: 220px;
}

.ledger-table th {
    padding: 0.72rem 0.6rem;
}

.ledger-table td {
    padding: 0.72rem 0.6rem;
}

.queue-price {
    margin: 6px 0 12px;
}

.queue-price span {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--uas-muted);
    font-size: 0.75rem;
    font-weight: 850;
}

.queue-price strong {
    color: var(--uas-coral);
    font-size: 1.75rem;
}

.payment-methods {
    gap: 7px;
    margin-bottom: 12px;
}

.payment-methods span {
    min-height: 38px;
    gap: 0.32rem;
    font-size: 0.78rem;
}

.checkout-fields {
    display: grid;
    gap: 9px;
}

.checkout-fields label {
    min-height: 52px;
    margin: 0;
    padding: 0.62rem 0.72rem;
    display: grid;
    align-content: center;
    border: 1px solid #dfe6e2;
    border-radius: 10px;
    background: #ffffff;
}

.checkout-fields label span {
    color: #84908a;
    font-size: 0.7rem;
    font-weight: 850;
}

.checkout-fields label strong {
    color: var(--uas-ink);
    font-size: 0.86rem;
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.checkout-submit {
    min-height: 44px;
    margin-top: 12px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--uas-coral);
    font-weight: 900;
}

.checkout-submit:hover {
    color: #ffffff;
    text-decoration: none;
    background: var(--uas-coral-dark);
}

.route-list {
    gap: 8px;
}

.route-list a {
    min-height: 60px;
    padding: 10px;
    border-radius: 12px;
}

@media (max-width: 1240px) {
    .courier-dashboard-v5 {
        grid-template-columns: 1fr;
    }

    .courier-side-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    .courier-topbar,
    .courier-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.admin-dashboard .main-content {
        margin-left: 0 !important;
        padding: 84px 18px 24px !important;
    }
}

@media (max-width: 720px) {
    body.admin-login {
        padding: 0;
    }

    body.admin-login .login-container {
        width: 100%;
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .login-visual {
        min-height: 340px;
    }

    .login-plane-mark {
        font-size: 5.2rem;
    }

    body.admin-login .login-panel {
        padding: 28px 16px;
    }

    .service-action-grid,
    .flow-grid,
    .courier-side-stage,
    .field-pair {
        grid-template-columns: 1fr;
    }
}

/* Final orange brand pass for admin login and legacy admin fragments. */
:root {
    --uas-orange: #f97316;
    --uas-orange-dark: #c2410c;
    --uas-orange-soft: #fff7ed;
    --uas-coral: #f97316;
    --uas-coral-dark: #c2410c;
}

body.admin-login {
    background:
        radial-gradient(circle at 20% 12%, rgba(255,255,255,0.28), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(249,115,22,0.26), transparent 30%),
        linear-gradient(135deg, #111827 0%, #24160f 48%, #c2410c 100%) !important;
}

body.admin-login .login-container {
    border: 1px solid rgba(255,255,255,0.28) !important;
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 32px 90px rgba(36,22,15,0.32) !important;
    backdrop-filter: blur(24px) saturate(1.16);
    -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

body.admin-login .login-visual {
    background:
        linear-gradient(140deg, rgba(17,24,39,0.92), rgba(194,65,12,0.74)),
        radial-gradient(circle at 72% 24%, rgba(251,146,60,0.65), transparent 32%) !important;
}

body.admin-login .login-plane-mark,
body.admin-login .visual-content mark,
body.admin-login .btn-login {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 48%, #c2410c 100%) !important;
}

body.admin-login .visual-content mark {
    color: #ffffff !important;
}

body.admin-login .form-control:focus {
    border-color: var(--uas-orange) !important;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.18) !important;
}

body.admin-login .security-notice {
    border-left-color: var(--uas-orange) !important;
    background: var(--uas-orange-soft) !important;
}

body.admin-login .security-notice i,
body.admin-login .password-toggle:hover,
body.admin-login .form-group label span {
    color: var(--uas-orange) !important;
}

/* Final Dropify override layer for tracking/index.php. Must stay last. */
body.admin-dashboard.admin-dropify-page {
    background: radial-gradient(circle at 15% 12%, rgba(255,255,255,0.6), transparent 22%), #dcd7ee !important;
}

body.admin-dashboard.admin-dropify-page .courier-topbar,
body.admin-dashboard.admin-dropify-page .courier-dashboard-v5,
body.admin-dashboard.admin-dropify-page .command-strip,
body.admin-dashboard.admin-dropify-page .kpi-grid,
body.admin-dashboard.admin-dropify-page .ops-grid,
body.admin-dashboard.admin-dropify-page .shipment-board,
body.admin-dashboard.admin-dropify-page .admin-bottom-grid {
    display: none !important;
}

body.admin-dashboard.admin-dropify-page .sidebar {
    width: 168px !important;
    left: calc(50% - 448px) !important;
    top: 96px !important;
    height: 576px !important;
    padding: 26px 16px 18px !important;
    border: 0 !important;
    border-radius: 24px 0 0 24px !important;
    background: rgba(255,255,255,0.94) !important;
    box-shadow: none !important;
}

body.admin-dashboard.admin-dropify-page .main-content {
    width: min(896px, calc(100vw - 40px)) !important;
    min-height: 576px !important;
    margin: 96px auto 60px !important;
    padding: 16px 16px 16px 184px !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,0.92) !important;
    box-shadow: 0 30px 78px rgba(62,54,92,0.16) !important;
    overflow: hidden !important;
}

body.admin-dashboard.admin-dropify-page .admin-dropify-shell {
    display: grid !important;
    grid-template-rows: 52px 74px minmax(0, 1fr) !important;
    gap: 12px !important;
}

body.admin-dashboard.admin-dropify-page .admin-dropify-board {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.24fr) minmax(0, 1.05fr) !important;
    grid-template-rows: 160px 54px 156px !important;
    gap: 12px !important;
}

body.admin-dashboard.admin-dropify-page .admin-drop-card {
    border-radius: 17px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(62,54,92,0.075) !important;
}

body.admin-dashboard.admin-dropify-page .package-card {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.admin-dashboard.admin-dropify-page .order-card {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
}

body.admin-dashboard.admin-dropify-page .map-card {
    grid-column: 3 !important;
    grid-row: 1 / 4 !important;
}

body.admin-dashboard.admin-dropify-page .speed-card {
    grid-column: 1 !important;
    grid-row: 2 / 4 !important;
}

body.admin-dashboard.admin-dropify-page .robot-card {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

@media (max-width: 1180px) {
    body.admin-dashboard.admin-dropify-page .sidebar {
        left: 20px !important;
    }
}

@media (max-width: 900px) {
    body.admin-dashboard.admin-dropify-page .sidebar {
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        border-radius: 0 !important;
        transform: translateX(-100%);
    }

    body.admin-dashboard.admin-dropify-page .sidebar.active {
        transform: translateX(0);
    }

    body.admin-dashboard.admin-dropify-page .main-content {
        width: min(100% - 24px, 540px) !important;
        margin: 12px auto 40px !important;
        padding: 12px !important;
    }

    body.admin-dashboard.admin-dropify-page .admin-dropify-shell,
    body.admin-dashboard.admin-dropify-page .admin-dropify-topbar,
    body.admin-dashboard.admin-dropify-page .admin-dropify-metrics,
    body.admin-dashboard.admin-dropify-page .admin-dropify-board {
        grid-template-columns: 1fr !important;
    }

    body.admin-dashboard.admin-dropify-page .admin-dropify-board {
        grid-template-rows: auto !important;
    }

    body.admin-dashboard.admin-dropify-page .package-card,
    body.admin-dashboard.admin-dropify-page .order-card,
    body.admin-dashboard.admin-dropify-page .map-card,
    body.admin-dashboard.admin-dropify-page .speed-card,
    body.admin-dashboard.admin-dropify-page .robot-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* Admin v6 responsive polish: keep the compact SaaS dashboard form on phones. */
@media (max-width: 720px) {
    .courier-topbar {
        gap: 12px;
        padding: 16px !important;
    }

    .head-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .head-actions .btn {
        width: auto;
        min-width: 0;
        justify-content: center;
        padding-inline: 0.86rem;
        white-space: nowrap;
    }

    .profile-pill {
        width: auto;
        min-width: 0;
        padding: 5px 9px 5px 5px;
    }

    .global-search input {
        text-overflow: ellipsis;
    }

    .hero-copy {
        padding: 20px;
    }

    .hero-copy h2 {
        margin-bottom: 0.75rem;
        font-size: clamp(2.25rem, 14vw, 3.25rem);
    }

    .hero-split {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-split span {
        min-width: 0;
        padding: 0.72rem 0.64rem;
    }

    .tracking-wallet {
        min-height: 318px;
    }

    .tracking-wallet article {
        min-height: 86px;
        margin-bottom: 8px;
        padding: 13px;
    }

    .tracking-wallet strong {
        font-size: 1.58rem;
    }
}

/* Admin v6 responsive polish: keep the compact SaaS dashboard form on phones. */
@media (max-width: 720px) {
    .courier-topbar {
        gap: 12px;
        padding: 16px !important;
    }

    .head-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .head-actions .btn {
        width: auto;
        min-width: 0;
        justify-content: center;
        padding-inline: 0.86rem;
        white-space: nowrap;
    }

    .profile-pill {
        width: auto;
        min-width: 0;
        padding: 5px 9px 5px 5px;
    }

    .global-search input {
        text-overflow: ellipsis;
    }

    .hero-copy {
        padding: 20px;
    }

    .hero-copy h2 {
        margin-bottom: 0.75rem;
        font-size: clamp(2.25rem, 14vw, 3.25rem);
    }

    .hero-split {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-split span {
        min-width: 0;
        padding: 0.72rem 0.64rem;
    }

    .tracking-wallet {
        min-height: 318px;
    }

    .tracking-wallet article {
        min-height: 86px;
        margin-bottom: 8px;
        padding: 13px;
    }

    .tracking-wallet strong {
        font-size: 1.58rem;
    }
}

body.admin-login {
    min-height: 100vh;
    padding: clamp(18px, 4vw, 42px);
    display: grid;
    place-items: center;
    color: var(--admin-ink);
    background:
        radial-gradient(circle at 18% 20%, rgba(215, 25, 32, 0.2), transparent 26%),
        radial-gradient(circle at 84% 14%, rgba(27, 100, 242, 0.24), transparent 28%),
        linear-gradient(135deg, #0d141c 0%, #111b25 48%, #172434 100%) !important;
}

body.admin-login::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000, transparent 82%);
}

body.admin-login .login-container {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: var(--admin-panel);
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.38);
}

.login-visual {
    position: relative;
    min-height: 680px;
    padding: clamp(28px, 5vw, 54px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(13, 20, 28, 0.18), rgba(13, 20, 28, 0.86)),
        linear-gradient(90deg, rgba(13, 20, 28, 0.76), rgba(13, 20, 28, 0.24)),
        url("../../../images/landing-control-room.png") center / cover;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.38;
}

.visual-content,
.visual-strip {
    position: relative;
    z-index: 1;
}

.visual-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--admin-amber);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.visual-content h2 {
    max-width: 520px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.visual-content p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
}

.visual-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--admin-radius);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.visual-strip span {
    padding: 0.9rem;
    background: rgba(13, 20, 28, 0.76);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 800;
}

body.admin-login .login-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

body.admin-login .login-header {
    padding: clamp(30px, 5vw, 46px) clamp(26px, 5vw, 44px) 16px;
    text-align: left;
    color: var(--admin-ink);
    background: transparent !important;
}

body.admin-login .login-header img {
    width: 54px;
    margin-bottom: 22px;
    padding: 8px;
    border-radius: var(--admin-radius);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(16, 24, 32, 0.1);
}

body.admin-login .login-header h1 {
    margin-bottom: 8px;
    color: var(--admin-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: 0;
}

body.admin-login .login-header p {
    color: var(--admin-muted);
    opacity: 1;
}

body.admin-login .login-body {
    padding: 18px clamp(26px, 5vw, 44px) clamp(30px, 5vw, 44px);
}

body.admin-login .form-group label,
body.admin-login .form-check label {
    color: var(--admin-ink);
    font-weight: 800;
}

body.admin-login .form-control {
    min-height: 52px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #ffffff;
    color: var(--admin-ink);
    box-shadow: 0 1px 0 rgba(16, 24, 32, 0.03);
}

body.admin-login .form-control:focus {
    border-color: var(--admin-blue);
    box-shadow: 0 0 0 4px rgba(27, 100, 242, 0.12);
}

body.admin-login .input-group i {
    color: var(--admin-muted);
}

body.admin-login .password-toggle:hover {
    color: var(--admin-red);
}

body.admin-login .btn-login {
    min-height: 54px;
    border-radius: var(--admin-radius);
    background: linear-gradient(135deg, #ff3038 0%, var(--admin-red) 48%, var(--admin-red-dark) 100%) !important;
    box-shadow: 0 18px 36px rgba(215, 25, 32, 0.24);
}

body.admin-login .security-notice {
    border: 1px solid rgba(27, 100, 242, 0.12);
    border-left: 4px solid var(--admin-blue);
    border-radius: var(--admin-radius);
    background: #f5f8ff;
}

body.admin-login .security-notice i {
    color: var(--admin-blue);
}

body.admin-login .alert {
    border-radius: var(--admin-radius);
}

body.admin-shell,
body.admin-dashboard {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 0%, rgba(27, 100, 242, 0.08), transparent 28%),
        linear-gradient(180deg, #f6f8fb 0%, #eef3f7 100%) !important;
    color: var(--admin-ink);
}

.sidebar {
    width: 280px !important;
    padding: 18px 14px;
    background:
        radial-gradient(circle at 18% 8%, rgba(215, 25, 32, 0.22), transparent 28%),
        linear-gradient(180deg, #0d141c 0%, #111b25 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 24px 0 70px rgba(16, 24, 32, 0.12);
}

.sidebar .logo {
    padding: 16px 12px 22px !important;
    text-align: left !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.sidebar .logo img {
    height: 42px !important;
    padding: 6px;
    border-radius: var(--admin-radius);
    background: #ffffff;
    filter: none !important;
}

.sidebar .logo h5 {
    margin: 14px 0 0 !important;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-menu {
    padding: 18px 0 0 !important;
}

.sidebar-menu a {
    display: flex !important;
    align-items: center;
    gap: 0.72rem;
    margin: 3px 0;
    padding: 0.82rem 0.9rem !important;
    border-radius: var(--admin-radius);
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 750;
    line-height: 1.2;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease !important;
}

.sidebar-menu a i {
    width: 20px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.48);
}

.sidebar-menu a:hover,
.sidebar-menu a:focus,
.sidebar-menu a.active {
    padding-left: 0.9rem !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(3px);
}

.sidebar-menu a.active {
    box-shadow: inset 3px 0 0 var(--admin-red);
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: var(--admin-amber);
}

.main-content {
    margin-left: 280px !important;
    padding: clamp(18px, 3vw, 34px) !important;
}

.top-bar,
.admin-page-head {
    min-height: 92px;
    padding: clamp(18px, 3vw, 26px) !important;
    border: 1px solid rgba(221, 228, 236, 0.86);
    border-radius: var(--admin-radius) !important;
    background: rgba(255, 255, 255, 0.84) !important;
    box-shadow: var(--admin-shadow) !important;
    backdrop-filter: blur(16px);
}

.top-bar h4,
.admin-page-head h4 {
    color: var(--admin-ink);
    font-weight: 900;
    letter-spacing: 0;
}

.top-bar p,
.admin-page-head p {
    color: var(--admin-muted) !important;
}

.admin-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--admin-red);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.date-chip {
    min-width: 160px;
    padding: 0.72rem 0.88rem;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    color: var(--admin-muted);
    background: #ffffff;
    font-weight: 750;
    text-align: right;
}

.stat-card,
.card,
.data-table {
    border: 1px solid rgba(221, 228, 236, 0.86) !important;
    border-radius: var(--admin-radius) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.07) !important;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--admin-blue);
}

.stat-card.success::after {
    background: var(--admin-teal);
}

.stat-card.warning::after {
    background: var(--admin-amber);
}

.stat-card.danger::after {
    background: var(--admin-red);
}

.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 24px 58px rgba(16, 24, 32, 0.1) !important;
}

.stat-card .stat-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: var(--admin-radius) !important;
    box-shadow: 0 12px 26px rgba(16, 24, 32, 0.12);
}

.stat-card.primary .stat-icon,
.btn-primary {
    background: linear-gradient(135deg, var(--admin-blue), #154bb6) !important;
}

.stat-card.success .stat-icon,
.btn-success {
    background: var(--admin-teal) !important;
}

.stat-card.warning .stat-icon {
    background: var(--admin-amber) !important;
}

.stat-card.danger .stat-icon {
    background: var(--admin-red) !important;
}

.stat-card h3 {
    color: var(--admin-ink);
    font-size: clamp(1.9rem, 4vw, 2.45rem) !important;
    font-weight: 900 !important;
}

.stat-card p {
    color: var(--admin-muted) !important;
    font-weight: 750;
}

.table-header {
    padding: 18px 20px !important;
    background:
        linear-gradient(135deg, #101820 0%, #172434 100%) !important;
    color: #ffffff !important;
}

.table-header h5 {
    font-weight: 850;
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--admin-line);
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table td {
    vertical-align: middle !important;
    border-color: #edf1f5 !important;
}

.status-badge,
.badge {
    border-radius: 999px !important;
    padding: 0.42rem 0.65rem !important;
    font-weight: 850 !important;
}

.status-pending {
    background: #fff4cf !important;
    color: #7a5300 !important;
}

.status-in_transit,
.status-in-transit {
    background: #e7f0ff !important;
    color: #174477 !important;
}

.status-delivered {
    background: #e5f7ef !important;
    color: #0b5d3b !important;
}

.status-on_hold,
.status-on-hold {
    background: #fdebed !important;
    color: #8b171c !important;
}

.btn {
    border-radius: var(--admin-radius) !important;
    font-weight: 800 !important;
}

.btn-primary,
.btn-info,
.btn-success,
.btn-secondary {
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(16, 24, 32, 0.12);
}

.btn-info {
    background: #172434 !important;
}

.btn-secondary {
    background: #5d6a78 !important;
}

.quick-actions-panel {
    padding: 20px;
}

.control-tower {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
}

.tower-primary,
.tower-metrics,
.ops-panel,
.shipment-board {
    border: 1px solid rgba(221, 228, 236, 0.86);
    border-radius: var(--admin-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.07);
}

.tower-primary {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 34px);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(13, 20, 28, 0.96), rgba(13, 20, 28, 0.62)),
        url("../../../images/landing-sorting-hub.png") center / cover;
}

.tower-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
}

.tower-primary > * {
    position: relative;
    z-index: 1;
}

.tower-primary h2 {
    max-width: 800px;
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.tower-primary p {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.tower-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.tower-metrics {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: var(--admin-line);
}

.tower-metrics div {
    padding: 1.2rem;
    background: #ffffff;
}

.tower-metrics span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tower-metrics strong {
    display: block;
    color: var(--admin-ink);
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 950;
}

.tower-metrics small {
    color: var(--admin-muted);
    font-weight: 750;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.kpi-grid .stat-card {
    padding: 20px;
}

.kpi-grid .stat-card small {
    display: block;
    margin-top: 0.45rem;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.ops-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr) minmax(280px, 0.85fr);
    gap: 18px;
    margin-bottom: 28px;
}

.ops-panel {
    padding: 20px;
    min-height: 100%;
}

.panel-large {
    grid-row: span 2;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.panel-head h5 {
    margin: 0;
    color: var(--admin-ink);
    font-weight: 900;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #174477;
    background: #e7f0ff;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.panel-chip.danger {
    color: #8b171c;
    background: #fdebed;
}

.pipeline-list {
    display: grid;
    gap: 1rem;
}

.pipeline-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr) 42px;
    gap: 1rem;
    align-items: center;
}

.pipeline-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--admin-ink);
    font-weight: 850;
}

.pipeline-label i {
    width: 34px;
    height: 34px;
    border-radius: var(--admin-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--admin-ink);
}

.pipeline-bar,
.mini-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f6;
}

.pipeline-bar span,
.mini-bar span {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--admin-blue), var(--admin-teal));
}

.pipeline-row strong {
    color: var(--admin-ink);
    font-weight: 950;
    text-align: right;
}

.watch-list,
.mix-list,
.activity-list {
    display: grid;
    gap: 0.72rem;
}

.watch-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid #edf1f5;
    border-radius: var(--admin-radius);
    color: var(--admin-ink);
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.watch-item:hover,
.watch-item:focus {
    color: var(--admin-ink);
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(27, 100, 242, 0.24);
    box-shadow: 0 14px 30px rgba(16, 24, 32, 0.08);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--admin-red);
    box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.1);
}

.status-dot.blue {
    background: var(--admin-blue);
    box-shadow: 0 0 0 6px rgba(27, 100, 242, 0.1);
}

.watch-item strong,
.activity-item strong,
.mix-row strong {
    display: block;
    color: var(--admin-ink);
    font-weight: 900;
}

.watch-item small,
.activity-item span,
.mix-row span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.watch-item em {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
    text-align: right;
}

.mix-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: center;
    padding: 0.82rem 0;
    border-bottom: 1px solid #edf1f5;
}

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

.mini-bar span {
    background: linear-gradient(90deg, var(--admin-blue), var(--admin-teal));
}

.mini-bar.amber span {
    background: linear-gradient(90deg, var(--admin-amber), var(--admin-red));
}

.empty-state {
    padding: 1rem;
    border: 1px dashed var(--admin-line);
    border-radius: var(--admin-radius);
    color: var(--admin-muted);
    background: #fbfcfd;
    font-weight: 750;
}

.shipment-board {
    margin-bottom: 28px;
    overflow: hidden;
}

.board-toolbar {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.82);
}

.board-toolbar h5 {
    margin: 0;
    color: var(--admin-ink);
    font-weight: 900;
}

.board-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.board-search {
    position: relative;
    margin: 0;
}

.board-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-muted);
}

.board-search input,
.board-controls select {
    min-height: 42px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: #ffffff;
    color: var(--admin-ink);
    outline: none;
}

.board-search input {
    width: min(320px, 72vw);
    padding: 0 0.9rem 0 2.45rem;
}

.board-controls select {
    padding: 0 0.8rem;
}

.board-search input:focus,
.board-controls select:focus {
    border-color: var(--admin-blue);
    box-shadow: 0 0 0 4px rgba(27, 100, 242, 0.1);
}

.shipment-board .data-table {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.shipment-board td strong {
    display: block;
}

.shipment-board td small {
    display: block;
    margin-top: 0.18rem;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.service-tag {
    display: inline-flex;
    padding: 0.4rem 0.58rem;
    border-radius: 999px;
    color: #174477;
    background: #e7f0ff;
    font-size: 0.78rem;
    font-weight: 900;
}

.action-stack {
    display: inline-flex;
    gap: 0.35rem;
}

.admin-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quick-action-grid a {
    min-height: 86px;
    padding: 1rem;
    display: grid;
    align-content: space-between;
    border: 1px solid #edf1f5;
    border-radius: var(--admin-radius);
    color: var(--admin-ink);
    background: #ffffff;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-action-grid a:hover,
.quick-action-grid a:focus {
    color: var(--admin-ink);
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(27, 100, 242, 0.24);
    box-shadow: 0 14px 30px rgba(16, 24, 32, 0.08);
}

.quick-action-grid i {
    color: var(--admin-red);
}

.activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.82rem 0;
    border-bottom: 1px solid #edf1f5;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item i {
    width: 34px;
    height: 34px;
    border-radius: var(--admin-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--admin-ink);
}

.activity-item time {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: none;
    place-items: center;
    border-radius: var(--admin-radius) !important;
    background: var(--admin-ink) !important;
    box-shadow: 0 18px 40px rgba(16, 24, 32, 0.18);
}

@media (max-width: 900px) {
    body.admin-login .login-container {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 280px;
    }

    .visual-strip {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: 84px !important;
    }

    .mobile-menu-toggle {
        display: grid;
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 1200;
    }

    .top-bar,
    .admin-page-head {
        display: grid !important;
        gap: 1rem;
    }

    .head-actions,
    .date-chip {
        justify-content: flex-start;
        text-align: left;
    }

    .control-tower,
    .ops-grid,
    .admin-bottom-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-large {
        grid-row: auto;
    }

    .board-toolbar {
        display: grid;
    }

    .board-controls {
        justify-content: stretch;
    }

    .board-search,
    .board-search input,
    .board-controls select,
    .board-controls .btn {
        width: 100%;
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    body.admin-login {
        padding: 0;
    }

    body.admin-login .login-container {
        min-height: 100vh;
        border-radius: 0;
    }

    .login-visual {
        min-height: 230px;
        padding: 24px;
    }

    .visual-content h2 {
        font-size: 2.4rem;
    }

    body.admin-login .login-header,
    body.admin-login .login-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .tower-primary {
        padding: 22px;
    }

    .tower-primary h2 {
        font-size: 2.2rem;
    }

    .tower-actions,
    .tower-actions .btn {
        width: 100%;
    }

    .kpi-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-row {
        grid-template-columns: 1fr 38px;
    }

    .pipeline-bar {
        grid-column: 1 / -1;
        order: 3;
    }

    .watch-item,
    .activity-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .watch-item em,
    .activity-item time {
        grid-column: 2;
        text-align: left;
    }

    .mix-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Admin console v2: compact, operational, and less copy-heavy. */
body.admin-shell,
body.admin-dashboard {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 240px),
        linear-gradient(180deg, #f5f7fa 0%, #eef2f6 100%) !important;
}

body.admin-shell::before,
body.admin-dashboard::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

body.admin-login .visual-content h2 {
    margin-bottom: 0;
}

body.admin-login .login-container {
    border-radius: 12px;
}

body.admin-login .login-header {
    padding-bottom: 8px;
}

.sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 0 60px rgba(16, 24, 32, 0.13);
}

.sidebar .logo {
    padding-bottom: 18px !important;
}

.sidebar .logo h5 {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
}

.sidebar-menu a {
    min-height: 44px;
    border: 1px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a:focus,
.sidebar-menu a.active {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.095) !important;
}

.main-content {
    padding: clamp(16px, 2.1vw, 28px) !important;
}

.top-bar,
.admin-page-head {
    min-height: 72px;
    margin-bottom: 16px !important;
    padding: 14px 18px !important;
    align-items: center;
    border-color: rgba(207, 216, 226, 0.95) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 34px rgba(16, 24, 32, 0.055) !important;
}

.top-bar p,
.admin-page-head p {
    display: none !important;
}

.top-bar h4,
.admin-page-head h4 {
    font-size: 1.25rem;
    line-height: 1.1;
}

.admin-kicker {
    margin-bottom: 0.22rem;
    color: #8b96a5;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
}

.head-actions .btn {
    min-height: 40px;
}

.date-chip {
    min-width: 142px;
    padding: 0.56rem 0.72rem;
    border-color: #dce3eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.date-chip span {
    color: var(--admin-ink);
    font-size: 0.84rem;
}

.date-chip small {
    color: var(--admin-muted);
}

.command-strip {
    position: relative;
    margin-bottom: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(132px, 1fr)) auto;
    gap: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--admin-radius);
    background:
        linear-gradient(90deg, rgba(215, 25, 32, 0.18), transparent 34%),
        linear-gradient(135deg, #101820 0%, #172434 100%);
    box-shadow: 0 18px 46px rgba(16, 24, 32, 0.14);
}

.command-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.42;
}

.command-stat,
.command-buttons {
    position: relative;
    z-index: 1;
}

.command-stat {
    min-height: 82px;
    padding: 0.82rem 0.9rem;
    display: grid;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--admin-radius);
    background: rgba(255, 255, 255, 0.07);
}

.command-stat span,
.command-stat em {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.command-stat strong {
    margin: 0.16rem 0 0.08rem;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 0.95;
    font-weight: 950;
}

.command-stat.danger {
    border-color: rgba(215, 25, 32, 0.38);
    background: rgba(215, 25, 32, 0.14);
}

.command-buttons {
    min-width: 330px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
}

.command-buttons .btn {
    min-height: 100%;
    padding-inline: 0.9rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: none !important;
}

.kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-grid .stat-card {
    min-height: 108px;
    padding: 14px !important;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon value"
        "icon label";
    column-gap: 12px;
    row-gap: 0;
    align-content: center;
    border-color: #dce3eb !important;
    box-shadow: 0 10px 24px rgba(16, 24, 32, 0.052) !important;
}

.kpi-grid .stat-card::after {
    height: 2px;
}

.kpi-grid .stat-card:hover {
    transform: translateY(-2px) !important;
}

.kpi-grid .stat-icon {
    grid-area: icon;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

.kpi-grid .stat-card h3 {
    grid-area: value;
    align-self: end;
    font-size: clamp(1.55rem, 2.4vw, 2rem) !important;
    line-height: 1;
}

.kpi-grid .stat-card p {
    grid-area: label;
    align-self: start;
    margin-top: 0.22rem;
    font-size: 0.68rem !important;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ops-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ops-panel,
.shipment-board {
    border-color: #dce3eb !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.055) !important;
}

.ops-grid > .ops-panel {
    grid-column: span 4;
    padding: 16px;
}

.ops-grid > .ops-panel:nth-child(4),
.ops-grid > .ops-panel:nth-child(5) {
    grid-column: span 6;
}

.ops-grid > .panel-large {
    grid-column: span 4;
    grid-row: auto;
}

.panel-head {
    margin-bottom: 0.84rem;
    align-items: center;
}

.panel-head h5 {
    font-size: 1rem;
}

.panel-chip {
    min-height: 28px;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(27, 100, 242, 0.1);
    font-size: 0.7rem;
}

.pipeline-list,
.watch-list,
.mix-list,
.activity-list {
    gap: 0.58rem;
}

.pipeline-row {
    grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1fr) 34px;
    gap: 0.72rem;
    padding: 0.18rem 0;
}

.pipeline-label {
    gap: 0.52rem;
    font-size: 0.9rem;
}

.pipeline-label i {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
}

.pipeline-bar,
.mini-bar {
    height: 7px;
}

.watch-item {
    min-height: 58px;
    padding: 0.65rem;
    border-color: #e4eaf1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.watch-item strong,
.mix-row strong,
.activity-item strong {
    font-size: 0.9rem;
}

.watch-item small,
.mix-row span,
.activity-item span,
.shipment-board td small {
    color: #6b7787;
    font-size: 0.75rem;
}

.watch-item em {
    color: var(--admin-muted);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mix-row {
    padding-bottom: 0.58rem;
}

.empty-state {
    min-height: 58px;
    display: grid;
    place-items: center;
    border: 1px dashed #dce3eb;
    border-radius: var(--admin-radius);
    color: var(--admin-muted);
    background: #f8fafc;
    font-weight: 850;
}

.shipment-board {
    margin-bottom: 16px;
}

.board-toolbar {
    padding: 14px 16px;
    align-items: center;
    border-bottom: 1px solid #dce3eb;
}

.board-toolbar h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 950;
}

.board-controls {
    gap: 8px;
}

.board-search {
    min-height: 40px;
    border-color: #dce3eb;
    background: #f8fafc;
}

.board-search input,
.board-controls select {
    font-size: 0.86rem;
}

.board-controls select {
    min-height: 40px;
    border-color: #dce3eb;
}

.shipment-board .data-table {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.shipment-board .table {
    margin-bottom: 0;
}

.shipment-board .table thead th {
    padding: 0.82rem 0.9rem;
    background: #f8fafc;
}

.shipment-board .table td {
    padding: 0.82rem 0.9rem;
}

.shipment-board td strong {
    color: var(--admin-ink);
    font-size: 0.88rem;
    line-height: 1.25;
}

.service-tag,
.status-badge {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
}

.action-stack .btn-sm {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-bottom-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 12px;
    align-items: start;
}

.admin-bottom-grid > .ops-panel {
    grid-column: auto;
    min-height: auto;
}

.quick-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 0.58rem;
}

.quick-action-grid a {
    min-height: 58px;
    padding: 0.72rem 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.58rem;
    border-color: #e4eaf1;
    font-size: 0.86rem;
}

.quick-action-grid i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--admin-radius);
    color: #ffffff;
    background: var(--admin-red);
}

.activity-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 0.64rem;
    padding: 0.68rem 0;
}

.activity-item i {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
}

body.admin-shell .card {
    border-color: #dce3eb !important;
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.055) !important;
}

body.admin-shell .card-header {
    border-bottom: 1px solid #dce3eb;
    background: #ffffff;
}

body.admin-shell .card-title,
body.admin-shell .card-header h1,
body.admin-shell .card-header h2,
body.admin-shell .card-header h3,
body.admin-shell .card-header h4,
body.admin-shell .card-header h5 {
    color: var(--admin-ink);
    font-weight: 900;
}

body.admin-shell .form-control,
body.admin-shell .custom-select,
body.admin-shell select,
body.admin-shell textarea {
    border-color: #dce3eb;
    border-radius: var(--admin-radius);
    box-shadow: none;
}

body.admin-shell .form-control:focus,
body.admin-shell .custom-select:focus,
body.admin-shell select:focus,
body.admin-shell textarea:focus {
    border-color: var(--admin-blue);
    box-shadow: 0 0 0 4px rgba(27, 100, 242, 0.11);
}

/* Shared admin pages: forms, tables, reports, profiles, and settings. */
body.admin-shell .container-fluid {
    padding: 0;
}

body.admin-shell .form-card,
body.admin-shell .filter-card,
body.admin-shell .shipment-table,
body.admin-shell .data-card,
body.admin-shell .status-card,
body.admin-shell .config-info,
body.admin-shell .table-report,
body.admin-shell .profile-header,
body.admin-shell .info-card,
body.admin-shell .report-header,
body.admin-shell .email-header,
body.admin-shell .shipment-header {
    border: 1px solid #dce3eb !important;
    border-radius: var(--admin-radius) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.055) !important;
}

body.admin-shell .form-card,
body.admin-shell .filter-card,
body.admin-shell .data-card,
body.admin-shell .status-card,
body.admin-shell .config-info,
body.admin-shell .table-report,
body.admin-shell .profile-header,
body.admin-shell .info-card,
body.admin-shell .report-header,
body.admin-shell .email-header,
body.admin-shell .shipment-header {
    margin-bottom: 16px !important;
    padding: 18px !important;
}

body.admin-shell .shipment-table {
    margin-bottom: 16px;
    overflow: hidden;
}

body.admin-shell .section-title,
body.admin-shell .card-title,
body.admin-shell .report-header h2,
body.admin-shell .email-header h2,
body.admin-shell .shipment-header h3,
body.admin-shell .table-report h5,
body.admin-shell .profile-header h3 {
    margin-bottom: 16px;
    padding-bottom: 10px;
    color: var(--admin-ink) !important;
    border-bottom: 1px solid #e4eaf1 !important;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0;
}

body.admin-shell .section-title i,
body.admin-shell .card-title i,
body.admin-shell .report-header i,
body.admin-shell .email-header i,
body.admin-shell .shipment-header i,
body.admin-shell .table-report i {
    color: var(--admin-red) !important;
}

body.admin-shell .report-header p,
body.admin-shell .email-header p,
body.admin-shell .shipment-header p,
body.admin-shell .breadcrumb {
    display: none !important;
}

body.admin-shell label,
body.admin-shell .form-label {
    color: #3b4654;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

body.admin-shell .form-card .row,
body.admin-shell .card-body .row {
    row-gap: 0.45rem;
}

body.admin-shell textarea.form-control {
    min-height: 96px;
}

body.admin-shell .form-inline {
    display: grid !important;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto auto auto;
    gap: 10px;
    align-items: center;
}

body.admin-shell .form-inline .form-group,
body.admin-shell .form-inline .form-control,
body.admin-shell .form-inline .btn {
    width: 100%;
    margin: 0 !important;
}

body.admin-shell .shipment-table .table-responsive,
body.admin-shell .card .table-responsive,
body.admin-shell .table-report {
    border-radius: var(--admin-radius);
}

body.admin-shell .table {
    margin-bottom: 0;
    color: var(--admin-ink);
    background: #ffffff;
}

body.admin-shell .table thead,
body.admin-shell .table thead.bg-light {
    background: #f8fafc !important;
}

body.admin-shell .table th {
    padding: 0.85rem 0.9rem;
    border-top: 0 !important;
    border-bottom: 1px solid #dce3eb !important;
    color: #667386;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.admin-shell .table td {
    padding: 0.82rem 0.9rem;
    border-color: #edf1f5 !important;
    vertical-align: middle;
}

body.admin-shell .table-hover tbody tr:hover {
    background: #f8fbff;
}

body.admin-shell .btn-group-sm > .btn,
body.admin-shell .btn-sm {
    min-width: 34px;
    min-height: 34px;
}

body.admin-shell .nav-pills {
    gap: 8px;
}

body.admin-shell .nav-pills .nav-link {
    border: 1px solid #dce3eb;
    border-radius: var(--admin-radius);
    color: var(--admin-muted);
    background: #ffffff;
    font-weight: 850;
}

body.admin-shell .nav-pills .nav-link.active {
    color: #ffffff;
    border-color: var(--admin-blue);
    background: var(--admin-blue);
    box-shadow: 0 12px 24px rgba(27, 100, 242, 0.18);
}

body.admin-shell .profile-header {
    color: var(--admin-ink) !important;
    background:
        linear-gradient(90deg, rgba(215, 25, 32, 0.08), transparent 36%),
        #ffffff !important;
}

body.admin-shell .profile-avatar {
    border-radius: var(--admin-radius) !important;
    background: var(--admin-ink) !important;
    color: #ffffff !important;
}

body.admin-shell .stats-card,
body.admin-shell .stat-card:not(.kpi-grid .stat-card) {
    min-height: 126px;
    padding: 18px !important;
    border: 1px solid #dce3eb !important;
    border-radius: var(--admin-radius) !important;
    color: var(--admin-ink) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.055) !important;
}

body.admin-shell .stats-card i,
body.admin-shell .stat-card i {
    color: var(--admin-red);
}

body.admin-shell .stat-value,
body.admin-shell .stats-card h3,
body.admin-shell .stat-card h3 {
    color: var(--admin-ink);
    font-weight: 950;
}

body.admin-shell .timeline {
    position: relative;
    padding-left: 0;
}

body.admin-shell .timeline-item {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e4eaf1;
    border-radius: var(--admin-radius);
    background: #ffffff;
}

body.admin-shell .timeline-content {
    color: var(--admin-ink);
}

body.admin-shell .detail-row {
    padding: 0.72rem 0;
    border-bottom: 1px solid #edf1f5;
}

body.admin-shell .detail-row:last-child {
    border-bottom: 0;
}

body.admin-shell .detail-label {
    color: #667386;
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.admin-shell .progress {
    height: 0.72rem;
    border-radius: 999px;
    background: #e9eef4;
}

body.admin-shell .progress-bar {
    background: linear-gradient(90deg, var(--admin-blue), var(--admin-teal)) !important;
}

body.admin-shell .alert p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1220px) {
    .command-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .command-buttons {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: stretch;
    }

    .command-buttons .btn {
        flex: 1 1 0;
    }

    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-grid > .panel-large,
    .ops-grid > .ops-panel,
    .ops-grid > .ops-panel:nth-child(4),
    .ops-grid > .ops-panel:nth-child(5) {
        grid-column: span 6;
    }
}

@media (max-width: 900px) {
    .command-strip {
        grid-template-columns: 1fr;
    }

    .command-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .ops-grid {
        grid-template-columns: 1fr;
    }

    .admin-bottom-grid {
        grid-template-columns: 1fr;
    }

    .ops-grid > .panel-large,
    .ops-grid > .ops-panel,
    .ops-grid > .ops-panel:nth-child(4),
    .ops-grid > .ops-panel:nth-child(5) {
        grid-column: 1 / -1;
    }

    body.admin-shell .form-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .main-content {
        padding: 84px 14px 18px !important;
    }

    .top-bar,
    .admin-page-head {
        min-height: 0;
    }

    .head-actions,
    .head-actions .btn,
    .date-chip {
        width: 100%;
    }

    .date-chip {
        text-align: left;
    }

    .command-buttons {
        grid-template-columns: 1fr;
    }

    .command-stat {
        min-height: 74px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid .stat-card {
        min-height: 92px;
    }

    .board-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.82rem;
    }

    .board-controls {
        display: grid;
        width: 100%;
        justify-self: stretch;
    }

    .board-search,
    .board-search input,
    .board-controls select,
    .board-controls .btn {
        width: 100%;
    }

    .shipment-board .table-responsive {
        overflow: visible;
    }

    .shipment-board .table,
    .shipment-board .table thead,
    .shipment-board .table tbody,
    .shipment-board .table tr,
    .shipment-board .table td {
        display: block;
        width: 100%;
    }

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

    .shipment-board .table tr {
        padding: 14px;
        display: grid;
        gap: 0.68rem;
        border-bottom: 1px solid #e4eaf1;
        background: #ffffff;
    }

    .shipment-board .table td {
        padding: 0 !important;
        border: 0 !important;
    }

    .shipment-board .table td:not(:last-child) {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 0.7rem;
        align-items: start;
    }

    .shipment-board .table td::before {
        color: #8b96a5;
        font-size: 0.66rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .shipment-board .table td:nth-child(1)::before {
        content: "Tracking";
    }

    .shipment-board .table td:nth-child(2)::before {
        content: "Lane";
    }

    .shipment-board .table td:nth-child(3)::before {
        content: "Service";
    }

    .shipment-board .table td:nth-child(4)::before {
        content: "ETA";
    }

    .shipment-board .table td:nth-child(5)::before {
        content: "Value";
    }

    .shipment-board .table td:nth-child(6)::before {
        content: "Status";
    }

    .shipment-board .table td:nth-child(7)::before {
        content: "Actions";
        display: block;
        margin-bottom: 0.42rem;
    }

    .shipment-board .table td small {
        grid-column: 2;
    }

    .shipment-board .service-tag,
    .shipment-board .status-badge {
        justify-self: start;
    }

    .shipment-board .action-stack {
        display: flex;
        flex-wrap: wrap;
    }

    .activity-item {
        grid-template-columns: 30px minmax(0, 1fr);
    }
}

/* Dribbble-inspired admin v4: original Lobiq Delivery courier SaaS system. */
:root {
    --uas-green: #129b7f;
    --uas-green-dark: #06483f;
    --uas-green-soft: #e8f7f2;
    --uas-coral: #ff735f;
    --uas-coral-dark: #e65343;
    --uas-yellow: #f8c94a;
    --uas-cream: #fbfaf6;
    --uas-cloud: #eef1ef;
    --uas-line: #e2e7e4;
    --uas-ink: #171b1f;
    --uas-muted: #6d7772;
}

body.admin-login {
    padding: clamp(18px, 4vw, 56px);
    background:
        radial-gradient(circle at 24% 12%, rgba(18, 155, 127, 0.2), transparent 28%),
        radial-gradient(circle at 82% 86%, rgba(255, 115, 95, 0.16), transparent 30%),
        linear-gradient(135deg, #eef2ef 0%, #e4e9e6 100%) !important;
}

body.admin-login::before {
    background-image:
        linear-gradient(rgba(23, 27, 31, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 27, 31, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

body.admin-login .login-container {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 54px));
    grid-template-columns: minmax(420px, 0.98fr) minmax(420px, 1fr);
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 38px 90px rgba(23, 27, 31, 0.14);
}

.login-visual {
    min-height: 0;
    padding: clamp(26px, 4vw, 44px);
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(4, 63, 55, 0.94), rgba(7, 91, 78, 0.78) 48%, rgba(181, 245, 91, 0.72)),
        url("../../../images/landing-hero-operations.png") center / cover;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(2, 31, 28, 0) 0 52%, rgba(2, 31, 28, 0.18) 52% 63%, transparent 63%),
        radial-gradient(circle at 70% 15%, rgba(191, 255, 94, 0.55), transparent 34%);
}

.login-visual::after {
    opacity: 0.14;
    background:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 52px 52px;
}

.visual-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.visual-kicker {
    color: #dbff70;
    font-size: 0.88rem;
    letter-spacing: 0;
    text-transform: none;
}

.visual-content h2 {
    max-width: 520px;
    margin-top: auto;
    margin-bottom: 0;
    color: #ffffff;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.95;
    text-wrap: balance;
}

.visual-strip {
    display: none;
}

body.admin-login .login-panel {
    min-height: 100%;
    display: grid;
    align-content: center;
    padding: clamp(18px, 4vw, 44px);
    background: transparent;
}

body.admin-login .login-header {
    padding: 0 0 24px;
}

body.admin-login .login-header img {
    width: 58px;
    margin-bottom: 26px;
    box-shadow: 0 16px 38px rgba(23, 27, 31, 0.08);
}

body.admin-login .login-header h1 {
    max-width: 430px;
    margin: 0;
    color: var(--uas-ink);
    font-size: clamp(2.15rem, 3.7vw, 3.35rem);
    line-height: 1.02;
}

body.admin-login .login-body {
    padding: 0;
}

body.admin-login .form-group {
    margin-bottom: 18px;
}

body.admin-login .form-group label,
body.admin-login .form-check label {
    color: var(--uas-ink);
    font-size: 0.86rem;
    font-weight: 850;
}

body.admin-login .form-control {
    min-height: 56px;
    border: 1px solid #d9dfdc;
    border-radius: 13px;
    background: #ffffff;
}

body.admin-login .form-control:focus {
    border-color: var(--uas-green);
    box-shadow: 0 0 0 5px rgba(18, 155, 127, 0.12);
}

body.admin-login .btn-login {
    min-height: 58px;
    border-radius: 13px;
    background: #1e1f1e !important;
    box-shadow: 0 18px 40px rgba(23, 27, 31, 0.18);
}

body.admin-login .btn-login:hover {
    background: var(--uas-green-dark) !important;
}

body.admin-login .security-notice {
    display: none;
}

body.admin-dashboard,
body.admin-shell {
    background:
        radial-gradient(circle at 88% 0%, rgba(18, 155, 127, 0.1), transparent 28%),
        linear-gradient(180deg, #f3f5f2 0%, #e8ede9 100%) !important;
    color: var(--uas-ink);
}

body.admin-dashboard::before,
body.admin-shell::before {
    background-image:
        linear-gradient(rgba(23, 27, 31, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 27, 31, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
}

.sidebar {
    width: 270px !important;
    padding: 22px 16px;
    background: rgba(255, 255, 255, 0.94) !important;
    border-right: 1px solid var(--uas-line);
    box-shadow: 18px 0 50px rgba(23, 27, 31, 0.07);
}

.sidebar .logo {
    padding: 8px 8px 20px !important;
    border-bottom: 1px solid var(--uas-line) !important;
}

.sidebar .logo img {
    height: 45px !important;
    padding: 7px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(23, 27, 31, 0.08);
}

.sidebar .logo h5 {
    color: var(--uas-muted);
    font-size: 0.74rem;
}

.sidebar-menu a {
    min-height: 46px;
    color: #727c77 !important;
    border: 1px solid transparent;
    background: transparent !important;
}

.sidebar-menu a i {
    color: #a3ada8;
}

.sidebar-menu a:hover,
.sidebar-menu a:focus,
.sidebar-menu a.active {
    color: #ffffff !important;
    border-color: transparent;
    background: var(--uas-green) !important;
    box-shadow: 0 14px 26px rgba(18, 155, 127, 0.2);
    transform: translateX(0);
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: #dbff70;
}

.sidebar-menu a.active {
    box-shadow: 0 14px 26px rgba(18, 155, 127, 0.2);
}

.main-content {
    margin-left: 270px !important;
    padding: clamp(18px, 2.6vw, 34px) !important;
}

.top-bar,
.admin-page-head {
    min-height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 20px 50px rgba(23, 27, 31, 0.07) !important;
}

.admin-kicker {
    color: var(--uas-green);
}

.head-actions .btn-primary,
.btn-primary {
    background: var(--uas-green) !important;
    color: #ffffff !important;
}

.btn-info {
    background: #1e1f1e !important;
}

.btn-secondary {
    background: #7b8580 !important;
}

.date-chip {
    border-color: var(--uas-line);
    background: #ffffff;
}

.command-strip {
    padding: 14px;
    grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(180px, 0.75fr)) minmax(300px, auto);
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 60px rgba(23, 27, 31, 0.08);
}

.command-strip::after {
    display: none;
}

.command-stat {
    min-height: 112px;
    border-color: transparent;
    background: var(--uas-green-soft);
}

.command-stat:first-child {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
        var(--uas-coral);
}

.command-stat:nth-child(2) {
    background:
        radial-gradient(circle at 92% 8%, rgba(219, 255, 112, 0.45), transparent 38%),
        var(--uas-green);
}

.command-stat.danger {
    border-color: transparent;
    background: #fff0ed;
}

.command-stat span,
.command-stat em {
    color: rgba(23, 27, 31, 0.58);
    letter-spacing: 0;
}

.command-stat:first-child span,
.command-stat:first-child em,
.command-stat:nth-child(2) span,
.command-stat:nth-child(2) em {
    color: rgba(255, 255, 255, 0.78);
}

.command-stat strong {
    color: var(--uas-ink);
}

.command-stat:first-child strong,
.command-stat:nth-child(2) strong {
    color: #ffffff;
}

.command-buttons {
    min-width: 0;
    padding: 0;
}

.command-buttons .btn {
    min-width: 92px;
    border-radius: 13px !important;
}

.kpi-grid .stat-card,
.ops-panel,
.shipment-board,
.admin-bottom-grid > .ops-panel,
body.admin-shell .form-card,
body.admin-shell .filter-card,
body.admin-shell .shipment-table,
body.admin-shell .card,
body.admin-shell .profile-header,
body.admin-shell .report-header,
body.admin-shell .email-header,
body.admin-shell .shipment-header {
    border: 1px solid rgba(255, 255, 255, 0.86) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 18px 46px rgba(23, 27, 31, 0.075) !important;
}

.kpi-grid .stat-card {
    border-radius: 18px !important;
}

.kpi-grid .stat-card::after {
    background: var(--uas-green);
}

.kpi-grid .stat-card.danger::after {
    background: var(--uas-coral);
}

.kpi-grid .stat-card.warning::after {
    background: var(--uas-yellow);
}

.kpi-grid .stat-card .stat-icon {
    border-radius: 14px !important;
}

.stat-card.primary .stat-icon {
    background: var(--uas-green) !important;
}

.stat-card.danger .stat-icon {
    background: var(--uas-coral) !important;
}

.stat-card.warning .stat-icon {
    background: var(--uas-yellow) !important;
    color: #392d00 !important;
}

.stat-card.success .stat-icon {
    background: #1e1f1e !important;
}

.ops-grid {
    align-items: stretch;
}

.ops-panel,
.shipment-board {
    border-radius: 18px !important;
}

.panel-chip {
    border-color: rgba(18, 155, 127, 0.14);
    color: #08705e;
    background: var(--uas-green-soft);
}

.panel-chip.danger,
.status-on_hold,
.status-on-hold {
    color: #a13b30 !important;
    background: #ffe9e5 !important;
}

.pipeline-label i,
.activity-item i {
    background: #1e1f1e;
}

.pipeline-bar span,
.mini-bar span {
    background: linear-gradient(90deg, var(--uas-green), #76d0b8);
}

.mini-bar.amber span {
    background: linear-gradient(90deg, var(--uas-yellow), var(--uas-coral));
}

.watch-item {
    border-color: var(--uas-line);
    border-radius: 14px;
}

.status-dot {
    background: var(--uas-coral);
}

.status-dot.blue {
    background: var(--uas-green);
}

.board-toolbar {
    border-bottom-color: var(--uas-line);
    background: rgba(255, 255, 255, 0.64);
}

.board-search,
.board-controls select,
body.admin-shell .form-control,
body.admin-shell .custom-select,
body.admin-shell select,
body.admin-shell textarea {
    border-color: #d6ded9;
    border-radius: 13px;
}

.service-tag {
    color: #08705e;
    background: var(--uas-green-soft);
}

.status-pending {
    background: #fff3cc !important;
    color: #6b5200 !important;
}

.status-delivered {
    background: var(--uas-green-soft) !important;
    color: #08705e !important;
}

.quick-action-grid i {
    background: var(--uas-green);
}

body.admin-shell .nav-pills .nav-link.active {
    border-color: var(--uas-green);
    background: var(--uas-green);
    box-shadow: 0 12px 24px rgba(18, 155, 127, 0.18);
}

@media (max-width: 1220px) {
    .command-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sidebar {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 84px 18px 24px !important;
    }

    .command-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.admin-login .login-container {
        min-height: 100vh;
        grid-template-columns: 1fr;
        padding: 10px;
        border-radius: 0;
    }

    .login-visual {
        min-height: 360px;
    }

    body.admin-login .login-panel {
        padding: 24px 10px 10px;
    }
}

/* Admin v5 structural rebuild: courier SaaS dashboard and shipping login template. */
body.admin-login {
    background:
        radial-gradient(circle at 14% 12%, rgba(171, 235, 84, 0.26), transparent 28%),
        radial-gradient(circle at 90% 80%, rgba(10, 94, 80, 0.18), transparent 30%),
        linear-gradient(135deg, #e8eee9 0%, #f4f4ef 100%) !important;
}

body.admin-login .login-container {
    width: min(1160px, calc(100vw - 48px));
    min-height: 690px;
    grid-template-columns: minmax(420px, 0.96fr) minmax(420px, 1fr);
    padding: 14px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 36px 86px rgba(22, 30, 26, 0.16);
}

.login-visual {
    position: relative;
    min-height: 662px;
    padding: 34px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(2, 68, 60, 0.96), rgba(18, 117, 82, 0.72) 50%, rgba(177, 237, 87, 0.74)),
        url("../../../images/landing-hero-operations.png") center / cover;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(134deg, transparent 0 52%, rgba(255, 255, 255, 0.08) 52% 64%, transparent 64%),
        radial-gradient(circle at 72% 12%, rgba(210, 255, 95, 0.5), transparent 34%);
}

.login-brand-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #ffffff;
    font-weight: 900;
}

.login-brand-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 6px;
    border-radius: 12px;
    background: #ffffff;
}

.login-plane-mark {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(5rem, 10vw, 9rem);
    text-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
    transform: rotate(-5deg);
    pointer-events: none;
}

.login-visual .visual-content {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    z-index: 2;
    min-height: auto;
    justify-content: flex-end;
}

.login-visual .visual-content h2 {
    max-width: 440px;
    margin: 0;
    font-size: clamp(2.85rem, 4.4vw, 4.25rem);
    line-height: 0.98;
}

body.admin-login .login-panel {
    padding: clamp(42px, 5vw, 74px);
    align-content: center;
}

body.admin-login .login-header {
    padding: 0 0 24px;
}

body.admin-login .login-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
}

body.admin-login .login-header p {
    display: block;
    max-width: 420px;
    margin: 10px 0 0;
    color: #6d7772;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.admin-login .login-body {
    padding: 0;
}

body.admin-login .form-group {
    margin-bottom: 16px;
}

body.admin-login .form-group label span {
    color: var(--uas-coral);
}

body.admin-login .form-control {
    min-height: 54px;
    padding-left: 46px;
    border-radius: 12px;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -2px 0 22px;
}

.login-row .form-check {
    margin: 0;
}

.login-row .form-check span {
    color: var(--uas-ink);
    font-size: 0.9rem;
    font-weight: 750;
}

.login-row a {
    color: var(--uas-green);
    font-size: 0.88rem;
    font-weight: 850;
}

body.admin-login .btn-login {
    min-height: 56px;
    border-radius: 11px;
}

.login-divider {
    margin: 24px 0 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    color: #a0aaa5;
    font-size: 0.78rem;
    font-weight: 850;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    background: #e4e9e6;
}

.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-login-grid button {
    min-height: 48px;
    border: 1px solid #dbe2de;
    border-radius: 11px;
    color: var(--uas-ink);
    background: #ffffff;
    font-weight: 850;
}

.social-login-grid button i {
    margin-right: 0.42rem;
}

body.admin-dashboard {
    background: #e9eee9 !important;
}

body.admin-dashboard .sidebar {
    width: 260px !important;
}

body.admin-dashboard .main-content {
    margin-left: 260px !important;
    padding: 28px 32px !important;
}

.courier-topbar {
    display: grid !important;
    grid-template-columns: minmax(210px, auto) minmax(320px, 1fr) auto;
    gap: 18px;
    margin-bottom: 18px !important;
    border-radius: 20px !important;
}

.topbar-title h4 {
    font-size: 1.45rem;
}

.global-search {
    position: relative;
    margin: 0;
    align-self: center;
}

.global-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa6a1;
}

.global-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid #dce4df;
    border-radius: 14px;
    background: #f8faf8;
    color: var(--uas-ink);
    outline: none;
}

.global-search input:focus {
    border-color: var(--uas-green);
    box-shadow: 0 0 0 5px rgba(18, 155, 127, 0.11);
}

.icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid #dce4df;
    border-radius: 14px;
    color: var(--uas-muted);
    background: #ffffff;
}

.profile-pill {
    min-height: 46px;
    padding: 0.3rem 0.72rem 0.3rem 0.38rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #dce4df;
    border-radius: 999px;
    background: #ffffff;
}

.profile-pill span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--uas-green);
    font-weight: 900;
}

.profile-pill strong {
    color: var(--uas-ink);
    font-size: 0.88rem;
}

.courier-dashboard-v5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.courier-main-stage,
.courier-side-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
}

.courier-hero-card,
.service-action,
.flow-board,
.shipment-ledger-v5,
.context-panel {
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 52px rgba(23, 27, 31, 0.075);
}

.courier-hero-card {
    min-height: 238px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 0.9fr);
    gap: 16px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at 96% 4%, rgba(18, 155, 127, 0.18), transparent 34%);
    min-width: 0;
}

.hero-copy {
    padding: clamp(20px, 3vw, 30px);
    border-radius: 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 4%, rgba(255, 240, 152, 0.36), transparent 34%),
        linear-gradient(135deg, #ff7768 0%, #ff735f 45%, #ef5a49 100%);
    min-width: 0;
}

.workspace-kicker {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--uas-green);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-copy .workspace-kicker {
    color: rgba(255, 255, 255, 0.78);
}

.hero-copy h2 {
    margin: 0 0 1.1rem;
    color: #ffffff;
    font-size: clamp(2.45rem, 5vw, 4.4rem);
    line-height: 0.95;
    font-weight: 950;
}

.hero-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
}

.hero-split span {
    padding: 0.8rem;
    display: grid;
    gap: 0.08rem;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 850;
}

.hero-split strong {
    color: #ffffff;
    font-size: 1.25rem;
}

.tracking-wallet {
    position: relative;
    min-height: 198px;
}

.tracking-wallet article {
    position: absolute;
    width: min(290px, 88%);
    min-height: 126px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    border-radius: 18px;
    color: #ffffff;
    box-shadow: 0 22px 42px rgba(23, 27, 31, 0.18);
}

.tracking-wallet article:nth-child(1) {
    left: 0;
    top: 10px;
    background: linear-gradient(135deg, #4a36c9, #8267ff);
}

.tracking-wallet article:nth-child(2) {
    left: 84px;
    top: 48px;
    background: linear-gradient(135deg, #171b1f, #303536);
}

.tracking-wallet article:nth-child(3) {
    right: 0;
    top: 88px;
    background: linear-gradient(135deg, #49c7da, #6ce7ef);
}

.tracking-wallet span,
.tracking-wallet em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 850;
}

.tracking-wallet strong {
    color: #ffffff;
    font-size: 2.1rem;
    line-height: 1;
}

.service-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-action {
    min-height: 124px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    color: var(--uas-ink);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-action:hover,
.service-action:focus {
    color: var(--uas-ink);
    text-decoration: none;
    transform: translateY(-3px);
}

.service-action i {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--uas-green);
}

.service-action span {
    font-weight: 950;
}

.service-action em {
    color: var(--uas-muted);
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 750;
}

.flow-board,
.shipment-ledger-v5,
.context-panel {
    padding: 18px;
}

.workspace-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 16px;
}

.workspace-head h3 {
    margin: 0;
    color: var(--uas-ink);
    font-size: 1.15rem;
    font-weight: 950;
}

.workspace-head > span,
.workspace-head button {
    min-height: 32px;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(18, 155, 127, 0.16);
    border-radius: 999px;
    color: #08705e;
    background: #e8f7f2;
    font-weight: 900;
    font-size: 0.78rem;
}

.workspace-head button {
    width: 34px;
    padding: 0;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.flow-item {
    min-height: 72px;
    padding: 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    background: #ffffff;
}

.flow-item i {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: #1e1f1e;
}

.flow-item strong {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--uas-ink);
    font-size: 0.9rem;
}

.flow-item em {
    color: var(--uas-ink);
    font-style: normal;
    font-weight: 950;
}

.flow-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #ecf1ee;
}

.flow-bar span {
    display: block;
    height: 100%;
    min-width: 5px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--uas-green), #8cdac4);
}

.ledger-head {
    align-items: center;
}

.ledger-controls {
    display: flex;
    gap: 10px;
}

.ledger-controls label {
    position: relative;
    margin: 0;
}

.ledger-controls i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #96a39e;
}

.ledger-controls input,
.ledger-controls select {
    min-height: 42px;
    border: 1px solid #dce4df;
    border-radius: 13px;
    background: #ffffff;
}

.ledger-controls input {
    width: 260px;
    padding: 0 0.9rem 0 2.35rem;
}

.ledger-controls select {
    padding: 0 0.72rem;
}

.ledger-table {
    overflow-x: auto;
}

.ledger-table table {
    width: 100%;
    border-collapse: collapse;
}

.ledger-table th {
    padding: 0.86rem 0.72rem;
    border-bottom: 1px solid #e0e7e3;
    color: #6b7787;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ledger-table td {
    padding: 0.88rem 0.72rem;
    border-bottom: 1px solid #eef2ef;
    vertical-align: middle;
}

.ledger-table td strong,
.route-list strong {
    display: block;
    color: var(--uas-ink);
    font-size: 0.9rem;
}

.ledger-table td small,
.route-list small {
    display: block;
    margin-top: 0.18rem;
    color: #6f7d88;
    font-size: 0.78rem;
}

.ledger-action {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--uas-green);
}

.ledger-action:hover {
    color: #ffffff;
}

.checkout-panel {
    color: var(--uas-ink);
}

.queue-price {
    margin: 12px 0 16px;
}

.queue-price strong {
    display: block;
    color: var(--uas-coral);
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 950;
}

.queue-price span {
    color: var(--uas-muted);
    font-size: 0.85rem;
    font-weight: 850;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.payment-methods span {
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dce4df;
    border-radius: 13px;
    color: var(--uas-muted);
    background: #ffffff;
    font-weight: 850;
}

.payment-methods span.active {
    color: #ffffff;
    border-color: var(--uas-green);
    background: var(--uas-green);
}

.checkout-panel dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.checkout-panel dl div {
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #edf2ef;
}

.checkout-panel dt {
    color: var(--uas-muted);
    font-weight: 850;
}

.checkout-panel dd {
    margin: 0;
    color: var(--uas-ink);
    font-weight: 950;
}

.route-list {
    display: grid;
    gap: 10px;
}

.route-list a {
    min-height: 70px;
    padding: 12px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #e0e7e3;
    border-radius: 15px;
    color: var(--uas-ink);
    background: #ffffff;
}

.route-list a:hover {
    color: var(--uas-ink);
    text-decoration: none;
}

.route-list a > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--uas-green);
    box-shadow: 0 0 0 7px rgba(18, 155, 127, 0.1);
}

.exception-list a > span {
    background: var(--uas-coral);
    box-shadow: 0 0 0 7px rgba(255, 115, 95, 0.12);
}

.route-list em {
    color: #667386;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.courier-dashboard-v5 ~ .command-strip,
.courier-dashboard-v5 ~ .kpi-grid,
.courier-dashboard-v5 ~ .ops-grid,
.courier-dashboard-v5 ~ .shipment-board,
.courier-dashboard-v5 ~ .admin-bottom-grid {
    display: none !important;
}

@media (max-width: 1240px) {
    .courier-dashboard-v5 {
        grid-template-columns: 1fr;
    }

    .courier-side-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    .courier-topbar {
        grid-template-columns: 1fr;
    }

    .courier-hero-card {
        grid-template-columns: 1fr;
    }

    .tracking-wallet {
        min-height: 246px;
    }

    .service-action-grid,
    .flow-grid,
    .courier-side-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.admin-dashboard .main-content {
        margin-left: 0 !important;
        padding: 84px 18px 24px !important;
    }
}

@media (max-width: 720px) {
    body.admin-login .login-container {
        width: 100%;
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .login-visual {
        min-height: 380px;
    }

    body.admin-login .login-panel {
        padding: 28px 12px;
    }

    .service-action-grid,
    .flow-grid,
    .courier-side-stage {
        grid-template-columns: 1fr;
    }

    .courier-hero-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-split,
    .payment-methods,
    .social-login-grid {
        grid-template-columns: 1fr;
    }

    .tracking-wallet {
        min-height: 360px;
    }

    .tracking-wallet article {
        position: relative;
        inset: auto !important;
        width: 100%;
        margin-bottom: 10px;
    }

    .ledger-head,
    .ledger-controls {
        display: grid;
        width: 100%;
    }

    .ledger-controls input,
    .ledger-controls select {
        width: 100%;
    }

    .ledger-table {
        overflow: visible;
    }

    .ledger-table table,
    .ledger-table thead,
    .ledger-table tbody,
    .ledger-table tr,
    .ledger-table td {
        display: block;
        width: 100%;
    }

    .ledger-table thead {
        display: none;
    }

    .ledger-table tr {
        padding: 14px 0;
        border-bottom: 1px solid #e4e9e6;
    }

    .ledger-table td {
        padding: 0.5rem 0 !important;
        border-bottom: 0;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .ledger-table td::before {
        color: #8c9993;
        font-size: 0.68rem;
        font-weight: 950;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .ledger-table td:nth-child(1)::before {
        content: "Tracking";
    }

    .ledger-table td:nth-child(2)::before {
        content: "Customer";
    }

    .ledger-table td:nth-child(3)::before {
        content: "Service";
    }

    .ledger-table td:nth-child(4)::before {
        content: "Destination";
    }

    .ledger-table td:nth-child(5)::before {
        content: "Status";
    }

    .ledger-table td:nth-child(6)::before {
        content: "Action";
    }

    .ledger-action,
    .service-tag,
    .status-badge {
        justify-self: start;
    }
}

/* Admin v6 final overrides: keep close sample proportions after earlier admin layers. */
body.admin-login {
    padding: 32px;
    background:
        radial-gradient(circle at 23% 18%, rgba(168, 231, 86, 0.28), transparent 25%),
        linear-gradient(135deg, #ebefec 0%, #f7f6f0 100%) !important;
}

body.admin-login .login-container {
    width: min(980px, calc(100vw - 44px));
    min-height: 590px;
    grid-template-columns: minmax(390px, 0.93fr) minmax(390px, 1fr);
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 30px 76px rgba(21, 32, 27, 0.14);
}

.login-visual {
    min-height: 570px;
    padding: 28px;
    border-radius: 16px;
}

.login-brand-mark img {
    width: 38px;
    height: 38px;
}

.login-plane-mark {
    font-size: clamp(4.7rem, 8vw, 7.4rem);
}

.login-visual .visual-content {
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.login-visual .visual-content h2 {
    font-size: clamp(2.05rem, 3.5vw, 3rem);
    line-height: 1.05;
    font-weight: 780;
}

.login-visual .visual-content mark {
    padding: 0;
    color: #d7ff58;
    background: transparent;
}

body.admin-login .login-panel {
    padding: 42px 48px;
}

body.admin-login .login-header h1 {
    font-size: clamp(1.72rem, 2.8vw, 2.45rem);
    line-height: 1.08;
}

body.admin-login .login-header p {
    max-width: 340px;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.admin-login .form-control {
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.88rem;
}

body.admin-login .btn-login {
    min-height: 48px;
    border-radius: 9px;
}

.social-login-grid button {
    min-height: 42px;
    border-radius: 9px;
}

.login-divider {
    margin: 20px 0 14px;
}

body.admin-dashboard .sidebar {
    width: 218px !important;
    padding: 18px 12px;
}

body.admin-dashboard .main-content {
    margin-left: 218px !important;
    padding: 22px 28px !important;
}

.sidebar .logo img {
    height: 36px !important;
}

.sidebar-menu a {
    min-height: 40px;
    padding: 0.66rem 0.78rem !important;
    gap: 0.62rem;
    font-size: 0.88rem;
}

.courier-topbar {
    min-height: 64px;
    grid-template-columns: 200px minmax(280px, 1fr) auto;
    gap: 14px;
    margin-bottom: 14px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
}

.topbar-title h4 {
    font-size: 1.18rem;
}

.global-search input {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.icon-button,
.profile-pill,
.head-actions .btn {
    min-height: 40px;
}

.icon-button {
    width: 40px;
    height: 40px;
}

.profile-pill span {
    width: 30px;
    height: 30px;
}

.courier-dashboard-v5 {
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 14px;
}

.courier-main-stage,
.courier-side-stage {
    gap: 14px;
}

.courier-hero-card,
.service-action,
.flow-board,
.shipment-ledger-v5,
.context-panel {
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(23, 27, 31, 0.068);
}

.courier-hero-card {
    min-height: 188px;
    padding: 12px;
    grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1fr);
    gap: 12px;
}

.hero-copy {
    padding: 22px;
    border-radius: 14px;
}

.hero-copy h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.hero-split span {
    padding: 0.68rem;
}

.tracking-wallet {
    min-height: 166px;
}

.tracking-wallet article {
    width: 230px;
    min-height: 96px;
    padding: 14px;
    border-radius: 13px;
}

.tracking-wallet article:nth-child(1) {
    top: 4px;
}

.tracking-wallet article:nth-child(2) {
    left: 74px;
    top: 38px;
}

.tracking-wallet article:nth-child(3) {
    top: 74px;
}

.tracking-wallet strong {
    font-size: 1.72rem;
}

.service-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-head {
    grid-column: 1 / -1;
    margin: 0 0 -2px;
}

.service-action {
    min-height: 102px;
    padding: 15px;
    border-radius: 14px;
}

.service-action i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.flow-board,
.shipment-ledger-v5,
.context-panel {
    padding: 15px;
}

.workspace-head {
    margin-bottom: 12px;
}

.workspace-head h3 {
    font-size: 1rem;
}

.flow-grid {
    gap: 10px;
}

.flow-item {
    min-height: 62px;
    padding: 10px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    border-radius: 13px;
}

.flow-item i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.ledger-controls input {
    width: 220px;
}

.ledger-table th {
    padding: 0.72rem 0.6rem;
}

.ledger-table td {
    padding: 0.72rem 0.6rem;
}

.queue-price {
    margin: 6px 0 12px;
}

.queue-price span {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--uas-muted);
    font-size: 0.75rem;
    font-weight: 850;
}

.queue-price strong {
    color: var(--uas-coral);
    font-size: 1.75rem;
}

.payment-methods {
    gap: 7px;
    margin-bottom: 12px;
}

.payment-methods span {
    min-height: 38px;
    gap: 0.32rem;
    font-size: 0.78rem;
}

.checkout-fields {
    display: grid;
    gap: 9px;
}

.checkout-fields label {
    min-height: 52px;
    margin: 0;
    padding: 0.62rem 0.72rem;
    display: grid;
    align-content: center;
    border: 1px solid #dfe6e2;
    border-radius: 10px;
    background: #ffffff;
}

.checkout-fields label span {
    color: #84908a;
    font-size: 0.7rem;
    font-weight: 850;
}

.checkout-fields label strong {
    color: var(--uas-ink);
    font-size: 0.86rem;
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.checkout-submit {
    min-height: 44px;
    margin-top: 12px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--uas-coral);
    font-weight: 900;
}

.checkout-submit:hover {
    color: #ffffff;
    text-decoration: none;
    background: var(--uas-coral-dark);
}

.route-list {
    gap: 8px;
}

.route-list a {
    min-height: 60px;
    padding: 10px;
    border-radius: 12px;
}

@media (max-width: 1240px) {
    .courier-dashboard-v5 {
        grid-template-columns: 1fr;
    }

    .courier-side-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    .courier-topbar,
    .courier-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.admin-dashboard .main-content {
        margin-left: 0 !important;
        padding: 84px 18px 24px !important;
    }
}

@media (max-width: 720px) {
    body.admin-login {
        padding: 0;
    }

    body.admin-login .login-container {
        width: 100%;
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .login-visual {
        min-height: 340px;
    }

    .login-plane-mark {
        font-size: 5.2rem;
    }

    body.admin-login .login-panel {
        padding: 28px 16px;
    }

    .service-action-grid,
    .flow-grid,
    .courier-side-stage,
    .field-pair {
        grid-template-columns: 1fr;
    }
}
