@font-face {
    font-family: "Manrope";
    src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

/* Order operations: compact filters and explicit bulk selection. */
.admin-body .admin-order-filters{padding:16px 18px;border-bottom:1px solid var(--admin-outline);background:#fcfdff}
.admin-body .admin-date-filter{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:0;border:0}
.admin-body .admin-date-filter legend{float:left;margin-right:6px;color:var(--admin-muted);font-size:11px;font-weight:750}
.admin-body .admin-date-filter label{position:relative;cursor:pointer}
.admin-body .admin-date-filter input{position:absolute;width:1px;height:1px;opacity:0}
.admin-body .admin-date-filter span{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--admin-outline-strong);border-radius:9px;background:#fff;color:var(--admin-text);font-size:12px;font-weight:700;transition:.15s ease}
.admin-body .admin-date-filter input:checked+span{border-color:var(--admin-primary);background:var(--admin-primary);color:#fff;box-shadow:0 3px 10px rgba(23,105,210,.18)}
.admin-body .admin-date-filter input:focus-visible+span{outline:3px solid rgba(23,105,210,.22);outline-offset:2px}
.admin-body .admin-order-filter-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(190px,1fr) repeat(3,minmax(145px,.75fr)) auto auto;align-items:end;gap:10px}
.admin-body .admin-order-filter-grid input,.admin-body .admin-order-filter-grid select{width:100%;height:42px;min-height:42px;padding:0 12px;border:1px solid var(--admin-outline-strong);border-radius:var(--admin-radius-input);background:#fff;color:var(--admin-text);font-size:12px}
.admin-body .admin-order-filter-grid .admin-search-field input{padding-left:38px}
.admin-body .admin-custom-date{display:none}.admin-body .admin-custom-date.is-visible{display:grid}
.admin-body .admin-bulk-toolbar{display:flex;align-items:end;gap:10px;padding:11px 18px;border-bottom:1px solid var(--admin-outline);background:#f7faff}
.admin-body .admin-bulk-toolbar>div:first-child{display:grid;margin-right:auto}.admin-body .admin-bulk-toolbar strong{font-size:12px}.admin-body .admin-bulk-toolbar>div span{margin-top:2px;color:var(--admin-muted);font-size:10.5px}
.admin-body .admin-bulk-toolbar .admin-select-field{min-width:210px}.admin-body .admin-bulk-toolbar select{height:40px;border:1px solid var(--admin-outline-strong);border-radius:9px;background:#fff;padding:0 10px;font-size:12px}
.admin-body .admin-check-column{width:42px!important;padding-left:16px!important;padding-right:6px!important}.admin-body .admin-check-column input{width:17px;height:17px;accent-color:var(--admin-primary);cursor:pointer}
.admin-body .admin-inline-actions form{margin:0}
@media(max-width:1500px){.admin-body .admin-order-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.admin-body .admin-order-filter-grid .admin-search-field{grid-column:span 2}}
@media(max-width:700px){.admin-body .admin-date-filter{overflow-x:auto;padding-bottom:3px}.admin-body .admin-date-filter legend{position:sticky;left:0;z-index:1;background:#fcfdff}.admin-body .admin-date-filter span{white-space:nowrap}.admin-body .admin-order-filter-grid{grid-template-columns:1fr 1fr}.admin-body .admin-order-filter-grid .admin-search-field{grid-column:1/-1}.admin-body .admin-order-filter-grid .admin-button{width:100%}.admin-body .admin-bulk-toolbar{align-items:stretch;flex-wrap:wrap}.admin-body .admin-bulk-toolbar>div:first-child{width:100%}.admin-body .admin-bulk-toolbar .admin-select-field{flex:1;min-width:180px}}

.admin-body {
    --ops-navy: #071a36;
    --ops-navy-raised: #0b284f;
    --ops-blue: #0868df;
    --ops-blue-dark: #0754b5;
    --ops-gold: #ffc21a;
    --ops-ink: #10213b;
    --ops-copy: #52647e;
    --ops-muted: #78879d;
    --ops-canvas: #f3f6fa;
    --ops-surface: #ffffff;
    --ops-line: #dce5ef;
    --ops-green: #137848;
    --ops-green-dark: #0d3d34;
    --ops-red: #bd352e;
    --ops-shadow: 0 1px 2px rgba(9, 30, 66, .05), 0 12px 28px rgba(9, 30, 66, .06);
    background: var(--ops-canvas) !important;
    color: var(--ops-ink) !important;
    font-family: "Manrope", Arial, sans-serif !important;
}

.admin-body button,
.admin-body input,
.admin-body select,
.admin-body textarea {
    font-family: inherit;
}

.admin-body a:focus-visible,
.admin-body button:focus-visible,
.admin-body input:focus-visible,
.admin-body select:focus-visible,
.admin-body textarea:focus-visible,
.admin-body summary:focus-visible {
    outline: 3px solid rgba(8, 104, 223, .28) !important;
    outline-offset: 2px;
}

.admin-body .admin-shell {
    grid-template-columns: 264px minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    overflow: clip;
    background: var(--ops-canvas) !important;
    isolation: isolate;
}

.admin-body .admin-rail {
    align-self: start !important;
    width: 264px !important;
    min-width: 264px !important;
    max-width: 264px !important;
    padding: 20px 14px 16px !important;
    background: var(--ops-navy) !important;
    box-shadow: 10px 0 34px rgba(4, 20, 45, .08) !important;
}

.admin-body .admin-dashboard-intro__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-body .admin-modal-alert {
    padding: 11px 13px;
    border: 1px solid #efb4ae;
    border-radius: 10px;
    background: #fff4f2;
    color: #9d2f29;
    font-size: 12px;
    font-weight: 650;
}

.admin-body .admin-field-error {
    color: #b5322b;
    font-size: 11px;
    line-height: 1.4;
}

.admin-body .admin-wallet-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 10px 13px;
    border: 1px solid #c8d9f2;
    border-radius: 11px;
    background: #f2f7ff;
    color: #53647d;
    font-size: 12px;
}

.admin-body .admin-wallet-context[hidden] {
    display: none;
}

.admin-body .admin-wallet-context strong {
    color: #0d5fca;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.admin-body .admin-data-table .admin-inline-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.admin-body .admin-rail__brand {
    min-height: 58px;
    margin: 0 4px 14px;
    padding: 0 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.admin-body .admin-rail__brand > a {
    padding: 0 !important;
    background: transparent !important;
}

.admin-body .admin-brand-mark {
    position: relative;
    width: 40px !important;
    height: 28px !important;
    flex: 0 0 40px;
    background: transparent !important;
    box-shadow: none !important;
    transform: rotate(-7deg);
}

.admin-body .admin-brand-mark::before,
.admin-body .admin-brand-mark::after {
    content: "";
    position: absolute;
    top: 7px;
    width: 23px;
    height: 13px;
    border: 4px solid var(--ops-gold);
    border-radius: 999px;
    box-sizing: border-box;
    transform: rotate(-24deg);
}

.admin-body .admin-brand-mark::before { left: 0; }
.admin-body .admin-brand-mark::after { right: 0; border-color: #f3a900; }

.admin-body .admin-rail__brand b {
    color: #fff !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
}

.admin-body .admin-rail__brand small {
    margin-top: 3px;
    color: #88a0c1 !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-body .admin-nav {
    gap: 3px !important;
}

.admin-body .admin-nav-item {
    min-height: 42px !important;
    border-radius: 10px !important;
    color: #b9c8dc !important;
    font-size: 13px !important;
    transition: background .16s ease, color .16s ease, transform .16s ease !important;
}

.admin-body .admin-nav-item:hover {
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
    transform: translateX(2px);
}

.admin-body .admin-nav-item.active {
    background: #12345f !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--ops-gold), inset 0 0 0 1px rgba(255, 255, 255, .07) !important;
}

.admin-body .admin-nav-item.active .admin-icon {
    color: var(--ops-gold) !important;
}

.admin-body .admin-nav-count {
    min-width: 25px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #9fb1ca !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.admin-body .admin-nav-submenu {
    margin: 4px 0 7px 17px !important;
    padding-left: 13px !important;
    border-left: 1px solid rgba(255, 255, 255, .13) !important;
}

.admin-body .admin-nav-submenu a {
    min-height: 34px !important;
    border-radius: 8px !important;
    color: #91a5c1 !important;
    font-size: 12px !important;
}

.admin-body .admin-nav-submenu a.active,
.admin-body .admin-nav-submenu a:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
}

.admin-body .admin-rail__footer {
    margin: auto 4px 0 !important;
    padding: 15px 12px !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .04) !important;
}

.admin-body .admin-workspace,
.admin-body .admin-content {
    min-width: 0;
    max-width: 100%;
    background: var(--ops-canvas) !important;
}

.admin-body .admin-workspace {
    position: relative;
    grid-column: 2;
    width: 100%;
    overflow: clip;
    isolation: isolate;
}

.admin-body .admin-commandbar {
    min-height: 74px !important;
    padding: 14px 28px !important;
    border-bottom: 1px solid var(--ops-line) !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(9, 30, 66, .035) !important;
    backdrop-filter: none !important;
}

.admin-body .admin-commandbar h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
}

.admin-body .admin-global-search {
    height: 44px !important;
    border: 1px solid #cad6e5 !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 2px rgba(9, 30, 66, .03) !important;
}

.admin-body .admin-global-search:focus-within {
    border-color: var(--ops-blue) !important;
    box-shadow: 0 0 0 3px rgba(8, 104, 223, .14) !important;
}

.admin-body .admin-icon-button {
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
}

.admin-body .admin-avatar {
    background: var(--ops-navy) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px #edf3fa !important;
}

.admin-body .admin-reference-dashboard {
    padding: 20px 28px 32px !important;
}

.admin-body .admin-dashboard-intro {
    min-height: 142px;
    margin-bottom: 16px !important;
    padding: 24px 26px !important;
    border-radius: 16px !important;
    background: var(--ops-navy-raised) !important;
    color: #fff !important;
    box-shadow: 0 18px 38px rgba(5, 27, 61, .15) !important;
}

.admin-body .admin-dashboard-intro > div:first-child > span {
    display: none !important;
}

.admin-body .admin-dashboard-intro h2 {
    margin: 0 0 7px !important;
    color: #fff !important;
    font-size: 29px !important;
    font-weight: 780 !important;
    letter-spacing: -.025em !important;
}

.admin-body .admin-dashboard-intro p {
    color: #b9cce5 !important;
    font-size: 13px !important;
}

.admin-body .admin-dashboard-intro time {
    color: #c7d7ea !important;
    font-size: 12px !important;
}

.admin-body .admin-dashboard-intro__actions .admin-button {
    min-height: 42px !important;
    border-color: var(--ops-gold) !important;
    background: var(--ops-gold) !important;
    color: var(--ops-navy) !important;
    box-shadow: 0 9px 20px rgba(255, 194, 26, .18) !important;
}

.admin-body .admin-reference-kpis {
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.admin-body .admin-reference-kpi {
    min-height: 136px !important;
    padding: 18px !important;
    border: 0 !important;
    border-top: 3px solid #d6e2f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: var(--ops-shadow) !important;
}

.admin-body .admin-reference-kpi:nth-child(2) { border-top-color: var(--ops-gold) !important; }
.admin-body .admin-reference-kpi:nth-child(3) { border-top-color: #25a7c7 !important; }
.admin-body .admin-reference-kpi:nth-child(4) { border-top-color: #ef7b4f !important; }

.admin-body .admin-reference-kpi--primary {
    border-top-color: #73b2ff !important;
    background: var(--ops-blue) !important;
    box-shadow: 0 16px 30px rgba(8, 104, 223, .2) !important;
}

.admin-body .admin-reference-kpi__head > i {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    background: #eef4fb !important;
}

.admin-body .admin-reference-kpi:nth-child(2) .admin-reference-kpi__head > i { background: #fff5d5 !important; color: #9b6600 !important; }
.admin-body .admin-reference-kpi:nth-child(3) .admin-reference-kpi__head > i { background: #e8f8fb !important; color: #087c98 !important; }
.admin-body .admin-reference-kpi:nth-child(4) .admin-reference-kpi__head > i { background: #fff0e9 !important; color: #bd4a22 !important; }

.admin-body .admin-reference-kpi strong {
    font-size: 29px !important;
    font-weight: 780 !important;
    letter-spacing: -.03em !important;
    font-variant-numeric: tabular-nums;
}

.admin-body .admin-reference-layout {
    gap: 16px !important;
}

.admin-body .admin-surface {
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: var(--ops-shadow) !important;
}

.admin-body .admin-surface-head {
    min-height: 64px !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid #e7edf4 !important;
}

.admin-body .admin-surface-head h2 {
    font-size: 17px !important;
    font-weight: 780 !important;
    letter-spacing: -.015em !important;
}

.admin-body .admin-activity-chart {
    overflow: hidden !important;
}

.admin-body .admin-activity-chart .admin-surface-head {
    box-shadow: inset 4px 0 0 var(--ops-blue);
}

.admin-body .admin-chart-summary {
    background: #f8fafc !important;
    border-bottom: 1px solid #e5ecf4 !important;
}

.admin-body .admin-chart-summary strong,
.admin-body .admin-number,
.admin-body .admin-data-table b {
    font-variant-numeric: tabular-nums;
}

.admin-body .admin-sales-chart__track {
    border-radius: 8px 8px 3px 3px !important;
    background: #eaf0f7 !important;
}

.admin-body .admin-sales-chart__track span {
    background: var(--ops-blue) !important;
    box-shadow: 0 -5px 12px rgba(8, 104, 223, .16) !important;
}

.admin-body .admin-sales-chart__day:last-child .admin-sales-chart__track span {
    background: var(--ops-gold) !important;
    box-shadow: 0 -5px 12px rgba(255, 194, 26, .18) !important;
}

.admin-body .admin-attention-panel {
    overflow: hidden !important;
}

.admin-body .admin-data-table thead {
    background: #f5f8fc !important;
}

.admin-body .admin-data-table th {
    color: #65758d !important;
    font-size: 10px !important;
    letter-spacing: .06em !important;
}

.admin-body .admin-data-table tbody tr {
    transition: background .15s ease, box-shadow .15s ease !important;
}

.admin-body .admin-data-table tbody tr:hover {
    background: #f4f8fd !important;
    box-shadow: inset 3px 0 0 var(--ops-blue) !important;
}

.admin-body .admin-fulfilment-card {
    background: var(--ops-green-dark) !important;
    color: #fff !important;
    box-shadow: 0 16px 32px rgba(13, 61, 52, .16) !important;
}

.admin-body .admin-fulfilment-card header span,
.admin-body .admin-fulfilment-card header p,
.admin-body .admin-fulfilment-card dt {
    color: #b8d7cd !important;
}

.admin-body .admin-fulfilment-card h2,
.admin-body .admin-fulfilment-card dd {
    color: #fff !important;
}

.admin-body .admin-fulfilment-rate {
    border-color: rgba(255, 255, 255, .2) !important;
    background: var(--ops-gold) !important;
    color: var(--ops-navy) !important;
}

.admin-body .admin-fulfilment-card dl {
    border-color: rgba(255, 255, 255, .1) !important;
}

.admin-body .admin-fulfilment-card > a {
    color: #ffe182 !important;
}

.admin-body .admin-live-activity__list > a,
.admin-body .admin-network-brief > div > a {
    min-height: 58px !important;
    margin: 0 7px !important;
    border-radius: 9px !important;
    transition: background .15s ease, transform .15s ease !important;
}

.admin-body .admin-live-activity__list > a:hover,
.admin-body .admin-network-brief > div > a:hover {
    background: #f1f6fc !important;
    transform: translateX(2px);
}

@media (max-width: 1180px) {
    .admin-body .admin-reference-dashboard {
        padding-inline: 20px !important;
    }
}

@media (max-width: 1024px) {
    .admin-body .admin-shell {
        grid-template-columns: 1fr !important;
    }

    .admin-body .admin-rail {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 50 !important;
        width: min(86vw, 310px) !important;
        min-width: min(86vw, 310px) !important;
        max-width: min(86vw, 310px) !important;
        height: 100dvh !important;
        transform: translateX(-105%);
        transition: transform .2s cubic-bezier(.2, 0, 0, 1) !important;
    }

    .admin-body.admin-nav-open .admin-rail {
        transform: translateX(0);
    }

    .admin-body .admin-workspace {
        grid-column: 1;
    }

    .admin-body .admin-menu-toggle,
    .admin-body .admin-rail-close {
        display: inline-grid !important;
    }

    .admin-body .admin-rail-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 45 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
        background: rgba(7, 26, 54, .48) !important;
    }

    .admin-body.admin-nav-open .admin-rail-backdrop {
        display: block !important;
    }

    .admin-body .admin-commandbar {
        min-height: 64px !important;
        padding: 12px 14px !important;
    }

    .admin-body .admin-reference-dashboard {
        padding: 12px !important;
    }

    .admin-body .admin-dashboard-intro {
        min-height: 0;
        padding: 20px !important;
        border-radius: 14px !important;
    }

    .admin-body .admin-dashboard-intro h2 {
        max-width: 300px;
        font-size: 24px !important;
    }

    .admin-body .admin-dashboard-intro p {
        max-width: 310px;
        color: #b9cce5 !important;
    }

    .admin-body .admin-dashboard-intro__actions {
        width: 100%;
        margin-top: 18px;
        align-items: stretch !important;
    }

    .admin-body .admin-dashboard-intro__actions .admin-button {
        width: 100%;
        justify-content: center;
    }

    .admin-body .admin-reference-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .admin-body .admin-reference-kpi {
        min-height: 128px !important;
        padding: 15px !important;
    }

    .admin-body .admin-reference-kpi strong {
        font-size: 25px !important;
    }

    .admin-body .admin-reference-kpi small {
        font-size: 10.5px !important;
    }

    .admin-body .admin-reference-layout,
    .admin-body .admin-reference-main,
    .admin-body .admin-reference-rail {
        gap: 12px !important;
    }

    .admin-body .admin-surface-head {
        padding: 14px !important;
    }

    .admin-body .admin-chart-summary {
        padding-inline: 14px !important;
    }

    .admin-body .admin-sales-chart {
        padding-inline: 12px !important;
    }

    .admin-body .admin-reference-orders th:nth-child(1) { width: 39% !important; }
    .admin-body .admin-reference-orders th:nth-child(2) { width: 34% !important; }
    .admin-body .admin-reference-orders th:nth-child(5) { width: 27% !important; }

    .admin-body .admin-reference-orders th,
    .admin-body .admin-reference-orders td {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .admin-body .admin-reference-orders .admin-status-badge {
        max-width: 100% !important;
        padding-inline: 6px !important;
        font-size: 9px !important;
    }
}

@media (min-width: 1025px) {
    .admin-body .admin-rail {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 40 !important;
        height: 100dvh !important;
        overflow-y: auto !important;
        transform: none !important;
    }

    .admin-body .admin-workspace {
        grid-column: 2 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-body *,
    .admin-body *::before,
    .admin-body *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Administrator account security */
.admin-body .admin-password-settings {
    display: grid !important;
    grid-template-columns: minmax(220px, .7fr) minmax(440px, 1.3fr);
    align-items: start !important;
    gap: 32px !important;
    padding: 24px !important;
}

.admin-body .admin-password-settings__intro h2 {
    font-size: 17px;
}

.admin-body .admin-password-settings__intro p {
    max-width: 42ch;
    line-height: 1.55;
}

.admin-body .admin-password-form {
    display: grid;
    gap: 14px;
}

.admin-body .admin-password-form .admin-button {
    justify-self: end;
}

.admin-body .admin-password-form__alert {
    margin: 0;
}

.admin-body .admin-field input[aria-invalid="true"] {
    border-color: #d1433b;
    box-shadow: 0 0 0 3px rgba(209, 67, 59, .12);
}

@media (max-width: 900px) {
    .admin-body .admin-password-settings {
        grid-template-columns: 1fr;
        gap: 18px !important;
    }
}

@media (max-width: 600px) {
    .admin-body .admin-password-form .admin-button {
        width: 100%;
        justify-self: stretch;
    }
}

/* Admin bulk order desk */
.admin-body .admin-bulk-purchase { overflow: hidden; }
.admin-body .admin-bulk-purchase__head { align-items: center; gap: 20px; }
.admin-body .admin-entry-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--admin-outline); border-radius: 12px; background: #f1f5fa; }
.admin-body .admin-entry-switch button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--admin-muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-body .admin-entry-switch button[aria-selected="true"] { background: #fff; color: #0b57d0; box-shadow: 0 1px 3px rgba(25, 45, 75, .14); }
.admin-body .admin-entry-switch button:focus-visible { outline: 3px solid rgba(25, 103, 210, .24); outline-offset: 2px; }
.admin-body .admin-bulk-order-summary { justify-content: flex-start; }
.admin-body .admin-bulk-summary-spacer { flex: 1; }
.admin-body .admin-paste-form { background: #fff; }
.admin-body .admin-paste-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--admin-outline); }
.admin-body .admin-paste-head h3 { margin: 0; color: var(--admin-text); font-size: 19px; }
.admin-body .admin-paste-head p { margin-top: 4px; color: var(--admin-muted); font-size: 12px; }
.admin-body .admin-paste-body { padding: 20px 24px 22px; }
.admin-body .admin-paste-body textarea { display: block; width: 100%; min-height: 290px; resize: vertical; border: 1px solid var(--admin-outline-strong); border-radius: 12px; background: #fbfcfe; padding: 18px; color: var(--admin-text); font: 500 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-variant-numeric: tabular-nums; }
.admin-body .admin-paste-body textarea::placeholder { color: #8b98aa; opacity: 1; }
.admin-body .admin-paste-body textarea:focus { outline: 0; border-color: #0b57d0; box-shadow: 0 0 0 3px rgba(11,87,208,.16); background: #fff; }
.admin-body .admin-paste-body p { margin-top: 10px; color: var(--admin-muted); font-size: 11px; line-height: 1.5; }
.admin-body .admin-paste-body code { padding: 2px 5px; border-radius: 5px; background: #edf2f8; color: #29476d; font: 600 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.admin-body .admin-import-panel { padding: 24px; }
.admin-body .admin-import-guide { display: grid; grid-template-columns: 32px 1fr 32px 1fr 32px 1fr; gap: 12px; align-items: start; padding-bottom: 24px; }
.admin-body .admin-import-guide__number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e7f0ff; color: #0b57d0; font-size: 12px; font-weight: 800; }
.admin-body .admin-import-guide b { color: var(--admin-text); font-size: 13px; }
.admin-body .admin-import-guide p { margin-top: 4px; color: var(--admin-muted); font-size: 11px; line-height: 1.5; }
.admin-body .admin-import-guide code { padding: 1px 4px; border-radius: 4px; background: #edf2f8; color: #29476d; font-size: 10px; }
.admin-body .admin-import-form { padding-top: 22px; border-top: 1px solid var(--admin-outline); }
.admin-body .admin-file-drop { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; min-height: 94px; padding: 18px; border: 1px dashed #9bb6da; border-radius: 14px; background: #f8fbff; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.admin-body .admin-file-drop:hover { border-color: #3374d6; background: #f2f7ff; }
.admin-body .admin-file-drop:focus-within { border-color: #0b57d0; box-shadow: 0 0 0 3px rgba(11, 87, 208, .16); }
.admin-body .admin-file-drop__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #e5efff; color: #0b57d0; }
.admin-body .admin-file-drop b,.admin-body .admin-file-drop small { display: block; }
.admin-body .admin-file-drop b { color: var(--admin-text); font-size: 13px; }
.admin-body .admin-file-drop small { margin-top: 4px; color: var(--admin-muted); font-size: 11px; }
.admin-body .admin-file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-body .admin-import-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; }
.admin-body .admin-import-actions p { color: var(--admin-muted); font-size: 11px; }
.admin-body .admin-bulk-history { margin-top: 18px; overflow: hidden; }

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

@media (max-width: 620px) {
    .admin-body .admin-bulk-purchase__head { align-items: stretch; flex-direction: column; }
    .admin-body .admin-entry-switch { width: 100%; }
    .admin-body .admin-entry-switch button { flex: 1; }
    .admin-body .admin-paste-head { align-items: stretch; flex-direction: column; padding: 18px; }
    .admin-body .admin-paste-head .admin-button { width: 100%; }
    .admin-body .admin-paste-body { padding: 18px; }
    .admin-body .admin-paste-body textarea { min-height: 260px; padding: 14px; font-size: 14px; }
    .admin-body .admin-import-panel { padding: 18px; }
    .admin-body .admin-file-drop { grid-template-columns: 40px 1fr; }
    .admin-body .admin-file-drop .admin-button { grid-column: 1 / -1; width: 100%; }
    .admin-body .admin-import-actions { align-items: stretch; flex-direction: column; }
    .admin-body .admin-import-actions .admin-button { width: 100%; }
    .admin-body .admin-bulk-order-summary .admin-bulk-summary-spacer { display: none; }
}

/* Agent operations */
.admin-body .agent-shell .admin-rail__footer.agent-wallet-rail { margin-top: auto; border: 1px solid #d9e4f2; border-radius: 12px; background: #f7faff; }
.admin-body .agent-wallet-rail b { margin-top: 3px; color: #0b57d0; font-size: 18px; font-variant-numeric: tabular-nums; }
.admin-body .agent-topup-shortcut { min-height: 38px; }
.admin-body .agent-dashboard-intro { border-left-color: #2867e8; }
.admin-body .agent-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; margin-top: 18px; }
.admin-body .agent-batch-card { align-self: start; overflow: hidden; }
.admin-body .agent-batch-list { display: grid; padding: 8px; }
.admin-body .agent-batch-list > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 12px; border-radius: 10px; }
.admin-body .agent-batch-list > a:hover { background: #f3f7fd; }
.admin-body .agent-batch-list b,.admin-body .agent-batch-list small { display: block; }
.admin-body .agent-batch-list b { font-size: 12px; }
.admin-body .agent-batch-list small { margin-top: 3px; color: var(--admin-muted); font-size: 11px; }
.admin-body .agent-batch-list > a > span:last-child { text-align: right; }
.admin-body .agent-balance-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #bed2f2; border-radius: 10px; background: #eef5ff; color: #154e9f; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.admin-body .agent-order-desk { overflow: hidden; }
.admin-body .agent-order-rows { display: grid; gap: 1px; background: var(--admin-outline); }
.admin-body .agent-order-row { display: grid; grid-template-columns: 36px minmax(180px,.8fr) minmax(300px,1.4fr) 100px 42px; gap: 12px; align-items: end; padding: 14px 18px; background: #fff; }
.admin-body .agent-order-row:hover { background: #fbfdff; }
.admin-body .agent-row-number { display: grid; place-items: center; align-self: center; width: 28px; height: 28px; border-radius: 50%; background: #eaf2ff; color: #1559bb; font-size: 12px; font-weight: 800; }
.admin-body .agent-order-row label > span,.admin-body .agent-row-price > span { display: block; margin-bottom: 6px; color: var(--admin-muted); font-size: 11px; font-weight: 700; }
.admin-body .agent-order-row input,.admin-body .agent-order-row select { width: 100%; height: 42px; min-height: 42px; border: 1px solid var(--admin-outline-strong); border-radius: 10px; background: #fff; color: var(--admin-text); padding: 0 12px; font-size: 13px; }
.admin-body .agent-row-price { align-self: center; }
.admin-body .agent-row-price b { font-size: 15px; font-variant-numeric: tabular-nums; }
.admin-body .agent-remove-row:disabled { opacity: .35; cursor: not-allowed; }
.admin-body .agent-order-summary { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 74px; padding: 14px 18px; background: #f7f9fc; border-top: 1px solid var(--admin-outline); }
.admin-body .agent-order-summary > div span,.admin-body .agent-order-summary > div b { display: block; }
.admin-body .agent-order-summary > div span { color: var(--admin-muted); font-size: 11px; }
.admin-body .agent-order-summary > div b { margin-top: 3px; font-size: 17px; font-variant-numeric: tabular-nums; }
.admin-body .agent-wallet-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(440px,1.3fr); gap: 18px; }
.admin-body .agent-wallet-balance { padding: 26px; background: #102f5d; color: #fff; }
.admin-body .agent-wallet-balance > span { color: #bad0ee; font-size: 12px; font-weight: 700; }
.admin-body .agent-wallet-balance strong { display: block; margin: 12px 0 10px; color: #fff; font-size: 40px; font-variant-numeric: tabular-nums; }
.admin-body .agent-wallet-balance p { color: #d4e0f2; font-size: 13px; line-height: 1.5; }
.admin-body .agent-topup-card { overflow: hidden; }
.admin-body .agent-topup-form { display: grid; grid-template-columns: .7fr 1fr auto; gap: 12px; align-items: end; padding: 18px 20px 20px; }
.admin-body .agent-wallet-history { margin-top: 18px; }
.admin-body .agent-pricing-panel { overflow: hidden; }
.admin-body .agent-price-network + .agent-price-network { border-top: 8px solid var(--admin-page); }
.admin-body .agent-price-network__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #f8fafc; border-bottom: 1px solid var(--admin-outline); }
.admin-body .agent-price-network__head h3 { margin: 0; font-size: 15px; }
.admin-body .agent-price-network__head p { margin-top: 2px; color: var(--admin-muted); font-size: 11px; }
.admin-body .agent-price-input { width: 150px; height: 38px; min-height: 38px; padding: 0 10px; border: 1px solid var(--admin-outline-strong); border-radius: 9px; background: #fff; }
.admin-body .agent-price-table td { height: 58px; }

@media (max-width: 1050px) {
    .admin-body .agent-dashboard-grid,.admin-body .agent-wallet-layout { grid-template-columns: 1fr; }
    .admin-body .agent-order-row { grid-template-columns: 32px minmax(160px,.8fr) minmax(230px,1.2fr) 90px 40px; }
    .admin-body .agent-topup-form { grid-template-columns: 1fr 1fr; }
    .admin-body .agent-topup-form .admin-button { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .admin-body .agent-topup-shortcut { display: none !important; }
    .admin-body .agent-order-row { grid-template-columns: 28px minmax(0,1fr) 38px; gap: 9px; }
    .admin-body .agent-order-row label { grid-column: 2 / 3; }
    .admin-body .agent-row-price { grid-column: 2 / 3; }
    .admin-body .agent-remove-row { grid-column: 3; grid-row: 1; }
    .admin-body .agent-order-summary { align-items: stretch; flex-wrap: wrap; justify-content: space-between; }
    .admin-body .agent-order-summary .admin-button { width: 100%; }
    .admin-body .agent-topup-form { grid-template-columns: 1fr; }
}

/* Keep the account menu usable when the command bar collapses on phones. */
@media (max-width: 600px) {
    .admin-body .admin-profile-menu {
        display: block !important;
        position: relative !important;
    }

    .admin-body .admin-profile-menu > summary {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        justify-content: center;
        padding: 4px;
    }

    .admin-body .admin-profile-menu .admin-profile-caret {
        display: none !important;
    }

    .admin-body .admin-profile-popover {
        position: fixed !important;
        z-index: 80 !important;
        top: 58px !important;
        right: 12px !important;
        width: min(240px, calc(100vw - 24px)) !important;
        padding: 7px !important;
        transform-origin: top right;
    }

    .admin-body .admin-profile-popover a,
    .admin-body .admin-profile-popover button {
        min-height: 44px;
        padding-inline: 12px;
    }
}
