/* Client UI polish (scoped via body.client-ui) */

:root {
    --client-primary: #00a8e8;
    --client-primary-2: #00a8e8;
    --client-text: #111827;
    --client-muted: rgba(17, 24, 39, .55);
    --client-border: rgba(17, 24, 39, .08);
    --client-shadow: 0 14px 28px rgba(17, 24, 39, .08);
    --client-shadow-sm: 0 10px 22px rgba(17, 24, 39, .06);
}

body.client-ui {
    background: #f6f7fb;
}

body.client-ui .dashboard-content {
    animation: clientFadeUp .28s ease-out;
}

body.client-ui .card {
    border-radius: 16px;
    border: 1px solid var(--client-border);
    box-shadow: var(--client-shadow-sm);
}

body.client-ui .card .card-header,
body.client-ui .card .card-body {
    border-radius: 16px;
}

body.client-ui .btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .15px;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

body.client-ui .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, .10);
}

body.client-ui .btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(17, 24, 39, .08);
}

body.client-ui .btn-primary {
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-primary-2) 100%);
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(0, 126, 167, .18);
}

body.client-ui .btn-outline-primary {
    background: #fff;
    border-width: 2px;
    border-color: rgba(0, 126, 167, .35);
    color: #00a8e8;
}

body.client-ui .btn-outline-primary:hover {
    background: rgba(0, 126, 167, .06);
    border-color: rgba(0, 126, 167, .55);
}

body.client-ui .form-control:focus,
body.client-ui .custom-select:focus,
body.client-ui select.form-control:focus {
    border-color: rgba(0, 126, 167, .55);
    box-shadow: 0 0 0 .18rem rgba(0, 126, 167, .16);
}

body.client-ui .breadcrumb {
    background: transparent;
}

body.client-ui .breadcrumb .breadcrumb-item a {
    color: rgba(0, 126, 167, .9);
    font-weight: 700;
}

body.client-ui .breadcrumb .breadcrumb-item.active {
    color: rgba(17, 24, 39, .60);
    font-weight: 700;
}

/* Tables: cleaner header, better spacing */
body.client-ui .table {
    color: rgba(17, 24, 39, .80);
}

body.client-ui .table thead th {
    border-bottom: 2px solid rgba(0, 126, 167, .14);
    color: rgba(0, 126, 167, .9);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .18px;
    text-transform: none;
    white-space: nowrap;
}

body.client-ui .table tbody td {
    vertical-align: middle;
    border-top: 1px solid rgba(17, 24, 39, .08);
}

/* Mobile: ensure vertical flow; keep tables scrollable only when needed */
@media (max-width: 576px) {
    body.client-ui .page-header .breadcrumb {
        padding-left: 0;
        padding-right: 0;
    }

    body.client-ui .table-responsive {
        border-radius: 14px;
        border: 1px solid rgba(17, 24, 39, .06);
    }
}

@keyframes clientFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.client-ui .dashboard-content,
    body.client-ui .btn {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   UNIFIED CLIENT MOBILE TILES
   One professional design shared across every list/card on the
   client side. Targets every legacy variant class so HTML stays
   untouched and the look becomes consistent everywhere:

   - .cp-tile           (parcel: cargo + destination warehouse)
   - .cp-goods-tile     (parcel: goods received)
   - .cp-inv-tile       (invoice list)
   - .cp-ticket-card    (support tickets)
   - .pickup-view-card  (pickup requests)
   - .client-tracking-card (supplier tracking numbers)
   ============================================================ */

body.client-ui {
    --tile-bg: #ffffff;
    --tile-border: rgba(15, 23, 42, 0.07);
    --tile-radius: 18px;
    --tile-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.06);
    --tile-shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.05), 0 18px 36px rgba(15, 23, 42, 0.09);
    --tile-accent: #00a8e8;
    --tile-accent-deep: #0a4f94;
    --tile-text: #0f172a;
    --tile-muted: #64748b;
    --tile-label: #6b7280;
    --tile-divider: rgba(15, 23, 42, 0.06);
}

/* Container wrappers: consistent vertical gap between tiles */
body.client-ui .cp-tiles,
body.client-ui .cp-goods-tiles,
body.client-ui .cp-inv-tiles,
body.client-ui .cp-ticket-cards,
body.client-ui .client-tracking-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Pickup card uses mb-3 in markup; normalize that too */
body.client-ui .pickup-view-card + .pickup-view-card {
    margin-top: 14px;
}

/* ── Tile shell ─────────────────────────────────────────── */
body.client-ui .cp-tile,
body.client-ui .cp-goods-tile,
body.client-ui .cp-inv-tile,
body.client-ui .cp-ticket-card,
body.client-ui .pickup-view-card,
body.client-ui .client-tracking-card {
    position: relative;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: var(--tile-radius);
    box-shadow: var(--tile-shadow);
    overflow: hidden;
    padding: 0;
    animation: clientTileIn .26s cubic-bezier(.22, .61, .36, 1);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.client-ui .cp-tile:hover,
body.client-ui .cp-goods-tile:hover,
body.client-ui .cp-inv-tile:hover,
body.client-ui .cp-ticket-card:hover,
body.client-ui .pickup-view-card:hover,
body.client-ui .client-tracking-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tile-shadow-hover);
    border-color: rgba(0, 168, 232, 0.18);
}

/* Subtle accent stripe along the top edge */
body.client-ui .cp-tile::before,
body.client-ui .cp-goods-tile::before,
body.client-ui .cp-inv-tile::before,
body.client-ui .cp-ticket-card::before,
body.client-ui .pickup-view-card::before,
body.client-ui .client-tracking-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #00a8e8 0%, #0a4f94 100%);
    opacity: .85;
    pointer-events: none;
}

/* ── Header (title + badge) ─────────────────────────────── */
body.client-ui .cp-tile__header,
body.client-ui .cp-goods-tile__header,
body.client-ui .cp-inv-tile__header,
body.client-ui .cp-ticket-card__top,
body.client-ui .client-tracking-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    background: linear-gradient(180deg, rgba(0, 168, 232, .05) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid var(--tile-divider);
}

body.client-ui .cp-tile__title,
body.client-ui .cp-goods-tile__title,
body.client-ui .cp-inv-tile__title,
body.client-ui .cp-ticket-card__subject,
body.client-ui .client-tracking-card__tracking {
    font-weight: 800;
    color: var(--tile-text);
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: .1px;
    word-break: break-word;
    min-width: 0;
    flex: 1 1 auto;
}

body.client-ui .client-tracking-card__tracking {
    font-size: 17px;
}

body.client-ui .cp-inv-tile__subtitle {
    color: var(--tile-muted);
    font-weight: 600;
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: .1px;
}

body.client-ui .client-tracking-card__index {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--tile-accent);
    margin-bottom: 4px;
}

/* ── Badges (mode pill / status pill) ───────────────────── */
body.client-ui .cp-tile__badge,
body.client-ui .cp-goods-tile__mode,
body.client-ui .cp-inv-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--tile-accent);
    background: rgba(0, 168, 232, 0.10);
    border: 1px solid rgba(0, 168, 232, 0.22);
    white-space: nowrap;
    line-height: 1.2;
}

body.client-ui .cp-inv-badge--issued {
    color: #075985;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.28);
}

body.client-ui .cp-inv-badge--partial {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.30);
}

body.client-ui .cp-inv-badge--paid {
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.26);
}

/* ── Body (key/value grid) ──────────────────────────────── */
body.client-ui .cp-tile__body,
body.client-ui .cp-goods-tile__body,
body.client-ui .cp-inv-tile__body {
    padding: 14px 18px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

body.client-ui .cp-ticket-card__body,
body.client-ui .pickup-view-card__body,
body.client-ui .client-tracking-card__grid {
    padding: 14px 18px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Key-value pairs (uniform across all variants) */
body.client-ui .cp-kv,
body.client-ui .cp-goods-kv,
body.client-ui .cp-inv-kv {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

body.client-ui .cp-kv small,
body.client-ui .cp-goods-kv small,
body.client-ui .cp-inv-kv small {
    display: block;
    color: var(--tile-label);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin: 0;
}

body.client-ui .cp-kv .value,
body.client-ui .cp-goods-kv .value,
body.client-ui .cp-inv-kv .value {
    font-weight: 700;
    color: var(--tile-text);
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
    letter-spacing: .1px;
}

/* Full-width row variants */
body.client-ui .cp-kv--full,
body.client-ui .cp-goods-kv--full,
body.client-ui .cp-inv-kv--full {
    grid-column: 1 / -1;
}

/* Ticket/pickup/tracking inline kv style */
body.client-ui .cp-ticket-kv,
body.client-ui .pickup-view-kv {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--tile-text);
    align-items: start;
}

body.client-ui .cp-ticket-kv .label,
body.client-ui .pickup-view-kv .label {
    color: var(--tile-label);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding-top: 1px;
}

body.client-ui .client-tracking-card__row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: start;
}

body.client-ui .client-tracking-card__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--tile-label);
    padding-top: 1px;
}

body.client-ui .client-tracking-card__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--tile-text);
    word-break: break-word;
    line-height: 1.4;
}

/* ── Chips (shipping mark etc.) ─────────────────────────── */
body.client-ui .cp-chip,
body.client-ui .cp-goods-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #065f46;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .2px;
    max-width: 100%;
}

body.client-ui .cp-chip span,
body.client-ui .cp-goods-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

/* ── Footers / Actions ──────────────────────────────────── */
body.client-ui .cp-actions,
body.client-ui .cp-inv-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--tile-divider);
}

body.client-ui .cp-actions .btn,
body.client-ui .cp-inv-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 16px;
    letter-spacing: .2px;
    flex: 1 1 auto;
    min-width: 0;
}

body.client-ui .cp-ticket-card__footer {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--tile-divider);
    background: rgba(15, 23, 42, 0.015);
}

body.client-ui .cp-ticket-card__date {
    color: var(--tile-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.client-ui .client-tracking-card__action .btn {
    border-radius: 12px;
    min-width: 44px;
    padding: 8px 12px;
}

/* ── Empty state polish ─────────────────────────────────── */
body.client-ui .cp-tiles + .alert,
body.client-ui .cp-goods-tiles + .alert,
body.client-ui .cp-inv-tiles + .alert,
body.client-ui .cp-ticket-cards + .alert,
body.client-ui .client-tracking-cards + .alert,
body.client-ui .cp-tiles .alert,
body.client-ui .cp-goods-tiles .alert,
body.client-ui .cp-inv-tiles .alert,
body.client-ui .cp-ticket-cards .alert {
    border-radius: 14px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    background: #fbfcfe;
    padding: 22px;
    text-align: center;
}

/* ── Tiny screens ───────────────────────────────────────── */
@media (max-width: 380px) {
    body.client-ui .cp-tile__body,
    body.client-ui .cp-goods-tile__body,
    body.client-ui .cp-inv-tile__body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.client-ui .cp-ticket-kv,
    body.client-ui .pickup-view-kv,
    body.client-ui .client-tracking-card__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    body.client-ui .cp-tile__header,
    body.client-ui .cp-goods-tile__header,
    body.client-ui .cp-inv-tile__header,
    body.client-ui .cp-ticket-card__top,
    body.client-ui .client-tracking-card__top {
        padding: 14px 14px 10px;
    }

    body.client-ui .cp-tile__body,
    body.client-ui .cp-goods-tile__body,
    body.client-ui .cp-inv-tile__body,
    body.client-ui .cp-ticket-card__body,
    body.client-ui .pickup-view-card__body,
    body.client-ui .client-tracking-card__grid {
        padding: 12px 14px 14px;
    }
}

@keyframes clientTileIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.client-ui .cp-tile,
    body.client-ui .cp-goods-tile,
    body.client-ui .cp-inv-tile,
    body.client-ui .cp-ticket-card,
    body.client-ui .pickup-view-card,
    body.client-ui .client-tracking-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   DARK MODE — unified client tiles
   Re-skin the same tile shells/headers/labels/values/chips for
   the dark theme. Selector wins by carrying html[data-we-theme]
   in front of the same body.client-ui chain.
   ============================================================ */

html[data-we-theme="dark"] body.client-ui {
    --tile-bg: #131a2b;
    --tile-border: rgba(255, 255, 255, 0.08);
    --tile-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.45);
    --tile-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.40), 0 20px 38px rgba(0, 0, 0, 0.55);
    --tile-text: #e2e8f0;
    --tile-muted: rgba(226, 232, 240, 0.62);
    --tile-label: rgba(226, 232, 240, 0.55);
    --tile-divider: rgba(255, 255, 255, 0.08);
}

html[data-we-theme="dark"] body.client-ui .cp-tile,
html[data-we-theme="dark"] body.client-ui .cp-goods-tile,
html[data-we-theme="dark"] body.client-ui .cp-inv-tile,
html[data-we-theme="dark"] body.client-ui .cp-ticket-card,
html[data-we-theme="dark"] body.client-ui .pickup-view-card,
html[data-we-theme="dark"] body.client-ui .client-tracking-card {
    background: var(--tile-bg);
    border-color: var(--tile-border);
    box-shadow: var(--tile-shadow);
}

html[data-we-theme="dark"] body.client-ui .cp-tile:hover,
html[data-we-theme="dark"] body.client-ui .cp-goods-tile:hover,
html[data-we-theme="dark"] body.client-ui .cp-inv-tile:hover,
html[data-we-theme="dark"] body.client-ui .cp-ticket-card:hover,
html[data-we-theme="dark"] body.client-ui .pickup-view-card:hover,
html[data-we-theme="dark"] body.client-ui .client-tracking-card:hover {
    box-shadow: var(--tile-shadow-hover);
    border-color: rgba(0, 168, 232, 0.35);
}

/* Header */
html[data-we-theme="dark"] body.client-ui .cp-tile__header,
html[data-we-theme="dark"] body.client-ui .cp-goods-tile__header,
html[data-we-theme="dark"] body.client-ui .cp-inv-tile__header,
html[data-we-theme="dark"] body.client-ui .cp-ticket-card__top,
html[data-we-theme="dark"] body.client-ui .client-tracking-card__top {
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom-color: var(--tile-divider);
}

html[data-we-theme="dark"] body.client-ui .cp-tile__title,
html[data-we-theme="dark"] body.client-ui .cp-goods-tile__title,
html[data-we-theme="dark"] body.client-ui .cp-inv-tile__title,
html[data-we-theme="dark"] body.client-ui .cp-ticket-card__subject,
html[data-we-theme="dark"] body.client-ui .client-tracking-card__tracking {
    color: var(--tile-text);
}

html[data-we-theme="dark"] body.client-ui .cp-ticket-card__subject a,
html[data-we-theme="dark"] body.client-ui .cp-ticket-card__subject a:hover {
    color: #60a5fa !important;
}

html[data-we-theme="dark"] body.client-ui .cp-inv-tile__subtitle {
    color: var(--tile-muted);
}

html[data-we-theme="dark"] body.client-ui .client-tracking-card__index {
    color: #60a5fa;
}

/* Badges */
html[data-we-theme="dark"] body.client-ui .cp-tile__badge,
html[data-we-theme="dark"] body.client-ui .cp-goods-tile__mode,
html[data-we-theme="dark"] body.client-ui .cp-inv-badge {
    color: #7dd3fc;
    background: rgba(0, 168, 232, 0.18);
    border-color: rgba(0, 168, 232, 0.40);
}

html[data-we-theme="dark"] body.client-ui .cp-inv-badge--issued {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.20);
    border-color: rgba(14, 165, 233, 0.45);
}

html[data-we-theme="dark"] body.client-ui .cp-inv-badge--partial {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.20);
    border-color: rgba(245, 158, 11, 0.45);
}

html[data-we-theme="dark"] body.client-ui .cp-inv-badge--paid {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.40);
}

/* Body / labels / values */
html[data-we-theme="dark"] body.client-ui .cp-kv small,
html[data-we-theme="dark"] body.client-ui .cp-goods-kv small,
html[data-we-theme="dark"] body.client-ui .cp-inv-kv small,
html[data-we-theme="dark"] body.client-ui .cp-ticket-kv .label,
html[data-we-theme="dark"] body.client-ui .pickup-view-kv .label,
html[data-we-theme="dark"] body.client-ui .client-tracking-card__label {
    color: var(--tile-label);
}

html[data-we-theme="dark"] body.client-ui .cp-kv .value,
html[data-we-theme="dark"] body.client-ui .cp-goods-kv .value,
html[data-we-theme="dark"] body.client-ui .cp-inv-kv .value,
html[data-we-theme="dark"] body.client-ui .cp-ticket-kv,
html[data-we-theme="dark"] body.client-ui .pickup-view-kv,
html[data-we-theme="dark"] body.client-ui .client-tracking-card__value {
    color: var(--tile-text);
}

/* Chips (shipping mark etc.) — the original problem: white-on-light */
html[data-we-theme="dark"] body.client-ui .cp-chip,
html[data-we-theme="dark"] body.client-ui .cp-goods-chip {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.12) 100%);
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

html[data-we-theme="dark"] body.client-ui .cp-chip span,
html[data-we-theme="dark"] body.client-ui .cp-goods-chip span {
    color: #6ee7b7;
}

/* Footers / Actions */
html[data-we-theme="dark"] body.client-ui .cp-actions,
html[data-we-theme="dark"] body.client-ui .cp-inv-actions,
html[data-we-theme="dark"] body.client-ui .cp-ticket-card__footer {
    border-top-color: var(--tile-divider);
}

html[data-we-theme="dark"] body.client-ui .cp-ticket-card__footer {
    background: rgba(255, 255, 255, 0.02);
}

html[data-we-theme="dark"] body.client-ui .cp-ticket-card__date {
    color: var(--tile-muted);
}

/* Empty-state alerts inside tile lists */
html[data-we-theme="dark"] body.client-ui .cp-tiles + .alert,
html[data-we-theme="dark"] body.client-ui .cp-goods-tiles + .alert,
html[data-we-theme="dark"] body.client-ui .cp-inv-tiles + .alert,
html[data-we-theme="dark"] body.client-ui .cp-ticket-cards + .alert,
html[data-we-theme="dark"] body.client-ui .client-tracking-cards + .alert,
html[data-we-theme="dark"] body.client-ui .cp-tiles .alert,
html[data-we-theme="dark"] body.client-ui .cp-goods-tiles .alert,
html[data-we-theme="dark"] body.client-ui .cp-inv-tiles .alert,
html[data-we-theme="dark"] body.client-ui .cp-ticket-cards .alert {
    background: #1a2236;
    border-color: rgba(255, 255, 255, 0.10);
    color: var(--tile-muted);
}

/* =====================================================================
   Estimate Cost (client panel) — modern, responsive UI
   ===================================================================== */
body.client-ui .ec-page {
    --ec-accent: #1cb5e0;
    --ec-accent-2: #2575fc;
    --ec-surface: #ffffff;
    --ec-surface-2: #f6f9fc;
    --ec-border: rgba(15, 23, 42, 0.08);
    --ec-text: #0f172a;
    --ec-muted: #64748b;
    --ec-radius: 18px;
    --ec-radius-sm: 12px;
    --ec-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    --ec-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.10);
    --ec-gradient: linear-gradient(135deg, #1cb5e0 0%, #2575fc 100%);
}

html[data-we-theme="dark"] body.client-ui .ec-page {
    --ec-surface: #121a2e;
    --ec-surface-2: #0d1525;
    --ec-border: rgba(255, 255, 255, 0.08);
    --ec-text: #e6edf7;
    --ec-muted: #94a3b8;
    --ec-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --ec-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
}

body.client-ui .ec-page { color: var(--ec-text); }

/* Hero header */
body.client-ui .ec-hero {
    position: relative;
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 22px 24px;
    box-shadow: var(--ec-shadow);
    overflow: hidden;
    margin-bottom: 18px;
}
body.client-ui .ec-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ec-gradient);
    opacity: 0.06;
    pointer-events: none;
}
body.client-ui .ec-hero-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
body.client-ui .ec-hero-text { min-width: 0; }
body.client-ui .ec-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ec-accent);
    background: rgba(28, 181, 224, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
body.client-ui .ec-hero-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.15;
    color: var(--ec-text);
}
body.client-ui .ec-hero-sub {
    margin: 0;
    color: var(--ec-muted);
    font-size: 0.92rem;
}

/* Mode switch (Sea / Air / Rates) */
body.client-ui .ec-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: var(--ec-surface-2);
    border: 1px solid var(--ec-border);
    border-radius: 999px;
    flex-wrap: wrap;
}
body.client-ui .ec-mode-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ec-muted);
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}
body.client-ui .ec-mode-link:hover {
    color: var(--ec-text);
    background: rgba(28, 181, 224, 0.08);
}
body.client-ui .ec-mode-link.is-active {
    background: var(--ec-gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 117, 252, 0.32);
}
body.client-ui .ec-mode-link i { font-size: 0.85rem; }

/* Sub tabs (CBM / Sizes) */
body.client-ui .ec-subtabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 6px;
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: 999px;
    box-shadow: var(--ec-shadow);
    margin-bottom: 18px;
}
body.client-ui .ec-subtab {
    text-align: center;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ec-muted);
    text-decoration: none;
    transition: all 0.18s ease;
}
body.client-ui .ec-subtab:hover {
    color: var(--ec-text);
    background: rgba(28, 181, 224, 0.06);
}
body.client-ui .ec-subtab.is-active {
    background: var(--ec-gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 117, 252, 0.32);
}

/* Main card */
body.client-ui .ec-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow);
    overflow: hidden;
}
body.client-ui .ec-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ec-border);
    background: linear-gradient(180deg, var(--ec-surface-2), transparent);
}
body.client-ui .ec-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--ec-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.28);
}
body.client-ui .ec-card-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ec-text);
}
body.client-ui .ec-card-sub {
    color: var(--ec-muted);
    font-size: 0.82rem;
}
body.client-ui .ec-card-body { padding: 22px; }

/* Section label inside card */
body.client-ui .ec-section-label {
    font-weight: 600;
    color: var(--ec-text);
    margin: 0 0 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.client-ui .ec-section-label::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--ec-gradient);
}

/* Form grid */
body.client-ui .ec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
body.client-ui .ec-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) {
    body.client-ui .ec-grid,
    body.client-ui .ec-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 576px) and (max-width: 991px) {
    body.client-ui .ec-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.client-ui .ec-field { display: flex; flex-direction: column; gap: 6px; }
body.client-ui .ec-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ec-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
body.client-ui .ec-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
body.client-ui .ec-input-wrap > .ec-input-icon {
    position: absolute;
    left: 14px;
    color: var(--ec-muted);
    pointer-events: none;
    font-size: 0.9rem;
}
body.client-ui .ec-input-wrap > .ec-input-suffix {
    position: absolute;
    right: 14px;
    color: var(--ec-muted);
    font-size: 0.78rem;
    font-weight: 600;
    pointer-events: none;
}
body.client-ui .ec-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 38px;
    border-radius: var(--ec-radius-sm);
    border: 1px solid var(--ec-border);
    background: var(--ec-surface-2);
    color: var(--ec-text);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.client-ui .ec-input::placeholder { color: var(--ec-muted); opacity: 0.7; }
body.client-ui .ec-input:focus {
    outline: none;
    border-color: var(--ec-accent);
    background: var(--ec-surface);
    box-shadow: 0 0 0 4px rgba(28, 181, 224, 0.18);
}
body.client-ui .ec-input.has-suffix { padding-right: 56px; }

/* CTA button */
body.client-ui .ec-cta {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--ec-radius-sm);
    background: var(--ec-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 117, 252, 0.32);
    transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.15s ease;
}
body.client-ui .ec-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37, 117, 252, 0.38); }
body.client-ui .ec-cta:active { transform: translateY(0); }
body.client-ui .ec-cta:disabled { opacity: 0.65; cursor: progress; box-shadow: none; transform: none; }

/* Total card (the result preview) */
body.client-ui .ec-total {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--ec-radius-sm);
    background: linear-gradient(135deg, rgba(28, 181, 224, 0.10), rgba(37, 117, 252, 0.10));
    border: 1px dashed rgba(28, 181, 224, 0.4);
}
body.client-ui .ec-total-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ec-text);
}
body.client-ui .ec-total-label i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ec-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
body.client-ui .ec-total-value {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 800;
    background: var(--ec-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Note */
body.client-ui .ec-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--ec-accent);
    background: var(--ec-surface-2);
    border-radius: 8px;
    color: var(--ec-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* Modal polish (scoped to estimate cost modals) */
body.client-ui .ec-modal .modal-content {
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    background: var(--ec-surface);
    color: var(--ec-text);
    overflow: hidden;
}
body.client-ui .ec-modal .modal-header {
    background: var(--ec-gradient);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}
body.client-ui .ec-modal .modal-title { font-weight: 700; }
body.client-ui .ec-modal .modal-header .close,
body.client-ui .ec-modal .modal-header .btn-close {
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
    filter: invert(1) grayscale(100%) brightness(200%);
}
body.client-ui .ec-modal .modal-body { background: var(--ec-surface); padding: 20px; }
body.client-ui .ec-modal .ec-total {
    margin-top: 0;
    margin-bottom: 16px;
}

body.client-ui .ec-rate-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.client-ui .ec-rate-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--ec-shadow);
}
body.client-ui .ec-rate-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
body.client-ui .ec-rate-title {
    font-weight: 700;
    color: var(--ec-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
body.client-ui .ec-rate-title i {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(28, 181, 224, 0.14);
    color: var(--ec-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}
body.client-ui .ec-rate-sub { color: var(--ec-muted); font-size: 0.82rem; margin-top: 2px; }
body.client-ui .ec-rate-per {
    text-align: right;
    color: var(--ec-muted);
    font-size: 0.82rem;
}
body.client-ui .ec-rate-per strong { display: block; color: var(--ec-text); font-size: 0.85rem; }

body.client-ui .ec-rate-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
@media (max-width: 480px) {
    body.client-ui .ec-rate-amounts { grid-template-columns: 1fr; }
}
body.client-ui .ec-rate-amount {
    padding: 12px 14px;
    background: var(--ec-surface-2);
    border: 1px solid var(--ec-border);
    border-radius: 10px;
}
body.client-ui .ec-rate-amount small {
    display: block;
    color: var(--ec-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}
body.client-ui .ec-rate-amount strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ec-text);
}

/* Loading shimmer for CTA */
@keyframes ecPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
body.client-ui .ec-cta.is-loading { animation: ecPulse 1s ease-in-out infinite; }

/* Responsive tweaks */
@media (max-width: 575.98px) {
    body.client-ui .ec-hero { padding: 18px; }
    body.client-ui .ec-card-body { padding: 18px; }
    body.client-ui .ec-mode-switch { width: 100%; justify-content: center; }
    body.client-ui .ec-mode-link { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   CLIENT TOPBAR — Professional, responsive, scoped to /client/* only.
   All rules below sit under `body.client-ui` so admin/merchant topbars
   are unaffected. Uses !important to override the shared `we-theme.css`
   dark-mode defaults that target the same elements.
   ===================================================================== */

/* --- Outer fixed bar surface ----------------------------------------- */
body.client-ui .navbar.transparent,
body.client-ui .dashboard-header,
body.client-ui .dashboard-header .navbar,
body.client-ui .admin-topbar-inner {
    background: linear-gradient(180deg, #0f1a2e 0%, #0b1424 100%) !important;
    color: #e8edf6 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

body.client-ui .admin-topbar-inner {
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
}

/* --- Desktop layout: single, well-spaced row ------------------------- */
@media (min-width: 992px) {
    /* At desktop / tablet-landscape (>=992px) Bootstrap shows the offcanvas
       `.admin-topbar-inner` bar inline. `.navbar-other` is the MOBILE bar
       (logo + newspaper + mobile profile + hamburger + mobile search); its
       individual items use `d-lg-none`, but the wrapper itself was never
       hidden, so a stray second row (logo chip + icons) kept rendering on
       top. This caused the duplicated/overlapping "two search bars" seen on
       iPad landscape. Hide the mobile bar so only the single topbar shows. */
    body.client-ui .merchant-navbar .navbar-other {
        display: none !important;
    }

    body.client-ui .admin-topbar-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 18px !important;
        width: 100% !important;
        min-height: 68px !important;
        padding: 10px 22px !important;
        box-sizing: border-box;
    }

    /* Logo chip */
    body.client-ui .admin-topbar-inner .navbar-brand {
        flex: 0 0 auto;
        margin: 0;
        padding: 6px 14px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    body.client-ui .admin-topbar-inner .navbar-brand:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    }
    body.client-ui .admin-topbar-inner .navbar-brand img.logo {
        max-height: 34px;
        width: auto;
        display: block;
    }

    /* Search holder takes remaining width */
    body.client-ui .admin-topbar-inner .admin-top-gs-holder {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        max-width: 720px;
    }

    /* Right-side controls cluster */
    body.client-ui .admin-topbar-inner #navbarSupportedContent {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    body.client-ui .admin-topbar-inner .navbar-right-top {
        flex-wrap: nowrap !important;
        gap: 12px !important;
        margin: 0 !important;
        align-items: center;
    }
    body.client-ui .admin-topbar-inner .navbar-right-top .nav-item {
        border-right: 0 !important;
    }
}

/* --- Search pill (desktop + mobile) ---------------------------------- */
body.client-ui .admin-top-gs-form {
    width: 100%;
}
body.client-ui .admin-top-gs-input-wrap {
    position: relative;
    background: transparent !important;
    border: 0 !important;
    box-sizing: border-box;
}
body.client-ui .admin-top-gs-input {
    width: 100%;
    height: 44px;
    padding-left: 46px !important;
    padding-right: 110px !important;
    border-radius: 999px !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #f1f5fb !important;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: .2px;
    box-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.client-ui .admin-top-gs-input::placeholder {
    color: rgba(241, 245, 251, 0.55) !important;
    font-weight: 500;
}
body.client-ui .admin-top-gs-input:hover {
    background-color: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
body.client-ui .admin-top-gs-input:focus {
    background-color: rgba(255, 255, 255, 0.10) !important;
    border-color: var(--client-primary, #00a8e8) !important;
    box-shadow: 0 0 0 .2rem rgba(0, 168, 232, 0.22) !important;
    outline: none !important;
}
body.client-ui .admin-top-gs-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: rgba(241, 245, 251, 0.65) !important;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}
body.client-ui .admin-top-gs-btn,
body.client-ui .admin-top-gs-btn:hover,
body.client-ui .admin-top-gs-btn:focus,
body.client-ui .admin-top-gs-btn:active {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    height: 34px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #00a8e8 0%, #0086c4 100%) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    letter-spacing: .25px;
    box-shadow: 0 6px 14px rgba(0, 168, 232, 0.32) !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
body.client-ui .admin-top-gs-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 18px rgba(0, 168, 232, 0.42) !important;
}
body.client-ui .admin-top-gs-btn:active {
    transform: translateY(calc(-50% + 1px));
    filter: brightness(0.97);
}

/* --- Right-side icon buttons (notification, globe, etc.) -------------
   Keep the icons quiet on the dark surface: no chip, no border, just a
   muted slate icon that lifts to brand blue on hover. */
body.client-ui .admin-topbar-inner .navbar-right-top .nav-link,
body.client-ui .navbar.transparent .navbar-right-top .nav-link {
    color: #98a4b8 !important;
}
body.client-ui .admin-topbar-inner .navbar-right-top > .nav-item > a:not(.nav-user-img) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent !important;
    border: 0 !important;
    color: #98a4b8 !important;
    font-size: 1rem;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
body.client-ui .admin-topbar-inner .navbar-right-top > .nav-item > a:not(.nav-user-img):hover,
body.client-ui .admin-topbar-inner .navbar-right-top > .nav-item > a:not(.nav-user-img):focus {
    background: rgba(0, 168, 232, 0.10) !important;
    color: var(--client-primary, #00a8e8) !important;
    transform: translateY(-1px);
}

/* To-Do button: keep it a pill but match the dark surface */
body.client-ui .admin-topbar-inner .navbar-right-top .btn.btn-primary {
    height: 38px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #00a8e8 0%, #0086c4 100%) !important;
    border: 0 !important;
    box-shadow: 0 6px 14px rgba(0, 168, 232, 0.28) !important;
    font-weight: 700;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Avatar / profile dropdown trigger ------------------------------- */
body.client-ui .admin-topbar-inner .nav-user .nav-link,
body.client-ui .navbar-other .nav-user .nav-link {
    padding: 0 !important;
}
body.client-ui .nav-user-img img.user-avatar-md {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.client-ui .nav-user-img:hover img.user-avatar-md {
    transform: scale(1.05);
    border-color: var(--client-primary, #00a8e8);
    box-shadow: 0 6px 14px rgba(0, 168, 232, 0.35);
}

/* Profile dropdown card */
body.client-ui .nav-user-dropdown {
    border-radius: 14px !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.18) !important;
    padding: 6px !important;
    margin-top: 10px !important;
    min-width: 220px;
}
body.client-ui .nav-user-dropdown .nav-user-info {
    background: linear-gradient(135deg, #0f1a2e 0%, #0b1424 100%);
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
}
body.client-ui .nav-user-dropdown .nav-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 !important;
}
body.client-ui .nav-user-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    transition: background-color .12s ease, color .12s ease;
}
body.client-ui .nav-user-dropdown .dropdown-item:hover,
body.client-ui .nav-user-dropdown .dropdown-item:focus {
    background: rgba(0, 168, 232, 0.10);
    color: var(--client-primary, #00a8e8);
}
body.client-ui .nav-user-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    margin-right: 8px !important;
    opacity: .85;
}

/* --- Mobile (< lg) layout polish ------------------------------------- */
@media (max-width: 991.98px) {
    body.client-ui .navbar.transparent {
        padding: 10px 14px !important;
    }
    body.client-ui .navbar.transparent > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Top row: logo + actions */
    body.client-ui .navbar-other {
        gap: 10px;
    }
    body.client-ui .navbar-other .d-lg-none img {
        max-height: 34px;
        width: auto !important;
        margin-top: 0 !important;
        padding: 4px 10px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    }
    body.client-ui .navbar-other .navbar-nav.flex-row {
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
    }

    /* Hamburger button — same muted treatment as the icons */
    body.client-ui .offcanvas-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: transparent !important;
        border: 0 !important;
        color: #98a4b8 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color .15s ease, color .15s ease;
    }
    body.client-ui .offcanvas-nav-btn:hover,
    body.client-ui .offcanvas-nav-btn:focus {
        background: rgba(0, 168, 232, 0.10) !important;
        color: var(--client-primary, #00a8e8) !important;
    }
    body.client-ui .offcanvas-nav-btn .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2398a4b8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 22px;
        height: 22px;
        opacity: 1;
        filter: none;
        transition: background-image .15s ease;
    }
    body.client-ui .offcanvas-nav-btn:hover .navbar-toggler-icon,
    body.client-ui .offcanvas-nav-btn:focus .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300a8e8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Mobile profile avatar matches desktop ring */
    body.client-ui .nav-user.mobile .user-avatar-md {
        width: 36px;
        height: 36px;
        border: 2px solid rgba(255, 255, 255, 0.20);
    }

    /* Mobile search row */
    body.client-ui .admin-top-gs-mobile-row {
        margin-top: 10px !important;
    }
    body.client-ui .admin-top-gs-mobile-row .admin-top-gs-input {
        background-color: rgba(255, 255, 255, 0.07) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: #f1f5fb !important;
    }
}

/* --- Light theme polish (keep cohesive when user picks light mode) --- */
html[data-we-theme="light"] body.client-ui .navbar.transparent,
html[data-we-theme="light"] body.client-ui .dashboard-header,
html[data-we-theme="light"] body.client-ui .dashboard-header .navbar,
html[data-we-theme="light"] body.client-ui .admin-topbar-inner {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%) !important;
    color: #0f1a2e !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06) !important;
}
html[data-we-theme="light"] body.client-ui .admin-topbar-inner .navbar-brand {
    background: #fff;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}
html[data-we-theme="light"] body.client-ui .admin-top-gs-input {
    background-color: #f1f4f9 !important;
    border-color: rgba(17, 24, 39, 0.08) !important;
    color: #0f1a2e !important;
}
html[data-we-theme="light"] body.client-ui .admin-top-gs-input::placeholder {
    color: rgba(17, 24, 39, 0.45) !important;
}
html[data-we-theme="light"] body.client-ui .admin-top-gs-input:hover {
    background-color: #eaeff7 !important;
}
html[data-we-theme="light"] body.client-ui .admin-top-gs-input:focus {
    background-color: #fff !important;
    border-color: var(--client-primary, #00a8e8) !important;
}
html[data-we-theme="light"] body.client-ui .admin-top-gs-icon {
    color: rgba(17, 24, 39, 0.55) !important;
}
html[data-we-theme="light"] body.client-ui .admin-topbar-inner .navbar-right-top > .nav-item > a:not(.nav-user-img) {
    background: #f1f4f9;
    border-color: rgba(17, 24, 39, 0.08);
    color: #0f1a2e !important;
}
html[data-we-theme="light"] body.client-ui .admin-topbar-inner .navbar-right-top > .nav-item > a:not(.nav-user-img):hover {
    background: #e7ecf5;
}
html[data-we-theme="light"] body.client-ui .nav-user-img img.user-avatar-md {
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.10);
}
html[data-we-theme="light"] body.client-ui .offcanvas-nav-btn {
    background: #f1f4f9 !important;
    border-color: rgba(17, 24, 39, 0.08) !important;
    color: #0f1a2e !important;
}
html[data-we-theme="light"] body.client-ui .offcanvas-nav-btn .navbar-toggler-icon {
    filter: none;
    opacity: .8;
}

/* --- Very small phones: tighten search button label ------------------ */
@media (max-width: 420px) {
    body.client-ui .admin-top-gs-input {
        padding-right: 56px !important;
        font-size: 0.88rem;
    }
    body.client-ui .admin-top-gs-btn {
        padding: 0 12px !important;
        height: 32px;
    }
}

/* =====================================================================
   Client / Merchant Sidebar — Professional Polish (scoped to body.client-ui)
   ---------------------------------------------------------------------
   This block ONLY upgrades the look of the left side-navbar on /client/*
   routes. It does not touch the admin/staff/hub sidebars (those don't
   load client-ui.css) and does not affect the rest of the client page
   content because every rule is scoped under .nav-left-sidebar.
   ===================================================================== */

/* --- Profile / greeting card at the top ------------------------------ */
body.client-ui .nav-left-sidebar .we-sidebar-top {
    padding: 14px 12px 4px 12px;
}
body.client-ui .nav-left-sidebar .we-sidebar-profile.card {
    border: 1px solid rgba(0, 168, 232, 0.14) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.08) 0%, rgba(0, 52, 89, 0.04) 100%);
    box-shadow: 0 4px 12px rgba(0, 23, 31, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.client-ui .nav-left-sidebar .we-sidebar-profile.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 23, 31, 0.10);
    border-color: rgba(0, 168, 232, 0.28) !important;
}
body.client-ui .nav-left-sidebar .we-sidebar-profile .card-body {
    padding: 12px 14px;
}
body.client-ui .nav-left-sidebar .we-sidebar-profile img.rounded-circle {
    border: 2px solid rgba(0, 168, 232, 0.45);
    box-shadow: 0 2px 6px rgba(0, 168, 232, 0.18);
    object-fit: cover;
    width: 42px !important;
    height: 42px !important;
}
body.client-ui .nav-left-sidebar .we-sidebar-profile .font-weight-bold {
    font-size: 0.92rem;
    font-weight: 600 !important;
    line-height: 1.25;
    letter-spacing: 0.1px;
}
body.client-ui .nav-left-sidebar .we-sidebar-profile .text-muted.small {
    font-size: 0.68rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 3px;
    opacity: 0.85;
}

/* --- Navigation list spacing & item polish --------------------------- */
body.client-ui .nav-left-sidebar .navbar-nav {
    padding: 4px 6px 24px 6px;
}
body.client-ui .nav-left-sidebar .navbar-nav > li {
    margin: 1px 0;
}
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 14px !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px !important;
    margin: 1px 2px !important;
    transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link i {
    width: 22px;
    margin-right: 12px;
    font-size: 0.95rem;
    text-align: center;
    transition: color .2s ease, transform .2s ease;
}
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link:hover {
    padding-left: 18px !important;
}
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link:hover i {
    transform: scale(1.08);
}

/* Hover accent indicator (small bar on the left) — does NOT show on
   active items because they're already filled with the selection color */
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link:not(.active):not([aria-expanded="true"]):hover::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: var(--client-primary, #00a8e8);
    box-shadow: 0 0 8px rgba(0, 168, 232, 0.5);
}
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link.active,
body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link[aria-expanded="true"] {
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.20);
}

/* Existing chevron arrow on collapsible items — soften it */
body.client-ui .nav-left-sidebar .nav-link[data-toggle="collapse"]::after {
    right: 14px !important;
    opacity: .55;
    transition: transform .3s ease, opacity .2s ease;
}
body.client-ui .nav-left-sidebar .nav-link[data-toggle="collapse"][aria-expanded="true"]::after {
    opacity: 1;
}

/* --- Submenu (Pickup Request, My wallet, Setting) -------------------- */
body.client-ui .nav-left-sidebar .submenu {
    padding: 3px 6px 6px 30px;
    position: relative;
    margin: 2px 4px 6px 4px;
}
body.client-ui .nav-left-sidebar .submenu::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.30), rgba(0, 168, 232, 0.05));
}
body.client-ui .nav-left-sidebar .submenu .nav .nav-item .nav-link {
    padding: 7px 12px !important;
    font-size: 0.82rem;
    border-radius: 8px !important;
    margin: 1px 0 !important;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}
body.client-ui .nav-left-sidebar .submenu .nav .nav-item .nav-link:hover {
    padding-left: 16px !important;
}

/* --- Sticky profile card on tall sidebars (desktop only) ------------- */
@media (min-width: 992px) {
    body.client-ui .nav-left-sidebar {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 168, 232, 0.35) transparent;
    }
    body.client-ui .nav-left-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    body.client-ui .nav-left-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    body.client-ui .nav-left-sidebar::-webkit-scrollbar-thumb {
        background: rgba(0, 168, 232, 0.30);
        border-radius: 3px;
    }
    body.client-ui .nav-left-sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 168, 232, 0.55);
    }
}

/* --- Mobile / tablet offcanvas polish -------------------------------- */
@media (max-width: 991.98px) {
    body.client-ui #offcanvasDarkNavbar.offcanvas {
        width: 296px;
        max-width: 88vw;
        box-shadow: 0 18px 40px rgba(0, 23, 31, 0.22);
    }
    body.client-ui #offcanvasDarkNavbar .offcanvas-header {
        padding: 14px 16px;
    }
    body.client-ui #offcanvasDarkNavbar .we-sidebar-profile.card {
        border-radius: 14px !important;
    }
    body.client-ui #offcanvasDarkNavbar .nav-left-sidebar .navbar-nav > li > .nav-link {
        padding: 11px 14px !important;
        font-size: 0.9rem;
    }
    body.client-ui #offcanvasDarkNavbar .nav-left-sidebar .submenu {
        padding-left: 32px;
    }
    body.client-ui #offcanvasDarkNavbar .nav-left-sidebar .submenu::before {
        left: 26px;
    }
    body.client-ui #offcanvasDarkNavbar .offcanvas-body {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 168, 232, 0.35) transparent;
    }
    body.client-ui #offcanvasDarkNavbar .offcanvas-body::-webkit-scrollbar {
        width: 6px;
    }
    body.client-ui #offcanvasDarkNavbar .offcanvas-body::-webkit-scrollbar-thumb {
        background: rgba(0, 168, 232, 0.30);
        border-radius: 3px;
    }
}
@media (max-width: 420px) {
    body.client-ui #offcanvasDarkNavbar.offcanvas {
        width: 280px;
        max-width: 86vw;
    }
    body.client-ui .nav-left-sidebar .we-sidebar-profile .font-weight-bold {
        font-size: 0.88rem;
    }
}

/* --- Dark theme refinements (load order: this file < we-theme.css, so
       we add body.client-ui to win specificity over we-theme.css rules) - */
html[data-we-theme="dark"] body.client-ui .nav-left-sidebar .we-sidebar-profile,
html[data-we-theme="dark"] body.client-ui .nav-left-sidebar .we-sidebar-profile.card {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(0, 168, 232, 0.22) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
}
html[data-we-theme="dark"] body.client-ui .nav-left-sidebar .we-sidebar-profile.card:hover {
    border-color: rgba(0, 168, 232, 0.38) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
}
html[data-we-theme="dark"] body.client-ui .nav-left-sidebar .we-sidebar-profile img.rounded-circle {
    border-color: rgba(0, 168, 232, 0.55);
}
html[data-we-theme="dark"] body.client-ui .nav-left-sidebar .submenu::before {
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.38), rgba(0, 168, 232, 0.06));
}

/* --- Light theme refinements (sit cohesively on the existing palette) - */
html[data-we-theme="light"] body.client-ui .nav-left-sidebar .we-sidebar-profile.card,
body.client-ui .nav-left-sidebar .we-sidebar-profile.card {
    background-color: #ffffff;
}
html[data-we-theme="light"] body.client-ui .nav-left-sidebar .navbar-nav > li > .nav-link:hover {
    background-color: rgba(0, 52, 89, 0.06) !important;
}

/* =====================================================================
   Pickup Request modals — client side only (#warehouse, #delivery)
   Scoped via body.client-ui so the merchant panel is untouched.
   ===================================================================== */
body.client-ui :is(#warehouse, #delivery).modal {
    padding: 12px !important;
    overflow: hidden !important;
}
body.client-ui :is(#warehouse, #delivery) .modal-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
    max-height: calc(100vh - 3.5rem);
    display: flex;
}
body.client-ui :is(#warehouse, #delivery) .modal-content,
body.client-ui :is(#warehouse, #delivery) #data-modal {
    border: 1px solid var(--client-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--client-text);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18), 0 2px 6px rgba(17, 24, 39, 0.06);
    overflow: hidden;
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    width: 100%;
}
body.client-ui :is(#warehouse, #delivery) form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
body.client-ui :is(#warehouse, #delivery) .modal-header {
    position: relative;
    padding: 18px 22px;
    background: linear-gradient(135deg, #00a8e8 0%, #0086c4 100%);
    color: #ffffff;
    border-bottom: none;
}
body.client-ui :is(#warehouse, #delivery) .modal-header::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
}
body.client-ui :is(#warehouse, #delivery) .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
body.client-ui :is(#warehouse, #delivery) .modal-title::before {
    content: "\f0d1"; /* fa-truck */
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
body.client-ui :is(#warehouse, #delivery) .modal-header .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 10px;
    margin: -6px -10px -6px auto;
    border-radius: 8px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
body.client-ui :is(#warehouse, #delivery) .modal-header .close:hover,
body.client-ui :is(#warehouse, #delivery) .modal-header .close:focus {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
    outline: none;
}

body.client-ui :is(#warehouse, #delivery) .modal-body {
    padding: 22px 22px 6px;
    background: #ffffff;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 168, 232, 0.45) transparent;
}
body.client-ui :is(#warehouse, #delivery) .modal-body::-webkit-scrollbar {
    width: 8px;
}
body.client-ui :is(#warehouse, #delivery) .modal-body::-webkit-scrollbar-track {
    background: transparent;
}
body.client-ui :is(#warehouse, #delivery) .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 232, 0.35);
    border-radius: 999px;
}
body.client-ui :is(#warehouse, #delivery) .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 232, 0.55);
}
body.client-ui :is(#warehouse, #delivery) .form-group {
    margin-bottom: 16px;
}
body.client-ui :is(#warehouse, #delivery) label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--client-text);
    margin-bottom: 6px;
}
body.client-ui :is(#warehouse, #delivery) label .text-danger {
    color: #e5484d !important;
    margin-left: 2px;
}
body.client-ui :is(#warehouse, #delivery) small.text-muted {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--client-muted) !important;
}

body.client-ui :is(#warehouse, #delivery) .form-control,
body.client-ui :is(#warehouse, #delivery) select.form-control,
body.client-ui :is(#warehouse, #delivery) textarea.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    background: #f8fafc;
    color: var(--client-text);
    border: 1px solid var(--client-border);
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}
body.client-ui :is(#warehouse, #delivery) textarea.form-control {
    min-height: 110px;
    resize: vertical;
}
body.client-ui :is(#warehouse, #delivery) select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2300a8e8' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 7px;
    padding-right: 36px;
}
body.client-ui :is(#warehouse, #delivery) .form-control::placeholder {
    color: rgba(17, 24, 39, 0.4);
}
body.client-ui :is(#warehouse, #delivery) .form-control:hover {
    border-color: rgba(0, 168, 232, 0.45);
}
body.client-ui :is(#warehouse, #delivery) .form-control:focus,
body.client-ui :is(#warehouse, #delivery) select.form-control:focus,
body.client-ui :is(#warehouse, #delivery) textarea.form-control:focus {
    background: #ffffff;
    border-color: var(--client-primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.15);
    outline: none;
}

body.client-ui :is(#warehouse, #delivery) .modal-footer {
    padding: 14px 22px 20px;
    background: #ffffff;
    border-top: 1px solid var(--client-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex: 0 0 auto;
}
body.client-ui :is(#warehouse, #delivery) .modal-header {
    flex: 0 0 auto;
}
body.client-ui :is(#warehouse, #delivery) .modal-footer .btn {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
}
body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-secondary {
    background: #eef2f7;
    border: 1px solid var(--client-border);
    color: var(--client-text);
}
body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-secondary:hover {
    background: #e2e8f0;
    color: var(--client-text);
}
body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-primary {
    background: linear-gradient(135deg, #00a8e8 0%, #0086c4 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 168, 232, 0.28);
}
body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-primary:hover {
    box-shadow: 0 12px 22px rgba(0, 168, 232, 0.36);
    transform: translateY(-1px);
}
body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 168, 232, 0.28);
}

/* Responsive — phones */
@media (max-width: 575.98px) {
    body.client-ui :is(#warehouse, #delivery) .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100%;
        max-height: 100vh;
        display: flex;
        align-items: flex-end;
    }
    body.client-ui :is(#warehouse, #delivery) .modal-content,
    body.client-ui :is(#warehouse, #delivery) #data-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 40px rgba(17, 24, 39, 0.25);
    }
    body.client-ui :is(#warehouse, #delivery) .modal-header {
        padding: 16px 18px;
    }
    body.client-ui :is(#warehouse, #delivery) .modal-body {
        padding: 18px 18px 4px;
    }
    body.client-ui :is(#warehouse, #delivery) .modal-footer {
        padding: 12px 18px 18px;
        flex-direction: column-reverse;
    }
    body.client-ui :is(#warehouse, #delivery) .modal-footer .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Dark theme */
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .modal-content,
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) #data-modal {
    background: #111a2e;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e6ebf2;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .modal-body,
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .modal-footer {
    background: #111a2e;
    border-top-color: rgba(255, 255, 255, 0.06);
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) label {
    color: #e6ebf2;
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) small.text-muted {
    color: rgba(230, 235, 242, 0.55) !important;
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .form-control,
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) select.form-control,
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) textarea.form-control {
    background: #1a2440;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e6ebf2;
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .form-control::placeholder {
    color: rgba(230, 235, 242, 0.4);
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .form-control:focus,
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) select.form-control:focus,
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) textarea.form-control:focus {
    background: #1d2a4a;
    border-color: var(--client-primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.22);
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e6ebf2;
}
html[data-we-theme="dark"] body.client-ui :is(#warehouse, #delivery) .modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
