/* ========================================================================== */
/* DESIGN TOKENS */
/* ========================================================================== */

:root {
    --eo-font: 'Noto Sans Bengali', 'Segoe UI', Arial, sans-serif;

    /* sized for Bangla readers who are not tech people: 16px body text, nothing under 12px (raised 4 Nov 2026 from a 14px base) */
    --eo-fs-xs: 0.75rem;
    --eo-fs-sm: 0.8125rem;
    --eo-fs-sm-plus: 0.875rem;
    --eo-fs-md: 0.9375rem;
    --eo-fs-base: 1rem;
    --eo-fs-lg: 1.125rem;
    --eo-fs-xl: 1.25rem;
    --eo-fs-2xl: 1.375rem;
    --eo-fs-3xl: 1.625rem;
    --eo-fs-4xl: 1.875rem;
    --eo-fs-display: clamp(1.75rem, 2.4vw, 2.5rem);

    --eo-fw-normal: 400;
    --eo-fw-medium: 500;
    --eo-fw-semibold: 600;
    --eo-fw-bold: 700;

    --eo-lh-tight: 1.25;
    --eo-lh-normal: 1.6;

    /* brand approved 29 Oct 2026: emerald with a deep blue accent; never used for status, where green means done */
    --eo-brand: #047857;
    --eo-brand-strong: #065F46;
    --eo-brand-deep: #022C22;
    --eo-brand-10: color-mix(in srgb, var(--eo-brand) 10%, transparent);
    --eo-brand-20: color-mix(in srgb, var(--eo-brand) 20%, transparent);
    --eo-accent: #0369A1;
    --eo-accent-10: color-mix(in srgb, var(--eo-accent) 10%, transparent);
    --eo-on-brand: #FFFFFF;

    /* TimoDesk look: a light grey canvas, white flat panels, cool greys for text and lines */
    --eo-bg: #F5F6F8;
    --eo-surface: #FFFFFF;
    --eo-surface-2: #F9FAFB;
    --eo-bg-hover: #F3F4F6;
    --eo-border: #E5E7EB;
    --eo-border-strong: #D1D5DB;
    --eo-text: #111827;
    --eo-text-2: #374151;
    --eo-text-muted: #6B7280;
    --eo-text-subtle: #9CA3AF;
    --eo-overlay: rgba(15, 23, 42, 0.55);

    /* the dark navy sidebar; its active pill is an emerald tint with a lighter emerald icon so it reads on navy */
    --eo-side-bg: #0F172A;
    --eo-side-line: rgba(255, 255, 255, 0.08);
    --eo-side-line-strong: rgba(255, 255, 255, 0.14);
    --eo-side-hover: rgba(255, 255, 255, 0.06);
    --eo-side-text: #A3AEC2;
    --eo-side-text-strong: #F8FAFC;
    --eo-side-icon: #7C879B;
    --eo-side-muted: #8190A5;
    --eo-side-active: color-mix(in srgb, #2ECC71 18%, transparent);
    --eo-side-active-weak: color-mix(in srgb, #2ECC71 10%, transparent);
    --eo-side-active-icon: #2ECC71;
    --eo-side-surface: rgba(255, 255, 255, 0.04);
    --eo-side-active-bg: color-mix(in srgb, var(--eo-side-active-icon) 16%, transparent);
    --eo-side-active-ring: color-mix(in srgb, var(--eo-side-active-icon) 22%, transparent);
    --eo-side-radius: 6px;

    /* success, warning, danger and info exactly as Kothay (--kx-*): the base shade for dots and fills, -strong for text and icons; green = delivered/done, warning = pending, danger = returned/lost/failed, neutral = cancelled (CLAUDE.md section 7) */
    --eo-success: #10B981;
    --eo-success-strong: #047857;
    --eo-success-10: color-mix(in srgb, var(--eo-success) 10%, transparent);
    --eo-success-25: color-mix(in srgb, var(--eo-success) 25%, transparent);
    --eo-danger: #DC2626;
    --eo-danger-strong: #B91C1C;
    --eo-danger-10: color-mix(in srgb, var(--eo-danger) 10%, transparent);
    --eo-danger-25: color-mix(in srgb, var(--eo-danger) 25%, transparent);
    /* the danger word on a dark surface (the bulk bar) */
    --eo-danger-on-dark: #FCA5A5;
    --eo-warning: #F59E0B;
    --eo-warning-strong: #B45309;
    --eo-warning-10: color-mix(in srgb, var(--eo-warning) 10%, transparent);
    --eo-warning-25: color-mix(in srgb, var(--eo-warning) 25%, transparent);
    --eo-info: #0EA5E9;
    --eo-info-strong: #0369A1;
    --eo-info-10: color-mix(in srgb, var(--eo-info) 10%, transparent);
    --eo-info-25: color-mix(in srgb, var(--eo-info) 25%, transparent);
    --eo-neutral: #71717A;
    --eo-neutral-10: color-mix(in srgb, var(--eo-neutral) 10%, transparent);
    /* chart series only (a source, a courier, a product on a chart): six soft, distinct hues that sit well together;
       never on buttons, badges or text, which keep the brand and the status colours */
    --eo-chart-1: #5b8fd6;
    --eo-chart-2: #d98a5f;
    --eo-chart-3: #c2484a;
    --eo-chart-4: #5cc29b;
    --eo-chart-5: #cdb84a;
    --eo-chart-6: #7d8aa6;

    --eo-space-2xs: 2px;
    --eo-space-xs: 4px;
    --eo-space-sm: 8px;
    --eo-space-md: 12px;
    --eo-space-base: 16px;
    --eo-space-lg: 20px;
    --eo-space-xl: 24px;
    --eo-space-2xl: 32px;
    --eo-space-3xl: 48px;

    /* two corner sizes only: 4px for small things (buttons, inputs, menus, chips, the sidebar's items),
       8px for big things (cards, modals, tables, panels) */
    --eo-radius-sm: 4px;
    --eo-radius: 4px;
    --eo-radius-lg: 8px;
    --eo-radius-xl: 8px;
    --eo-radius-pill: 999px;

    /* Bootstrap's own parts follow the same corners */
    --bs-border-radius: var(--eo-radius);
    --bs-border-radius-sm: var(--eo-radius-sm);
    --bs-border-radius-lg: var(--eo-radius-lg);
    --bs-border-radius-xl: var(--eo-radius-xl);
    --bs-border-radius-xxl: var(--eo-radius-xl);

    --eo-control-h: 40px;
    --eo-control-h-sm: 36px;
    --eo-control-h-lg: 44px;
    --eo-control-h-xl: 52px;
    --eo-row-h: 44px;
    --eo-icon-box: 40px;

    --eo-sidebar-w: 260px;
    --eo-topbar-h: 60px;
    --eo-pagehead-h: 50px;
    --eo-content-max: 1600px;

    --eo-shadow-stuck: 0 4px 12px -6px rgba(0, 0, 0, 0.12);
    --eo-shadow-stuck-up: 0 -4px 12px -6px rgba(0, 0, 0, 0.12);
    --eo-shadow-float: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 8px 20px -4px rgba(0, 0, 0, 0.1);
    --eo-shadow-label: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
    --eo-shadow-button: 0 8px 16px -8px rgba(4, 120, 87, 0.6);
    --eo-focus: 0 0 0 3px var(--eo-brand-20);

    --eo-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --eo-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --eo-dur: 150ms;
    --eo-dur-slow: 250ms;

    --eo-z-formbar: 10;
    --eo-z-sidebar: 1030;
    --eo-z-topbar: 1020;
    --eo-z-bulkbar: 1040;
    /* a live call's bar stays over a side panel (Bootstrap offcanvas 1045), so hang up is always in reach; a modal still covers it */
    --eo-z-callbar: 1046;
    --eo-z-popover: 1080;
    --eo-z-toast: 1090;

    --eo-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* phones keep larger tap targets */
@media (max-width: 767.98px) {
    :root {
        --eo-control-h: 44px;
        --eo-control-h-sm: 40px;
        --eo-control-h-lg: 48px;
    }
}

/* ========================================================================== */
/* BASE AND TYPOGRAPHY */
/* ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--eo-font);
    font-size: var(--eo-fs-base);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text);
    background: var(--eo-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--eo-font);
    font-weight: var(--eo-fw-semibold);
    line-height: var(--eo-lh-tight);
    color: var(--eo-text);
}

p {
    margin: 0;
}

a {
    color: var(--eo-brand);
    text-decoration: none;
}

a:hover {
    color: var(--eo-brand-strong);
}

:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: 1px;
}

::selection {
    background: var(--eo-brand-20);
}

.svg-icon {
    width: 1.125em;
    height: 1.125em;
    flex-shrink: 0;
    vertical-align: -0.2em;
}

.eo-h1 { font-size: var(--eo-fs-2xl); }
.eo-h2 { font-size: var(--eo-fs-xl); }
.eo-h3 { font-size: var(--eo-fs-lg); }
.eo-text-sm { font-size: var(--eo-fs-md); }
.eo-text-xs { font-size: var(--eo-fs-sm); }
.eo-muted { color: var(--eo-text-muted); }
.eo-subtle { color: var(--eo-text-subtle); }
.eo-strong { font-weight: var(--eo-fw-semibold); }
.eo-money { font-variant-numeric: tabular-nums; }
.eo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eo-nowrap { white-space: nowrap; }
.eo-truncate { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-break { overflow-wrap: anywhere; }

/* a phone link (tel:) only where it can dial (phones, tablets); a computer with a mouse gets "copy the number" instead */
@media (hover: hover) and (pointer: fine) {
    .eo-only-touch { display: none !important; }
}

@media not ((hover: hover) and (pointer: fine)) {
    .eo-only-pointer { display: none !important; }
}

/* a line a phone can do without (a status's long reason under its dot): below 768px the row keeps to the point.
   a list's dates the same way: the day alone, the time stays in the date's hover (<x-date time>) */
@media (max-width: 767.98px) {
    .eo-hide-phone { display: none !important; }

    .eo-table .eo-time-part { display: none; }
}
.eo-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.eo-code { font-family: Consolas, 'Courier New', monospace; font-size: var(--eo-fs-sm); }

.eo-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 var(--eo-space-xs);
    font-family: Consolas, 'Courier New', monospace;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong);
    border-bottom-width: 2px;
    border-radius: var(--eo-radius-sm);
}

.eo-tone-success { color: var(--eo-success-strong); }
.eo-tone-warning { color: var(--eo-warning-strong); }
.eo-tone-danger { color: var(--eo-danger-strong); }
.eo-tone-neutral { color: var(--eo-neutral); }

/* ========================================================================== */
/* LAYOUT HELPERS */
/* ========================================================================== */

.eo-stack { display: flex; flex-direction: column; gap: var(--eo-space-base); }
.eo-stack--sm { gap: var(--eo-space-sm); }
.eo-stack--lg { gap: var(--eo-space-base); }
.eo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eo-space-sm); }
.eo-row--between { justify-content: space-between; }
.eo-row--end { justify-content: flex-end; }
.eo-row--bottom { align-items: flex-end; }
.eo-grow { flex: 1 1 auto; min-width: 0; }

.eo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
}

@media (min-width: 768px) {
    .eo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .eo-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eo-span-2 { grid-column: span 2; }
}

@media (min-width: 1200px) {
    .eo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.eo-divider {
    height: 1px;
    margin: var(--eo-space-base) 0;
    background: var(--eo-border);
    border: 0;
}

/* ========================================================================== */
/* APP SHELL */
/* ========================================================================== */

.eo-shell {
    display: flex;
    min-height: 100vh;
}

.eo-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    background: var(--eo-bg);
}

/* the page body is a column: every top-level block (page head, toolbar, cards, grids, tables) gets the same gap */
.eo-content {
    --eo-content-pad-y: var(--eo-space-xl);
    --eo-content-pad-x: var(--eo-space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    flex: 1 0 auto;
    width: 100%;
    padding: var(--eo-content-pad-y) var(--eo-content-pad-x);
}

/* the gap replaces the blocks' own vertical margins; min-width lets wide tables scroll instead of stretching the page */
/* a settings page's wrapper keeps the page column's own gap, so a toolbar still joins its table (.eo-toolbar + .eo-table-wrap) */
.eo-setpage {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    min-width: 0;
}

main.eo-content > *,
main .eo-setpage > * {
    flex: 0 0 auto;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .eo-content {
        --eo-content-pad-y: var(--eo-space-base);
        --eo-content-pad-x: var(--eo-space-md);
    }
}

/* ========================================================================== */
/* SIDEBAR */
/* ========================================================================== */

/* a dark navy rail: the menu reads as chrome and the white work area stays calm */
.eo-sidebar {
    position: sticky;
    top: 0;
    z-index: var(--eo-z-sidebar);
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--eo-sidebar-w);
    width: var(--eo-sidebar-w);
    height: 100vh;
    height: 100dvh;
    color: var(--eo-side-text);
    background: var(--eo-side-bg);
    border-right: 1px solid var(--eo-side-line);
    transition: width var(--eo-dur-slow) var(--eo-ease), flex-basis var(--eo-dur-slow) var(--eo-ease), transform var(--eo-dur-slow) var(--eo-ease);
}

/* the store card and the menu are told apart by space alone; the brand's line continues the top bar's, and the account at the foot keeps a divider */
.eo-sidebar__user {
    position: relative;
}

.eo-sidebar__user::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--eo-space-md);
    right: var(--eo-space-md);
    height: 1px;
    background: var(--eo-side-line);
    pointer-events: none;
}

.eo-sidebar__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    height: var(--eo-topbar-h);
    padding: 0 var(--eo-space-md) 0 var(--eo-space-xl);
    flex-shrink: 0;
    border-bottom: 1px solid var(--eo-side-line);
}

.eo-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
    letter-spacing: -0.01em;
    color: var(--eo-side-text-strong);
    white-space: nowrap;
}

.eo-sidebar__brand:hover {
    color: var(--eo-side-text-strong);
    text-decoration: none;
}

.eo-sidebar__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-radius: var(--eo-radius-lg);
}

.eo-sidebar__logo .svg-icon {
    width: 16px;
    height: 16px;
}

/* logo and favicon from super admin settings */
.eo-sidebar__mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--eo-radius-lg);
}

.eo-brand-logo {
    display: block;
    width: auto;
    max-width: 170px;
    height: auto;
    max-height: 36px;
}

.eo-sidebar .eo-sidebar__close {
    display: none;
    margin-left: auto;
    color: var(--eo-side-text);
}

/* the light-page rule greys a ghost button's icon; on navy the icon follows the button's own colour */
.eo-sidebar .eo-btn--ghost .svg-icon {
    color: inherit;
}

.eo-sidebar .eo-sidebar__close:hover {
    color: var(--eo-side-text-strong);
    background: var(--eo-side-hover);
}

/* the shop being worked on: one small row under the brand */
.eo-store-switch {
    display: flex;
    align-items: center;
    gap: var(--eo-space-2xs);
    padding: var(--eo-space-md);
    flex-shrink: 0;
}

.eo-store-switch > .dropdown,
.eo-store-switch > .eo-store-switch__btn {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-store-switch__btn {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    width: 100%;
    height: 44px;
    padding: 0 var(--eo-space-sm) 0 11px;
    color: var(--eo-side-text-strong);
    text-align: left;
    background: var(--eo-side-surface);
    border: 1px solid var(--eo-side-line);
    border-radius: var(--eo-side-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease);
}

.eo-store-switch__btn.is-static {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

button.eo-store-switch__btn:hover,
.eo-store-switch__btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--eo-side-line-strong);
}

button.eo-store-switch__btn:hover .eo-store-switch__caret,
.eo-store-switch__btn[aria-expanded="true"] .eo-store-switch__caret {
    color: var(--eo-side-text-strong);
}

.eo-store-switch .eo-store-switch__config {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--eo-side-text);
}

.eo-store-switch .eo-store-switch__config:hover {
    color: var(--eo-side-text-strong);
    background: var(--eo-side-hover);
}

.eo-store-switch__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold);
    color: #fff;
    background: var(--eo-brand);
    border-radius: var(--eo-radius-sm);
}

/* inside the white dropdown the tile goes back to the light brand tint */
.dropdown-menu .eo-store-switch__mark {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    box-shadow: none;
}

.eo-store-switch__mark--sm {
    width: 26px;
    height: 26px;
    font-size: var(--eo-fs-md);
}

.eo-store-switch__mark .svg-icon {
    width: 14px;
    height: 14px;
}

.dropdown-item .eo-store-switch__mark .svg-icon {
    color: var(--eo-brand);
}

.eo-store-switch__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-store-switch__caret {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--eo-side-muted);
}

/* the shop list: a small label, every shop as the same tile and name, a tick on the one in use, settings at the foot */
.eo-store-switch__menu {
    width: 100%;
    min-width: 220px;
    max-width: calc(100vw - 2 * var(--eo-space-base));
    margin-top: 6px !important;
    padding: var(--eo-space-xs);
}

.eo-store-switch__label {
    margin: 0;
    padding: 4px 8px 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-subtle);
}

.eo-store-switch__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
}

.eo-store-switch__row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 38px;
    padding: 0 8px 0 6px;
    font-family: inherit;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: var(--eo-radius);
    cursor: pointer;
}

.eo-store-switch__row:hover {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-store-switch__row.is-active {
    background: var(--eo-bg-hover);
}

/* one tile for every shop: grey letter, green when it is the shop in use */
.eo-store-switch__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.eo-store-switch__tile .svg-icon {
    width: 15px;
    height: 15px;
}

.eo-store-switch__row.is-active .eo-store-switch__tile {
    color: #fff;
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-store-switch__tile.is-plain {
    background: none;
    border-color: transparent;
}

.eo-store-switch__item-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-store-switch__row .eo-store-switch__check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--eo-brand);
    visibility: hidden;
}

.eo-store-switch__row.is-active .eo-store-switch__check {
    visibility: visible;
}

.eo-store-switch__foot {
    margin-top: var(--eo-space-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius) var(--eo-radius);
}

/* a per-store setup page on "all stores": an always-open modal over the page lists the shops (layouts.partials.store_gate);
   it uses the modal's own backdrop and box, drawn by the server, so it needs no script and cannot be closed */
.eo-store-gate {
    display: block;
}

body:has(> .eo-store-gate) {
    overflow: hidden;
}

/* each shop is a card: a shop icon in a brand tile so the list reads as shops at a glance */
.eo-store-gate .eo-store-gate__tile {
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: transparent;
}

.eo-store-gate .eo-store-gate__tile .svg-icon {
    width: 20px;
    height: 20px;
}

/* a long shop name breaks onto a second line here instead of being cut with "…" */
.eo-store-gate .eo-store-gate__row .eo-store-switch__item-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: var(--eo-lh-tight);
}

/* the small note under the list: the pick moves the sidebar switcher too */
.eo-store-gate__text {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* a long list scrolls inside the box, so the search above it stays in view; two shops a line from tablet up,
   and a shop left alone on the last line takes the full width */
.eo-store-gate__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-xs);
    max-height: min(320px, 50vh);
    overflow-y: auto;
}

@media (min-width: 576px) {
    .eo-store-gate__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-store-gate .eo-store-gate__row:last-of-type:nth-of-type(odd),
    .eo-store-gate__none {
        grid-column: 1 / -1;
    }
}

.eo-store-gate .eo-store-gate__row {
    gap: var(--eo-space-md);
    height: auto;
    min-height: 64px;
    min-width: 0;
    padding: var(--eo-space-md);
    font-weight: var(--eo-fw-semibold);
    border-radius: var(--eo-radius-lg);
    border: 1px solid var(--eo-border);
    transition: border-color var(--eo-dur) var(--eo-ease), background var(--eo-dur) var(--eo-ease);
}

.eo-store-gate .eo-store-gate__row:hover {
    border-color: var(--eo-brand);
}

.eo-store-gate .eo-store-gate__row:focus-visible {
    border-color: var(--eo-brand);
    outline: none;
    box-shadow: var(--eo-focus);
}

.eo-store-gate__none {
    margin: 0;
    padding: var(--eo-space-md) 0;
    color: var(--eo-text-muted);
    text-align: center;
}

/* the menu fades at its bottom edge only, so a list taller than the screen shows there is more below; a top fade would dim the first row like a shadow */
/* no scrollbar: on Windows its gutter took 10px off every row, so the rows stopped short of the store card above; the list still scrolls by wheel, touch and keys */
.eo-sidebar__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--eo-space-xs) var(--eo-space-md) var(--eo-space-base);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent 100%);
}

.eo-sidebar__body::-webkit-scrollbar {
    display: none;
}

/* settings and help close the list and scroll with it */
.eo-sidebar__foot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    margin-top: var(--eo-space-base);
    padding-top: var(--eo-space-sm);
}

.eo-sidebar__foot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--eo-side-line);
}

.eo-nav__group + .eo-nav__group {
    margin-top: var(--eo-space-xs);
}

.eo-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* small, quiet section names: they group the menu without competing with it */
/* section names: small and quiet, with a short line after them so each group reads as its own block */
.eo-nav__heading {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 18px var(--eo-space-md) 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    letter-spacing: 0.03em;
    color: var(--eo-side-muted);
    white-space: nowrap;
}

p.eo-nav__heading::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--eo-side-line);
}

.eo-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 38px;
    padding: var(--eo-space-xs) var(--eo-space-md);
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-side-text);
    text-align: left;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: var(--eo-side-radius);
    transition: background var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-nav__link .svg-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--eo-side-icon);
    stroke-width: 1.75;
    transition: color var(--eo-dur) var(--eo-ease);
}

.eo-nav__link:hover {
    color: var(--eo-side-text-strong);
    text-decoration: none;
    background: var(--eo-side-hover);
}

.eo-nav__link:hover .svg-icon {
    color: var(--eo-side-text-strong);
}

.eo-nav__link:focus-visible {
    outline: 2px solid var(--eo-side-active-icon);
    outline-offset: -2px;
    box-shadow: none;
}

/* the page you are on: an emerald tint, a hairline ring and a glowing bar on the rail's edge */
.eo-nav__link.is-active {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-side-text-strong);
    background: var(--eo-side-active-bg);
    box-shadow: inset 0 0 0 1px var(--eo-side-active-ring);
}

.eo-nav__link.is-active .svg-icon {
    color: var(--eo-side-active-icon);
}

a.eo-nav__link.is-active::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: calc(-1 * var(--eo-space-md));
    width: 3px;
    background: var(--eo-side-active-icon);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px 1px color-mix(in srgb, var(--eo-side-active-icon) 55%, transparent);
}

/* an open group's own row stays quiet; the highlight sits on the page inside it */
button.eo-nav__link.is-active {
    color: var(--eo-side-text-strong);
    background: transparent;
    box-shadow: none;
}

/* an open group's icon turns emerald too, so the path to the current page reads at a glance */
button.eo-nav__link.is-active .svg-icon:first-child {
    color: var(--eo-side-active-icon);
}

button.eo-nav__link.is-active:hover {
    background: var(--eo-side-hover);
}

/* measured: the Bangla letters' body (head line to baseline) sat 0.12em above the row middle at both 14px and 16px, so the label comes down by that much */
.eo-nav__label {
    position: relative;
    top: 0.12em;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* text-box trim centres the digits themselves, the font leaves more room above them than below */
.eo-nav__count {
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    line-height: 18px;
    text-align: center;
    text-box: trim-both cap alphabetic;
    color: var(--eo-side-text-strong);
    background: var(--eo-side-line-strong);
    border: 0;
    border-radius: var(--eo-radius-pill);
}

/* sidebar badges by tone: a light tint with the colour in the number, calm next to the group's sign;
   orange to act on (to buy, waiting orders), red out of stock */
.eo-nav__count.eo-nav__count--warning {
    color: var(--eo-warning);
    background: color-mix(in srgb, var(--eo-warning) 18%, transparent);
}

.eo-nav__count.eo-nav__count--danger {
    color: color-mix(in srgb, var(--eo-danger) 65%, #ffffff);
    background: color-mix(in srgb, var(--eo-danger) 22%, transparent);
}

/* a page on the way (inbox waiting on Meta): drawn and hovered like every other row, only the tag tells; it opens the
   coming-soon page (ComingSoonController) */

/* the "coming soon" word in the count's place, kept quiet: a thin outline in the sidebar's muted grey, no fill,
   so it never reads louder than the counts that ask for work; the Bangla letters come down the same 0.12em as
   the row labels so they sit in the pill's middle */
.eo-nav__soon {
    flex-shrink: 0;
    height: 20px;
    margin-left: auto;
    padding: 0.12em 7px 0;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    line-height: 18px;
    color: var(--eo-side-muted);
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--eo-side-line-strong);
    border-radius: var(--eo-radius-pill);
}

/* a group with something inside to act on: a small amber dot, not a loud sign; once the group is open its counts say it, so the dot steps aside */
.eo-nav__alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.eo-nav__alert::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--eo-warning);
    border-radius: 50%;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--eo-warning) 20%, transparent);
}

.eo-nav__link .eo-nav__alert .svg-icon {
    display: none;
}

.eo-nav__link[aria-expanded="true"] .eo-nav__alert {
    display: none;
}

/* the products list: its 44px photos get room above and below, so they never touch the row lines */
.eo-table-wrap[data-table="products"] .eo-table tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* on a laptop a long product name ("… থ্রি-পিস (আনস্টিচড, ওড়নাসহ, ৩ গজ কাপড়)") wraps to two lines at most instead of
   pushing the price, stock and the row menu out of view (below 1024px the shared lead-column cap does this) */
@media (min-width: 1024px) {
    .eo-table-wrap[data-table="products"] td[data-col="name"] .eo-namecell {
        max-width: min(440px, 32vw);
    }

    .eo-table-wrap[data-table="products"] td[data-col="name"] .eo-namecell__text a.eo-cell-main {
        display: -webkit-box;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* a tablet and a small laptop (768-1365px) leave the list about 715px: the default columns, the status and the row menu
   included, fit with no sideways slide. the stock notes wrap in their own narrow column (each part stays whole, see
   .eo-nowrap in the view) and the name takes a smaller share, two lines at most (:not(#eo-cards) outweighs the shared
   one-line lead-column cap below 1024px) */
@media (min-width: 768px) and (max-width: 1365.98px) {
    [data-table="products"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="available"] .eo-cell-sub {
        white-space: normal;
    }

    /* 210px at 1024px and below (a little slack for a wider price), growing to about 415px by 1365px */
    [data-table="products"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="name"] > .eo-namecell {
        max-width: max(210px, 210px + (100vw - 1024px) * 0.6);
    }

    /* half the usual gap between columns, so price, cost, stock and status leave the name room for two words a line;
       the tick column, the name's own start and the row menu's end keep theirs */
    [data-table="products"]:not(#eo-cards) > .eo-table > :is(thead, tbody) > tr > :is(th, td):not(.eo-table__check, :last-child) {
        padding-right: var(--eo-space-sm);
    }

    [data-table="products"]:not(#eo-cards) > .eo-table > :is(thead, tbody) > tr > :is(th, td):not(.eo-table__check, [data-col="name"]) {
        padding-left: var(--eo-space-sm);
    }

    [data-table="products"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="name"] .eo-namecell__text a.eo-cell-main {
        display: -webkit-box;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* a list row with a link opens it from anywhere on the row */
.eo-table tbody tr:has([data-row-link]) {
    cursor: pointer;
}

.eo-nav__caret {
    width: 14px;
    height: 14px;
    color: var(--eo-side-muted);
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-nav__link .eo-nav__caret {
    width: 14px;
    height: 14px;
    color: var(--eo-side-muted);
}

.eo-nav__link[aria-expanded="true"] .eo-nav__caret {
    transform: rotate(180deg);
}

/* a group's pages hang off a fine guide line under its icon; the line lights emerald beside the page you are on */
.eo-nav__sub {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 var(--eo-space-xs) 20px;
    padding-left: 10px;
    border-left: 1px solid var(--eo-side-line-strong);
}

.eo-nav__sub .eo-nav__link {
    min-height: 32px;
    padding: var(--eo-space-2xs) 10px;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-normal);
}

.eo-nav__sub a.eo-nav__link.is-active {
    font-weight: var(--eo-fw-medium);
    background: color-mix(in srgb, var(--eo-side-active-icon) 14%, transparent);
    box-shadow: none;
}

.eo-nav__sub a.eo-nav__link.is-active::before {
    top: 6px;
    bottom: 6px;
    left: -11px;
    width: 2px;
    border-radius: 2px;
    box-shadow: 0 0 8px color-mix(in srgb, var(--eo-side-active-icon) 60%, transparent);
}

.eo-nav__heading--toggle {
    width: 100%;
    min-height: 0;
    padding: var(--eo-space-base) var(--eo-space-md) var(--eo-space-xs);
    background: none;
    border: 0;
}

.eo-nav__heading--toggle:hover {
    color: var(--eo-side-text);
    background: none;
}

.eo-nav__heading--toggle > span {
    flex: 1;
    text-align: left;
}

.eo-nav__more {
    width: 100%;
    color: var(--eo-side-muted);
    background: none;
    border: 0;
}

.eo-nav__more-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.eo-nav__more-list.collapse:not(.show) {
    display: none;
}

/* the signed-in person closes the rail: avatar with an emerald ring, name and role, sign out beside it */
.eo-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding: var(--eo-space-md) 6px var(--eo-space-md) var(--eo-space-md);
}

.eo-sidebar__user-link {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 4px 6px var(--eo-space-md);
    color: var(--eo-side-text-strong);
    border-radius: var(--eo-side-radius);
    transition: background var(--eo-dur) var(--eo-ease);
}

.eo-sidebar__user-link:hover {
    color: var(--eo-side-text-strong);
    text-decoration: none;
    background: var(--eo-side-hover);
}

/* the same soft green as the current page's row, with one fine ring: no dark gap, no second green */
.eo-sidebar__user .eo-avatar {
    width: 36px;
    height: 36px;
    font-weight: var(--eo-fw-bold);
    color: var(--eo-side-active-icon);
    background: var(--eo-side-active-bg);
    border: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eo-side-active-icon) 35%, transparent);
}

.eo-sidebar__user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    line-height: 1.25;
}

.eo-sidebar__user-name {
    max-width: 100%;
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* a fixed 18px pill with room above the vowel signs (ি, ে) so nothing clips; the 1px top padding centres the Bangla letters' body */
.eo-sidebar__user-role {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 1px 6px 0;
    font-size: 11px;
    font-weight: var(--eo-fw-semibold);
    line-height: 1;
    color: var(--eo-side-active-icon);
    white-space: nowrap;
    background: color-mix(in srgb, var(--eo-side-active-icon) 13%, transparent);
    border-radius: var(--eo-radius-pill);
}

.eo-sidebar__user-role:empty {
    display: none;
}

.eo-sidebar__user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
}

.eo-sidebar__user-meta .eo-sidebar__user-role {
    flex-shrink: 0;
}

.eo-sidebar__user-meta .eo-sidebar__user-name {
    min-width: 0;
}

.eo-sidebar__user-phone {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    font-variant-numeric: tabular-nums;
    color: var(--eo-side-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-sidebar__user form {
    flex-shrink: 0;
}

.eo-sidebar .eo-btn.eo-sidebar__logout {
    width: 32px;
    height: 32px;
    color: var(--eo-side-text);
}

.eo-sidebar .eo-sidebar__logout:hover {
    color: var(--eo-danger-on-dark);
    background: var(--eo-danger-25);
}

.eo-sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .eo-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(300px, 86vw);
        transform: translateX(-100%);
        box-shadow: none;
    }

    .eo-shell.is-nav-open .eo-sidebar {
        transform: translateX(0);
        box-shadow: var(--eo-shadow-float);
    }

    .eo-shell.is-nav-open .eo-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: calc(var(--eo-z-sidebar) - 1);
        display: block;
        background: var(--eo-overlay);
    }

    .eo-sidebar .eo-sidebar__close {
        display: inline-flex;
    }

    .eo-nav__link {
        min-height: var(--eo-control-h-lg);
    }
}

/* ========================================================================== */
/* TOP BAR */
/* ========================================================================== */

/* thin and white: the page name on the left, only the essentials on the right */
.eo-topbar {
    position: sticky;
    top: 0;
    z-index: var(--eo-z-topbar);
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    height: var(--eo-topbar-h);
    padding: 0 var(--eo-space-xl);
    background: var(--eo-surface);
    border-bottom: 1px solid var(--eo-border);
}

@media (min-width: 992px) {
    .eo-topbar .eo-topbar__toggle {
        display: none;
    }
}

.eo-topbar__toggle {
    margin-left: calc(-1 * var(--eo-space-sm));
    color: var(--eo-text-muted);
}

.eo-topbar__title {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--eo-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* the admin bar keeps its wide search box */
.eo-topbar__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 420px;
    min-width: 0;
}

.eo-topbar__search > .svg-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.eo-topbar__search .eo-control {
    height: var(--eo-control-h);
    padding-left: 38px;
    font-size: var(--eo-fs-md);
    text-overflow: ellipsis;
    background-color: var(--eo-surface-2);
    border-color: var(--eo-border);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-topbar__search .eo-control::placeholder {
    color: var(--eo-text-subtle);
}

.eo-topbar__search .eo-control:hover {
    background-color: var(--eo-surface);
    border-color: var(--eo-border-strong);
}

.eo-topbar__search .eo-control:focus {
    background-color: var(--eo-surface);
    border-color: var(--eo-brand);
}

.eo-topbar .eo-topbar__search-close,
.eo-topbar .eo-topbar__search-open {
    display: none;
}

/* admin: the page name on the left, the search box beside the bell and the user on the right */
.eo-admin .eo-topbar__search {
    margin-left: auto;
}

.eo-admin .eo-topbar__search + .eo-topbar__actions {
    margin-left: 0;
}

/* admin tablet and small laptop: the page name gets the room, the search folds into the icon like on phone */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .eo-admin .eo-topbar__title {
        flex: 1 1 auto;
    }

    .eo-admin .eo-topbar__search {
        display: none;
    }

    .eo-admin .eo-topbar__search + .eo-topbar__actions {
        margin-left: auto;
    }

    .eo-admin .eo-topbar .eo-topbar__search-open {
        display: inline-flex;
    }

    .eo-admin .eo-topbar.is-searching .eo-topbar__search {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        gap: var(--eo-space-xs);
        padding: 0 var(--eo-space-xl);
        background: var(--eo-surface);
    }

    .eo-admin .eo-topbar.is-searching .eo-topbar__search > .svg-icon {
        left: calc(var(--eo-space-xl) + 12px);
    }

    .eo-admin .eo-topbar.is-searching .eo-topbar__search .eo-topbar__search-close {
        display: inline-flex;
    }
}

.eo-topbar__actions {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    flex-shrink: 0;
    margin-left: auto;
}

/* every quiet top bar button is the same grey square; only the main action is filled */
.eo-topbar__actions > .eo-btn--ghost,
.eo-topbar__actions > .dropdown > .eo-btn--ghost,
.eo-topbar__actions .eo-topbar__icon {
    color: var(--eo-text-muted);
}

.eo-topbar__actions > .eo-btn--ghost:hover,
.eo-topbar__actions > .dropdown > .eo-btn--ghost:hover,
.eo-topbar__actions > .dropdown > .eo-btn--ghost[aria-expanded="true"] {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-topbar__actions .eo-btn--ghost .svg-icon {
    width: 18px;
    height: 18px;
}

/* SMS and call credit as one icon; a red dot says a balance is under the owner's alert */
.eo-topbar__dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--eo-danger);
    border: 2px solid var(--eo-surface);
    border-radius: 50%;
}

/* the shop name keeps its room, so labels give way on a narrow screen */
@media (max-width: 1199.98px) {
    .eo-topbar__kbd,
    .eo-topbar__label {
        display: none;
    }
}

/* top bar quick actions: a short list, one icon colour, one plain line each */
/* the quick actions and the credit menu are one kind of menu: a 320px box, a bold title over a fine line, rows split by
   fine lines, each with its icon in a 32px tinted box */
.eo-quick {
    --bs-dropdown-min-width: 0;
    width: 320px;
    max-width: calc(100vw - 2 * var(--eo-space-base));
    padding: 0;
    overflow: hidden;
}

.eo-quick__title {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-base);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    border-bottom: 1px solid var(--eo-border);
}

.eo-quick__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.eo-quick__item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
    padding: 10px var(--eo-space-base);
    color: var(--eo-text);
}

.eo-quick__item + .eo-quick__item {
    border-top: 1px solid var(--eo-border);
}

.eo-quick__item:hover,
.eo-quick__item:focus-visible {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-bg-hover);
}

.eo-quick__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-quick__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.eo-quick__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-quick__name {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    line-height: 1.35;
}

.eo-quick__hint {
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    line-height: 1.35;
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-topbar__divider {
    width: 1px;
    height: 24px;
    margin: 0 var(--eo-space-xs);
    background: var(--eo-border);
}

.eo-topbar__user {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h-lg);
    padding: var(--eo-space-xs) var(--eo-space-sm) var(--eo-space-xs) var(--eo-space-xs);
    color: var(--eo-text);
    text-align: left;
    background: none;
    border: 0;
    border-radius: var(--eo-radius-pill);
    transition: background var(--eo-dur) var(--eo-ease);
}

.eo-topbar__user:hover,
.eo-topbar__user[aria-expanded="true"] {
    background: var(--eo-bg-hover);
}

.eo-topbar__user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 140px;
    line-height: var(--eo-lh-tight);
}

.eo-topbar__user-name {
    overflow: hidden;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-topbar__user-role {
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-topbar__user .eo-avatar {
    width: 32px;
    height: 32px;
}

.eo-topbar__user-caret,
.eo-topbar__user > .svg-icon:last-child {
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-topbar__user[aria-expanded="true"] .eo-topbar__user-caret {
    transform: rotate(180deg);
}

.eo-user-menu {
    min-width: 240px;
}

/* the items here are split by hairlines already, so the line above লগআউট is one more hairline, not a gap */
.eo-user-menu > .dropdown-divider {
    margin: 0;
}

.eo-user-menu__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-md) var(--eo-space-md);
    margin-bottom: var(--eo-space-xs);
    border-bottom: 1px solid var(--eo-border);
}

.eo-user-menu__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: var(--eo-lh-tight);
    gap: 2px;
}

.eo-user-menu__text strong {
    font-size: var(--eo-fs-base);
}

.eo-user-menu__text .eo-muted {
    font-size: var(--eo-fs-sm);
}

.eo-bell {
    position: relative;
}

/* scoped to .eo-bell so the general .eo-count rule further down cannot turn it back into a grey pill over the icon */
.eo-bell .eo-bell__count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
    font-weight: var(--eo-fw-semibold);
    line-height: 1;
    box-shadow: 0 0 0 2px var(--eo-surface);
    color: var(--eo-on-brand);
    background: var(--eo-danger-strong);
}

/* the bell menu's look lives under TOP BAR BELL further down */

.eo-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border: 1px solid var(--eo-brand-20);
    border-radius: 50%;
}

.eo-avatar--lg {
    width: 42px;
    height: 42px;
    font-size: var(--eo-fs-lg);
}

/* two initials ("AK") take a step smaller and sit a touch tighter, so they fit the 32px tiles too */
.eo-avatar--pair > span {
    font-size: 0.86em;
    letter-spacing: -0.02em;
}

/* a team member's photo laid over their first letter (<x-user-avatar>) */
.eo-avatar--photo {
    position: relative;
    overflow: hidden;
}

.eo-avatar--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--eo-surface);
}

@media (max-width: 991.98px) {
    .eo-topbar__user-text,
    .eo-topbar__user-caret,
    .eo-topbar__user > .svg-icon:last-child {
        display: none;
    }

    .eo-topbar__user {
        padding: var(--eo-space-2xs);
    }
}

@media (max-width: 767.98px) {
    .eo-topbar {
        gap: var(--eo-space-xs);
        padding: 0 var(--eo-space-sm);
    }

    .eo-topbar__toggle {
        margin-left: 0;
    }

    .eo-topbar__title {
        flex: 1 1 auto;
        font-size: var(--eo-fs-lg);
    }


    .eo-topbar__actions {
        gap: var(--eo-space-2xs);
    }

    .eo-topbar__search {
        display: none;
    }

    .eo-topbar .eo-topbar__search-open {
        display: inline-flex;
    }

    /* phone: the search opens over the whole bar */
    .eo-topbar.is-searching .eo-topbar__search {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        gap: var(--eo-space-xs);
        padding: 0 var(--eo-space-sm);
        background: var(--eo-surface);
    }

    .eo-topbar.is-searching .eo-topbar__search > .svg-icon {
        left: calc(var(--eo-space-sm) + 12px);
    }

    .eo-topbar.is-searching .eo-topbar__search .eo-topbar__search-close {
        display: inline-flex;
    }

    .eo-topbar__label,
    .eo-topbar__divider {
        display: none;
    }

    /* phone: every top bar action is one square tap target, its name is in the title */
    .eo-topbar .eo-topbar__action {
        width: var(--eo-control-h);
        height: var(--eo-control-h);
        padding: 0;
        flex-shrink: 0;
    }
}

/* a phone keeps search, the main action, AI, the bell and the account; quick actions and credit are in the sidebar menu */
@media (max-width: 575.98px) {
    .eo-topbar .eo-topbar__extra {
        display: none;
    }
}

.eo-topbar__actions {
    gap: var(--eo-space-sm);
}

/* quick actions, search, AI, credit and the bell share one soft tray, every icon in the same grey; it takes the height and corner of "নতুন অর্ডার" beside it */
.eo-topbar__tools {
    display: flex;
    align-items: stretch;
    gap: 2px;
    box-sizing: border-box;
    height: var(--eo-control-h-sm);
    padding: 2px;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-topbar__tools > .dropdown {
    display: flex;
}

/* each icon fills the tray's height and stays square, so the tray grows with the buttons on a phone */
.eo-topbar .eo-topbar__tools .eo-btn--icon {
    position: relative;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    padding: 0;
    color: var(--eo-text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius);
}

.eo-topbar .eo-topbar__tools .eo-btn--icon:hover,
.eo-topbar .eo-topbar__tools .eo-btn--icon[aria-expanded="true"] {
    color: var(--eo-text);
    background: var(--eo-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.eo-topbar .eo-topbar__tools .eo-btn--icon .svg-icon {
    width: 17px;
    height: 17px;
}

/* AI wears its accent only on hover, so the tray stays one colour at rest */
.eo-topbar .eo-topbar__tools .eo-ai-btn .svg-icon {
    color: inherit;
}

.eo-topbar .eo-topbar__tools .eo-ai-btn:hover .svg-icon {
    color: var(--eo-accent);
}

/* low credit is a warning, so amber; red belongs to the bell's unread count alone */
.eo-topbar__tools .eo-topbar__dot {
    top: 5px;
    right: 5px;
    background: var(--eo-warning);
    border-color: var(--eo-surface-2);
}

.eo-topbar__tools .eo-bell .eo-bell__count {
    top: -2px;
    right: -3px;
    box-shadow: 0 0 0 2px var(--eo-surface-2);
}

/* the account is the avatar alone, with a small caret; the admin bar still shows its name, so it keeps its own spacing */
.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)) {
    gap: var(--eo-space-2xs);
    height: auto;
    padding: 2px var(--eo-space-xs) 2px 2px;
    border-radius: var(--eo-radius);
}

.eo-topbar .eo-topbar__user .eo-avatar {
    width: 32px;
    height: 32px;
}

.eo-user-menu__role {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
}


@media (max-width: 767.98px) {
    .eo-topbar__actions {
        gap: var(--eo-space-xs);
    }

    /* phone: the top bar buttons are 44px tap targets, so the tray matches them */
    .eo-topbar .eo-topbar__tools {
        height: var(--eo-control-h);
    }

    .eo-topbar .eo-topbar__user-caret {
        display: none;
    }
}

/* the tray's flex rule above must not bring back the extras a phone hides */
@media (max-width: 575.98px) {
    .eo-topbar .eo-topbar__tools > .eo-topbar__extra {
        display: none;
    }
}

/* the page shows faintly through the bar as it scrolls under it; a browser without backdrop blur keeps the solid white */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .eo-topbar {
        background: color-mix(in srgb, var(--eo-surface) 82%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
    }
}

/* finer strokes on every top bar icon */
.eo-topbar__actions .svg-icon {
    stroke-width: 1.75;
}

.eo-topbar__desk-count {
    font-variant-numeric: tabular-nums;
}

/* the font leaves far more room above its digits than below, so a count centred by its line box sat 1 to 2px high; trimming the line to the digits' own height lets the badge centre the ink */
.eo-topbar .eo-topbar__desk-count,
.eo-topbar .eo-bell .eo-bell__count {
    text-box: trim-both cap alphabetic;
}

/* the bell's count starts at the bell's middle and grows right, so "9+" never covers the bell; the menu shows the exact number */
.eo-topbar__tools .eo-bell .eo-bell__count {
    top: 1px;
    right: auto;
    left: 52%;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* the account is the avatar alone, as tall as the buttons beside it; a soft ring on hover says it opens a menu */
.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)) {
    height: auto;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
}

.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)):hover,
.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name))[aria-expanded="true"] {
    background: none;
}

.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)) .eo-topbar__user-caret {
    display: none;
}

.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)) .eo-avatar {
    width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
    transition: box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)):hover .eo-avatar,
.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name))[aria-expanded="true"] .eo-avatar {
    box-shadow: 0 0 0 3px var(--eo-brand-10);
}

.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)):focus-visible {
    outline: none;
}

.eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)):focus-visible .eo-avatar {
    box-shadow: 0 0 0 3px var(--eo-brand-20);
}

@media (max-width: 767.98px) {
    .eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)) .eo-avatar {
        width: var(--eo-control-h);
        height: var(--eo-control-h);
    }
}

@media (max-width: 399.98px) {
    .eo-topbar .eo-topbar__user:not(:has(.eo-topbar__user-name)) .eo-avatar {
        width: 36px;
        height: 36px;
    }
}

/* ========================================================================== */
/* PAGE HEAD AND BREADCRUMB */
/* ========================================================================== */

.eo-pagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-lg);
    min-height: var(--eo-pagehead-h);
    margin-bottom: var(--eo-space-lg);
}

/* a page whose title stands alone (no help line): the empty second line goes, so the title sits level with its back button */
.eo-pagehead--solo .eo-pagehead__help { display: none; }


/* the top bar already shows the page name (TimoDesk): the head keeps only its one plain line and the main action */
.eo-pagehead--echo {
    min-height: var(--eo-control-h);
}

.eo-pagehead--echo .eo-pagehead__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.eo-pagehead--echo .eo-pagehead__help {
    margin: 0;
}

/* nothing left to show: the head steps out of the page's gap but stays for screen readers */
.eo-pagehead--echo.is-bare {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.eo-pagehead__text {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-pagehead__title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-pagehead__meta {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

/* on its own, meta is often a full sentence, so it reads as plain help text */
.eo-pagehead__meta:only-child {
    font-weight: var(--eo-fw-normal);
    color: inherit;
}

.eo-pagehead__help > span + .eo-pagehead__meta::before {
    content: "\00B7";
    margin: 0 var(--eo-space-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-subtle);
}

.eo-pagehead__help {
    min-height: 21px;
    margin: 2px 0 0;
    overflow: hidden;
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-pagehead__help:empty {
    display: none;
}

.eo-pagehead__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
}

/* one height for every control in the page head: a small dropdown beside the main button looked out of line */
.eo-pagehead__actions .eo-btn {
    height: var(--eo-control-h);
    font-size: var(--eo-fs-base);
}

.eo-pagehead__actions .eo-btn--icon {
    width: var(--eo-control-h);
}

/* a risky action (cancel, mark lost) wears the same frame as its neighbours; only its red words set it apart */
.eo-pagehead__actions .eo-btn--danger-ghost {
    background: var(--eo-surface);
    border-color: var(--eo-border);
}

.eo-pagehead__actions .eo-btn--danger-ghost:hover {
    background: var(--eo-danger-10);
    border-color: var(--eo-danger-strong);
}

.eo-pagehead__back {
    max-width: 200px;
}

/* two classes, so it beats the plain .eo-btn gap declared further down */
.eo-btn.eo-pagehead__back {
    gap: 2px;
}

/* Bangla text sits high on its headline, so the arrow is lifted to match it and drawn in the text colour */
.eo-pagehead__back .svg-icon {
    margin-left: -4px;
    color: currentColor;
    stroke-width: 2.5;
    transform: translateY(-3px);
}

/* a status beside page buttons: the button is the frame, the badge inside it stays plain */
.eo-status-btn .eo-badge {
    padding: 0;
    font-size: inherit;
    background: none;
    border: 0;
}

/* a long name ends in …; the line box is tall enough that Bangla signs above and below (শি, ু) are not cut by the clip */
.eo-pagehead__back span {
    overflow: hidden;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .eo-pagehead { align-items: stretch; flex-direction: column; gap: var(--eo-space-sm); }
    .eo-pagehead__actions { flex-wrap: wrap; }
    .eo-pagehead__actions .eo-btn--primary { flex: 1 1 auto; }
    .eo-pagehead__title,
    .eo-pagehead__help { white-space: normal; }
}

/* the home page's head sticks under the top bar (TimoDesk's dash-head): edge to edge on the page background, with a
   rule and a soft shadow once it is stuck. The negative margins keep it where a plain head sits */
main.eo-content > .eo-dash-head {
    position: sticky;
    top: var(--eo-topbar-h);
    z-index: calc(var(--eo-z-topbar) - 10);
    margin: calc(var(--eo-space-md) * -1) calc(var(--eo-content-pad-x) * -1) 0;
    padding: var(--eo-space-md) var(--eo-content-pad-x);
    background: var(--eo-bg);
    border-bottom: 1px solid transparent;
    transition: border-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

main.eo-content > .eo-dash-head.is-stuck {
    border-bottom-color: var(--eo-border);
    box-shadow: var(--eo-shadow-stuck);
}

/* the cards start as far under the head as the head starts under the top bar: the head's own bottom padding plus the
   page's gap would leave more, so the next block comes up by the difference (never into the head) */
main.eo-content > .eo-dash-head + * {
    margin-top: calc(var(--eo-content-pad-y) - var(--eo-space-md) - var(--eo-space-lg));
}

/* phones: one slim row (the greeting cut short, the range beside it), so it is small enough to stick */
@media (max-width: 575.98px) {
    main.eo-content > .eo-dash-head {
        flex-direction: row;
        align-items: center;
        margin-top: calc(var(--eo-space-sm) * -1);
        padding-block: var(--eo-space-sm);
    }

    main.eo-content > .eo-dash-head + * {
        margin-top: calc(var(--eo-content-pad-y) - var(--eo-space-sm) - var(--eo-space-lg));
    }

    .eo-dash-head .eo-pagehead__text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .eo-dash-head .eo-pagehead__title,
    .eo-dash-head .eo-pagehead__help {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .eo-dash-head .eo-pagehead__actions {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
}

/* ========================================================================== */
/* BUTTONS */
/* ========================================================================== */

.eo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h);
    padding: 0 var(--eo-space-md);
    font-family: inherit;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    line-height: 1;
    color: var(--eo-text);
    white-space: nowrap;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: background-color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease);
    user-select: none;
}

.eo-btn:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-bg-hover);
}

.eo-btn:focus-visible {
    outline: none;
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-btn .svg-icon {
    width: 16px;
    height: 16px;
}

/* Bangla ink sits about 0.15em above the line box middle (tall head line, short tail), so an icon beside words
   is lifted by the same amount to look level with them; an icon-only button keeps it centred */
.eo-btn:not(.eo-btn--icon) > .svg-icon,
.dropdown-item > .svg-icon,
.eo-tab > .svg-icon {
    transform: translateY(-0.15em);
}
/* a plain button is quiet: dark grey words, a muted icon; only the main action is filled.
   :where keeps these at one class, so any module rule still wins */
.eo-btn:where(:not([class*="eo-btn--"])),
.eo-btn--sm:where(:not(.eo-btn--primary, .eo-btn--accent, .eo-btn--danger, .eo-btn--ghost, .eo-btn--danger-ghost, .eo-btn--danger-outline)) {
    color: var(--eo-text-2);
}

.eo-btn:where(:not([class*="eo-btn--"])) :where(.svg-icon),
.eo-btn--ghost :where(.svg-icon) {
    color: var(--eo-text-muted);
}

.eo-btn:where(:not([class*="eo-btn--"])):hover :where(.svg-icon),
.eo-btn--ghost:hover :where(.svg-icon) {
    color: var(--eo-text);
}

.eo-btn:disabled,
.eo-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.eo-btn--primary {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-btn--primary:hover {
    color: var(--eo-on-brand);
    background: var(--eo-brand-strong);
    border-color: var(--eo-brand-strong);
}

.eo-btn--accent {
    color: var(--eo-on-brand);
    background: var(--eo-accent);
    border-color: var(--eo-accent);
}

.eo-btn--accent:hover {
    color: var(--eo-on-brand);
    background: color-mix(in srgb, var(--eo-accent) 85%, #000);
}

/* cancel: a dark neutral button, always at the far left of a footer; clearly a button, never mistaken for the main action */
.eo-btn--cancel {
    color: #ffffff;
    background: var(--eo-text-2);
    border-color: var(--eo-text-2);
}

.eo-btn--cancel:hover,
.eo-btn--cancel:focus-visible {
    color: #ffffff;
    background: var(--eo-text);
    border-color: var(--eo-text);
}

.eo-btn--ghost {
    background: transparent;
    border-color: transparent;
}

.eo-btn--ghost:hover {
    background: var(--eo-bg-hover);
}

.eo-btn--danger {
    color: var(--eo-on-brand);
    background: var(--eo-danger-strong);
    border-color: var(--eo-danger-strong);
}

.eo-btn--danger:hover {
    color: var(--eo-on-brand);
    background: color-mix(in srgb, var(--eo-danger-strong) 85%, #000);
}

.eo-btn--danger-ghost {
    color: var(--eo-danger-strong);
    background: transparent;
    border-color: transparent;
}

.eo-btn--danger-ghost:hover {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

/* a risky side action in a head (ট্রিপ ক্যানসেল করুন, owner 21 Nov 2026): red words in a red frame, filled light red on hover;
   the filled red stays for the confirm itself */
.eo-btn--danger-outline {
    color: var(--eo-danger-strong);
    background: var(--eo-surface);
    border-color: var(--eo-danger-strong);
}

.eo-btn--danger-outline:hover,
.eo-btn--danger-outline:focus-visible {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
    border-color: var(--eo-danger-strong);
}

.eo-btn--danger-outline :where(.svg-icon) {
    color: currentColor;
}

.eo-btn--sm {
    height: var(--eo-control-h-sm);
    gap: 6px;
    padding: 0 10px;
    font-size: var(--eo-fs-md);
}

.eo-btn--lg {
    height: var(--eo-control-h-lg);
    padding: 0 var(--eo-space-base);
}

.eo-btn--icon {
    width: var(--eo-control-h);
    padding: 0;
}

.eo-btn--icon.eo-btn--sm {
    width: var(--eo-control-h-sm);
}

.eo-btn--block {
    width: 100%;
}

.eo-btn.is-loading {
    color: transparent;
    pointer-events: none;
}

.eo-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--eo-text-muted);
    border-right-color: transparent;
    border-radius: 50%;
    animation: eo-spin 0.7s linear infinite;
}

.eo-btn--primary.is-loading::after,
.eo-btn--danger.is-loading::after,
.eo-btn--accent.is-loading::after {
    border-color: var(--eo-on-brand);
    border-right-color: transparent;
}

.eo-btn-group {
    display: inline-flex;
}

.eo-btn-group > .eo-btn:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.eo-btn-group > .eo-btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* reads like a link: a long text that wraps (an admin alert on a phone card) starts at the left, not centred */
.eo-link-btn {
    padding: 0;
    font: inherit;
    color: var(--eo-brand);
    text-align: start;
    background: none;
    border: 0;
    cursor: pointer;
}

.eo-link-btn:hover {
    color: var(--eo-brand-strong);
}

@media (max-width: 767.98px) {
    .eo-btn { height: var(--eo-control-h-lg); }
    .eo-btn--sm { height: var(--eo-control-h); }
    .eo-btn--icon { width: var(--eo-control-h-lg); }
    .eo-btn--icon.eo-btn--sm { width: var(--eo-control-h); }
}

/* ========================================================================== */
/* FORMS */
/* ========================================================================== */

.eo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.eo-label {
    margin: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-label__req {
    margin-left: 2px;
    color: var(--eo-danger-strong);
}

.eo-label__opt {
    margin-left: var(--eo-space-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-subtle);
}

.eo-control {
    display: block;
    width: 100%;
    height: var(--eo-control-h);
    padding: 0 var(--eo-space-md);
    font-family: inherit;
    font-size: var(--eo-fs-base);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text);
    background-color: var(--eo-surface);
    border: 1px solid var(--eo-border-strong);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
    appearance: none;
}

.eo-control::placeholder {
    color: var(--eo-text-subtle);
}

.eo-control:hover {
    border-color: var(--eo-text-subtle);
}

.eo-control:focus {
    outline: none;
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

/* a box that only shows a value (no typing), same height as a field: the store's own domain */
.eo-control--static {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: var(--eo-bg);
}

.eo-control--static:hover {
    border-color: var(--eo-border-strong);
}

.eo-control--static > * {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-control:disabled,
.eo-control[readonly] {
    color: var(--eo-text-muted);
    background-color: var(--eo-bg);
    cursor: not-allowed;
}

.eo-control--sm {
    height: var(--eo-control-h-sm);
    padding: 0 10px;
    font-size: var(--eo-fs-md);
}

select.eo-control {
    padding-right: 30px;
    background-image: var(--eo-caret);
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    cursor: pointer;
}

select.eo-control[multiple] {
    height: auto;
    min-height: 96px;
    padding: var(--eo-space-xs);
    background-image: none;
}

textarea.eo-control {
    height: auto;
    min-height: 84px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    resize: vertical;
}

.eo-control--num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* a number in a form field reads like any other box: from the left, so a click anywhere in the box puts the cursor
   after the number; right-aligned numbers stay for the item lines and tables (their inputs have no .eo-field) */
.eo-field .eo-control--num {
    text-align: left;
}

.eo-field .eo-qty .eo-control--num {
    text-align: right;
}

/* no browser up/down arrows on top of the number: typing and the arrow keys still work */
.eo-control[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.eo-control[type="number"]::-webkit-inner-spin-button,
.eo-control[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.eo-help {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-error {
    display: none;
    font-size: var(--eo-fs-sm);
    color: var(--eo-danger-strong);
}

.eo-field.is-invalid .eo-error,
.eo-error.is-shown {
    display: block;
}

.eo-field.is-invalid .eo-control,
.eo-control.is-invalid {
    border-color: var(--eo-danger-strong);
}

.eo-field.is-invalid .eo-control:focus,
.eo-control.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--eo-danger-10);
}

.eo-field.is-invalid .eo-help {
    display: none;
}

.eo-field.is-valid .eo-control {
    border-color: var(--eo-success-strong);
}

.eo-field__foot {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.eo-counter {
    margin-left: auto;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-subtle);
    white-space: nowrap;
}

.eo-field__foot {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
}

.eo-field__foot .eo-help {
    margin: 0;
}

.eo-counter.is-over {
    color: var(--eo-danger-strong);
}

.eo-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.eo-input-group > .eo-control {
    flex: 1 1 auto;
    min-width: 0;
}

/* a picked line's quantity with its unit in one box (stock in) */
.eo-line-qty {
    display: inline-flex;
    width: 150px;
}

.eo-line-qty > .eo-input-group__addon {
    font-size: var(--eo-fs-sm);
    height: var(--eo-control-h-sm);
}

.eo-input-group__addon {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: var(--eo-fs-base);
    color: var(--eo-text-muted);
    white-space: nowrap;
    background: var(--eo-bg);
    border: 1px solid var(--eo-border-strong);
}

.eo-input-group > :first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.eo-input-group > :last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.eo-input-group > :not(:first-child):not(:last-child) {
    border-radius: 0;
}

.eo-input-group > .eo-input-group__addon:first-child {
    border-right: 0;
    border-radius: var(--eo-radius) 0 0 var(--eo-radius);
}

.eo-input-group > .eo-input-group__addon:last-child {
    border-left: 0;
    border-radius: 0 var(--eo-radius) var(--eo-radius) 0;
}

.eo-input-group > .eo-btn {
    height: auto;
}

.eo-input-group > .eo-btn:first-child {
    margin-right: -1px;
}

.eo-input-group > .eo-btn:last-child {
    margin-left: -1px;
}

.eo-field.is-invalid .eo-input-group__addon {
    border-color: var(--eo-danger-strong);
}

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

.eo-input-icon > .svg-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    color: var(--eo-text-subtle);
    transform: translateY(-50%);
    pointer-events: none;
}

.eo-input-icon > .eo-control {
    padding-left: 34px;
}

/* desk "change products" modal: one line per product, quantity and remove on the right */
.eo-items-edit {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-items-edit:empty {
    display: none;
}

/* one grid for the small head (পরিমাণ / দাম / মোট) and every line: name, qty × price, line total, remove */
.eo-items-edit__row,
.eo-items-edit__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px auto 104px 96px var(--eo-control-h);
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-items-edit__head {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: calc(var(--eo-space-sm) * -1);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-items-edit__head > :nth-child(2) {
    text-align: center;
}

.eo-items-edit__head > :nth-child(5),
.eo-items-edit__total {
    text-align: right;
}

.eo-items-edit__row + .eo-items-edit__row {
    border-top: 1px solid var(--eo-border);
}

.eo-items-edit__name {
    min-width: 0;
}

.eo-items-edit__qty {
    text-align: center;
}

.eo-items-edit__times {
    color: var(--eo-text-muted);
}

.eo-items-edit__price-text {
    text-align: right;
}

.eo-items-edit__total {
    font-weight: var(--eo-fw-medium);
    white-space: nowrap;
}

.eo-items-edit__remove {
    width: var(--eo-control-h);
    height: var(--eo-control-h);
}

/* asks for more than the stock: the line turns red and says what is left */
.eo-items-edit__row.is-short .eo-items-edit__name,
.eo-items-edit__stock {
    color: var(--eo-danger-strong);
}

.eo-items-edit__row.is-short .eo-items-edit__qty {
    border-color: var(--eo-danger);
}

.eo-items-edit__stock {
    display: block;
    font-size: var(--eo-fs-sm);
}

.eo-items-edit__stock[hidden] {
    display: none;
}

/* the search results in the desk's products modal sit in the flow, so the modal footer never cuts them */
.eo-desk-items-modal [data-items-results].show {
    position: static;
    max-height: 280px;
    margin-top: var(--eo-space-xs);
    overflow-y: auto;
    transform: none;
}

.eo-order-result__stock {
    display: block;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-order-result__stock.is-out {
    color: var(--eo-danger-strong);
}

/* phones and tablets (the modal is 500px wide there): two rows per line, the name with its total on top,
   then [qty] × [price] and ✕ */
@media (max-width: 991.98px) {
    .eo-items-edit__head {
        display: none;
    }

    .eo-items-edit__row {
        grid-template-columns: 64px auto minmax(0, 1fr) auto;
        grid-template-areas:
            "name name name total"
            "qty times price remove";
        gap: var(--eo-space-xs) var(--eo-space-sm);
    }

    .eo-items-edit__name { grid-area: name; }
    .eo-items-edit__qty { grid-area: qty; }
    .eo-items-edit__times { grid-area: times; }
    .eo-items-edit__price,
    .eo-items-edit__price-text { grid-area: price; min-width: 0; }
    .eo-items-edit__total { grid-area: total; }
    .eo-items-edit__remove { grid-area: remove; }
}

/* partial delivery form: one line per item, the count coming back on the right */
.eo-partial {
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-partial__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-partial__row + .eo-partial__row {
    border-top: 1px solid var(--eo-border);
}

.eo-partial__name {
    min-width: 0;
    font-size: var(--eo-fs-md);
}

/* one piece's price, small and grey under the product name */
.eo-partial__price {
    display: block;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the head line over the item rows: what each side is ("প্রোডাক্ট" and "ডেলিভারি দিয়েছেন"), small and grey */
.eo-partial__head {
    padding-top: var(--eo-space-xs);
    padding-bottom: var(--eo-space-xs);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
}

.eo-partial__qty {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-partial__qty .eo-control {
    width: 72px;
    text-align: center;
}

/* order panel and order page: the buyer's details open for editing right under them */
.eo-contact-edit {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin-top: var(--eo-space-sm);
}

.eo-contact-edit .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-contact-form {
    margin-top: var(--eo-space-md);
    padding-top: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

/* password box: an eye button inside the right edge shows or hides what was typed */
.eo-password {
    position: relative;
}

.eo-password > .eo-control {
    padding-right: calc(var(--eo-control-h) + var(--eo-space-2xs));
}

.eo-password__toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--eo-control-h);
    height: 100%;
    padding: 0;
    color: var(--eo-text-subtle);
    background: none;
    border: 0;
    border-radius: 0 var(--eo-radius) var(--eo-radius) 0;
}

.eo-password__toggle:hover {
    color: var(--eo-text);
}

.eo-password__toggle:focus-visible {
    outline: 0;
    box-shadow: var(--eo-focus);
}

.eo-password__hide,
.eo-password__toggle[aria-pressed="true"] .eo-password__show {
    display: none;
}

.eo-password__toggle[aria-pressed="true"] .eo-password__hide {
    display: block;
}

.eo-qty .eo-control {
    width: 90px;
    flex: 0 1 90px;
}

.eo-qty .eo-btn {
    width: var(--eo-control-h);
    padding: 0;
}

.eo-check {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    margin: 0;
    font-size: var(--eo-fs-base);
    color: var(--eo-text);
    cursor: pointer;
}

.eo-check input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--eo-brand);
    cursor: pointer;
}

.eo-check__hint {
    display: block;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-switch input {
    position: relative;
    width: 34px;
    height: 20px;
    margin-top: 1px;
    background: var(--eo-text-subtle);
    border-radius: var(--eo-radius-pill);
    transition: background-color var(--eo-dur) var(--eo-ease);
    appearance: none;
}

.eo-switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--eo-surface);
    border-radius: 50%;
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-switch input:checked {
    background: var(--eo-brand);
}

.eo-switch input:checked::after {
    transform: translateX(14px);
}

.eo-switch input:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

/* a switch that cannot be used yet (a payment method not set up): faded, and the pointer says so */
.eo-switch input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* x-status-dot: a record's status as a small dot and a word (TimoDesk status-dot); changing it is in the row's ⋯ menu */
.eo-status-dot {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

.eo-status-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: var(--eo-border-strong);
    border-radius: 50%;
}

.eo-status-dot--on {
    color: var(--eo-text);
}

.eo-status-dot--on::before {
    background: var(--eo-success);
}

/* a row's ⋯ menu (TimoDesk action-menu): the record's name on top, then its actions in groups split by a hairline */
.eo-action-menu > .eo-btn {
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    border-radius: var(--eo-radius);
}

.eo-action-menu > .eo-btn:hover,
.eo-action-menu > .eo-btn[aria-expanded="true"] {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-action-menu .dropdown-menu {
    width: 240px;
    max-width: calc(100vw - 2 * var(--eo-space-base));
    padding: 0;
    overflow: hidden;
    border-radius: var(--eo-radius-lg);
}

.eo-action-menu__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.eo-action-menu__name {
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.4;
    color: var(--eo-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-action-menu__meta {
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-action-menu__group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px;
}

.eo-action-menu__group + .eo-action-menu__group {
    border-top: 1px solid var(--eo-border);
}

.eo-action-menu .dropdown-item {
    gap: 10px;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text);
    border-radius: var(--eo-radius-sm);
}

.eo-action-menu .dropdown-item .svg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--eo-text-muted);
}

.eo-action-menu .dropdown-item:hover {
    background: var(--eo-bg-hover);
}

.eo-action-menu .dropdown-item.is-danger,
.eo-action-menu .dropdown-item.is-danger .svg-icon {
    color: var(--eo-danger-strong);
}

.eo-action-menu .dropdown-item.is-danger:hover {
    background: var(--eo-danger-10);
}

/* switching something back on: the brand green, the danger item's opposite */
.eo-action-menu .dropdown-item.is-success,
.eo-action-menu .dropdown-item.is-success .svg-icon {
    color: var(--eo-brand);
}

.eo-action-menu .dropdown-item.is-success:hover {
    background: var(--eo-brand-10);
}

.eo-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    padding-top: var(--eo-space-base);
    margin-top: var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

/* under stacked settings sections the buttons sit on the page itself: no line across the grey */
.eo-section ~ .eo-form-actions {
    padding-top: 0;
    border-top: 0;
}

.eo-fieldset {
    padding: 0;
    margin: 0;
    border: 0;
}

.eo-fieldset__title {
    margin-bottom: var(--eo-space-md);
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

@media (max-width: 767.98px) {
    .eo-control { height: var(--eo-control-h-lg); font-size: var(--eo-fs-lg); }
    .eo-control--sm { height: var(--eo-control-h); font-size: var(--eo-fs-base); }
    .eo-qty .eo-btn { width: var(--eo-control-h-lg); }
    .eo-form-actions .eo-btn { flex: 1 1 auto; }
}

/* <x-more-options>: fields a new user can skip wait behind one toggle */
/* a quiet text toggle, not a box: the hidden fields should not ask for attention */
.eo-more__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-height: var(--eo-control-h-sm);
    padding: 0 var(--eo-space-sm);
    margin-left: calc(-1 * var(--eo-space-sm));
    font: inherit;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius);
    cursor: pointer;
}

.eo-more__toggle .svg-icon {
    width: 15px;
    height: 15px;
}

.eo-more__toggle:hover {
    background: var(--eo-bg-hover);
}

.eo-more__toggle:focus-visible {
    outline: 0;
    box-shadow: var(--eo-focus);
}

.eo-more__caret {
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-more__toggle[aria-expanded="true"] .eo-more__caret {
    transform: rotate(180deg);
}

/* fields put straight inside get the same space between them as an .eo-stack form */
.eo-more__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding-top: var(--eo-space-base);
}

.eo-more__title {
    margin: 0;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
}

form:not(.has-more-open) .eo-more-col {
    display: none;
}

/* ========================================================================== */
/* CARDS AND PANELS */
/* ========================================================================== */

.eo-card {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-base);
    min-height: 56px;
    padding: var(--eo-space-base) var(--eo-space-lg) var(--eo-space-md);
}

.eo-card__title {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* panel head as in TimoDesk: a title, one short grey line under it, one small button on the right */
.eo-card__head-text {
    flex: 1 1 160px;
    min-width: 0;
}

.eo-card__sub {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-card__head > .eo-btn {
    flex-shrink: 0;
}

.eo-card__body {
    padding: var(--eo-space-lg);
}

/* the title and the content read as one block, no rule between them */
.eo-card__head + .eo-card__body {
    padding-top: 0;
}

/* a table in a card uses the card's own edge, so there is never a box inside a box */
.eo-card > .eo-table-wrap {
    border-width: 1px 0 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-card__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* panels side by side share one height: the shorter one's foot stays at its bottom, not in the middle */
.eo-grid > .eo-panel:has(> .eo-card__foot) {
    display: flex;
    flex-direction: column;
}

.eo-grid > .eo-panel > .eo-card__foot {
    margin-top: auto;
}

/* x-settings-section foot: a single row of buttons at the end of the block, no extra strip */
.eo-section__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
}

/* settings form: a card with class eo-section keeps its title (and a plain line) on the left, the fields on the right */
.eo-section > .eo-card__head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--eo-space-2xs);
}

.eo-section__text {
    margin: 0;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

/* the title and its line on top and the fields under a hairline on a small screen; never a divider line between the
   title block and the fields (owner, 16 Nov 2026) */
.eo-section > .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.eo-section > .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-lg);
}

/* a laptop: the title and its line in a block on the left, the fields on the right, with no divider between them */
@media (min-width: 1200px) {
    .eo-section {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
    }

    .eo-section > .eo-card__head {
        padding: var(--eo-space-lg);
        border-bottom: 0;
    }

    .eo-section > .eo-card__foot {
        grid-column: 2;
    }
}

/* a form's save buttons stay on screen on a long form, and settle at its end on a short one */
.eo-card__foot:has([type="submit"]),
form .eo-form-actions,
.eo-formbar {
    position: sticky;
    bottom: 0;
    z-index: var(--eo-z-formbar);
}

/* a list of small one-row forms (support topics): each foot stays at its card's end, never over the next card's fields */
.eo-topic-card > .eo-card__foot {
    position: static;
}

form .eo-form-actions:not(.eo-card__foot) {
    padding-bottom: var(--eo-space-sm);
    background: var(--eo-surface);
}

/* under settings sections the bar sits on the grey page, so it takes the page colour: no white strip, just the button */
form .eo-section ~ .eo-form-actions:not(.eo-card__foot) {
    padding-top: var(--eo-space-sm);
    padding-bottom: var(--eo-space-base);
    margin-top: 0;
    /* as the settings save bar below: the pinned bar's bottom room is not added again at the form's end */
    margin-bottom: calc(var(--eo-space-base) * -1);
    background: var(--eo-bg);
}

/* once the side column drops under the form, its save buttons pin to the screen edge, beside the sidebar */
.eo-order-form__save,
.pf-save {
    --eo-pin-left: var(--eo-sidebar-w);
}

@media (max-width: 1199.98px) {
    .pf-layout .pf-save {
        position: fixed;
        right: 0;
        bottom: 0;
        left: var(--eo-pin-left);
        z-index: var(--eo-z-formbar);
        display: flex;
        gap: var(--eo-space-sm);
        padding: var(--eo-space-sm);
        background: var(--eo-surface-2);
        border-top: 1px solid var(--eo-border);
    }

    .pf-layout .pf-save .eo-btn {
        flex: 1 1 0;
        width: auto;
    }

    .pf-layout .pf-save .eo-btn--ghost {
        display: none;
    }

    .pf-layout {
        padding-bottom: 72px;
    }
}

@media (max-width: 1099.98px) {
    .eo-order-layout .eo-order-form__save {
        position: fixed;
        right: 0;
        bottom: 0;
        left: var(--eo-pin-left);
        border-radius: 0;
    }

    .eo-order-layout {
        padding-bottom: 72px;
    }
}

@media (max-width: 991.98px) {
    .eo-order-form__save,
    .pf-save {
        --eo-pin-left: 0px;
    }
}

/* a form of several cards: this bar sits in the form itself, so it stays through every card */
.eo-formbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

@media (max-width: 767.98px) {
    .eo-formbar {
        padding: var(--eo-space-sm);
    }

    .eo-formbar .eo-btn {
        flex: 1 1 auto;
    }
}

/* under settings sections the save bar is no box of its own: page colour, no border, just the button */
.eo-section ~ .eo-formbar,
.sf-set__main > .eo-panel ~ .eo-formbar,
.eo-scards ~ .eo-formbar,
.eo-scard ~ .eo-formbar {
    padding: var(--eo-space-sm) 0 var(--eo-space-base);
    /* the bottom room is for when the bar is pinned to the screen's foot; at the form's end it would stack on the page's
       own bottom padding, so the bar gives it back and its button lines up with the column beside it */
    margin-bottom: calc(var(--eo-space-base) * -1);
    background: var(--eo-bg);
    border: 0;
    border-radius: 0;
}

/* while more of the form runs under a pinned save bar, a fine rule and a soft shade on its top edge say "there is more
   below"; at the form's end it settles flat again (dashboard.js marks is-stuck) */
.eo-formbar,
form .eo-form-actions,
.eo-card__foot:has([type="submit"]) {
    transition: box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-formbar.is-stuck,
form .eo-form-actions.is-stuck,
.eo-card__foot.is-stuck {
    box-shadow: inset 0 1px 0 var(--eo-border), var(--eo-shadow-stuck-up);
}

/* lines of one record that belong together, closer than the blocks of a stack */
.eo-lines {
    display: grid;
    gap: var(--eo-space-2xs);
}

.eo-lines__foot {
    margin-top: var(--eo-space-sm);
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

.eo-dl {
    display: grid;
    grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
    gap: var(--eo-space-sm) var(--eo-space-base);
    margin: 0;
}

/* a side card is narrow: a date may wrap here, it must never push the page sideways */
.eo-dl .eo-nowrap {
    white-space: normal;
}

aside .eo-dl {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--eo-space-sm);
}

.eo-dl dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-dl dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* a long label (a rate, a web address) on a phone: the label sits above its value, so the value is not squeezed to a few letters */
@media (max-width: 575.98px) {
    .eo-dl.eo-dl--stack-phone {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
    }

    .eo-dl--stack-phone dd + dt {
        margin-top: var(--eo-space-sm);
    }
}

/* ========================================================================== */
/* BADGES */
/* ========================================================================== */

.eo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    line-height: 1;
    color: var(--eo-text-muted);
    white-space: nowrap;
    background: var(--eo-bg-hover);
    border: 1px solid transparent;
    border-radius: var(--eo-radius-sm);
}

.eo-badge__dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background: currentColor;
    border-radius: 50%;
}

.eo-badge--success { color: var(--eo-success-strong); background: var(--eo-success-10); border-color: var(--eo-success-25); }
.eo-badge--warning { color: var(--eo-warning-strong); background: var(--eo-warning-10); border-color: var(--eo-warning-25); }
.eo-badge--danger { color: var(--eo-danger-strong); background: var(--eo-danger-10); border-color: var(--eo-danger-25); }
.eo-badge--neutral { color: var(--eo-neutral); background: var(--eo-neutral-10); border-color: var(--eo-border); }
.eo-badge--info { color: var(--eo-info-strong); background: var(--eo-info-10); border-color: var(--eo-info-25); }
.eo-badge--success .eo-badge__dot { background: var(--eo-success); }
.eo-badge--warning .eo-badge__dot { background: var(--eo-warning); }
.eo-badge--danger .eo-badge__dot { background: var(--eo-danger); }
.eo-badge--info .eo-badge__dot { background: var(--eo-info); }
.eo-badge--brand { color: var(--eo-brand); background: var(--eo-brand-10); }
.eo-badge--accent { color: var(--eo-accent); background: var(--eo-accent-10); }

.eo-badge--outline {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
}

.eo-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

/* ========================================================================== */
/* ALERTS */
/* ========================================================================== */

.eo-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    font-size: var(--eo-fs-base);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-alert > .svg-icon {
    margin-top: 2px;
    color: var(--eo-text-muted);
}

.eo-alert__body {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-alert__title {
    margin-bottom: 2px;
    font-weight: var(--eo-fw-semibold);
}

.eo-alert__close {
    margin: -6px -8px -6px 0;
}

.eo-alert--info { background: var(--eo-info-10); border-color: var(--eo-info-25); }
.eo-alert--info > .svg-icon { color: var(--eo-info-strong); }
.eo-alert--success { background: var(--eo-success-10); border-color: var(--eo-success-25); }
.eo-alert--success > .svg-icon { color: var(--eo-success-strong); }
.eo-alert--warning { background: var(--eo-warning-10); border-color: var(--eo-warning-25); }
.eo-alert--warning > .svg-icon { color: var(--eo-warning-strong); }
.eo-alert--danger { background: var(--eo-danger-10); border-color: var(--eo-danger-25); }
.eo-alert--danger > .svg-icon { color: var(--eo-danger-strong); }

/* ========================================================================== */
/* STATS */
/* ========================================================================== */

/* TimoDesk stat strip: one bordered panel split into cells by fine lines. Each cell draws its own left and top
   line and is pulled 1px out, so the lines of the first column and row hide under the panel edge */
.eo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-stats > .eo-stat {
    margin: -1px 0 0 -1px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: inset 1px 0 0 var(--eo-border), inset 0 1px 0 var(--eo-border);
}

.eo-stats > a.eo-stat:hover {
    background: var(--eo-surface-2);
}

@media (max-width: 575.98px) {
    .eo-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-stats .eo-stat {
        padding: var(--eo-space-md);
    }
}

.eo-stat {
    --eo-stat-tone: var(--eo-brand);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
    min-width: 0;
    padding: var(--eo-space-lg);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

a.eo-stat:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-surface-2);
}

.eo-stat__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

/* the icon is a small tinted square in the top right corner, the label stays on the left */
.eo-stat__label:has(.svg-icon) {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 28px;
}

.eo-stat__label .svg-icon {
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 8px;
    margin: -4px -4px 0 0;
    color: var(--eo-stat-tone);
    background: color-mix(in srgb, var(--eo-stat-tone) 12%, transparent);
    border-radius: var(--eo-radius-sm);
}

/* x-stat tone: the colour of the icon square, the line and the chart, one per card as in TimoDesk */
.eo-stat--orange { --eo-stat-tone: #F97316; }
.eo-stat--green { --eo-stat-tone: var(--eo-success); }
.eo-stat--blue { --eo-stat-tone: #3B82F6; }
.eo-stat--purple { --eo-stat-tone: #8B5CF6; }
.eo-stat--amber { --eo-stat-tone: var(--eo-warning); }
.eo-stat--teal { --eo-stat-tone: #14B8A6; }
.eo-stat--pink { --eo-stat-tone: #EC4899; }

.eo-stat__value {
    font-size: var(--eo-fs-3xl);
    font-weight: var(--eo-fw-bold);
    line-height: var(--eo-lh-tight);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

/* the small "/ 30" or "%" after the number */
.eo-stat__suffix {
    margin-left: 4px;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium, 500);
    color: var(--eo-text-muted);
}

/* the small chart at the foot of the card (x-stat spark): a filled line or day bars, sitting on the card bottom */
/* x-stat spark-tips: a dot on the line at the day the pointer is over; its figure shows in the dark tip (.eo-tip) */
.eo-stat__spark-dot {
    position: absolute;
    z-index: 1;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    pointer-events: none;
    background: var(--eo-surface);
    border: 2px solid var(--eo-stat-tone);
    border-radius: 50%;
}

.eo-stat__spark[data-spark-tips] {
    cursor: crosshair;
}

.eo-stat__spark {
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 40px;
    margin-top: auto;
    padding-top: var(--eo-space-sm);
    overflow: visible;
    color: var(--eo-stat-tone);
}

.eo-stat__hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: var(--eo-fw-semibold);
}

.eo-trend--up { color: var(--eo-success-strong); }
.eo-trend--down { color: var(--eo-danger-strong); }
.eo-trend--flat { color: var(--eo-text-muted); }

/* the thin line under a stat: how far along it is (x-stat progress) */
.eo-stat__bar {
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 6px;
    margin-top: auto;
    overflow: hidden;
    color: var(--eo-stat-tone);
    background: var(--eo-bg-hover);
    border: 0;
    border-radius: var(--eo-radius-pill);
    appearance: none;
}

.eo-stat__bar::-webkit-progress-bar {
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-stat__bar::-webkit-progress-value {
    background: var(--eo-stat-tone);
    border-radius: var(--eo-radius-pill);
}

.eo-stat__bar::-moz-progress-bar {
    background: var(--eo-stat-tone);
    border-radius: var(--eo-radius-pill);
}

.eo-stat__bar--success::-webkit-progress-value { background: var(--eo-success); }
.eo-stat__bar--success::-moz-progress-bar { background: var(--eo-success); }
.eo-stat__bar--warning::-webkit-progress-value { background: var(--eo-warning); }
.eo-stat__bar--warning::-moz-progress-bar { background: var(--eo-warning); }
.eo-stat__bar--danger::-webkit-progress-value { background: var(--eo-danger); }
.eo-stat__bar--danger::-moz-progress-bar { background: var(--eo-danger); }

/* ========================================================================== */
/* TOOLBAR, FILTER BAR AND TABLE TOOLS */
/* ========================================================================== */

.eo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    margin-bottom: var(--eo-space-md);
}

/* toolbar start: the search, the filter button and a pill row as one group on the left, the page's buttons on the right */
.eo-toolbar__start {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-toolbar__start > .eo-filterbar {
    flex: 1 1 320px;
}

/* a toolbar right above a table becomes that table's header, so search, filters and rows read as one block */
.eo-toolbar:has(+ .eo-table-wrap),
.eo-toolbar:has(+ .eo-empty) {
    margin-bottom: 0;
    padding: var(--eo-space-md);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-bottom: 0;
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
}

.eo-toolbar + .eo-table-wrap,
.eo-content .eo-toolbar + .eo-empty {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    --eo-wrap-top-radius: 1px;
}

/* the page's own gap would split the toolbar from the table or panel it heads */
.eo-content > .eo-toolbar + .eo-table-wrap,
.eo-content > .eo-toolbar + .eo-empty,
.eo-setpage > .eo-toolbar + .eo-table-wrap,
.eo-setpage > .eo-toolbar + .eo-empty {
    margin-top: calc(-1 * var(--eo-space-lg));
}

/* the same join on an in-place page: its block is display: contents, so the toolbar and table are still the page column's
   items and its gap splits them, but the rule above cannot see them as the column's own children */
.eo-content > [data-swap] > .eo-toolbar + .eo-table-wrap,
.eo-content > [data-swap] > .eo-toolbar + .eo-empty {
    margin-top: calc(-1 * var(--eo-space-lg));
}

/* the same join inside a column stack, whose gap would otherwise split the toolbar from its table */
.eo-stack > .eo-toolbar + .eo-table-wrap,
.eo-stack > .eo-toolbar + .eo-empty {
    margin-top: calc(-1 * var(--eo-space-base));
}

.eo-stack--sm > .eo-toolbar + .eo-table-wrap,
.eo-stack--sm > .eo-toolbar + .eo-empty {
    margin-top: calc(-1 * var(--eo-space-sm));
}

.eo-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    flex: 1 1 480px;
    min-width: 0;
}

/* a toolbar with tabs and a search box: the search comes first on the left, the tabs sit on the right; a bar with no search keeps its place */
.eo-toolbar:has(> .eo-segment) > .eo-filterbar:has(> .eo-filterbar__search) {
    order: -1;
}

/* in a column stack the 480px above would become the bar's height */
.eo-stack > .eo-filterbar,
.flex-column > .eo-filterbar {
    flex: 0 0 auto;
}

/* x-filter-bar lead slot: a pill row or a date range that stays in view beside the search */
.eo-filterbar__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

/* x-filter-bar actions slot: the page's tools and one main button at the right end of the same row */
.eo-filterbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    margin-left: auto;
}

.eo-filterbar__toggle ~ .eo-filterbar__actions {
    margin-left: 0;
}

/* ONE TOOLBAR RULE for every list card (x-filter-bar inside .eo-toolbar), on every page:
   search, pills · · · filter button, the page's buttons, the column button last, all on one line while they fit.
   The filter form steps aside (display: contents) so its search, pills and filter button line up with the page's own
   buttons; it still submits as one form with its hidden fields and side panel. When the line does not fit,
   dashboard.js marks the bar is-stacked and the pills (only the pills) take a line of their own under it. */
.eo-toolbar:has(> .eo-filterbar) {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.eo-toolbar > .eo-filterbar {
    display: contents;
}

/* the search is 340px when there is room and gives way down to 220px before the pills have to leave the line */
.eo-toolbar > .eo-filterbar > .eo-filterbar__search {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 340px;
}

/* the pills keep one line at their own width; a bar that cannot hold them stacks */
.eo-toolbar > .eo-filterbar > .eo-filterbar__lead {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    max-width: 100%;
}

.eo-toolbar > .eo-filterbar > .eo-filterbar__lead .eo-segment {
    flex-wrap: nowrap;
}

/* pills-end: the pill row sits at the right end of the bar, the search alone on the left (the bill lists);
   on a phone the pills still take their own full line under the search */
.eo-toolbar > .eo-filterbar--pills-end > .eo-filterbar__lead {
    margin-left: auto;
}

/* the right-hand group: the filter button opens it at the right edge, then the page's buttons, the column button last */
.eo-toolbar > .eo-filterbar > .eo-filterbar__toggle {
    margin-left: auto;
}

.eo-toolbar > .eo-filterbar > .eo-filterbar__actions {
    flex: none;
    flex-wrap: nowrap;
    margin-left: 0;
}

.eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar) {
    flex: none;
    margin-left: 0;
}

.eo-toolbar:has(> .eo-filterbar) > .eo-row {
    flex-wrap: nowrap;
}

/* no filter button: the page's buttons open the right-hand group themselves */
.eo-toolbar > .eo-filterbar:not(:has(> .eo-filterbar__toggle)) > .eo-filterbar__actions,
.eo-toolbar > .eo-filterbar:not(:has(> .eo-filterbar__toggle, > .eo-filterbar__actions)) + * {
    margin-left: auto;
}

.eo-toolbar > .eo-filterbar > .eo-filterbar__chips {
    order: 300;
    flex: 1 0 100%;
}

/* stacked: line one keeps the search on the left and the right-hand group on the right edge; the pills start line two
   at the card's left edge */
@media (min-width: 576px) {
    .eo-toolbar.is-stacked > .eo-filterbar > .eo-filterbar__lead {
        order: 200;
        flex: 1 0 100%;
        min-width: 0;
    }

    /* crowded (a narrow card with many buttons): the search takes line one by itself, the filter and the buttons the
       right edge of line two */
    .eo-toolbar.is-crowded > .eo-filterbar > .eo-filterbar__search {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* pills on a line of their own stay on that one line and slide sideways (no scrollbar) when wider than the card */
.eo-toolbar.is-stacked > .eo-filterbar > .eo-filterbar__lead .eo-segment {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.eo-toolbar.is-stacked > .eo-filterbar > .eo-filterbar__lead .eo-segment::-webkit-scrollbar {
    display: none;
}

.eo-toolbar.is-stacked > .eo-filterbar > .eo-filterbar__lead .eo-segment__item {
    flex: none;
}

/* the sliding row would cut off a pill's "আরও" menu; with no positioned box inside the row the menu opens in full */
.eo-toolbar.is-stacked > .eo-filterbar > .eo-filterbar__lead .eo-segment .dropdown {
    position: static;
}

/* phones: line 1 the search and the filter icon; line 2 the pills on one sliding line; line 3 the main button filling
   the line at tap size with the icon buttons beside it on the right. A bar with no search opens line 1 with the pills,
   and buttons with no main button stay on line 1 after the filter */
@media (max-width: 575.98px) {
    /* the search never shrinks below a usable box: buttons that do not fit beside it move to the next line */
    .eo-toolbar > .eo-filterbar > .eo-filterbar__search {
        order: 1;
        flex: 1 1 0;
        min-width: 160px;
        max-width: none;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__toggle {
        order: 2;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__search ~ .eo-filterbar__lead {
        order: 5;
        flex: 1 0 100%;
        min-width: 0;
    }

    .eo-toolbar > .eo-filterbar:not(:has(> .eo-filterbar__search)) > .eo-filterbar__lead {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__lead .eo-segment {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__lead .eo-segment::-webkit-scrollbar {
        display: none;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__lead .eo-segment__item {
        flex: 1 0 auto;
        justify-content: center;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__lead .eo-segment .dropdown {
        position: static;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions,
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar, h2, h3) {
        order: 3;
        margin-left: auto;
    }

    /* a card title before a search takes the first line by itself */
    .eo-toolbar:has(> .eo-filterbar > .eo-filterbar__search) > :is(h2, h3) {
        flex: 1 1 100%;
    }

    /* pickers in the right-hand group (month, shop, period) share a line of their own as well */
    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:has(> .eo-btn--primary),
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar):has(> .eo-btn--primary),
    .eo-toolbar:has(> .eo-filterbar) > .eo-btn--primary,
    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:has(> .eo-field, > .eo-range, > select, > .eo-control),
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar):has(> .eo-field, > .eo-range, > select, > .eo-control) {
        order: 6;
        flex: 1 1 100%;
        margin-left: 0;
    }

    /* a bar with only the filter button (no search, no pills): the pickers fill line one beside it */
    .eo-toolbar > .eo-filterbar:not(:has(> .eo-filterbar__search, > .eo-filterbar__lead)) > .eo-filterbar__actions:not(:has(> .eo-btn--primary)) {
        order: 3;
        flex: 1 1 auto;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions > :is(.eo-field, .eo-range, select, .eo-control),
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar) > :is(.eo-field, .eo-range, select, .eo-control) {
        flex: 1 1 0;
        min-width: 0;
    }

    /* beside a main button a picker takes the line above it, full width */
    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:has(> .eo-btn--primary):has(> .eo-field, > .eo-range, > select, > .eo-control, > form),
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar):has(> .eo-btn--primary):has(> .eo-field, > .eo-range, > select, > .eo-control, > form) {
        flex-wrap: wrap;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:has(> .eo-btn--primary) > :is(.eo-field, .eo-range, select, .eo-control, form),
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar):has(> .eo-btn--primary) > :is(.eo-field, .eo-range, select, .eo-control, form) {
        order: -2;
        flex: 1 1 100%;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions > .eo-btn--primary,
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar) > .eo-btn--primary {
        order: -1;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        height: 44px;
    }

    .eo-toolbar:has(> .eo-filterbar) > .eo-btn--primary {
        justify-content: center;
        height: 44px;
    }

    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:has(> .eo-btn--primary) > .eo-btn:not(.eo-btn--primary),
    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:has(> .eo-btn--primary) > .dropdown > .eo-btn,
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar):has(> .eo-btn--primary) > .eo-btn:not(.eo-btn--primary),
    .eo-toolbar:has(> .eo-filterbar) > :not(.eo-filterbar):has(> .eo-btn--primary) > .dropdown > .eo-btn {
        min-width: 44px;
        height: 44px;
        justify-content: center;
    }
}

/* REPORTS (redesign) */
/* a report page is the product page's head card (name, period, four numbers) and then the product list's table card;
   the wrapper only scopes, its blocks take the page's own gap */
.eo-report {
    display: contents;
}

/* a page's in-place block (dashboard.js, in-place pages): only a hook for the swap, its children stay the page column's items */
[data-swap] {
    display: contents;
}

[data-swap] > * {
    min-width: 0;
}

/* the report's blocks are the page column's flex items through display: contents, but main.eo-content > * cannot reach them;
   without min-width 0 a wide table stretches its box past the page and gets cut instead of scrolling sideways */
.eo-report > * {
    min-width: 0;
}

/* the main number of a row with a thin bar beside it: its share of the biggest row on the page (one hue, the number stays ink) */
.eo-databar-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
}

.eo-databar {
    display: block;
    flex: none;
    width: 72px;
    height: 6px;
    overflow: hidden;
    background: var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-databar > i {
    display: block;
    height: 100%;
    background: var(--eo-brand);
    border-radius: var(--eo-radius-pill);
}

.eo-databar-cell > span:last-child {
    min-width: 32px;
}

/* the page's gap would split the toolbar from the table it heads */
.eo-report > .eo-toolbar + .eo-table-wrap,
.eo-report > .eo-toolbar + .eo-empty {
    margin-top: calc(-1 * var(--eo-space-lg));
}

.eo-range__label--short {
    display: none;
}

/* beside two months the left one has the back arrow; a phone shows one month, which then carries both */
.eo-range__nav--solo {
    visibility: hidden;
}

/* the columns menu fits a short screen and its reset button stays in reach at the bottom */
/* tall enough for a whole column list (about 12 rows) without scrolling, so the last one never hides under the sticky
   reset row; a short window still scrolls it */
.eo-tabletools__menu {
    max-height: min(560px, calc(100vh - 160px));
    padding-bottom: 0;
}

.eo-tabletools__menu [data-table-reset] {
    position: sticky;
    bottom: 0;
    background: var(--eo-surface);
    box-shadow: 0 -1px 0 var(--eo-border);
}

/* x-status-dot with a tone: any status as a dot in its group colour and a word */
.eo-status-dot--success::before { background: var(--eo-success); }
.eo-status-dot--warning::before { background: var(--eo-warning); }
.eo-status-dot--danger::before { background: var(--eo-danger); }
.eo-status-dot--neutral::before { background: var(--eo-border-strong); }
.eo-status-dot--info::before { background: var(--eo-info); }
.eo-status-dot--neutral { color: var(--eo-text-muted); }

/* a grey row: a day without orders, "জানা নেই", a courier with nothing finished yet */
.eo-report__table tbody tr.is-muted td,
.eo-replist__row.is-muted {
    color: var(--eo-text-subtle);
}

.eo-report__table .is-muted .eo-strong,
.eo-replist__row.is-muted .eo-replist__label {
    font-weight: var(--eo-fw-normal);
}

/* a success rate with a thin bar beside it, so the row keeps its height */
.eo-rate {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-rate > span {
    min-width: 46px;
}

.eo-rate__bar {
    display: block;
    width: 64px;
    height: 4px;
    overflow: hidden;
    color: var(--eo-success);
    background: var(--eo-bg-hover);
    border: 0;
    border-radius: var(--eo-radius-pill);
    appearance: none;
}

.eo-rate__bar::-webkit-progress-bar { background: var(--eo-bg-hover); }
.eo-rate__bar::-webkit-progress-value { background: var(--eo-success); border-radius: var(--eo-radius-pill); }
.eo-rate__bar::-moz-progress-bar { background: var(--eo-success); border-radius: var(--eo-radius-pill); }

/* the phone list: the name and its main number on one line, a grey line of a few more under it */
.eo-replist {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-replist__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: var(--eo-space-md);
    row-gap: 2px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    border-bottom: 1px solid var(--eo-bg-hover);
}

.eo-replist__row:last-child {
    border-bottom: 0;
}

.eo-replist__label {
    min-width: 0;
    font-weight: var(--eo-fw-medium);
    overflow-wrap: anywhere;
}

.eo-replist__main {
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.eo-replist__sub {
    grid-column: 1 / -1;
    min-width: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-replist__item + .eo-replist__item::before {
    content: " · ";
}

.eo-replist__row--total {
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* a row that opens a page is one big tap target */
.eo-replist__row {
    position: relative;
}

.eo-replist__hit {
    position: absolute;
    inset: 0;
}

.eo-replist__row.is-linked:active {
    background: var(--eo-bg-hover);
}

/* the main number's name, when the number alone does not say it ("৳ 20,271 বাকি") */
.eo-replist__cap {
    margin-left: var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

/* touch widths (phone and tablet): the two-line list instead of the table, attached to the toolbar the same way; buttons and tabs 40px */
@media (max-width: 1023.98px) {
    .eo-report {
        --eo-control-h-sm: 40px;
    }

    .eo-report .eo-segment__item {
        height: 40px;
    }

    .eo-report .eo-report__table,
    .eo-report__bar > .eo-row {
        display: none;
    }

    /* an empty report still shows its empty row (the phone list has nothing to draw) */
    .eo-report .eo-report__table:has(tr.eo-table-empty) {
        display: block;
    }

    .eo-replist {
        display: block;
    }

    .eo-report > .eo-toolbar ~ .eo-replist {
        margin-top: calc(-1 * var(--eo-space-lg));
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* below 768px the period takes the line under the name, the store pick beside it */
@media (max-width: 767.98px) {
    .eo-report__head .pd-head__actions,
    .eo-report__period {
        flex: 1 1 100%;
        flex-wrap: nowrap;
    }

    .eo-report__head .pd-head__actions .eo-range,
    .eo-report__period .eo-range {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    /* one month with both arrows, 40px days; the chosen dates on their own line above full-width buttons */
    .eo-range__cal .eo-range__month:last-child .eo-range__nav--solo {
        visibility: visible;
    }

    .eo-range__menu .eo-range__grid {
        grid-template-columns: repeat(7, 40px);
    }

    .eo-range__menu .eo-range__day {
        height: 40px;
    }

    .eo-range__menu .eo-range__day > span {
        width: 38px;
        height: 38px;
    }

    .eo-range__menu .eo-range__cal {
        padding: var(--eo-space-sm);
    }

    .eo-range__menu .eo-range__foot {
        flex-wrap: wrap;
    }

    .eo-range__menu .eo-range__chosen {
        flex: 1 0 100%;
    }

    .eo-range__menu .eo-range__foot > .eo-btn {
        flex: 1 1 0;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    /* one row under the name: the period (short label) and a compact store pick */
    .eo-report__head .eo-report__store,
    .eo-report__period .eo-report__store {
        flex: 0 0 112px;
        min-width: 0;
    }

    .eo-report__store .eo-control {
        padding-right: 24px;
        padding-left: var(--eo-space-sm);
        background-position: right 6px center;
        text-overflow: ellipsis;
    }

    /* two numbers a row: a tighter icon gap leaves "৳ 19,18,554" room on one line */
    .eo-report__head .pd-fact {
        column-gap: var(--eo-space-sm);
    }

    /* the views and the filter button (with its count) fit one line: tighter pills */
    .eo-report .eo-segment__item {
        padding: 0 6px;
    }

    .eo-report .eo-range__btn {
        width: 100%;
        min-width: 0;
    }

    .eo-report .eo-range__label {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .eo-report .eo-range__label[data-dash-preset-label] {
        display: none;
    }

    .eo-report .eo-range__label--short {
        display: block;
    }

    .eo-report .eo-filterbar__toggle {
        min-width: var(--eo-control-h-sm);
        padding: 0 var(--eo-space-sm);
        justify-content: center;
    }
}

@media (max-width: 399.98px) {
    /* a small phone: the top bar's + is a little smaller and the title a step down, so a page name like "প্রোডাক্ট রিপোর্ট" fits */
    .eo-topbar .eo-topbar__new {
        width: 36px;
        height: 36px;
    }

    .eo-topbar .eo-topbar__title {
        font-size: var(--eo-fs-md);
    }

}

/* report bar (TimoDesk reports): the period and its dates on the left, a filter or two and export on the right */
.eo-reportbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    margin-bottom: var(--eo-space-md);
}

.eo-reportbar__period,
.eo-reportbar__tools,
.eo-reportbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-reportbar__tools {
    margin-left: auto;
}

.eo-reportbar__period .eo-field,
.eo-reportbar__tools .eo-filterbar,
.eo-reportbar__group .eo-field {
    flex: 0 0 auto;
    margin: 0;
}

.eo-reportbar__tools .eo-filterbar__search {
    flex: 0 1 320px;
    min-width: 300px;
}

.eo-reportbar__dates {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

.eo-filterbar__search {
    flex: 0 1 340px;
    min-width: 180px;
}

/* search stays on the left; the filter button sits at the right end, next to the table tools */
.eo-filterbar__toggle {
    margin-left: auto;
}

.eo-filterbar__toggle.is-applied {
    color: var(--eo-brand);
    border-color: color-mix(in srgb, var(--eo-brand) 40%, var(--eo-border));
    background: var(--eo-brand-10);
}

.eo-filterbar__toggle.is-applied .eo-count {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
}

/* x-side-panel: the right side panel used by the filter bar and the order quick view */
/* on a phone a strip of the dimmed page stays in view on the left, so the panel reads as laid over the page, not a new one */
.eo-sidepanel.offcanvas {
    --bs-offcanvas-width: min(380px, calc(100vw - var(--eo-space-3xl)));
    border-left: 1px solid var(--eo-border);
    box-shadow: var(--eo-shadow-float);
}

.eo-sidepanel--wide.offcanvas {
    --bs-offcanvas-width: min(480px, calc(100vw - var(--eo-space-3xl)));
}

/* the order quick view carries a whole order (customer, fraud check, items, money), so it opens wider than other panels */
.eo-sidepanel--order.offcanvas {
    --bs-offcanvas-width: min(640px, calc(100vw - var(--eo-space-3xl)));
}

.eo-sidepanel__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    height: var(--eo-topbar-h);
    padding: 0 var(--eo-space-sm) 0 var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-sidepanel__title {
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

.eo-sidepanel__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--eo-space-lg);
    overflow-y: auto;
}

/* side panels and floating cards scroll with a thin, soft bar that keeps its own lane (scrollbar-gutter), so the content
   keeps the same right margin whether it scrolls or not and nothing runs up against a thick grey bar */
.eo-sidepanel__body,
.eo-hovercard {
    scrollbar-width: thin;
    scrollbar-color: var(--eo-border-strong) transparent;
    scrollbar-gutter: stable;
}

.eo-sidepanel__body::-webkit-scrollbar,
.eo-hovercard::-webkit-scrollbar {
    width: 8px;
}

.eo-sidepanel__body::-webkit-scrollbar-thumb,
.eo-hovercard::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
    border: 2px solid var(--eo-surface);
    border-radius: 8px;
}

.eo-sidepanel__body::-webkit-scrollbar-track,
.eo-hovercard::-webkit-scrollbar-track {
    background: transparent;
}

/* two long labels on a phone's narrow panel go one under the other instead of running off the screen's edge */
.eo-sidepanel__foot {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-sidepanel__foot > .eo-btn {
    flex: 1 1 0;
}

.eo-filterbar__fields {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
}

.eo-filterbar__fields > .eo-field {
    min-width: 0;
}

/* applied filters as removable chips under the row */
.eo-filterbar__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs);
    flex-basis: 100%;
    padding-top: var(--eo-space-sm);
    border-top: 1px dashed var(--eo-border);
}

.eo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 6px 0 12px;
    font-size: var(--eo-fs-md);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-chip__name {
    color: var(--eo-text-muted);
}

.eo-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    color: var(--eo-text-subtle);
    background: none;
    border: 0;
    border-radius: 50%;
}

.eo-chip__remove:hover {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-chip__remove .svg-icon {
    width: 14px;
    height: 14px;
}

/* the reset sits at the end of the chips as one more pill, same height, border and size, so the row reads as one set */
.eo-filterbar__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 var(--eo-space-md);
    font-size: var(--eo-fs-md);
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
    border: 1px solid var(--eo-danger-25);
    border-radius: var(--eo-radius-pill);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-filterbar__clear:hover {
    color: var(--eo-danger-strong);
    text-decoration: none;
    border-color: var(--eo-danger);
}

.eo-filterbar__clear .svg-icon {
    width: 14px;
    height: 14px;
}

@media (max-width: 767.98px) {
    .eo-filterbar__search {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.eo-tabletools {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin-left: auto;
    /* the column button is always the last thing in its row, after the page's own buttons */
    order: 99;
}

.eo-tabletools__menu {
    width: 260px;
    overflow-y: auto;
}

/* on a phone every list is cards, so columns mean nothing; search stays on one row with the first row of orders in sight */
@media (max-width: 767.98px) {
    .eo-tabletools .eo-tabletools__wide {
        display: none;
    }

    .eo-toolbar:has(> .eo-tabletools):not(:has(> .eo-filterbar)) {
        flex-wrap: nowrap;
    }

    .eo-filterbar__toggle > span:not(.eo-count) {
        display: none;
    }

    /* a column button with nothing left to show leaves no empty slot (or gap) in the toolbar */
    .eo-toolbar .eo-tabletools:not(:has(> :not(.eo-tabletools__wide))),
    .eo-toolbar:has(> .eo-filterbar) > .eo-row:not(:has(> :not(.eo-tabletools))),
    .eo-toolbar > .eo-filterbar > .eo-filterbar__actions:not(:has(> :not(.eo-tabletools))) {
        display: none;
    }
}

.eo-tabletools__label {
    display: none;
}

/* the columns menu is a square icon button, the same size as the filter button next to it */
.eo-tabletools > .dropdown > .eo-btn {
    width: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
}

/* ========================================================================== */
/* WORK TABLES */
/* ========================================================================== */

.eo-table-wrap {
    position: relative;
    overflow-x: auto;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
    overscroll-behavior-x: contain;
}

.eo-table-wrap--auto {
    max-height: none;
}

/* keep: the list keeps every column at every width, one line a cell, and a narrow screen slides it sideways inside its box
   (as the reports), instead of squeezing the words or turning the rows into phone cards */
.eo-table-wrap--keep td {
    white-space: nowrap;
}

/* while a list slides sideways its lead column (the name, the number, the TrxID) stays put on the left and the rest slides under
   it, as the reports' names do; a tick column stays with it. it only acts when the table is wider than its box (a table that
   fits has no sideways scroll). the background sits at no weight, so a row's hover and picked colours still win */
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead, tbody, tfoot) > tr:not(.eo-table-empty) > :is(th, td):first-child,
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead, tbody, tfoot) > tr:not(.eo-table-empty) > .eo-table__check:first-child + :is(th, td) {
    position: sticky;
    left: 0;
    z-index: 1;
}

/* the same weight as the rule above (it comes later, so it wins). the lead column sits exactly where the tick column ends:
   both read --eo-check-w, and the tick cell is held to that width padding included, or the columns sliding under them
   peeked through the gap between the tick box and the name */
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead, tbody, tfoot) > tr:not(.eo-table-empty) > .eo-table__check:first-child + :is(th, td) {
    left: var(--eo-check-w, 40px);
}

.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead, tbody, tfoot) > tr > .eo-table__check:first-child {
    box-sizing: border-box;
    width: var(--eo-check-w, 40px);
    min-width: var(--eo-check-w, 40px);
    max-width: var(--eo-check-w, 40px);
    padding-left: var(--eo-space-md);
}

/* the tick cell already leaves 12px after its box, so the column beside it starts close; with its own full padding the
   gap was nearly twice the one between other columns */
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead, tbody, tfoot) > tr > .eo-table__check:first-child + :is(th, td) {
    padding-left: var(--eo-space-xs);
}

/* the head's own cells are already sticky to the top (z 2): its lead cells lie over both */
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead) > tr:not(.eo-table-empty) > :is(th):first-child,
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table :is(thead) > tr:not(.eo-table-empty) > .eo-table__check:first-child + :is(th) {
    z-index: 3;
}

:where(.eo-table-wrap:not(.eo-rpt-tree) > .eo-table) :where(tbody, tfoot) > tr > :where(td:first-child, .eo-table__check:first-child + td) {
    background-color: var(--eo-surface);
}

/* a picked row's tint (--eo-brand-10) is see-through, so on the fixed cells the columns sliding under them showed through;
   there the same green is mixed solid with white, which looks the same and covers what slides beneath */
.eo-table-wrap:not(.eo-rpt-tree) > .eo-table > tbody > tr.is-selected > :is(td:first-child, .eo-table__check:first-child + td) {
    background: color-mix(in srgb, var(--eo-brand) 10%, var(--eo-surface));
}

/* once slid (dashboard.js marks is-scrolled): the reports' hairline and shade on the lead column's edge */
.eo-table-wrap.is-scrolled:not(.eo-rpt-tree) > .eo-table > :is(thead, tbody, tfoot) > tr:not(.eo-table-empty) > :is(th, td):first-child:not(.eo-table__check),
.eo-table-wrap.is-scrolled:not(.eo-rpt-tree) > .eo-table > :is(thead, tbody, tfoot) > tr:not(.eo-table-empty) > .eo-table__check:first-child + :is(th, td) {
    box-shadow:
        1px 0 0 var(--eo-border),
        2px 0 0 color-mix(in srgb, var(--eo-text) 7%, transparent),
        4px 0 0 color-mix(in srgb, var(--eo-text) 4%, transparent),
        6px 0 0 color-mix(in srgb, var(--eo-text) 2%, transparent);
}

/* below a laptop a list that slides sideways scrolls only sideways inside its box; its height grows with its rows and the
   page itself scrolls down, so a table never holds a second up-down scrollbar of its own (the lead column stays put) */
@media (max-width: 1023.98px) {
    .eo-table-wrap:not(.eo-rpt-tree):not(.is-head-sticky) {
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
    }
}

/* below a laptop the fixed lead column is held to 240px or 55% of the screen, whichever is less, so a long name (a campaign,
   a product) does not take the screen from the columns sliding beside it; its words end in "…" (as the reports' names) */
@media (max-width: 1023.98px) {
    /* not the "nothing found" row: its one cell spans the table, and the cap squeezed its message to a narrow column */
    .eo-table-wrap:not(.eo-rpt-tree) > .eo-table > tbody > tr:not(.eo-table-empty) > :is(td:first-child:not(.eo-table__check), .eo-table__check:first-child + td) > * {
        max-width: min(calc(var(--eo-space-3xl) * 5), 55vw);
    }

    .eo-table-wrap:not(.eo-rpt-tree) > .eo-table > tbody > tr > :is(td:first-child:not(.eo-table__check), .eo-table__check:first-child + td) :is(.eo-cell-main, .eo-cell-sub) {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .eo-table-wrap:not(.eo-rpt-tree) > .eo-table > tbody > tr > :is(td:first-child:not(.eo-table__check), .eo-table__check:first-child + td) .eo-namecell__text {
        min-width: 0;
    }

    /* the empty note is one cell across the whole table, not a lead name: it keeps the table's width (the cap above
       squeezed "এখনো কোনো লেনদেন নেই" into a narrow column) */
    .eo-table-wrap:not(.eo-rpt-tree) > .eo-table > tbody > tr.eo-table-empty > td:first-child:not(.eo-table__check) > * {
        max-width: none;
    }
}

/* below a laptop a list keeps one line a cell and slides sideways instead of squeezing the columns (under 576px most lists
   turn into phone cards, see "every other list reads as cards"); a cell marked eo-cell-wrap may still wrap, and the product
   form's variant grid keeps its own small layout */
@media (max-width: 1023.98px) {
    .eo-table-wrap:not([data-variant-table]) > .eo-table:not([data-variant-table]) td:not(.eo-cell-wrap) {
        white-space: nowrap;
    }
}

.eo-table-wrap.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.eo-table {
    width: 100%;
    margin: 0;
    font-size: var(--eo-fs-base);
    color: var(--eo-text);
    border-collapse: separate;
    border-spacing: 0;
}

.eo-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 40px;
    padding: 0 var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

/* dashboard.js sets the shift while the page scrolls past the table */
.eo-table thead th {
    transform: translateY(var(--eo-head-shift, 0px));
}

/* a table that fits its width: no sideways scroll box, so the browser keeps the head under the top bar with no lag */
.eo-table-wrap.is-head-sticky {
    overflow: visible;
}

/* with nothing clipping it, the last row's square corner cells would sit over the box's (or its card's) rounded corners,
   so those two cells round themselves to match */
.eo-table-wrap.is-head-sticky > .eo-table > :is(tbody, tfoot):last-child > tr:last-child > :first-child {
    border-bottom-left-radius: calc(var(--eo-radius-xl) - 1px);
}

.eo-table-wrap.is-head-sticky > .eo-table > :is(tbody, tfoot):last-child > tr:last-child > :last-child {
    border-bottom-right-radius: calc(var(--eo-radius-xl) - 1px);
}

.eo-table-wrap.is-head-sticky thead th {
    top: var(--eo-table-head-top, 0px);
    transform: none;
}

/* and the head's two end cells round to the box's top corners, unless a toolbar sits on the box (its top is square then) */
.eo-table-wrap.is-head-sticky > .eo-table > thead > tr:first-child > :first-child {
    border-top-left-radius: calc(var(--eo-wrap-top-radius, var(--eo-radius-xl)) - 1px);
}

.eo-table-wrap.is-head-sticky > .eo-table > thead > tr:first-child > :last-child {
    border-top-right-radius: calc(var(--eo-wrap-top-radius, var(--eo-radius-xl)) - 1px);
}

.eo-table-wrap.is-head-pinned thead th {
    box-shadow: 0 1px 0 var(--eo-border), 0 4px 8px -6px rgb(0 0 0 / 0.18);
}

.eo-table td {
    height: var(--eo-row-h);
    padding: var(--eo-space-sm) var(--eo-space-base);
    vertical-align: middle;
    border-bottom: 1px solid var(--eo-bg-hover);
}

.eo-table tbody tr:last-child td {
    border-bottom: 0;
}

.eo-table tbody tr {
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.eo-table tbody tr:hover td {
    background: var(--eo-surface-2);
}

.eo-table tbody tr.is-selected td {
    background: var(--eo-brand-10);
}

.eo-table tbody tr.is-focused td:first-child {
    box-shadow: inset 3px 0 0 var(--eo-brand);
}

/* owner's rule (5 Nov 2026): every column reads from the left, numbers too; only the last column sits on the right */
.eo-table th.eo-num,
.eo-table td.eo-num {
    text-align: left;
}

/* the last column of every table sits on the right edge; the script moves .eo-col-end when a column is hidden */
.eo-table tr > th:last-child:not([colspan]),
.eo-table tr > td:last-child:not([colspan]),
.eo-table th.eo-col-end,
.eo-table td.eo-col-end {
    text-align: right;
}

.eo-table tfoot td {
    position: sticky;
    bottom: 0;
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-bottom: 0;
}

.eo-table--dense td {
    height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
}

/* a 100% wide select in an auto-width cell shrinks to its padding and looks empty */
.eo-table td select.eo-control {
    width: auto;
}

.eo-table__check {
    width: 40px;
    padding-right: 0 !important;
}

/* a row no bulk action can take: the browser greys the box, the cursor says it cannot be ticked */
.eo-table__check input:disabled {
    cursor: not-allowed;
}

.eo-table__check input {
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
    accent-color: var(--eo-brand);
    cursor: pointer;
}

.eo-table__actions {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

/* row buttons all carry the same border; a red one keeps its red text */
.eo-table__actions .eo-btn--danger-ghost {
    background: var(--eo-surface);
    border-color: var(--eo-border);
}

.eo-table .is-col-hidden {
    display: none;
}

/* ==== hidden-columns: generated ==== */
/* a column the person turned off is hidden by CSS from the first paint: the table wrap lists them in data-hide
   (x-table writes it, the column picker updates it). One selector per hideable key in config/tables; a key missing here
   still hides through dashboard.js (.is-col-hidden), only a moment later: add its selector here with the column */
.eo-table-wrap[data-hide~="0_30"] [data-col="0_30"],
.eo-table-wrap[data-hide~="31_60"] [data-col="31_60"],
.eo-table-wrap[data-hide~="61_90"] [data-col="61_90"],
.eo-table-wrap[data-hide~="absent"] [data-col="absent"],
.eo-table-wrap[data-hide~="account"] [data-col="account"],
.eo-table-wrap[data-hide~="added_by"] [data-col="added_by"],
.eo-table-wrap[data-hide~="address"] [data-col="address"],
.eo-table-wrap[data-hide~="affiliate"] [data-col="affiliate"],
.eo-table-wrap[data-hide~="age"] [data-col="age"],
.eo-table-wrap[data-hide~="agent"] [data-col="agent"],
.eo-table-wrap[data-hide~="alert_qty"] [data-col="alert_qty"],
.eo-table-wrap[data-hide~="amount"] [data-col="amount"],
.eo-table-wrap[data-hide~="assigned"] [data-col="assigned"],
.eo-table-wrap[data-hide~="attempts"] [data-col="attempts"],
.eo-table-wrap[data-hide~="audience"] [data-col="audience"],
.eo-table-wrap[data-hide~="available"] [data-col="available"],
.eo-table-wrap[data-hide~="avg_confirm_minutes"] [data-col="avg_confirm_minutes"],
.eo-table-wrap[data-hide~="avg_days"] [data-col="avg_days"],
.eo-table-wrap[data-hide~="balance"] [data-col="balance"],
.eo-table-wrap[data-hide~="base"] [data-col="base"],
.eo-table-wrap[data-hide~="booked"] [data-col="booked"],
.eo-table-wrap[data-hide~="brand"] [data-col="brand"],
.eo-table-wrap[data-hide~="break"] [data-col="break"],
.eo-table-wrap[data-hide~="buyer"] [data-col="buyer"],
.eo-table-wrap[data-hide~="cancelled"] [data-col="cancelled"],
.eo-table-wrap[data-hide~="cash_sales"] [data-col="cash_sales"],
.eo-table-wrap[data-hide~="cashier"] [data-col="cashier"],
.eo-table-wrap[data-hide~="category"] [data-col="category"],
.eo-table-wrap[data-hide~="channels"] [data-col="channels"],
.eo-table-wrap[data-hide~="charge"] [data-col="charge"],
.eo-table-wrap[data-hide~="charges"] [data-col="charges"],
.eo-table-wrap[data-hide~="claimed"] [data-col="claimed"],
.eo-table-wrap[data-hide~="clicks"] [data-col="clicks"],
.eo-table-wrap[data-hide~="closed_at"] [data-col="closed_at"],
.eo-table-wrap[data-hide~="cod"] [data-col="cod"],
.eo-table-wrap[data-hide~="cod_charge"] [data-col="cod_charge"],
.eo-table-wrap[data-hide~="cod_pending"] [data-col="cod_pending"],
.eo-table-wrap[data-hide~="code"] [data-col="code"],
.eo-table-wrap[data-hide~="collected"] [data-col="collected"],
.eo-table-wrap[data-hide~="commission"] [data-col="commission"],
.eo-table-wrap[data-hide~="condition"] [data-col="condition"],
.eo-table-wrap[data-hide~="confirm_rate"] [data-col="confirm_rate"],
.eo-table-wrap[data-hide~="confirmed"] [data-col="confirmed"],
.eo-table-wrap[data-hide~="consignment"] [data-col="consignment"],
.eo-table-wrap[data-hide~="contact"] [data-col="contact"],
.eo-table-wrap[data-hide~="conversion"] [data-col="conversion"],
.eo-table-wrap[data-hide~="cost"] [data-col="cost"],
.eo-table-wrap[data-hide~="cost_per_delivered"] [data-col="cost_per_delivered"],
.eo-table-wrap[data-hide~="cost_per_order"] [data-col="cost_per_order"],
.eo-table-wrap[data-hide~="counted"] [data-col="counted"],
.eo-table-wrap[data-hide~="courier"] [data-col="courier"],
.eo-table-wrap[data-hide~="created"] [data-col="created"],
.eo-table-wrap[data-hide~="credit_limit"] [data-col="credit_limit"],
.eo-table-wrap[data-hide~="credits"] [data-col="credits"],
.eo-table-wrap[data-hide~="custom_label"] [data-col="custom_label"],
.eo-table-wrap[data-hide~="customer"] [data-col="customer"],
.eo-table-wrap[data-hide~="date"] [data-col="date"],
.eo-table-wrap[data-hide~="dates"] [data-col="dates"],
.eo-table-wrap[data-hide~="days"] [data-col="days"],
.eo-table-wrap[data-hide~="days_left"] [data-col="days_left"],
.eo-table-wrap[data-hide~="deadline"] [data-col="deadline"],
.eo-table-wrap[data-hide~="deducted"] [data-col="deducted"],
.eo-table-wrap[data-hide~="deduction"] [data-col="deduction"],
.eo-table-wrap[data-hide~="delivered"] [data-col="delivered"],
.eo-table-wrap[data-hide~="delivered_amount"] [data-col="delivered_amount"],
.eo-table-wrap[data-hide~="delivery_charge"] [data-col="delivery_charge"],
.eo-table-wrap[data-hide~="delivery_rate"] [data-col="delivery_rate"],
.eo-table-wrap[data-hide~="difference"] [data-col="difference"],
.eo-table-wrap[data-hide~="discount"] [data-col="discount"],
.eo-table-wrap[data-hide~="district"] [data-col="district"],
.eo-table-wrap[data-hide~="due"] [data-col="due"],
.eo-table-wrap[data-hide~="earned"] [data-col="earned"],
.eo-table-wrap[data-hide~="error"] [data-col="error"],
.eo-table-wrap[data-hide~="event"] [data-col="event"],
.eo-table-wrap[data-hide~="excluded"] [data-col="excluded"],
.eo-table-wrap[data-hide~="expected"] [data-col="expected"],
.eo-table-wrap[data-hide~="extras"] [data-col="extras"],
.eo-table-wrap[data-hide~="first_in"] [data-col="first_in"],
.eo-table-wrap[data-hide~="flag"] [data-col="flag"],
.eo-table-wrap[data-hide~="follow_up"] [data-col="follow_up"],
.eo-table-wrap[data-hide~="fraud"] [data-col="fraud"],
.eo-table-wrap[data-hide~="google_product_category"] [data-col="google_product_category"],
.eo-table-wrap[data-hide~="gtin"] [data-col="gtin"],
.eo-table-wrap[data-hide~="hits"] [data-col="hits"],
.eo-table-wrap[data-hide~="items"] [data-col="items"],
.eo-table-wrap[data-hide~="last_hit_at"] [data-col="last_hit_at"],
.eo-table-wrap[data-hide~="last_order"] [data-col="last_order"],
.eo-table-wrap[data-hide~="last_out"] [data-col="last_out"],
.eo-table-wrap[data-hide~="late"] [data-col="late"],
.eo-table-wrap[data-hide~="leave"] [data-col="leave"],
.eo-table-wrap[data-hide~="lines"] [data-col="lines"],
.eo-table-wrap[data-hide~="link"] [data-col="link"],
.eo-table-wrap[data-hide~="lost"] [data-col="lost"],
.eo-table-wrap[data-hide~="lost_after"] [data-col="lost_after"],
.eo-table-wrap[data-hide~="message"] [data-col="message"],
.eo-table-wrap[data-hide~="meta_description"] [data-col="meta_description"],
.eo-table-wrap[data-hide~="meta_results"] [data-col="meta_results"],
.eo-table-wrap[data-hide~="meta_title"] [data-col="meta_title"],
.eo-table-wrap[data-hide~="method"] [data-col="method"],
.eo-table-wrap[data-hide~="min_order"] [data-col="min_order"],
.eo-table-wrap[data-hide~="moq"] [data-col="moq"],
.eo-table-wrap[data-hide~="mpn"] [data-col="mpn"],
.eo-table-wrap[data-hide~="noindex"] [data-col="noindex"],
.eo-table-wrap[data-hide~="note"] [data-col="note"],
.eo-table-wrap[data-hide~="offer_product"] [data-col="offer_product"],
.eo-table-wrap[data-hide~="og_image"] [data-col="og_image"],
.eo-table-wrap[data-hide~="oldest"] [data-col="oldest"],
.eo-table-wrap[data-hide~="open_difference"] [data-col="open_difference"],
.eo-table-wrap[data-hide~="opened_at"] [data-col="opened_at"],
.eo-table-wrap[data-hide~="opening_cash"] [data-col="opening_cash"],
.eo-table-wrap[data-hide~="order"] [data-col="order"],
.eo-table-wrap[data-hide~="orders"] [data-col="orders"],
.eo-table-wrap[data-hide~="over_90"] [data-col="over_90"],
.eo-table-wrap[data-hide~="overrides"] [data-col="overrides"],
.eo-table-wrap[data-hide~="packed"] [data-col="packed"],
.eo-table-wrap[data-hide~="paid"] [data-col="paid"],
.eo-table-wrap[data-hide~="paid_at"] [data-col="paid_at"],
.eo-table-wrap[data-hide~="parcels"] [data-col="parcels"],
.eo-table-wrap[data-hide~="partial"] [data-col="partial"],
.eo-table-wrap[data-hide~="parts"] [data-col="parts"],
.eo-table-wrap[data-hide~="pending"] [data-col="pending"],
.eo-table-wrap[data-hide~="pending_payout"] [data-col="pending_payout"],
.eo-table-wrap[data-hide~="period"] [data-col="period"],
.eo-table-wrap[data-hide~="phone"] [data-col="phone"],
.eo-table-wrap[data-hide~="pixel"] [data-col="pixel"],
.eo-table-wrap[data-hide~="present"] [data-col="present"],
.eo-table-wrap[data-hide~="price"] [data-col="price"],
.eo-table-wrap[data-hide~="product"] [data-col="product"],
.eo-table-wrap[data-hide~="profit"] [data-col="profit"],
.eo-table-wrap[data-hide~="progress"] [data-col="progress"],
.eo-table-wrap[data-hide~="pushed"] [data-col="pushed"],
.eo-table-wrap[data-hide~="qty"] [data-col="qty"],
.eo-table-wrap[data-hide~="reason"] [data-col="reason"],
.eo-table-wrap[data-hide~="receipt"] [data-col="receipt"],
.eo-table-wrap[data-hide~="received"] [data-col="received"],
.eo-table-wrap[data-hide~="ref"] [data-col="ref"],
.eo-table-wrap[data-hide~="remote_id"] [data-col="remote_id"],
.eo-table-wrap[data-hide~="remote_stock"] [data-col="remote_stock"],
.eo-table-wrap[data-hide~="reserved"] [data-col="reserved"],
.eo-table-wrap[data-hide~="retail"] [data-col="retail"],
.eo-table-wrap[data-hide~="retailer_id"] [data-col="retailer_id"],
.eo-table-wrap[data-hide~="return_charge"] [data-col="return_charge"],
.eo-table-wrap[data-hide~="return_rate"] [data-col="return_rate"],
.eo-table-wrap[data-hide~="return_risk"] [data-col="return_risk"],
.eo-table-wrap[data-hide~="returned"] [data-col="returned"],
.eo-table-wrap[data-hide~="revenue"] [data-col="revenue"],
.eo-table-wrap[data-hide~="roas"] [data-col="roas"],
.eo-table-wrap[data-hide~="sales"] [data-col="sales"],
.eo-table-wrap[data-hide~="scheduled"] [data-col="scheduled"],
.eo-table-wrap[data-hide~="sd"] [data-col="sd"],
.eo-table-wrap[data-hide~="segment"] [data-col="segment"],
.eo-table-wrap[data-hide~="settled"] [data-col="settled"],
.eo-table-wrap[data-hide~="share"] [data-col="share"],
.eo-table-wrap[data-hide~="shift"] [data-col="shift"],
.eo-table-wrap[data-hide~="shop_name"] [data-col="shop_name"],
.eo-table-wrap[data-hide~="short"] [data-col="short"],
.eo-table-wrap[data-hide~="sku"] [data-col="sku"],
.eo-table-wrap[data-hide~="slug"] [data-col="slug"],
.eo-table-wrap[data-hide~="sms"] [data-col="sms"],
.eo-table-wrap[data-hide~="sold"] [data-col="sold"],
.eo-table-wrap[data-hide~="source"] [data-col="source"],
.eo-table-wrap[data-hide~="spent"] [data-col="spent"],
.eo-table-wrap[data-hide~="stated_net"] [data-col="stated_net"],
.eo-table-wrap[data-hide~="status"] [data-col="status"],
.eo-table-wrap[data-hide~="stock"] [data-col="stock"],
.eo-table-wrap[data-hide~="stock_value"] [data-col="stock_value"],
.eo-table-wrap[data-hide~="store"] [data-col="store"],
.eo-table-wrap[data-hide~="stores"] [data-col="stores"],
.eo-table-wrap[data-hide~="subtotal"] [data-col="subtotal"],
.eo-table-wrap[data-hide~="success"] [data-col="success"],
.eo-table-wrap[data-hide~="success_rate"] [data-col="success_rate"],
.eo-table-wrap[data-hide~="synced"] [data-col="synced"],
.eo-table-wrap[data-hide~="taken"] [data-col="taken"],
.eo-table-wrap[data-hide~="taxable"] [data-col="taxable"],
.eo-table-wrap[data-hide~="terms"] [data-col="terms"],
.eo-table-wrap[data-hide~="time"] [data-col="time"],
.eo-table-wrap[data-hide~="to_path"] [data-col="to_path"],
.eo-table-wrap[data-hide~="total"] [data-col="total"],
.eo-table-wrap[data-hide~="trx"] [data-col="trx"],
.eo-table-wrap[data-hide~="type"] [data-col="type"],
.eo-table-wrap[data-hide~="updated"] [data-col="updated"],
.eo-table-wrap[data-hide~="url"] [data-col="url"],
.eo-table-wrap[data-hide~="used"] [data-col="used"],
.eo-table-wrap[data-hide~="uses"] [data-col="uses"],
.eo-table-wrap[data-hide~="value"] [data-col="value"],
.eo-table-wrap[data-hide~="variants"] [data-col="variants"],
.eo-table-wrap[data-hide~="vat"] [data-col="vat"],
.eo-table-wrap[data-hide~="verified_by"] [data-col="verified_by"],
.eo-table-wrap[data-hide~="views"] [data-col="views"],
.eo-table-wrap[data-hide~="work"] [data-col="work"],
.eo-table-wrap[data-hide~="working"] [data-col="working"] {
    display: none;
}
/* ==== hidden-columns: end ==== */

.eo-col-sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--eo-surface);
}

.eo-table th.eo-col-sticky {
    z-index: 3;
    background: var(--eo-surface-2);
}

/* a table carries many names: one step lighter than a heading keeps the rows calm */
.eo-table .eo-strong {
    font-weight: var(--eo-fw-medium);
}

/* a row's name stays on one line; the table scrolls before a person's name breaks in two */
.eo-table a[data-row-link] {
    white-space: nowrap;
}

.eo-cell-main {
    display: block;
    line-height: 1.4;
    font-weight: var(--eo-fw-medium);
    white-space: nowrap;
}

.eo-cell-sub {
    display: block;
    line-height: 1.4;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* a note under a cell that must be read in full (a combo's pick still due) */
.eo-cell-sub--wrap {
    white-space: normal;
}

.eo-cell-wrap {
    min-width: 220px;
    max-width: 340px;
    white-space: normal;
}

/* x-name-cell: a list row's first column, as in TimoDesk: a soft tile (letter, icon or photo), the bold name, one grey line */
.eo-namecell {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

a.eo-namecell {
    color: inherit;
    text-decoration: none;
}

/* in a table row the tile is as tall as the name and the grey line beside it, so their tops and bottoms meet */
.eo-table .eo-namecell:has(.eo-cell-sub) > .eo-namecell__tile:not(.eo-namecell__tile--lg) {
    width: 40px;
    height: 40px;
}

.eo-namecell__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    overflow: hidden;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    line-height: 1;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-namecell__tile .svg-icon {
    width: 16px;
    height: 16px;
}

.eo-namecell__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eo-namecell__tile:has(img) {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
}

.eo-namecell__tile--lg {
    width: 44px;
    height: 44px;
    font-size: var(--eo-fs-lg);
}

.eo-namecell__tile--lg .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-namecell__tile--round {
    border-radius: 50%;
}

/* a product photo in place of the tile */
.eo-namecell__img {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

/* tones: named for the color; the numbers let a page pick one by position (uid hash % 5) */
.eo-namecell__tile--brand,
.eo-namecell__tile--0 { color: var(--eo-brand); background: var(--eo-brand-10); }
.eo-namecell__tile--accent,
.eo-namecell__tile--1 { color: var(--eo-accent); background: var(--eo-accent-10); }
.eo-namecell__tile--warning,
.eo-namecell__tile--2 { color: var(--eo-warning-strong); background: var(--eo-warning-10); }
.eo-namecell__tile--neutral,
.eo-namecell__tile--3 { color: var(--eo-text-2); background: var(--eo-neutral-10); }
.eo-namecell__tile--info,
.eo-namecell__tile--4 { color: var(--eo-info-strong); background: var(--eo-info-10); }
.eo-namecell__tile--success { color: var(--eo-success-strong); background: var(--eo-success-10); }
.eo-namecell__tile--danger { color: var(--eo-danger); background: var(--eo-danger-10); }
.eo-namecell__tile--muted { color: var(--eo-text-muted); background: var(--eo-bg-hover); }

.eo-namecell__text {
    min-width: 0;
}

.eo-namecell__text .eo-cell-main,
.eo-namecell__text a.eo-cell-main {
    overflow: hidden;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    text-overflow: ellipsis;
}

.eo-namecell__text a.eo-cell-main:hover,
a.eo-namecell:hover .eo-cell-main {
    color: var(--eo-brand);
    text-decoration: none;
}

.eo-namecell__text .eo-cell-sub {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* a small sign beside the name (a lock on a system row) stays quiet */
.eo-namecell__text .eo-cell-main .svg-icon {
    width: 14px;
    height: 14px;
    color: var(--eo-text-muted);
}

/* clip: a long title (a listing, a ticket subject) ends in "..." instead of widening the table */
.eo-namecell--clip .eo-namecell__text {
    max-width: 360px;
}

/* a laptop fits the whole order list without sideways scrolling */
@media (min-width: 768px) {
    .eo-cell-wrap--narrow {
        min-width: 150px;
    }
}

/* the phone card has room for date and time on one line */
@media (max-width: 767.98px) {
    .eo-cell-time {
        display: inline;
        margin-left: var(--eo-space-xs);
    }
}

.eo-clamp {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.eo-cell-wrap .eo-cell-sub {
    white-space: normal;
}

.eo-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
}

.eo-sort:hover {
    color: var(--eo-text);
    text-decoration: none;
}

.eo-sort .svg-icon {
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
}

.eo-sort.is-active,
.eo-sort.is-active .svg-icon {
    color: var(--eo-brand);
}

.eo-table-empty td {
    height: auto;
    padding: 0;
}

.eo-table-empty td:hover,
.eo-table tbody tr.eo-table-empty:hover td {
    background: var(--eo-surface);
}

.eo-inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 0;
    color: inherit;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.eo-inline:focus-visible {
    outline: none;
}

.eo-inline__icon {
    width: 13px !important;
    height: 13px !important;
    color: var(--eo-text-subtle);
    opacity: 0;
    transition: opacity var(--eo-dur) var(--eo-ease);
}

.eo-inline:hover .eo-inline__icon,
.eo-inline:focus-visible .eo-inline__icon {
    opacity: 1;
}

/* overlay: the pencil floats just past the value and takes no room, so two edits side by side (09:00 – 17:00) stay even */
.eo-inline--overlay .eo-inline__icon {
    position: absolute;
    top: 50%;
    left: 100%;
    margin-left: 2px;
    transform: translateY(-50%);
}

/* a status stays a status badge while it can still be changed from the row */
.eo-inline__value.eo-badge {
    max-width: none;
    border-bottom-style: solid;
}

.eo-inline.is-saved .eo-inline__icon {
    display: none;
}

/* a status badge with a menu (order status, rider steps): the chevron shows on hover and stays while the menu is open */
.dropdown > .eo-inline.show .eo-inline__icon {
    opacity: 1;
}

.eo-inline-menu .dropdown-item .eo-inline-menu__check {
    margin-left: auto;
    color: var(--eo-brand);
    visibility: hidden;
}

.eo-inline-menu .dropdown-item.is-current {
    font-weight: var(--eo-fw-semibold);
}

.eo-inline-menu .dropdown-item.is-current .eo-inline-menu__check {
    visibility: visible;
}

.eo-inline__value {
    min-width: 0;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 1px dashed transparent;
    transition: border-color var(--eo-dur) var(--eo-ease), color var(--eo-dur-slow) var(--eo-ease);
}

/* a badge keeps its own border on hover; the chevron is enough of a hint */
.eo-inline:hover .eo-inline__value:not(.eo-badge),
.eo-inline:focus-visible .eo-inline__value:not(.eo-badge) {
    border-bottom-color: var(--eo-border-strong);
}

.eo-inline__value:empty::before {
    content: attr(data-empty);
    color: var(--eo-text-subtle);
}

.eo-inline.is-saved .eo-inline__value {
    color: var(--eo-success-strong);
    border-bottom-color: transparent;
}

/* a line runs under the new value while the check draws */
.eo-inline.is-saved::after {
    content: "";
    position: absolute;
    left: 0;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: var(--eo-success);
    border-radius: var(--eo-radius-sm);
    transform-origin: left;
    animation: eo-saved-line 1.3s var(--eo-ease) both;
}

.eo-inline__saved {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--eo-on-brand);
    background: var(--eo-success);
    border-radius: 50%;
    animation: eo-saved-mark 1.3s var(--eo-ease) both;
}

.eo-inline__saved svg {
    width: 11px;
    height: 11px;
    stroke-width: 3;
}

.eo-inline__saved svg > * {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: eo-saved-draw 300ms 120ms var(--eo-ease) forwards;
}

.eo-inline-form {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 160px;
}

.eo-inline-form__field {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* the field stays the plain text it was, on one line that fills in with the brand color */
.eo-inline-form__field > .eo-control,
.eo-inline-form__field > .eo-control:hover,
.eo-inline-form__field > .eo-control:focus,
.eo-inline-form__field > .eo-select__toggle {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1px 0 2px;
    overflow: hidden;
    color: inherit;
    font: inherit;
    line-height: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--eo-border-strong);
    border-radius: 0;
    box-shadow: none;
    resize: none;
}

/* the select keeps its caret and fills the cell */
.eo-inline-form__field > .eo-select__toggle,
.eo-table td .eo-inline-form__field > .eo-select__toggle {
    display: flex;
    width: 100%;
    max-width: none;
    padding-right: 22px;
    background: var(--eo-caret) no-repeat right 2px center / 16px;
}

.eo-inline-form__field > .eo-select__toggle.is-open {
    border-color: var(--eo-border-strong);
    box-shadow: none;
}

.eo-inline-form__field:has(.is-open)::after {
    transform: scaleX(1);
}

.eo-inline-form__field::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--eo-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--eo-dur-slow) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
    pointer-events: none;
}

.eo-inline-form__field:focus-within::after {
    transform: scaleX(1);
}

.eo-inline-form__actions {
    display: inline-flex;
    flex: none;
    gap: 2px;
    opacity: 0;
    transform: translateX(-4px);
    pointer-events: none;
    transition: opacity var(--eo-dur) var(--eo-ease), transform var(--eo-dur) var(--eo-ease);
}

.eo-inline-form.is-dirty .eo-inline-form__actions,
.eo-inline-form.is-pick .eo-inline-form__actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.eo-inline-form__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--eo-text-muted);
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
    cursor: pointer;
    transition: background-color var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease);
}

.eo-inline-form__action:hover,
.eo-inline-form__action:focus-visible {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
    outline: none;
}

.eo-inline-form__action--save {
    color: var(--eo-brand);
}

.eo-inline-form__action--save:hover,
.eo-inline-form__action--save:focus-visible {
    color: var(--eo-brand-strong);
    background: var(--eo-brand-10);
}

.eo-inline-form__action svg {
    width: 16px;
    height: 16px;
}

.eo-inline-form.is-saving {
    pointer-events: none;
}

.eo-inline-form.is-saving .eo-control {
    color: var(--eo-text-muted);
}

.eo-inline-form.is-saving .eo-inline-form__field::after {
    right: auto;
    width: 30%;
    transform: none;
    animation: eo-inline-sweep 900ms var(--eo-ease) infinite;
}

.eo-inline-form.is-saving .eo-inline-form__action--save {
    animation: eo-pulse 900ms var(--eo-ease) infinite;
}

.eo-inline-form.is-error {
    animation: eo-inline-shake 300ms var(--eo-ease);
}

.eo-inline-form.is-error .eo-inline-form__field::after {
    background: var(--eo-danger);
    transform: scaleX(1);
}

.eo-flash-saved td,
.eo-flash-saved {
    animation: eo-saved 1.2s var(--eo-ease);
}

.eo-bulkbar {
    position: fixed;
    left: 50%;
    bottom: var(--eo-space-xl);
    z-index: var(--eo-z-bulkbar);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--eo-space-sm);
    max-width: calc(100vw - 2 * var(--eo-space-base));
    padding: 6px 6px 6px var(--eo-space-base);
    /* the sidebar's navy, so the bar stands out over a white table instead of melting into it */
    color: var(--eo-on-brand);
    background: var(--eo-side-bg);
    border: 1px solid var(--eo-side-bg);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
    transform: translateX(-50%);
    animation: eo-rise var(--eo-dur-slow) var(--eo-ease);
}

/* the softphone bar (20): the same navy as the bulk bar, bottom right, above toasts' row; shows who is being called,
   how the call stands, the talk timer, mute and hang up */
.eo-callbar {
    position: fixed;
    right: var(--eo-space-xl);
    bottom: var(--eo-space-xl);
    z-index: var(--eo-z-callbar);
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    width: min(460px, calc(100vw - 2 * var(--eo-space-base)));
    padding: var(--eo-space-sm) var(--eo-space-sm) var(--eo-space-sm) var(--eo-space-md);
    color: var(--eo-on-brand);
    background: var(--eo-side-bg);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
    animation: eo-rise var(--eo-dur-slow) var(--eo-ease);
}

.eo-callbar[hidden] {
    display: none;
}

/* with a side panel open (an order's quick view, say) the bar moves to the panel's left, so it covers neither the
   panel's own buttons nor hides under it; a narrower screen has no room beside the panel, so the bar sits over the
   panel just above its foot (one row of buttons: a control's height and the foot's padding), leaving those buttons free */
@media (max-width: 1199.98px) {
    body:has(.eo-sidepanel.offcanvas.show) .eo-callbar {
        bottom: calc(var(--eo-control-h-lg) + 3 * var(--eo-space-md));
    }
}

@media (min-width: 1200px) {
    body:has(.eo-sidepanel.offcanvas.show) .eo-callbar {
        right: calc(min(380px, 100vw - var(--eo-space-3xl)) + var(--eo-space-xl));
    }

    body:has(.eo-sidepanel--wide.offcanvas.show) .eo-callbar {
        right: calc(min(480px, 100vw - var(--eo-space-3xl)) + var(--eo-space-xl));
    }

    body:has(.eo-sidepanel--order.offcanvas.show) .eo-callbar {
        right: calc(min(640px, 100vw - var(--eo-space-3xl)) + var(--eo-space-xl));
    }
}

.eo-callbar__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--eo-on-brand);
    background: var(--eo-success);
    border-radius: 50%;
}

.eo-callbar__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-callbar.is-done .eo-callbar__icon {
    background: rgb(255 255 255 / 0.16);
}

.eo-callbar__text {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-callbar__name,
.eo-callbar__status {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-callbar__name {
    font-weight: var(--eo-fw-medium);
}

.eo-callbar__status {
    color: rgb(255 255 255 / 0.72);
    font-size: var(--eo-fs-sm);
}

.eo-callbar__timer {
    flex: none;
    font-variant-numeric: tabular-nums;
    font-weight: var(--eo-fw-medium);
}

.eo-callbar .eo-btn {
    flex: none;
    color: rgb(255 255 255 / 0.88);
    background: rgb(255 255 255 / 0.08);
    border-color: transparent;
    box-shadow: none;
}

.eo-callbar .eo-btn:hover,
.eo-callbar .eo-btn:focus-visible,
.eo-callbar .eo-btn.is-active {
    color: var(--eo-on-brand);
    background: rgb(255 255 255 / 0.18);
}

.eo-callbar .eo-btn--danger {
    color: var(--eo-on-brand);
    background: var(--eo-danger);
}

.eo-callbar .eo-btn--danger:hover,
.eo-callbar .eo-btn--danger:focus-visible {
    background: var(--eo-danger);
    filter: brightness(0.92);
}

.eo-callbar .eo-btn:disabled {
    opacity: 0.45;
}

@media (max-width: 767.98px) {
    .eo-callbar {
        right: var(--eo-space-base);
        bottom: var(--eo-space-base);
    }

    .eo-callbar .eo-btn--danger > span {
        display: none;
    }
}

/* actions on the navy bar are plain words with an icon, lit on hover, not a row of boxes; a danger action keeps a red word */
.eo-bulkbar .eo-btn,
.eo-bulkbar .eo-btn:where(:not(.eo-btn--primary)) {
    color: rgb(255 255 255 / 0.88);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.eo-bulkbar .eo-btn:hover,
.eo-bulkbar .eo-btn:focus-visible {
    color: var(--eo-on-brand);
    background: rgb(255 255 255 / 0.1);
    border-color: transparent;
}

/* on the dark bar an icon takes its button's light colour; the plain and ghost buttons' own grey (and their dark hover) made the × vanish */
.eo-bulkbar .eo-btn .svg-icon {
    color: currentColor;
}

/* how many ticked rows a button acts on (রাইডারকে দিন 3): Noto Sans Bengali's tall top lifts a digit above the pill's
   middle, so its box sits a little lower */
.eo-bulkbar .eo-btn .eo-count {
    padding-top: 3px;
    box-sizing: border-box;
}

.eo-bulkbar .eo-btn--danger,
.eo-bulkbar .eo-btn--danger-ghost {
    color: var(--eo-danger-on-dark);
}

.eo-bulkbar .eo-btn--primary {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

/* closing the bar is a small × at the far end, after a thin line */
.eo-bulkbar > [data-bulk-clear] {
    position: relative;
    justify-content: center;
    width: 32px;
    margin-left: var(--eo-space-xs);
    padding: 0;
    color: rgb(255 255 255 / 0.8);
    border-radius: var(--eo-radius-sm);
}

/* its words are hidden, so the × sits in the true middle: no lift to line up with Bangla text */
.eo-bulkbar > [data-bulk-clear] > .svg-icon {
    width: 16px;
    height: 16px;
    transform: none;
}

.eo-bulkbar > [data-bulk-clear]::before {
    content: "";
    position: absolute;
    left: calc(var(--eo-space-xs) * -1 - 1px);
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgb(255 255 255 / 0.18);
}

.eo-bulkbar > [data-bulk-clear] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.eo-bulkbar[hidden] {
    display: none;
}

/* while the bar shows (dashboard.js EO.bulk.sync), the page's end clears it: the bar (about 50px), its 24px lift and a small gap.
   this replaces the page's own bottom padding rather than adding to it, which left a wide empty strip */
body.has-bulkbar .eo-content {
    padding-bottom: calc(var(--eo-control-h) + var(--eo-space-base) + var(--eo-space-xl) + var(--eo-space-sm));
}

/* a phone's bar is taller (bigger buttons, about 58px) and sits only 8px up */
@media (max-width: 767.98px) {
    body.has-bulkbar .eo-content {
        padding-bottom: calc(var(--eo-control-h) + var(--eo-space-base) * 2 + var(--eo-space-sm));
    }
}

.eo-bulkbar__count {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-right: var(--eo-space-sm);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
    border-right: 1px solid rgb(255 255 255 / 0.18);
}

/* One row always: when buttons don't fit, the actions scroll sideways instead of wrapping */
.eo-bulkbar__actions {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: var(--eo-space-xs);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.eo-bulkbar__actions > .eo-btn,
.eo-bulkbar > [data-bulk-clear] {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 767.98px) {

    .eo-bulkbar {
        left: var(--eo-space-sm);
        right: var(--eo-space-sm);
        bottom: var(--eo-space-sm);
        max-width: none;
        transform: none;
    }
}

/* a phone's bar is too narrow for the count and every action in one row: the actions slid out of sight ("আরও" and cancel
   could not be found), so the count and × keep the top line and the actions get the full width under them, wrapping */
@media (max-width: 575.98px) {
    .eo-bulkbar {
        flex-wrap: wrap;
        row-gap: var(--eo-space-xs);
        padding-top: var(--eo-space-xs);
    }

    .eo-bulkbar__count {
        flex: 1 1 auto;
        border-right: 0;
    }

    .eo-bulkbar__actions {
        order: 3;
        flex: 1 1 100%;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .eo-bulkbar__actions > .eo-btn,
    .eo-bulkbar__more > .eo-btn {
        padding: 0 var(--eo-space-sm);
    }

    /* the wrapped bar is 2 to 4 lines tall: dashboard.js EO.bulk.measure sets its real height, plus its 8px lift and a gap.
       the fallback is room for 4 lines */
    body.has-bulkbar .eo-content {
        padding-bottom: calc(var(--eo-bulkbar-h, calc(var(--eo-control-h) * 4 + var(--eo-space-xs) * 4)) + var(--eo-space-xl));
    }
}

/* ========================================================================== */
/* PAGINATION */
/* ========================================================================== */

.eo-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    margin-top: var(--eo-space-md);
}

.eo-pager__info {
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

.eo-pager__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
    padding: 0;
    margin: 0;
    list-style: none;
}

.eo-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-pager__link:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-bg-hover);
}

.eo-pager__link.is-active {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-pager__link.is-disabled {
    color: var(--eo-text-subtle);
    pointer-events: none;
    background: var(--eo-bg);
}

.eo-pager__gap {
    border-color: transparent;
    background: transparent;
}

/* a pager under a table that runs to a panel's edges keeps the panel's side padding */
.eo-card > .eo-pager {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* a pager right under a table is that table's footer (owner, 17 Nov 2026): one card, a hairline between the rows and
   the pages, the page's own gap taken back so nothing parts them. The table's sideways scrollbar (.eo-rpt-hbar, added
   by dashboard.js, mostly hidden) may sit between the two */
.eo-table-wrap:has(+ .eo-pager),
.eo-table-wrap:has(+ .eo-rpt-hbar + .eo-pager) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.eo-table-wrap + .eo-pager,
.eo-table-wrap + .eo-rpt-hbar + .eo-pager {
    margin-top: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-top: 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-content > .eo-table-wrap + .eo-pager,
.eo-content > .eo-table-wrap + .eo-rpt-hbar[hidden] + .eo-pager,
.eo-setpage > .eo-table-wrap + .eo-pager,
.eo-setpage > .eo-table-wrap + .eo-rpt-hbar[hidden] + .eo-pager {
    margin-top: calc(-1 * var(--eo-space-lg));
}

.eo-stack > .eo-table-wrap + .eo-pager,
.eo-stack > .eo-table-wrap + .eo-rpt-hbar[hidden] + .eo-pager {
    margin-top: calc(-1 * var(--eo-space-base));
}

@media (max-width: 575.98px) {
    .eo-table-wrap + .eo-pager,
    .eo-table-wrap + .eo-rpt-hbar + .eo-pager {
        padding: var(--eo-space-sm) var(--eo-space-md);
    }
}

@media (max-width: 575.98px) {
    .eo-pager__num { display: none; }
    .eo-pager__link { min-width: var(--eo-control-h-lg); height: var(--eo-control-h-lg); }
}

/* ========================================================================== */
/* TABS AND SEGMENTS */
/* ========================================================================== */

.eo-tabs {
    display: flex;
    gap: var(--eo-space-base);
    margin-bottom: var(--eo-space-md);
    overflow-x: auto;
    border-bottom: 1px solid var(--eo-border);
    scrollbar-width: none;
}

.eo-tabs::-webkit-scrollbar {
    display: none;
}

.eo-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 2px;
    margin-bottom: -1px;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    white-space: nowrap;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
}

.eo-tab:hover {
    color: var(--eo-text);
    text-decoration: none;
}

.eo-tab.is-active,
.eo-tab.active {
    color: var(--eo-text);
    border-bottom-color: var(--eo-brand);
}

.eo-tab .eo-count {
    min-width: 20px;
    padding: 0 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    line-height: 18px;
    text-align: center;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

/* the page's main tabs, in a full-width strip joined to the top bar; the first tab's text lines up with the page content */
.eo-pagebar {
    position: sticky;
    top: var(--eo-topbar-h);
    z-index: calc(var(--eo-z-topbar) - 1);
    padding: 0 calc(var(--eo-space-xl) - var(--eo-space-md));
    overflow-x: auto;
    background: var(--eo-surface);
    border-bottom: 1px solid var(--eo-border);
}

@media (max-width: 767.98px) {
    .eo-pagebar {
        padding: 0;
    }
}

.eo-pagebar .eo-tabs {
    gap: var(--eo-space-2xs);
    margin: 0;
    border-bottom: 0;
}

.eo-pagebar .eo-tab {
    position: relative;
    height: 44px;
    padding: 0 var(--eo-space-md);
    margin: 0;
    border-bottom: 0;
    transition: color var(--eo-dur) var(--eo-ease);
}

.eo-pagebar .eo-tab::after {
    position: absolute;
    right: var(--eo-space-md);
    bottom: 0;
    left: var(--eo-space-md);
    height: 2px;
    content: "";
    background: transparent;
    border-radius: 2px 2px 0 0;
    transition: background var(--eo-dur) var(--eo-ease);
}

.eo-pagebar .eo-tab:hover::after {
    background: var(--eo-border-strong);
}

.eo-pagebar .eo-tab.is-active::after {
    background: var(--eo-brand);
}

.eo-tab.is-active .eo-count,
.eo-tab.active .eo-count {
    color: var(--eo-text);
}

@media (max-width: 767.98px) {
    .eo-pagebar .eo-tab {
        height: 46px;
    }
}

/* x-segment: a small pill row (TimoDesk) for a list's status choice; items are links or buttons */
.eo-segment {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 3px;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

/* in a column (the page body, a stack) the pill row keeps its own width instead of stretching across */
.eo-content > .eo-segment,
.eo-stack > .eo-segment,
.flex-column > .eo-segment {
    align-self: flex-start;
}

.eo-segment__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: calc(var(--eo-control-h-sm) - 4px);
    padding: 0 12px;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
    cursor: pointer;
}

.eo-segment__item:hover {
    color: var(--eo-text);
    text-decoration: none;
}

.eo-segment__item.is-active,
.eo-segment__item.active {
    color: var(--eo-text);
    background: var(--eo-surface);
    box-shadow: 0 0 0 1px var(--eo-border);
}

.eo-segment__item .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-segment__item .eo-count {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
}

.eo-segment__item.is-active .eo-count {
    color: var(--eo-text-muted);
}

/* the dashboard range: one bordered field with the chosen period, like TimoDesk's date filter */
.eo-range__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h);
    min-width: 150px;
    padding: 0 var(--eo-space-sm) 0 var(--eo-space-md);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease);
}

.eo-range__btn:hover,
.eo-range__btn[aria-expanded="true"] {
    border-color: var(--eo-border-strong);
}

.eo-range__btn .eo-range__icon {
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

.eo-range__label {
    flex: 1 1 auto;
    text-align: left;
    white-space: nowrap;
}

.eo-range__btn .eo-range__caret {
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-range__btn[aria-expanded="true"] .eo-range__caret {
    transform: rotate(180deg);
}

/* the picker: quick periods on the left; with own dates two months open beside them (TimoDesk) */
.eo-range__menu {
    min-width: 0;
    margin-top: 6px !important;
    padding: 0;
    overflow: hidden;
}

.eo-range__body {
    display: flex;
}

.eo-range__list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 160px;
    padding: var(--eo-space-xs);
}

.eo-range__menu.is-custom .eo-range__list {
    border-right: 1px solid var(--eo-border);
}

.eo-range__item {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    font-size: var(--eo-fs-md);
    color: var(--eo-text);
    text-align: left;
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
    cursor: pointer;
}

.eo-range__item:hover {
    background: var(--eo-bg-hover);
}

.eo-range__item.is-active {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-range__cal {
    display: flex;
    gap: var(--eo-space-lg);
    padding: var(--eo-space-md) var(--eo-space-base);
}

.eo-range__month {
    width: 238px;
}

.eo-range__month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    margin-bottom: var(--eo-space-xs);
    font-size: var(--eo-fs-md);
}

.eo-range__month-head > span {
    width: 28px;
}

.eo-range__nav {
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    color: var(--eo-text-muted);
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
}

.eo-range__nav:hover:not(:disabled) {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-range__nav:disabled {
    opacity: 0.3;
}

.eo-range__grid {
    display: grid;
    grid-template-columns: repeat(7, 34px);
    row-gap: 4px;
}

.eo-range__wd {
    padding: 4px 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
    text-align: center;
}

/* the cell carries the band edge to edge; the circle inside carries the number */
.eo-range__day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0;
    color: var(--eo-text);
    background: none;
    border: 0;
}

.eo-range__day > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: var(--eo-fs-md);
    border-radius: 50%;
    transition: background var(--eo-dur) var(--eo-ease);
}

.eo-range__day:hover:not(:disabled):not(.is-edge) > span {
    background: var(--eo-bg-hover);
}

.eo-range__day:disabled {
    color: var(--eo-text-subtle);
    opacity: 0.45;
    cursor: default;
}

.eo-range__day.is-today > span {
    font-weight: var(--eo-fw-semibold);
    box-shadow: inset 0 0 0 1px var(--eo-border-strong);
}

.eo-range__day.is-between {
    background: var(--eo-brand-10);
}

.eo-range__day.is-between.is-row-start {
    border-radius: 16px 0 0 16px;
}

.eo-range__day.is-between.is-row-end {
    border-radius: 0 16px 16px 0;
}

.eo-range__day.is-between.is-row-start.is-row-end {
    border-radius: 16px;
}

.eo-range__day.is-between:hover:not(:disabled) > span {
    background: transparent;
}

/* the first and last day: half a band towards the inside, unless the week ends right there */
.eo-range__day.is-from:not(.is-row-end) {
    background: linear-gradient(to right, transparent 50%, var(--eo-brand-10) 50%);
}

.eo-range__day.is-to:not(.is-row-start) {
    background: linear-gradient(to left, transparent 50%, var(--eo-brand-10) 50%);
}

.eo-range__day.is-edge > span {
    font-weight: var(--eo-fw-semibold);
    color: #fff;
    background: var(--eo-brand);
    box-shadow: none;
}

/* while only the start is chosen, the hovered end is a lighter preview */
.eo-range__day.is-preview.is-to > span {
    color: var(--eo-brand);
    background: var(--eo-surface);
    box-shadow: inset 0 0 0 1.5px var(--eo-brand);
}

.eo-range__month {
    width: auto;
}

.eo-range__foot {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

.eo-range__chosen {
    flex: 1 1 auto;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* a phone has room for one month: the list goes on top, the newer month stays */
@media (max-width: 767.98px) {
    .eo-range__body {
        flex-direction: column;
    }

    .eo-range__menu.is-custom .eo-range__list {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid var(--eo-border);
    }

    .eo-range__cal .eo-range__month:first-child {
        display: none;
    }

    .eo-range__cal .eo-range__month:last-child .eo-range__month-head > span:first-child {
        visibility: hidden;
    }
}

/* a period picker inside a filter panel: its button is full width like the panel's other fields; its menu is the same one the
   reports open (quick periods and two months), floating over the page beside the panel (fixed, so the panel's scroll does
   not cut it) */
.eo-filterbar__fields .eo-range {
    display: block;
    width: 100%;
}

.eo-filterbar__fields .eo-range__btn {
    width: 100%;
    min-width: 0;
}

/* pill checkboxes: a row of small choices that can each be on (weekdays, sizes); the checkbox hides behind its pill */
.eo-pillpick {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
}

.eo-pillpick__item {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.eo-pillpick__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-pillpick__item span {
    display: inline-flex;
    align-items: center;
    height: var(--eo-control-h-sm);
    padding: 0 var(--eo-space-md);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-2);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-pillpick__item input:checked + span {
    color: var(--eo-brand);
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand-20);
}

.eo-pillpick__item input:focus-visible + span {
    outline: 2px solid var(--eo-brand);
    outline-offset: 2px;
}

/* the "আরও" menu's rows: the label left, its count right */
.eo-segment__menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

/* ========================================================================== */
/* DROPDOWNS AND POPOVERS */
/* ========================================================================== */

.dropdown-menu {
    /* above the sticky page tabs and top bar */
    --bs-dropdown-zindex: var(--eo-z-popover);
    --bs-dropdown-min-width: 190px;
    --bs-dropdown-padding-x: var(--eo-space-xs);
    --bs-dropdown-padding-y: var(--eo-space-xs);
    --bs-dropdown-font-size: var(--eo-fs-base);
    --bs-dropdown-color: var(--eo-text);
    --bs-dropdown-bg: var(--eo-surface);
    --bs-dropdown-border-color: var(--eo-border);
    --bs-dropdown-border-radius: var(--eo-radius-lg);
    --bs-dropdown-box-shadow: var(--eo-shadow-float);
    --bs-dropdown-link-color: var(--eo-text);
    --bs-dropdown-link-hover-color: var(--eo-text);
    --bs-dropdown-link-hover-bg: var(--eo-bg-hover);
    --bs-dropdown-link-active-color: var(--eo-text);
    --bs-dropdown-link-active-bg: var(--eo-bg-hover);
    --bs-dropdown-item-padding-x: var(--eo-space-sm);
    --bs-dropdown-item-padding-y: 6px;
    --bs-dropdown-header-color: var(--eo-text-subtle);
    --bs-dropdown-divider-bg: var(--eo-border);
    box-shadow: var(--bs-dropdown-box-shadow);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    font-family: inherit;
    border-radius: var(--eo-radius-sm);
}

.dropdown-item .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

.dropdown-item.is-danger,
.dropdown-item.is-danger .svg-icon,
.dropdown-item.eo-tone-danger,
.dropdown-item.eo-tone-danger:hover,
.dropdown-item.eo-tone-danger .svg-icon {
    color: var(--eo-danger-strong);
}

.dropdown-item.is-danger:hover,
.dropdown-item.eo-tone-danger:hover {
    background: var(--eo-danger-10);
}

.dropdown-header {
    font-size: var(--eo-fs-sm);
}

.eo-menu-check {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: 5px var(--eo-space-md);
    margin: 0;
    cursor: pointer;
}

.eo-menu-check:hover {
    background: var(--eo-bg-hover);
}

.eo-menu-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--eo-brand);
}

.eo-menu-check.is-locked {
    color: var(--eo-text-subtle);
    cursor: default;
}

.popover {
    --bs-popover-max-width: 300px;
    --bs-popover-font-size: var(--eo-fs-md);
    --bs-popover-bg: var(--eo-surface);
    --bs-popover-border-color: var(--eo-border);
    --bs-popover-border-radius: var(--eo-radius-lg);
    --bs-popover-box-shadow: var(--eo-shadow-float);
    --bs-popover-header-bg: var(--eo-surface-2);
    --bs-popover-header-color: var(--eo-text);
    --bs-popover-header-font-size: var(--eo-fs-base);
    --bs-popover-body-color: var(--eo-text);
    font-family: var(--eo-font);
    box-shadow: var(--bs-popover-box-shadow);
}

/* [data-tip]: a small dark box under an icon button with its name */
.eo-tip {
    position: fixed;
    z-index: 1090;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 5px 9px;
    white-space: nowrap;
    font-family: var(--eo-font);
    color: #fff;
    background: var(--eo-text);
    border-radius: var(--eo-radius);
    box-shadow: var(--eo-shadow-float);
    pointer-events: none;
}

.eo-tip.is-on {
    display: flex;
}

/* the little arrow points at the button's middle */
.eo-tip::before {
    content: "";
    position: absolute;
    top: -4px;
    left: calc(var(--eo-tip-arrow, 50%) - 4px);
    width: 8px;
    height: 8px;
    background: inherit;
    transform: rotate(45deg);
}

.eo-tip__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
}

.eo-tip__key {
    padding: 0 5px;
    font-family: inherit;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: var(--eo-radius-sm);
}

.eo-tip__hint {
    font-size: var(--eo-fs-xs);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.tooltip {
    --bs-tooltip-font-size: var(--eo-fs-sm);
    --bs-tooltip-bg: var(--eo-text);
    --bs-tooltip-border-radius: var(--eo-radius-sm);
    font-family: var(--eo-font);
}

/* ========================================================================== */
/* MODALS */
/* ========================================================================== */

.modal {
    /* one value only: Bootstrap puts this inside a calc() for the footer, and "16px 20px" there gives no padding at all */
    --bs-modal-padding: var(--eo-space-lg);
    --bs-modal-bg: var(--eo-surface);
    --bs-modal-border-color: var(--eo-border);
    --bs-modal-border-radius: var(--eo-radius-xl);
    --bs-modal-inner-border-radius: var(--eo-radius-xl);
    --bs-modal-box-shadow: var(--eo-shadow-float);
    --bs-modal-header-padding: var(--eo-space-md) var(--eo-space-lg);
    --bs-modal-header-border-color: var(--eo-border);
    --bs-modal-footer-border-color: var(--eo-border);
    --bs-modal-footer-gap: var(--eo-space-sm);
    --bs-modal-title-line-height: var(--eo-lh-tight);
    --bs-backdrop-bg: #000000;
    --bs-backdrop-opacity: 0.5;
}

.modal-content {
    box-shadow: var(--bs-modal-box-shadow);
}

/* a popup pops in where it stands (a quick scale and fade) instead of Bootstrap's slow slide down from the top */
.modal.fade .modal-dialog {
    opacity: 0;
    transform: scale(0.96);
    transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.12s ease-out;
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: none;
}

.modal-backdrop.fade {
    transition: opacity 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog,
    .modal-backdrop.fade {
        transition: none;
    }
}

/* x-modal expandable: one icon at a time (grow / shrink); full screen drops the round corners and lets a text editor
   take the room instead of stopping at half the screen */
.eo-modal-expand.is-active .eo-modal-expand__on,
.eo-modal-expand:not(.is-active) .eo-modal-expand__off {
    display: none;
}

.modal-fullscreen .eo-editor__area {
    min-height: 50vh;
    max-height: none;
}

/* a popup's title is a label, not a page heading: one size for all of them */
.modal-title {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
}

.modal-heading {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.modal-heading .modal-title {
    flex-shrink: 0;
}

/* what the popup is about (a variation), small and grey after the title on the same line: every heading is one line */
.modal-subtitle::before {
    content: "·";
    margin-right: var(--eo-space-sm);
}

.modal-subtitle {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-subtitle:empty {
    display: none;
}

/* x-modal icon: a tinted tile before the heading, and the subtitle drops under the title instead of after it */
.modal-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: var(--eo-space-md);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-lg);
}

.modal-icon .svg-icon {
    width: 18px;
    height: 18px;
}

.modal-heading--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.modal-heading--stack .modal-subtitle::before {
    content: none;
}

.modal-heading--stack .modal-subtitle {
    max-width: 100%;
}

.modal-header .eo-btn--icon {
    flex-shrink: 0;
    margin: -6px -8px -6px auto;
}

/* full screen sits just left of close: only the last button reaches into the corner, so the two never overlap */
.modal-header .eo-modal-expand {
    margin-right: var(--eo-space-2xs);
}

.modal-header .eo-modal-expand + .eo-btn--icon {
    margin-left: 0;
}

/* fields placed straight in a modal have no margin of their own, so the body spaces them like a stack */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding: var(--eo-space-lg);
}

.modal-body > * {
    margin-top: 0;
    margin-bottom: 0;
}

/* Bootstrap spaces footer buttons with margins, which the rule below removes; the gap replaces them */
.modal-footer {
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-bottom-right-radius: var(--eo-radius-xl);
    border-bottom-left-radius: var(--eo-radius-xl);
}

.modal-footer > * {
    margin: 0;
}

/* every popup: the buttons together at the right, "ক্যানসেল" just left of the action button */
.modal-footer {
    justify-content: flex-end;
}

.modal-footer > .eo-btn--cancel,
.modal-footer > [data-bs-dismiss="modal"]:not(.eo-btn--primary):not(.eo-btn--danger) {
    order: -1;
}

/* the confirm window can open over another modal (add expense asks "cash goes below zero, go on?"): it and its backdrop sit on top;
   so does a small window opened from inside another (a new category from the product wizard) */
.modal.eo-confirm,
.modal.eo-modal-over {
    z-index: 1070;
}

.modal-backdrop.show ~ .modal-backdrop.show {
    z-index: 1065;
}

.eo-confirm .modal-dialog {
    --bs-modal-width: 400px;
}

.eo-confirm .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--eo-space-2xl) var(--eo-space-lg) var(--eo-space-lg);
    text-align: center;
}

/* the sign: filled in the action's colour with a white mark, in a soft ring of the same colour */
.eo-confirm__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--eo-space-lg);
    color: var(--eo-surface);
    border-radius: 50%;
}

.eo-confirm__icon .svg-icon {
    width: 26px;
    height: 26px;
    stroke-width: 2.25;
}

.eo-confirm__icon--danger { background: var(--eo-danger); box-shadow: 0 0 0 8px var(--eo-danger-10); }
.eo-confirm__icon--warning { background: var(--eo-warning); box-shadow: 0 0 0 8px var(--eo-warning-10); }
.eo-confirm__icon--brand { background: var(--eo-brand); box-shadow: 0 0 0 8px var(--eo-brand-10); }

.eo-confirm__icon > span {
    display: inline-flex;
}

.eo-confirm__icon > span[hidden] {
    display: none;
}

.eo-confirm__title {
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.45;
    color: var(--eo-text);
    text-wrap: balance;
}

.eo-confirm__text {
    max-width: 320px;
    margin: var(--eo-space-xs) 0 0;
    font-size: var(--eo-fs-md);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text-muted);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.eo-confirm__text[hidden],
.eo-confirm__text:empty {
    display: none;
}

/* a question that takes a reason (x-modal confirm): the fields under the centred question, full width, read left to right */
.eo-confirm .eo-confirm__fields {
    align-self: stretch;
    margin-top: var(--eo-space-lg);
    padding: 0;
    text-align: left;
}

/* ক্যানসেল on the left, the action on the right, the same width each */
.eo-confirm__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-sm);
    width: 100%;
    margin-top: var(--eo-space-xl);
}

.eo-confirm__actions .eo-btn {
    width: 100%;
    height: var(--eo-control-h-lg);
}

@media (max-width: 575.98px) {
    .modal-footer .eo-btn { flex: 1 1 auto; }
}

/* ========================================================================== */
/* TOASTS */
/* ========================================================================== */

.eo-toasts {
    position: fixed;
    top: calc(var(--eo-topbar-h) + var(--eo-space-sm));
    right: var(--eo-space-base);
    z-index: var(--eo-z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    width: 360px;
    max-width: calc(100vw - 2 * var(--eo-space-base));
    pointer-events: none;
}

/* sign in, sign up and onboarding have no top bar, so the toast goes to the very corner */
body:not(:has(.eo-topbar)) .eo-toasts {
    top: var(--eo-space-base);
}

/* the toast (owner, 17 Nov 2026): the bulk bar's navy, so every "it happened" in the app speaks one voice. A small badge in
   the status colour holds the icon, the message reads in light text, and a hairline at the foot shrinks over the toast's
   life in the same colour, so how long it stays is seen, not guessed; the pointer on it stops the line and the clock */
.eo-toast {
    --eo-toast-tone: var(--eo-success);
    --eo-toast-life: 3500ms;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    /* a long word or address in a message wraps inside the toast, never past a phone's edge */
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    padding: 12px 10px 14px 12px;
    color: var(--eo-side-text-strong);
    background: var(--eo-side-bg);
    border: 1px solid color-mix(in srgb, var(--eo-side-text-strong) 8%, transparent);
    border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.45), 0 2px 6px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    animation: eo-toast-in 360ms cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.eo-toast--error { --eo-toast-tone: var(--eo-danger); --eo-toast-life: 7000ms; }
.eo-toast--warning { --eo-toast-tone: var(--eo-warning); --eo-toast-life: 6000ms; }
.eo-toast--info { --eo-toast-tone: var(--eo-info); --eo-toast-life: 4500ms; }

.eo-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 220ms var(--eo-ease), transform 220ms var(--eo-ease);
}

/* the badge: the status colour as a soft square with a glow of its own, the icon in full colour inside */
.eo-toast__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--eo-toast-tone);
    background: color-mix(in srgb, var(--eo-toast-tone) 16%, transparent);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eo-toast-tone) 28%, transparent);
}

.eo-toast__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-toast__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--eo-fs-base);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* the close: a small round button made for the navy, never the light page's grey square or dark icon */
.eo-toast .eo-toast__close {
    flex: none;
    align-self: flex-start;
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    color: var(--eo-side-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}

.eo-toast .eo-toast__close .svg-icon {
    width: 15px;
    height: 15px;
    color: inherit;
}

.eo-toast .eo-toast__close:hover,
.eo-toast .eo-toast__close:focus-visible {
    color: var(--eo-side-text-strong);
    background: color-mix(in srgb, var(--eo-side-text-strong) 12%, transparent);
}

/* the life line: full width at the start, gone when the toast leaves; it waits while the pointer is on the toast */
.eo-toast__life {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--eo-toast-tone);
    transform-origin: left center;
    animation: eo-toast-life var(--eo-toast-life) linear forwards;
}

.eo-toast:hover .eo-toast__life {
    animation-play-state: paused;
}

@keyframes eo-toast-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes eo-toast-life {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .eo-toast { animation: none; }
    .eo-toast__life { display: none; }
}

@media (max-width: 575.98px) {
    .eo-toasts {
        top: auto;
        left: var(--eo-space-sm);
        right: var(--eo-space-sm);
        bottom: var(--eo-space-sm);
        width: auto;
        max-width: none;
    }
}

/* ========================================================================== */
/* EMPTY STATES AND LOADING */
/* ========================================================================== */

/* one empty state everywhere (owner, 16 Nov 2026): a soft round brand-tinted icon, one title line, one help line, no button
   (the page's main button stays in its toolbar). Wide enough that the help line stays one line on a computer */
.eo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
    padding: var(--eo-space-xl) var(--eo-space-base);
    margin: 0 auto;
    text-align: center;
}

/* straight on the page (a card list with no table) it is a full-width white panel like an empty table, and joins a
   toolbar above it; the inside stays exactly the same */
.eo-content > .eo-empty,
.eo-content > .eo-stack > .eo-empty,
.eo-setpage > .eo-empty,
.eo-setpage > .eo-stack > .eo-empty,
.eo-grid--3-1 > .eo-stack > .eo-empty,
.eo-desk__panel > .eo-empty,
.eo-desk__panel > [data-desk-body] > .eo-empty,
.eo-report > .eo-empty,
.eo-content > div:not([class]) > .eo-empty,
.eo-setpage > div:not([class]) > .eo-empty {
    max-width: none;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

/* the confirmation desk with nothing to call: the panel is the card, so its empty message drops its own frame */
.eo-desk__panel--alone > .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.eo-desk__panel--alone > [data-desk-body] > .eo-empty {
    padding: var(--eo-space-2xl, 48px) var(--eo-space-base);
    background: transparent;
    border: 0;
    border-radius: 0;
}

.eo-empty__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--eo-space-md);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border: 0;
    border-radius: 50%;
}

.eo-empty__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-empty__title {
    margin-bottom: var(--eo-space-xs);
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    line-height: var(--eo-lh-tight);
    color: var(--eo-text);
    text-wrap: balance;
}

.eo-empty__text {
    max-width: 100%;
    margin-bottom: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-normal);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text-muted);
    text-wrap: balance;
}

.eo-empty__title:last-child {
    margin-bottom: 0;
}

.eo-skel {
    display: block;
    height: 12px;
    background: var(--eo-border);
    border-radius: var(--eo-radius-sm);
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.eo-skel--title { height: 18px; width: 40%; }
.eo-skel--w75 { width: 75%; }
.eo-skel--w50 { width: 50%; }
.eo-skel--w25 { width: 25%; }

/* x-table-skel-rows: a list's grey rows while its real rows load; each row is as tall as a real one, a figure's bar on the right */
.eo-table-skel > td {
    height: var(--eo-row-h);
}

.eo-table-skel > td.eo-num > .eo-skel {
    margin-left: auto;
}

/* the grey name cell keeps the real tile's square (the bar's own 12px height would flatten it). the grey name always has
   its second line, so it takes the 40px tile a real name with a grey line gets, and the two bars fill the same 40px:
   the grey row is as tall as the real one and nothing jumps when the rows come in */
.eo-table-skel .eo-namecell__tile.eo-skel {
    width: 40px;
    height: 40px;
}

/* the row's ⋮ waits as an empty square of the real button's size, so the last column keeps its width */
.eo-table-skel__menu {
    display: inline-block;
    width: var(--eo-space-2xl);
    height: 1px;
}

/* a selectable list's tick box waits as a small grey square of the box's own size */
.eo-table-skel .eo-table-skel__check {
    display: inline-block;
    width: var(--eo-space-base);
    height: var(--eo-space-base);
    vertical-align: middle;
    border-radius: var(--eo-radius-sm);
}

.eo-table-skel .eo-namecell > .eo-rpt-skel-stack {
    height: 40px;
    justify-content: space-evenly;
}

/* EO.skeleton(): a part waiting for new numbers keeps its layout; its words, marks and chart shapes turn grey */
.is-skeleton {
    pointer-events: none;
    cursor: progress;
}

/* a grey bar never ends in a visible "…": a short line cut on a phone drew its dots on the bar */
.is-skeleton * {
    text-overflow: clip !important;
}

.is-skeleton .eo-skel-text,
.is-skeleton .eo-skel-block {
    color: transparent !important;
    text-decoration: none !important;
    background: var(--eo-bg-hover) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.is-skeleton .eo-skel-text {
    border-radius: var(--eo-radius-sm);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* a name cell's two lines (the bold name, the grey line under it): an inline bar is as tall as the font, taller than the
   line, so the two bars ran into each other; a bar a little shorter than its line leaves a gap between them */
.is-skeleton .eo-cell-main > .eo-skel-text,
.is-skeleton .eo-cell-sub > .eo-skel-text {
    display: inline-block;
    max-width: 100%;
    line-height: 1.1;
    vertical-align: middle;
}

.is-skeleton .eo-skel-block * {
    visibility: hidden;
}

/* a photo hides behind its grey box */
.is-skeleton img.eo-skel-block {
    object-position: -9999px 0;
}

.is-skeleton .eo-skel-fill {
    fill: var(--eo-bg-hover) !important;
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.is-skeleton .eo-skel-stroke {
    stroke: var(--eo-bg-hover) !important;
}

.is-skeleton .eo-skel-before::before,
.is-skeleton .eo-skel-after::after {
    color: transparent !important;
    background-color: var(--eo-bg-hover) !important;
    border-color: var(--eo-bg-hover) !important;
}

/* a struck old price or an underline must not show through the grey */
.is-skeleton * {
    text-decoration-color: transparent !important;
}

.is-skeleton progress::-webkit-progress-value {
    background: var(--eo-border) !important;
}

.is-skeleton progress::-moz-progress-bar {
    background: var(--eo-border) !important;
}

.eo-skel-table {
    display: flex;
    flex-direction: column;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-skel-table__row {
    display: grid;
    grid-template-columns: 24px 1.2fr 2fr 1fr 0.8fr;
    gap: var(--eo-space-base);
    align-items: center;
    height: var(--eo-row-h);
    padding: 0 var(--eo-space-md);
    border-bottom: 1px solid var(--eo-border);
}

.eo-skel-table__row:last-child {
    border-bottom: 0;
}

.eo-skel-table__row--head {
    height: 38px;
    background: var(--eo-surface-2);
}

.eo-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--eo-border-strong);
    border-right-color: transparent;
    border-radius: 50%;
    animation: eo-spin 0.7s linear infinite;
}

/* ========================================================================== */
/* UI KIT PAGE */
/* ========================================================================== */

.eo-kit {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--eo-space-xl);
    align-items: start;
}

.eo-kit__nav {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-space-base));
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
}

.eo-kit__nav a {
    padding: 4px var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
    border-radius: var(--eo-radius-sm);
}

.eo-kit__nav a:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-bg-hover);
}

.eo-kit__section {
    padding-bottom: var(--eo-space-2xl);
    margin-bottom: var(--eo-space-2xl);
    border-bottom: 1px solid var(--eo-border);
    scroll-margin-top: calc(var(--eo-topbar-h) + var(--eo-space-base));
}

.eo-kit__section:last-child {
    border-bottom: 0;
}

.eo-kit__title {
    margin-bottom: var(--eo-space-xs);
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
}

.eo-kit__lead {
    max-width: 720px;
    margin-bottom: var(--eo-space-base);
    color: var(--eo-text-muted);
}

.eo-kit__demo {
    padding: var(--eo-space-base);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-kit__demo--plain {
    padding: 0;
    background: none;
    border: 0;
}

.eo-kit__code {
    padding: var(--eo-space-sm) var(--eo-space-md);
    margin: var(--eo-space-sm) 0 0;
    overflow-x: auto;
    font-family: Consolas, 'Courier New', monospace;
    font-size: var(--eo-fs-sm);
    line-height: 1.6;
    color: var(--eo-text);
    white-space: pre;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-kit__label {
    margin: var(--eo-space-base) 0 var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

.eo-kit__shell {
    display: grid;
    grid-template-columns: 180px 1fr;
    height: 220px;
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-kit__shell .eo-sidebar {
    position: static;
    width: auto;
    height: auto;
    transform: none;
}

.eo-kit__shell .eo-topbar {
    position: static;
    padding: 0 var(--eo-space-base);
}

.eo-kit__shell-body {
    padding: var(--eo-space-base);
    background: var(--eo-bg);
}

/* developer page list: every page as a link, grouped by area and module */
.eo-pagelist {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xl);
}

.eo-pagelist [hidden] {
    display: none;
}

.eo-pagelist__links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.eo-pagelist__links > li + li {
    border-top: 1px solid var(--eo-border);
}

.eo-pagelist__link {
    display: flex;
    gap: var(--eo-space-sm);
    align-items: center;
    justify-content: space-between;
    min-height: var(--eo-control-h-lg);
    padding: var(--eo-space-sm) var(--eo-space-base);
    color: var(--eo-text);
}

a.eo-pagelist__link:hover {
    text-decoration: none;
    background: var(--eo-bg-hover);
}

.eo-pagelist__link.is-disabled {
    color: var(--eo-text-muted);
    cursor: default;
}

.eo-pagelist__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-pagelist__name {
    font-weight: var(--eo-fw-medium);
}

.eo-pagelist__path {
    color: var(--eo-text-muted);
    overflow-wrap: anywhere;
}

.eo-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--eo-space-md);
}

.eo-swatch {
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-swatch__chip {
    height: 56px;
    border-bottom: 1px solid var(--eo-border);
}

.eo-swatch__meta {
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
}

.eo-swatch__chip--brand { background: var(--eo-brand); }
.eo-swatch__chip--accent { background: var(--eo-accent); }
.eo-swatch__chip--success { background: var(--eo-success); }
.eo-swatch__chip--warning { background: var(--eo-warning); }
.eo-swatch__chip--danger { background: var(--eo-danger); }
.eo-swatch__chip--info { background: var(--eo-info); }
.eo-swatch__chip--neutral { background: var(--eo-neutral); }
.eo-swatch__chip--text { background: var(--eo-text); }
.eo-swatch__chip--muted { background: var(--eo-text-muted); }
.eo-swatch__chip--border { background: var(--eo-border); }
.eo-swatch__chip--bg { background: var(--eo-bg); }

.eo-option {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-option__chips {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 64px;
    overflow: hidden;
    border-radius: var(--eo-radius);
}

.eo-option__brand { background: var(--eo-brand); }
.eo-option__accent { background: var(--eo-accent); }

.eo-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--eo-space-xs);
}

.eo-icon-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--eo-space-xs);
    padding: var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-align: center;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-icon-grid__item .svg-icon {
    width: 20px;
    height: 20px;
    color: var(--eo-text);
}

@media (max-width: 1279.98px) {
    .eo-kit { grid-template-columns: minmax(0, 1fr); }
    .eo-kit__nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 991.98px) {
    .eo-kit__shell { grid-template-columns: minmax(0, 1fr); height: auto; }
    .eo-kit__shell .eo-sidebar { display: none; }
}

/* ========================================================================== */
/* ANIMATIONS */
/* ========================================================================== */

@keyframes eo-spin {
    to { transform: rotate(360deg); }
}

@keyframes eo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes eo-slide-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes eo-rise {
    from { opacity: 0; margin-bottom: -8px; }
    to { opacity: 1; margin-bottom: 0; }
}

@keyframes eo-saved {
    from { background-color: var(--eo-success-10); }
    to { background-color: transparent; }
}

@keyframes eo-saved-mark {
    0% { opacity: 0; transform: scale(0.4); }
    14% { opacity: 1; transform: scale(1.18); }
    26% { transform: scale(1); }
    78% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.85); }
}

@keyframes eo-saved-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes eo-saved-line {
    0% { opacity: 1; transform: scaleX(0); }
    28% { opacity: 1; transform: scaleX(1); }
    72% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1); }
}

@keyframes eo-inline-sweep {
    from { left: -30%; }
    to { left: 100%; }
}

@keyframes eo-inline-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

@media print {
    .eo-sidebar,
    .eo-topbar,
    .eo-toolbar,
    .eo-bulkbar,
    .eo-toasts,
    .eo-pager,
    [data-print-page] {
        display: none !important;
    }

    .eo-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
    }
}

/* 00 core */
/* ========================================================================== */
/* AUTH PAGES (login, signup, OTP, reset, setup wizard, admin login) */
/* ========================================================================== */

.eo-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--eo-space-xl);
    min-height: 100vh;
    padding: var(--eo-space-2xl) var(--eo-space-base);
}

.eo-auth__brand {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
}

.eo-auth__card {
    width: 100%;
    max-width: 420px;
    padding: var(--eo-space-2xl);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-auth__card--wide {
    max-width: 640px;
}

.eo-auth__title {
    margin: 0 0 var(--eo-space-xs);
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
}

.eo-auth__sub {
    margin: 0 0 var(--eo-space-xl);
    color: var(--eo-text-muted);
}

/* the login page: a deep green side with a sample parcel label, the form in a white box */
.eo-auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--eo-surface);
}

.eo-auth-split__aside {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding: var(--eo-space-lg);
    color: var(--eo-on-brand);
    background: var(--eo-brand-deep);
}

.eo-auth-split__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--eo-space-xl);
    padding: var(--eo-space-2xl) var(--eo-space-lg) var(--eo-space-lg);
}

.eo-auth-split__form {
    width: 100%;
    max-width: 400px;
    animation: eo-auth-rise 400ms var(--eo-ease) both;
}

/* phones keep the form flat: a box would take width the fields need */
@media (min-width: 576px) {
    .eo-auth-split__main {
        background: var(--eo-bg);
    }

    .eo-auth-split__form {
        max-width: 440px;
        padding: var(--eo-space-2xl);
        background: var(--eo-surface);
        border: 1px solid var(--eo-border);
        border-radius: var(--eo-radius-xl);
    }
}

/* phones: the form slides up over the green band like an app's bottom sheet */
@media (max-width: 575.98px) {
    .eo-auth-split__aside {
        padding-bottom: var(--eo-space-3xl);
    }

    .eo-auth-split__main {
        position: relative;
        margin-top: calc(var(--eo-space-xl) * -1);
        background: var(--eo-surface);
        border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
    }
}

.eo-auth-split .eo-auth__title {
    font-size: var(--eo-fs-4xl);
    font-weight: var(--eo-fw-bold);
    line-height: var(--eo-lh-normal);
}

.eo-auth-split .eo-auth__sub {
    margin-bottom: var(--eo-space-2xl);
    font-size: var(--eo-fs-base);
}

.eo-auth-split .eo-label {
    font-size: var(--eo-fs-base);
}

.eo-auth-split .eo-label__req {
    display: none;
}

/* 16px text stops iPhones zooming the page when a box is tapped */
.eo-auth-split .eo-control {
    height: var(--eo-control-h-xl);
    padding-inline: var(--eo-space-base);
    font-size: var(--eo-fs-lg);
    background-color: var(--eo-surface-2);
    border-radius: var(--eo-radius);
    transition: background-color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-auth-split .eo-control:focus {
    background-color: var(--eo-surface);
}

.eo-auth-split .eo-input-icon > .eo-control {
    padding-left: 44px;
}

/* the box's own padding rule above would otherwise let typed text run under the eye */
.eo-auth-split .eo-password > .eo-control {
    padding-right: 48px;
}

.eo-auth-split .eo-input-icon > .svg-icon {
    left: var(--eo-space-base);
    width: 18px;
    height: 18px;
    transition: color var(--eo-dur) var(--eo-ease);
}

.eo-auth-split .eo-input-icon:focus-within > .svg-icon {
    color: var(--eo-brand);
}

.eo-auth-split .eo-field.is-invalid .eo-input-icon > .svg-icon {
    color: var(--eo-danger-strong);
}

/* browsers paint saved logins blue or yellow; an inset shadow is the only way to cover it */
.eo-auth-split .eo-control:-webkit-autofill {
    -webkit-text-fill-color: var(--eo-text);
    box-shadow: inset 0 0 0 100px var(--eo-surface-2);
}

.eo-auth-split .eo-control:-webkit-autofill:focus {
    box-shadow: inset 0 0 0 100px var(--eo-surface), var(--eo-focus);
}

.eo-auth-split .eo-password__toggle {
    width: 48px;
    height: var(--eo-control-h-xl);
    border-radius: 0 var(--eo-radius) var(--eo-radius) 0;
}

.eo-auth-split .eo-btn--primary {
    height: var(--eo-control-h-xl);
    margin-top: var(--eo-space-xs);
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    border-radius: var(--eo-radius);
    transition: background-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease), transform var(--eo-dur) var(--eo-ease);
}

.eo-auth-split .eo-btn--primary:hover {
    box-shadow: var(--eo-shadow-button);
    transform: translateY(-1px);
}

.eo-auth-split .eo-btn--primary:active {
    box-shadow: none;
    transform: translateY(0);
}

/* covers the quieter second button too, like the email form on the forgot password page */
.eo-auth-split .eo-btn--block {
    height: var(--eo-control-h-xl);
    font-size: var(--eo-fs-lg);
    border-radius: var(--eo-radius);
}

.eo-auth-split .eo-control--code {
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3em;
}

.eo-auth-split .eo-control--code::placeholder {
    letter-spacing: normal;
}

.eo-auth-split .eo-more {
    margin-top: var(--eo-space-base);
}

.eo-auth-split__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-base);
    margin-top: var(--eo-space-xl);
    padding-top: var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* a wrong password gets a small shake as well as the message */
.eo-auth-split form.is-shaking {
    animation: eo-auth-shake 320ms var(--eo-ease);
}

.eo-auth-split .eo-btn--primary .svg-icon {
    transition: transform var(--eo-dur-slow) var(--eo-ease);
}

.eo-auth-split .eo-btn--primary:hover .svg-icon {
    transform: translate(4px, -0.15em);
}

.eo-auth-split .eo-auth__switch {
    margin-top: var(--eo-space-xl);
    padding-top: var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-auth-split a {
    font-weight: var(--eo-fw-medium);
}

.eo-auth-split__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--eo-space-xs) var(--eo-space-base);
    width: 100%;
    margin-top: auto;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-auth-split__foot-links {
    display: flex;
    gap: var(--eo-space-md);
}

.eo-auth-split__foot a {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-auth-split__foot a + a {
    padding-left: var(--eo-space-md);
    border-left: 1px solid var(--eo-border-strong);
}

.eo-auth-split__foot a:hover {
    color: var(--eo-text);
}

.eo-auth-split__brand {
    display: block;
    align-self: flex-start;
}

/* a fixed height holds the logo's place, so the page does not jump when it arrives from the CDN */
.eo-auth-split .eo-brand-logo {
    align-self: flex-start;
    height: 38px;
    max-width: none;
    max-height: none;
}

.eo-auth-split__caps {
    display: none;
    margin: calc(var(--eo-space-sm) * -1) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-warning-strong);
}

.eo-auth-split__caps.is-shown {
    display: block;
}

.eo-auth-pitch {
    animation: eo-auth-rise 400ms var(--eo-ease) both;
}

.eo-auth-pitch__title {
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    line-height: var(--eo-lh-normal);
    color: inherit;
    /* no lone word on its own line at in-between widths */
    text-wrap: balance;
}

.eo-auth-pitch__mark {
    color: var(--eo-side-active-icon);
}

.eo-auth-pitch__text,
.eo-feature-deck {
    display: none;
}

.eo-feature-deck {
    width: 100%;
    max-width: 620px;
}

/* --eo-tilt-x and --eo-tilt-y run from -0.5 to 0.5 and come from the cursor (dashboard.js) */
.eo-ship-stack {
    position: relative;
    margin-bottom: var(--eo-space-lg);
    perspective: 1000px;
    animation: eo-auth-rise 500ms var(--eo-ease) both;
}

/* every card sits in the same grid cell, so the tallest sets the height and the page never jumps */
.eo-ship-deck {
    position: relative;
    z-index: 1;
    display: grid;
    transform: rotateX(calc(var(--eo-tilt-y, 0) * -7deg)) rotateY(calc(var(--eo-tilt-x, 0) * 7deg));
    transition: transform 240ms ease-out;
}

/* two more labels peeking out from under the top one */
.eo-ship-stack::before,
.eo-ship-stack::after {
    content: "";
    position: absolute;
    height: 40px;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
    transition: transform 240ms ease-out;
}

.eo-ship-stack::before {
    right: var(--eo-space-base);
    bottom: -10px;
    left: var(--eo-space-base);
    background: color-mix(in srgb, var(--eo-on-brand) 55%, var(--eo-brand-deep));
    transform: translate(calc(var(--eo-tilt-x, 0) * -8px), calc(var(--eo-tilt-y, 0) * -4px));
}

.eo-ship-stack::after {
    right: var(--eo-space-2xl);
    bottom: -20px;
    left: var(--eo-space-2xl);
    background: color-mix(in srgb, var(--eo-on-brand) 28%, var(--eo-brand-deep));
    box-shadow: var(--eo-shadow-label);
    transform: translate(calc(var(--eo-tilt-x, 0) * -16px), calc(var(--eo-tilt-y, 0) * -8px));
}

.eo-ship-label {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--eo-text);
    background: var(--eo-surface);
    border-radius: var(--eo-radius-xl);
    visibility: hidden;
}

/* the top card peels off up and to the left, and the next one rises out of the stack underneath it */
.eo-ship-label.is-active {
    z-index: 1;
    visibility: visible;
    animation: eo-card-in 620ms var(--eo-ease-spring) both;
}

.eo-ship-label.is-leaving {
    z-index: 2;
    visibility: visible;
    box-shadow: var(--eo-shadow-label);
    animation: eo-card-out 420ms var(--eo-ease) both;
}

.eo-ship-label__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-base);
    padding: var(--eo-space-lg) var(--eo-space-xl);
    border-bottom: 1px dashed var(--eo-border-strong);
}

.eo-ship-label__title {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
}

.eo-ship-label__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-ship-label__icon > .svg-icon {
    width: 22px;
    height: 22px;
}

.eo-ship-label.is-active .eo-ship-label__icon {
    animation: eo-auth-dot 480ms var(--eo-ease-spring) 120ms both;
}

/* the ring stops at 92, the sample score on the fraud check card */
.eo-ship-label__ring {
    position: absolute;
    inset: 0;
    fill: none;
    stroke: var(--eo-border);
    stroke-width: 3.5;
    transform: rotate(-90deg);
}

.eo-ship-label__ring-value {
    stroke: var(--eo-success);
    stroke-dasharray: 100;
    stroke-dashoffset: 8;
    stroke-linecap: round;
}

.eo-ship-label.is-active .eo-ship-label__ring-value {
    animation: eo-ring-fill 1100ms var(--eo-ease) 200ms both;
}

/* two half circles cut out of the label's edges, on the tear line */
.eo-ship-label__head::before,
.eo-ship-label__head::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: var(--eo-brand-deep);
    border-radius: 50%;
}

.eo-ship-label__head::before { left: -8px; }
.eo-ship-label__head::after { right: -8px; }

.eo-ship-label__name {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
}

.eo-ship-label__address {
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

.eo-ship-label__money {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--eo-space-xs);
    flex-shrink: 0;
    font-size: var(--eo-fs-3xl);
    font-variant-numeric: tabular-nums;
}

.eo-ship-label__tag {
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    background: var(--eo-bg);
    border-radius: var(--eo-radius-pill);
}

/* shorter cards spread their rows to fill the same height as the tallest */
.eo-ship-label__steps {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: var(--eo-space-base) var(--eo-space-xl);
    list-style: none;
}

/* timeline rows stretch instead, so the line between the ticks never breaks */
.eo-ship-label__steps--track {
    justify-content: flex-start;
}

.eo-ship-label__steps--track li:not(:last-child) {
    flex: 1;
}

.eo-ship-label__steps li {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-base);
    padding: 0 0 var(--eo-space-sm) var(--eo-space-xl);
    font-size: var(--eo-fs-md);
}

/* the animations sit on the active card only, so they play again each time a card comes round */
.eo-ship-label.is-active .eo-ship-label__steps li {
    animation: eo-row-in 420ms var(--eo-ease-spring) both;
    animation-delay: calc(240ms + var(--eo-step) * 90ms);
}

.eo-ship-label__bar {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: var(--eo-space-xl);
    height: 3px;
    overflow: hidden;
    background: var(--eo-bg);
    border-radius: var(--eo-radius-pill);
}

.eo-ship-label__bar > span {
    display: block;
    width: var(--eo-bar, 0);
    height: 100%;
    background: var(--eo-brand);
    border-radius: var(--eo-radius-pill);
    transform-origin: left;
}

.eo-ship-label.is-active .eo-ship-label__bar > span {
    animation: eo-bar-grow 800ms var(--eo-ease) both;
    animation-delay: calc(320ms + var(--eo-step) * 90ms);
}

.eo-ship-label__dot {
    position: absolute;
    top: 3px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--eo-on-brand);
    background: var(--eo-success);
    border-radius: 50%;
}

.eo-ship-label.is-active .eo-ship-label__dot {
    animation: eo-auth-dot 420ms var(--eo-ease-spring) both;
    animation-delay: calc(280ms + var(--eo-step) * 90ms);
}

.eo-ship-label__steps li .eo-ship-label__dot--plain {
    top: 7px;
    left: var(--eo-space-xs);
    width: 8px;
    height: 8px;
    background: var(--eo-border-strong);
}

.eo-ship-label__steps li.eo-ship-label__row--success .eo-ship-label__dot--plain { background: var(--eo-success); }
.eo-ship-label__steps li.eo-ship-label__row--warning .eo-ship-label__dot--plain { background: var(--eo-warning); }
.eo-ship-label__steps li.eo-ship-label__row--danger .eo-ship-label__dot--plain { background: var(--eo-danger); }

/* a colored result reads as a small pill, like the status badges inside the panel */
.eo-ship-label__row--success .eo-ship-label__meta,
.eo-ship-label__row--warning .eo-ship-label__meta,
.eo-ship-label__row--danger .eo-ship-label__meta {
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    line-height: 20px;
    border-radius: var(--eo-radius-pill);
}

.eo-ship-label__row--success .eo-ship-label__meta { color: var(--eo-success-strong); background: var(--eo-success-10); }
.eo-ship-label__row--warning .eo-ship-label__meta { color: var(--eo-warning-strong); background: var(--eo-warning-10); }
.eo-ship-label__row--danger .eo-ship-label__meta { color: var(--eo-danger-strong); background: var(--eo-danger-10); }

/* chat cards: the customer's words sit in a speech bubble and pop in */
.eo-ship-label__steps--chat-meta li:not(:last-child),
.eo-ship-label__steps--chat-label li:not(:last-child) {
    align-items: center;
}

.eo-ship-label__steps--chat-meta li:not(:last-child) .eo-ship-label__dot--plain,
.eo-ship-label__steps--chat-label li:not(:last-child) .eo-ship-label__dot--plain {
    top: 9px;
}

.eo-ship-label__steps--chat-meta li:not(:last-child) .eo-ship-label__meta,
.eo-ship-label__steps--chat-label li:not(:last-child) .eo-ship-label__text {
    padding: 2px var(--eo-space-md);
    color: var(--eo-text-2);
    background: var(--eo-bg);
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) var(--eo-radius-xl) 2px;
    transform-origin: left bottom;
}

.eo-ship-label.is-active .eo-ship-label__steps--chat-meta li:not(:last-child) .eo-ship-label__meta,
.eo-ship-label.is-active .eo-ship-label__steps--chat-label li:not(:last-child) .eo-ship-label__text {
    animation: eo-auth-dot 420ms var(--eo-ease-spring) both;
    animation-delay: calc(300ms + var(--eo-step) * 90ms);
}

.eo-ship-label__dot .svg-icon {
    width: 10px;
    height: 10px;
    stroke-width: 3.5;
}

.eo-ship-label__steps--track li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    bottom: -3px;
    left: 7px;
    width: 2px;
    background: var(--eo-success-25);
    transform-origin: top;
}

.eo-ship-label.is-active .eo-ship-label__steps--track li:not(:last-child)::after {
    animation: eo-auth-line 220ms var(--eo-ease) both;
    animation-delay: calc(360ms + var(--eo-step) * 90ms);
}

.eo-ship-label__steps li:nth-child(1) { --eo-step: 0; }
.eo-ship-label__steps li:nth-child(2) { --eo-step: 1; }
.eo-ship-label__steps li:nth-child(3) { --eo-step: 2; }
.eo-ship-label__steps li:nth-child(4) { --eo-step: 3; }
.eo-ship-label__steps li:nth-child(5) { --eo-step: 4; }
.eo-ship-label__steps li:nth-child(6) { --eo-step: 5; }

.eo-ship-label__steps--track li:nth-last-child(2)::after {
    bottom: -7px;
}

.eo-ship-label__steps li:last-child {
    margin: 0 calc(var(--eo-space-sm) * -1);
    padding: var(--eo-space-xs) var(--eo-space-sm) var(--eo-space-xs) calc(var(--eo-space-xl) + var(--eo-space-sm));
    overflow: hidden;
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-success-10);
    border-radius: var(--eo-radius-lg);
}

.eo-ship-label__steps li:last-child .eo-ship-label__dot {
    top: calc(50% - 8px);
    left: var(--eo-space-sm);
}

.eo-ship-label__steps li:last-child .eo-ship-label__dot--plain {
    top: calc(50% - 4px);
    left: var(--eo-space-md);
}

/* one soft sweep of light across the result row, the card's payoff */
.eo-ship-label__steps li:last-child::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
}

.eo-ship-label.is-active .eo-ship-label__steps li:last-child::after {
    animation: eo-result-sweep 900ms var(--eo-ease) 1000ms both;
}

.eo-ship-label__meta {
    color: var(--eo-text-muted);
    font-variant-numeric: tabular-nums;
}

.eo-ship-label__steps li:last-child .eo-ship-label__meta {
    color: var(--eo-success-strong);
}

.eo-ship-label__steps li.eo-ship-label__row--warning:last-child {
    background: var(--eo-warning-10);
}

.eo-ship-label__steps li.eo-ship-label__row--warning:last-child .eo-ship-label__meta {
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: var(--eo-warning-strong);
    background: none;
}

.eo-ship-label__barcode {
    position: relative;
    height: 20px;
    margin: 0 var(--eo-space-xl) var(--eo-space-lg);
    background: repeating-linear-gradient(90deg, var(--eo-text) 0 2px, transparent 2px 5px, var(--eo-text) 5px 6px, transparent 6px 9px, var(--eo-text) 9px 12px, transparent 12px 14px, var(--eo-text) 14px 15px, transparent 15px 19px);
}

/* one scan across the barcode once the last step has landed */
.eo-ship-label__barcode::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 0;
    width: 2px;
    background: var(--eo-success);
    opacity: 0;
}

.eo-ship-label.is-active .eo-ship-label__barcode::after {
    animation: eo-auth-scan 1000ms var(--eo-ease) 1100ms both;
}

/* one dot per card; the active one's bar fills up and dashboard.js moves on when it is full */
.eo-feature-dots {
    display: flex;
    justify-content: center;
    gap: var(--eo-space-sm);
    padding-top: var(--eo-space-base);
}

.eo-feature-dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--eo-on-brand) 30%, transparent);
    border: 0;
    border-radius: var(--eo-radius-pill);
    cursor: pointer;
    transition: width var(--eo-dur-slow) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-feature-dot:hover {
    background: color-mix(in srgb, var(--eo-on-brand) 60%, transparent);
}

.eo-feature-dot.is-active {
    width: 32px;
}

.eo-feature-dot__bar {
    position: absolute;
    inset: 0;
    background: var(--eo-side-active-icon);
    transform: scaleX(0);
    transform-origin: left;
}

.eo-feature-dot.is-active .eo-feature-dot__bar {
    animation: eo-auth-progress 6s linear both;
}

.eo-feature-deck:hover .eo-feature-dot__bar,
.eo-feature-deck.is-paused .eo-feature-dot__bar {
    animation-play-state: paused;
}

/* laptops: the longer forms like sign up fit a 768px screen with tighter spacing */
@media (min-width: 992px) and (max-height: 820px) {
    .eo-auth-split .eo-auth-split__form {
        padding-block: var(--eo-space-xl);
    }

    .eo-auth-split .eo-auth__sub {
        margin-bottom: var(--eo-space-lg);
    }

    .eo-auth-split .eo-auth__switch,
    .eo-auth-split .eo-auth-split__actions {
        margin-top: var(--eo-space-base);
        padding-top: var(--eo-space-base);
    }
}

/* short laptop screens: drop the extra lines so the page fits without scrolling */
@media (min-width: 992px) and (max-height: 760px) {
    .eo-auth-split .eo-auth-pitch__text {
        display: none;
    }

    .eo-auth-split .eo-auth-split__aside {
        padding-block: var(--eo-space-2xl);
    }

    .eo-auth-split .eo-auth-split__main {
        gap: var(--eo-space-sm);
        padding-block: var(--eo-space-base);
    }
}

/* big monitors: the label grows so it does not look lost on the wide side */
@media (min-width: 1600px) {
    .eo-ship-label__steps li {
        padding-bottom: var(--eo-space-md);
        font-size: var(--eo-fs-base);
    }
}

@keyframes eo-auth-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes eo-auth-dot {
    from { opacity: 0; transform: scale(0.4); }
}

@keyframes eo-card-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
}

@keyframes eo-card-out {
    to { opacity: 0; transform: translate(-40px, -24px) rotate(-5deg) scale(0.98); }
}

@keyframes eo-row-in {
    from { opacity: 0; transform: translateX(-12px); }
}

@keyframes eo-bar-grow {
    from { transform: scaleX(0); }
}

@keyframes eo-ring-fill {
    from { stroke-dashoffset: 100; }
}

@keyframes eo-result-sweep {
    to { transform: translateX(100%); }
}

@keyframes eo-auth-line {
    from { transform: scaleY(0); }
}

@keyframes eo-auth-scan {
    0% { left: 0; opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes eo-auth-shake {
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes eo-auth-progress {
    to { transform: scaleX(1); }
}

/* with no bar animation nothing moves the cards on, so the first one simply stays */
@media (prefers-reduced-motion: reduce) {
    .eo-auth-split__form,
    .eo-auth-pitch,
    .eo-ship-stack,
    .eo-ship-label.is-active,
    .eo-ship-label.is-leaving,
    .eo-ship-label.is-active .eo-ship-label__icon,
    .eo-ship-label.is-active .eo-ship-label__ring-value,
    .eo-ship-label.is-active .eo-ship-label__steps li,
    .eo-ship-label.is-active .eo-ship-label__bar > span,
    .eo-ship-label.is-active .eo-ship-label__dot,
    .eo-ship-label.is-active .eo-ship-label__steps--track li:not(:last-child)::after,
    .eo-ship-label.is-active .eo-ship-label__steps li:last-child::after,
    .eo-ship-label.is-active .eo-ship-label__steps--chat-meta li:not(:last-child) .eo-ship-label__meta,
    .eo-ship-label.is-active .eo-ship-label__steps--chat-label li:not(:last-child) .eo-ship-label__text,
    .eo-ship-label.is-active .eo-ship-label__barcode::after,
    .eo-feature-dot.is-active .eo-feature-dot__bar,
    .eo-auth-split form.is-shaking {
        animation: none;
    }

    .eo-ship-label.is-leaving {
        visibility: hidden;
    }

    .eo-feature-dot.is-active .eo-feature-dot__bar {
        transform: scaleX(1);
    }
}

@media (min-width: 992px) {
    .eo-auth-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        grid-template-rows: none;
        background: var(--eo-bg);
    }

    /* on a long form the page scrolls and the panel stays in view */
    .eo-auth-split__aside {
        position: sticky;
        top: 0;
        align-self: start;
        min-height: 100vh;
        min-height: 100dvh;
        gap: var(--eo-space-xl);
        padding-block: var(--eo-space-3xl);
        /* a 620px column centred in the panel, so a wide panel has no empty right side */
        padding-inline: max(clamp(48px, 5vw, 140px), calc((100% - 620px) / 2));
        background-image: radial-gradient(color-mix(in srgb, var(--eo-on-brand) 10%, transparent) 1px, transparent 1px);
        background-size: 22px 22px;
    }

    .eo-auth-split__main {
        padding: var(--eo-space-3xl) var(--eo-space-3xl) var(--eo-space-lg);
    }

    /* the box stays centred in the space above the footer */
    .eo-auth-split__form {
        margin-block: auto;
    }

    .eo-auth-split__foot {
        margin-top: 0;
    }

    /* logo at the top, the headline and label centred in the space below it */
    .eo-auth-split__aside > :first-child {
        margin-bottom: auto;
    }

    .eo-auth-split__aside > :last-child {
        margin-bottom: auto;
    }

    .eo-auth-pitch {
        max-width: 680px;
    }

    .eo-auth-pitch__title {
        font-size: var(--eo-fs-display);
        font-weight: var(--eo-fw-bold);
        line-height: 1.35;
    }

    .eo-auth-pitch__mark {
        display: block;
    }

    .eo-auth-pitch__text {
        display: block;
        margin: var(--eo-space-md) 0 0;
        font-size: var(--eo-fs-lg);
        text-wrap: balance;
        color: color-mix(in srgb, var(--eo-on-brand) 82%, transparent);
    }

    .eo-feature-deck {
        display: block;
    }
}

.eo-auth__switch {
    margin: var(--eo-space-lg) 0 0;
    text-align: center;
    color: var(--eo-text-muted);
}

@media (max-width: 575.98px) {
    .eo-auth__card { padding: var(--eo-space-lg); }
}

/* ========================================================================== */
/* SETUP WIZARD STEPS */
/* ========================================================================== */

.eo-slug-preview {
    font-family: var(--eo-font);
    color: var(--eo-text-muted);
}

/* ========================================================================== */
/* ONBOARDING: one prefilled page, the owner's own shop updating beside the form */
/* ========================================================================== */

.eo-setup {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--eo-bg);
}

.eo-setup__rail {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding: var(--eo-space-lg) var(--eo-space-lg) var(--eo-space-3xl);
    color: var(--eo-on-brand);
    background: var(--eo-brand-deep);
}

.eo-setup__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-base);
}

.eo-setup__brand {
    display: block;
    flex-shrink: 0;
}

.eo-setup .eo-brand-logo {
    height: 34px;
    max-width: none;
    max-height: none;
}

.eo-setup__logout button {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    padding: 0;
    font: inherit;
    font-size: var(--eo-fs-md);
    color: color-mix(in srgb, var(--eo-on-brand) 75%, transparent);
    background: none;
    border: 0;
    cursor: pointer;
}

.eo-setup__logout button:hover {
    color: var(--eo-on-brand);
}

.eo-setup__heading {
    margin: 0 0 var(--eo-space-xs);
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.35;
    color: inherit;
}

.eo-setup__lead {
    margin: 0;
    color: color-mix(in srgb, var(--eo-on-brand) 82%, transparent);
}

.eo-setup-card,
.eo-setup__after {
    display: none;
}

.eo-setup-card {
    color: var(--eo-text);
    background: var(--eo-surface);
    border-radius: var(--eo-radius-xl);
    box-shadow: var(--eo-shadow-label);
    animation: eo-auth-rise 500ms var(--eo-ease) both;
}

.eo-setup-card__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-setup-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-radius: var(--eo-radius-lg);
}

.eo-setup-card__who {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-setup-card__who strong,
.eo-setup-card__who > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-setup-card__who strong {
    font-size: var(--eo-fs-xl);
}

.eo-setup-card__who > span {
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

.eo-setup-card__status {
    flex-shrink: 0;
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    line-height: 22px;
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
    border-radius: var(--eo-radius-pill);
}

.eo-setup-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-base) var(--eo-space-base) var(--eo-space-lg);
}

/* every chip on (10) in two lines at a desktop width, with room around each (owner, 22 Nov 2026) */
.eo-setup-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-2xs);
    padding: 3px var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    white-space: nowrap;
    color: var(--eo-text-2);
    background: var(--eo-bg);
    border-radius: var(--eo-radius);
    animation: eo-auth-dot 300ms var(--eo-ease-spring) both;
}

.eo-setup-chip[hidden] {
    display: none;
}

.eo-setup-chip .svg-icon {
    width: 13px;
    height: 13px;
    color: var(--eo-success);
}

.eo-setup__after-title {
    display: block;
    margin-bottom: var(--eo-space-md);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: color-mix(in srgb, var(--eo-on-brand) 82%, transparent);
}

.eo-setup__after ol {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: eo-after;
}

.eo-setup__after li {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    font-size: var(--eo-fs-base);
    color: color-mix(in srgb, var(--eo-on-brand) 82%, transparent);
    counter-increment: eo-after;
}

.eo-setup__after li::before {
    content: counter(eo-after);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    font-size: var(--eo-fs-sm);
    border: 1px solid color-mix(in srgb, var(--eo-on-brand) 30%, transparent);
    border-radius: 50%;
}

/* phones: the form slides up over the green band, and the button stays in reach */
.eo-setup__main {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: calc(var(--eo-space-xl) * -1);
    background: var(--eo-surface);
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
}

.eo-setup__panel {
    width: 100%;
    max-width: 640px;
    padding: var(--eo-space-xl) var(--eo-space-lg) 0;
    animation: eo-auth-rise 400ms var(--eo-ease) both;
}

.eo-setup__panel form.is-shaking {
    animation: eo-auth-shake 320ms var(--eo-ease);
}

.eo-setup__title {
    margin: 0 0 var(--eo-space-xs);
    font-size: var(--eo-fs-3xl);
    font-weight: var(--eo-fw-bold);
    line-height: var(--eo-lh-normal);
}

.eo-setup__sub {
    margin: 0 0 var(--eo-space-xl);
    color: var(--eo-text-muted);
}

.eo-setup__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
}

/* the order number's start and next number side by side (one under the other on a phone) */
@media (min-width: 576px) {
    .eo-setup__fields--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 16px text stops iPhones zooming the page when a box is tapped */
.eo-setup .eo-control {
    height: var(--eo-control-h-lg);
    font-size: var(--eo-fs-base);
}

.eo-setup .eo-input-icon > .eo-control {
    padding-left: 44px;
}

.eo-setup .eo-input-icon > .svg-icon {
    left: var(--eo-space-base);
    width: 18px;
    height: 18px;
}

.eo-setup .eo-input-icon:focus-within > .svg-icon {
    color: var(--eo-brand);
}

.eo-setup .eo-field.is-invalid .eo-input-icon > .svg-icon {
    color: var(--eo-danger-strong);
}

.eo-setup .eo-label__req {
    display: none;
}

.eo-setup-links {
    margin-top: var(--eo-space-lg);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-setup-link {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
}

.eo-setup-link ~ .eo-setup-link {
    border-top: 1px solid var(--eo-border);
}

.eo-setup-link__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    background: var(--eo-bg);
    border-radius: var(--eo-radius);
}

.eo-setup-link__text {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-setup-link__text > span,
.eo-setup-link__text > strong {
    display: block;
    overflow-wrap: anywhere;
}

.eo-setup-link__text > span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-setup-link .eo-btn {
    flex-shrink: 0;
    font-weight: var(--eo-fw-medium);
}

/* on a phone only the pencil shows, so the shop link keeps the room; the button's aria-label still says "change" */
@media (max-width: 575.98px) {
    .eo-setup-link .eo-btn > span {
        display: none;
    }
}

.eo-setup-link__edit {
    padding: 0 var(--eo-space-base) var(--eo-space-base);
}

.eo-setup-links .eo-setup__note--left {
    padding: 0 var(--eo-space-base) var(--eo-space-base);
    margin-top: calc(var(--eo-space-sm) * -1);
}

.eo-setup__group {
    margin-top: var(--eo-space-xl);
    padding-top: var(--eo-space-xl);
    border-top: 1px solid var(--eo-border);
}

.eo-setup__group-title {
    margin: 0 0 var(--eo-space-xs);
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
}

.eo-setup__group-sub {
    margin: 0 0 var(--eo-space-base);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

/* the questions: one card per row at every width (owner, 22 Nov 2026), so each question reads on one line with its switch at the end */
.eo-setup-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-sm);
}

/* the whole card is the switch's label, so a tap anywhere on it answers the question */
.eo-setup-choice {
    position: relative;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: background-color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease);
}

.eo-setup-choice:hover {
    border-color: var(--eo-border-strong);
}

.eo-setup-choice:has(input:checked) {
    border-color: var(--eo-brand);
}

.eo-setup-choice:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

.eo-setup-choice__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: var(--eo-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    background: var(--eo-bg);
    border-radius: var(--eo-radius);
    pointer-events: none;
    transition: color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-setup-choice:has(input:checked) .eo-setup-choice__icon {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-setup-choice .eo-field,
.eo-setup-choice .eo-check {
    height: 100%;
    margin: 0;
}

.eo-setup-choice .eo-check {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    width: 100%;
    min-height: 56px;
    padding: var(--eo-space-md) var(--eo-space-md) var(--eo-space-md) 56px;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
}

/* the grey line under a question says what turning it on gives; plain weight under the question's medium one */
.eo-setup-choice .eo-check__hint {
    margin-top: 2px;
    font-weight: var(--eo-fw-normal);
}

.eo-setup-choice .eo-error:empty {
    display: none;
}

/* the button sits after the questions, not stuck to the bottom over them (owner, 22 Nov 2026) */
.eo-setup__cta {
    margin-top: var(--eo-space-lg);
    padding-bottom: var(--eo-space-lg);
}

.eo-setup__cta .eo-btn {
    height: 52px;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    border-radius: var(--eo-radius);
    transition: background-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease), transform var(--eo-dur) var(--eo-ease);
}

.eo-setup__cta .eo-btn:hover {
    box-shadow: var(--eo-shadow-button);
    transform: translateY(-1px);
}

.eo-setup__cta .eo-btn:active {
    box-shadow: none;
    transform: translateY(0);
}

.eo-setup__cta .eo-btn .svg-icon {
    transition: transform var(--eo-dur-slow) var(--eo-ease);
}

.eo-setup__cta .eo-btn:hover .svg-icon {
    transform: translate(4px, -0.15em);
}

.eo-setup__note {
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-align: center;
}

.eo-setup__note--left {
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .eo-setup-card,
    .eo-setup-chip,
    .eo-setup__panel,
    .eo-setup__panel form.is-shaking {
        animation: none;
    }
}

@media (min-width: 576px) {
    .eo-setup__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* laptops: tighter spacing so the button is on screen without scrolling */
@media (min-width: 992px) and (max-height: 820px) {
    .eo-setup .eo-setup__rail {
        gap: var(--eo-space-base);
        padding-block: var(--eo-space-xl);
    }

    .eo-setup .eo-setup__panel {
        padding-block: var(--eo-space-lg);
    }

    .eo-setup .eo-setup__main {
        padding-block: var(--eo-space-base);
    }

    .eo-setup .eo-setup__title {
        font-size: var(--eo-fs-3xl);
    }

    .eo-setup .eo-setup__sub {
        margin-bottom: var(--eo-space-base);
    }

    .eo-setup .eo-setup__group {
        margin-top: var(--eo-space-base);
        padding-top: var(--eo-space-base);
    }

    .eo-setup .eo-setup__cta {
        margin-top: var(--eo-space-base);
    }

    .eo-setup .eo-setup__after-title {
        margin-bottom: var(--eo-space-sm);
    }
}

/* wide enough for both sides: the green side holds the shop card, and the form sits in a box */
@media (min-width: 992px) {
    .eo-setup {
        /* 40% and the trimmed side padding keep every shop-card chip in two lines from ~1366px up */
        grid-template-columns: minmax(380px, 40%) minmax(0, 1fr);
        grid-template-rows: none;
    }

    .eo-setup__rail {
        position: sticky;
        top: 0;
        align-self: start;
        gap: var(--eo-space-xl);
        min-height: 100vh;
        min-height: 100dvh;
        padding: var(--eo-space-2xl) clamp(32px, 3vw, 72px);
        background-image: radial-gradient(color-mix(in srgb, var(--eo-on-brand) 10%, transparent) 1px, transparent 1px);
        background-size: 22px 22px;
    }

    .eo-setup__top {
        margin-bottom: auto;
    }

    .eo-setup__heading {
        font-size: var(--eo-fs-display);
    }

    .eo-setup__lead {
        font-size: var(--eo-fs-lg);
    }

    .eo-setup-card,
    .eo-setup__after {
        display: block;
    }

    .eo-setup__after {
        margin-bottom: auto;
    }

    .eo-setup__main {
        align-items: center;
        margin-top: 0;
        padding: var(--eo-space-xl);
        background: none;
        border-radius: 0;
    }

    .eo-setup__panel {
        padding: var(--eo-space-2xl);
        background: var(--eo-surface);
        border: 1px solid var(--eo-border);
        border-radius: var(--eo-radius-xl);
    }

    .eo-setup__cta {
        position: static;
        margin: var(--eo-space-xl) 0 0;
        padding: 0;
        border-top: 0;
    }
}

/* ========================================================================== */
/* TOP BAR BELL */
/* ========================================================================== */

/* the one bell menu: head (title, how many new, read all), the unread rows scrolling inside, then "see all" */
.eo-bell__menu {
    width: 380px;
    max-width: calc(100vw - 2 * var(--eo-space-md));
    padding: 0;
    overflow: hidden;
}

.eo-bell__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-bell__title {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-bell__new {
    padding: 1px 8px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

.eo-bell__readall {
    margin-left: auto;
}

.eo-bell__readall .eo-link-btn {
    font-size: var(--eo-fs-sm);
}

.eo-bell__list {
    max-height: min(420px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.eo-bell__list .eo-notice {
    padding: var(--eo-space-md) var(--eo-space-base);
}

.eo-bell__list > form + form .eo-notice {
    border-top: 1px solid var(--eo-border);
}

.eo-bell__menu .eo-bell__all {
    display: block;
    padding: var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    text-align: center;
    background: var(--eo-surface);
    border-top: 1px solid var(--eo-border);
}

.eo-bell__menu .eo-bell__all:hover {
    background: var(--eo-surface-2);
}

/* phones: the menu takes the screen's width under the top bar, rows stay easy to tap */
@media (max-width: 575.98px) {
    .eo-bell__menu {
        position: fixed !important;
        inset: calc(var(--eo-topbar-h) + 4px) var(--eo-space-sm) auto var(--eo-space-sm) !important;
        width: auto;
        max-width: none;
        transform: none !important;
    }
}

/* ========================================================================== */
/* TOP BAR CREDIT (04): SMS and call credit, one click to buy */
/* ========================================================================== */

.eo-credit-chip {
    position: relative;
}

.eo-credit-chip__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 var(--eo-space-md);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-credit-chip__item + .eo-credit-chip__item {
    border-left: 1px solid var(--eo-border);
}

.eo-credit-chip__item .svg-icon {
    width: 15px;
    height: 15px;
    color: var(--eo-text-muted);
}

.eo-credit-chip__item.is-low,
.eo-credit-chip__item.is-low .svg-icon {
    color: var(--eo-danger-strong);
}

.eo-credit-menu {
    width: 320px;
    max-width: calc(100vw - var(--eo-space-xl));
    padding: 0;
    overflow: hidden;
}

.eo-credit-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-credit-menu__link {
    font-size: var(--eo-fs-md);
    color: var(--eo-brand);
    text-decoration: none;
}

.eo-credit-menu__link:hover {
    color: var(--eo-brand-strong);
    text-decoration: underline;
}

/* one line per credit: icon, name, what is left on the right edge, then the buy button; no hints, no extra links */
.eo-credit-menu__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: 10px var(--eo-space-base);
}

.eo-credit-menu__row + .eo-credit-menu__row {
    border-top: 1px solid var(--eo-border);
}

.eo-credit-menu__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-credit-menu__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.eo-credit-menu__row.is-low .eo-credit-menu__icon {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

.eo-credit-menu__text {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
    color: var(--eo-text);
    text-decoration: none;
}

.eo-credit-menu__text:hover {
    color: var(--eo-text);
}

.eo-credit-menu__text:hover .eo-credit-menu__label {
    text-decoration: underline;
}

.eo-credit-menu__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-credit-menu__value {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eo-credit-menu__row.is-low .eo-credit-menu__value {
    color: var(--eo-danger-strong);
}

.eo-credit-menu__row .eo-btn {
    flex-shrink: 0;
}

/* phone: only the SMS count stays in the bar; the menu shows both */
@media (max-width: 575.98px) {
    .eo-credit-chip__item {
        padding: 0 var(--eo-space-sm);
    }

    .eo-credit-chip__item--call {
        display: none;
    }
}

/* ========================================================================== */
/* ROLE FORM PERMISSION GROUPS */
/* ========================================================================== */

.eo-perm-group {
    padding: var(--eo-space-md) 0;
    border-top: 1px solid var(--eo-border);
}

.eo-perm-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    margin-bottom: var(--eo-space-sm);
}

.eo-perm-group__title {
    margin: 0;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
}

/* staff form: the role select with its one-line summary under it */
.eo-rolecan-pick {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--eo-space-xs);
    min-width: 0;
}

.eo-rolecan-pick p {
    margin: 0;
}

.eo-log-changes {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px var(--eo-space-sm);
    margin: 0;
    text-align: left;
    font-size: var(--eo-fs-sm);
}

.eo-log-changes dt {
    color: var(--eo-text-muted);
    font-weight: var(--eo-fw-normal, 400);
}

.eo-log-changes dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.eo-log-changes .svg-icon {
    width: 12px;
    height: 12px;
    color: var(--eo-text-muted);
    vertical-align: -1px;
}

.eo-log-changes__old {
    color: var(--eo-text-muted);
}

/* the changes column is text, so unlike other last columns it reads from the left, head included;
   the date, who and action of a long change stay on its first line */
.eo-table:has(.eo-log-changes) tr > th:last-child,
.eo-table td:has(> .eo-log-changes) {
    text-align: left;
}

.eo-table tr:has(.eo-log-changes) > td {
    vertical-align: top;
}

.eo-table td:has(> .eo-log-changes) {
    min-width: 280px;
    max-width: 460px;
}

/* a long value (an SMS or call script) shows four lines; the full text is in its tooltip */
.eo-log-changes__old,
.eo-log-changes__new {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.eo-log-changes dd:has(.eo-log-changes__old) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 4px;
}

.eo-log-changes dd > .svg-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

/* 05 super admin panel */
/* 05 super admin: the 30 day signup line on the dashboard */
.eo-linechart {
    display: block;
    width: 100%;
    height: 120px;
    color: var(--eo-brand);
}

/* 07 storefront landing pages */
/* panel screens of modules 07 and 09 (landing editor, banners, payments) */

/* the landing editor: the form on the left, the page as the buyer sees it on the right (sticky, as tall as the
   screen). Under 1200 px the preview waits behind the form's "preview" button and opens over the whole screen */
.lp-ed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: var(--eo-space-xl);
    align-items: start;
}

.lp-ed__main {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    min-width: 0;
}

.lp-ed__show {
    display: none;
}

/* the note after a reload: unsaved edits were put back from this browser, with "discard" at the end */
.lp-draft {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-xs) var(--eo-space-xs) var(--eo-space-xs) var(--eo-space-md);
    font-size: var(--eo-fs-md);
    color: var(--eo-text);
    background: var(--eo-brand-10);
    border: 1px solid var(--eo-brand-20);
    border-radius: var(--eo-radius-lg);
    animation: lp-body-in 0.2s ease-out;
}

.lp-draft[hidden] {
    display: none;
}

.lp-draft > .svg-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--eo-brand);
}

.lp-draft > span {
    flex: 1 1 auto;
}

/* page details: name and product, link and status, then the menu switch across */
.lp-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-base) var(--eo-space-lg);
}

.lp-info .eo-field {
    margin: 0;
}

.lp-info__wide {
    grid-column: 1 / -1;
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

/* a short choice as radios in one grey row, the picked one white (landing status, checkout "who pays ahead") */
.eo-seg-pick {
    display: flex;
    gap: 2px;
    height: var(--eo-control-h);
    padding: 3px;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.eo-seg-pick__item {
    position: relative;
    flex: 1 1 0;
    margin: 0;
    cursor: pointer;
}

.eo-seg-pick__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-seg-pick__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    white-space: nowrap;
    border-radius: var(--eo-radius-sm);
}

.eo-seg-pick__item:hover span {
    color: var(--eo-text);
}

.eo-seg-pick__item input:checked + span {
    color: var(--eo-text);
    background: var(--eo-surface);
    box-shadow: 0 0 0 1px var(--eo-border);
}

.eo-seg-pick__item input:focus-visible + span {
    outline: 2px solid var(--eo-brand);
    outline-offset: 1px;
}

/* the sections: a title, then one row per section with a "+" between rows */
.lp-secs__title {
    margin: 0 0 var(--eo-space-sm);
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.lp-secs__list {
    display: flex;
    flex-direction: column;
}

.lp-sec {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.lp-sec.is-open {
    border-color: var(--eo-border-strong);
}

.lp-sec:has(.is-invalid) {
    border-color: var(--eo-danger);
}

.lp-sec.is-dragging {
    opacity: 0.45;
    border-style: dashed;
    border-color: var(--eo-brand);
}

.lp-sec[data-block-locked] {
    background: var(--eo-surface-2);
}

.lp-sec__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-2xs);
    min-height: 60px;
    padding: 0 var(--eo-space-sm) 0 var(--eo-space-2xs);
}

.lp-sec__grip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 40px;
    color: var(--eo-text-subtle);
    cursor: grab;
    border-radius: var(--eo-radius-sm);
}

.lp-sec__grip:hover {
    color: var(--eo-text-2);
    background: var(--eo-bg-hover);
}

.lp-sec__grip:active {
    cursor: grabbing;
}

.lp-sec__grip.is-locked {
    cursor: default;
    background: none;
}

.lp-sec__grip .svg-icon {
    width: 16px;
    height: 16px;
}

.lp-sec__toggle {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    padding: var(--eo-space-xs) var(--eo-space-sm);
    text-align: left;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: var(--eo-radius);
}

.lp-sec__toggle:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: -2px;
}

.lp-sec__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.lp-sec__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.lp-sec__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lp-sec__name {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.lp-sec__sum {
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-sec__sum:empty {
    display: none;
}

.lp-sec__chev {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--eo-text-subtle);
    transition: transform 0.15s ease;
}

.lp-sec.is-open .lp-sec__chev {
    transform: rotate(180deg);
}

.lp-sec__tools {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.lp-sec__tools .eo-btn:disabled {
    opacity: 0.3;
}

.lp-sec__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    padding: var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 calc(var(--eo-radius-lg) - 1px) calc(var(--eo-radius-lg) - 1px);
}

.lp-sec__body .eo-control {
    background: var(--eo-surface);
}

.lp-sec__body[hidden] {
    display: none;
}

.lp-sec__body > .eo-field {
    margin: 0;
}

/* the "+" between two rows: a thin strip, its round button shows on a pointer over it (always on a touch screen) */
.lp-gap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.lp-gap::before {
    position: absolute;
    top: 50%;
    right: var(--eo-space-lg);
    left: var(--eo-space-lg);
    height: 0;
    content: "";
    border-top: 1px dashed var(--eo-brand);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lp-gap__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--eo-brand);
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-brand-20);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lp-gap__btn .svg-icon {
    width: 14px;
    height: 14px;
}

.lp-gap__label {
    display: none;
}

.lp-gap:hover::before,
.lp-gap.is-open::before,
.lp-gap:hover .lp-gap__btn,
.lp-gap.is-open .lp-gap__btn,
.lp-gap__btn:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .lp-gap__btn {
        opacity: 1;
    }
}

/* the one above the order form: a wide dashed "add a section" button, always shown */
.lp-gap--main {
    height: auto;
    margin: var(--eo-space-sm) 0;
}

.lp-gap--main::before {
    display: none;
}

.lp-gap--main .lp-gap__btn {
    width: 100%;
    height: 48px;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-surface);
    border: 1px dashed var(--eo-brand-20);
    border-radius: var(--eo-radius-lg);
    opacity: 1;
}

.lp-gap--main .lp-gap__btn:hover,
.lp-gap--main.is-open .lp-gap__btn {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.lp-gap--main .lp-gap__label {
    display: inline;
}

.lp-secs__list.is-full .lp-gap {
    display: none;
}

/* the add menu: opens in place under the "+" that was tapped, one tile per section type */
.lp-add {
    margin: 0 0 var(--eo-space-sm);
    padding: var(--eo-space-md);
    background: var(--eo-surface);
    border: 1px solid var(--eo-brand-20);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
}

.lp-add[hidden] {
    display: none;
}

.lp-add__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--eo-space-xs);
}

.lp-add__tile {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-height: 48px;
    padding: var(--eo-space-xs) var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-align: left;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lp-add__tile:hover,
.lp-add__tile:focus-visible {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand-20);
}

.lp-add__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.lp-add__icon .svg-icon {
    width: 16px;
    height: 16px;
}

/* list rows: a mark, the box (or a question with its answer under it), and a small x */
.lp-items {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
}

.lp-item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

.lp-item > .eo-control {
    flex: 1 1 auto;
    min-width: 0;
}

.lp-item__mark {
    display: flex;
    flex: 0 0 auto;
    color: var(--eo-brand);
}

.lp-item__mark .svg-icon {
    width: 16px;
    height: 16px;
}

.lp-item--faq {
    align-items: flex-start;
    padding: var(--eo-space-sm);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.lp-item--faq .lp-item__mark {
    padding-top: 10px;
}

.lp-item__pair {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
    flex: 1 1 auto;
    min-width: 0;
}

.lp-item__pair textarea {
    resize: vertical;
}

.lp-items__add {
    align-self: flex-start;
    margin-top: var(--eo-space-xs);
}

.lp-items__add[hidden] {
    display: none;
}

/* a section's picture. Empty: a wide dashed box (icon, "add a picture", the allowed files) that also takes a dropped
   file. Filled: the picture whole in a tile, "change" over it on a pointer, the file line and "remove" beside it */
.lp-pick {
    display: flex;
    align-items: center;
    gap: var(--eo-space-lg);
}

.lp-pick__tile {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 150px;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lp-pick__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.lp-pick__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lp-pick__over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: #FFFFFF;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lp-pick__over .svg-icon {
    width: 16px;
    height: 16px;
}

.lp-pick__tile:hover .lp-pick__over,
.lp-pick__tile:focus-within .lp-pick__over {
    opacity: 1;
}

.lp-pick__blank {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--eo-space-base);
    text-align: center;
}

.lp-pick__blank-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.lp-pick__blank-icon .svg-icon {
    width: 20px;
    height: 20px;
}

.lp-pick__blank-title {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.lp-pick__blank-hint,
.lp-pick__hint {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.lp-pick__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-sm);
}

.lp-pick.is-empty .lp-pick__tile {
    width: 100%;
    height: 160px;
    border: 1px dashed var(--eo-border-strong);
}

.lp-pick.is-empty .lp-pick__tile:hover,
.lp-pick.is-empty .lp-pick__tile:focus-within,
.lp-pick.is-over .lp-pick__tile {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.lp-pick.is-empty .lp-pick__tile:hover .lp-pick__blank-icon,
.lp-pick.is-over .lp-pick__blank-icon {
    transform: translateY(-2px) scale(1.06);
}

.lp-pick.is-empty .lp-pick__blank {
    display: flex;
}

.lp-pick.is-empty .lp-pick__img,
.lp-pick.is-empty .lp-pick__over,
.lp-pick.is-empty .lp-pick__side {
    display: none;
}

.lp-pick:not(.is-empty) .lp-pick__tile:hover {
    border-color: var(--eo-brand);
}

/* a little motion: the "+" turns into an x and its dashed line grows out from the middle, the menu drops in with
   its tiles one after another, an opened section slides open, a new section glows once where it landed */
.lp-gap::before {
    transform: scaleX(0);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.lp-gap:hover::before,
.lp-gap.is-open::before {
    transform: scaleX(1);
}

.lp-gap__btn {
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.lp-gap:not(.lp-gap--main) .lp-gap__btn:hover {
    transform: scale(1.12);
}

.lp-gap.is-open:not(.lp-gap--main) .lp-gap__btn {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.lp-gap__btn .svg-icon {
    transition: transform 0.2s ease;
}

.lp-gap.is-open .lp-gap__btn .svg-icon {
    transform: rotate(45deg);
}

.lp-add:not([hidden]) {
    animation: lp-menu-in 0.2s ease-out;
    transform-origin: 50% 0;
}

.lp-add:not([hidden]) .lp-add__tile {
    animation: lp-tile-in 0.22s ease-out both;
}

.lp-add__tile:nth-child(2) { animation-delay: 0.02s; }
.lp-add__tile:nth-child(3) { animation-delay: 0.04s; }
.lp-add__tile:nth-child(4) { animation-delay: 0.06s; }
.lp-add__tile:nth-child(5) { animation-delay: 0.08s; }
.lp-add__tile:nth-child(6) { animation-delay: 0.1s; }
.lp-add__tile:nth-child(7) { animation-delay: 0.12s; }

.lp-add__tile .lp-add__icon {
    transition: transform 0.15s ease;
}

.lp-add__tile:hover .lp-add__icon {
    transform: scale(1.1);
}

.lp-sec__body:not([hidden]) {
    animation: lp-body-in 0.2s ease-out;
}

.lp-sec.is-new {
    animation: lp-new 1.2s ease-out;
}

@keyframes lp-menu-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lp-tile-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lp-body-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lp-new {
    0% {
        border-color: var(--eo-brand);
        box-shadow: 0 0 0 4px var(--eo-brand-20);
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-add:not([hidden]),
    .lp-add:not([hidden]) .lp-add__tile,
    .lp-sec__body:not([hidden]),
    .lp-sec.is-new {
        animation: none;
    }

    .lp-gap::before,
    .lp-gap__btn,
    .lp-gap__btn .svg-icon {
        transition: none;
    }
}

/* the preview column */
.lp-ed__preview {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-space-base));
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--eo-topbar-h) - 2 * var(--eo-space-base));
    min-height: 480px;
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.lp-pv__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-sm) var(--eo-space-sm) var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.lp-pv__title {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* a small dot: pulsing while the page is drawn again, red when it could not be fetched */
.lp-pv__state {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lp-pv__state[data-state="busy"] {
    background: var(--eo-brand);
    animation: lp-pulse 0.9s ease-in-out infinite alternate;
}

.lp-pv__state[data-state="error"] {
    background: var(--eo-danger);
}

@keyframes lp-pulse {
    from {
        opacity: 0.25;
    }

    to {
        opacity: 1;
    }
}

.lp-pv__close {
    display: none;
}

.lp-pv__stage {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    background: var(--eo-surface-2);
}

.lp-pv__frame {
    position: absolute;
    display: block;
    background: #FFFFFF;
    border: 0;
    transform-origin: 0 0;
}

.lp-pv__frame.is-loading {
    visibility: hidden;
}

.lp-pv__stage[data-mode="phone"] .lp-pv__frame {
    border: 1px solid var(--eo-border-strong);
    border-radius: 18px;
}

.lp-pv__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: var(--eo-space-xl);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
    text-align: center;
}

.lp-pv__empty[hidden] {
    display: none;
}

.lp-pv__empty .svg-icon {
    width: 28px;
    height: 28px;
    color: var(--eo-text-subtle);
}

@media (max-width: 1199.98px) {
    .lp-ed {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-ed__show {
        display: inline-flex;
    }

    .lp-ed__preview {
        display: none;
    }

    .lp-ed.is-previewing .lp-ed__preview {
        position: fixed;
        inset: 0;
        z-index: calc(var(--eo-z-toast) - 1);
        display: flex;
        height: auto;
        min-height: 0;
        border: 0;
        border-radius: 0;
    }

    .lp-pv__close {
        display: inline-flex;
    }

    body.lp-preview-open {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .lp-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-sec__head {
        padding-right: var(--eo-space-2xs);
    }

    .lp-sec__toggle {
        gap: var(--eo-space-sm);
        padding-right: var(--eo-space-2xs);
    }

    .lp-sec__icon {
        display: none;
    }

    .lp-sec__body {
        padding: var(--eo-space-md);
    }

    .lp-sec__body {
        gap: var(--eo-space-base);
    }

    .lp-pick {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--eo-space-sm);
    }

    .lp-pick__tile {
        width: 100%;
    }

    .lp-pv__modes .eo-segment__item span {
        display: none;
    }

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

.sf-admin-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--eo-radius-sm);
    margin-right: var(--eo-space-2xs);
}

/* 10 pos */
/* ========================================================================== */
/* 10 POS: full width sell screen, no side menu; works on a 1366 px laptop and a 10 inch tablet */
/* ========================================================================== */

.pos {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--eo-bg);
}

.pos__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-base);
    background: var(--eo-surface);
    border-bottom: 1px solid var(--eo-border);
}

/* the drawer amount in the sell screen's bar: always in view while selling */
.pos__drawer {
    display: inline-flex;
    align-items: baseline;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-2xs) var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pos__drawer strong {
    font-size: var(--eo-fs-lg);
    font-variant-numeric: tabular-nums;
}

/* close form: what should be there and the difference from the count */
.pos-close {
    margin: 0;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pos-close__row {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.pos-close__row + .pos-close__row {
    border-top: 1px solid var(--eo-border);
}

.pos-close dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.pos-close dd {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
}

.pos-close dd.is-short { color: var(--eo-danger-strong); }
.pos-close dd.is-over { color: var(--eo-warning-strong); }
.pos-close dd.is-matched { color: var(--eo-success-strong); }

.pos__title {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    line-height: var(--eo-lh-tight);
}

/* the bar's left: a quiet back icon, a hairline, then the name with the counter and shop under it */
.pos__back {
    color: var(--eo-text-muted);
}

.pos__divider {
    align-self: stretch;
    width: 1px;
    margin: var(--eo-space-2xs) 0;
    background: var(--eo-border);
}

.pos__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pos__where {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-2xs);
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pos__where .svg-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.pos__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
    flex: 1;
    min-height: 0;
    padding: var(--eo-space-base);
}

/* from a tablet up the cart sits beside the products; it keeps a steady width (about a third, never past 500px) */
@media (min-width: 768px) {
    .pos__body { grid-template-columns: minmax(0, 1fr) clamp(320px, 32%, 500px); }
}

/* a phone sells by search and scan: the search box alone on top, results under it only while something is typed, and
   the cart gets the rest of the screen */
@media (max-width: 767.98px) {
    .pos__body {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .pos .pos__chips,
    .pos:not(.is-searching) .pos__grid {
        display: none;
    }

    /* the bar stays one line: the shop line shortens with dots instead of pushing the buttons down */
    .pos .pos__bar {
        flex-wrap: nowrap;
        gap: var(--eo-space-sm);
    }

    .pos .pos__divider {
        display: none;
    }

    .pos .pos__heading {
        flex: 1 1 auto;
    }

    .pos .pos__title,
    .pos .pos__where {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pos .pos__drawer {
        flex: none;
        white-space: nowrap;
    }

    /* the results float over the cart like a dropdown under the search box, so the cart never shrinks */
    .pos .pos__body > .pos__panel:first-child {
        position: relative;
        z-index: var(--eo-z-formbar);
    }

    .pos.is-searching .pos__grid {
        position: absolute;
        top: calc(100% + var(--eo-space-2xs));
        left: 0;
        right: 0;
        max-height: 65vh;
        background: var(--eo-surface);
        border: 1px solid var(--eo-border);
        border-radius: var(--eo-radius);
        box-shadow: var(--eo-shadow-float);
        /* a list, not cards: one row per product with a small photo, the name, then price and stock */
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0;
    }

    .pos.is-searching .pos__product {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-areas:
            "img name"
            "img meta";
        align-items: center;
        column-gap: var(--eo-space-md);
        row-gap: 2px;
        min-height: 0;
        padding: var(--eo-space-sm) var(--eo-space-md);
        border: 0;
        border-bottom: 1px solid var(--eo-border);
        border-radius: 0;
    }

    .pos.is-searching .pos__product:last-child {
        border-bottom: 0;
    }

    .pos.is-searching .pos__product.is-in-cart {
        box-shadow: inset 3px 0 0 var(--eo-brand);
    }

    .pos.is-searching .pos__product-img {
        grid-area: img;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .pos.is-searching .pos__product-name {
        grid-area: name;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .pos.is-searching .pos__product-meta {
        grid-area: meta;
        margin: 0;
    }

    /* the count in the cart sits small on the photo's corner */
    .pos.is-searching .pos__product-badge {
        top: 2px;
        right: 2px;
        min-width: 18px;
        height: 18px;
        font-size: var(--eo-fs-xs);
    }
}

.pos__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pos__panel-head {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
    border-bottom: 1px solid var(--eo-border);
}

/* the category row slides sideways by touch, mouse drag or wheel; no scrollbar under it (same as the filter pills) */
.pos__chips {
    display: flex;
    gap: var(--eo-space-xs);
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.pos__chips::-webkit-scrollbar {
    display: none;
}

.pos__chips.is-dragging {
    cursor: grabbing;
}

.pos__chip {
    flex: none;
    padding: var(--eo-space-2xs) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
    cursor: pointer;
}

.pos__chip.is-active {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.pos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    /* each row as tall as its tile (square photo + name + price), so the next row never covers the text */
    grid-auto-rows: max-content;
    align-content: start;
    gap: var(--eo-space-base);
    padding: var(--eo-space-md);
    overflow-y: auto;
    /* the side panels' thin, soft bar (.eo-sidepanel__body) */
    scrollbar-width: thin;
    scrollbar-color: var(--eo-border-strong) transparent;
}

/* a wide screen gets the larger cards; a tablet keeps two side by side next to the cart */
@media (min-width: 1200px) {
    .pos__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* a phone: two smaller cards a row with a tighter gap, not one card filling the width */
@media (max-width: 575.98px) {
    .pos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--eo-space-sm);
    }
}

.pos__grid::-webkit-scrollbar {
    width: 8px;
}

.pos__grid::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
    border: 2px solid var(--eo-surface);
    border-radius: 8px;
}

.pos__grid::-webkit-scrollbar-track {
    background: transparent;
}

/* nothing found: one centred message across the whole grid, not a word-wrapped line in the first cell */
.pos__empty {
    grid-column: 1 / -1;
    padding: var(--eo-space-2xl) var(--eo-space-base);
    text-align: center;
}

.pos__product {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    min-height: 88px;
    padding: var(--eo-space-sm);
    text-align: left;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
    cursor: pointer;
}

.pos__product:hover,
.pos__product:focus-visible {
    border-color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.pos__product.is-out {
    opacity: 0.55;
}

/* a tile already in the cart: a green edge and its quantity on the photo's corner */
.pos__product.is-in-cart {
    border-color: var(--eo-brand);
}

.pos__product-badge {
    position: absolute;
    top: var(--eo-space-xs);
    right: var(--eo-space-xs);
    min-width: 24px;
    height: 24px;
    padding: 0 var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-bold);
    line-height: 24px;
    text-align: center;
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-radius: var(--eo-radius-pill);
    box-shadow: 0 0 0 2px var(--eo-surface);
    font-variant-numeric: tabular-nums;
}

/* square photo on top of the tile; the same square pulses while loading */
/* flex-shrink 0: in a tall grid the tile is a flex column and would squash the picture into a thin strip */
.pos__product-img {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: var(--eo-space-sm);
    overflow: hidden;
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius-sm);
}

.pos__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos__product--skel {
    cursor: default;
    pointer-events: none;
}

.pos__product--skel .eo-skel + .eo-skel {
    margin-top: var(--eo-space-2xs);
}

.pos__product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    line-height: var(--eo-lh-tight);
}

.pos__product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the price reads first: dark and bold, the stock beside it stays grey */
.pos__product-meta > span:first-child {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.pos__cart {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* an empty cart: its message sits in the middle of the cart's space, not stuck to the top */
.pos__cart:has(> .eo-empty) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* the two customer boxes one under the other at every size: side by side in the widest cart (500px) their hints
   ("কাস্টমারের মোবাইল (না দিলেও চলবে)") were cut off */
.pos__customer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-sm);
}

/* the cart's own small head: "কার্ট ৪টি প্রোডাক্ট" and the start over button */
.pos__cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-xs) var(--eo-space-md);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.pos__cart-head[hidden] {
    display: none;
}

.pos__cart-title {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-weight: var(--eo-fw-semibold);
}

/* one cart line: photo, name with price per unit (and the discount link), the − qty + stepper, the total, the bin */
.pos__line {
    display: grid;
    /* the total column is just wide enough for "৳ 99,999", so it sits close to the stepper and still lines up row to row */
    grid-template-columns: 36px minmax(0, 1fr) auto minmax(72px, auto) auto;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    border-bottom: 1px solid var(--eo-border);
    cursor: pointer;
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.pos__line:hover {
    background: var(--eo-surface-2);
}

/* the line the keyboard + and - act on: a thin bar only, no tint */
.pos__line.is-selected {
    box-shadow: inset 3px 0 0 var(--eo-brand);
}

.pos__line-thumb {
    width: 36px;
    height: 36px;
    overflow: hidden;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.pos__line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos__line-info {
    min-width: 0;
}

.pos__line-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    line-height: var(--eo-lh-tight);
}

.pos__line-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-2xs) var(--eo-space-sm);
    margin-top: 2px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* the line discount as a quiet link; once set it reads "৳ 200 ছাড়" in green */
.pos__line-disc {
    padding: 0;
    font: inherit;
    color: var(--eo-brand);
    background: none;
    border: 0;
    cursor: pointer;
}

.pos__line-disc:hover {
    text-decoration: underline;
}

.pos__line-disc.is-set {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-success-strong);
}

/* the taka | percent switch: the right end of the discount box's input group, its two sides as segment items */
.pos__disc-type {
    align-items: stretch;
    gap: 2px;
    padding: 2px;
}

/* the two sides fill the addon's height inside its 2px padding, never past its border */
.pos__disc-type .eo-segment__item {
    height: auto;
    padding: 0 var(--eo-space-sm);
}

/* a discount box with its taka | percent switch focuses as one: one brand border and ring round the whole group */
.eo-input-group:has(.pos__disc-type):focus-within {
    border-radius: var(--eo-radius);
    box-shadow: var(--eo-focus);
}

.eo-input-group:has(.pos__disc-type):focus-within > * {
    border-color: var(--eo-brand);
}

.eo-input-group:has(.pos__disc-type) > .eo-control:focus {
    box-shadow: none;
}

/* − qty +: one bordered control, the buttons big enough for a finger on a tablet */
.pos__stepper {
    display: inline-flex;
    align-items: stretch;
    height: var(--eo-control-h-sm);
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong);
    border-radius: var(--eo-radius);
}

.pos__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    padding: 0;
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border: 0;
    cursor: pointer;
    transition: background-color var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease);
}

.pos__step:hover:not(:disabled) {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

/* the whole stock is already in the cart */
.pos__step:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pos__step .svg-icon {
    width: 16px;
    height: 16px;
}

.pos__step-qty {
    width: 48px;
    padding: 0 var(--eo-space-2xs);
    font: inherit;
    font-weight: var(--eo-fw-semibold);
    text-align: center;
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 0;
    border-inline: 1px solid var(--eo-border);
    outline: none;
    font-variant-numeric: tabular-nums;
}

.pos__line-total {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* a small bin: a quiet 28px square beside the total, not a full button */
.pos__line-remove.eo-btn {
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    color: var(--eo-text-subtle);
}

.pos__line-remove .svg-icon {
    width: 15px;
    height: 15px;
}

.pos__line-remove:hover {
    color: var(--eo-danger-strong);
}

/* a tablet-wide bar keeps one line: the drawer shows its amount alone and the close button its lock alone (the words
   stay in their tooltips) */
@media (max-width: 991.98px) {
    .pos__bar-label {
        display: none;
    }
}

/* the counters list's grey rows, sized like the real cells: the 32px letter tile, a name, a short status, the ⋮ button */
.pos-open-skel__tile {
    flex: none;
    width: 32px;
    height: 32px;
}

/* one-line cells have no width of their own, so every grey bar here has a fixed one */
.pos-open-skel__name {
    flex: none;
    width: 160px;
}

.pos-open-skel__status {
    width: 72px;
}

.pos-open-skel__btn {
    width: 32px;
    height: 32px;
    margin-left: auto;
}

/* a phone card has the whole width for the counter's name: the sliding list's 55% cap cut "কাউন্টার 1" and "কাউন্টার 2"
   to the same "ধানমন্ডি শোরুম কাউ…" */
@media (max-width: 575.98px) {
    .eo-table-wrap--cards.pos-list:not(#eo-cards) > .eo-table > tbody > tr > td:first-child > * {
        max-width: none;
    }
}

/* the shift list's grey rows: a cell's two lines (name over cashier, opened over closed) and an amount's short bar */
.pos-skel__lines {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pos-skel__sub {
    width: 90px;
    height: 10px;
}

.pos-skel__amount {
    width: 56px;
}

.pos-skel__text {
    width: 130px;
}

.pos-skel__text--short {
    width: 100px;
}

/* the shift page's boxes keep their small line under the figure on one line, ending in "…" if it is ever too long */
.pos-shift-facts .pd-fact p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the shift page's six boxes: three a row on a tablet and a laptop (all six in one row only on a wide screen), a fine line
   between rows; the phone keeps its one-a-row stack */
@media (min-width: 576px) and (max-width: 1599.98px) {
    .pd-facts.pos-shift-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pd-facts.pos-shift-facts > .pd-fact {
        border-top: 1px solid var(--eo-border);
        border-left: 1px solid var(--eo-border);
    }

    .pd-facts.pos-shift-facts > .pd-fact:nth-child(-n + 3) {
        border-top: 0;
    }

    .pd-facts.pos-shift-facts > .pd-fact:nth-child(3n + 1) {
        border-left: 0;
    }

    /* an open shift has four: the last one takes the rest of its row */
    .pd-facts.pos-shift-facts > .pd-fact:last-child:nth-child(3n + 1) {
        grid-column: 1 / -1;
    }
}

/* an open shift's four boxes: two a row on a tablet, all four in one row on a laptop, so no box sits alone on a row */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .pd-facts.pos-shift-facts.pos-shift-facts--open {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-facts.pos-shift-facts.pos-shift-facts--open > .pd-fact:nth-child(n) {
        grid-column: auto;
        border-top: 1px solid var(--eo-border);
        border-left: 1px solid var(--eo-border);
    }

    .pd-facts.pos-shift-facts.pos-shift-facts--open > .pd-fact:nth-child(-n + 2) {
        border-top: 0;
    }

    .pd-facts.pos-shift-facts.pos-shift-facts--open > .pd-fact:nth-child(odd) {
        border-left: 0;
    }
}

@media (min-width: 1200px) {
    .pd-facts.pos-shift-facts.pos-shift-facts--open {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pd-facts.pos-shift-facts.pos-shift-facts--open > .pd-fact:nth-child(n) {
        grid-column: auto;
        border-top: 0;
        border-left: 1px solid var(--eo-border);
    }

    .pd-facts.pos-shift-facts.pos-shift-facts--open > .pd-fact:first-child {
        border-left: 0;
    }
}

/* the shift page's "other methods" box opens its list: the whole box is the button, greyed on hover (as on Daraz) */
.pos-shift-fact {
    position: relative;
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.pos-shift-fact:hover {
    background: var(--eo-surface-2);
}

.pos-shift-fact__open {
    position: absolute;
    inset: 0;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.pos-shift-fact__open:focus-visible {
    outline: none;
    box-shadow: inset var(--eo-focus);
}

/* the cart's own width decides its lines' layout, so a phone and a tablet with the cart beside the products both fit */
.pos__panel--cart {
    container-type: inline-size;
}

/* a narrow cart: the two customer boxes stack, and the stepper and the total move under the name */
@container (max-width: 440px) {
    .pos__customer {
        grid-template-columns: minmax(0, 1fr);
    }

    .pos__line {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb info remove"
            "thumb step total";
    }

    .pos__line-thumb { grid-area: thumb; }
    .pos__line-info { grid-area: info; }
    .pos__stepper { grid-area: step; justify-self: start; }
    .pos__line-total { grid-area: total; }
    .pos__line-remove { grid-area: remove; }
}

.pos__totals {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

.pos__total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--eo-space-2xs) 0;
    font-size: var(--eo-fs-md);
}

.pos__totals .pos__total-row {
    padding: 0;
}

.pos__total-row--grand {
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
}

.pos__pay {
    min-height: var(--eo-control-h-lg);
    font-size: var(--eo-fs-xl);
}

.pos__methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: var(--eo-space-xs);
}

.pos__methods .eo-btn[aria-pressed="true"] {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

/* the pay window: narrower than a large modal, wide enough for the five methods in one row */
.pos-pay-modal .modal-dialog {
    --bs-modal-width: 560px;
}

.pos-pay-modal .pos__methods {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

/* the line-discount window: the product with its photo, then the box and the sums */
.pos-disc__item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
}

.pos-disc__thumb {
    flex: none;
    width: 48px;
    height: 48px;
}

.pos-disc__text {
    min-width: 0;
}

.pos-disc__name {
    font-weight: var(--eo-fw-medium);
    line-height: var(--eo-lh-tight);
}

.pos-disc__meta {
    margin-top: 2px;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

/* the bill: the order page's sums in a plain bordered box, no tint (two classes, so it wins over .eo-od-sums further down) */
.eo-od-sums.pos-pay__bill {
    background: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

/* the pay window's "to take": bold and a step larger than the rows above */
.pos-pay-modal .eo-od-sums.pos-pay__bill .eo-od-sums__total dt,
.pos-pay-modal .eo-od-sums.pos-pay__bill .eo-od-sums__total dd {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
}

/* the close and discount windows: each total the rows' own size, set apart by its weight and the dashed line only */
.eo-od-sums.pos-pay__bill .eo-od-sums__total dt,
.eo-od-sums.pos-pay__bill .eo-od-sums__total dd {
    font-weight: var(--eo-fw-semibold);
}

/* the shift summary keeps the same space below it as between its own two boxes */
.pos-close-sum {
    margin-bottom: var(--eo-space-base);
}

/* the sell screen's windows scroll with the side panels' thin, soft bar */
#posPay .modal-body,
#posClose .modal-body,
#posCash .modal-body,
#posLineDisc .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--eo-border-strong) transparent;
}

#posPay .modal-body::-webkit-scrollbar,
#posClose .modal-body::-webkit-scrollbar,
#posCash .modal-body::-webkit-scrollbar,
#posLineDisc .modal-body::-webkit-scrollbar {
    width: 8px;
}

#posPay .modal-body::-webkit-scrollbar-thumb,
#posClose .modal-body::-webkit-scrollbar-thumb,
#posCash .modal-body::-webkit-scrollbar-thumb,
#posLineDisc .modal-body::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
    border: 2px solid var(--eo-surface);
    border-radius: 8px;
}

#posPay .modal-body::-webkit-scrollbar-track,
#posClose .modal-body::-webkit-scrollbar-track,
#posCash .modal-body::-webkit-scrollbar-track,
#posLineDisc .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

/* each box's total line: the label as bold and dark as its amount (.eo-dl dt is otherwise light and grey) */
.pos-close-sum .eo-dl--amounts dt.eo-strong {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.pos-pay__rows {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.pos-pay__row {
    display: flex;
}

/* the x is the box's last part; with a single payment it goes and the account side takes the round corners */
.pos-pay__row.is-only [data-pos-split-remove] {
    display: none;
}

.pos-pay__row.is-only .pos-pay__group > :nth-last-child(2) {
    border-top-right-radius: var(--eo-radius);
    border-bottom-right-radius: var(--eo-radius);
}

.pos-pay__group > .pos-pay__remove {
    flex: none;
    width: var(--eo-control-h-lg);
    color: var(--eo-text-muted);
}

.pos-pay__group > .pos-pay__remove:hover {
    color: var(--eo-danger-strong);
}

/* method | amount | account as one box, the amount the widest and boldest part */
.pos-pay__group {
    flex: 1 1 auto;
    min-width: 0;
}

.pos-pay__group > .eo-control,
.pos-pay__group > .eo-input-group__addon {
    height: var(--eo-control-h-lg);
}

.pos-pay__method {
    flex: none;
    min-width: 84px;
    color: var(--eo-text);
    font-weight: var(--eo-fw-medium);
}

.pos-pay__amount {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
}

/* two classes: the input group's own .eo-control rule would otherwise stretch the amount over it */
.pos-pay__group > .pos-pay__pick {
    flex: 0 0 190px;
    /* the amount box and the dropdown share one border line instead of two side by side */
    margin-left: -1px;
    width: auto;
    font-size: var(--eo-fs-sm);
}

/* the account a line goes to when there is nothing to pick (cash, or one account of that kind) */
.pos-pay__account {
    display: block;
    flex: 0 0 190px;
    margin-left: -1px;
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    line-height: calc(var(--eo-control-h-lg) - 2px);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-pay__notes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
}

.pos-pay__notes[hidden] {
    display: none;
}

.pos-pay__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.pos-pay__box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pos-pay__box strong {
    color: var(--eo-text);
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
}

.pos-pay__box.is-short strong {
    color: var(--eo-warning-strong);
}

.pos-pay__box.is-change strong {
    color: var(--eo-success-strong);
}

@media (max-width: 575.98px) {
    .pos-pay__method {
        min-width: 0;
    }

    /* the group's own rule (two classes) set 190px, which left the amount a sliver on a phone */
    .pos-pay__group > .pos-pay__pick,
    .pos-pay__group > .pos-pay__account {
        flex-basis: 120px;
    }
}

/* 58 or 80 mm receipt printed with window.print() */
.pos-receipt {
    margin: 0 auto;
    padding: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    color: #000000;
    background: #FFFFFF;
}

.pos-receipt--80 { width: 80mm; }

.pos-receipt--58 { width: 58mm; }

.pos-receipt__center {
    text-align: center;
}

.pos-receipt__title {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
}

.pos-receipt__rule {
    margin: var(--eo-space-xs) 0;
    border-top: 1px dashed #000000;
}

.pos-receipt__row {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-xs);
}

.pos-receipt__row--total {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold);
}

.pos-receipt__actions {
    display: flex;
    justify-content: center;
    gap: var(--eo-space-sm);
    margin: var(--eo-space-base) 0;
}

@media print {
    .pos-receipt__actions { display: none; }

    .pos-receipt { padding: 0; }
}

/* 13 reseller dropshipping */
/* reseller (13) and affiliate (15) portal shell on the storefront host */
.eo-portal {
    min-height: 100vh;
    background: var(--eo-bg);
}

.eo-portal__head {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: var(--eo-space-sm) var(--eo-space-base);
    background: var(--eo-surface);
    border-bottom: 1px solid var(--eo-border);
}

.eo-portal__head .eo-btn.is-active {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-portal__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    max-width: var(--eo-content-max);
    margin: 0 auto;
    padding: var(--eo-space-base);
}

.eo-portal__narrow {
    width: 100%;
    max-width: 480px;
    margin: var(--eo-space-xl) auto;
}

/* 16 order management */

/* a combo line's open parts: "টি-শার্ট" then one picker per unit; an unpicked one stays orange until chosen */
.eo-combo-picks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.eo-combo-picks__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.eo-combo-picks__name {
    min-width: 88px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-combo-picks .eo-control {
    width: auto;
    min-width: 120px;
    max-width: 180px;
}

.eo-combo-picks .eo-control.is-empty {
    color: var(--eo-warning-strong);
    border-color: var(--eo-warning);
    background-color: var(--eo-warning-10);
}

/* ORDER DESK, ORDER FORM AND ORDER DETAILS (module 16) */

/* a details page: main column and a 320px side column; below 1200px the side drops under the main one,
   since a quarter of a narrow screen squeezes names and numbers into one word per line */
.eo-grid--3-1 {
    display: grid;
    gap: var(--eo-space-lg);
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .eo-grid--3-1 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.eo-order-form {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

.eo-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--eo-space-lg);
    align-items: start;
}

.eo-order-layout__main {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    min-width: 0;
}

/* the total and the save button stay in view while the list of products grows */
.eo-order-layout__side {
    position: sticky;
    top: calc(var(--eo-topbar-h, 64px) + var(--eo-space-base));
}

.eo-order-form__save .eo-btn--primary {
    flex: 1 1 auto;
}

.eo-order-search-bar {
    padding: var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

/* a table right under it brings its own top line: one line, not two */
.eo-order-search-bar:has(+ .eo-table-wrap) {
    border-bottom: 0;
}

.eo-order-search {
    position: relative;
    width: 100%;
}

.eo-order-result {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    white-space: normal;
}

/* the product photo, so an agent picks by sight; a grey square when there is none */
.eo-order-result__img {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    color: var(--eo-text-subtle);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.eo-order-result__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eo-order-result__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.eo-order-result__name {
    font-weight: var(--eo-fw-medium);
}

.eo-order-result__sub {
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-order-result__price {
    flex: 0 0 auto;
    font-weight: var(--eo-fw-medium);
}

.eo-order-search .dropdown-menu {
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
}

/* order form discount: the amount with a ৳ / % switch joined to its right edge */
.eo-order-discount > .eo-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.eo-order-discount__type {
    display: flex;
    flex: none;
}

.eo-order-discount__type label {
    display: flex;
    margin: 0;
    cursor: pointer;
}

.eo-order-discount__type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-order-discount__type span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0 10px;
    color: var(--eo-text-muted);
    font-weight: var(--eo-fw-medium);
    background: var(--eo-bg);
    border: 1px solid var(--eo-border-strong);
    border-left: 0;
}

.eo-order-discount__type label:last-child span {
    border-top-right-radius: var(--eo-radius);
    border-bottom-right-radius: var(--eo-radius);
}

.eo-order-discount__type input:checked + span {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-order-discount__type input:focus-visible + span {
    outline: 2px solid var(--eo-brand);
    outline-offset: 1px;
}

/* order form: the usual products as shop cards under the search box; a tap on the card adds one.
   The picture fills the card's top, edge to edge; under it the name, the variation, the price. */
.eo-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--eo-space-md);
    margin-top: var(--eo-space-base);
}

.eo-pick-grid:empty {
    display: none;
}

.eo-pick-grid > .eo-empty {
    grid-column: 1 / -1;
}

.eo-pick-grid__more {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-align: center;
}

.eo-pick {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: var(--eo-text);
    text-align: left;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.eo-pick[hidden] {
    display: none;
}

/* a loading card (dashboard.js): the picture and two lines in grey, the same size as a real card */
.eo-pick.eo-pick--skel {
    cursor: default;
    pointer-events: none;
}

.eo-pick--skel .eo-pick__img.eo-skel {
    height: auto;
    border-radius: 0;
}

.eo-pick__skel-body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
}

.eo-pick:hover {
    border-color: var(--eo-brand);
}

.eo-pick:active {
    background: var(--eo-surface-2);
}

.eo-pick:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: 2px;
}

.eo-pick.is-picked {
    border-color: var(--eo-brand);
    box-shadow: 0 0 0 1px var(--eo-brand);
}

.eo-pick.is-out .eo-pick__img,
.eo-pick.is-out .eo-pick__body {
    opacity: 0.55;
}

/* the picture: a photo fills it; with none, the shared placeholder sits small on a quiet grey */
.eo-pick__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* square: most product photos (clothes) stand tall, and a short 4:3 box cut them and made the cards look flat */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.eo-pick__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* the placeholder's own ground is this grey, so the picture reads as one quiet square */
.eo-pick__img.is-empty {
    background: var(--eo-bg-hover);
}

.eo-pick__img.is-empty img {
    width: 34%;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

.eo-pick__out {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-danger-strong);
    background: var(--eo-surface);
    border-radius: var(--eo-radius-pill);
}

/* a dark green veil over the whole card: always when the order has it (a big count in the middle), on hover when it
   does not yet (a + and "যোগ করুন"); the name stays at the foot so the card is still known */
.eo-pick {
    position: relative;
}

.eo-pick__veil {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--eo-space-md);
    text-align: center;
    color: #ffffff;
    background: var(--eo-brand-deep);
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}

.eo-pick:focus-visible .eo-pick__veil,
.eo-pick.is-picked .eo-pick__veil {
    opacity: 1;
}

/* only a real mouse shows the veil on hover; on a touch screen it would stay after the tap */
@media (hover: hover) {
    .eo-pick:hover .eo-pick__veil {
        opacity: 1;
    }
}

.eo-pick__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    color: var(--eo-brand);
    background: #ffffff;
    border-radius: var(--eo-radius-pill);
}

.eo-pick__plus .svg-icon {
    width: 24px;
    height: 24px;
}

.eo-pick.is-picked .eo-pick__plus {
    display: none;
}

/* the count: big in the middle */
.eo-pick__big {
    font-size: 2.6rem;
    font-weight: var(--eo-fw-bold, 700);
    line-height: 1;
}

.eo-pick__big:empty {
    display: none;
}

.eo-pick__veil-text {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: rgb(255 255 255 / 0.9);
}

/* the name and the price join the count in the middle, bright and bold: one group, not a footer */
.eo-pick__veil-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    margin-top: 12px;
    text-align: center;
}

.eo-pick__veil-name {
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-pick__veil-price {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold, 700);
    color: #ffffff;
}

.eo-pick.is-picked {
    border-color: var(--eo-brand-strong);
    box-shadow: none;
}

/* out of stock: no veil, the card says it cannot be added */
.eo-pick.is-out:not(.is-picked) .eo-pick__veil {
    display: none;
}

.eo-pick__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
    min-width: 0;
}

.eo-pick__name {
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the variation: one quiet chip per option, on one line; a product with none keeps the same height */
.eo-pick__chips {
    display: flex;
    gap: 4px;
    overflow: hidden;
}

/* nothing to say (no variation, no stock kept): no blank row; the price still sits at the card's foot */
.eo-pick__chips:empty {
    display: none;
}

.eo-pick__chip.is-out {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

.eo-pick__chip {
    flex-shrink: 0;
    max-width: 100%;
    padding: 1px 7px;
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    line-height: 20px;
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

.eo-pick__price {
    margin-top: auto;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold, 700);
    line-height: 1.3;
    color: var(--eo-text);
}

/* where it goes: two halves of one control, the area on top and its charge under it */
.eo-order-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 2px;
    padding: 3px;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

/* one slim line each: the side and its charge side by side */
.eo-order-zone button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius-sm);
}

.eo-order-zone button span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-order-zone button strong {
    flex-shrink: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
}

.eo-order-zone button:hover {
    color: var(--eo-text);
}

.eo-order-zone button.is-active {
    color: var(--eo-brand);
    font-weight: var(--eo-fw-medium);
    background: var(--eo-surface);
    box-shadow: 0 0 0 1px var(--eo-border);
}

.eo-order-zone button.is-active strong {
    color: var(--eo-brand);
}

.eo-order-zone button:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: 1px;
}

/* the totals: quiet lines, then the total over a line and larger */
.eo-order-totals {
    margin: 0;
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

.eo-order-totals .eo-order-totals__grand {
    padding-top: var(--eo-space-sm);
    margin-top: var(--eo-space-xs);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    border-top: 1px dashed var(--eo-border);
}

dd.eo-order-totals__grand {
    font-size: var(--eo-fs-lg);
}

/* save and cancel share one row: cancel at its own size on the left, the main button takes the rest on the right */
.eo-order-form__save {
    flex-wrap: nowrap;
}

.eo-order-form__save .eo-btn--cancel {
    flex: 0 0 auto;
}

/* the address box keeps to its two lines */
.eo-order-form textarea[name="address"] {
    min-height: 0;
}

/* ORDER FORM AS A CART: the customer and the products to pick on the left; on the right, in view while the page
   scrolls, the order itself (lines with − qty +, price and total), where it goes, the money and save */
.ofx {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: var(--eo-space-lg);
    align-items: start;
}

.ofx__main {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    min-width: 0;
}

.ofx__cart {
    position: sticky;
    top: calc(var(--eo-topbar-h, 64px) + var(--eo-space-base));
    min-width: 0;
}

/* the cart card: its own height at most, the lines scroll when many */
.ofx-cart {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--eo-topbar-h, 64px) - var(--eo-space-base) * 2);
}

.ofx-cart__count {
    flex-shrink: 0;
    padding: 2px 10px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

/* lines, money and the rare fields scroll together inside the card; the save row stays at its foot */
.ofx-cart__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* many lines scroll on their own, so the money under them is never far */
.ofx-lines {
    max-height: 46vh;
    overflow-y: auto;
    border-top: 1px solid var(--eo-border);
}

/* the rare parts behind "+" buttons: a row of small dashed buttons; a tap turns one into its field */
.ofx-adds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ofx-adds[hidden],
.ofx-add[hidden],
[data-reveal-box][hidden] {
    display: none;
}

.ofx-add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px 0 8px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-2);
    background: var(--eo-surface);
    border: 1px dashed var(--eo-border-strong, var(--eo-border));
    border-radius: var(--eo-radius-pill);
    cursor: pointer;
}

.ofx-add .svg-icon {
    width: 14px;
    height: 14px;
}

.ofx-extras .ofx-add {
    height: 26px;
    padding: 0 9px 0 7px;
    font-size: var(--eo-fs-xs);
}

.ofx-add:hover {
    color: var(--eo-brand);
    border-color: var(--eo-brand);
}

/* the × that closes an opened field */
.ofx-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--eo-text-muted);
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
    cursor: pointer;
}

.ofx-x:hover {
    color: var(--eo-danger-strong);
    background: var(--eo-bg-hover);
}

.ofx-x .svg-icon {
    width: 16px;
    height: 16px;
}

/* cart: one slim row per opened money part: its name, a small field, the ×; 30px high, close together */
.ofx-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 0;
}

.ofx-extra[hidden] {
    display: none;
}

.ofx-extra {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 22px;
    align-items: center;
    gap: 2px 6px;
}

.ofx-extra .ofx-row__label {
    font-size: var(--eo-fs-sm);
    line-height: 1.3;
    /* the Bangla line box sits high next to a 30px box */
    padding-top: 2px;
}

.ofx-extra__name {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ofx-extra .eo-control,
.ofx-extra .eo-input-group__addon,
.ofx-extra .eo-order-discount__type span {
    height: 30px;
    min-height: 30px;
    font-size: var(--eo-fs-sm);
}

.ofx-extra .eo-control {
    padding: 0 8px;
}

.ofx-extra .eo-input-group__addon {
    padding: 0 8px;
}

.ofx-extra .eo-order-discount__type span {
    min-width: 28px;
    padding: 0 6px;
}

.ofx-extra .ofx-x {
    width: 22px;
    height: 22px;
}

.ofx-extra .ofx-x .svg-icon {
    width: 14px;
    height: 14px;
}

.ofx-extra__mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: var(--eo-fs-xs);
    line-height: 1.3;
    color: var(--eo-text-muted);
    cursor: pointer;
}

.ofx-extra__mode input {
    width: 12px;
    height: 12px;
    margin: 0;
    accent-color: var(--eo-brand);
}

.ofx-extra__error {
    grid-column: 1 / -1;
    margin: 0;
}

.ofx-extra__error:empty {
    display: none;
}

.eo-order-totals [data-total-row][hidden] {
    display: none;
}

/* customer card: the notes and the agent, two to a row when open, the "+" buttons under them */
.ofx-cust__extra {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
}

.ofx-cust__notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-md) var(--eo-space-base);
}

.ofx-cust__notes:not(:has(> :not([hidden]))) {
    display: none;
}

.ofx-note {
    position: relative;
    min-width: 0;
}

.ofx-note .eo-field {
    margin: 0;
}

.ofx-note__x {
    position: absolute;
    top: -4px;
    right: -4px;
}

@media (max-width: 575.98px) {
    .ofx-cust__notes {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ofx-cart__scroll::-webkit-scrollbar,
.ofx-lines::-webkit-scrollbar {
    width: 4px;
}

.ofx-cart__scroll::-webkit-scrollbar-button,
.ofx-lines::-webkit-scrollbar-button {
    display: none;
}

.ofx-cart__scroll::-webkit-scrollbar-thumb,
.ofx-lines::-webkit-scrollbar-thumb {
    background: var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.ofx-cart__scroll:hover::-webkit-scrollbar-thumb,
.ofx-lines:hover::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
}

.ofx-lines__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--eo-space-lg) var(--eo-space-lg) var(--eo-space-base);
    text-align: center;
    color: var(--eo-text-muted);
}

.ofx-lines__empty[hidden] {
    display: none;
}

.ofx-lines__empty .svg-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    color: var(--eo-text-subtle);
}

.ofx-lines__empty strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-2);
}

.ofx-lines__empty span {
    font-size: var(--eo-fs-sm);
}

/* one line: name and ×, then − qty + × price = total */
.ofx-line {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-bg-hover);
}

.ofx-line.is-assisted {
    background: var(--eo-accent-10, var(--eo-brand-10));
}

.ofx-line__top {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
}

.ofx-line__name {
    flex: 1;
    min-width: 0;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    line-height: 1.4;
}

.ofx-line__remove {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--eo-text-subtle);
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
}

.ofx-line__remove:hover {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

.ofx-line__remove .svg-icon {
    width: 16px;
    height: 16px;
}

/* "বদলান" right after a line's name: switch to another variation of the same product */
.ofx-line__change {
    margin-left: 6px;
    padding: 0;
    font: inherit;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: none;
    border: 0;
    cursor: pointer;
}

.ofx-line__change:hover {
    text-decoration: underline;
}

.ofx-line__change[hidden] {
    display: none;
}

/* a combo's chosen parts as one line of text; a tap opens the variation popup to change them */
.ofx-line .eo-combo-picks {
    margin: 0;
}

.ofx-line__picks {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    max-width: 100%;
    padding: 0;
    font: inherit;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.ofx-line__pick.is-due {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-warning-strong);
}

.ofx-line__pick-change {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
}

.ofx-line__picks:hover .ofx-line__pick-change {
    text-decoration: underline;
}

.ofx-line__math {
    display: grid;
    grid-template-columns: 112px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--eo-space-sm);
}

.ofx-line__qty.eo-qty {
    width: 112px;
}

/* stronger than the phone rule that widens stepper buttons, so − and + always fit beside the number */
.ofx-line .ofx-line__qty.eo-qty > .eo-btn {
    width: 32px;
}

/* the number takes what is left between − and +; the phone rule's wider number box does not apply inside the stepper */
.eo-order-form .ofx-line .ofx-line__qty.eo-qty > .eo-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding-inline: 2px;
}

.ofx-line__times {
    color: var(--eo-text-subtle);
}

.ofx-line__price {
    min-width: 0;
}

.ofx-line__total {
    min-width: 76px;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    text-align: right;
    white-space: nowrap;
}

.ofx-line__disc {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.ofx-line__disc .eo-input-group {
    width: 140px;
}

.eo-order-form.is-line-mode .ofx-line__disc {
    display: flex;
}

/* slim lines on a computer: 30px controls, the name and total one step smaller, little room around; a phone keeps
   its bigger tap targets */
@media (min-width: 768px) {
    .ofx-line {
        gap: 4px;
        padding: 8px var(--eo-space-lg) 10px;
    }

    .ofx-line__name {
        font-size: var(--eo-fs-sm);
        line-height: 1.35;
    }

    .ofx-line__remove {
        width: 20px;
        height: 20px;
    }

    .ofx-line__remove .svg-icon {
        width: 14px;
        height: 14px;
    }

    .ofx-line__math {
        grid-template-columns: 92px auto minmax(0, 1fr) auto;
        gap: 6px;
    }

    .ofx-line__qty.eo-qty {
        width: 92px;
    }

    .ofx-line .ofx-line__qty.eo-qty > .eo-btn {
        width: 26px;
    }

    .ofx-line .eo-control,
    .ofx-line .eo-btn,
    .ofx-line .eo-input-group__addon {
        height: 30px;
        min-height: 30px;
        font-size: var(--eo-fs-sm);
    }

    .ofx-line .eo-btn .svg-icon {
        width: 14px;
        height: 14px;
    }

    .ofx-line .eo-input-group__addon {
        padding: 0 7px;
    }

    .ofx-line .ofx-line__price .eo-control {
        padding: 0 8px;
    }

    .ofx-line__times {
        font-size: var(--eo-fs-sm);
    }

    /* the line's money stands out: the one number an agent checks on every line */
    .ofx-line__total {
        min-width: 72px;
        font-size: var(--eo-fs-md);
        font-weight: var(--eo-fw-bold, 700);
        color: var(--eo-text);
    }

    /* a line's own discount: one quiet line, its box right under the price box (the total's column stays clear) */
    /* stronger than the [data-line-discount-col] rule further down */
    .eo-order-form.is-line-mode .ofx-line > .ofx-line__disc {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        padding-right: 70px;
        font-size: var(--eo-fs-xs);
        color: var(--eo-text-muted);
    }

    .ofx-line__disc .eo-input-group {
        flex: none;
        width: 110px;
    }
}

/* the cart's totals in the cart's own size; only the total stands out */
.ofx .eo-order-totals {
    gap: 6px var(--eo-space-sm);
    font-size: var(--eo-fs-sm-plus);
}

.ofx .eo-order-totals dd {
    color: var(--eo-text);
}

.ofx .eo-order-totals .eo-order-totals__grand {
    align-self: center;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold, 700);
}

/* the total is the biggest number in the cart */
.ofx .eo-order-totals dd.eo-order-totals__grand {
    font-size: var(--eo-fs-2xl);
    line-height: 1.2;
}

/* the money under the lines */
.ofx-money {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.ofx-money .eo-error:empty {
    display: none;
}

.ofx-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: center;
    gap: var(--eo-space-md);
}

.ofx-row[hidden] {
    display: none;
}

.ofx-row__label {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.ofx-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: none;
    border: 0;
}

.ofx-link[hidden] {
    display: none;
}

.ofx-link .svg-icon {
    width: 14px;
    height: 14px;
}

/* what the number tells, in one tinted box of two rows at every width (so nothing wraps oddly on a phone):
   an old customer's orders on top, then the fraud verdict as one big tap target that opens the side panel */
.ofx-known {
    display: grid;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    overflow: hidden;
}

.ofx-known[hidden] {
    display: none;
}

.ofx-known .svg-icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

/* one size inside the box: the verdict's muted text must not be bigger than the rest */
.ofx-known .eo-text-sm {
    font-size: inherit;
}

.ofx-known__who {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    padding: 8px var(--eo-space-md);
}

.ofx-known__who .svg-icon {
    margin-top: 2px;
}

.ofx-known__who[hidden] {
    display: none;
}

.ofx-known__who:not([hidden]) + .ofx-known__fraud {
    border-top: 1px solid var(--eo-border);
}

/* saved addresses: a pin, then one chip per address; the chip in use is marked in the brand colour */
.ofx-known__places {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    padding: 8px var(--eo-space-md);
}

.ofx-known__places .svg-icon {
    margin-top: 6px;
}

.ofx-known__places[hidden] {
    display: none;
}

.ofx-known__who:not([hidden]) + .ofx-known__places,
.ofx-known__places:not([hidden]) + .ofx-known__fraud {
    border-top: 1px solid var(--eo-border);
}

.ofx-places {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
    min-width: 0;
}

.ofx-place {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 10px;
    font: inherit;
    color: var(--eo-text-2);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
    cursor: pointer;
}

.ofx-place span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ofx-place strong {
    flex: none;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.ofx-place:hover {
    border-color: var(--eo-border-strong);
}

.ofx-place.is-active {
    color: var(--eo-brand);
    border-color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 6%, var(--eo-surface));
}

.ofx-place.is-active strong {
    color: inherit;
}

/* the "which address" window on a new order: one card a saved address, the one now in the form marked */
.ofx-pick {
    display: grid;
    gap: var(--eo-space-sm);
}

.ofx-pick__item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font: inherit;
    text-align: left;
    color: var(--eo-text-2);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    cursor: pointer;
}

.ofx-pick__item:hover {
    border-color: var(--eo-border-strong);
}

.ofx-pick__item.is-active {
    border-color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 6%, var(--eo-surface));
}

.ofx-pick__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    min-width: 0;
}

.ofx-pick__head strong {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.ofx-pick__tag {
    padding: 0 8px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 10%, transparent);
    border-radius: var(--eo-radius-pill);
}

.ofx-pick__text {
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
}

.ofx-known__fraud {
    display: flex;
    min-width: 0;
}

.ofx-known__fraud:empty {
    display: none;
}

/* the loading line and a "could not check" message sit in the same padding as the button */
.ofx-known__fraud > :not(.ofx-fraud-btn) {
    padding: 8px var(--eo-space-md);
}

.ofx-fraud-btn {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px var(--eo-space-sm);
    min-width: 0;
    min-height: 40px;
    padding: 8px var(--eo-space-md);
    font: inherit;
    color: inherit;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.ofx-fraud-btn:hover {
    background: var(--eo-surface);
}

.ofx-fraud-btn:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: -2px;
}

.ofx-known__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    white-space: nowrap;
}

.ofx-known .ofx-known__more .svg-icon {
    width: 14px;
    height: 14px;
    color: inherit;
}

/* a thumb needs a bigger target on a phone */
@media (max-width: 767.98px) {
    .ofx-fraud-btn {
        min-height: 44px;
        padding-block: 10px;
    }
}

/* the customer card, slim: phone and name on a row, then the address (it grows with its words) beside the place box */
/* the variation popup: the product on top (its price and stock follow the choice), then one row of choices per option */
.vp-modal .modal-dialog {
    max-width: 460px;
}

.vp-who {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding-bottom: var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.vp-who__img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: var(--eo-bg-hover);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.vp-who__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vp-who__name {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
}

.vp-who__price {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold, 700);
}

.vp-who__stock {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.vp-who__stock.is-out {
    color: var(--eo-danger-strong);
}

.vp-who__stock[hidden] {
    display: none;
}

.vp-groups {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding-top: var(--eo-space-base);
}

.vp-group__label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

.vp-group__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* a choice: a bordered box with its text in the middle; chosen = green; out of stock = struck through but still allowed;
   no such variation = shut */
.vp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 38px;
    /* the Bangla font's line box sits high: 3px more on top puts the letters in the middle */
    padding: 3px 14px 0;
    font: inherit;
    font-weight: var(--eo-fw-medium);
    line-height: 1;
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong, var(--eo-border));
    border-radius: var(--eo-radius);
    cursor: pointer;
}

.vp-chip:hover:not(:disabled) {
    border-color: var(--eo-brand);
}

.vp-chip.is-on {
    color: var(--eo-brand-strong);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
    box-shadow: 0 0 0 1px var(--eo-brand);
}

.vp-chip.is-out {
    color: var(--eo-text-muted);
    text-decoration: line-through;
}

.vp-chip:disabled {
    color: var(--eo-text-subtle);
    background: var(--eo-surface-2);
    border-style: dashed;
    cursor: not-allowed;
}

/* ofx-scroll: the filter sidebar and the cards scroll with a thin rounded bar and no arrows, faint until the pointer
   is on it, as in the settings menu; Firefox gets its own thin bar */
.ofx-filter::-webkit-scrollbar,
.ofx .eo-pick-grid::-webkit-scrollbar {
    width: 4px;
}

.ofx-filter::-webkit-scrollbar-button,
.ofx .eo-pick-grid::-webkit-scrollbar-button {
    display: none;
}

.ofx-filter::-webkit-scrollbar-track,
.ofx .eo-pick-grid::-webkit-scrollbar-track {
    background: transparent;
}

.ofx-filter::-webkit-scrollbar-thumb,
.ofx .eo-pick-grid::-webkit-scrollbar-thumb {
    background: var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.ofx-filter:hover::-webkit-scrollbar-thumb,
.ofx .eo-pick-grid:hover::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
}

@supports not selector(::-webkit-scrollbar) {
    .ofx-filter,
    .ofx .eo-pick-grid {
        scrollbar-width: thin;
        scrollbar-color: var(--eo-border) transparent;
    }
}

/* the products card: the search on top; under it a shop's filter sidebar on the left and the cards on the right */
.ofx-shop {
    margin-top: var(--eo-space-xs);
}

.ofx-shop__main {
    min-width: 0;
}

.ofx-shop .eo-pick-grid {
    margin-top: 0;
}

.ofx-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: 10px 12px;
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.ofx-filter__name {
    margin-right: auto;
}

.ofx-filter__head .eo-link-btn {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
}

.ofx-filter__group + .ofx-filter__group {
    border-top: 1px solid var(--eo-border);
}

/* a section's title: the name, how many are ticked, an arrow that turns when it is closed */
.ofx-filter__title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    list-style: none;
    cursor: pointer;
}

.ofx-filter__title::-webkit-details-marker {
    display: none;
}

.ofx-filter__title > .svg-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--eo-text-muted);
    transition: transform .15s ease;
}

.ofx-filter__group:not([open]) .ofx-filter__title > .svg-icon {
    transform: rotate(-90deg);
}

.ofx-facet__badge {
    min-width: 20px;
    padding: 0 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-bold, 700);
    line-height: 20px;
    color: var(--eo-on-brand);
    text-align: center;
    background: var(--eo-brand);
    border-radius: var(--eo-radius-pill);
}

.ofx-facet__badge[hidden] {
    display: none;
}

.ofx-facet__find {
    margin: 0 8px 6px;
}

.ofx-facet__list {
    padding: 0 6px 8px;
}

/* one row: the tick box, the name, how many products on the right */
.ofx-facet__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 8px;
    border-radius: var(--eo-radius-sm);
    cursor: pointer;
}

.ofx-facet__row[hidden],
.ofx-facet__row.is-gone {
    display: none;
}

.ofx-facet__none {
    margin: 0;
    padding: 6px 8px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.ofx-facet__none[hidden] {
    display: none;
}

.ofx-facet__row:hover {
    background: var(--eo-bg-hover);
}

.ofx-facet__row input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--eo-brand);
    cursor: pointer;
}

.ofx-facet__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ofx-facet__row:has(input:checked) .ofx-facet__name {
    font-weight: var(--eo-fw-semibold);
}

.ofx-facet__count {
    flex-shrink: 0;
    min-width: 30px;
    padding: 0 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    line-height: 20px;
    color: var(--eo-text-muted);
    text-align: center;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong, var(--eo-border));
    border-radius: var(--eo-radius-sm);
}

.ofx-facet__row:has(input:checked) .ofx-facet__count {
    color: var(--eo-brand-strong);
    border-color: var(--eo-brand);
}

/* rows are split by a fine line, as in a shop's filter list */
.ofx-facet__row + .ofx-facet__row {
    margin-top: 2px;
}

/* what is ticked, as chips over the cards; a × takes one off */
.ofx-chosen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--eo-space-sm);
}

.ofx-chosen[hidden] {
    display: none;
}

.ofx-chosen__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 10px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand-strong);
    background: var(--eo-brand-10);
    border: 0;
    border-radius: var(--eo-radius-pill);
    cursor: pointer;
}

.ofx-chosen__chip .svg-icon {
    width: 14px;
    height: 14px;
}

.ofx-chosen__chip:hover {
    background: color-mix(in srgb, var(--eo-brand) 18%, transparent);
}

/* the order form's cards share one head: one title row with a fine rule under it, the content below with full room */
.ofx .eo-card__head {
    min-height: 56px;
    padding: 10px var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.ofx .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-lg);
}

.ofx .eo-card__head + .ofx-lines {
    border-top: 0;
}

.ofx-cust {
    gap: var(--eo-space-md);
}

.ofx-cust__where {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--eo-space-base);
    align-items: start;
}

.ofx-cust .eo-field {
    margin: 0;
}

/* one line of address is exactly a field's height (the place box beside it); more lines grow it */
textarea.ofx-address {
    min-height: var(--eo-control-h);
    max-height: 132px;
    line-height: 1.6;
    padding-top: calc((var(--eo-control-h) - 2px - 1.6em) / 2);
    padding-bottom: calc((var(--eo-control-h) - 2px - 1.6em) / 2);
    resize: none;
    field-sizing: content;
}

/* one box for district and thana: the path as chips ("ঢাকা › মিরপুর"), a ×; a click opens the list under it,
   one level at a time, with a search on top and each place's Dhaka side */
.eo-loc {
    position: relative;
}

.eo-loc__box {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    width: 100%;
    padding-right: 34px;
    text-align: left;
    cursor: pointer;
}

.eo-loc__box > .svg-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--eo-text-subtle);
}

.eo-loc__box[aria-expanded="true"] {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-loc__path {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.eo-loc__crumb {
    overflow: hidden;
    color: var(--eo-text);
    text-overflow: ellipsis;
}

.eo-loc__crumb + .eo-loc__sep + .eo-loc__crumb,
.eo-loc__path .eo-loc__crumb:last-child {
    font-weight: var(--eo-fw-medium);
}

/* the Bangla line box sits high, so the icons beside it lift a little to meet the words (as on the buttons) */
.eo-loc__path .svg-icon.eo-loc__sep {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
    transform: translateY(-0.15em);
}

.eo-loc__box > .svg-icon {
    transform: translateY(-0.1em);
}

.eo-loc__placeholder {
    color: var(--eo-text-subtle);
}

.eo-loc__clear {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--eo-text-subtle);
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
    transform: translateY(-50%);
}

.eo-loc__clear[hidden] {
    display: none;
}

.eo-loc__clear:hover {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-loc__clear .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-loc__panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: var(--eo-z-dropdown, 1000);
    min-width: 280px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-md, 0 8px 24px rgb(16 24 40 / 0.12));
}

.eo-loc__panel[hidden] {
    display: none;
}

.eo-loc__search {
    position: relative;
    padding: var(--eo-space-sm);
    border-bottom: 1px solid var(--eo-border);
}

.eo-loc__search > .svg-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
    transform: translateY(-50%);
}

.eo-loc__search .eo-control {
    padding-left: 32px;
}

.eo-loc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: 8px 12px 4px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-loc__back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: none;
    border: 0;
}

.eo-loc__back[hidden] {
    display: none;
}

.eo-loc__back .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-loc__list {
    max-height: 280px;
    padding: 0 4px 4px;
    overflow-y: auto;
}

.eo-loc__item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    width: 100%;
    padding: 9px 10px;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

.eo-loc__item:last-child {
    border-bottom: 0;
}

.eo-loc__item.is-active,
.eo-loc__item:hover {
    background: var(--eo-bg-hover);
}

.eo-loc__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.eo-loc__text strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text);
}

.eo-loc__text small {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-loc__item .svg-icon.eo-loc__go {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--eo-text-subtle);
}

.eo-loc__none {
    margin: 0;
    padding: 12px 10px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

@media (max-width: 767.98px) {
    .ofx-cust__where {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* five cards to a row on the order form (two rows before a search); three on a small tablet, two on a phone */
.ofx .eo-pick-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--eo-space-sm);
}

/* ORDER FORM, ONE SCROLL: the page itself scrolls the cards (never a box inside the card), the search bar stays at the
   top of the screen, the cart stays beside the cards on a computer and under them on a tablet or phone */
.ofx .eo-card__head + .ofx-pick {
    padding-top: var(--eo-space-sm);
}

.ofx-find {
    position: sticky;
    top: var(--eo-topbar-h);
    z-index: 6;
    display: flex;
    gap: var(--eo-space-sm);
    margin: 0 calc(-1 * var(--eo-space-lg));
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface);
}

/* stuck at the top: a fine line keeps the cards under it apart */
.ofx-find.is-stuck {
    border-bottom: 1px solid var(--eo-border);
}

.ofx-find__mark {
    height: 1px;
    margin-bottom: -1px;
}

.ofx-find .eo-order-search {
    flex: 1 1 auto;
    min-width: 0;
}

.ofx-find__filter {
    flex-shrink: 0;
    height: var(--eo-control-h);
}

/* the word stays beside the icon, even on a phone: a new agent reads "ফিল্টার" faster than a symbol */
.ofx-find__filter > span:not(.eo-count) {
    display: inline;
}

/* the filter beside the cards on a wide screen: it stays in view under the search bar, its head on top of its list */
@media (min-width: 1400px) {
    .ofx-shop.has-filter {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        gap: var(--eo-space-md);
        align-items: start;
    }

    .ofx-shop.has-filter .eo-pick-grid {
        grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
    }

    .ofx-find__filter,
    .ofx-filter__close,
    .ofx-filter__foot {
        display: none;
    }

    .ofx-filter {
        position: sticky;
        top: calc(var(--eo-topbar-h) + var(--eo-control-h) + var(--eo-space-md) * 2 + var(--eo-space-xs));
        max-height: calc(100vh - var(--eo-topbar-h) - var(--eo-control-h) - var(--eo-space-md) * 2 - var(--eo-space-xl));
        overflow-y: auto;
        border: 1px solid var(--eo-border);
        border-radius: var(--eo-radius-lg);
    }

    .ofx-filter__head {
        position: sticky;
        top: 0;
        z-index: 1;
        border-radius: var(--eo-radius-lg) var(--eo-radius-lg) 0 0;
    }
}

/* a laptop, tablet or phone: the filter is a side panel like every other filter in the panel; its rows are thumb sized */
@media (max-width: 1399.98px) {
    .ofx-filter {
        --bs-offcanvas-width: min(360px, calc(100vw - var(--eo-space-3xl)));
        --bs-offcanvas-border-width: 1px;
        --bs-offcanvas-border-color: var(--eo-border);
        box-shadow: var(--eo-shadow-float);
    }

    .ofx-filter__head {
        flex: none;
        height: var(--eo-topbar-h);
        padding: 0 var(--eo-space-sm) 0 var(--eo-space-lg);
        font-size: var(--eo-fs-lg);
        background: var(--eo-surface);
    }

    .ofx-filter__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .ofx-filter__foot {
        flex: none;
        padding: var(--eo-space-md) var(--eo-space-lg) calc(var(--eo-space-md) + env(safe-area-inset-bottom));
        border-top: 1px solid var(--eo-border);
    }

    .ofx-filter__foot .eo-btn {
        width: 100%;
    }

    .ofx-filter .ofx-filter__title {
        padding: 14px var(--eo-space-lg) 8px;
    }

    .ofx-filter .ofx-facet__list {
        padding: 0 var(--eo-space-sm) var(--eo-space-sm);
    }

    .ofx-filter .ofx-facet__row {
        min-height: 44px;
        padding: 8px 12px;
    }

    .ofx-filter .ofx-facet__find {
        margin: 0 var(--eo-space-base) var(--eo-space-sm);
    }
}

/* a phone: two cards to a row (three or four on a large one) */
@media (max-width: 767.98px) {
    .ofx .eo-pick-grid {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    }
}

/* the bar's button lands the cart's head just under the top bar */
.ofx-cart {
    scroll-margin-top: calc(var(--eo-topbar-h) + var(--eo-space-md));
}

/* laptops: a narrower cart, so the cards keep three or four to a row */
@media (min-width: 1100px) and (max-width: 1499.98px) {
    .ofx {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

/* the bar at the screen's foot (phones and tablets): how many, the total, a button to the cart */
.ofx-bar {
    display: none;
}

@media (max-width: 1099.98px) {
    .ofx-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: var(--eo-z-formbar, 20);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--eo-space-md);
        padding: 10px var(--eo-space-base) calc(10px + env(safe-area-inset-bottom));
        background: var(--eo-surface);
        border-top: 1px solid var(--eo-border);
        box-shadow: var(--eo-shadow-float);
    }

    .ofx-bar[hidden] {
        display: none;
    }

    .ofx-bar__info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.25;
    }

    .ofx-bar__count {
        font-size: var(--eo-fs-xs);
        color: var(--eo-text-muted);
    }

    .ofx-bar__total {
        font-size: var(--eo-fs-xl);
        font-weight: var(--eo-fw-bold, 700);
    }

    .ofx-bar .eo-btn {
        flex-shrink: 0;
        min-width: 140px;
    }
}

@media (min-width: 992px) and (max-width: 1099.98px) {
    .ofx-bar {
        left: var(--eo-sidebar-w);
    }
}

/* a phone: the next cards come from a button at the grid's end, so the cart under it is always reachable */
.eo-pick-grid__more-btn {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 200px;
    margin-top: var(--eo-space-xs);
}

/* the card heads keep their title and small button on one line, even on a phone */
.ofx .eo-card__head {
    flex-wrap: nowrap;
}

.ofx .eo-card__head-text {
    flex: 1 1 auto;
}

/* a phone: the cart's money rows stay slim (34px boxes); line totals stand out */
@media (max-width: 767.98px) {
    .ofx-extra .eo-control,
    .ofx-extra .eo-input-group__addon,
    .ofx-extra .eo-order-discount__type span {
        height: 34px;
        min-height: 34px;
        font-size: var(--eo-fs-sm);
    }

    .ofx-extra .eo-order-discount__type span {
        min-width: 30px;
    }

    .ofx-line__total {
        font-size: var(--eo-fs-md);
        font-weight: var(--eo-fw-bold, 700);
        color: var(--eo-text);
    }
}

/* a phone: the variation popup rises from the screen's foot, in reach of the thumb */
@media (max-width: 575.98px) {
    .vp-modal .modal-dialog {
        align-items: flex-end;
        min-height: 100%;
        max-width: none;
        margin: 0;
    }

    .vp-modal .modal-content {
        border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
    }

    .vp-modal .modal-footer {
        padding-bottom: calc(var(--eo-space-md) + env(safe-area-inset-bottom));
    }

    .vp-modal .modal-footer .eo-btn--primary {
        flex: 1 1 auto;
    }

    .vp-chip {
        min-width: 56px;
        height: 44px;
    }
}

/* tablets and phones: one column, the cart under the products, the save row pinned to the bottom */
@media (max-width: 1099.98px) {
    .ofx {
        grid-template-columns: minmax(0, 1fr);
    }

    .ofx__cart {
        position: static;
    }

    .ofx-cart {
        max-height: none;
    }

    .ofx-lines {
        max-height: none;
        overflow: visible;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .ofx-cart__scroll {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .ofx-cart .ofx-money {
        border-top: 1px solid var(--eo-border);
        border-left: 1px solid var(--eo-border);
    }

    .ofx-cart .eo-order-form__save .eo-btn--primary {
        flex: 0 1 auto;
        min-width: 220px;
    }
}

@media (max-width: 575.98px) {
    .ofx-line {
        padding: var(--eo-space-md);
    }

    .ofx-line__math {
        grid-template-columns: 112px minmax(0, 1fr) auto;
    }

    .ofx-line__times {
        display: none;
    }

    .ofx-line__qty.eo-qty {
        width: 112px;
    }

    .ofx-money {
        padding: var(--eo-space-base) var(--eo-space-md);
    }

    .ofx-row {
        grid-template-columns: minmax(0, 1fr) 150px;
    }
}

.eo-order-form.is-line-mode [data-line-discount-col] {
    display: table-cell;
}

.eo-order-form [data-line-discount-col],
.eo-order-form:not(.is-line-mode) .eo-table-wrap--cards [data-line-discount-col] {
    display: none;
}

/* ORDER FORM, QC ROUND (8 Nov 2026) */
/* the dashed line over the total runs unbroken across both columns */
.eo-order-totals dt.eo-order-totals__grand {
    margin-right: calc(-1 * var(--eo-space-base));
    padding-right: var(--eo-space-base);
}

.ofx-cart__error {
    margin: 0;
    padding: 0 var(--eo-space-lg) var(--eo-space-sm);
    text-align: center;
}

/* the address keeps a readable width; the area box beside it gives way first */
.ofx-cust__where {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
}

@media (min-width: 1100px) and (max-width: 1199.98px), (max-width: 767.98px) {
    .ofx-cust__where {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* a computer: one scroll in the cart. The lines scroll, the money and the total under them always stay in view; the
   cart's top lines up with the search box beside it. The cards' column is never shorter than the screen, so ticking a
   filter never pulls the sidebar from under the mouse */
@media (min-width: 1100px) {
    .ofx__cart {
        top: calc(var(--eo-topbar-h) + var(--eo-space-md));
    }

    .ofx-cart {
        max-height: calc(100vh - var(--eo-topbar-h) - var(--eo-space-md) - var(--eo-space-base));
    }

    .ofx-cart__scroll {
        display: flex;
        flex-direction: column;
    }

    .ofx-lines {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    .ofx-lines:has(.ofx-line) {
        min-height: 112px;
    }

    .ofx-money {
        flex: none;
    }

    .ofx-shop__main {
        min-height: calc(100vh - var(--eo-topbar-h) - var(--eo-control-h) - var(--eo-space-md) * 2);
    }
}

@media (min-width: 1400px) {
    .ofx-shop.has-filter {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

/* a tablet or phone: the cart's save row is a plain row at its end (the bar at the screen's foot does the pinning); the
   delivery switch stays one slim line, a thumb's height, with tighter padding so both sides fit from 360px; the price
   box keeps a sensible width */
@media (max-width: 1099.98px) {
    .ofx-cart .eo-order-form__save {
        position: static;
    }

    .eo-order-zone button {
        gap: 4px;
        height: 40px;
        padding: 0 6px;
    }

    .ofx-line__price {
        max-width: 180px;
    }
}

/* a very small phone: only here the side sits over its charge, so neither word is cut */
@media (max-width: 359.98px) {
    .eo-order-zone button {
        flex-direction: column;
        gap: 0;
        height: auto;
        min-height: 44px;
        padding: 4px 6px;
        line-height: 1.3;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .ofx-cart__scroll {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .ofx-line__price {
        max-width: 160px;
    }
}

/* a tablet or phone: every control in the cart is big enough for a thumb; a computer keeps the slim cart */
@media (max-width: 1099.98px) {
    .ofx-line .eo-control,
    .ofx-line .eo-btn,
    .ofx-line .eo-input-group__addon {
        height: 40px;
        min-height: 40px;
        font-size: var(--eo-fs-md);
    }

    .ofx-line__qty.eo-qty {
        width: 124px;
    }

    .ofx-line .ofx-line__qty.eo-qty > .eo-btn {
        width: 40px;
    }

    .ofx-line__math {
        grid-template-columns: 124px auto minmax(0, 1fr) auto;
    }

    .ofx-line__remove {
        width: 36px;
        height: 36px;
        margin: -8px -10px -8px 0;
    }

    .ofx-line__change {
        padding: 8px 6px;
        margin: -8px 0;
    }

    .ofx-add {
        min-height: 32px;
    }

    /* the money rows: a slim box and a small ×, so the name keeps one line */
    .ofx-extra {
        grid-template-columns: minmax(0, 1fr) 128px 28px;
        gap: 2px 6px;
    }

    .ofx-x,
    .ofx-extra .ofx-x {
        width: 28px;
        height: 28px;
    }

    .vp-chip {
        min-width: 52px;
        height: 44px;
    }

    .ofx-chosen__chip {
        min-height: 32px;
    }
}

@media (max-width: 575.98px) {
    .ofx-line__math {
        grid-template-columns: 124px minmax(0, 1fr) auto;
    }

    /* toasts rise above the bar at the screen's foot */
    .eo-toasts:is(body:has(.eo-order-form.has-cart-bar) *) {
        bottom: 84px;
    }
}

/* a small phone (320): two cards still fit a row, the stepper gives the price box its room */
@media (max-width: 359.98px) {
    .ofx .eo-pick-grid {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    }

    .ofx-line__qty.eo-qty {
        width: 108px;
    }

    .ofx-line .ofx-line__qty.eo-qty > .eo-btn {
        width: 34px;
    }

    .ofx-line__math {
        grid-template-columns: 108px minmax(0, 1fr) auto;
    }
}

.eo-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
    cursor: pointer;
}

.eo-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.eo-file__name {
    min-width: 0;
    overflow: hidden;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-file:focus-within .eo-btn {
    outline: 2px solid var(--eo-brand);
    outline-offset: 2px;
}

/* tablet and phone: one column, the summary comes last */
@media (max-width: 1099.98px) {
    .eo-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-order-layout__side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .eo-order-form [data-item-row] .eo-control--num {
        min-width: 4.5rem;
    }
}

.eo-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--eo-border);
}

.eo-timeline__item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs) var(--eo-space-sm);
    padding: 0 0 var(--eo-space-md) var(--eo-space-base);
}

.eo-timeline__item::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: var(--eo-radius-pill);
    background: var(--eo-border-strong);
}

/* the order invoice (orders/invoice): one A4 sheet an order. The shop and the invoice's number on top, three boxes
   (who, delivery, payment), the products, the totals ending in a green band with the cash to collect, a thank-you line */
.eo-invoice-page {
    padding: var(--eo-space-lg) var(--eo-space-md);
    background: var(--eo-bg);
    page: invoice;
}

/* no page margin means the browser prints no date, title or address around the sheet; the sheet keeps its own */
@page invoice {
    size: A4;
    margin: 0;
}

.eo-invoice__bar {
    display: flex;
    justify-content: flex-end;
    max-width: 820px;
    margin: 0 auto var(--eo-space-md);
}

.eo-invoice {
    max-width: 820px;
    margin: 0 auto var(--eo-space-lg);
    padding: 40px 44px;
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    /* the green band and the grey header print as they look */
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.eo-invoice:last-of-type {
    margin-bottom: 0;
}

/* :where keeps this reset weaker than the classes below, which set their own margins */
:where(.eo-invoice) p {
    margin: 0;
}

/* the shop on the left (its logo, name, phone and address), the invoice's title and number on the right */
.eo-invoice__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-lg);
    padding-bottom: var(--eo-space-lg);
    border-bottom: 2px solid var(--eo-text);
}

.eo-invoice__shop {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
}

.eo-invoice__logo {
    flex: 0 0 auto;
    max-width: 120px;
    max-height: 56px;
    object-fit: contain;
}

.eo-invoice__shop-name {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.3;
}

.eo-invoice__shop-line {
    margin-top: 2px !important;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-invoice__ref {
    flex: 0 0 auto;
    text-align: right;
}

.eo-invoice__title {
    font-size: 28px;
    font-weight: var(--eo-fw-bold);
    line-height: 1.1;
    letter-spacing: 0.5px;
    color: var(--eo-brand);
}

/* the order's number under the title, as large as the shop's name on the left, so both halves of the head weigh the same */
.eo-invoice__number {
    margin-top: 4px !important;
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.3;
}

/* the order box: one fact a line, the label on the left, the value on the right */
.eo-invoice__facts {
    margin: 0;
}

.eo-invoice__facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: 3px 0;
}

.eo-invoice__facts > div + div {
    border-top: 1px dashed var(--eo-border);
}

.eo-invoice__facts dt {
    flex: 0 0 auto;
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-invoice__facts dd {
    min-width: 0;
    margin: 0;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-align: right;
}

/* the bottom's left: the buyer's note in a soft box, then the thanks and the shop's phone, level with the totals */
.eo-invoice__note {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eo-invoice__note-box {
    margin-bottom: var(--eo-space-sm);
    padding: 10px 12px;
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-invoice__ref-list {
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
}

.eo-invoice__ref-list > div {
    display: flex;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    line-height: 1.6;
}

.eo-invoice__ref-list dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-invoice__ref-list dd {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
}

/* two boxes of equal weight side by side: who (name, phone, address) and the order's facts (date, payment, courier, code) */
.eo-invoice__boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: var(--eo-space-lg) 0;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-invoice__box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.eo-invoice__box + .eo-invoice__box {
    border-left: 1px solid var(--eo-border);
}

.eo-invoice__label {
    margin-bottom: 4px !important;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    letter-spacing: 0.3px;
    color: var(--eo-text-muted);
}

.eo-invoice__strong {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-invoice__box .eo-invoice__strong {
    font-size: var(--eo-fs-md);
}

.eo-invoice__muted {
    color: var(--eo-text-muted);
}

.eo-invoice__code {
    font-family: Consolas, 'Courier New', monospace;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* the products: a light grey head, a hairline between rows, the money on the right */
.eo-invoice__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--eo-fs-md);
}

.eo-invoice__table th {
    padding: 10px 12px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
    text-align: left;
    white-space: nowrap;
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-bottom: 1px solid var(--eo-border);
}

.eo-invoice__table td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--eo-border);
}

.eo-invoice__table .eo-num {
    text-align: right;
    white-space: nowrap;
}

.eo-invoice__sl {
    width: 32px;
    color: var(--eo-text-muted);
}

.eo-invoice__item {
    display: block;
    line-height: 1.5;
}

.eo-invoice__item-sub {
    display: block;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* the note on the left, the totals on the right ending in the green band with the cash to collect */
.eo-invoice__foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-xl);
    margin-top: var(--eo-space-lg);
}

.eo-invoice__note {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.eo-invoice__sum {
    flex: 0 0 300px;
}

.eo-invoice__totals {
    margin: 0;
    font-size: var(--eo-fs-md);
}

.eo-invoice__totals > div {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: 5px 0;
}

.eo-invoice__totals dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-invoice__totals dd {
    margin: 0;
    white-space: nowrap;
}

.eo-invoice__totals .eo-invoice__total {
    margin-top: 4px;
    padding-top: 9px;
    font-weight: var(--eo-fw-semibold);
    border-top: 1px solid var(--eo-border);
}

.eo-invoice__totals .eo-invoice__total dt {
    color: var(--eo-text);
}

.eo-invoice__due {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    margin-top: var(--eo-space-sm);
    padding: 12px 16px;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-radius: var(--eo-radius);
}

.eo-invoice__due strong {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    white-space: nowrap;
}

/* a quiet last line: thanks, and that no signature is needed */
.eo-invoice__end {
    margin-top: 40px;
    padding-top: var(--eo-space-md);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-align: center;
    border-top: 1px dashed var(--eo-border-strong);
}

.eo-invoice__thanks {
    margin-bottom: 2px !important;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

@media (max-width: 767.98px) {
    .eo-invoice {
        padding: var(--eo-space-base);
    }

    .eo-invoice__head,
    .eo-invoice__foot {
        flex-direction: column;
        gap: var(--eo-space-md);
    }

    .eo-invoice__ref {
        text-align: left;
    }

    .eo-invoice__ref-list > div {
        justify-content: flex-start;
    }

    .eo-invoice__boxes {
        grid-template-columns: 1fr;
    }

    .eo-invoice__box + .eo-invoice__box {
        border-top: 1px solid var(--eo-border);
        border-left: 0;
    }

    .eo-invoice__sum {
        flex-basis: auto;
        width: 100%;
    }

    .eo-invoice__table th,
    .eo-invoice__table td {
        padding: 8px 6px;
    }
}

@media print {
    .eo-invoice-page {
        padding: 0;
        background: none;
    }

    .eo-invoice {
        max-width: none;
        margin: 0;
        padding: 11mm 14mm;
        border: 0;
        border-radius: 0;
        break-after: page;
    }

    .eo-invoice:last-of-type {
        break-after: auto;
    }

    /* on paper the sheet is tighter, so an everyday order (ten or so lines) fits one A4 page */
    .eo-invoice__head {
        padding-bottom: 12px;
    }

    .eo-invoice__boxes {
        margin: 14px 0;
    }

    .eo-invoice__box {
        padding: 10px 12px;
    }

    .eo-invoice__table th {
        padding: 6px 10px;
    }

    .eo-invoice__table td {
        padding: 5px 10px;
    }

    .eo-invoice__foot {
        margin-top: 14px;
        break-inside: avoid;
    }

    .eo-invoice__totals > div {
        padding: 3px 0;
    }

    .eo-invoice__end {
        margin-top: 14px;
        padding-top: 8px;
    }

    .eo-invoice__table {
        font-size: 13px;
    }

    .eo-invoice__item {
        line-height: 1.3;
    }

    .eo-invoice__item-sub {
        font-size: 11px;
    }

    .eo-invoice__box,
    .eo-invoice__totals {
        font-size: var(--eo-fs-sm);
    }

    .eo-invoice__title {
        font-size: 24px;
    }

    .eo-no-print {
        display: none !important;
    }
}

/* 18 order confirmation */
/* CONFIRMATION DESK (module 18) */

/* two classes on purpose: module 24 below makes plain .eo-desk a single column for the packing and return desks */
.eo-desk.eo-desk--split {
    /* the list's height (the window less the top bar and the content padding); the order card and the history
       column grow to it, so the three columns end on one line with no empty space under the shorter ones */
    --desk-h: calc(100vh - var(--eo-topbar-h) - 2 * var(--eo-content-pad-y, var(--eo-space-xl)));
    display: grid;
    gap: var(--eo-space-lg);
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    align-items: start;
}

/* computers: the order card fills the column, the buttons sit at its foot */
@media (min-width: 576px) {
    .eo-desk--split .eo-desk-card {
        display: flex;
        flex-direction: column;
        min-height: var(--desk-h);
    }

    .eo-desk--split .eo-desk-card__body {
        flex: 1 1 auto;
    }
}

/* the list fits the window exactly (top bar and the content's top and bottom padding), so only the list scrolls */
.eo-desk__queue {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-content-pad-y, var(--eo-space-xl)));
    max-height: calc(100vh - var(--eo-topbar-h) - 2 * var(--eo-content-pad-y, var(--eo-space-xl)));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.eo-desk__queue:hover {
    scrollbar-color: var(--eo-border-strong) transparent;
}

.eo-desk__queue-head {
    position: sticky;
    top: 0;
    z-index: 1;
    flex-wrap: nowrap;
    min-height: 0;
    padding: var(--eo-space-md) var(--eo-space-sm) var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface);
    border-bottom: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
}

.eo-desk__queue-tools {
    flex-wrap: nowrap;
    gap: 0;
}

.eo-desk__more {
    padding: var(--eo-space-md);
    text-align: center;
}

/* the order's own top line ("← অর্ডার") is no longer used: a phone or a tablet opens the list as a drawer from the top bar */
.eo-desk-top {
    display: none;
}

/* the queue: full-width rows split by a fine line, so each order reads as its own row; text starts on the head's
   20px edge; the call state is plain small text (red only when late), never a pill */
.eo-desk__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-desk__list > li + li {
    border-top: 1px solid var(--eo-border);
}

/* a list row: name and money, the order number and area, a short call status */
.eo-desk__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-height: 60px;
    padding: var(--eo-space-md) var(--eo-space-lg);
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--eo-text);
    cursor: pointer;
}

.eo-desk__line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-desk__name {
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-desk__amount {
    flex-shrink: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    font-variant-numeric: tabular-nums;
}

/* the open order reads a step stronger */
.eo-desk__item.is-active .eo-desk__name {
    font-weight: var(--eo-fw-semibold);
}

.eo-desk__item.is-active .eo-desk__amount {
    color: var(--eo-text);
}

.eo-desk__sub {
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the second line's right side: a short call status in grey ("কল 2/3", "কল ব্যাক 7:24"), red only when late or at the
   last try; the full call back time is in its tooltip */
.eo-desk__state {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-desk__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

.eo-desk__status .svg-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* late or at the last try: the same small text, only its colour turns red */
.eo-desk__status.is-late {
    color: var(--eo-danger-strong);
}

/* where the calls stand: small text with an icon, never a box. A call back reads in grey; only a late one's
   clock and its "দেরি" turn red, so a list of call backs is not a wall of red */
.eo-desk-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    white-space: nowrap;
}

.eo-desk-flag > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-desk-flag.eo-tone-warning,
.eo-desk-flag.eo-tone-danger {
    font-weight: var(--eo-fw-medium);
}

.eo-desk-flag.eo-tone-warning { color: var(--eo-warning-strong); }
.eo-desk-flag.eo-tone-danger { color: var(--eo-danger-strong); }

.eo-desk-flag.is-late .svg-icon,
.eo-desk-flag__late {
    color: var(--eo-danger-strong);
}

.eo-desk-flag__late {
    font-weight: var(--eo-fw-semibold);
}

.eo-desk-flag .svg-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

/* another agent has this order open right now */
.eo-desk__viewer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-warning-strong);
}

.eo-desk__viewer[hidden] {
    display: none;
}

.eo-desk__viewer .svg-icon {
    width: 12px;
    height: 12px;
}

.eo-desk__item.is-taken .eo-desk__line {
    opacity: .55;
}

.eo-desk__list > li > .eo-desk__item:hover {
    background: var(--eo-surface-2);
}

/* the open order: a soft brand fill and a brand line on the left, never a status colour */
.eo-desk__list > li > .eo-desk__item.is-active {
    background: var(--eo-brand-10);
    box-shadow: inset 3px 0 0 var(--eo-brand);
}

.eo-desk__item:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: -2px;
}

/* the open order: the card, and on a wide screen the customer's history as a column beside it (bottom of this part) */
.eo-desk-order {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

/* the card runs edge to edge for the head's facts; every other part keeps the card's side padding */
.eo-desk-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    padding-bottom: var(--eo-space-lg);
}

.eo-desk-card__body > :not(.eo-desk-head, .eo-desk-facts) {
    margin-right: var(--eo-space-lg);
    margin-left: var(--eo-space-lg);
}

/* the head, as the product page's: name and one grey line on the left, the risk and the call button on the right */
/* the call button sits on the name's line (top), never floating in the middle of the name, meta and call pill */
/* a grid, so the buttons never fall off the name's line however many pills there are: the name and its grey line on
   the left with the buttons beside them, the pills on their own full-width row under both */
.eo-desk-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: var(--eo-space-lg);
    padding: var(--eo-space-lg) var(--eo-space-lg) 0;
}

/* its children sit straight in the head's grid */
.eo-desk-head__id {
    display: contents;
}

.eo-desk-head__name,
.eo-desk-skel__name {
    grid-column: 1;
    grid-row: 1;
}

.eo-desk-head__meta,
.eo-desk-skel__meta {
    grid-column: 1;
    grid-row: 2;
}

.eo-desk-head__flags,
.eo-desk-skel__pills {
    grid-column: 1 / -1;
    grid-row: 3;
}

.eo-desk-head__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.eo-desk-head__name {
    margin: 0;
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.4;
}

/* the order number, its age and the call line, one muted line split by dots */
.eo-desk-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-2xs) var(--eo-space-sm);
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-muted);
}

.eo-desk-head__meta > * + *::before {
    content: "·";
    margin-right: var(--eo-space-sm);
    color: var(--eo-text-subtle);
}

/* the call state in the head: the list row's quiet line, here as a small tinted pill on its own line */
.eo-desk-head__flags:empty {
    display: none;
}

.eo-desk-head__flags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    margin-top: var(--eo-space-sm);
}

/* a new order has no call state and no last call: no empty line (the partial leaves whitespace, so not :empty) */
.eo-desk-head__flags:not(:has(*)) {
    display: none;
}

/* "আপনার কাছে রাখা আছে": this agent holds the order, the others see it as taken; a quiet brand pill */
.eo-desk-mine {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-brand);
    white-space: nowrap;
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

.eo-desk-mine[hidden] {
    display: none;
}

.eo-desk-mine .svg-icon {
    width: 13px;
    height: 13px;
}

.eo-desk-head__flags .eo-desk-flag {
    max-width: 100%;
    padding: 3px 10px;
    font-size: var(--eo-fs-sm);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-desk-head__flags .eo-desk-flag.is-late,
.eo-desk-head__flags .eo-desk-flag.eo-tone-danger {
    background: var(--eo-danger-10);
    border-color: transparent;
}

.eo-desk-head__flags .eo-desk-flag.eo-tone-warning {
    background: var(--eo-warning-10);
    border-color: transparent;
}

.eo-desk-head__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--eo-space-md);
}

.eo-desk-head__call,
.eo-desk-head__edit {
    gap: var(--eo-space-sm);
}

/* the fraud answer as a pill in the head's pill row, the same size as "আপনার কাছে রাখা আছে" beside it */
.eo-desk-risk__tag {
    gap: 5px;
    padding: 3px 10px;
    font-size: var(--eo-fs-sm);
    white-space: nowrap;
    border-radius: var(--eo-radius-pill);
}

.eo-desk-risk__tag.is-muted {
    color: var(--eo-text-muted);
}

.eo-desk-risk__tag .svg-icon {
    width: 12px;
    height: 12px;
}

/* the number and the address: one quiet tinted strip between two fine lines, small grey icons, the values do the talking */
.pd-facts.eo-desk-facts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

/* both facts sit in the middle of the strip, so a short address never leaves a gap under it */
.pd-fact.eo-desk-fact {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    column-gap: var(--eo-space-sm);
    align-content: center;
    padding-top: var(--eo-space-md);
    padding-bottom: var(--eo-space-md);
}

.pd-fact.eo-desk-fact + .pd-fact.eo-desk-fact {
    border-left-color: var(--eo-border);
}

.pd-fact.eo-desk-fact > .pd-fact__icon {
    width: 20px;
    height: 20px;
    color: var(--eo-text-muted);
    background: none;
}

.pd-fact.eo-desk-fact > .pd-fact__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.pd-fact.eo-desk-fact dt {
    font-size: var(--eo-fs-xs);
}

.pd-fact.eo-desk-fact > .eo-desk-fact__edit {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
}

.pd-fact dd.eo-desk-fact__phone {
    font-size: var(--eo-fs-xl);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.pd-fact dd.eo-desk-fact__address {
    margin-top: 3px;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    line-height: 1.55;
}

/* the fact's icon sits by the label and value, not in the middle of a long address */
.pd-fact.eo-desk-fact > .pd-fact__icon {
    align-self: start;
    margin-top: 2px;
}

/* "শেষ কল: …" under the number opens the call history */
/* "শেষ কল: …" beside the call state, the same pill; a click opens the call history */
.eo-desk-calls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 10px;
    font: inherit;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    white-space: nowrap;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-desk-calls > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-desk-calls .svg-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    color: var(--eo-text-muted);
}

/* the products as a bill in one framed box. Every row shares one grid, so the head, the products and the money lines
   keep the same four columns: product | পরিমাণ | দাম | মোট. Numbers sit right, in tabular figures, on one edge */
.eo-desk-lines {
    --desk-cols: minmax(0, 1fr) 72px 112px 112px;
    --desk-pad-x: var(--eo-space-base);
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-desk-line {
    display: grid;
    grid-template-columns: var(--desk-cols);
    align-items: center;
    column-gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--desk-pad-x);
    font-variant-numeric: tabular-nums;
}

.eo-desk-line + .eo-desk-line {
    border-top: 1px solid var(--eo-border);
}

.eo-desk-line__qty,
.eo-desk-line__price,
.eo-desk-line__total {
    text-align: right;
    white-space: nowrap;
}

.eo-desk-line__qty,
.eo-desk-line__price {
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-2);
}

.eo-desk-line__total {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

/* the head row: small grey labels on a tinted strip */
.eo-desk-line--head {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
}

.eo-desk-line--head > span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.eo-desk-items__count {
    margin-left: 4px;
    font-weight: var(--eo-fw-normal);
}

.eo-desk-line__name {
    min-width: 0;
}

.eo-desk-line .eo-namecell {
    gap: var(--eo-space-md);
}

.eo-desk-line .eo-namecell__tile {
    width: 40px;
    height: 40px;
    border-radius: var(--eo-radius-sm);
}

.eo-desk-line .eo-cell-main {
    font-size: var(--eo-fs-md);
    white-space: normal;
}

/* "2 × ৳ 2,950" under the name is for phones only; computers have the two columns */
.eo-desk-line .eo-namecell .eo-cell-sub {
    display: none;
}

.eo-desk-line__short {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
}

/* the money lines: the label right-aligned over the qty and price columns, the amount in the total column */
.eo-desk-line--sum {
    padding-top: 10px;
    padding-bottom: 10px;
}

.eo-desk-line--sum > span:first-child {
    grid-column: 1 / 4;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-2);
    text-align: right;
}

.eo-desk-line--sum > .eo-desk-line__total {
    grid-column: 4;
}

/* what the buyer pays: the figure the agent reads out, one tinted strip at the foot of the box */
.eo-desk-line--pay {
    padding-top: var(--eo-space-md);
    padding-bottom: var(--eo-space-md);
    background: var(--eo-surface-2);
}

.eo-desk-line--pay > span:first-child {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-desk-line--pay > .eo-desk-line__total {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
}

/* the order's facts under the bill: the same framed box, four cells in a row (two on a phone), a wide one for the note */
.eo-desk-info {
    display: grid;
    gap: var(--eo-space-sm);
}

.eo-desk-info__title {
    margin: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
}

.eo-desk-info__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-desk-info__grid > div {
    min-width: 0;
    padding: var(--eo-space-md) var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
    border-left: 1px solid var(--eo-border);
    /* the grid's own frame draws the outer edges; these lines only split the cells */
    margin: -1px 0 0 -1px;
}

.eo-desk-info__grid dt {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-desk-info__grid dd {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    overflow-wrap: anywhere;
}

.eo-desk-info__wide {
    grid-column: 1 / -1;
}

.eo-desk-info__wide dd {
    font-weight: var(--eo-fw-normal);
    white-space: pre-line;
}

/* phones, and a small laptop where the sidebar and the list leave the order a phone-wide column */
@media (max-width: 575.98px), (min-width: 992px) and (max-width: 1199.98px) {
    .eo-desk-info__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-desk-info__grid > div {
        padding: var(--eo-space-sm) var(--eo-space-md);
    }
}

/* phones (and the small laptop's narrow order column): product and total only; the count and price go back under the
   name; money labels sit on the left */
@media (max-width: 575.98px), (min-width: 992px) and (max-width: 1199.98px) {
    .eo-desk-lines {
        --desk-cols: minmax(0, 1fr) auto;
        --desk-pad-x: var(--eo-space-md);
    }

    .eo-desk-line__qty,
    .eo-desk-line__price {
        display: none;
    }

    .eo-desk-line .eo-namecell .eo-cell-sub {
        display: block;
    }

    .eo-desk-line--sum > span:first-child {
        grid-column: 1;
        text-align: left;
    }

    .eo-desk-line--sum > .eo-desk-line__total {
        grid-column: 2;
    }
}

/* the short-stock box at the top of the order; a refusal scrolls it in under the top bar, never under a bar */
.eo-desk-short {
    scroll-margin-top: calc(var(--eo-topbar-h) + var(--eo-space-base));
}

.eo-desk-short[hidden],
.eo-desk-short [hidden] {
    display: none;
}

.eo-desk-short .eo-alert__body > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-sm);
}

.eo-desk-short .eo-order-warnings__list {
    margin: 0;
}

.eo-desk-short__refused {
    margin: 0;
    font-weight: var(--eo-fw-medium);
}

/* an action is on its way: the order dims and its buttons wait, so a slow server never looks like nothing happened */
.eo-desk-order:has(.is-working) .eo-desk-card__body,
[data-desk-body].is-working .eo-desk-card__body {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity var(--eo-dur) var(--eo-ease);
}

/* a toast's one action, such as "ফিরিয়ে আনুন": the sidebar's green on the navy, a quiet frame around it */
.eo-toast__action {
    flex-shrink: 0;
    align-self: center;
    color: var(--eo-side-active-icon);
    background: transparent;
    border-color: color-mix(in srgb, var(--eo-side-active-icon) 45%, transparent);
}

.eo-toast__action:hover,
.eo-toast__action:focus-visible {
    color: var(--eo-side-bg);
    background: var(--eo-side-active-icon);
    border-color: var(--eo-side-active-icon);
}

/* computers: one line pinned to the card's foot while the order scrolls */
.eo-desk-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-desk-actions > .eo-btn,
.eo-desk-actions .dropdown > .eo-btn {
    flex-shrink: 0;
    gap: 6px;
    padding-right: var(--eo-space-md);
    padding-left: var(--eo-space-md);
    white-space: nowrap;
}

.eo-desk-actions__cancel {
    margin-left: auto;
}

.eo-desk-actions__item {
    justify-content: space-between;
    min-width: 180px;
    min-height: 40px;
}

.eo-desk-bar {
    display: none;
}

/* the order's grey shape while it loads (partials/skeleton): the real card's parts, the blocks in their sizes */
.eo-desk-skel .eo-skel {
    flex-shrink: 0;
}

.eo-desk-skel__id {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.eo-desk-skel__name { width: 180px; height: 20px; }
.eo-desk-skel__meta { width: 160px; height: 12px; }
/* the call pills shrink with the card, so a phone never pushes the second one off the edge */
.eo-desk-skel__pills { display: flex; gap: var(--eo-space-sm); min-width: 0; }
.eo-desk-skel__pill { width: min(200px, 45%); height: 26px; border-radius: var(--eo-radius-pill); }
.eo-desk-skel__pill--wide { width: min(220px, 50%); }
.eo-desk-skel__btn { width: 116px; height: var(--eo-control-h); border-radius: var(--eo-radius); }
.eo-desk-skel__btn--edit { width: 130px; }
/* the risk chip: beside "অর্ডার এডিট" until the history column shows it on a wide screen */
.eo-desk-skel__risk { width: 104px; }
.eo-desk-skel__pill--risk { width: min(120px, 30%); }
.eo-desk-skel__label { width: 72px; height: 10px; margin-top: 4px; }
.eo-desk-skel__value { width: 150px; height: 18px; margin-top: 8px; }
.eo-desk-skel__value--wide { width: 70%; }
.eo-desk-skel__title { width: 96px; height: 16px; }
.eo-desk-skel__thumb { width: 40px; height: 40px; border-radius: var(--eo-radius-sm); }
.eo-desk-skel__head { width: 72px; height: 10px; }
.eo-desk-skel__head--num { width: 36px; }
.eo-desk-skel__head--title { width: 90px; }
.eo-desk-skel__num { width: 64px; height: 14px; }
.eo-desk-skel__num--sm { width: 16px; }
.eo-desk-skel__num--label { width: 90px; }
.eo-desk-skel__num--total { width: 96px; height: 20px; }
.eo-desk-skel__cell { width: 90px; height: 14px; margin-top: 8px; }
.eo-desk-skel__cell--wide { width: 150px; }

.eo-desk-skel .pd-fact__icon.eo-skel {
    background: var(--eo-border);
}

/* the bars inside the bill keep to their column's edge (numbers on the right), as the real figures do */
.eo-desk-skel .eo-desk-line .eo-skel,
.eo-desk-skel .eo-desk-info__grid .eo-skel {
    display: inline-block;
    vertical-align: middle;
}

.eo-desk-skel .eo-desk-info__grid .eo-skel {
    display: block;
}

.eo-desk-skel__product {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
}

.eo-desk-skel__text {
    height: 14px;
}

.eo-desk-skel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-desk-skel__action { width: 92px; height: var(--eo-control-h); border-radius: var(--eo-radius); }
.eo-desk-skel__action--main { width: 132px; }
.eo-desk-skel__action--more { width: 132px; }
.eo-desk-skel__action--cancel { width: 64px; margin-left: auto; }

.eo-desk-skel__aside {
    display: none;
}

.eo-desk-skel__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--eo-space-lg);
}

/* the customer's history: a side panel of cards; on a wide screen a column beside the order instead */
.eo-desk-aside__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

/* a part of the history column folds on its title: a small chevron on the right, the body hidden while folded */
[data-desk-part] > .eo-card__head {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

[data-desk-part] > .eo-card__head::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: 0 4px 3px auto;
    border-right: 1.5px solid var(--eo-text-muted);
    border-bottom: 1.5px solid var(--eo-text-muted);
    transform: rotate(45deg);
    transition: transform var(--eo-dur) var(--eo-ease);
}

[data-desk-part].is-folded > .eo-card__head::after {
    margin-bottom: -2px;
    transform: rotate(-45deg);
}

[data-desk-part] > .eo-card__head:hover .eo-card__title {
    color: var(--eo-brand);
}

[data-desk-part] > .eo-card__head:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: -2px;
}

[data-desk-part].is-folded > :not(.eo-card__head) {
    display: none;
}

/* the desk list's two tabs: to call now, and waiting (not confirmed, not due yet), the waiting rows quieter */
.eo-desk__tabs {
    padding: var(--eo-space-sm) var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-desk__tabs .eo-segment {
    display: flex;
}

.eo-desk__tabs .eo-segment__item {
    flex: 1 1 0;
    justify-content: center;
}

.eo-desk__waiting-empty {
    padding: var(--eo-space-lg) var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    text-align: center;
    color: var(--eo-text-muted);
}

.eo-desk__list--waiting .eo-desk__name,
.eo-desk__list--waiting .eo-desk__amount {
    color: var(--eo-text-2);
}

.eo-desk-aside__all {
    display: inline-block;
    margin-top: var(--eo-space-md);
}

.eo-desk-aside__empty {
    margin: 0;
}

.eo-desk-aside .eo-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.eo-desk-aside .eo-dl dt {
    font-size: var(--eo-fs-sm);
}

.eo-desk-aside .eo-dl dd + dt {
    margin-top: var(--eo-space-sm);
}

.eo-desk-past {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-desk-past__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--eo-space-md) var(--eo-space-lg);
}

.eo-desk-past__row + .eo-desk-past__row {
    border-top: 1px solid var(--eo-border);
}

.eo-desk-past__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

/* a wide screen has room: the history stands beside the order, always open, and its triggers just point at it */
@media (min-width: 1700px) {
    .eo-desk-order {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }

    .eo-desk-order > * {
        grid-column: 1;
    }

    .eo-desk-order > .eo-desk-aside,
    .eo-desk-order > .eo-desk-skel__aside {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    /* the loading history column: one card as tall as the list, its parts split by a line, as the real one */
    .eo-desk-skel__aside {
        display: flex;
        flex-direction: column;
        height: var(--desk-h);
        overflow: hidden;
        background: var(--eo-surface);
        border: 1px solid var(--eo-border);
        border-radius: var(--eo-radius-xl);
    }

    .eo-desk-skel__card + .eo-desk-skel__card {
        border-top: 1px solid var(--eo-border);
    }

    .eo-desk-aside.offcanvas {
        position: static;
        z-index: auto;
        width: auto;
        max-width: none;
        visibility: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        transition: none;
    }

    .eo-desk-aside .eo-sidepanel__head {
        display: none;
    }

    .eo-desk-aside .eo-sidepanel__body {
        padding: 0;
        overflow: visible;
    }

    /* the history column: one long card as tall as the list (as the list itself is), its three parts split by a line;
       the call history, last, takes the rest, so the column never ends in a short box over empty page */
    /* the column stays put while the page moves, as the list does, so the three columns never slide apart */
    .eo-desk-order > .eo-desk-aside.offcanvas {
        position: sticky;
        top: calc(var(--eo-topbar-h) + var(--eo-content-pad-y, var(--eo-space-xl)));
    }

    /* the whole card scrolls as one (thin bar), so a long call history never squeezes the part under it */
    .eo-desk-aside .eo-desk-aside__body {
        gap: 0;
        height: var(--desk-h);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
        background: var(--eo-surface);
        border: 1px solid var(--eo-border);
        border-radius: var(--eo-radius-xl);
    }

    .eo-desk-aside .eo-desk-aside__body:hover {
        scrollbar-color: var(--eo-border-strong) transparent;
    }

    .eo-desk-aside__body > .eo-card {
        flex: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .eo-desk-aside__body > .eo-card + .eo-card {
        border-top: 1px solid var(--eo-border);
    }

    /* a short history: the last part takes what is left, so the card still ends where the list ends */
    .eo-desk-aside__body > :last-child {
        flex: 1 0 auto;
    }

    /* the order's steps read at the call history's size */
    .eo-desk-aside .eo-od-event {
        font-size: var(--eo-fs-sm-plus);
    }

    .eo-desk-aside .eo-od-event .eo-muted {
        font-size: var(--eo-fs-sm);
    }

    .eo-desk-head .eo-desk-risk,
    .eo-desk-skel__risk {
        display: none;
    }
}

.eo-desk-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.eo-desk-preset {
    justify-content: flex-start;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h-lg);
}

.eo-desk-preset[hidden] {
    display: none;
}

.eo-desk-reasons {
    margin: 0;
    padding: 0;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-desk-reason {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 48px;
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    cursor: pointer;
}

.eo-desk-reason + .eo-desk-reason {
    border-top: 1px solid var(--eo-border);
}

.eo-desk-reason:hover,
.eo-desk-reason:has(input:checked) {
    background: var(--eo-bg-hover);
}

.eo-desk-reason input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--eo-brand);
}

.eo-desk-reason__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.eo-desk-reason__hint {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-desk-sheet [data-desk-reveal-box][hidden],
.eo-desk-sheet [data-desk-report-box][hidden] {
    display: none;
}

.eo-desk-sheet__rows {
    display: flex;
    flex-direction: column;
}

.eo-desk-sheet__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 52px;
    padding: 0 var(--eo-space-sm);
    font: inherit;
    color: var(--eo-text);
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--eo-border);
}

.eo-desk-sheet__row:last-child {
    border-bottom: 0;
}

.eo-desk-sheet__row .svg-icon {
    color: var(--eo-text-muted);
}

.eo-desk-sheet__row.is-danger,
.eo-desk-sheet__row.is-danger .svg-icon {
    color: var(--eo-danger-strong);
}

.eo-desk-items-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: var(--eo-space-sm);
    margin: 0;
    font-size: var(--eo-fs-lg);
}

/* a laptop with the sidebar: the bar keeps one line with a slimmer list, tighter buttons and no icons on the quieter ones */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .eo-desk.eo-desk--split {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .eo-desk-actions {
        gap: 6px;
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-desk-actions > .eo-btn,
    .eo-desk-actions .dropdown > .eo-btn {
        gap: 4px;
        padding-right: 10px;
        padding-left: 10px;
    }
}


/* a phone or a tablet (under 992px, owner 18 Nov 2026): the order takes the full width (a tablet with its buttons in the
   card's foot as on a laptop, a phone with them on the screen's foot); the list is a drawer from the left, opened by "☰ অর্ডার (8)" in the top bar after the page's name and closed by picking an
   order, the dimmed backdrop or Esc (dashboard.js) */
.eo-desk-scrim {
    display: none;
}

/* the list's button in the top bar shows only on a tablet */
.eo-desk-listbtn {
    display: none;
    flex: none;
}

@media (max-width: 991.98px) {
    .eo-desk.eo-desk--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-desk--split .eo-desk__queue {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1046;
        width: min(340px, 85vw);
        max-height: none;
        border-width: 0 1px 0 0;
        border-radius: 0;
        box-shadow: var(--eo-shadow-float);
        transform: translateX(-105%);
        transition: transform var(--eo-dur) var(--eo-ease);
    }

    .eo-desk--split.is-list-open .eo-desk__queue {
        transform: none;
    }

    .eo-desk--split .eo-desk__queue-head {
        border-radius: 0;
    }

    .eo-desk--split.is-list-open .eo-desk-scrim {
        position: fixed;
        inset: 0;
        z-index: 1045;
        display: block;
        background: rgb(15 23 42 / 0.4);
    }

    .eo-desk-listbtn {
        display: inline-flex;
    }

    /* on the desk itself the top bar's link to the desk is the page already: the list button takes its place */
    .eo-topbar:has(.eo-desk-listbtn) .eo-topbar__desk {
        display: none;
    }
}

/* a tablet or a small laptop: the bar may take two lines */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .eo-desk-actions {
        flex-wrap: wrap;
    }
}

/* phones: the bar on the screen's foot (like the order form's cart bar), big call button, bottom sheets */
@media (max-width: 575.98px) {
    .eo-desk-actions {
        display: none;
    }

    .eo-desk-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: var(--eo-z-formbar, 20);
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
        gap: var(--eo-space-sm);
        padding: 10px var(--eo-space-md) calc(10px + env(safe-area-inset-bottom));
        background: var(--eo-surface);
        border-top: 1px solid var(--eo-border);
        box-shadow: var(--eo-shadow-float);
    }

    .eo-desk-bar .eo-btn {
        height: var(--eo-control-h-lg);
        padding: 0 var(--eo-space-sm);
    }

    /* the page ends above the bar */
    .eo-desk-order:has(.eo-desk-bar) {
        padding-bottom: calc(var(--eo-control-h-lg) + 20px + env(safe-area-inset-bottom));
    }

    .eo-desk-card__body {
        gap: var(--eo-space-base);
        padding-bottom: var(--eo-space-base);
    }

    .eo-desk-card__body > :not(.eo-desk-head, .eo-desk-facts) {
        margin-right: var(--eo-space-base);
        margin-left: var(--eo-space-base);
    }

    .eo-desk-head {
        padding: var(--eo-space-base) var(--eo-space-base) 0;
    }

    /* the call button: its own full line on top, big for a thumb; the risk chip and "অর্ডার এডিট" share the line under it.
       The buttons drop under the pills, across the card */
    .eo-desk-head__actions {
        grid-column: 1 / -1;
        grid-row: 4;
        flex-wrap: wrap;
        gap: var(--eo-space-sm);
        width: 100%;
        margin-top: var(--eo-space-md);
    }

    .eo-desk-head__call {
        flex: 1 1 100%;
        order: -1;
        height: var(--eo-control-h-lg);
    }

    .eo-desk-head__actions > .eo-desk-risk,
    .eo-desk-head__actions > .eo-desk-skel__risk,
    .eo-desk-head__edit {
        flex: 1 1 0;
        justify-content: center;
        min-height: 44px;
    }

    /* the loading shape: the call button takes the line as the real one does; the button row lives in the foot bar */
    .eo-desk-skel__btn {
        width: 100%;
        height: var(--eo-control-h-lg);
    }

    .eo-desk-skel__actions {
        display: none;
    }

    .pd-fact.eo-desk-fact {
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-desk__item {
        min-height: 56px;
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-desk .dropdown-item,
    .eo-desk-actions__item {
        min-height: 44px;
    }

    .eo-desk-fact__edit.eo-btn {
        width: 44px;
        height: 44px;
    }

    /* bottom sheets (the desk's own and the confirm question on the desk), at most 480px wide on a tablet */
    .eo-desk-sheet .modal-dialog,
    body:has(.eo-desk) #eoConfirm .modal-dialog {
        align-items: flex-end;
        min-height: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .eo-desk-sheet .modal-content,
    body:has(.eo-desk) #eoConfirm .modal-content {
        border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
    }

    .eo-desk-sheet .modal-footer {
        padding-bottom: calc(var(--eo-space-md) + env(safe-area-inset-bottom));
    }

    .eo-desk-sheet .modal-footer .eo-btn {
        flex: 1 1 0;
        height: var(--eo-control-h-lg);
    }

    body:has(.eo-desk) #eoConfirm .modal-content {
        padding-bottom: calc(var(--eo-space-lg) + env(safe-area-inset-bottom));
    }

    body:has(.eo-desk) #eoConfirm .eo-btn {
        height: var(--eo-control-h-lg);
    }

    .eo-desk-preset {
        height: 48px;
    }

    /* every tap target here is at least 40px tall */
    .eo-desk-reveals .eo-link-btn,
    .eo-desk-items__edit {
        height: 40px;
    }

    .eo-desk-risk {
        min-height: 44px;
    }

    .eo-desk-items-modal .eo-control--sm {
        height: 40px;
    }
}

/* phones (and the small laptop's narrow order column): the number and the address one under the other */
@media (max-width: 575.98px), (min-width: 992px) and (max-width: 1199.98px) {
    .pd-facts.eo-desk-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-desk-facts > .pd-fact.eo-desk-fact + .pd-fact.eo-desk-fact {
        border-top: 1px solid var(--eo-border);
        border-left: 0;
    }

    .pd-fact dd.eo-desk-fact__phone {
        font-size: var(--eo-fs-xl);
    }

    /* the call line gets its own line under the order number, with no dot left hanging at its start */
    .eo-desk-head__meta > .eo-desk-flag {
        flex-basis: 100%;
    }

    .eo-desk-head__meta > .eo-desk-flag::before {
        display: none;
    }
}

/* a small laptop: the sidebar and the list leave the order about 420px, so the head's buttons drop under the pills as
   on a tablet (call on its own line, the risk chip and "অর্ডার পরিবর্তন" sharing the next) instead of running off the card */
/* a tablet and a small laptop: the buttons on their own row under the name, the call button across it first */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .eo-desk-head__actions {
        grid-column: 1 / -1;
        grid-row: 4;
        flex-wrap: wrap;
        gap: var(--eo-space-sm);
        width: 100%;
        margin-top: var(--eo-space-md);
    }

    .eo-desk-head__call {
        flex: 1 1 100%;
        order: -1;
        justify-content: center;
    }

    .eo-desk-head__actions > .eo-desk-risk,
    .eo-desk-head__actions > .eo-desk-skel__risk,
    .eo-desk-head__edit {
        flex: 1 1 0;
        justify-content: center;
    }
}

/* phones: toasts stay under the top bar, the same place whether a sheet is open or not, clear of the bottom bar */
@media (max-width: 575.98px) {
    .eo-toasts:is(body:has(.eo-desk) *) {
        top: calc(var(--eo-topbar-h) + var(--eo-space-sm));
        bottom: auto;
    }
}

/* 22 courier booking */
/* module 22: parcel detail, book modal, labels and pickup sheet */
.eo-parcel__main { grid-column: span 2; }
.eo-parcel__followup { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: var(--eo-space-sm); align-items: end; padding: var(--eo-space-md) var(--eo-space-base); background: var(--eo-surface-2); border-top: 1px solid var(--eo-border); border-radius: 0 0 var(--eo-radius-lg) var(--eo-radius-lg); }
@media (max-width: 767.98px) { .eo-parcel__followup { grid-template-columns: minmax(0, 1fr); } }
.eo-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--eo-space-md); }
.eo-timeline__item { display: flex; gap: var(--eo-space-sm); align-items: flex-start; }
.eo-timeline__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: var(--eo-icon-box); height: var(--eo-icon-box); border: 1px solid var(--eo-border); border-radius: var(--eo-radius-pill); color: var(--eo-text-muted); background: var(--eo-surface); }
.eo-proof { display: flex; flex-wrap: wrap; gap: var(--eo-space-xs); }
.eo-proof img { width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--eo-border); border-radius: var(--eo-radius-sm); }
.eo-area-results { border: 1px solid var(--eo-border); border-radius: var(--eo-radius); background: var(--eo-surface); max-height: 220px; overflow-y: auto; }
.eo-area-results__item { display: block; width: 100%; text-align: left; padding: var(--eo-space-xs) var(--eo-space-sm); border: 0; background: transparent; color: var(--eo-text); font-size: var(--eo-fs-sm); }
.eo-area-results__item:hover, .eo-area-results__item:focus { background: var(--eo-bg-hover); }

/* the book modal while the courier is asked: its fields step aside for a spinner and one calm line, and the footer's
   buttons wait too (the submit spins, cancel is held) until the courier answers */
.eo-book-waiting { display: flex; flex-direction: column; align-items: center; gap: var(--eo-space-sm); padding: var(--eo-space-2xl) var(--eo-space-base); text-align: center; }
.eo-book-waiting[hidden] { display: none; }
.eo-book-waiting__spin { width: 40px; height: 40px; border-width: 3px; border-color: var(--eo-border); border-right-color: transparent; border-top-color: var(--eo-brand); }
.eo-book-waiting__title { font-size: var(--eo-fs-lg); font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-book-waiting__text { max-width: 360px; margin: 0; font-size: var(--eo-fs-sm); color: var(--eo-text-muted); }
[data-book-modal].is-waiting .eo-book { display: none; }

/* parcel labels (parcels/labels): sender on top, the barcode, the receiver as the biggest part, courier and contents,
   the cash in a black band. Blocks and tables only (wkhtmltopdf makes the PDF and reads no flex or grid); black and
   white so a thermal printer prints it the same */
.eo-labels {
    margin: 0;
    font-family: "Noto Sans Bengali", sans-serif;
    color: #000;
    background: #fff;
}

/* A4 stickers print on their own named page: 6mm round the sheet leaves room for two 95mm labels a row */
@page eo-labels-a4 {
    size: A4;
    margin: 6mm;
}

.eo-labels--a4 {
    page: eo-labels-a4;
    padding: 6mm;
}

.eo-label-card {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 0 3mm 3mm 0;
    padding: 3mm 3mm 0;
    overflow: hidden;
    font-size: 8.5pt;
    line-height: 1.35;
    border: 1.5px solid #000;
    border-radius: 2mm;
    page-break-inside: avoid;
}

.eo-labels--a4 .eo-label-card {
    width: 95mm;
    height: 64mm;
}

.eo-labels--thermal .eo-label-card {
    display: block;
    width: 76mm;
    height: 101mm;
    margin: 0;
    font-size: 10pt;
    page-break-after: always;
}

.eo-label-card table {
    width: 100%;
    border-collapse: collapse;
}

.eo-label-card__head td {
    padding-bottom: 1.5mm;
    vertical-align: top;
    border-bottom: 1px solid #000;
}

.eo-label-card__head strong {
    font-size: 9.5pt;
}

.eo-label-card__head span {
    display: block;
    font-size: 7.5pt;
}

.eo-label-card__order {
    font-size: 10pt;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.eo-label-card__code {
    padding: 1.5mm 0 1mm;
    text-align: center;
}

.eo-barcode {
    display: block;
    overflow: hidden;
    font-family: "Libre Barcode 39", monospace;
    font-size: 34pt;
    line-height: 1;
    white-space: nowrap;
}

.eo-label-card__tracking {
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 2px;
}

.eo-label-card__label {
    font-size: 6.5pt;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
}

/* the receiver: the part a rider reads first */
.eo-label-card__to {
    padding: 1.5mm 0;
    border-top: 1px dashed #000;
}

.eo-label-card__name {
    font-size: 11pt;
    font-weight: 700;
}

.eo-label-card__name span {
    margin-left: 1.5mm;
    white-space: nowrap;
}

.eo-label-card__addr {
    max-height: 8.2mm;
    overflow: hidden;
}

.eo-label-card__meta td {
    padding: 1mm 2mm 1.5mm 0;
    vertical-align: top;
    border-top: 1px dashed #000;
}

.eo-label-card__items {
    max-height: 4.5mm;
    overflow: hidden;
}

/* the cash to collect: white on black across the card's foot, never cut by a long address */
.eo-label-card__cod {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    background: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.eo-label-card__cod td {
    padding: 1.6mm 3mm;
    font-size: 9pt;
    font-weight: 600;
}

.eo-label-card__cod .eo-label-card__amount {
    font-size: 13pt;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* the black band sits over the card's foot, so the card keeps that much room clear above it */
.eo-labels--a4 .eo-label-card {
    padding-bottom: 9mm;
}

.eo-labels--thermal .eo-label-card {
    padding-bottom: 12mm;
}

/* the barcode font carries empty room under its bars; a tight line height keeps the code right under them */
.eo-labels--a4 .eo-barcode {
    font-size: 28pt;
    line-height: 0.8;
}

.eo-labels--a4 .eo-label-card__code {
    padding: 1.5mm 0 0.5mm;
}

.eo-labels--thermal .eo-barcode {
    font-size: 44pt;
    line-height: 0.85;
}

.eo-labels--thermal .eo-label-card__name {
    font-size: 13pt;
}

.eo-labels--thermal .eo-label-card__addr {
    max-height: 16mm;
}

.eo-labels--thermal .eo-label-card__items {
    max-height: 9mm;
}

.eo-labels--thermal .eo-label-card__cod .eo-label-card__amount {
    font-size: 16pt;
}

/* the pickup hand-over sheet (pickups/sheet), an A4 page the courier's person signs. Tables only, no flex or grid:
   wkhtmltopdf turns it into the PDF and does not read them */
/* a named print page: its no-margin rule touches this sheet only, never another printed page of the app; with no browser
   margin the browser prints no date or address on it, and the sheet keeps its own 12mm */
@page eo-sheet {
    size: A4;
    margin: 0;
}

.eo-sheet {
    page: eo-sheet;
    margin: 0;
    padding: var(--eo-space-xl) var(--eo-space-base);
    font-family: "Noto Sans Bengali", sans-serif;
    font-size: 10.5pt;
    color: var(--eo-text);
    background: var(--eo-surface-2);
}

.eo-sheet__bar {
    box-sizing: border-box;
    max-width: 210mm;
    margin: 0 auto var(--eo-space-md);
    text-align: right;
}

.eo-sheet__page {
    box-sizing: border-box;
    max-width: 210mm;
    margin: 0 auto;
    padding: 14mm 14mm 18mm;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
}

/* a phone: the sheet is an A4 paper, so its parcel table slides sideways inside the paper instead of being cut at the
   screen's edge (the page itself never scrolls sideways) */
@media screen and (max-width: 575.98px) {
    .eo-sheet {
        padding: var(--eo-space-base) var(--eo-space-md);
    }

    .eo-sheet__page {
        padding: var(--eo-space-base);
        overflow-x: auto;
    }

    .eo-sheet__table {
        min-width: 640px;
    }
}

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

/* the title in the middle, then the store (left) and the courier (right) side by side */
.eo-sheet__titlebox {
    padding-bottom: 5mm;
    text-align: center;
    border-bottom: 1px solid var(--eo-border);
}

.eo-sheet__title {
    font-size: 18pt;
    font-weight: 700;
    color: var(--eo-brand);
}

.eo-sheet__muted {
    font-size: 9pt;
    color: var(--eo-text-muted);
}

.eo-sheet__parties {
    margin: 6mm 0;
}

.eo-sheet__parties td {
    width: 50%;
    vertical-align: top;
}

.eo-sheet__right {
    text-align: right;
}

.eo-sheet__label {
    display: block;
    margin-bottom: 1mm;
    font-size: 8.5pt;
    font-weight: 600;
    color: var(--eo-text-muted);
}

.eo-sheet__shop {
    font-size: 13pt;
    font-weight: 700;
}
.eo-sheet__table {
    font-size: 10pt;
}

.eo-sheet__table th,
.eo-sheet__table td {
    padding: 2mm;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--eo-text-2);
}

.eo-sheet__table th {
    font-weight: 700;
}

.eo-sheet__table tfoot td {
    font-weight: 700;
}

.eo-sheet__table .eo-num {
    text-align: right;
    white-space: nowrap;
}

.eo-sheet__table .eo-sheet__n {
    width: 8mm;
}

/* the rider sheet's cash box: on the right under the money columns, like a bill's total; the cash in hand is the bold line */
.eo-sheet table.eo-sheet__sum {
    width: 55%;
    margin: 4mm 0 0 auto;
    font-size: 10pt;
}

.eo-sheet__sum td {
    padding: 1.5mm 2mm;
    border-bottom: 1px solid var(--eo-border);
}

.eo-sheet__sum td.eo-num {
    text-align: right;
    white-space: nowrap;
}

.eo-sheet__sum tr.is-total td {
    font-size: 11.5pt;
    font-weight: 700;
    border-top: 1px solid var(--eo-text-2);
    border-bottom: 1px solid var(--eo-text-2);
}

@media screen and (max-width: 575.98px) {
    .eo-sheet table.eo-sheet__sum {
        width: 100%;
    }
}

.eo-sheet__note {
    margin: 6mm 0 0;
    padding: 3mm 4mm;
    font-size: 9.5pt;
    line-height: 1.6;
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-left: 3px solid var(--eo-brand);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.eo-sheet__note strong {
    display: block;
    margin-bottom: 1mm;
    color: var(--eo-text);
}

.eo-sheet__signs {
    margin-top: 22mm;
}

.eo-sheet__signs td {
    width: 42%;
    vertical-align: top;
}

.eo-sheet__signs td.eo-sheet__gap {
    width: 16%;
}

.eo-sheet__line {
    margin-bottom: 3mm;
    border-top: 1px solid var(--eo-text);
}

/* room between the signature lines, so a name and a mobile can be written by hand */
.eo-sheet__signs td > div:not(.eo-sheet__line) {
    margin-top: 3mm;
}

@media print {

    .eo-sheet {
        padding: 0;
        background: var(--eo-surface);
    }

    .eo-sheet__bar {
        display: none;
    }

    .eo-sheet__page {
        max-width: none;
        padding: 12mm;
        border: 0;
    }

}

@media print {
  .eo-labels--a4 { padding: 0; }
}

/* 23 parcel tracking */
/* module 23: buyer tracking page */
.eo-track { background: var(--eo-bg); color: var(--eo-text); font-family: var(--eo-font); min-height: 100vh; }
.eo-track__head { display: flex; align-items: center; gap: var(--eo-space-sm); padding: var(--eo-space-md) var(--eo-space-lg); background: var(--eo-surface); border-bottom: 1px solid var(--eo-border); }
.eo-track__logo { height: 32px; width: auto; }
.eo-track__shop { font-weight: var(--eo-fw-semibold); font-size: var(--eo-fs-lg); }
.eo-track__main { max-width: 640px; margin: 0 auto; padding: var(--eo-space-lg) var(--eo-space-md); display: flex; flex-direction: column; gap: var(--eo-space-md); }
.eo-track__contact { text-align: center; }
/* the code box and its button stay on one line, even on a small phone */
.eo-track__find { flex-wrap: nowrap; }
.eo-track__find .eo-btn { flex-shrink: 0; }
.eo-track__cod { display: flex; align-items: center; justify-content: space-between; gap: var(--eo-space-md); padding: var(--eo-space-md) var(--eo-space-base); background: var(--eo-surface-2); border: 1px solid var(--eo-border); border-radius: var(--eo-radius); }
.eo-track__cod strong { font-size: var(--eo-fs-xl); font-weight: var(--eo-fw-semibold); }
/* a standing list: long Bangla step names read on a phone without shrinking */
.eo-progress { list-style: none; margin: 0; padding: 0; }
.eo-progress__step { position: relative; padding: 0 0 var(--eo-space-lg) var(--eo-space-2xl); color: var(--eo-text-muted); }
.eo-progress__step:last-child { padding-bottom: 0; }
.eo-progress__step::before { content: ""; position: absolute; z-index: 1; left: 0; top: 3px; width: 18px; height: 18px; border: 2px solid var(--eo-border-strong); border-radius: var(--eo-radius-pill); background: var(--eo-surface) center / 12px no-repeat; }
.eo-progress__step::after { content: ""; position: absolute; left: 8px; top: 21px; bottom: -3px; width: 2px; background: var(--eo-border); }
.eo-progress__step:last-child::after { display: none; }
.eo-progress__step.is-done { color: var(--eo-text); }
.eo-progress__step.is-done::before { border-color: var(--eo-success-strong); background-color: var(--eo-success-strong); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.eo-progress__step.is-done::after { background: var(--eo-success-strong); }
.eo-progress__step.is-current { font-weight: var(--eo-fw-semibold); }
.eo-progress__step.is-current::before { box-shadow: 0 0 0 4px var(--eo-success-10); }
.eo-progress__step.is-current::after { background: var(--eo-border); }

/* 24 pickup check packing proof */
/* module 24 and the shared scan box (pickups, rider runs, return desk) */
.eo-scandesk { display: flex; flex-direction: column; gap: var(--eo-space-md); }
.eo-scan { position: relative; display: flex; align-items: center; }
.eo-scan > .svg-icon { position: absolute; z-index: 1; left: var(--eo-space-md); color: var(--eo-text-muted); pointer-events: none; }
.eo-scan__input { height: var(--eo-control-h-lg); padding-left: calc(var(--eo-space-md) * 2 + 16px); font-size: var(--eo-fs-lg); }

/* the packing desk's scan box with its খুঁজুন button joined on the right (eo-input-group): the box keeps its icon and
   takes the width, its right corners square where the button meets it */
.eo-scan-group > .eo-scan { flex: 1 1 auto; min-width: 0; }
.eo-scan-group > .eo-scan .eo-scan__input { width: 100%; border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* the packing desk's order (owner, 21 Nov 2026): the count stands out, it is what goes in the box */
.eo-pack-layout .eo-pack-qty {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

/* the unit after the count, small and grey so the number still leads */
.eo-pack-layout .eo-pack-unit {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

/* the side card's couriers one a line, logo then the full name (the COD page's row tile, eo-cod-couriers) */
.eo-pack-layout .eo-pack-couriers .eo-book__tiles {
    grid-template-columns: minmax(0, 1fr);
}

/* a paid order has no cash box: the weight sits alone at the popup's weight width */
.eo-pack-layout .eo-book__pair:has(> [data-pack-cod][hidden]) {
    grid-template-columns: 200px;
}

/* cancel small at the left, the main button filling the rest */
.eo-pack-foot {
    display: flex;
    gap: var(--eo-space-sm);
}

.eo-pack-foot > .eo-btn--primary {
    flex: 1;
}
.eo-table tr.is-wrong td { background: var(--eo-danger-10); color: var(--eo-danger-strong); }
.eo-table tr.is-scanned td { background: var(--eo-success-10); }

/* 32 inventory */
/* ========================================================================== */
/* INVENTORY (modules 32, 33, 34) */
/* ========================================================================== */

.eo-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    background: var(--eo-surface-2);
    color: var(--eo-text-subtle);
}

.eo-thumb--lg {
    width: 96px;
    height: 96px;
}

.eo-picker-results {
    display: flex;
    flex-direction: column;
    max-height: 280px;
    overflow-y: auto;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-picker-results__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--eo-border);
    cursor: pointer;
}

.eo-picker-results__item:last-child {
    border-bottom: 0;
}

.eo-picker-results__item:hover,
.eo-picker-results__item:focus-visible {
    background: var(--eo-surface-2);
}

.eo-material-short {
    color: var(--eo-danger-strong);
    font-weight: var(--eo-fw-semibold);
}

/* 36 meta ads campaign profit */
.eo-ads-total td {
  background: var(--eo-surface-2);
  font-weight: 600;
}

/* 38 seo google shopping */
/* module 38: Google result preview and the copyable feed link */
.eo-seo-preview { display: flex; flex-direction: column; gap: var(--eo-space-2xs); padding: var(--eo-space-base); border: 1px solid var(--eo-border); border-radius: var(--eo-radius); background: var(--eo-surface); max-width: 640px; }
.eo-seo-preview__url { font-size: var(--eo-fs-sm); color: var(--eo-text-muted); overflow-wrap: anywhere; }
.eo-seo-preview__title { font-size: var(--eo-fs-lg); color: var(--eo-brand); font-weight: var(--eo-fw-medium); }
.eo-seo-preview__text { font-size: var(--eo-fs-md); color: var(--eo-text); }
.eo-seo-link { display: flex; gap: var(--eo-space-xs); align-items: center; }
.eo-seo-link .eo-control { flex: 1; min-width: 0; }
.eo-seo-length--ok { color: var(--eo-success-strong); }
.eo-seo-length--long { color: var(--eo-warning-strong); }

/* 40 omnichannel inbox */
.eo-inbox {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: var(--eo-space-base);
    min-height: calc(100vh - 140px);
}

.eo-inbox__list {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-inbox__items {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    background: var(--eo-surface);
}

.eo-inbox__item {
    display: flex;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    border-bottom: 1px solid var(--eo-border);
    color: var(--eo-text);
    text-decoration: none;
}

.eo-inbox__item:hover {
    background: var(--eo-bg-hover);
}

.eo-inbox__item.is-active {
    background: var(--eo-brand-10);
}

.eo-inbox__item.is-unread .eo-strong {
    color: var(--eo-brand);
}

.eo-inbox__item-body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    min-width: 0;
    flex: 1;
}

.eo-inbox__thread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--eo-space-base);
    min-width: 0;
}

.eo-inbox__pane {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    background: var(--eo-surface);
    min-width: 0;
}

.eo-inbox__head {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
    border-bottom: 1px solid var(--eo-border);
}

.eo-inbox__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.eo-inbox__messages {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 320px);
    padding: var(--eo-space-md);
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    background: var(--eo-surface-2);
}

.eo-inbox__msg {
    align-self: flex-start;
    max-width: 75%;
    padding: var(--eo-space-sm) var(--eo-space-md);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    background: var(--eo-surface);
}

.eo-inbox__msg.is-out {
    align-self: flex-end;
    background: var(--eo-brand-10);
    border-color: var(--eo-brand-20);
}

.eo-inbox__msg.is-hidden {
    border-style: dashed;
    opacity: 0.75;
}

.eo-inbox__msg.is-failed {
    border-color: var(--eo-danger-strong);
}

.eo-inbox__meta {
    margin: var(--eo-space-2xs) 0 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
}

.eo-inbox__system {
    align-self: center;
    color: var(--eo-text-muted);
}

.eo-inbox__image {
    display: block;
    max-width: 240px;
    max-height: 240px;
    border-radius: var(--eo-radius);
}

.eo-inbox__reply {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

.eo-inbox__side {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-connect {
    display: flex;
    flex-direction: column;
}

.eo-connect__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-sm);
}

@media (max-width: 1199px) {
    .eo-inbox__thread {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .eo-inbox {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 43 team hrm */
/* ========================================================================== */
/* 43 TEAM AND HRM */
/* ========================================================================== */

.eo-punch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-punch__state {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-dash > .eo-punch {
    padding: 0;
    background: none;
    border: 0;
}

/* a role that only sees one block gets the whole row, no empty half beside it */
.eo-grid--2 > .eo-card:only-child {
    grid-column: 1 / -1;
}

.eo-team-legend {
    flex-wrap: wrap;
    gap: var(--eo-space-base);
    margin-bottom: var(--eo-space-md);
}

.eo-table .eo-team-grid__day {
    width: 28px;
    padding-left: var(--eo-space-2xs);
    padding-right: var(--eo-space-2xs);
    text-align: center;
}

.eo-team-grid__day.is-holiday {
    color: var(--eo-warning-strong);
}

.eo-team-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: var(--eo-radius-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
}

.eo-team-day--present {
    background: var(--eo-success-10);
    color: var(--eo-success-strong);
}

.eo-team-day--late {
    background: var(--eo-warning-10);
    color: var(--eo-warning-strong);
}

.eo-team-day--absent {
    background: var(--eo-danger-10);
    color: var(--eo-danger-strong);
}

.eo-team-day--leave,
.eo-team-day--off,
.eo-team-day--holiday {
    background: var(--eo-neutral-10);
    color: var(--eo-neutral);
}

.eo-team-preview {
    padding-top: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

/* 44 reports dashboard */
/* ========================================================================== */
/* 44 REPORTS AND DASHBOARD */
/* ========================================================================== */

.eo-dash-queue {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-dash-queue li + li {
    border-top: 1px solid var(--eo-border);
}

.eo-dash-queue__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 44px;
    padding: var(--eo-space-sm) var(--eo-space-lg);
    color: var(--eo-text);
    text-decoration: none;
}

a.eo-dash-queue__row:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-bg-hover);
}

/* one width for every count, so the words start on the same line */
.eo-dash-queue__row .eo-badge {
    justify-content: center;
    min-width: 40px;
}

.eo-dash-queue__row > .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-text-subtle);
    transition: transform var(--eo-dur) var(--eo-ease);
}

a.eo-dash-queue__row:hover > .svg-icon {
    color: var(--eo-text-muted);
    transform: translateX(2px);
}

/* recent orders row: name + number left, money and badge right */
.eo-dash-queue__row .eo-cell-main,
.eo-dash-queue__row .eo-cell-sub {
    display: block;
}

/* dashboard stat strip: narrower cells so a row of five fits on a laptop */
@media (min-width: 576px) {
    .eo-stats.eo-stats--strip {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* the strip used as a panel body already sits inside the panel's border */
.eo-card__body.eo-stats--strip {
    padding: 0;
    border-width: 1px 0 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* to-do: the words open the list, the button opens the work */
.eo-todo__text {
    color: var(--eo-text);
    text-decoration: none;
}

.eo-todo__text:hover {
    color: var(--eo-text);
    text-decoration: underline;
}

.eo-todo .eo-dash-queue__row > .eo-btn {
    flex: 0 0 auto;
}

/* two columns on a wide screen, so eight rows don't push the rest of the page down */
@media (min-width: 992px) {
    .eo-todo__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-todo__list li {
        border-top: 1px solid var(--eo-border);
    }

    .eo-todo__list li:nth-child(-n + 2) {
        border-top: 0;
    }

    .eo-todo__list li:nth-child(odd) {
        border-right: 1px solid var(--eo-border);
    }

    /* a row left alone on its line keeps its half, so its button stays near the words, but draws no divider to nothing */
    .eo-todo__list li:nth-child(odd):last-child {
        border-right: 0;
    }
}

[data-dash-blocks]:empty {
    display: none;
}

[data-dash-stats],
[data-dash-blocks] {
    transition: opacity var(--eo-dur) var(--eo-ease);
}

.eo-load-failed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    color: var(--eo-text-muted);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-dash-chart {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-dash-chart .eo-h3 {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

.eo-chart {
    width: 100%;
    height: auto;
    display: block;
}

.eo-chart__bar--a {
    fill: var(--eo-brand);
}

.eo-chart__bar--b {
    fill: var(--eo-success-strong);
}

.eo-chart__label {
    fill: var(--eo-text-subtle);
    font-size: 10px;
}

.eo-chart__legend {
    display: flex;
    gap: var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-chart__key::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: var(--eo-space-xs);
    border-radius: var(--eo-radius-sm);
    vertical-align: middle;
}

.eo-chart__key--a::before {
    background: var(--eo-brand);
}

.eo-chart__key--b::before {
    background: var(--eo-success-strong);
}

.eo-barlist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-barlist li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
    align-items: center;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-md);
}

.eo-barlist__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-barlist__track {
    width: 100%;
    height: 8px;
    background: var(--eo-bg);
    border-radius: var(--eo-radius-sm);
}

.eo-barlist__value {
    font-variant-numeric: tabular-nums;
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* print file for report PDFs (wkhtmltopdf) */
.eo-print {
    font-family: var(--eo-font, 'Noto Sans Bengali', Arial, sans-serif);
    font-size: 11px;
    color: #1F2933;
}

.eo-print__title {
    font-size: 16px;
    margin: 0 0 4px;
}

.eo-print__meta {
    margin: 0 0 8px;
    color: #616E7C;
}

.eo-print__table {
    width: 100%;
    border-collapse: collapse;
}

.eo-print__table th,
.eo-print__table td {
    border: 1px solid #E3E6EB;
    padding: 4px 6px;
    text-align: left;
}

.eo-print__table th {
    background: #FAFBFC;
}

.eo-print__num {
    text-align: right;
}

/* 44 reports: the tree report (any one to three groupings). the grouping picks sit in one row like the toolbar pills; a child row
   steps in under its parent on a lighter shade, and its toggle turns down when open (pattern from Kothay and TimoDesk) */
/* the report's controls sit on top, straight on the page with no card, so the period and groupings are set before anything is read */
.eo-toolbar.eo-rpt-topbar {
    margin-bottom: 0;
}

/* a report's four tiles: four in a row on a wide screen, two by two below that, never three and one alone */
.eo-report > .eo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .eo-report > .eo-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* a phone: one tile a row, so the figure, its compare line and the day line each get the full width */
@media (max-width: 575.98px) {
    .eo-report > .eo-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* the grouping, period and download buttons read about 2px high (Bangla ink rides above the box middle); a little top room
   puts their words in the middle, level with the store pick beside them (measured on the report page) */
.eo-rpt-topbar .eo-range__btn,
.eo-rpt-topbar .eo-filterbar__actions > .eo-btn:not(.eo-btn--icon) {
    padding-top: var(--eo-space-xs);
}

/* a report has up to six pickers (category, brand, source, district, product, download): the shared bar keeps its group on one
   unbreakable line, which ran them off a narrow screen; here the group may wrap to more lines when it does not fit */
.eo-toolbar.eo-rpt-topbar > .eo-filterbar > .eo-filterbar__actions {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

/* a phone: the pickers two to a line, each half the width; one left over at the end takes the whole line */
@media (max-width: 767.98px) {
    .eo-toolbar.eo-rpt-topbar > .eo-filterbar > .eo-filterbar__actions {
        display: grid;
        flex: 1 1 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-toolbar.eo-rpt-topbar > .eo-filterbar > .eo-filterbar__actions > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* the period button spans its line like the download button under it, not half the line with the right side blank */
    .eo-toolbar.eo-rpt-topbar > .eo-filterbar > .eo-filterbar__lead:has(> .eo-range) {
        flex: 1 1 100%;
    }

    .eo-toolbar.eo-rpt-topbar .eo-filterbar__lead > .eo-range {
        flex: 1 1 100%;
        width: 100%;
    }

    /* stock's three picks (category, brand, product) in the lead: three on one line cut each to "সব …", so two to a line here too */
    .eo-toolbar.eo-rpt-topbar > .eo-filterbar > .eo-filterbar__lead:has(> :nth-child(3)) {
        display: grid;
        flex: 1 1 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-toolbar.eo-rpt-topbar > .eo-filterbar > .eo-filterbar__lead:has(> :nth-child(3)) > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* the download button wears the date button's look (white, a fine border, the same height and words) so the row reads as one set */
.eo-rpt-topbar .eo-filterbar__actions > .eo-btn.eo-btn--sm:not(.eo-btn--icon) {
    height: var(--eo-control-h);
    padding-right: var(--eo-space-md);
    padding-left: var(--eo-space-md);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    background: var(--eo-surface);
    border-color: var(--eo-border);
}

.eo-rpt-topbar .eo-filterbar__actions > .eo-btn.eo-btn--sm:not(.eo-btn--icon):hover {
    border-color: var(--eo-border-strong);
}

/* every pick in the bar stands as tall as the date and download buttons beside it (the small select was 36px next to 40px) */
.eo-rpt-topbar .eo-select__toggle {
    height: var(--eo-control-h);
}

/* "সব ক্যাটাগরি", "সব জেলা", "সব প্রোডাক্ট" are real choices, so each reads in the same plain text, none looks switched off */
.eo-rpt-topbar .eo-select__toggle.is-placeholder,
.eo-rpt-topbar .eo-sel__btn.is-empty {
    color: var(--eo-text);
}

/* the period button names its dates: a floor that fits the usual ones ("1 অক্টোবর 2026 - 8 নভেম্বর 2026") so it hardly moves
   as the period changes, and longer month names simply widen it; a phone keeps the full-width button and the short dates */
@media (min-width: 576px) {
    .eo-rpt-topbar .eo-range__btn {
        min-width: calc(var(--eo-space-3xl) * 6);
    }
}

/* the headline band is the dashboard home's (home.css, loaded by the report page); the home lays out five or six tiles,
   a report has four: two a row on a tablet, all four in one row on a wide screen */
/* a tile with only a line of words at its foot (the stock's worth at sale price) keeps it on the same baseline as the others' */
.eo-rpt-kpis .eo-h6-kpi__visual:has(> .eo-rpt-kpi__note) {
    display: flex;
    align-items: flex-end;
}

.eo-rpt-kpi__note {
    width: 100%;
    font-size: var(--eo-fs-sm);
}

/* home.css hides the last word span of a tile's foot on a phone; the note's only span is its last, so it stays */
@media (max-width: 767.98px) {
    .eo-rpt-kpis .eo-rpt-kpi__note > span:last-child {
        display: inline;
    }
}

.eo-rpt-kpi__sub {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the band rounds only its own four corners, whatever the rows: home.css rounds the first and last tile for one row, which left
   notches where a report's tiles wrap to two or more rows. top right is the last tile of the first row, bottom left the first of the last */
.eo-report .eo-rpt-kpis.eo-h6-kpis > .eo-h6-kpi {
    border-radius: 0;
}

.eo-report .eo-rpt-kpis.eo-h6-kpis > .eo-h6-kpi:first-child {
    border-top-left-radius: var(--eo-radius-xl);
}

.eo-report .eo-rpt-kpis.eo-h6-kpis > .eo-h6-kpi:last-child {
    border-bottom-right-radius: var(--eo-radius-xl);
}

@media (max-width: 1199.98px) {
    .eo-report .eo-rpt-kpis.eo-h6-kpis--4 > .eo-h6-kpi:nth-child(2) {
        border-top-right-radius: var(--eo-radius-xl);
    }

    .eo-report .eo-rpt-kpis.eo-h6-kpis--4 > .eo-h6-kpi:nth-last-child(2) {
        border-bottom-left-radius: var(--eo-radius-xl);
    }
}

@media (min-width: 1200px) {
    .eo-report .eo-rpt-kpis.eo-h6-kpis--4 > .eo-h6-kpi:nth-child(4) {
        border-top-right-radius: var(--eo-radius-xl);
    }

    .eo-report .eo-rpt-kpis.eo-h6-kpis--4 > .eo-h6-kpi:nth-last-child(4) {
        border-bottom-left-radius: var(--eo-radius-xl);
    }
}

@media (max-width: 575.98px) {
    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:first-child {
        border-top-right-radius: var(--eo-radius-xl);
    }

    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:last-child {
        border-bottom-left-radius: var(--eo-radius-xl);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:nth-child(2) {
        border-top-right-radius: var(--eo-radius-xl);
    }

    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:nth-last-child(2) {
        border-bottom-left-radius: var(--eo-radius-xl);
    }
}

@media (min-width: 768px) and (max-width: 1599.98px) {
    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:nth-child(3) {
        border-top-right-radius: var(--eo-radius-xl);
    }

    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:nth-last-child(3) {
        border-bottom-left-radius: var(--eo-radius-xl);
    }
}

@media (min-width: 1600px) {
    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:nth-child(6) {
        border-top-right-radius: var(--eo-radius-xl);
    }

    .eo-report .eo-rpt-kpis.eo-h6-kpis--6 > .eo-h6-kpi:nth-last-child(6) {
        border-bottom-left-radius: var(--eo-radius-xl);
    }
}

/* a phone's half-width tile cut long names to "অর্ডার হওয়া পরি…": here the name may take a second line, which still fits
   beside the icon box, so the figures stay level */
@media (max-width: 575.98px) {
    .eo-rpt-kpis .eo-h6-kpi__label {
        line-height: var(--eo-lh-tight);
        white-space: normal;
    }
}

@media (min-width: 768px) {
    .eo-rpt-kpis.eo-h6-kpis--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .eo-rpt-kpis.eo-h6-kpis--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* six tiles (the courier statement's breakdown): one a line on a phone, two rows of three on a laptop, one row on a wide screen;
   taka figures run long, so a tile never gets narrower than its number */
@media (max-width: 575.98px) {
    .eo-rpt-kpis.eo-h6-kpis--6 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 992px) {
    .eo-rpt-kpis.eo-h6-kpis--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .eo-rpt-kpis.eo-h6-kpis--6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* while a pick loads, the tiles and rows turn to grey shapes in their own places (EO.skeleton); the controls stay usable */
.eo-report.is-loading > :not(.eo-rpt-topbar) {
    pointer-events: none;
}

/* while the figures load the controls are switched off (dashboard.js 44 reportLoad): they fade and take no click */
.eo-report.is-loading .eo-rpt-topbar {
    pointer-events: none;
    opacity: 0.6;
    transition: opacity var(--eo-dur) var(--eo-ease);
}

/* a loading row: grey bars in the parent's own columns; its name (a grey picture and a bar) steps in by the level like a real row */
.eo-rpt-row--skel > td {
    height: var(--rpt-row-h);
}

/* a figure's grey bar sits on the right, where the figure will be */
.eo-rpt-row--skel > td.eo-num > .eo-skel {
    margin-left: auto;
}

/* a loading row's name: the picture, then the name bar across the rest of the name column */
.eo-rpt-row--skel .eo-rpt-name__in {
    display: flex;
    width: 100%;
}

/* the frame of a report that is still fetching its figures stays unseen until dashboard.js turns it grey, so the stand-in
   figures are never read, even for a moment */
.eo-report[data-report-defer] > :not(.eo-rpt-topbar):not(.is-skeleton) {
    visibility: hidden;
}

.eo-rpt-name__in {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    min-width: 0;
}

/* the columns never move when rows open: the name column keeps a fixed share, the arrow its own small width and the figures
   split the rest evenly, whatever the rows hold; a long name ends in "…" (its full name on hover), a narrow screen scrolls */
.eo-rpt-tree .eo-table {
    table-layout: fixed;
    /* a fixed table fills the box, and grows past it (and slides) when its columns' own widths add up to more; never sized by
       what the rows hold. not width 1px + min-width 100%: Firefox can leave a table at its columns' sum and a blank strip beside */
    width: 100%;
}

/* every column has its own floor (the names wider, each figure room for "৳ 1,23,456"), the table is at least their sum and a
   wide screen shares out the rest; a narrow one scrolls instead of squeezing the figures into each other */
.eo-rpt-tree .eo-table th {
    width: calc(var(--eo-space-3xl) * 2 + var(--eo-space-2xl));
}

.eo-rpt-tree .eo-table th[data-col="label"] {
    width: calc(var(--eo-space-3xl) * 5 + var(--eo-space-lg));
}

.eo-rpt-tree .eo-table th.eo-table__actions {
    width: calc(var(--eo-space-3xl) + var(--eo-space-xs));
}

/* a wide report slides sideways by its own slim bar (dashboard.js 44), held at the foot of the screen while the table is in view,
   so the far columns are reachable without scrolling down to the last row; a swipe or trackpad still slides the table itself */
.eo-table-wrap.has-hbar {
    scrollbar-width: none;
}

.eo-table-wrap.has-hbar::-webkit-scrollbar {
    display: none;
}

/* while the mouse drags the table sideways: a hand that holds, and no text gets picked up on the way */
.eo-table-wrap.is-dragging,
.eo-table-wrap.is-dragging * {
    cursor: grabbing;
    user-select: none;
}

.eo-rpt-hbar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--eo-space-2xs) 0;
    background: var(--eo-surface);
    scrollbar-width: thin;
    scrollbar-color: var(--eo-border-strong) transparent;
}

/* a report's table stands in the page column: the column's gap would split the bar from it, so it is pulled up under the table
   and wears the table's frame. inside a card (the credit pages' day list) there is no gap: the pull-up laid the bar over the
   last row and hid it, so there it simply follows the table, with no frame of its own */
:is(.eo-content, .eo-report, [data-swap], .eo-cod-swap) > .eo-rpt-hbar {
    margin-top: calc(-1 * var(--eo-space-lg));
    border: 1px solid var(--eo-border);
    border-top: 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-rpt-hbar[hidden] {
    display: none;
}

.eo-rpt-hbar > div {
    height: 1px;
}

.eo-rpt-hbar::-webkit-scrollbar {
    height: 8px;
}

.eo-rpt-hbar::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
    border-radius: 8px;
}

.eo-rpt-hbar::-webkit-scrollbar-thumb:hover {
    background: var(--eo-text-muted);
}

.eo-rpt-hbar::-webkit-scrollbar-track {
    background: transparent;
}

/* the table hands its bottom corners to the bar under it */
:is(.eo-content, .eo-report, [data-swap], .eo-cod-swap) > .eo-table-wrap.has-hbar,
.eo-rpt-tree.has-hbar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.eo-rpt-tree td.eo-rpt-name {
    overflow: hidden;
}

.eo-rpt-name .eo-rpt-name__in,
.eo-rpt-name .eo-rpt-name__in .eo-status-dot {
    max-width: 100%;
    min-width: 0;
}

/* the name and, for a single day, its weekday in grey on the same line ("15 অক্টোবর 2026 · বৃহস্পতিবার") */
.eo-rpt-name__label {
    display: flex;
    align-items: baseline;
    gap: var(--eo-space-xs);
    min-width: 0;
}

.eo-rpt-name__sub {
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* a narrow screen keeps just the date (the weekday comes back from 768px) and a narrower pinned name column, so the figures
   get most of the width; a long name ends in "…" */
@media (max-width: 767.98px) {
    .eo-rpt-name__sub {
        display: none;
    }

    /* never more than 60% of the screen: on a small phone (320px) the fixed name column took nearly all of it; 45% cut even a
       date ("1 অক্টোবর 2026") and a time; 60% keeps those whole and still leaves the figures room. longer names end in "…" */
    .eo-rpt-tree .eo-table th[data-col="label"] {
        width: min(calc(var(--eo-space-3xl) * 4 + var(--eo-space-2xl)), 60vw);
    }
}

/* the date is what the row is: it stays whole and the weekday beside it gives way first ("29 অক্টোবর 2026 · বৃহ…") */
.eo-rpt-name__label:has(.eo-rpt-name__sub) .eo-rpt-name__text {
    flex-shrink: 0;
}

.eo-rpt-name__sub::before {
    margin-right: var(--eo-space-xs);
    content: "·";
}

/* an order row: its courier on a second line under the number, small and grey */
.eo-rpt-name__label--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.3;
}

/* on its own line it takes no width from the number, so a phone keeps it too */
.eo-rpt-name__label--stack .eo-rpt-name__sub {
    display: block;
    max-width: 100%;
    font-size: var(--eo-fs-xs);
}

.eo-rpt-name__label--stack .eo-rpt-name__sub::before {
    content: none;
}

.eo-rpt-name__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the head and every open row stay in view while the page scrolls (Kothay; dashboard.js 44 slide() sets the numbers):
   a table that fits uses the browser's sticky, an open row under the head and its open parents until its last row goes by;
   a table that slides sideways cannot use sticky against the page, so the same places are reached by moving them down */
.eo-table-wrap.eo-rpt-tree.is-head-sticky .eo-table tbody tr.eo-rpt-row.is-open > td {
    position: sticky;
    top: var(--rpt-row-top, 0px);
    z-index: var(--rpt-z);
    box-shadow: 0 1px 0 var(--eo-border);
}

/* the pinned rows' layers: a level higher up lies over the levels under it, so a pinned row that leaves with the last of its
   own rows slides away beneath its pinned parents, never over them; every pinned row lies over the plain rows (whose sticky
   name cells sit at 1), and the head over all of them */
/* two apart, so a pinned row's name cell can lie one above its own figures (below) and still under the level above it */
.eo-rpt-row--d0 {
    --rpt-z: 20;
}

.eo-rpt-row--d1 {
    --rpt-z: 18;
}

.eo-rpt-row--d2 {
    --rpt-z: 16;
}

.eo-rpt-row--d3 {
    --rpt-z: 14;
}

.eo-rpt-row--d4 {
    --rpt-z: 12;
}

.eo-table-wrap.eo-rpt-tree:is(.is-head-sticky, .is-sliding) .eo-table thead th {
    z-index: 30;
}

.eo-table-wrap.eo-rpt-tree:is(.is-head-sticky, .is-sliding) .eo-table thead th[data-col="label"] {
    z-index: 31;
}

/* the box only slides sideways: the table's own height shows in full, and a moved head or row never adds a scroll inside it */
.eo-table-wrap.eo-rpt-tree.is-sliding {
    overflow-y: hidden;
}

.eo-table-wrap.eo-rpt-tree.is-sliding .eo-table thead th {
    top: 0;
    transform: translateY(var(--rpt-head-y, 0px));
}

.eo-table-wrap.eo-rpt-tree.is-sliding .eo-table tbody tr.eo-rpt-row.is-open > td {
    z-index: var(--rpt-z);
    box-shadow: 0 1px 0 var(--eo-border);
    transform: translateY(var(--rpt-row-y, 0px));
}

.eo-table-wrap.eo-rpt-tree.is-sliding .eo-table tbody tr.eo-rpt-row.is-open > td:not(.eo-rpt-name) {
    position: relative;
}

/* an open row's cells shared one layer, so while sliding its figures (later in the row) painted over its own fixed name cell
   and cut the name; the name lies one above, as on a plain row */
.eo-table-wrap.eo-rpt-tree.is-sliding .eo-table tbody tr.eo-rpt-row.is-open > td.eo-rpt-name {
    z-index: calc(var(--rpt-z) + 1);
}

/* the lowest row held in place (dashboard.js 44 slide() marks is-pinned) casts a soft shade over the rows sliding under it, as
   TimoDesk's tree: one smooth 14px fade under the whole row. it hangs from the row's last cell (the name cell's ::before and
   ::after draw the tree lines) and reaches left across the table's full width (--rpt-table-w, set by slide()) */
.eo-table-wrap.eo-rpt-tree .eo-table tbody tr.eo-rpt-row.is-open.is-pinned > td:last-child:not(.eo-rpt-name)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--rpt-table-w, 100%);
    height: 14px;
    pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--eo-text) 7%, transparent), transparent);
    transform: translateY(100%);
}

/* on every screen the figures slide sideways while the name column stays put (Kothay), with a hairline at its edge */
/* .eo-table in the selector: it must beat the later .eo-rpt-tree td.eo-rpt-name { position: relative } the tree lines use */
.eo-rpt-tree .eo-table th[data-col="label"],
.eo-rpt-tree .eo-table td.eo-rpt-name {
    position: sticky;
    left: 0;
    z-index: 1;
    transition: box-shadow var(--eo-dur) var(--eo-ease);
}

/* only once the figures slide sideways (dashboard.js 44 marks is-scrolled): a hairline and a shade on the names' edge.
   the shade is stacked sharp layers, not a blur, so each row's piece meets the next with no break at the row lines */
.eo-rpt-tree.is-scrolled .eo-table th[data-col="label"],
.eo-rpt-tree.is-scrolled .eo-table td.eo-rpt-name {
    box-shadow:
        1px 0 0 var(--eo-border),
        2px 0 0 color-mix(in srgb, var(--eo-text) 7%, transparent),
        4px 0 0 color-mix(in srgb, var(--eo-text) 4%, transparent),
        6px 0 0 color-mix(in srgb, var(--eo-text) 2%, transparent);
}

/* an open row draws its bottom line as a shadow (above), which wiped the names' edge off its name cell while sliding; it gets both */
.eo-table-wrap.eo-rpt-tree.is-scrolled .eo-table tbody tr.eo-rpt-row.is-open > td.eo-rpt-name {
    box-shadow:
        0 1px 0 var(--eo-border),
        1px 0 0 var(--eo-border),
        2px 0 0 color-mix(in srgb, var(--eo-text) 7%, transparent),
        4px 0 0 color-mix(in srgb, var(--eo-text) 4%, transparent),
        6px 0 0 color-mix(in srgb, var(--eo-text) 2%, transparent);
}

.eo-rpt-tree .eo-table th[data-col="label"] {
    z-index: 3;
    background: var(--eo-surface-2);
}

/* the steps a child row moves in, kept as variables so the tree lines below can find each row's picture.
   the row sizes follow TimoDesk's tree table: 56px rows, 20px in at the start, 12px at the end, 16px between columns and a
   36px picture 12px from its name; the lines hang from the picture's middle */
.eo-rpt-tree {
    --rpt-pad: var(--eo-space-lg);
    --rpt-pad-end: var(--eo-space-md);
    --rpt-col-gap: var(--eo-space-sm);
    --rpt-row-h: calc(var(--eo-row-h) + var(--eo-space-md));
    --rpt-thumb: calc(var(--eo-space-2xl) + var(--eo-space-xs));
    --rpt-step1: var(--eo-space-2xl);
    --rpt-step2: calc(var(--eo-space-2xl) * 2);
    --rpt-step3: calc(var(--eo-space-2xl) * 3);
    --rpt-step4: calc(var(--eo-space-2xl) * 4);
    --rpt-x0: calc(var(--rpt-pad) + var(--rpt-thumb) / 2);
    --rpt-x1: calc(var(--rpt-pad) + var(--rpt-step1) + var(--rpt-thumb) / 2);
    --rpt-x2: calc(var(--rpt-pad) + var(--rpt-step2) + var(--rpt-thumb) / 2);
    --rpt-x3: calc(var(--rpt-pad) + var(--rpt-step3) + var(--rpt-thumb) / 2);
    /* the lines run right up to the pictures they join */
    --rpt-gap: 0px;
    --rpt-line: var(--eo-border-strong);
}

/* every cell the same height and 8px each side (16px between columns); the first and last keep the row's own edges */
.eo-rpt-tree .eo-table th,
.eo-rpt-tree .eo-table td {
    padding-right: var(--rpt-col-gap);
    padding-left: var(--rpt-col-gap);
}

.eo-rpt-tree .eo-table tbody td {
    height: var(--rpt-row-h);
    padding-top: 0;
    padding-bottom: 0;
}

.eo-rpt-tree .eo-table th:first-child,
.eo-rpt-tree .eo-table td:first-child {
    padding-left: var(--rpt-pad);
}

.eo-rpt-tree .eo-table th:last-child,
.eo-rpt-tree .eo-table td:last-child {
    padding-right: var(--rpt-pad-end);
}

/* the figures read from the right, under their heads, as in TimoDesk; the name stays on the left */
.eo-rpt-tree .eo-table th.eo-num,
.eo-rpt-tree .eo-table td.eo-num {
    text-align: right;
}

.eo-rpt-tree .eo-rpt-barcell {
    align-items: flex-end;
    vertical-align: middle;
}

.eo-rpt-row--d1 .eo-rpt-name__in {
    padding-left: var(--rpt-step1);
}

.eo-rpt-row--d2 .eo-rpt-name__in {
    padding-left: var(--rpt-step2);
}

.eo-rpt-row--d3 .eo-rpt-name__in {
    padding-left: var(--rpt-step3);
}

.eo-rpt-row--d4 .eo-rpt-name__in {
    padding-left: var(--rpt-step4);
}

/* the tree lines (TimoDesk and Kothay): an open row drops a line from its picture, each child joins it with a rounded corner,
   the line runs on past a child while more of its brothers follow, and a deeper row carries its grandparent's line when the
   rows under that one go on (dashboard.js 44 marks is-open, is-last and has-guide0/1) */
.eo-rpt-tree td.eo-rpt-name {
    position: relative;
}

.eo-rpt-row--d1 > td.eo-rpt-name::before,
.eo-rpt-row--d2 > td.eo-rpt-name::before,
.eo-rpt-row--d3 > td.eo-rpt-name::before,
.eo-rpt-row--d4 > td.eo-rpt-name::before {
    position: absolute;
    top: -1px;
    height: calc(50% + 1px);
    pointer-events: none;
    content: "";
    border-bottom: 1px solid var(--rpt-line);
    border-left: 1px solid var(--rpt-line);
    border-bottom-left-radius: var(--eo-radius);
}

.eo-rpt-row--d1 > td.eo-rpt-name::before {
    left: var(--rpt-x0);
    width: calc(var(--rpt-pad) + var(--rpt-step1) - var(--rpt-x0) - var(--rpt-gap));
}

.eo-rpt-row--d2 > td.eo-rpt-name::before {
    left: var(--rpt-x1);
    width: calc(var(--rpt-pad) + var(--rpt-step2) - var(--rpt-x1) - var(--rpt-gap));
}

.eo-rpt-row--d3 > td.eo-rpt-name::before {
    left: var(--rpt-x2);
    width: calc(var(--rpt-pad) + var(--rpt-step3) - var(--rpt-x2) - var(--rpt-gap));
}

.eo-rpt-row--d4 > td.eo-rpt-name::before {
    left: var(--rpt-x3);
    width: calc(var(--rpt-pad) + var(--rpt-step4) - var(--rpt-x3) - var(--rpt-gap));
}

.eo-rpt-row--d1:not(.is-last) > td.eo-rpt-name::after,
.eo-rpt-row--d2:not(.is-last) > td.eo-rpt-name::after,
.eo-rpt-row--d3:not(.is-last) > td.eo-rpt-name::after,
.eo-rpt-row--d4:not(.is-last) > td.eo-rpt-name::after {
    position: absolute;
    top: 50%;
    bottom: -1px;
    pointer-events: none;
    content: "";
    border-left: 1px solid var(--rpt-line);
}

.eo-rpt-row--d1:not(.is-last) > td.eo-rpt-name::after {
    left: var(--rpt-x0);
}

.eo-rpt-row--d2:not(.is-last) > td.eo-rpt-name::after {
    left: var(--rpt-x1);
}

.eo-rpt-row--d3:not(.is-last) > td.eo-rpt-name::after {
    left: var(--rpt-x2);
}

.eo-rpt-row--d4:not(.is-last) > td.eo-rpt-name::after {
    left: var(--rpt-x3);
}

/* below an open row's picture, and through a deeper row while its grandparent's line goes on: one rail element in the name
   cell (tree_rows), drawn over the row divider like the corners above */
.eo-rpt-rail {
    display: none;
    position: absolute;
    bottom: -1px;
    width: 0;
    pointer-events: none;
    border-left: 1px solid var(--rpt-line);
}

.eo-rpt-row--d0.is-open .eo-rpt-rail,
.eo-rpt-row--d1.is-open .eo-rpt-rail,
.eo-rpt-row--d2.is-open .eo-rpt-rail,
.eo-rpt-row--d3.is-open .eo-rpt-rail {
    display: block;
    top: calc(50% + var(--rpt-thumb) / 2);
}

.eo-rpt-row--d0.is-open .eo-rpt-rail {
    left: var(--rpt-x0);
}

.eo-rpt-row--d1.is-open .eo-rpt-rail {
    left: var(--rpt-x1);
}

.eo-rpt-row--d2.is-open .eo-rpt-rail {
    left: var(--rpt-x2);
}

.eo-rpt-row--d3.is-open .eo-rpt-rail {
    left: var(--rpt-x3);
}

/* a deeper row carries the lines of the levels above it while their rows go on below (dashboard.js 44 marks has-guide0/1/2):
   one 1px stripe per level in the name cell's background, each clear until its mark turns it on, repeated down through the
   row line so it never breaks */
.eo-rpt-tree .eo-table tbody tr:is(.has-guide0, .has-guide1, .has-guide2) > td.eo-rpt-name {
    background-image: linear-gradient(var(--rpt-g0, transparent), var(--rpt-g0, transparent)),
        linear-gradient(var(--rpt-g1, transparent), var(--rpt-g1, transparent)),
        linear-gradient(var(--rpt-g2, transparent), var(--rpt-g2, transparent));
    background-repeat: repeat-y;
    background-size: 1px 100%;
    background-position: var(--rpt-x0) 0, var(--rpt-x1) 0, var(--rpt-x2) 0;
}

.eo-rpt-tree .eo-table tbody tr.has-guide0 > td.eo-rpt-name {
    --rpt-g0: var(--rpt-line);
}

.eo-rpt-tree .eo-table tbody tr.has-guide1 > td.eo-rpt-name {
    --rpt-g1: var(--rpt-line);
}

.eo-rpt-tree .eo-table tbody tr.has-guide2 > td.eo-rpt-name {
    --rpt-g2: var(--rpt-line);
}

/* one colour per row for every cell, the pinned name cell too: plain on top, a shade per level down, and the hover shade over
   all of them (strong enough to beat the pinned cell's own rules, so a clicked or loading row never splits into two colours) */
.eo-rpt-tree .eo-table tbody tr.eo-rpt-row > td {
    background-color: var(--eo-surface);
}

.eo-rpt-tree .eo-table tbody tr.eo-rpt-row--d1 > td {
    background-color: var(--eo-surface-2);
}

.eo-rpt-tree .eo-table tbody tr.eo-rpt-row--d2 > td,
.eo-rpt-tree .eo-table tbody tr.eo-rpt-row--d3 > td,
.eo-rpt-tree .eo-table tbody tr.eo-rpt-row--d4 > td {
    background-color: var(--eo-bg);
}

/* the rows inside an open group sit on a grey shade, where the list's pale row line vanishes; they take the card's border
   colour instead (TimoDesk's tree children), so every child row keeps its line */
.eo-rpt-tree .eo-table tbody tr.eo-rpt-row:not(.eo-rpt-row--d0) > td {
    border-bottom-color: var(--eo-border);
}

/* an open row already draws its line as a shadow (it stays with the row while the row is pinned), so its own border would
   make the line under it double */
.eo-table-wrap.eo-rpt-tree .eo-table tbody tr.eo-rpt-row.is-open > td {
    border-bottom-color: transparent;
}

.eo-rpt-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--eo-text-muted);
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius-sm);
    transition: background-color var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease);
}

.eo-rpt-toggle:hover {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-rpt-toggle:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

.eo-rpt-toggle .svg-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-rpt-toggle[aria-expanded="true"] .svg-icon {
    transform: rotate(180deg);
}

/* the arrow column stays narrow at the right end; a row that opens shows the hand over all of it */
.eo-rpt-tree .eo-rpt-open {
    width: 40px;
}

.eo-rpt-row.is-openable,
.eo-rpt-row.is-peekable {
    cursor: pointer;
}

/* the box stops clipping when its head sticks to the page (dashboard.js 44 is-head-sticky), so the four corner cells round
   themselves to the box's corners; the head and the last row's shades then never square them off */
.eo-rpt-tree .eo-table thead tr > th:first-child {
    border-top-left-radius: var(--eo-radius-xl);
}

.eo-rpt-tree .eo-table thead tr > th:last-child {
    border-top-right-radius: var(--eo-radius-xl);
}

.eo-rpt-tree .eo-table tbody tr:last-child > td:first-child {
    border-bottom-left-radius: var(--eo-radius-xl);
}

.eo-rpt-tree .eo-table tbody tr:last-child > td:last-child {
    border-bottom-right-radius: var(--eo-radius-xl);
}

/* the figures are what a report row is read for: bold on every level; a rate's small % under its count stays plain */
.eo-rpt-tree .eo-table tbody td.eo-num {
    font-weight: var(--eo-fw-semibold);
}

.eo-rpt-tree .eo-table tbody td.eo-num .eo-rpt-ratebar {
    font-weight: var(--eo-fw-normal);
}

/* a figure with its parts on hover (the courier's charge): a faint dotted line under it says there is more */
.eo-rpt-hint {
    cursor: help;
    text-decoration: underline dotted var(--eo-border-strong);
    text-underline-offset: var(--eo-space-xs);
}

/* an order row opened in the side panel gets the orders list's "picked" mark (dashboard.js 16); the tree has its own lines on
   that edge and no keyboard picking, so the mark stays off here (the sliding-names hairline still wins once it scrolls) */
.eo-rpt-tree:not(.is-scrolled) .eo-table tbody tr.is-focused > td:first-child {
    box-shadow: none;
}

/* one hover shade over the whole row at every level, the colour only, so the tree lines stay */
.eo-rpt-tree .eo-table tbody tr.eo-rpt-row:not(.eo-rpt-row--skel):hover > td {
    background-color: var(--eo-bg-hover);
}

/* a row whose children are loading pulses its toggle; one that failed says so in its place */
.eo-rpt-row.is-loading .eo-rpt-toggle {
    opacity: .4;
    pointer-events: none;
}

/* the load more row: a quiet button at the child step, joined to the group's line like a child */
.eo-rpt-row--more > td {
    height: var(--eo-row-h);
    padding-top: var(--eo-space-xs);
    padding-bottom: var(--eo-space-xs);
}

.eo-rpt-row--more .eo-btn .eo-muted {
    font-weight: var(--eo-fw-normal);
}

/* the picture in front of a tree row's name: one size at every level (TimoDesk), 12px from the name */
.eo-rpt-name .eo-namecell {
    gap: var(--eo-space-md);
}

.eo-rpt-name .eo-rpt-thumb {
    flex: 0 0 var(--rpt-thumb);
    width: var(--rpt-thumb);
    height: var(--rpt-thumb);
    font-size: var(--eo-fs-sm);
}

.eo-rpt-name .eo-rpt-thumb .svg-icon {
    width: 18px;
    height: 18px;
}

/* the download window: two choice tiles a row, each question named above them; a phone stacks them (two squeezed the hint to a word a line) */
@media (min-width: 576px) {
    .eo-rpt-export .eo-choice-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.eo-rpt-export__legend {
    grid-column: 1 / -1;
    margin: 0 0 var(--eo-space-xs);
    padding: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

/* the tree's pictures keep their size even when a line sits under the name (the shared namecell rule makes such tiles 40px),
   so a day row with its weekday stays square and on the tree line */
.eo-rpt-tree .eo-table .eo-rpt-row .eo-rpt-name .eo-namecell > .eo-namecell__tile.eo-rpt-thumb {
    width: var(--rpt-thumb);
    height: var(--rpt-thumb);
}

/* a tree row's main figure: the number with its bar right under it */
.eo-rpt-barcell {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-2xs);
}

/* the empty part shows too (a pale track vanished on white), so a small or empty row still reads as a bar */
.eo-rpt-barcell > .eo-databar {
    width: 88px;
    height: 6px;
    background: var(--eo-border);
}

/* the row bar: each row against the biggest top row, drawn as svg so its width is never an inline style */
.eo-databar > svg {
    display: block;
    width: 100%;
    height: 100%;
}

.eo-databar rect {
    fill: var(--eo-brand);
}

/* a report tile's thin bar (the stock tiles, which have no chart): its empty part shows, as the table bars do */
.eo-report .eo-stat__bar {
    background: var(--eo-border);
}

.eo-report .eo-stat__bar::-webkit-progress-bar {
    background: var(--eo-border);
}

/* a rate under its count ("21", then a bar and "16%"): the bar shows the rate, coloured by what it means */
.eo-rpt-ratebar {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-size: var(--eo-fs-xs);
    line-height: 1;
    color: var(--eo-text-muted);
}

/* the count sits right on its bar: the font's tall line would leave an empty strip between them */
.eo-rpt-barcell > span:first-child {
    line-height: 1;
}

.eo-rpt-barcell:has(> .eo-rpt-ratebar) {
    gap: 0;
}

/* the empty part of the bar shows too, so 0% still reads as an empty bar and not as nothing */
.eo-rpt-ratebar > .eo-databar {
    width: 64px;
    height: 6px;
    background: var(--eo-border);
}

/* the rate keeps one width, so every row's bar starts and ends in the same place */
.eo-rpt-ratebar__pct {
    min-width: 40px;
    text-align: left;
}

.eo-databar--danger rect {
    fill: var(--eo-danger);
}

.eo-databar--success rect {
    fill: var(--eo-success);
}

/* a phone: TimoDesk's narrow sizes, a 48px row, 12px in and a 28px picture */
@media (max-width: 767.98px) {
    .eo-rpt-tree {
        --rpt-pad: var(--eo-space-md);
        --rpt-pad-end: var(--eo-space-sm);
        --rpt-row-h: calc(var(--eo-row-h) + var(--eo-space-xs));
        --rpt-thumb: calc(var(--eo-space-xl) + var(--eo-space-xs));
        --rpt-step1: var(--eo-space-lg);
        --rpt-step2: calc(var(--eo-space-lg) * 2);
        --rpt-step3: calc(var(--eo-space-lg) * 3);
        --rpt-step4: calc(var(--eo-space-lg) * 4);
    }

    .eo-rpt-name .eo-namecell {
        gap: var(--eo-space-sm);
    }

    .eo-rpt-name .eo-rpt-thumb .svg-icon {
        width: 16px;
        height: 16px;
    }
}

/* 44 reports: the courier statement */
/* the courier pick is the page's main choice, so it is wide enough for a long courier name; a phone gives it the full line */
@media (min-width: 576px) {
    .eo-cstmt-courier {
        width: 240px;
    }
}

/* 44 reports: the stock side panel. the stock count large beside the picture, then each group in its own small box */
.eo-rpt-hero {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
}

.eo-rpt-hero__img {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    object-fit: cover;
    color: var(--eo-text-subtle);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-rpt-hero__main {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    min-width: 0;
}

.eo-rpt-hero__label {
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-rpt-hero__value {
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.2;
}

.eo-rpt-hero__value.is-danger {
    color: var(--eo-danger-strong);
}

.eo-rpt-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-md);
}

.eo-rpt-box {
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    overflow: hidden;
}

.eo-rpt-box__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    color: var(--eo-text-2);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.eo-rpt-box__head .svg-icon {
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
}

.eo-rpt-box__body {
    padding: 0 var(--eo-space-md);
}

/* a name with its count under it (the expenses) waits as two bars, the second one thinner, as tall as the two real lines */
.eo-rpt-skel-stack {
    display: flex;
    flex: 0 1 160px;
    flex-direction: column;
    gap: var(--eo-space-xs);
    min-width: 0;
}

.eo-rpt-skel-stack > .eo-skel:first-child {
    height: 14px;
}

.eo-rpt-skel-stack > .eo-skel:last-child {
    height: 10px;
}

/* the loading shape: grey bars sit inline, so each row keeps the height of the real text line and nothing jumps */
.eo-rpt-skel__text {
    display: inline-block;
    vertical-align: middle;
}

.eo-rpt-skel .eo-rpt-hero__img {
    background: var(--eo-border);
    border-color: transparent;
}

.eo-rpt-skel__w60 { width: 60px; }
.eo-rpt-skel__w96 { width: 96px; }
.eo-rpt-skel__w120 { width: 120px; }
.eo-rpt-skel__big { width: 96px; height: 24px; }

.eo-rpt-skel__btn {
    width: 100%;
    height: var(--eo-control-h);
    border-radius: var(--eo-radius);
}

/* 01 features and first steps */
.eo-feature-list,
.eo-first-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eo-feature,
.eo-first-step {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-feature:last-child,
.eo-first-step:last-child {
    border-bottom: 0;
}

/* a feature opened from a link elsewhere (?focus=): its row is marked in the brand tint with a bar on the left, and the jump
   to it stops below the top bar */
.eo-feature {
    scroll-margin-top: calc(var(--eo-topbar-h) + var(--eo-space-xl));
}

.eo-feature.is-focus {
    background: var(--eo-brand-10);
    box-shadow: inset 3px 0 0 var(--eo-brand);
}

.eo-feature.is-focus .eo-feature__icon {
    color: var(--eo-brand);
    background: var(--eo-surface);
}

.eo-feature__icon,
.eo-first-step__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--eo-icon-box);
    height: var(--eo-icon-box);
    border-radius: var(--eo-radius);
    background: var(--eo-bg-hover);
    color: var(--eo-text);
}

.eo-feature__text,
.eo-first-step__text {
    flex: 1;
    min-width: 0;
}

.eo-feature__text p {
    margin: 0;
}

.eo-first-step__mark {
    width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
    border-radius: var(--eo-radius-pill);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border-strong);
    color: var(--eo-text-subtle);
}

.eo-first-step.is-done .eo-first-step__mark {
    background: var(--eo-success-10);
    border-color: var(--eo-success-strong);
    color: var(--eo-success-strong);
}

/* a done step reads quieter, not crossed out: the green tick already says it is done */
.eo-first-step.is-done .eo-first-step__text {
    color: var(--eo-text-muted);
}

/* 01 settings home (/settings), owner 19 Nov 2026: every settings page its own card, the cards in a grid with a gap (four to
   a row on a laptop, three when that fills every row, two on a tablet, one on a phone); inside, a soft icon tile, the name
   with its arrow and one grey line; the whole card is the link */
.eo-sethub {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
}

@media (min-width: 768px) {
    .eo-sethub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .eo-sethub {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

.eo-sethub__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-xs);
    min-width: 0;
    padding: var(--eo-space-lg);
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
    transition: background-color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease);
}

.eo-sethub__card:hover,
.eo-sethub__card:focus-visible {
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border-color: var(--eo-border-strong);
}

.eo-sethub__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--eo-space-xs);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-sethub__icon .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-sethub__name {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-sethub__line {
    font-size: var(--eo-fs-sm);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text-muted);
}

.eo-sethub__go {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--eo-text-subtle);
    transition: transform var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease);
}

.eo-sethub__card:hover .eo-sethub__go,
.eo-sethub__card:focus-visible .eo-sethub__go {
    color: var(--eo-brand);
    transform: translateX(3px);
}

/* a phone: the icon on the left of its name and line */
@media (max-width: 575.98px) {
    .eo-sethub__card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: var(--eo-space-md);
        padding: var(--eo-space-base);
    }

    .eo-sethub__icon {
        grid-row: span 2;
        margin-bottom: 0;
    }
}


/* the features page: one card, one row per feature: a soft green icon tile, the name over one grey line, the switch at
   the right end; an off feature's tile turns grey (owner, 17 Nov 2026) */
.eo-feature-panel .eo-feature {
    gap: var(--eo-space-base);
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.eo-feature-panel .eo-feature__icon {
    width: 44px;
    height: 44px;
    color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 13%, var(--eo-surface));
    border-radius: var(--eo-radius);
}

.eo-feature-panel .eo-feature__icon .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-feature-panel .eo-feature:not(:has(input:checked)) .eo-feature__icon {
    color: var(--eo-text-subtle);
    background: var(--eo-bg-hover);
}

.eo-feature__name {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-feature__line {
    margin-top: 2px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-feature__switch {
    flex: 0 0 auto;
    gap: 0;
    margin: 0;
}

.eo-feature-panel .eo-feature.is-focus .eo-feature__icon {
    color: var(--eo-brand);
    background: var(--eo-surface);
}

/* ========================================================================== */
/* CUSTOM SELECT (every select.eo-control; the real select stays hidden in the form) */
/* ========================================================================== */

.eo-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.eo-select__toggle {
    display: flex;
    align-items: center;
    padding-right: 30px;
    text-align: left;
    background-image: var(--eo-caret);
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    cursor: pointer;
}

.eo-select__toggle.is-open {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-select__toggle.is-placeholder {
    color: var(--eo-text-subtle);
}

.eo-select__toggle:disabled {
    cursor: not-allowed;
}

.eo-select__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* an auto-width cell would shrink a 100% wide button to its padding */
.eo-table td .eo-select__toggle {
    width: auto;
    max-width: 260px;
}

.eo-select__menu {
    position: fixed;
    z-index: var(--eo-z-popover);
    display: flex;
    flex-direction: column;
    max-width: min(420px, calc(100vw - 16px));
    max-height: 320px;
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
}

.eo-select__search {
    flex: 0 0 auto;
    width: auto;
    margin: var(--eo-space-sm) var(--eo-space-sm) var(--eo-space-xs);
}

.eo-select__list {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--eo-space-xs);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.eo-select__group {
    padding: var(--eo-space-sm) var(--eo-space-sm) var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

.eo-select__option {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-height: 36px;
    padding: 6px var(--eo-space-sm);
    font-size: var(--eo-fs-base);
    color: var(--eo-text);
    border-radius: var(--eo-radius);
    cursor: pointer;
}

.eo-select__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* a short muted note on an option's right (an account's balance), kept on one line */
.eo-select__aside {
    flex: 0 0 auto;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

.eo-select__option svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--eo-brand);
    visibility: hidden;
}

.eo-select__option.is-active {
    background: var(--eo-bg-hover);
}

.eo-select__option.is-selected {
    font-weight: var(--eo-fw-medium);
}

.eo-select__option.is-selected svg {
    visibility: visible;
}

.eo-select__option.is-placeholder {
    color: var(--eo-text-subtle);
}

.eo-select__option.is-disabled {
    color: var(--eo-text-subtle);
    cursor: not-allowed;
}

.eo-select__empty {
    padding: var(--eo-space-md) var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
    text-align: center;
}

/* bigger touch targets on phones */
@media (max-width: 767.98px) {
    .eo-select__option {
        min-height: 44px;
    }
}

/* 45 best courier: booking modal */
.eo-book-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs);
    margin-top: calc(var(--eo-space-xs) * -1);
}

.eo-book-suggest[hidden] {
    display: none;
}

/* ========================================================================== */
/* FILE UPLOADER (<x-file-upload>, also every <x-input type="file">) */
/* ========================================================================== */

/* a flat drop zone with a dashed border; the real input stays inside the label so keyboard and forms work as before */
.eo-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-upload__zone {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 72px;
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-base);
    border: 1px dashed var(--eo-border-strong);
    border-radius: var(--eo-radius-lg);
    background: var(--eo-surface-2);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-upload__zone:hover,
.eo-upload.is-dragging .eo-upload__zone {
    border-color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-upload.is-dragging .eo-upload__zone {
    border-style: solid;
}

.eo-upload__zone:focus-within {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

.eo-upload__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: var(--eo-icon-box);
    height: var(--eo-icon-box);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    background: var(--eo-surface);
    color: var(--eo-brand);
}

.eo-upload [hidden] {
    display: none;
}

.eo-upload__icon--img {
    padding: 2px;
    object-fit: contain;
}

.eo-upload__text {
    display: grid;
    flex: 1;
    gap: var(--eo-space-2xs);
    min-width: 0;
}

.eo-upload__title {
    color: var(--eo-text);
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    line-height: var(--eo-lh-tight);
}

.eo-upload__hint {
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-upload__pick {
    flex: none;
    pointer-events: none;
}

.eo-field.is-invalid .eo-upload__zone,
.eo-upload.is-invalid .eo-upload__zone {
    border-color: var(--eo-danger);
    background: var(--eo-danger-10);
}

.eo-upload__list {
    display: grid;
    gap: var(--eo-space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-upload__list[hidden] {
    display: none;
}

.eo-upload__item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
    padding: var(--eo-space-xs) var(--eo-space-sm);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    background: var(--eo-surface);
}

.eo-upload__item[hidden] {
    display: none;
}

.eo-upload__thumb {
    display: grid;
    flex: none;
    place-items: center;
    width: var(--eo-icon-box);
    height: var(--eo-icon-box);
    border-radius: var(--eo-radius-sm);
    background: var(--eo-bg);
    color: var(--eo-text-muted);
    object-fit: cover;
}

.eo-upload__info {
    display: grid;
    flex: 1;
    min-width: 0;
}

.eo-upload__name {
    overflow: hidden;
    color: var(--eo-text);
    font-size: var(--eo-fs-md);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-upload__meta {
    color: var(--eo-text-subtle);
    font-size: var(--eo-fs-sm);
}

.eo-upload__remove {
    flex: none;
    color: var(--eo-text-muted);
}

.eo-upload__remove:hover {
    color: var(--eo-danger-strong);
}

/* compact: one line, for table cells such as the return desk photo column */
.eo-upload--sm {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

.eo-upload--sm .eo-upload__zone {
    flex: none;
    gap: var(--eo-space-xs);
    min-height: var(--eo-control-h-sm);
    padding: 0 var(--eo-space-sm);
    border-radius: var(--eo-radius);
}

.eo-upload--sm .eo-upload__icon {
    width: auto;
    height: auto;
    border: 0;
    background: none;
}

.eo-upload--sm .eo-upload__title {
    font-size: var(--eo-fs-sm);
    white-space: nowrap;
}

.eo-upload--sm .eo-upload__list {
    display: flex;
    flex: 1;
    min-width: 0;
}

.eo-upload--sm .eo-upload__item {
    padding: 0 0 0 var(--eo-space-2xs);
    border: 0;
    background: none;
}

.eo-upload--sm .eo-upload__thumb {
    width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
}

.eo-upload--sm .eo-upload__info {
    display: none;
}

@media (max-width: 575.98px) {
    .eo-upload__zone {
        padding: var(--eo-space-md);
    }

    .eo-upload:not(.eo-upload--sm) .eo-upload__pick {
        display: none;
    }
}

/* ========================================================================== */
/* AI ASSISTANT (46): top bar button and side panel */
/* ========================================================================== */

/* accent, not brand: brand stays on the main action ("নতুন অর্ডার") beside it */
/* same weight as quick actions beside it, only the icon carries the accent */
.eo-ai-btn .svg-icon {
    color: var(--eo-accent);
}

.eo-ai.offcanvas {
    --bs-offcanvas-width: 440px;
    display: flex;
    flex-direction: column;
    font-family: var(--eo-font);
    color: var(--eo-text);
    background: var(--eo-surface);
    border-left: 1px solid var(--eo-border);
    box-shadow: var(--eo-shadow-float);
}

@media (max-width: 575.98px) {
    .eo-ai.offcanvas {
        --bs-offcanvas-width: 100vw;
    }
}

.eo-ai__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base) var(--eo-space-base) var(--eo-space-md);
    border-bottom: 1px solid var(--eo-border);
}

.eo-ai__mark,
.eo-ai__avatar,
.eo-ai__hero-icon,
.eo-ai__off-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    color: var(--eo-accent);
    background: var(--eo-accent-10);
    border-radius: var(--eo-radius-sm);
}

.eo-ai__mark {
    width: var(--eo-icon-box);
    height: var(--eo-icon-box);
}

.eo-ai__head-text {
    flex: 1;
    min-width: 0;
}

.eo-ai__title {
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

.eo-ai__credit {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-ai__credit strong {
    color: var(--eo-text);
    font-weight: var(--eo-fw-semibold);
}

.eo-ai__dot {
    margin: 0 var(--eo-space-xs);
    color: var(--eo-text-subtle);
}

.eo-ai__body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding: var(--eo-space-base);
    background: var(--eo-surface-2);
}

.eo-ai__lead {
    margin: 0 0 var(--eo-space-base);
    color: var(--eo-text-muted);
    line-height: var(--eo-lh-normal);
}

/* the one-click overview: the panel's main action */
.eo-ai__hero {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    width: 100%;
    padding: var(--eo-space-md) var(--eo-space-base);
    font-family: inherit;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    text-align: left;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid color-mix(in srgb, var(--eo-accent) 35%, transparent);
    border-radius: var(--eo-radius-lg);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-ai__hero:hover,
.eo-ai__hero:focus-visible {
    background: var(--eo-accent-10);
    border-color: var(--eo-accent);
    outline: none;
}

.eo-ai__hero-icon {
    width: 36px;
    height: 36px;
}

.eo-ai__hero-text {
    flex: 1;
}

.eo-ai__hero > .svg-icon:last-child {
    color: var(--eo-accent);
}

.eo-ai__label {
    margin: var(--eo-space-xl) 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-subtle);
}

/* six ready questions as small tiles, two a row: an icon and a short name, one tap asks the full question */
.eo-ai__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-sm);
    margin-top: var(--eo-space-md);
}

.eo-ai__tile {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
    min-height: 44px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-family: inherit;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text);
    text-align: left;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-ai__tile .svg-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--eo-accent);
}

.eo-ai__tile > span {
    min-width: 0;
    line-height: 1.35;
}

.eo-ai__tile:hover,
.eo-ai__tile:focus-visible {
    background: var(--eo-accent-10);
    border-color: color-mix(in srgb, var(--eo-accent) 35%, transparent);
    outline: none;
}

/* a few short questions as small pills that wrap, not a stack of boxes to read */
.eo-ai__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    margin-top: var(--eo-space-md);
}

.eo-ai__chip {
    padding: 6px var(--eo-space-md);
    font-family: inherit;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-2);
    text-align: left;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-ai__chip:hover,
.eo-ai__chip:focus-visible {
    background: var(--eo-bg-hover);
    border-color: var(--eo-border-strong);
    outline: none;
}

.eo-ai__msg {
    display: flex;
    gap: var(--eo-space-sm);
    align-items: flex-start;
}

.eo-ai__msg--user {
    justify-content: flex-end;
}

.eo-ai__bubble {
    max-width: 85%;
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    color: var(--eo-on-brand);
    line-height: var(--eo-lh-normal);
    white-space: pre-wrap;
    background: var(--eo-accent);
    border-radius: var(--eo-radius-lg) var(--eo-radius-lg) var(--eo-radius-sm) var(--eo-radius-lg);
}

.eo-ai__avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--eo-radius);
}

.eo-ai__avatar .svg-icon {
    width: 16px;
    height: 16px;
}

.eo-ai__avatar--error {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

/* a draft the merchant must approve before anything is sent */
.eo-ai__draft {
    display: grid;
    gap: var(--eo-space-xs);
    padding: var(--eo-space-md);
    margin-top: var(--eo-space-sm);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-ai__draft p {
    margin: 0;
}

.eo-ai__draft-title {
    font-weight: var(--eo-fw-semibold);
}

.eo-ai__draft-to {
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

.eo-ai__draft-text {
    white-space: pre-line;
}

.eo-ai__answer {
    flex: 1;
    min-width: 0;
    padding: var(--eo-space-md);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm) var(--eo-radius-lg) var(--eo-radius-lg) var(--eo-radius-lg);
}

.eo-ai__answer--error {
    border-color: var(--eo-danger-25);
}

.eo-ai__answer--error p {
    margin: 0 0 var(--eo-space-sm);
}

.eo-ai__answer--error p:last-child {
    margin-bottom: 0;
}

.eo-ai__answer-body p {
    margin: 0 0 var(--eo-space-xs);
    line-height: var(--eo-lh-normal);
}

.eo-ai__answer-body .eo-ai__headline {
    margin-bottom: var(--eo-space-sm);
    font-weight: var(--eo-fw-semibold);
}

.eo-ai__answer-body .eo-ai__point {
    position: relative;
    padding-left: var(--eo-space-base);
}

.eo-ai__answer-body .eo-ai__point::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 4px;
    width: 5px;
    height: 5px;
    background: var(--eo-text-subtle);
    border-radius: 50%;
}

.eo-ai__answer-body .eo-ai__step {
    margin-top: var(--eo-space-sm);
    padding: var(--eo-space-xs) var(--eo-space-sm);
    color: var(--eo-accent);
    background: var(--eo-accent-10);
    border-radius: var(--eo-radius-sm);
}

.eo-ai__meta {
    margin: var(--eo-space-sm) 0 0;
    padding-top: var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
    border-top: 1px solid var(--eo-border);
}

.eo-ai__typing {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 4px 0 0;
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

.eo-ai__typing-dots {
    display: inline-flex;
    gap: 3px;
}

.eo-ai__typing-dots i {
    width: 6px;
    height: 6px;
    background: var(--eo-accent);
    border-radius: 50%;
    animation: eo-ai-dot 1.2s var(--eo-ease) infinite;
}

.eo-ai__typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.eo-ai__typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes eo-ai-dot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.eo-ai__off {
    margin: auto 0;
    padding: var(--eo-space-xl) var(--eo-space-base);
    text-align: center;
}

.eo-ai__off-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--eo-space-md);
}

.eo-ai__off-title {
    margin: 0 0 var(--eo-space-sm);
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

.eo-ai__composer {
    display: flex;
    gap: var(--eo-space-sm);
    align-items: flex-end;
    padding: var(--eo-space-md) var(--eo-space-base) var(--eo-space-xs);
    border-top: 1px solid var(--eo-border);
}

.eo-ai__input.eo-control {
    height: var(--eo-control-h);
    min-height: var(--eo-control-h);
    max-height: 140px;
    padding-top: var(--eo-space-sm);
    padding-bottom: var(--eo-space-sm);
    resize: none;
    line-height: var(--eo-lh-normal);
}

.eo-ai__note {
    margin: 0;
    padding: 0 var(--eo-space-base) var(--eo-space-md);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
}

@media (prefers-reduced-motion: reduce) {
    .eo-ai__typing-dots i {
        animation: none;
    }
}

/* ========================================================================== */
/* ORDER ITEMS AND TOTALS (order page) */
/* ========================================================================== */

.eo-item-cell {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-item-cell__text {
    display: grid;
    min-width: 0;
}

/* invoice style: a narrow block on the right instead of labels and amounts at opposite edges of the card */
.eo-totals {
    display: grid;
    gap: var(--eo-space-xs);
    width: 100%;
    max-width: 380px;
    margin: 0 0 0 auto;
}

.eo-totals__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-base);
}

.eo-totals dt {
    color: var(--eo-text-muted);
    font-weight: var(--eo-fw-normal);
}

.eo-totals dd {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.eo-totals__row--total {
    margin-top: var(--eo-space-xs);
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

.eo-totals__row--total dt,
.eo-totals__row--total dd {
    color: var(--eo-text);
    font-weight: var(--eo-fw-semibold);
}

/* what the courier collects from the buyer: the number the team checks most */
.eo-totals__row--due {
    margin-top: var(--eo-space-xs);
    padding: var(--eo-space-sm) var(--eo-space-md);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    background: var(--eo-surface-2);
}

.eo-totals__row--due dt {
    color: var(--eo-text);
    font-weight: var(--eo-fw-semibold);
}

.eo-totals__row--due dd {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
}

.eo-totals__row--note {
    margin-top: var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
}

@media (max-width: 575.98px) {
    .eo-totals {
        max-width: none;
    }
}

/* ========================================================================== */
/* DASHBOARD LAYOUT (UI pass) */
/* ========================================================================== */

/* fixed 4 per row, so 8 cards make two even rows instead of 5 + 3 */
@media (min-width: 768px) {
    .eo-stats.eo-stats--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* admin business page: 7 figures, two per row below 768px, and the last one takes the empty cell beside it */
@media (max-width: 767.98px) {
    .eo-stats.eo-org-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.eo-org-stats > .eo-stat:last-child:nth-child(odd) {
    grid-column: span 2;
}

/* admin business page: the owner's phone never breaks at its dash (.eo-dl lets other nowrap text wrap) */
.eo-org-owner .eo-nowrap {
    white-space: nowrap;
}

/* its head line (status and sign-up day) is short and read in full: beside three buttons on a tablet it takes two lines */
.eo-org-head .eo-pagehead__help {
    white-space: normal;
}

/* admin settings, integrations and payment gateways: the one-line help under a service is read in full on a phone and
   a tablet too (the shared lead-column rule below 1024px ends it in "…") */
@media (max-width: 1023.98px) {
    .eo-table-wrap.eo-providers-table > .eo-table > tbody > tr > td:first-child .eo-cell-sub.eo-cell-sub--wrap {
        max-width: none;
        overflow: visible;
        white-space: normal;
    }
}

/* cards side by side keep their own height; a short list no longer stretches to match its neighbour */
.eo-grid.eo-grid--top {
    align-items: start;
}

/* delivered is the accent, so it never looks like the orders bar (the brand green) */
.eo-chart__bar--b {
    fill: var(--eo-accent);
}

.eo-chart__key--b::before {
    background: var(--eo-accent);
}

.eo-chart__value {
    fill: var(--eo-text-muted);
    font-size: 10px;
    font-weight: var(--eo-fw-semibold);
}

.eo-chart__axis {
    stroke: var(--eo-border);
    stroke-width: 1;
}

/* ========================================================================== */
/* FRAUD CHECK CARD (17): one short line per courier, fits a side column       */
/* ========================================================================== */

.eo-fraud-couriers {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-fraud-courier {
    display: grid;
    gap: 4px;
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-fraud-courier + .eo-fraud-courier {
    border-top: 1px solid var(--eo-border);
}

.eo-fraud-courier__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-sm);
}

.eo-fraud-courier__ratio {
    margin-left: auto;
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
}

.eo-fraud-courier__ratio.is-success { color: var(--eo-success); }
.eo-fraud-courier__ratio.is-warning { color: var(--eo-warning); }
.eo-fraud-courier__ratio.is-danger { color: var(--eo-danger); }

.eo-fraud-courier__bar {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    appearance: none;
    background: var(--eo-border);
    border: 0;
    border-radius: var(--eo-radius-pill);
}

.eo-fraud-courier__bar::-webkit-progress-bar { background: var(--eo-border); border-radius: var(--eo-radius-pill); }
.eo-fraud-courier__bar::-webkit-progress-value { border-radius: var(--eo-radius-pill); }
.eo-fraud-courier__bar--success::-webkit-progress-value { background: var(--eo-success); }
.eo-fraud-courier__bar--warning::-webkit-progress-value { background: var(--eo-warning); }
.eo-fraud-courier__bar--danger::-webkit-progress-value { background: var(--eo-danger); }
.eo-fraud-courier__bar--success::-moz-progress-bar { background: var(--eo-success); }
.eo-fraud-courier__bar--warning::-moz-progress-bar { background: var(--eo-warning); }
.eo-fraud-courier__bar--danger::-moz-progress-bar { background: var(--eo-danger); }

/* the order form's fraud side panel: verdict, three numbers, one line per courier, the shop's own record */
.fx-verdict {
    display: grid;
    gap: var(--eo-space-xs);
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.fx-verdict__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.fx-verdict__label {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.fx-verdict__score {
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fx-verdict--success .fx-verdict__label,
.fx-verdict--success .fx-verdict__score { color: var(--eo-success-strong); }
.fx-verdict--warning .fx-verdict__label,
.fx-verdict--warning .fx-verdict__score { color: var(--eo-warning-strong); }
.fx-verdict--danger .fx-verdict__label,
.fx-verdict--danger .fx-verdict__score { color: var(--eo-danger-strong); }

.fx-verdict__why {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.fx-verdict .eo-fraud-courier__bar {
    margin-top: var(--eo-space-xs);
}

.fx-nums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.fx-nums__item {
    display: grid;
    gap: 2px;
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.fx-nums__item + .fx-nums__item {
    border-left: 1px solid var(--eo-border);
}

.fx-nums__value {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text);
}

.fx-nums--quiet .fx-nums__value {
    font-size: var(--eo-fs-base);
}

.fx-nums__value.is-success { color: var(--eo-success-strong); }
.fx-nums__value.is-danger { color: var(--eo-danger-strong); }

.fx-nums__label {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.fx-section {
    display: grid;
    gap: var(--eo-space-sm);
}

.fx-section__title {
    margin: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
}

.fx-couriers {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.fx-courier {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.fx-courier + .fx-courier {
    border-top: 1px solid var(--eo-border);
}

.fx-courier__main {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.fx-courier__name {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.fx-courier__counts {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.fx-courier__ratio {
    min-width: 44px;
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text-muted);
    text-align: right;
}

.fx-courier__ratio.is-success { color: var(--eo-success-strong); }
.fx-courier__ratio.is-warning { color: var(--eo-warning-strong); }
.fx-courier__ratio.is-danger { color: var(--eo-danger-strong); }

.fx-courier.is-quiet .fx-courier__name {
    color: var(--eo-text-muted);
}

.fx-foot {
    margin: 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* ========================================================================== */
/* RETURN RISK (17): list badge with a reasons popover, order page meter       */
/* ========================================================================== */

.eo-risk-btn {
    display: inline-flex;
    padding: 0;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: var(--eo-radius-pill);
}

.eo-risk-btn:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

.eo-risk-pop {
    margin: 0;
    padding-left: var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    line-height: var(--eo-lh-normal);
}

.eo-risk-pop li + li {
    margin-top: var(--eo-space-2xs);
}

.eo-risk-pop__action {
    margin: var(--eo-space-sm) 0 0;
    padding-top: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    border-top: 1px solid var(--eo-border);
}

.eo-risk-meter {
    display: block;
    width: 100%;
    height: 8px;
}

.eo-risk-meter__track {
    fill: var(--eo-bg);
}

.eo-risk-meter--success .eo-risk-meter__fill {
    fill: var(--eo-success);
}

.eo-risk-meter--warning .eo-risk-meter__fill {
    fill: var(--eo-warning);
}

.eo-risk-meter--danger .eo-risk-meter__fill {
    fill: var(--eo-danger);
}

.eo-risk-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-risk-reason {
    padding: var(--eo-space-2xs) var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

/* the one next step; a left rule instead of a boxed alert so it fits the narrow side column */
.eo-risk-action {
    margin: 0;
    padding: var(--eo-space-2xs) 0 var(--eo-space-2xs) var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    line-height: var(--eo-lh-normal);
    border-left: 3px solid var(--eo-border-strong);
}

.eo-risk-action--warning {
    color: var(--eo-warning-strong);
    border-left-color: var(--eo-warning);
}

.eo-risk-action--danger {
    color: var(--eo-danger-strong);
    border-left-color: var(--eo-danger);
}

/* ========================================================================== */
/* SAVINGS METER (44): dashboard top, money EcomOS kept for the shop this month */
/* ========================================================================== */

.eo-savings {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--eo-space-base) var(--eo-space-xl);
    padding: var(--eo-space-base) var(--eo-space-lg);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-savings__main {
    min-width: 0;
}

.eo-savings__label {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin: 0;
    font-size: var(--eo-fs-md);
    color: var(--eo-text-muted);
}

.eo-savings__label .svg-icon {
    color: var(--eo-success-strong);
}

.eo-savings__value {
    margin: var(--eo-space-xs) 0 0;
    font-size: var(--eo-fs-3xl);
    font-weight: var(--eo-fw-bold);
    line-height: var(--eo-lh-tight);
    color: var(--eo-success-strong);
    font-variant-numeric: tabular-nums;
}

.eo-savings__bill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-sm);
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-savings__times {
    padding: 0 var(--eo-space-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
    border-radius: var(--eo-radius-pill);
}

.eo-savings__items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-savings__item + .eo-savings__item {
    border-top: 1px solid var(--eo-border);
}

.eo-savings__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) 0;
    font-size: var(--eo-fs-md);
    color: var(--eo-text);
    text-decoration: none;
}

a.eo-savings__link:hover .eo-savings__item-label {
    color: var(--eo-brand);
}

.eo-savings__item-value {
    flex: none;
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
}

.eo-savings__note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
}

@media (max-width: 767.98px) {
    .eo-savings {
        grid-template-columns: minmax(0, 1fr);
        padding: var(--eo-space-base);
    }
}

.eo-savings__item.is-zero .eo-savings__link {
    color: var(--eo-text-subtle);
}

/* ========================================================================== */
/* ORDER SOURCE ICON (order list) */
/* ========================================================================== */

/* the icon alone is hard to read, so it shows the source name in a tooltip on hover or keyboard focus */
.eo-source-icon {
    display: inline-flex;
    padding: 2px;
    color: var(--eo-text-muted);
    border-radius: var(--eo-radius-sm);
    cursor: help;
}

.eo-source-icon:hover,
.eo-source-icon:focus-visible {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

/* ========================================================================== */
/* DATE PICKER (every date, date-time, month and time field) */
/* ========================================================================== */

/* the real input stays in the form for submit and validation, out of sight */
.eo-date__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.eo-date__toggle {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    text-align: left;
    cursor: pointer;
}

.eo-date__toggle svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

.eo-date__toggle.is-open {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-date__toggle.is-placeholder {
    color: var(--eo-text-subtle);
}

.eo-date__toggle:disabled {
    cursor: not-allowed;
}

.eo-date__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* filter bars size the field by its text, not the full row */
.eo-table td .eo-date__toggle,
.eo-filterbar__fields .eo-date__toggle {
    width: auto;
    min-width: 150px;
}

.eo-date__menu {
    position: fixed;
    z-index: var(--eo-z-popover);
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    width: 292px;
    max-width: calc(100vw - 16px);
    padding: var(--eo-space-sm);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
}

.eo-date__nav {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

.eo-date__title {
    flex: 1 1 auto;
    padding: 4px var(--eo-space-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    background: none;
    border: 0;
    border-radius: var(--eo-radius);
}

.eo-date__title:not(:disabled):hover {
    background: var(--eo-bg-hover);
}

.eo-date__title:disabled {
    color: var(--eo-text);
    opacity: 1;
}

.eo-date__grid {
    display: grid;
    gap: 2px;
}

.eo-date__grid--days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.eo-date__grid--months,
.eo-date__grid--years {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eo-date__dow {
    padding: 4px 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-align: center;
}

.eo-date__cell {
    height: 36px;
    padding: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text);
    background: none;
    border: 1px solid transparent;
    border-radius: var(--eo-radius);
    cursor: pointer;
}

.eo-date__grid--months .eo-date__cell,
.eo-date__grid--years .eo-date__cell {
    height: 44px;
}

.eo-date__cell:hover:not(:disabled) {
    background: var(--eo-bg-hover);
}

.eo-date__cell:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

.eo-date__cell.is-outside {
    color: var(--eo-text-subtle);
}

.eo-date__cell.is-today {
    border-color: var(--eo-border-strong);
    font-weight: var(--eo-fw-semibold);
}

.eo-date__cell.is-selected,
.eo-date__cell.is-selected:hover {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-date__cell:disabled {
    color: var(--eo-text-subtle);
    opacity: 0.45;
    cursor: not-allowed;
}

.eo-date__time {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--eo-space-sm);
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

.eo-date__menu > .eo-date__time:first-child {
    padding-top: 0;
    border-top: 0;
}

.eo-date__foot {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

.eo-date__done {
    margin-left: auto;
}

/* ========================================================================== */
/* PRODUCT FORM TABLES (price and stock, combo pack) */
/* ========================================================================== */

/* the main column carries the work, the side column stays in reach with save and sorting */
.pf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--eo-space-base);
    align-items: start;
}

.pf-save {
    display: grid;
    gap: var(--eo-space-sm);
}

.pf-side {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-space-base));
    max-height: calc(100vh - var(--eo-topbar-h) - var(--eo-space-xl));
    overflow-y: auto;
}

.pf-add-field {
    display: flex;
    align-items: flex-end;
    gap: var(--eo-space-sm);
}

.pf-options {
    display: grid;
    gap: var(--eo-space-sm);
}

.pf-options[hidden],
.pf-variant-bar[hidden] {
    display: none;
}

.pf-option {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: var(--eo-space-sm);
    align-items: start;
}

.pf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    height: auto;
    min-height: var(--eo-control-h);
    padding-top: 4px;
    padding-bottom: 4px;
    cursor: text;
}

.pf-chips:focus-within {
    border-color: var(--eo-brand);
}

.pf-chips__input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    background: none;
    border: 0;
    outline: none;
}

.pf-variant-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

[data-variant-builder]:not(.is-detailed) .pf-col-more,
[data-variant-builder]:not(.has-options) .pf-col-option,
.pf-no-stock .pf-col-stock,
.pf-no-cost .pf-col-cost {
    display: none;
}

/* price and stock sit inside the first card; in the full form they get their own small heading */
.pf-builder__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
}

.pf-builder__head .eo-more__title {
    margin: 0;
}

.pf-detail-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--eo-space-xs) var(--eo-space-md);
}

.pf-detail-toggle .eo-link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-weight: var(--eo-fw-medium);
}

.pf-layout:not(.pf-simple) .pf-when-simple,
.pf-simple .pf-when-full {
    display: none;
}

/* simple form: only name, photo, price, stock and category; every detail waits behind the switch */
.pf-simple [data-pf-detail],
.pf-simple .pf-col-cost {
    display: none !important;
}

/* the one price row reads as two labelled fields, not a table */
.pf-simple [data-variant-table] {
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
}

.pf-simple [data-variant-table] .eo-table {
    min-width: 0;
}

.pf-simple [data-variant-table] thead {
    display: none;
}

.pf-simple [data-variant-table] tbody,
.pf-simple [data-variant-table] tr[data-variant-row] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-base);
}

.pf-simple [data-variant-table] tbody {
    grid-template-columns: minmax(0, 1fr);
}

.pf-simple [data-variant-table] tr[data-variant-row] > td {
    height: auto;
    padding: 0;
    text-align: left;
    border: 0;
    background: none;
}

.pf-simple [data-variant-table] td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--eo-space-xs);
    color: var(--eo-text);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
}

.pf-simple [data-variant-table] .eo-control--sm {
    height: var(--eo-control-h);
    font-size: var(--eo-fs-md);
}

.pf-simple .pf-no-stock tr[data-variant-row] {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 575.98px) {
    .pf-simple [data-variant-table] tr[data-variant-row] {
        grid-template-columns: minmax(0, 1fr);
    }
}

[data-variant-details][aria-pressed="true"] {
    color: var(--eo-brand);
}

[data-variant-row].is-off .eo-control,
[data-variant-row].is-off .eo-num {
    opacity: .5;
}

[data-variant-row].is-off [data-variant-remove],
[data-variant-row]:not(.is-off) [data-variant-restore] {
    display: none;
}

.pf-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-photos[hidden] {
    display: none;
}

.pf-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.pf-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* product page: the one photo sits beside the stock numbers, as tall as they are */
.pf-summary {
    display: flex;
    gap: var(--eo-space-md);
}

.pf-summary .eo-stats {
    flex: 1 1 auto;
    min-width: 0;
}

.pf-summary__photo {
    flex: 0 0 96px;
    aspect-ratio: auto;
}

.pf-summary__photo img {
    position: absolute;
    inset: 0;
}

@media (min-width: 1200px) {
    .pf-summary .eo-stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .pf-summary .eo-stat {
        padding-right: var(--eo-space-md);
        padding-left: var(--eo-space-md);
    }
}

@media (max-width: 1199.98px) {
    .pf-summary {
        flex-direction: column;
    }

    .pf-summary__photo {
        flex: none;
        width: 96px;
        aspect-ratio: 1;
    }
}

.pf-photo__actions {
    display: flex;
    position: absolute;
    right: 4px;
    bottom: 4px;
    gap: 4px;
}

.pf-stock {
    display: grid;
    gap: var(--eo-space-sm);
    margin: 0;
}

.pf-stock > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.pf-stock dt {
    color: var(--eo-text-muted);
    font-weight: 400;
}

.pf-stock dd {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .pf-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pf-side {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 575.98px) {
    .pf-option {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* open: boxes share the width but never shrink below a readable code or price */
.eo-table-wrap[data-variant-table] .eo-control {
    min-width: 104px;
}

/* a variation's name ("মেরুন লাল / XXL") reads whole; the table already slides sideways on a phone */
.eo-table-wrap[data-variant-table] .pf-col-option .eo-control {
    min-width: 148px;
}

.eo-table-wrap[data-variant-table] .eo-control--num {
    min-width: 84px;
}

/* the quantity column is only as wide as its box; the product name takes the rest */
.eo-table-wrap[data-line-table] td:has(> .eo-control--num) {
    width: 1%;
}

.eo-table-wrap[data-line-table] .eo-control--num {
    width: 120px;
}

/* ========================================================================== */
/* NIGHTLY SUMMARY (46): one day's message, as the phone shows it               */
/* ========================================================================== */

.eo-nightly {
    max-width: 560px;
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-nightly p {
    margin: 0 0 var(--eo-space-xs);
    line-height: var(--eo-lh-normal);
}

.eo-nightly p:last-child {
    margin-bottom: 0;
}

.eo-nightly__headline {
    font-weight: var(--eo-fw-semibold);
}

.eo-nightly .eo-nightly__headline {
    margin-bottom: var(--eo-space-sm);
}

.eo-nightly__point {
    position: relative;
    padding-left: var(--eo-space-base);
}

.eo-nightly__point::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 4px;
    width: 5px;
    height: 5px;
    background: var(--eo-text-subtle);
    border-radius: 50%;
}

.eo-nightly .eo-nightly__step {
    margin-top: var(--eo-space-sm);
    padding: var(--eo-space-xs) var(--eo-space-sm);
    color: var(--eo-accent);
    background: var(--eo-accent-10);
    border-radius: var(--eo-radius-sm);
}

/* 51 CTRL+K JUMP-ANYWHERE SEARCH */
/* ========================================================================== */

.eo-topbar__search .eo-control[data-cmdk-open] {
    padding-right: 64px;
    cursor: pointer;
}

.eo-topbar__kbd {
    position: absolute;
    top: 50%;
    right: 10px;
    width: auto;
    padding: 0 var(--eo-space-xs);
    font-family: var(--eo-font);
    color: var(--eo-text-subtle);
    cursor: pointer;
    background: var(--eo-bg);
    border: 0;
    transform: translateY(-50%);
}

.eo-cmdk .eo-cmdk__dialog {
    max-width: 620px;
    margin-top: calc(var(--eo-topbar-h) + var(--eo-space-base));
}

.eo-cmdk .modal-content {
    overflow: hidden;
    border-color: var(--eo-border);
    border-radius: var(--eo-radius-xl);
    box-shadow: var(--eo-shadow-float);
}

/* flat keys: the box should read as a list, not a keyboard */
.eo-cmdk .eo-kbd {
    font-family: var(--eo-font);
    color: var(--eo-text-muted);
    background: var(--eo-bg);
    border: 0;
}

.eo-cmdk__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 56px;
    padding: 0 var(--eo-space-sm) 0 var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-cmdk__head > .svg-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--eo-brand);
}

/* Esc and the backdrop close it on a computer, a phone needs the button */
@media (min-width: 576px) {
    .eo-cmdk__head .eo-btn {
        display: none;
    }
}

.eo-cmdk__input {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--eo-control-h-lg);
    padding: 0;
    font-family: var(--eo-font);
    font-size: var(--eo-fs-lg);
    color: var(--eo-text);
    background: transparent;
    border: 0;
    outline: 0;
}

.eo-cmdk__input::placeholder {
    color: var(--eo-text-subtle);
}

.eo-cmdk__body {
    max-height: min(60vh, 480px);
    padding: var(--eo-space-sm);
    overflow-y: auto;
    transition: opacity var(--eo-dur) var(--eo-ease);
}

.eo-cmdk__body:empty {
    display: none;
}

.eo-cmdk__body.is-loading {
    opacity: 0.6;
}

.eo-cmdk__group + .eo-cmdk__group {
    margin-top: var(--eo-space-xs);
}

.eo-cmdk__group-label {
    padding: var(--eo-space-xs) var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-subtle);
}

.eo-cmdk__item {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 44px;
    padding: var(--eo-space-xs) var(--eo-space-sm);
    color: var(--eo-text);
    border-radius: var(--eo-radius-lg);
}

.eo-cmdk__item:hover,
.eo-cmdk__item.is-active {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-brand-10);
}

.eo-cmdk__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--eo-text-subtle);
}

.eo-cmdk__item.is-active .eo-cmdk__icon {
    color: var(--eo-brand);
}

.eo-cmdk__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-cmdk__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-cmdk__label,
.eo-cmdk__sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-cmdk__label {
    font-weight: var(--eo-fw-medium);
}

.eo-cmdk__sub {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-cmdk__note {
    padding: var(--eo-space-lg) var(--eo-space-base);
    color: var(--eo-text-muted);
    text-align: center;
}

.eo-cmdk__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-base);
    padding: var(--eo-space-sm) var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-subtle);
    border-top: 1px solid var(--eo-border);
}

.eo-cmdk__foot span {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

@media (max-width: 575.98px) {
    .eo-cmdk .eo-cmdk__dialog {
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .eo-cmdk .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .eo-cmdk__body {
        flex: 1 1 auto;
        max-height: none;
    }

    .eo-cmdk__item {
        min-height: 56px;
    }

    .eo-cmdk__foot {
        display: none;
    }
}

/* ===== 53 daily work: today's to-do, new-order alerts ===== */

.eo-toast__action {
    flex: 0 0 auto;
    align-self: center;
}

/* orders waiting: a solid orange pill, since a light tint disappears on the dark sidebar */
.eo-nav__count--waiting {
    color: #1F1300;
    background: var(--eo-warning);
    border-color: var(--eo-warning);
}

/* 52 order assist: paste-to-order and order warnings */
.eo-paste {
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-paste[hidden] {
    display: none;
}

.eo-control.is-assisted {
    border-color: var(--eo-accent);
    background: var(--eo-accent-10);
}

/* a required box the pasted message left empty */
.eo-control.is-missing {
    border-color: var(--eo-warning);
    background: var(--eo-warning-10);
    box-shadow: 0 0 0 3px var(--eo-warning-25);
}

[data-item-row].is-assisted > td {
    background: var(--eo-accent-10);
}

.eo-order-warnings__list {
    margin: 0;
    padding-left: var(--eo-space-base);
}

.eo-order-warnings__item + .eo-order-warnings__item {
    margin-top: var(--eo-space-2xs);
}

.eo-order-warnings__item.is-danger::marker {
    color: var(--eo-danger);
}

.eo-order-warnings__item.is-warning::marker {
    color: var(--eo-warning-strong);
}

/* ========================================================================== */
/* COMMENT AUTO REPLY (40): starter rules and the "try a comment" result        */
/* ========================================================================== */

.eo-rule-starters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
}

.eo-rule-try__result {
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-rule-try__result p {
    margin: 0 0 var(--eo-space-xs);
    line-height: var(--eo-lh-normal);
    white-space: pre-wrap;
}

.eo-rule-try__result p:last-child {
    margin-bottom: 0;
}

.eo-rule-try__head {
    font-weight: var(--eo-fw-semibold);
}

.eo-rule-try__label {
    display: block;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* ========================================================================== */
/* ERROR PAGES (404, 500 and the rest, resources/views/errors) */
/* ========================================================================== */

/* one quiet page: the logo, a very large pale code, and the message sitting on its lower edge */
.eo-errpage-body {
    background: var(--eo-surface);
}

.eo-errpage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--eo-space-3xl) var(--eo-space-base);
}

.eo-errpage__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin-bottom: var(--eo-space-2xl);
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    text-decoration: none;
}

/* a fixed height holds the logo's place, so the page does not jump when it arrives from the CDN */
.eo-errpage__brand .eo-brand-logo {
    height: 30px;
    max-width: none;
    max-height: none;
}

.eo-errpage__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 760px;
    text-align: center;
}

/* light brand green with a clear darker edge; only the lowest part fades, where the title overlaps it */
.eo-errpage__code {
    margin: 0 0 -0.16em;
    /* the mask cuts at the box edge, and tight letters plus the outline poke past it, so the box gets room on each side */
    padding: 0 0.1em;
    font-size: clamp(9rem, 32vw, 18rem);
    font-weight: var(--eo-fw-bold);
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--eo-brand) 16%, var(--eo-surface));
    -webkit-text-stroke: 2px color-mix(in srgb, var(--eo-brand) 60%, var(--eo-surface));
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0.15) 100%);
    mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0.15) 100%);
    user-select: none;
}

/* the title stays on one line under the wide code; only a phone may wrap it */
.eo-errpage__title {
    position: relative;
    margin: 0 0 var(--eo-space-md);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--eo-fw-bold);
    line-height: var(--eo-lh-tight);
    color: var(--eo-text);
    white-space: nowrap;
}

.eo-errpage__text {
    max-width: 440px;
    margin: 0 0 var(--eo-space-2xl);
    font-size: var(--eo-fs-lg);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text-muted);
    text-wrap: balance;
}

.eo-errpage__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--eo-space-md);
}

.eo-errpage__actions .eo-btn {
    height: var(--eo-control-h-lg);
    padding-inline: var(--eo-space-xl);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
}

.eo-errpage__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--eo-space-xs) var(--eo-space-lg);
    max-width: 100%;
    margin: var(--eo-space-3xl) 0 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
}

.eo-errpage__meta span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .eo-errpage__title {
        font-size: var(--eo-fs-2xl);
        white-space: normal;
        text-wrap: balance;
    }

    .eo-errpage {
        justify-content: flex-start;
        padding-top: var(--eo-space-2xl);
    }

    .eo-errpage__text {
        font-size: var(--eo-fs-base);
    }

    .eo-errpage__actions {
        width: 100%;
    }

    .eo-errpage__actions .eo-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ============================================================
   RICH TEXT EDITOR (<x-rich-text>)
   ============================================================ */
.eo-editor {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong);
    border-radius: var(--eo-radius);
}

.eo-editor:focus-within {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-field.is-invalid .eo-editor {
    border-color: var(--eo-danger);
}

.eo-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-2xs);
    padding: var(--eo-space-xs);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
    border-radius: var(--eo-radius) var(--eo-radius) 0 0;
}

.eo-editor__block {
    flex: 0 0 150px;
    min-width: 0;
}

.eo-editor__sep {
    flex: 0 0 1px;
    align-self: stretch;
    margin: var(--eo-space-2xs) var(--eo-space-2xs);
    background: var(--eo-border);
}

.eo-editor__end {
    display: inline-flex;
    gap: var(--eo-space-2xs);
    margin-left: auto;
}

.eo-editor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
    padding: 0;
    color: var(--eo-text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius-sm);
}

.eo-editor__btn svg {
    width: 16px;
    height: 16px;
}

.eo-editor__btn:hover:not(:disabled) {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.eo-editor__btn:focus-visible {
    outline: 0;
    box-shadow: var(--eo-focus);
}

.eo-editor__btn:disabled {
    color: var(--eo-text-subtle);
    opacity: 0.5;
}

.eo-editor__btn.is-active,
.eo-editor__btn.is-active:hover {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-editor__linkbar {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    padding: var(--eo-space-xs);
    border-bottom: 1px solid var(--eo-border);
}

.eo-editor__linkbar[hidden] {
    display: none;
}

.eo-editor__linkbar .eo-control {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-editor__area {
    position: relative;
    min-height: 280px;
    max-height: 52vh;
    padding: var(--eo-space-base);
    overflow-y: auto;
    overflow-wrap: anywhere;
    font-size: var(--eo-fs-base);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text);
    outline: 0;
}

.eo-editor__area.is-empty::before {
    position: absolute;
    color: var(--eo-text-subtle);
    pointer-events: none;
    content: attr(data-placeholder);
}

.eo-editor__area > :first-child {
    margin-top: 0;
}

.eo-editor__area > :last-child {
    margin-bottom: 0;
}

.eo-editor__area p,
.eo-editor__area ul,
.eo-editor__area ol {
    margin: 0 0 var(--eo-space-sm);
}

.eo-editor__area ul,
.eo-editor__area ol {
    padding-left: var(--eo-space-xl);
}

.eo-editor__area h2,
.eo-editor__area h3,
.eo-editor__area h4 {
    margin: var(--eo-space-lg) 0 var(--eo-space-xs);
    font-weight: var(--eo-fw-bold);
    line-height: var(--eo-lh-tight);
}

.eo-editor__area h2 { font-size: var(--eo-fs-2xl); }
.eo-editor__area h3 { font-size: var(--eo-fs-xl); }
.eo-editor__area h4 { font-size: var(--eo-fs-lg); }

.eo-editor__area blockquote {
    margin: 0 0 var(--eo-space-sm);
    padding-left: var(--eo-space-base);
    color: var(--eo-text-muted);
    border-left: 3px solid var(--eo-border-strong);
}

.eo-editor__area a {
    color: var(--eo-accent);
    text-decoration: underline;
}

.eo-editor__area img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: var(--eo-space-xs) 0;
    border-radius: var(--eo-radius-sm);
}

.eo-editor__area img:hover {
    outline: 2px solid var(--eo-brand-20);
}

@media (max-width: 767.98px) {
    .eo-editor__block {
        flex-basis: 100%;
    }

    .eo-editor__block + .eo-editor__sep {
        display: none;
    }

    .eo-editor__btn {
        width: var(--eo-control-h);
        height: var(--eo-control-h);
    }

    .eo-editor__end {
        margin-left: 0;
    }

    .eo-editor__linkbar {
        flex-wrap: wrap;
    }

    .eo-editor__linkbar .eo-control {
        flex-basis: 100%;
    }

    .eo-editor__area {
        min-height: 220px;
    }
}

.eo-rule-product {
    position: relative;
}

.eo-rule-product .dropdown-menu {
    top: 100%;
    right: 0;
    left: 0;
    max-height: 240px;
    overflow-y: auto;
}

.eo-rule-try__ai {
    margin-top: var(--eo-space-md);
    padding-top: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

[data-rule-ai-fields][hidden] {
    display: none;
}

/* ========================================================================== */
/* CRON (05): the setup guide and its dashboard warning */
/* ========================================================================== */
.eo-cron-warning {
    margin-bottom: var(--eo-space-lg);
}

.eo-cron-guide__lead {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0;
}

.eo-cron-guide__label {
    margin-bottom: var(--eo-space-xs);
}

.eo-cron-guide__command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-cron-guide__command code {
    min-width: 0;
    color: var(--eo-text);
    overflow-wrap: anywhere;
}

.eo-cron-guide__command .eo-btn {
    flex: none;
}

/* super admin role form: one column of checkboxes per menu section */
.eo-ability-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--eo-space-lg);
}

.eo-ability-group {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-ability-group legend {
    margin-bottom: var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
}

.eo-cron-actions {
    flex-wrap: nowrap;
    gap: var(--eo-space-xs);
}

.eo-cron-output summary {
    cursor: pointer;
    color: var(--eo-text-muted);
}

.eo-cron-output pre {
    max-height: 320px;
    margin: var(--eo-space-sm) 0 0;
    padding: var(--eo-space-md);
    overflow: auto;
    font-size: var(--eo-fs-xs);
    white-space: pre-wrap;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

/* assign rider modal */
.eo-rider-assign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--eo-space-lg); }
.eo-rider-assign__title { margin: 0 0 var(--eo-space-sm); font-size: var(--eo-fs-base); font-weight: var(--eo-fw-semibold); }
.eo-rider-assign .eo-dl { grid-template-columns: minmax(0, 1fr); }
.eo-rider-pick { display: flex; flex-direction: column; gap: var(--eo-space-xs); max-height: 320px; overflow-y: auto; }
.eo-rider-pick__item { display: flex; align-items: center; gap: var(--eo-space-sm); padding: var(--eo-space-sm); cursor: pointer; border: 1px solid var(--eo-border); border-radius: var(--eo-radius); }
.eo-rider-pick__item:hover { background: var(--eo-surface-2); }
.eo-rider-pick__item input { position: absolute; opacity: 0; }
.eo-rider-pick__item > .svg-icon { flex: 0 0 auto; color: var(--eo-brand); visibility: hidden; }
.eo-rider-pick__item:has(input:checked) { border-color: var(--eo-brand); }
.eo-rider-pick__item:has(input:checked) > .svg-icon { visibility: visible; }
.eo-rider-pick__item:has(input:focus-visible) { outline: 2px solid var(--eo-brand); outline-offset: 1px; }
.eo-rider-pick__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
@media (max-width: 767.98px) { .eo-rider-assign { grid-template-columns: minmax(0, 1fr); } }

/* courier account form */
.eo-courier-keys__title { margin: 0 0 var(--eo-space-sm); font-size: var(--eo-fs-base); font-weight: var(--eo-fw-semibold); }

/* searchable select */
.eo-sel__native { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.eo-sel__btn { display: flex; align-items: center; width: 100%; height: var(--eo-control-h); padding: 0 30px 0 12px; font: inherit; font-size: var(--eo-fs-base); color: var(--eo-text); text-align: left; cursor: pointer; background: var(--eo-surface) var(--eo-caret) no-repeat right 8px center / 16px; border: 1px solid var(--eo-border-strong); border-radius: var(--eo-radius); }
.eo-sel__btn:hover { border-color: var(--eo-text-muted); }
.eo-sel__btn:focus-visible, .eo-sel__btn[aria-expanded="true"] { border-color: var(--eo-brand); outline: 2px solid var(--eo-brand); outline-offset: -1px; }
.eo-sel__btn.is-empty { color: var(--eo-text-muted); }
.eo-sel__btn--sm { font-size: var(--eo-fs-md); }
.eo-sel__native.is-invalid + .eo-sel__btn { border-color: var(--eo-danger-strong); }
.eo-sel__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-sel__panel { position: fixed; z-index: var(--eo-z-toast); min-width: 220px; padding: var(--eo-space-xs); background: var(--eo-surface); border: 1px solid var(--eo-border); border-radius: var(--eo-radius); box-shadow: var(--eo-shadow-float); }
.eo-sel__list { max-height: 260px; margin-top: var(--eo-space-xs); overflow-y: auto; }
.eo-sel__item { display: block; width: 100%; padding: var(--eo-space-xs) var(--eo-space-sm); font: inherit; font-size: var(--eo-fs-base); color: var(--eo-text); text-align: left; cursor: pointer; background: transparent; border: 0; border-radius: var(--eo-radius-sm); }
.eo-sel__item:hover, .eo-sel__item.is-hover { background: var(--eo-surface-2); }
.eo-sel__item.is-active { font-weight: var(--eo-fw-semibold); color: var(--eo-brand); }
.eo-sel__note { margin: 0; padding: var(--eo-space-sm); font-size: var(--eo-fs-sm); color: var(--eo-text-muted); }

/* a small modal is still wide enough for a sentence and a box */
.modal-dialog.modal-sm { --bs-modal-width: 480px; }

/* a key shown once: flat strip, the value and its copy button read as one control */
.eo-secret { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--eo-space-base); align-items: center; margin-bottom: var(--eo-space-base); padding: var(--eo-space-base); background: var(--eo-surface); border: 1px solid var(--eo-border); border-radius: var(--eo-radius-lg); }
.eo-secret__title { margin: 0; font-size: var(--eo-fs-base); font-weight: var(--eo-fw-semibold); }
.eo-secret__help { margin: 2px 0 0; color: var(--eo-text-muted); font-size: var(--eo-fs-sm); }
.eo-secret__key { display: flex; min-width: 0; height: var(--eo-control-h); background: var(--eo-surface-2); border: 1px solid var(--eo-border-strong); border-radius: var(--eo-radius); }
.eo-secret__value { flex: 1 1 auto; min-width: 0; padding: 0 12px; color: var(--eo-text); background: transparent; border: 0; outline: 0; }
.eo-secret__copy { flex: 0 0 auto; height: 100%; border-width: 0 0 0 1px; border-radius: 0 var(--eo-radius) var(--eo-radius) 0; }
@media (max-width: 767.98px) { .eo-secret { grid-template-columns: minmax(0, 1fr); } }

/* super admin settings: a page of topic cards two to a row, one save bar under them; a service is edited on its own page */
.eo-settings { display: flex; flex-direction: column; gap: var(--eo-space-base); }
.eo-settings__card > .eo-card__head { border-bottom: 1px solid var(--eo-border); }
.eo-settings .eo-card__head + .eo-card__body { padding-top: var(--eo-space-lg); }
.eo-settings .eo-card > .eo-card__head:has(.eo-section__text) { flex-direction: column; align-items: flex-start; gap: var(--eo-space-2xs); }
.eo-settings__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--eo-space-sm); padding-top: var(--eo-space-sm); }
.eo-provider__steps { display: flex; flex-direction: column; gap: var(--eo-space-xs); margin: 0; padding-left: var(--eo-space-lg); font-size: var(--eo-fs-sm); }

/* ========================================================================== */
/* NOTIFICATION TEMPLATES */
/* ========================================================================== */

.eo-channel {
    display: inline-flex;
    align-items: stretch;
    margin-left: var(--eo-space-xs);
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-channel:hover {
    color: var(--eo-text);
    text-decoration: none;
    border-color: var(--eo-border-strong);
}

.eo-channel__name {
    padding: var(--eo-space-xs) var(--eo-space-sm);
}

.eo-channel__state {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--eo-space-xs);
    color: var(--eo-text-subtle);
    background: var(--eo-surface-2);
    border-left: 1px solid var(--eo-border);
}

.eo-channel.is-on {
    color: var(--eo-text);
}

.eo-channel.is-on .eo-channel__state {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
}

.eo-channel__state .svg-icon {
    width: 14px;
    height: 14px;
}

/* super admin email templates (41): fields on the left, the live email on the right */
.eo-email-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--eo-space-base);
    align-items: start;
}

.eo-email-editor > .eo-stack {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-space-base));
}

@media (max-width: 1199.98px) {
    .eo-email-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-email-editor > .eo-stack {
        position: static;
    }
}

.eo-code-input {
    font-family: Consolas, 'Courier New', monospace;
    font-size: var(--eo-fs-md);
    line-height: 1.55;
    tab-size: 4;
}

.eo-email-frame {
    display: block;
    width: 100%;
    height: 560px;
    margin-bottom: var(--eo-space-sm);
    background: #F4F4F5;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-email-frame--sm {
    height: 420px;
    margin-bottom: 0;
}

.eo-email-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: var(--eo-space-base);
}

@media (max-width: 575.98px) {
    .eo-email-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

.eo-email-gallery__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-shortcode {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    width: 100%;
    padding: var(--eo-space-xs) var(--eo-space-sm);
    text-align: left;
    color: var(--eo-text);
    background: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-shortcode:hover,
.eo-shortcode:focus-visible {
    background: var(--eo-surface-2);
    border-color: var(--eo-border-strong);
}

/* message words as small chips: tap one and it lands where the cursor was */
.eo-token-bar { display: flex; flex-direction: column; gap: var(--eo-space-xs); }
.eo-token-bar__chips { display: flex; flex-wrap: wrap; gap: var(--eo-space-xs); }
/* a text box with its own tool strip inside the border (the auto call script): the text on top, then a strip with the
   word chips on the left and the count on the right; the whole box takes the focus ring */
.eo-compose {
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-compose:focus-within {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-compose.is-invalid,
.eo-field.is-invalid > .eo-compose {
    border-color: var(--eo-danger);
}

.eo-compose__text {
    display: block;
    width: 100%;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-family: inherit;
    font-size: var(--eo-fs-base);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text);
    resize: vertical;
    background: transparent;
    border: 0;
    outline: none;
}

.eo-compose__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs);
    padding: 6px var(--eo-space-md);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

.eo-compose__lead {
    margin-right: var(--eo-space-2xs);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-compose__bar > .eo-token-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px 0 8px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    line-height: 1;
    color: var(--eo-brand);
    background: var(--eo-surface);
    border: 1px solid color-mix(in srgb, var(--eo-brand) 30%, var(--eo-border));
    border-radius: var(--eo-radius);
    transition: background-color var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease);
}

/* a small plus says the chip adds something to the text */
.eo-compose__bar > .eo-token-chip::before {
    content: "+";
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: color-mix(in srgb, var(--eo-brand) 70%, var(--eo-surface));
}

.eo-compose__bar > .eo-token-chip:hover,
.eo-compose__bar > .eo-token-chip:focus-visible {
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-compose__bar > .eo-token-chip:hover::before,
.eo-compose__bar > .eo-token-chip:focus-visible::before {
    color: var(--eo-on-brand);
}

/* the box's own action (the auto call's test call) at the strip's right end */
.eo-compose__action {
    margin-left: auto;
}

.eo-token-chip {
    padding: 4px 10px;
    font-family: inherit;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-brand);
    cursor: pointer;
    background: var(--eo-brand-10);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color .15s;
}
.eo-token-chip__hint { margin-left: 4px; color: var(--eo-text-muted); }
.eo-token-chip:hover,
.eo-token-chip:focus-visible { border-color: var(--eo-brand); outline: none; }

.eo-shortcode__text {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* order side panel: who, what, how much to collect; separate from the quick actions menu */
/* sections breathe apart (owner, 15 Nov 2026: too packed); each section keeps its own parts a step closer */
.eo-qv { display: flex; flex-direction: column; gap: var(--eo-space-xl); }
.eo-qv > * { flex-shrink: 0; }
.eo-qv p { margin: 0; }
/* the loaded parts need a height limit, or the footer falls below the screen */
/* a side panel's loaded content: a column whose body scrolls under the fixed head */
.eo-sidepanel__content,
[data-quick-content] { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.eo-qv__more { display: inline-flex; align-items: center; gap: var(--eo-space-xs); margin-top: var(--eo-space-xs); font-size: var(--eo-fs-md); font-weight: var(--eo-fw-medium); }
.eo-qv__more .svg-icon { width: 14px; height: 14px; }
.eo-qv__tools { display: flex; flex-wrap: wrap; gap: var(--eo-space-sm); }
.eo-qv__tools > * { flex: 1 1 auto; min-width: 0; }
.eo-qv__tools > * > .eo-btn { width: 100%; }
.eo-qv__section { display: flex; flex-direction: column; gap: var(--eo-space-md); padding-top: var(--eo-space-xl); border-top: 1px solid var(--eo-border); }
.eo-qv__label { margin: 0; color: var(--eo-text-muted); font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); }
.eo-qv__who { display: flex; align-items: center; justify-content: space-between; gap: var(--eo-space-sm); }
.eo-qv__name { font-size: var(--eo-fs-lg); font-weight: var(--eo-fw-semibold); overflow-wrap: anywhere; }
/* phone and address: a small icon in front, the text wraps under itself, never under the icon */
.eo-qv__line { display: flex; align-items: flex-start; gap: var(--eo-space-sm); font-size: var(--eo-fs-md); overflow-wrap: anywhere; }
.eo-qv__line > .svg-icon { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px; color: var(--eo-text-subtle); }
.eo-qv__area { display: block; color: var(--eo-text-muted); font-size: var(--eo-fs-sm); }
/* the buyer's record: three numbers side by side in one bordered strip */
.eo-qv__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--eo-space-2xs) 0 0; border: 1px solid var(--eo-border); border-radius: var(--eo-radius); }
.eo-qv__stats > div { padding: var(--eo-space-xs) var(--eo-space-sm); }
.eo-qv__stats > div + div { border-left: 1px solid var(--eo-border); }
.eo-qv__stats dt { color: var(--eo-text-muted); font-size: var(--eo-fs-xs); font-weight: var(--eo-fw-normal); }
.eo-qv__stats dd { margin: 0; font-size: var(--eo-fs-base); font-weight: var(--eo-fw-semibold); }
.eo-qv__stats .is-danger dd { color: var(--eo-danger-strong); }
.eo-qv .eo-contact-edit { align-self: flex-start; margin-top: 0; }
.eo-qv__items { display: flex; flex-direction: column; gap: var(--eo-space-sm); margin: 0; padding: 0; list-style: none; }
.eo-qv__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(72px, auto); align-items: baseline; gap: var(--eo-space-md); }
.eo-qv__item-name { overflow-wrap: anywhere; }
.eo-qv__qty { color: var(--eo-text-muted); font-size: var(--eo-fs-sm); white-space: nowrap; }
.eo-qv__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--eo-space-2xs) var(--eo-space-md); margin: var(--eo-space-2xs) 0 0; padding-top: var(--eo-space-sm); border-top: 1px dashed var(--eo-border); color: var(--eo-text-muted); font-size: var(--eo-fs-md); }
.eo-qv__sum dt { font-weight: var(--eo-fw-normal); }
.eo-qv__sum dd { margin: 0; text-align: right; }
.eo-qv__due { display: flex; align-items: center; justify-content: space-between; gap: var(--eo-space-md); margin-top: var(--eo-space-2xs); padding: var(--eo-space-sm) var(--eo-space-md); background: var(--eo-surface-2); border: 1px solid var(--eo-border); border-radius: var(--eo-radius); font-weight: var(--eo-fw-semibold); }
.eo-qv__due strong { font-size: var(--eo-fs-xl); font-weight: var(--eo-fw-bold); }
.eo-qv__log { display: flex; flex-direction: column; gap: var(--eo-space-sm); margin: 0; padding: 0 0 0 var(--eo-space-base); list-style: none; }
.eo-qv__log li { position: relative; font-size: var(--eo-fs-md); }
.eo-qv__log-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eo-space-2xs) var(--eo-space-sm); }
.eo-qv__flow { display: inline-flex; align-items: center; gap: var(--eo-space-2xs); color: var(--eo-text-muted); }
.eo-qv__flow .svg-icon { width: 12px; height: 12px; }
.eo-qv__log-meta { color: var(--eo-text-muted); font-size: var(--eo-fs-sm); }
.eo-qv__log li::before { content: ""; position: absolute; top: 7px; left: calc(var(--eo-space-base) * -1); width: 7px; height: 7px; background: var(--eo-border-strong); border-radius: 50%; }
.eo-qv__log li:not(:last-child)::after { content: ""; position: absolute; top: 16px; bottom: calc(var(--eo-space-sm) * -1 + 6px); left: calc(var(--eo-space-base) * -1 + 3px); width: 1px; background: var(--eo-border); }

#order-history { scroll-margin-top: calc(var(--eo-topbar-h) + var(--eo-space-3xl)); }

/* ========================================================================== */
/* SHOP COLOUR SWATCHES */
/* ========================================================================== */

.eo-color-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-color-swatch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.eo-color-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-color-swatch span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: transparent;
    border-radius: var(--eo-radius-pill);
}

.eo-color-swatch input:checked + span {
    color: #FFFFFF;
    box-shadow: 0 0 0 2px var(--eo-surface), 0 0 0 4px var(--eo-text);
}

.eo-color-swatch input:focus-visible + span {
    box-shadow: 0 0 0 2px var(--eo-surface), 0 0 0 4px var(--eo-brand);
}

.eo-color-swatch--default span { background: #1E3A8A; }
.eo-color-swatch--teal span { background: #0F766E; }
.eo-color-swatch--green span { background: #166534; }
.eo-color-swatch--maroon span { background: #9F1239; }
.eo-color-swatch--brown span { background: #92400E; }
.eo-color-swatch--slate span { background: #334155; }
.eo-color-swatch--black span { background: #111827; }

/* ============================================================
   QUANTITY STEPPER (<x-qty-input>)
   One joined control with the number in the middle
   ============================================================ */
.eo-qty.eo-input-group {
    display: inline-flex;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    vertical-align: top;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border-strong);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-qty.eo-input-group:focus-within {
    border-color: var(--eo-brand);
    box-shadow: var(--eo-focus);
}

.eo-qty.eo-input-group > .eo-btn {
    flex: 0 0 auto;
    width: var(--eo-control-h);
    height: auto;
    padding: 0;
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* a thin line between minus, the number and plus, so the three read as three parts */
.eo-qty.eo-input-group > .eo-btn:first-child {
    border-right: 1px solid var(--eo-border);
}

.eo-qty.eo-input-group > .eo-btn:not(:first-child) {
    border-left: 1px solid var(--eo-border);
}

.eo-qty.eo-input-group > .eo-btn:hover {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-qty.eo-input-group > .eo-btn:active {
    background: var(--eo-brand-20);
}

.eo-qty.eo-input-group > .eo-control {
    flex: 0 1 64px;
    width: 64px;
    font-weight: var(--eo-fw-semibold);
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* the unit is a grey label like the ৳ before a money box, so it never looks like a second box to type in;
   line-height 1: the Bangla font's tall line box otherwise lifts a short unit like পিস above the middle */
.eo-qty.eo-input-group > .eo-input-group__addon {
    flex: 0 0 auto;
    line-height: 1;
    padding: 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border: 0;
    border-left: 1px solid var(--eo-border);
    border-radius: 0;
}

.eo-field.is-invalid .eo-qty.eo-input-group {
    border-color: var(--eo-danger);
}

@media (max-width: 767.98px) {
    .eo-qty.eo-input-group > .eo-btn {
        width: var(--eo-control-h-lg);
    }
}

/* ============================================================
   WEB PUSH: the switch inside the bell menu
   ============================================================ */
.eo-bell__push {
    padding: var(--eo-space-sm) var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

.eo-bell__push .eo-row {
    flex-wrap: nowrap;
    gap: var(--eo-space-sm);
}

.eo-bell__push .eo-btn,
.eo-bell__push .eo-link-btn {
    flex: 0 0 auto;
}

/* 25 rider's own delivery screen, the trip page's layout (pd-layout): the progress card and the parcels on the left, the
   trip's facts and cash on the right. One row a parcel: its stop number in the road order, who and where, the cash to take,
   and the three buttons under it (one line on a wide screen, the main one full width on a phone) */

/* phone: the trip head has two buttons, so they share one row (cancel left, the main one right) instead of the order
   head's full-width main button over a row of three */
@media (max-width: 575.98px) {
    .eo-od-head.eo-rt-head .pd-head__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-od-head.eo-rt-head .pd-head__actions > .eo-btn--primary {
        grid-column: auto;
        order: 0;
        font-size: var(--eo-fs-sm);
    }
}

/* the trip's steps in its side card: top to bottom, a step a line with its time on the right (the order journey's phone
   layout, kept at every width since the side column is narrow) */
.eo-journey.eo-journey--stack {
    flex-direction: column;
}

/* each step its own full height (the base step's flex: 1 1 0 squeezed them in a column), with room for the line between */
.eo-journey--stack .eo-journey__step {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 52px;
    text-align: left;
}

.eo-journey--stack .eo-journey__step:not(:last-child)::after {
    top: calc(50% + 14px);
    bottom: auto;
    left: 13px;
    right: auto;
    width: 2px;
    height: calc(100% - 28px);
}

.eo-journey--stack .eo-journey__dot {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.eo-journey--stack .eo-journey__at {
    min-height: 0;
    margin-left: auto;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the step the trip is at reads in full weight; the ones ahead stay grey */
.eo-journey--stack .eo-journey__step.is-current .eo-journey__label {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-journey--stack .eo-journey__step.is-ahead .eo-journey__label {
    color: var(--eo-text-muted);
}

.rd-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* the deliver popup's আংশিক ডেলিভারি button stands apart at the far left, the way a side option does; ক্যানসেল and the
   main button stay together on the right (the popup footer orders them, cancel at -1) */
.modal-footer > .rd-partial-toggle {
    order: -2;
    margin-right: auto;
}

/* the list's head: the pills on the left, the order search on the right; on a phone the search takes its own full line */
.rd-search {
    flex: 1 1 100%;
}

@media (min-width: 576px) {
    .rd-search {
        flex: 0 1 240px;
    }
}

.rd-row {
    display: flex;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.rd-row + .rd-row {
    border-top: 1px solid var(--eo-border);
}

.rd-row__stop {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--eo-radius);
    background: var(--eo-brand-10);
    color: var(--eo-brand-strong);
    font-weight: var(--eo-fw-bold);
}

.rd-row.is-done .rd-row__stop {
    background: var(--eo-surface-2);
    color: var(--eo-text-muted);
}

.rd-row__body {
    display: grid;
    flex: 1;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.rd-row__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

.rd-row__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rd-row__who strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
}

.rd-row__cod {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.rd-row__cod strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold);
}

.rd-row__cod small {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.rd-row__facts {
    display: grid;
    gap: var(--eo-space-2xs);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.rd-row__facts li {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-xs);
}

.rd-row__facts .svg-icon {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 3px;
    color: var(--eo-text-muted);
}

.rd-row__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    padding-top: var(--eo-space-xs);
}

.rd-row__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

/* a phone: the buttons share the row (call and not delivered half each), the delivered one full width under them */
@media (max-width: 575.98px) {
    .rd-row {
        gap: var(--eo-space-sm);
        padding: var(--eo-space-md);
    }

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

    .rd-row__actions .eo-btn--primary {
        grid-column: 1 / -1;
        min-height: var(--eo-control-h-lg);
    }
}

/* phones: iOS zooms the page into any field under 16px */
@media (max-width: 767.98px) {
    input.eo-control,
    select.eo-control,
    textarea.eo-control,
    .eo-scan__input {
        font-size: 1rem;
    }
}

/* phones: the two lists people open most read as rows of cards, the other columns stay on the order page */
@media (max-width: 575.98px) {
    [data-table="orders"] .eo-table,
    [data-table="products"] .eo-table,
    [data-table="orders"] tbody,
    [data-table="products"] tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    [data-table="orders"] thead,
    [data-table="products"] thead {
        display: none;
    }

    /* the "nothing matches" row spans the whole card list, not a narrow table cell squeezed to its text */
    [data-table="orders"] .eo-table-empty,
    [data-table="orders"] .eo-table-empty > td,
    [data-table="products"] .eo-table-empty,
    [data-table="products"] .eo-table-empty > td {
        display: block;
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty),
    [data-table="products"] tbody tr:not(.eo-table-empty) {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: 2px var(--eo-space-sm);
        align-items: center;
        padding: var(--eo-space-sm) var(--eo-space-md);
        border-bottom: 1px solid var(--eo-border);
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty) > td,
    [data-table="products"] tbody tr:not(.eo-table-empty) > td {
        display: none;
        min-width: 0;
        height: auto;
        padding: 0;
        white-space: normal;
        border: 0;
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty) > td.eo-table__check,
    [data-table="products"] tbody tr:not(.eo-table-empty) > td.eo-table__check {
        display: block;
        grid-row: 1 / span 3;
        grid-column: 1;
        width: auto;
    }

    [data-table="orders"] tbody td[data-col="number"],
    [data-table="products"] tbody td[data-col="name"] {
        display: block !important;
        grid-row: 1;
        grid-column: 2;
    }

    [data-table="orders"] tbody td[data-col="total"],
    [data-table="products"] tbody td[data-col="price"] {
        display: block !important;
        grid-row: 1;
        grid-column: 3;
        font-weight: var(--eo-fw-semibold);
        text-align: right;
    }

    [data-table="orders"] tbody td[data-col="customer"],
    [data-table="products"] tbody td[data-col="category"] {
        display: block !important;
        grid-row: 2;
        grid-column: 2;
    }

    [data-table="orders"] tbody td[data-col="status"],
    [data-table="products"] tbody td[data-col="available"] {
        display: block !important;
        grid-row: 2;
        grid-column: 3;
        text-align: right;
    }

    [data-table="orders"] tbody td[data-col="date"] {
        display: block !important;
        grid-row: 3;
        grid-column: 2 / span 2;
    }

    /* the stock notes ("আর 60 দিন চলবে · 20টি আনুন", "অর্ডারে আটকানো 3") wrap in a narrow right column,
       so the product name keeps its width instead of shrinking to one word */
    [data-table="products"] tbody td[data-col="available"] {
        max-width: 128px;
    }

    [data-table="products"] tbody td[data-col="available"] .eo-cell-sub {
        white-space: normal;
    }

    /* the name is how a product is known: two lines at most, as on a laptop (:not(#eo-cards) outweighs the lead-cell one-line cap) */
    [data-table="products"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="name"] .eo-namecell__text a.eo-cell-main {
        display: -webkit-box;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* phones: an order line reads as name, then quantity, price and total */
@media (max-width: 575.98px) {
    .eo-order-items .eo-table,
    .eo-order-items tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .eo-order-items thead {
        display: none;
    }

    .eo-order-items tbody tr {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        gap: 2px var(--eo-space-sm);
        padding: var(--eo-space-sm) var(--eo-space-base);
        border-bottom: 1px solid var(--eo-border);
    }

    .eo-order-items tbody td {
        height: auto;
        padding: 0;
        white-space: normal;
        border: 0;
    }

    .eo-order-items tbody td:first-child {
        grid-column: 1 / -1;
    }

    .eo-order-items tbody td:nth-child(2)::after {
        content: " ×";
        color: var(--eo-text-muted);
    }

    .eo-order-items tbody td:nth-child(n+6) {
        display: none;
    }
}

/* phones: every other list reads as cards; dashboard.js picks the tables and labels the cells */
@media (max-width: 575.98px) {
    .eo-table-wrap--cards {
        max-height: none;
        overflow-x: visible;
    }

    .eo-table-wrap--cards .eo-table,
    .eo-table-wrap--cards tbody,
    .eo-table-wrap--cards tfoot {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .eo-table-wrap--cards thead {
        display: none;
    }

    .eo-table-wrap--cards tbody tr:not(.eo-table-empty),
    .eo-table-wrap--cards tfoot tr {
        position: relative;
        display: block;
        padding: var(--eo-space-sm) var(--eo-space-md);
        border-bottom: 1px solid var(--eo-border);
    }

    .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td,
    .eo-table-wrap--cards tfoot tr > * {
        position: static;
        display: block;
        width: auto;
        min-width: 0;
        height: auto;
        padding: 2px 0;
        overflow-wrap: anywhere;
        text-align: right;
        white-space: normal;
        border: 0;
    }

    .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td::after {
        display: block;
        clear: both;
        content: "";
    }

    .eo-table-wrap--cards td[data-label]::before {
        float: left;
        margin-right: var(--eo-space-sm);
        font-size: var(--eo-fs-sm);
        font-weight: var(--eo-fw-normal);
        color: var(--eo-text-muted);
        content: attr(data-label);
    }

    /* the first cell names the row, so it needs no label */
    .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td:first-child,
    .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td.eo-table__check + td {
        padding-right: var(--eo-space-xl);
        font-weight: var(--eo-fw-medium);
        text-align: left;
    }

    .eo-table-wrap--cards tfoot tr > :first-child {
        font-weight: var(--eo-fw-medium);
        text-align: left;
    }

    .eo-table-wrap--cards tbody tr > td:first-child::before,
    .eo-table-wrap--cards tbody tr > td.eo-table__check + td::before,
    .eo-table-wrap--cards tfoot tr > :first-child::before {
        content: none;
    }

    .eo-table-wrap--cards .eo-cell-main,
    .eo-table-wrap--cards .eo-cell-sub {
        white-space: normal;
    }

    .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td.eo-table__check {
        position: absolute;
        top: var(--eo-space-sm);
        right: var(--eo-space-md);
        width: auto;
        padding: 0;
    }

    .eo-table-wrap--cards .eo-table__actions .eo-row,
    .eo-table-wrap--cards td[data-label] .eo-row {
        justify-content: flex-end;
    }

    .eo-table-wrap--cards td[data-label] .eo-control {
        display: inline-block;
        width: auto;
        max-width: 60%;
        vertical-align: middle;
    }

    .eo-table-wrap--cards td[data-label] .eo-row .eo-control {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .eo-table-wrap--cards .eo-table-empty,
    .eo-table-wrap--cards .eo-table-empty > td {
        display: block;
    }

    .eo-table-wrap--cards .eo-table .is-col-hidden,
    .eo-table-wrap--cards .eo-table .is-cell-empty {
        display: none !important;
    }
}

/* phones: a card is not a sliding list. The sliding list's rules (sticky lead cells with a white fill, a 40px tick cell,
   one line a cell, the list's own scroll box) are newer and weigh more than the card rules, so inside a card they are
   switched off here; :not(#eo-cards) only lends the selector an id's weight */
@media (max-width: 575.98px) {
    :is(.eo-table-wrap--cards, [data-table="orders"], [data-table="products"]):not(#eo-cards) {
        max-height: none;
        overflow: visible;
    }

    :is(.eo-table-wrap--cards, [data-table="orders"], [data-table="products"]):not(#eo-cards) > .eo-table > :is(tbody, tfoot) > tr > td {
        left: auto;
        white-space: normal;
        background-color: transparent;
        box-shadow: none;
    }

    :is(.eo-table-wrap--cards, [data-table="orders"], [data-table="products"]):not(#eo-cards) > .eo-table > :is(tbody, tfoot) > tr > td:not(.eo-table__check) {
        position: static;
    }

    :is(.eo-table-wrap--cards, [data-table="orders"], [data-table="products"]):not(#eo-cards) > .eo-table > tbody > tr > td.eo-table__check {
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 0;
    }

    /* a card's tick box sits in its top right corner, out of the title's way (the sliding list would make it a sticky cell) */
    .eo-table-wrap--cards:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) > td.eo-table__check {
        position: absolute;
        top: var(--eo-space-sm);
        right: var(--eo-space-md);
        left: auto;
        z-index: 2;
    }

    /* the cell after the tick box keeps the card's own spacing, not the sliding list's */
    .eo-table-wrap--cards:not(#eo-cards) > .eo-table > tbody > tr > td.eo-table__check:first-child + td {
        padding-left: 0;
    }

    [data-table="orders"]:not(#eo-cards) > .eo-table > tbody > tr > td.eo-table__check:first-child + td[data-col="number"] {
        padding-left: 48px;
    }

    [data-table="products"]:not(#eo-cards) > .eo-table > tbody > tr > td.eo-table__check:first-child + td {
        padding-left: 0;
    }
}
/* phones: what a finger presses is at least 36px tall (inline edits, text buttons, chips), and a list card is one button:
   its title link stretches over the whole card, while the tick box, the ⋮ menu and any other button or link stay above it */
@media (max-width: 575.98px) {
    .eo-inline,
    .eo-link-btn,
    .eo-token-chip,
    .pos__chip,
    .lp-gap__btn {
        min-height: 36px;
    }

    .eo-chip__remove {
        min-width: 32px;
        min-height: 32px;
    }

    /* a sliding list's (a report's) column heads sort it: a taller press area, the same look */
    .eo-sort {
        min-height: 32px;
    }

    .eo-table-wrap--cards:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) > :is(td:first-child, td.eo-table__check:first-child + td) a.eo-cell-main::after {
        position: absolute;
        inset: 0;
        content: "";
    }

    .eo-table-wrap--cards:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) :is(a, button, input, select, label, .dropdown):not(.eo-cell-main) {
        position: relative;
        z-index: 1;
    }

    /* an open ⋮ menu rides above the next card's tick box (z-index 2), which otherwise showed through the menu */
    .eo-table-wrap--cards:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) .dropdown:has(> .dropdown-menu.show) {
        z-index: 3;
    }

    /* a card's title line has the whole card to itself: the sliding list's 240px / 55% cap on the lead cell cut short
       names ("স্টেডফাস্ট মে…") and their grey line with half the card still empty */
    .eo-table-wrap--cards:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) > :is(td:first-child:not(.eo-table__check), .eo-table__check:first-child + td) > * {
        max-width: none;
    }
}
/* a short list of tick boxes in a modal, such as the staff of one warehouse */
.eo-check-list {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
    max-height: 320px;
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    overflow-y: auto;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-check-list .eo-field {
    margin: 0;
}

.eo-check-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-check-group legend {
    float: none;
    width: auto;
    margin: 0 0 var(--eo-space-xs);
    padding: 0;
}

/* 41 SMS settings (owner, 18 Nov 2026), as the features page: one list, one plain line per message (its name, a "লেখা"
   button, its switch at the right end), a tinted heading line over each group; the alert number and the offer hours are
   lines of the same list with their box at the right end */
.eo-smsl {
    overflow: hidden;
}

/* the card's head: SMS on or off with the credit left, and the one button that turns it on or off; a warm tint while off */
.eo-smsl__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md) var(--eo-space-base);
    padding: var(--eo-space-base) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-smsl__head.is-off {
    background: var(--eo-warning-10);
}

.eo-smsl__head-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-smsl__head.is-off .eo-smsl__head-icon {
    color: var(--eo-warning-strong);
    background: var(--eo-surface);
}

.eo-smsl__head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-smsl__head-title {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-smsl__head-line {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-smsl__head form {
    flex: none;
    margin: 0;
}

.eo-smsl__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-smsl__group {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.eo-smsl__group:not(:first-child) {
    border-top: 1px solid var(--eo-border);
}

.eo-smsl__group-title {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-smsl__group-line {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-smsl__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 56px;
    padding: var(--eo-space-sm) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-smsl__row:last-child,
.eo-smsl__row:has(+ .eo-smsl__group) {
    border-bottom: 0;
}

.eo-smsl__row:hover {
    background: var(--eo-surface-2);
}

.eo-smsl__text {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px var(--eo-space-sm);
    min-width: 0;
}

/* a line with a grey note under its name (the alert number, the offer hours) */
.eo-smsl__text:has(.eo-smsl__line) {
    flex-direction: column;
    align-items: flex-start;
}

.eo-smsl__name {
    margin: 0;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    cursor: pointer;
}

.eo-smsl__line {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the shop wrote this message's text itself */
.eo-smsl__tag {
    padding: 1px var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-accent);
    background: var(--eo-accent-10);
    border-radius: var(--eo-radius-pill);
}

.eo-smsl__edit {
    flex: none;
}

.eo-smsl__switch {
    flex: none;
    margin: 0;
}

.eo-smsl__range {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--eo-space-sm);
    color: var(--eo-text-subtle);
}

.eo-smsl__range .eo-field {
    width: 128px;
    margin: 0;
}

.eo-smsl__phone {
    flex: none;
    width: 240px;
}

.eo-smsl__phone .eo-field {
    margin: 0;
}

/* the first heading carries the store picker at its right end */
.eo-smsl__group-text {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-smsl__store {
    flex: none;
    width: auto;
    max-width: 240px;
}

/* a phone: a box drops under its name at full width; the head's button goes under its text */
@media (max-width: 575.98px) {
    .eo-smsl__head,
    .eo-smsl__group,
    .eo-smsl__row {
        padding-left: var(--eo-space-base);
        padding-right: var(--eo-space-base);
    }

    .eo-smsl__row:has(.eo-smsl__range, .eo-smsl__phone) {
        flex-wrap: wrap;
        padding-top: var(--eo-space-md);
        padding-bottom: var(--eo-space-md);
    }

    .eo-smsl__phone,
    .eo-smsl__range {
        width: 100%;
    }

    .eo-smsl__range .eo-field {
        flex: 1 1 0;
        width: auto;
    }

    .eo-smsl__head,
    .eo-smsl__group {
        flex-wrap: wrap;
    }

    /* the head: no icon, the text on the full line, the on/off button under it */
    .eo-smsl__head-icon {
        display: none;
    }

    .eo-smsl__head-text {
        flex-basis: 100%;
    }

    .eo-smsl__store {
        width: 100%;
        max-width: none;
    }

}

.eo-toggle-list {
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: opacity var(--eo-dur) var(--eo-ease);
}

.eo-toggle-list.is-off {
    opacity: 0.55;
}

/* a service's main switch on its settings page (SMS, auto call), always there; a warm strip while it is off, the cards greyed */
.eo-svc {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md) var(--eo-space-base);
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.eo-svc.is-off {
    background: var(--eo-warning-10);
    border-color: color-mix(in srgb, var(--eo-warning) 40%, var(--eo-border));
}

.eo-svc__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-svc.is-off .eo-svc__icon {
    color: var(--eo-warning-strong);
    background: var(--eo-surface);
}

.eo-svc__text {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-svc__title {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-svc__hint {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-svc__switch {
    flex: none;
    margin: 0;
}

.eo-svc__switch .eo-check {
    margin: 0;
    font-weight: var(--eo-fw-medium);
}

.eo-svc-locked {
    opacity: 0.5;
    filter: grayscale(1);
    user-select: none;
}

/* the switch rows inside a settings card (the store's order messages): plain lines, two to a row on a wide screen,
   split by hairlines */
/* every switch on the page sits level with its name (the first line) */
.eo-scard .eo-toggle-row .eo-check input {
    margin-top: 3px;
}

.eo-scard .eo-toggle-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0;
    border-radius: 0;
}

.eo-scard .eo-toggle-row {
    align-items: center;
    padding: 8px 12px 8px var(--eo-space-lg);
}

.eo-scard .eo-toggle-row + .eo-toggle-row {
    border-top: 0;
}

.eo-scard .eo-toggle-row:nth-child(n + 3) {
    border-top: 1px solid var(--eo-border);
}

.eo-scard .eo-toggle-row:nth-child(odd) {
    border-right: 1px solid var(--eo-border);
}

/* an odd last line has nobody beside it: no divider into the empty half */
.eo-scard .eo-toggle-row:nth-child(odd):last-child {
    border-right: 0;
}

.eo-scard .eo-toggle-row__action {
    position: relative;
}

.eo-scard .eo-toggle-row__dot {
    position: absolute;
    top: 4px;
    right: 4px;
}

@media (max-width: 767.98px) {
    .eo-scard .eo-toggle-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-scard .eo-toggle-row:nth-child(n + 2) {
        border-top: 1px solid var(--eo-border);
    }

    .eo-scard .eo-toggle-row:nth-child(odd) {
        border-right: 0;
    }

    /* a phone: no icon, the switch stays beside the name */
    .eo-svc {
        align-items: flex-start;
        padding-left: var(--eo-space-base);
        padding-right: var(--eo-space-base);
    }

    .eo-svc__icon {
        display: none;
    }

    .eo-scard .eo-toggle-row {
        padding-left: var(--eo-space-base);
        padding-right: var(--eo-space-base);
    }
}

.eo-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
}

.eo-toggle-row + .eo-toggle-row {
    border-top: 1px solid var(--eo-border);
}

.eo-toggle-row:hover {
    background: var(--eo-surface-2);
}

.eo-toggle-row__main {
    flex: 1;
    min-width: 0;
}

.eo-toggle-row__main .eo-field {
    margin: 0;
}

.eo-toggle-row__main .eo-check {
    font-weight: var(--eo-fw-medium);
}

/* lines up under the label, past the 34px switch and its gap */
.eo-toggle-row__preview {
    margin: 2px 0 0 calc(34px + var(--eo-space-sm));
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-toggle-row__action {
    flex-shrink: 0;
    color: var(--eo-text-muted);
}

.eo-toggle-row__dot {
    width: 6px;
    height: 6px;
    background: var(--eo-accent);
    border-radius: 50%;
}

@media (max-width: 575.98px) {
    .eo-toggle-row {
        padding: var(--eo-space-md);
    }

    .eo-toggle-row__preview {
        white-space: normal;
    }
}

/* offer form: three type cards in a row, the discount unit beside its amount, the buyer's sentence on the side */
.eo-flow__options.eo-flow__options--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eo-flow__side-label {
    margin: 0;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-flow__preview {
    padding: var(--eo-space-md);
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-medium);
    line-height: var(--eo-lh-normal);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-flow__preview.is-empty {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

/* a segment can also hold radios: the checked one looks like the active pill */
label.eo-segment__item {
    position: relative;
    margin: 0;
    cursor: pointer;
}

label.eo-segment__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

label.eo-segment__item:has(input:checked) {
    color: var(--eo-text);
    background: var(--eo-surface);
    box-shadow: 0 0 0 1px var(--eo-border);
}

label.eo-segment__item:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

@media (max-width: 991.98px) {
    .eo-flow__options.eo-flow__options--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* WALLET (redesign) */
/* one balance at a time, in two cards: the balance and how it is used as the product page's facts, then use by day as a chart
   beside its summary column */

/* the top: the balance and how it is used, drawn as the product page's facts (pd-facts, as the COD page's numbers card): one
   card, a tile per figure with its icon, split by thin lines. the balance tile keeps its buy button and service switches on its
   right */
.pd-head.eo-wl-facts {
    overflow: hidden;
}

/* each figure's icon its own colour (wallet_top_stats): blue the count used, amber the daily average, grey how long it lasts,
   green money in; is-warning and is-danger still turn a tile amber or red when it runs short */
.eo-wl-facts .pd-fact.eo-wl-tone-info .pd-fact__icon {
    color: var(--eo-info-strong);
    background: var(--eo-info-10);
}

.eo-wl-facts .pd-fact.eo-wl-tone-neutral .pd-fact__icon {
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
}

.eo-wl-facts .pd-fact.eo-wl-tone-success .pd-fact__icon {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
}

/* the daily average: the summary column's amber (its busiest-day star), so the two spending figures match */
.eo-wl-facts .pd-fact.eo-wl-tone-amber .pd-fact__icon {
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
}

/* the figures are the card's first row, so no line on top of them */
.eo-wl-facts > .pd-facts {
    border-top: 0;
}

/* a credit tab's figures card foot (wallet_top): under a fine line, the services on the left (each its name, price, status and on/off) and the buy button at
   the far right; on a phone the button takes its own line */
.eo-wl-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm) var(--eo-space-lg);
    /* the same room as the tiles above it (pd-fact) */
    padding: var(--eo-space-base) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-wl-foot__svcs {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: var(--eo-space-sm) var(--eo-space-xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-wl-foot__buy {
    margin-left: auto;
}

.eo-wl-svc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-md);
}

.eo-wl-svc > form {
    margin: 0;
}

.eo-wl-svc__name {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-wl-svc__hint {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-wl-svc__info {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-md);
}

/* a phone: each service's name, price and status on a line of their own, then its on/off button and the buy button side by
   side under them, half and half */
@media (max-width: 575.98px) {
    .eo-wl-foot {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--eo-space-sm);
    }

    .eo-wl-foot__svcs,
    .eo-wl-svc {
        display: contents;
    }

    .eo-wl-svc__info {
        grid-column: 1 / -1;
    }

    /* two services (the call balance): one column, each button and the buy button the full width, so none sits beside a gap */
    .eo-wl-foot:has(.eo-wl-svc + .eo-wl-svc) {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-wl-svc > form,
    .eo-wl-foot__buy {
        margin: 0;
    }

    .eo-wl-svc > form .eo-btn,
    .eo-wl-foot__buy .eo-btn {
        width: 100%;
    }
}

/* a narrow phone (475px and under): one tile a row, the full width, its icon beside its words as on a computer, so the label,
   figure and grey line each keep one line and every tile is the same height (read straight down, as a wallet app lists
   balances); the foot's buttons one under another, each the full width */
@media (max-width: 475px) {
    .eo-wl-facts > .pd-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    /* pd-facts' two-a-row lines give way to one fine line between rows */
    .eo-wl-facts > .pd-facts > .pd-fact,
    .eo-wl-facts > .pd-facts > .pd-fact:nth-child(n) {
        grid-column: auto;
        border-left: 0;
        border-top: 1px solid var(--eo-border);
    }

    .eo-wl-facts > .pd-facts > .pd-fact:first-child:nth-child(n) {
        border-top: 0;
    }

    .eo-wl-foot {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* a service switch in a fact cell: the switch with its অন / অফ word */
.eo-wallet__addon {
    display: flex;
    align-items: center;
    min-width: 0;
}

.eo-wallet__addon .eo-switch {
    flex: none;
    align-items: center;
}

/* "অন" and "অফ" take the same room, so the switches stay in one line */
.eo-wallet__addon [data-addon-state] {
    min-width: 24px;
    color: var(--eo-text-muted);
}

/* use by day: the head (name and dates, the calendar / list switch, the month arrows), then the month's summary beside
   its calendar, or the day list */
/* clip, not hidden: hidden makes the card a scroll box, so the list's sticky head would stick inside the card and cover rows */
.eo-wl-days {
    overflow: clip;
}

.eo-wl-days__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

.eo-wl-days__head p {
    margin: 2px 0 0;
}
/* the head's name over its range */
.eo-wl-days__title {
    min-width: 0;
}

/* the body: the summary column, then the calendars or the chart; side by side from a laptop up */
.eo-wl-days__body {
    border-top: 1px solid var(--eo-border);
}

.eo-wl-days__main {
    min-width: 0;
    padding: var(--eo-space-lg);
}

@media (min-width: 992px) {
    .eo-wl-days__body {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

/* the range at a glance, as Kothay's "loads by day" panel (its map_loads page, range_side), on the card's own white, a hairline
   between it and the days. the total very large over what the same days before used; then the busiest day, the days with use
   and the average, each by its icon tile in its status tint; the calendar's key at the foot. above the days on a phone (the
   line under it), beside them (as tall as they are, the line on its right) from a laptop up */
.eo-wl-sum {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    padding: var(--eo-space-xl) var(--eo-space-lg);
    color: var(--eo-text);
    background: var(--eo-surface);
    border-bottom: 1px solid var(--eo-border);
}

@media (min-width: 992px) {
    .eo-wl-sum {
        border-right: 1px solid var(--eo-border);
        border-bottom: 0;
    }
}

.eo-wl-sum p {
    margin: 0;
}

.eo-wl-sum__lead {
    display: grid;
    gap: var(--eo-space-sm);
}

.eo-wl-sum__label {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

.eo-wl-sum__total {
    font-size: var(--eo-fs-4xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* the unit after a figure ("63 ক্রেডিট", "/ 44") and a figure's second part ("7 ক্রেডিট"), small and faded */
.eo-wl-sum__unit,
.eo-wl-sum__sub {
    margin-left: var(--eo-space-xs);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-subtle);
}

/* under the total: what the same days before used and the change (eo-trend), or that there was nothing before */
.eo-wl-sum__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-subtle);
}

.eo-wl-sum__facts {
    display: grid;
    /* room between the figures, so each reads on its own */
    gap: var(--eo-space-md);
    margin: 0;
    padding-top: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

/* a figure by its icon tile: the label and the figure together no taller than the tile, both centred on it */
.eo-wl-sum__fact {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--eo-space-md);
    align-content: center;
    align-items: center;
    padding: var(--eo-space-sm) 0;
}

.eo-wl-sum__fact dt {
    align-self: end;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.3;
    color: var(--eo-text-muted);
}

.eo-wl-sum__fact dd {
    align-self: start;
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.eo-wl-sum__ficon {
    display: inline-flex;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

.eo-wl-sum__ficon .svg-icon {
    width: 16px;
    height: 16px;
}

/* Kothay's tones for the three figures, as the status tints on white */
.eo-wl-sum__ficon.is-warning {
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
}

.eo-wl-sum__ficon.is-success {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
}

.eo-wl-sum__ficon.is-info {
    color: var(--eo-info-strong);
    background: var(--eo-info-10);
}

/* the calendar's key at the column's foot, level with the calendar's last row: each mark the calendar uses, drawn as it draws
   it (a day with no use hatched, the busiest day's line, today's ring) */
.eo-wl-sum__key {
    display: grid;
    gap: var(--eo-space-sm);
    margin: auto 0 0;
    padding: var(--eo-space-md) 0 0;
    list-style: none;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    border-top: 1px solid var(--eo-border);
}

.eo-wl-sum__key li {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

/* each swatch a day cell in small: a little wider than tall, with the day cells' own rounded corners */
.eo-wl-sum__swatch {
    flex: none;
    width: 18px;
    height: 14px;
    border: 1px solid var(--eo-border-strong);
    border-radius: var(--eo-radius-sm);
}

.eo-wl-sum__swatch.is-none {
    background: repeating-linear-gradient(135deg, transparent 0 3px, var(--eo-border-strong) 3px 4px);
}

.eo-wl-sum__swatch.is-peak {
    background: var(--eo-surface);
    border-color: var(--eo-brand);
}

.eo-wl-sum__swatch.is-today {
    background: var(--eo-surface);
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

/* a day still to come: an empty dashed box */
.eo-wl-sum__swatch.is-ahead {
    background: none;
    border-style: dashed;
    border-color: var(--eo-text-subtle);
}

/* the months side by side (one under another on a smaller screen), each its name and total over its calendar */
.eo-wl-months {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-xl);
}

@media (min-width: 1400px) {
    .eo-wl-months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.eo-wl-month__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
    margin-bottom: var(--eo-space-sm);
    padding-bottom: var(--eo-space-sm);
    border-bottom: 1px solid var(--eo-border);
}

.eo-wl-month__head h3 {
    margin: 0;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
}

.eo-wl-month__head span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* a month: seven columns from Saturday; a day with use shows its figure and a bar, a quiet day is hatched, a day still to come
   only a dashed outline */
.eo-wl-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--eo-space-xs);
}

.eo-wl-cal__wd {
    overflow: hidden;
    padding: 0 var(--eo-space-2xs) var(--eo-space-2xs);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* a day as Kothay's compact card: its date small in the top corner, the figure in the middle; low enough to stay near square
   in the narrower space beside the summary column */
.eo-wl-cal__day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: var(--eo-space-md) var(--eo-space-xs) var(--eo-space-xs);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.eo-wl-cal__n {
    position: absolute;
    top: var(--eo-space-xs);
    left: var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    line-height: 1;
    color: var(--eo-text-muted);
}

.eo-wl-cal__v {
    max-width: 100%;
    overflow: hidden;
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-wl-cal__day.is-pad {
    visibility: hidden;
}

.eo-wl-cal__day.is-idle {
    background: repeating-linear-gradient(135deg, var(--eo-surface) 0 6px, var(--eo-surface-2) 6px 7px);
}

.eo-wl-cal__day.is-ahead {
    background: none;
    border-style: dashed;
}

.eo-wl-cal__day.is-ahead .eo-wl-cal__n {
    opacity: 0.5;
}

.eo-wl-cal__day.is-peak {
    border-color: var(--eo-brand);
}

/* today in the base colour: a thicker ring than the busiest day's line, and its date in the same colour */
.eo-wl-cal__day.is-today {
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-wl-cal__day.is-today .eo-wl-cal__n {
    font-weight: var(--eo-fw-bold);
    color: var(--eo-brand);
}

@media (max-width: 575.98px) {
    .eo-wl-days__main {
        padding: var(--eo-space-md);
    }

    .eo-wl-cal {
        gap: 3px;
    }

    .eo-wl-cal__day {
        min-height: 44px;
        padding: var(--eo-space-md) var(--eo-space-2xs) var(--eo-space-2xs);
    }

    .eo-wl-cal__n {
        top: 3px;
        left: var(--eo-space-xs);
    }

    .eo-wl-cal__v {
        font-size: var(--eo-fs-xs);
    }
}

/* the chart is the product page's (pd-chart); beside the summary column it fills the column's height instead of the product
   chart's fixed 200px, so no empty band is left under it */
.eo-wl-days__main {
    display: flex;
    flex-direction: column;
}

.pd-chart.eo-wl-chart {
    flex: 1 1 auto;
    grid-template-rows: minmax(200px, 1fr) auto;
}

/* a phone: the first date, centred under the first narrow bar, ran past the card's left edge ("7 অক্টোবর"); the period
   picker above already names the start, so it is left out there */
@media (max-width: 575.98px) {
    .eo-wl-chart .pd-chart__x > span:first-child {
        visibility: hidden;
    }
}

/* the bars are drawn over the plot's own box: a 100 x 100 drawing with no fixed row would make itself as tall as it is wide */
.pd-chart.eo-wl-chart .pd-chart__plot svg {
    position: absolute;
    inset: 0;
}

/* a view's grey shape while the picked view (or the next month) loads: the real column and view drawn again (wallet.blade.php's
   templates), every word and figure kept in its place but hidden behind a soft pulsing bar of its own size, so nothing moves
   when the page comes */
.eo-wl-skel {
    pointer-events: none;
}

.eo-wl-skel :is(.eo-wl-sum__label, .eo-wl-sum__total, .eo-wl-sum__note, .eo-wl-sum__fact dt, .eo-wl-sum__fact dd,
    .eo-wl-sum__key li > span:last-child, .eo-wl-month__head h3, .eo-wl-month__head span, .eo-wl-cal__wd, .eo-wl-chart__y span,
    .eo-wl-chart__x span, .eo-pager__info, .eo-pager__link) {
    width: fit-content;
    max-width: 100%;
    color: transparent;
    background: var(--eo-border);
    border-color: transparent;
    border-radius: var(--eo-radius-sm);
    animation: eo-pulse 1.4s ease-in-out infinite;
}

/* a word's bar keeps its line's full room but shows thinner in the middle of it, rounded, so two lines on top of each other
   (a label over its figure) read as two bars with a gap, not one block */
.eo-wl-skel :is(.eo-wl-sum__label, .eo-wl-sum__total, .eo-wl-sum__note, .eo-wl-sum__fact dt, .eo-wl-sum__fact dd,
    .eo-wl-sum__key li > span:last-child, .eo-wl-month__head h3, .eo-wl-month__head span, .eo-wl-cal__wd, .eo-wl-chart__y span,
    .eo-wl-chart__x span, .eo-pager__info) {
    clip-path: inset(18% 0 round var(--eo-radius-sm));
}

/* what sits inside a line (a unit, the change's arrow, a pager icon) keeps its room but not its look */
.eo-wl-skel :is(.eo-wl-sum__label, .eo-wl-sum__total, .eo-wl-sum__note, .eo-wl-sum__fact dd, .eo-pager__link) * {
    visibility: hidden;
}

/* the centred and right-hand words keep their side */
.eo-wl-skel .eo-wl-cal__wd {
    margin-inline: auto;
}

.eo-wl-skel .eo-wl-chart__y span {
    align-self: flex-end;
}

/* the column's tiles and key swatches load as the same grey bars as its words and the calendar */
.eo-wl-skel .eo-wl-sum :is(.eo-wl-sum__label, .eo-wl-sum__total, .eo-wl-sum__note, .eo-wl-sum__fact dt, .eo-wl-sum__fact dd,
    .eo-wl-sum__key li > span:last-child),
.eo-wl-skel .eo-wl-sum__ficon,
.eo-wl-skel .eo-wl-sum__swatch {
    color: transparent;
    background: var(--eo-border);
    border-color: transparent;
    box-shadow: none;
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.eo-wl-skel .eo-wl-sum__ficon > * {
    visibility: hidden;
}

/* a day: a plain grey cell, its date and figure hidden, no busiest or today ring */
.eo-wl-skel .eo-wl-cal__day {
    background: var(--eo-bg);
    border-style: solid;
    border-color: var(--eo-bg);
    box-shadow: none;
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.eo-wl-skel .eo-wl-cal__day > * {
    visibility: hidden;
}

/* the chart (pd-chart, as the product page's) while a period loads: its bars grey on their tracks, its dates soft grey bars of
   their own size, no hover */
.eo-wl-skel .pd-chart__bar {
    fill: var(--eo-border);
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.eo-wl-skel .pd-chart__x span:not(:empty) {
    flex: 0 1 auto;
    width: fit-content;
    margin-inline: auto;
    color: transparent;
    background: var(--eo-border);
    border-radius: var(--eo-radius-sm);
    clip-path: inset(18% 0 round var(--eo-radius-sm));
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.eo-wl-skel .pd-chart__hits {
    display: none;
}

/* the list view: the day tree (the reports' tree table) fills the card, no borders of its own; on a phone it slides sideways
   like the reports */
.eo-wl-days .eo-table-wrap,
.eo-wl-days .eo-empty {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.eo-wl-days .eo-empty {
    margin: 0 auto;
}

/* the list's pages sit inside the card, under the table, as a pager at a panel's foot (.eo-card > .eo-pager) */
.eo-wl-days .eo-pager {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* an empty note in a flush panel (billing's recent bills) */
.eo-wallet__pay-none {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* 37 SMS campaign form: three steps on the left, the summary and phone preview stay in view on the right */
.eo-sms, .eo-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--eo-space-base);
    align-items: start;
}

.eo-sms__side, .eo-flow__side {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-space-base));
}

.eo-flow__step {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
}

.eo-flow__num {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--eo-brand);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

.eo-flow__hint {
    margin: var(--eo-space-2xs) 0 0;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-sms__picked {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0;
    font-weight: var(--eo-fw-medium);
}

.eo-flow__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.eo-flow__option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    padding: var(--eo-space-md);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-flow__option:hover {
    border-color: var(--eo-border-strong);
}

.eo-flow__option:has(input:checked) {
    border-color: var(--eo-brand);
    background: var(--eo-brand-10);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-flow__option:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

.eo-flow__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-flow__option-title {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    font-weight: var(--eo-fw-semibold);
}

.eo-flow__option-text {
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-sms__facts {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--eo-space-sm) var(--eo-space-base);
    margin: 0;
}

.eo-sms__facts dt {
    color: var(--eo-text-muted);
    font-weight: var(--eo-fw-normal);
}

.eo-sms__facts dd {
    margin: 0;
    text-align: right;
}

.eo-sms__phone {
    padding: var(--eo-space-base);
    background: var(--eo-bg);
    border-radius: var(--eo-radius-lg);
}

.eo-sms__phone-label {
    margin: 0 0 var(--eo-space-sm);
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

/* a received text message: full width, tail on the left */
.eo-sms__bubble {
    max-height: 240px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    overflow-y: auto;
    font-size: var(--eo-fs-base);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) var(--eo-radius-xl) var(--eo-radius-sm);
}

.eo-sms__bubble.is-empty {
    color: var(--eo-text-subtle);
}

/* the main button gets the full width; save and cancel share the line under it, so three buttons do not stack */
.eo-sms__actions {
    flex-wrap: wrap;
    align-items: stretch;
}

.eo-sms__actions > .eo-btn {
    flex: 1 1 0;
}

.eo-sms__actions > .eo-btn--primary {
    flex-basis: 100%;
}

/* who: each kind of customer is a one-tap chip */
.eo-sms-kinds {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-sms-kinds > legend {
    margin-bottom: var(--eo-space-sm);
    padding: 0;
}

.eo-sms-kind {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin: 0;
    padding: 0 14px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-sms-kind:hover {
    border-color: var(--eo-text-subtle);
}

.eo-sms-kind > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-sms-kind .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

.eo-sms-kind:has(input:checked) {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-sms-kind:has(input:checked) .svg-icon {
    color: var(--eo-brand);
}

.eo-sms-kind:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

/* pixel modal: what goes to Meta under a hairline with a small title; the order sources as plain ticks in a grid */
.eo-pixel-form__steps {
    display: grid;
    gap: var(--eo-space-sm);
    margin: var(--eo-space-xs) 0 0;
    padding-left: var(--eo-space-lg);
    font-size: var(--eo-fs-sm);
}

/* the add button drops under the title on phones, so the long title text keeps the full width */
.eo-pixel-panel .eo-card__head-text {
    flex-basis: 100%;
}

@media (min-width: 768px) {
    .eo-pixel-panel .eo-card__head-text {
        flex-basis: 160px;
    }
}

.eo-pixel-form__guide {
    margin: var(--eo-space-xs) 0 0;
    font-size: var(--eo-fs-sm);
}

.eo-pixel-form__steps strong,
.eo-pixel-form__guide strong {
    font-weight: var(--eo-fw-semibold);
}

.eo-pixel-sources {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px var(--eo-space-base);
    padding-top: 2px;
}

.eo-pixel-sources .eo-field {
    margin: 0;
}

.eo-pixel-sources .eo-error:empty {
    display: none;
}

@media (max-width: 575.98px) {
    .eo-pixel-sources {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* the picked kind in plain words, one grey line under the chips */
.eo-sms-kinds__meaning {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    gap: 6px;
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* lifted like the button icons, so it is level with the Bangla words */
.eo-sms-kinds__meaning .svg-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transform: translateY(-0.15em);
}

/* the other filters: one full-width row under a hairline (title left, count and arrow right), three to a line once open */
.eo-sms-filters {
    border-top: 1px solid var(--eo-border);
}

.eo-sms-filters__toggle {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    width: 100%;
    min-height: var(--eo-control-h);
    margin: 0;
    padding: var(--eo-space-md) 0 0;
    font: inherit;
    color: var(--eo-text);
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.eo-sms-filters__toggle:focus-visible {
    outline: 0;
    box-shadow: var(--eo-focus);
}

.eo-sms-filters__title {
    font-weight: var(--eo-fw-semibold);
}

.eo-sms-filters__toggle .eo-count[hidden] {
    display: none;
}

.eo-sms-filters__caret {
    margin-left: auto;
    color: var(--eo-text-muted);
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-sms-filters__toggle:hover .eo-sms-filters__caret {
    color: var(--eo-text);
}

.eo-sms-filters__toggle[aria-expanded="true"] .eo-sms-filters__caret {
    transform: rotate(180deg);
}

.eo-sms-filters__grid {
    padding-top: var(--eo-space-base);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--eo-space-base);
}

.eo-sms-filters__grid .eo-field {
    margin: 0;
}

/* what: the words to drop in on the left, the live length on the right, one line under the box */
.eo-sms-msgbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.eo-sms-msgbar__codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eo-sms-msgbar__count {
    margin-left: auto;
    font-size: var(--eo-fs-sm);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* when: two choice tiles side by side */
/* the webhook popup's news: "সব খবর" across the top, then two a row; a phone keeps two (the names are short) */
.eo-hook-events > .eo-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.eo-hook-events__all {
    grid-column: 1 / -1;
}

.eo-hook-events .eo-choice-tile {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

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

/* the new API key popup's permissions (owner, 21 Nov 2026): the title across the top, then the tiles two a row, as compact
   as the webhook popup's news */
.eo-key-scopes > .eo-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.eo-key-scopes .eo-choice-tile {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* the side: who gets it (a big number with its icon), the cost, then the message as the buyer's phone shows it */
.eo-sms-sum__reach {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
}

.eo-sms-sum__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-lg);
}

.eo-sms-sum__icon .svg-icon {
    width: 22px;
    height: 22px;
}

.eo-sms-sum__reach-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-sms-sum__num {
    font-size: var(--eo-fs-3xl);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    color: var(--eo-text);
}

.eo-sms-sum__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-sms-sum__note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-sms-sum__note[hidden] {
    display: none;
}

.eo-sms-sum__note .svg-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: var(--eo-info-strong);
}

.eo-sms-sum__facts {
    padding-top: var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

.eo-sms-sum__low .eo-alert {
    margin: 0;
}

/* the same grey "phone screen" as the campaign page, so the white bubble reads as a message, not a field */
.eo-sms-sum__preview {
    padding: var(--eo-space-base) var(--eo-space-lg);
    background: var(--eo-bg);
    border-top: 1px solid var(--eo-border);
}

.eo-sms-sum__preview-label {
    margin: 0 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-sms-sum__sender {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin-bottom: var(--eo-space-sm);
}

.eo-sms-sum__avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: #fff;
    background: var(--eo-brand);
    border-radius: 50%;
}

.eo-sms-sum__sender-name {
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-sms-sum .eo-sms__actions {
    border-top: 1px solid var(--eo-border);
}

@media (max-width: 767.98px) {
    .eo-sms-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .eo-sms-filters__grid,
    .eo-choice-tiles.eo-choice-tiles--2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .eo-sms, .eo-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-sms__side, .eo-flow__side {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .eo-flow__options {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* page: p12-pos */
/* a row's name with a soft initial tile in front, like TimoDesk's project list */

/* counter cards on the open-the-drawer page */
.eo-pos-counter__state {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    color: var(--eo-text-muted);
}
/* end page: p12-pos */

/* page: p05-orders */
/* end page: p05-orders */

/* page: p06-orders */
.eo-od-person { display: flex; align-items: center; gap: var(--eo-space-md); }
.eo-od-person__text { display: flex; flex-direction: column; min-width: 0; }
.eo-od-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--eo-border); border-radius: var(--eo-radius); }
.eo-od-mini > div { padding: var(--eo-space-sm) var(--eo-space-md); text-align: center; }
.eo-od-mini > div + div { border-left: 1px solid var(--eo-border); }
.eo-od-mini dt { font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-normal, 400); color: var(--eo-text-muted); }
.eo-od-mini dd { margin: 0; font-size: var(--eo-fs-lg); font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-od-mini dd.eo-od-mini__bad { color: var(--eo-danger); }
.eo-od-event { display: flex; flex-direction: column; gap: var(--eo-space-2xs); min-width: 0; }
.eo-od-event__what { display: flex; flex-wrap: wrap; gap: var(--eo-space-xs) var(--eo-space-sm); }
.eo-od-timeline + .eo-more { margin-top: var(--eo-space-sm); }
.eo-od-timeline .eo-timeline__item { padding-bottom: var(--eo-space-sm); }
.eo-od-sub { margin-top: var(--eo-space-base); padding-top: var(--eo-space-md); border-top: 1px solid var(--eo-border); }
.eo-od-sub__title { margin: 0 0 var(--eo-space-sm); font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text-muted); }
.eo-od-past { list-style: none; margin: 0; padding: 0; }
.eo-od-past__row { display: flex; align-items: center; justify-content: space-between; gap: var(--eo-space-sm); padding: var(--eo-space-sm) var(--eo-space-lg); border-top: 1px solid var(--eo-border); }
.eo-od-past__link { display: flex; align-items: baseline; gap: var(--eo-space-sm); min-width: 0; color: var(--eo-text); text-decoration: none; }
.eo-od-past__link:hover .eo-strong { color: var(--eo-brand); }
.eo-od-past__more { padding: var(--eo-space-sm) var(--eo-space-lg); border-top: 1px solid var(--eo-border); }
.eo-od-past__more .eo-od-past__row { padding-left: 0; padding-right: 0; }
/* order form: "more options" sits in the items panel foot and opens to full width */
.eo-card__foot.eo-order-form__more { display: block; }
/* end page: p06-orders */

/* page: p04-marketing */
.eo-smslist__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
}
/* end page: p04-marketing */

/* page: p02-marketing */
/* row name with a soft initial tile, like TimoDesk's project list */
/* end page: p02-marketing */

/* page: p01-marketing */

.eo-mk-actions {
    flex-wrap: nowrap;
    gap: var(--eo-space-xs);
}
.eo-mk-ads-stats {
    margin-bottom: var(--eo-space-base);
}
.eo-mk-period {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    min-height: var(--eo-control-h-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-2);
}
/* end page: p01-marketing */

/* page: p08-team */
/* end page: p08-team */

/* page: p14-settings */
/* a list row's name cell, TimoDesk style: a soft letter tile, then the name and one grey line */

/* end page: p14-settings */

/* page: p10-team */
/* staff or shift name with a soft initial tile in front, like TimoDesk's project list */

.eo-team-time {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    white-space: nowrap;
}
/* end page: p10-team */

/* page: p09-team */
/* team pages: a soft initial tile before a name, day pills for the weekly off, a date tile per holiday */

.eo-team-holidays {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--eo-space-lg);
    align-items: start;
}

@media (max-width: 991.98px) {
    .eo-team-holidays {
        grid-template-columns: minmax(0, 1fr);
    }
}

.eo-team-daylist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-team-daylist__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-team-daylist__text {
    flex: 1;
    min-width: 0;
}

.eo-team-datetile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    line-height: 1.1;
    background: var(--eo-warning-10);
    border-radius: var(--eo-radius);
}

.eo-team-datetile__day {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-warning-strong);
}

.eo-team-datetile__month {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-team-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.eo-team-mini__item {
    display: flex;
    flex-direction: column;
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-team-mini__value {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
}

.eo-team-mini__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-team-punches {
    margin: var(--eo-space-md) 0 0;
}
/* end page: p09-team */

/* page: p03-marketing */
.eo-mk-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
}
/* end page: p03-marketing */

/* page: p11-inbox */
/* the four tabs stay on one line in the 320px list column (they wrapped "শেষ হয়েছে" onto a second line) */
.eo-inbox__segment {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.eo-inbox__segment .eo-segment__item {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 var(--eo-space-sm);
}

/* the list column is phone-narrow on every screen: the filter button and a lone settings link (an agent sees only
   তৈরি উত্তর) keep just their icon, so the search box keeps its width (the word stays as the link's title) */
.eo-inbox__tools .eo-filterbar__toggle > span:not(.eo-count),
.eo-inbox__tools .eo-single-action .eo-btn > span {
    display: none;
}

.eo-inbox__tools .eo-single-action .eo-btn {
    justify-content: center;
    width: var(--eo-control-h-sm);
    padding: 0;
}

/* the "reply window closed" note sits inside the pane, not on its border */
.eo-inbox__body > .eo-alert {
    margin: var(--eo-space-md);
}

/* a long preview ends in "…" and the unread count stays on the right of the same line (it wrapped under it) */
.eo-inbox__item-body > .eo-row {
    flex-wrap: nowrap;
}

.eo-inbox__item-body > .eo-row > .eo-truncate {
    flex: 1 1 auto;
    min-width: 0;
}

/* stacked phone layout: the list sits above and there is no keyboard, so the "open one from the left, J/K" placeholder goes */
@media (max-width: 767px) {
    .eo-inbox__thread > .eo-empty {
        display: none;
    }
}

.eo-inbox__tools {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

.eo-inbox__tools .eo-filterbar {
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

.eo-inbox__tools .eo-filterbar__search {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-inbox__head {
    align-items: center;
}

.eo-inbox__who {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-inbox__who-text {
    min-width: 0;
}

.eo-inbox__who-text p {
    margin: 0;
}

.eo-inbox__side .eo-avatar {
    width: 28px;
    height: 28px;
    font-size: var(--eo-fs-sm);
}

.eo-inbox__side p {
    margin: 0;
}
/* end page: p11-inbox */

/* page: p15-wholesale */
/* a buyer's or product's name with a soft initial tile in front, like TimoDesk's project list */

.eo-ws-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-2xs);
}

/* price ladder: up to three "from N pieces, price X" pairs side by side in one cell */
.eo-ws-tiers {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--eo-space-sm);
}

.eo-ws-tier {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-2xs);
    padding: 2px;
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-ws-tier .eo-control {
    width: 68px;
}

.eo-ws-tier__sep {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
}
/* end page: p15-wholesale */

/* page: p16-products */
/* a row's name with its photo, or a soft initial tile when it has none */

/* product page: one photo on top of the facts panel */
.eo-prodview-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: var(--eo-space-md);
}
/* end page: p16-products */

/* page: p17-billing */
/* the billing pages' tab row: the tabs on the left, the page's own controls on the right; on a phone they wrap under */
.eo-bill-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-md);
}

.eo-bill-nav__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    margin-left: auto;
}

.eo-bill-payopt {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: 12px var(--eo-space-md);
    color: inherit;
    text-decoration: none;
}

.eo-bill-row__text {
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.eo-bill-payopt {
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}
/* dead simple billing home: one full-width card; amount left, breakdown right on wide screens */
.eo-bill-simple {
    padding: 0;
    overflow: hidden;
}

.eo-bill-due {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-danger-10);
    border-bottom: 1px solid var(--eo-border);
}

.eo-bill-due__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.eo-bill-due__text strong {
    color: var(--eo-danger-strong);
    font-size: var(--eo-fs-lg);
}

.eo-bill-due__text span {
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
}

.eo-bill-month {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-md);
    padding: var(--eo-space-lg);
}

@media (min-width: 768px) {
    .eo-bill-month {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: var(--eo-space-xl, 32px);
    }
}

.eo-bill-month__head {
    display: flex;
    flex-direction: column;
}

.eo-bill-month__label,
.eo-bill-month__date {
    color: var(--eo-text-muted);
}

.eo-bill-month__amount {
    font-size: 2.25rem;
    font-weight: var(--eo-fw-semibold);
    line-height: 1.2;
}

.eo-bill-month__rows {
    margin: 0;
}

.eo-bill-month__rows > div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.eo-bill-month__rows > div + div {
    border-top: 1px dashed var(--eo-border);
}

.eo-bill-month__rows dt {
    font-weight: normal;
    color: var(--eo-text-muted);
}

.eo-bill-month__rows dd {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
}

/* bill page: under the four cards, "how the bill is made" and the last few bills side by side */
.eo-bill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: var(--eo-space-lg);
    align-items: start;
}

.eo-bill-how {
    margin: 0;
}

.eo-bill-how > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--eo-space-md);
    padding: 10px 0;
    border-bottom: 1px dashed var(--eo-border);
}

.eo-bill-how dt {
    font-weight: normal;
    color: var(--eo-text-muted);
}

.eo-bill-how dd {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eo-bill-how > .eo-bill-how__total {
    padding-top: var(--eo-space-md);
    border-bottom: 0;
}

.eo-bill-how__total dt {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-bill-how__total dd {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-brand);
}

.eo-bill-how__link {
    margin-top: var(--eo-space-sm);
}

.eo-bill-recent {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.eo-bill-recent > li + li {
    border-top: 1px solid var(--eo-border);
}

.eo-bill-recent__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    color: var(--eo-text);
    text-decoration: none;
}

.eo-bill-recent__row:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-surface-2);
}

.eo-bill-recent__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.eo-bill-recent__end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

/* phones: a little less padding, so the bill number ("EB-A9YCHWXQC5") keeps one line beside a long status */
@media (max-width: 575.98px) {
    .eo-bill-recent__row {
        gap: var(--eo-space-sm);
        padding: var(--eo-space-md);
    }

    .eo-bill-recent__text > .eo-strong {
        white-space: nowrap;
    }
}

/* invoice page: one sheet */
.eo-inv {
    padding: 0;
    overflow: hidden;
}

.eo-inv__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-lg);
}

.eo-inv__total {
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* only the "মোট" word: the amount's own span (x-money) inside the strong stays big and dark */
.eo-inv__total > span,
.eo-inv__label,
.eo-inv__facts dt {
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
    font-weight: normal;
}

.eo-inv__total strong {
    font-size: 2rem;
    line-height: 1.2;
}

.eo-inv__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--eo-space-md);
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-bg);
    border-top: 1px solid var(--eo-border);
    border-bottom: 1px solid var(--eo-border);
}

.eo-inv__facts dd {
    margin: 2px 0 0;
    font-weight: var(--eo-fw-semibold);
}

.eo-inv__lines,
.eo-inv__pays {
    padding: var(--eo-space-sm) var(--eo-space-lg);
}

.eo-inv__line,
.eo-inv__pay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: 10px 0;
}

.eo-inv__line + .eo-inv__line {
    border-top: 1px dashed var(--eo-border);
}

.eo-inv__line--total {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

.eo-inv__line--total,
.eo-inv__line + .eo-inv__line--total {
    border-top: 1px solid var(--eo-text);
}

.eo-inv__pays {
    border-top: 1px solid var(--eo-border);
}

.eo-inv__label {
    padding-top: var(--eo-space-sm);
}

.eo-inv__pay + .eo-inv__pay {
    border-top: 1px dashed var(--eo-border);
}

.eo-inv__pay-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

/* all bills on a tablet: the period under the bill number shows in full; the list has the room, and the lead column's
   240px cap cut it to "15 অক্টোবর 2…" (:not(#eo-cards) lends the weight to beat that cap) */
@media (min-width: 576px) and (max-width: 1023.98px) {
    .eo-inv-list:not(#eo-cards) > .eo-table > tbody > tr > td.eo-comm-name > * {
        max-width: none;
    }
}

/* taka balance on a tablet or laptop: the date shows its day alone (the time stays in its hover, as the parcel list) and
   the TrxID's grey line ends in "…" sooner, so the balance column stays inside the card instead of sliding off its edge */
@media (min-width: 768px) and (max-width: 1365.98px) {
    .eo-wallet__table td[data-col="date"] .eo-time-part {
        display: none;
    }

    .eo-wallet__table:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) > td[data-col="trx"] .eo-namecell__text {
        max-width: 170px;
    }

    .eo-wallet__table:not(#eo-cards) > .eo-table > tbody > tr:not(.eo-table-empty) > td[data-col="trx"] .eo-cell-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* all payments: the TrxID is its own column on a wide screen and on the phone card; on a tablet or small laptop it folds
   into a grey line under the method (as the taka list) and the date shows its day alone (the time stays in its hover),
   so the amount and the status stay inside the card (:not(#eo-cards) only lends the selector an id's weight) */
.eo-pay-list:not(#eo-cards) .eo-pay-trx {
    display: none;
}

@media (min-width: 768px) and (max-width: 1365.98px) {
    .eo-pay-list:not(#eo-cards) .eo-pay-trx {
        display: block;
    }

    .eo-pay-list:not(#eo-cards) > .eo-table > :is(thead, tbody) > tr > [data-col="trx"] {
        display: none;
    }

    .eo-pay-list td[data-col="date"] .eo-time-part {
        display: none;
    }
}

/* the statement window's "how to give the file": three short numbered lines, the sample button under them */
.eo-pay-stmt-how {
    display: grid;
    gap: var(--eo-space-xs);
    margin: var(--eo-space-xs) 0 var(--eo-space-sm);
    padding-left: var(--eo-space-lg);
}
/* end page: p17-billing */

/* page: p20-cod */

/* upload page: the three steps on the side */
.eo-cod-sample {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    padding-top: var(--eo-space-md);
    margin-top: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

.eo-cod-steps {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--eo-fs-md);
}

.eo-cod-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
}

.eo-cod-steps__num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: 50%;
}

/* end page: p20-cod */

/* page: p21-confirmation */
/* team board agents: a table on wide screens; under 1200px one short block per agent (2-3 lines), nothing cut */
.eo-board-agents {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-board-agent {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-board-agent__line {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

.eo-board-agent__sub {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

@media (max-width: 1199.98px) {
    .eo-board-agents {
        display: block;
    }

    .eo-board-agents-table {
        display: none;
    }
}

/* a whole unassigned row ticks its box, and the box's cell is a 44px target of its own */
.eo-board-queue tbody tr {
    cursor: pointer;
}

.eo-board-queue tbody td.eo-table__check {
    min-width: 44px;
    height: 44px;
}

/* its tick cells are 44px for a thumb, so its fixed name column starts there */
.eo-board-queue {
    --eo-check-w: 44px;
}

/* phones: the bulk bar's two buttons wrap instead of being cut */
@media (max-width: 575.98px) {
    .eo-board-bulk {
        flex-wrap: wrap;
        justify-content: center;
    }

    .eo-board-bulk .eo-bulkbar__actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* the team board's day picker: আজ / গতকাল pills and a date box, always in view */
.eo-board-bar .eo-filterbar__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-board-bar .eo-filterbar__lead .eo-field {
    margin: 0;
}

/* the desk's call history (side panel): results and softphone calls on one timeline */
.eo-desk-history__head {
    margin: 0;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
}

.eo-desk-history {
    gap: var(--eo-space-sm);
}

.eo-desk-history .eo-timeline__icon .svg-icon {
    width: 15px;
    height: 15px;
}

.eo-desk-history__icon--success {
    color: var(--eo-success-strong, var(--eo-success));
    background: var(--eo-success-10);
    border-color: transparent;
}

.eo-desk-history__icon--danger {
    color: var(--eo-danger);
    background: var(--eo-danger-10, var(--eo-surface-2));
    border-color: transparent;
}

.eo-desk-history__icon--warning {
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10, var(--eo-surface-2));
    border-color: transparent;
}

/* the icon and its text stay side by side; a long result ("সফটফোনে কল: ধরেনি") with a full date wraps beside the icon, never under it */
.eo-desk-history .eo-timeline__item {
    flex-wrap: nowrap;
}

.eo-desk-history__text {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 6px;
}

.eo-desk-history__title > span {
    min-width: 0;
}

.eo-desk-history__text > p {
    margin: 0;
}

/* one line: what happened on the left, how long ago on the right (the agent and full time are in its tooltip) */
.eo-desk-history__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    font-weight: var(--eo-fw-medium);
}

.eo-desk-history__when {
    flex-shrink: 0;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* the order's real steps, one line each, split by a fine line */
.eo-desk-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-desk-steps__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: 8px 0;
    font-size: var(--eo-fs-sm-plus);
}

.eo-desk-steps__row + .eo-desk-steps__row {
    border-top: 1px solid var(--eo-border);
}

.eo-desk-steps__what {
    min-width: 0;
    color: var(--eo-text);
}

/* a call back time, a reason or a note under the result: one step quieter than the result itself */
.eo-desk-history__text > .eo-text-sm {
    margin-top: 2px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.eo-desk-history__time {
    margin-left: var(--eo-space-xs);
    color: var(--eo-text-muted);
    font-weight: var(--eo-fw-normal);
    font-variant-numeric: tabular-nums;
}

/* phones: an unassigned order is two lines like the desk list (name and money, then number and area) */
.eo-board-queue__area {
    display: none;
}

@media (max-width: 575.98px) {
    .eo-board-queue__area {
        display: inline;
    }

    .eo-board-queue .eo-table-wrap--cards tbody tr:not(.eo-table-empty) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: var(--eo-space-sm);
    }

    /* :not(#eo-cards) matches the weight of the shared card rule that pins a tick box to the corner (over the amount) */
    .eo-board-queue .eo-table-wrap--cards:not(#eo-cards) tbody tr:not(.eo-table-empty) > td.eo-table__check {
        position: static;
        order: 3;
    }

    .eo-board-queue .eo-table-wrap--cards tbody tr > td.eo-board-queue__wide {
        display: none;
    }

    .eo-board-queue .eo-table-wrap--cards tbody tr > td.eo-board-queue__amount::before {
        content: none;
    }

    .eo-board-queue .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td.eo-table__check + td {
        padding-right: 0;
    }
}

.eo-board-rate {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-board-rate progress {
    width: 64px;
    margin: 0;
}
/* end page: p21-confirmation */

/* page: p24-integrations */
/* the ways to connect a site, the "ওয়েবসাইট যুক্ত করুন" popup (owner, 22 Nov 2026): flat cards in the app's own look (no
   gradients, no platform colours, no lift): a thin border, a soft brand icon tile, the name, one grey line and a "start" link;
   hover only turns the border brand. A way not open yet (Shopify) is grey with a small tag. Under the cards, one line to the
   developer API */
.eo-intg-pick-modal .modal-dialog {
    max-width: 620px;
}

.eo-intg-pick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-md);
}

.eo-intg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-xs);
    min-width: 0;
    padding: var(--eo-space-lg);
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: border-color .15s ease, background-color .15s ease;
}

a.eo-intg-card:hover,
a.eo-intg-card:focus-visible {
    color: var(--eo-text);
    border-color: var(--eo-brand);
}

.eo-intg-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--eo-space-sm);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-intg-card__logo .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-intg-card__name {
    font-weight: var(--eo-fw-semibold);
}

.eo-intg-card__line {
    flex: 1;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-intg-card__go {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin-top: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
}

.eo-intg-card__go .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-intg-card.is-soon {
    cursor: default;
}

.eo-intg-card.is-soon .eo-intg-card__logo {
    color: var(--eo-text-subtle);
    background: var(--eo-bg-hover);
}

.eo-intg-card.is-soon .eo-intg-card__name {
    color: var(--eo-text-muted);
}

.eo-intg-card__tag {
    position: absolute;
    top: var(--eo-space-base);
    right: var(--eo-space-base);
    padding: 1px var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-intg-pick__dev {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin-top: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-decoration: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: border-color .15s ease;
}

.eo-intg-pick__dev > .svg-icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--eo-text-subtle);
}

.eo-intg-pick__dev strong {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-intg-pick__dev .eo-intg-pick__dev-go {
    margin-left: auto;
}

.eo-intg-pick__dev:hover,
.eo-intg-pick__dev:focus-visible {
    color: var(--eo-text-muted);
    border-color: var(--eo-brand);
}

/* a phone: the cards one under another */
@media (max-width: 575.98px) {
    .eo-intg-pick {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* a WooCommerce site's settings: which of its orders come in, as plain ticks under a name and one grey line */
.eo-intg-imports {
    display: grid;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-intg-imports > legend {
    margin-bottom: 0;
}

.eo-intg-imports .eo-field {
    margin: 0;
}

.eo-intg-link {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    min-width: 200px;
}

/* WooCommerce guide (06): one card, a part per step split by thin lines (owner, 18 Nov 2026), the number in a green circle
   on the left */
.eo-woo-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

/* the steps read as a timeline (owner, 21 Nov 2026): no lines between them, a thin rail joins each number to the next one,
   green once that step is done; the step the owner is on sits on a faint green wash */
.eo-woo-step {
    position: relative;
    display: flex;
    gap: var(--eo-space-base);
    padding: var(--eo-space-lg);
}

.eo-woo-step:first-child {
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
}

.eo-woo-step:last-child {
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-woo-step:not(:last-child)::before {
    position: absolute;
    top: calc(var(--eo-space-lg) + 40px);
    bottom: calc(8px - var(--eo-space-lg));
    left: calc(var(--eo-space-lg) + 17px);
    width: 2px;
    content: "";
    background: var(--eo-border);
    border-radius: 2px;
}

.eo-woo-step.is-done:not(:last-child)::before {
    background: var(--eo-brand);
}

.eo-woo-step.is-current {
    background: color-mix(in srgb, var(--eo-brand) 4%, transparent);
}

/* the side card: what is needed, then what to do when stuck, split the same way */
.eo-woo-aside {
    align-self: start;
}

.eo-woo-aside__part {
    display: grid;
    gap: var(--eo-space-md);
    padding: var(--eo-space-lg);
}

.eo-woo-aside__part + .eo-woo-aside__part {
    border-top: 1px solid var(--eo-border);
}

.eo-woo-aside__title {
    margin: 0;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
}

.eo-woo-step__num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-surface);
    border: 2px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-woo-step__num .svg-icon {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}

.eo-woo-step.is-done .eo-woo-step__num {
    color: #FFFFFF;
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.eo-woo-step.is-current .eo-woo-step__num {
    color: #FFFFFF;
    background: var(--eo-brand);
    border-color: var(--eo-brand);
    box-shadow: 0 0 0 5px var(--eo-brand-20);
}

/* a step still ahead is quieter, so the eye lands on the one to do now */
.eo-woo-step.is-todo .eo-card__title {
    color: var(--eo-text-muted);
}

.eo-woo-step__body {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-sm);
    min-width: 0;
    overflow-wrap: anywhere;
}

/* a step's title may be long (the plugin's full name): it wraps like the rest of the step */
.eo-woo-step__body .eo-card__title {
    white-space: normal;
}

/* the small how-to lines sit in a soft box, each with its number in a little circle */
.eo-woo-list {
    display: grid;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: var(--eo-space-md);
    list-style: none;
    counter-reset: eo-woo;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

/* a line is plain text with bold words inside, so it stays a block and its number sits in the left padding */
.eo-woo-list li {
    position: relative;
    min-height: 22px;
    padding-left: 32px;
    counter-increment: eo-woo;
}

.eo-woo-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    content: counter(eo-woo);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

/* with a shop picker the address, the shop and the button share one line on a wide screen */
.eo-woo-code.eo-woo-code--inline:has(select) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 200px) auto;
    max-width: 820px;
}

/* step 1: the plugin as a file tile, its name and version, the download at the end */
.eo-woo-file {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-md);
    align-items: center;
    max-width: 640px;
    padding: var(--eo-space-md);
    border: 1px dashed var(--eo-border-strong, #D0D5DD);
    border-radius: var(--eo-radius-lg);
}

.eo-woo-file__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #7F54B3;
    background: color-mix(in srgb, #7F54B3 12%, transparent);
    border-radius: var(--eo-radius-lg);
}

.eo-woo-file__icon .svg-icon {
    width: 22px;
    height: 22px;
}

.eo-woo-file__text {
    display: grid;
    flex: 1;
    min-width: 160px;
}

.eo-woo-file__name {
    font-weight: var(--eo-fw-semibold);
}

/* the head card: the two logos joined, the three gains, and how far the owner has come */
.eo-woo-hero {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-lg);
    align-items: center;
    margin-bottom: var(--eo-space-lg);
    padding: var(--eo-space-lg);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-woo-hero__logos {
    display: flex;
    flex: none;
    align-items: center;
}

.eo-woo-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.eo-woo-hero__logo--woo {
    background: #7F54B3;
}

.eo-woo-hero__logo--eo {
    background: var(--eo-brand);
}

/* the own website guide: the shop's own site as a dark screen tile */
.eo-woo-hero__logo--site {
    background: #344054;
}

.eo-woo-sites__icon.eo-woo-sites__icon--site {
    color: #344054;
    background: color-mix(in srgb, #344054 10%, transparent);
}

.eo-woo-hero__logo .svg-icon {
    width: 26px;
    height: 26px;
}

.eo-woo-hero__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    color: var(--eo-text-muted);
}

.eo-woo-hero__link::before {
    position: absolute;
    top: 50%;
    right: 6px;
    left: 6px;
    content: "";
    border-top: 2px dashed var(--eo-border-strong, #D0D5DD);
}

.eo-woo-hero__link .svg-icon {
    position: relative;
    width: 26px;
    height: 26px;
    padding: 5px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-woo-hero__text {
    display: grid;
    flex: 1;
    gap: var(--eo-space-sm);
    min-width: 240px;
}

.eo-woo-hero__title {
    margin: 0;
    font-size: var(--eo-fs-lg, 18px);
    font-weight: var(--eo-fw-semibold);
}

.eo-woo-hero__gains {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs) var(--eo-space-base);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-woo-hero__gains li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-woo-hero__gains .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-brand);
}

.eo-woo-hero__state {
    display: grid;
    flex: none;
    gap: var(--eo-space-sm);
    justify-items: end;
    min-width: 170px;
}

.eo-woo-hero__badge {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 5px 12px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium, 500);
    color: var(--eo-text-muted);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-woo-hero__badge.is-on {
    color: var(--eo-brand-strong);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand-20);
}

.eo-woo-hero__dot {
    width: 8px;
    height: 8px;
    background: var(--eo-text-muted);
    border-radius: 50%;
}

.eo-woo-hero__badge.is-on .eo-woo-hero__dot {
    background: var(--eo-brand);
    box-shadow: 0 0 0 3px var(--eo-brand-20);
}

.eo-woo-hero__progress {
    display: grid;
    gap: 4px;
    justify-items: end;
    width: 170px;
}

.eo-woo-hero__bar {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-woo-hero__bar::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--eo-woo-done, 0%);
    min-width: 6px;
    content: "";
    background: var(--eo-brand);
    border-radius: inherit;
}

@media (max-width: 575.98px) {
    .eo-woo-hero__state,
    .eo-woo-hero__progress {
        justify-items: start;
    }

    .eo-woo-hero__progress {
        width: 100%;
    }
}

/* the stuck questions open one by one */
.eo-woo-faq {
    display: grid;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-woo-faq__item + .eo-woo-faq__item {
    border-top: 1px solid var(--eo-border);
}

.eo-woo-faq__item summary {
    display: flex;
    gap: var(--eo-space-sm);
    align-items: center;
    justify-content: space-between;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-weight: var(--eo-fw-medium, 500);
    cursor: pointer;
    list-style: none;
}

.eo-woo-faq__item summary::-webkit-details-marker {
    display: none;
}

.eo-woo-faq__item summary .svg-icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
    transition: transform 0.15s ease;
}

.eo-woo-faq__item[open] summary .svg-icon {
    transform: rotate(180deg);
}

.eo-woo-faq__item[open] summary {
    color: var(--eo-brand);
}

.eo-woo-faq__item p {
    margin: 0;
    padding: 0 var(--eo-space-md) var(--eo-space-md);
}

/* step 5: each site starts with a small shop tile; the orders button keeps its own size */
.eo-woo-sites__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #7F54B3;
    background: color-mix(in srgb, #7F54B3 12%, transparent);
    border-radius: var(--eo-radius-lg);
}

.eo-woo-sites__icon .svg-icon {
    width: 18px;
    height: 18px;
}

/* the name keeps room to be read; when the row is too narrow the status and its button drop to their own line */
.eo-woo-sites .eo-namecell__text {
    flex: 1 1 150px;
    min-width: 0;
}

.eo-woo-sites li:has(.eo-woo-sites__icon) .eo-woo-sites__end {
    margin-left: auto;
}

.eo-woo-orders {
    justify-self: start;
}

/* the guides less plain (owner, 21 Nov 2026), flat colours only, no gradient: the head card in deep green with light text,
   each step its own card with the rail running through the gaps, the step to do now outlined in green */
.eo-woo-hero {
    color: #FFFFFF;
    background: var(--eo-brand-deep);
    border-color: var(--eo-brand-deep);
}

.eo-woo-hero__title {
    color: #FFFFFF;
}

.eo-woo-hero__gains li,
.eo-woo-hero__progress .eo-muted {
    color: rgba(255, 255, 255, 0.72);
}

.eo-woo-hero__gains .svg-icon {
    color: #6EE7B7;
}

.eo-woo-hero__logo {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.eo-woo-hero__logo--eo {
    color: var(--eo-brand);
    background: #FFFFFF;
}

.eo-woo-hero__link {
    color: #FFFFFF;
}

.eo-woo-hero__link::before {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.eo-woo-hero__link .svg-icon {
    background: var(--eo-brand-deep);
    border-color: rgba(255, 255, 255, 0.25);
}

.eo-woo-hero__badge {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.eo-woo-hero__badge.is-on {
    color: #A7F3D0;
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.35);
}

.eo-woo-hero__dot {
    background: rgba(255, 255, 255, 0.6);
}

.eo-woo-hero__badge.is-on .eo-woo-hero__dot {
    background: #34D399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.eo-woo-hero__bar {
    background: rgba(255, 255, 255, 0.15);
}

.eo-woo-hero__bar::after {
    background: #34D399;
}

.eo-woo-steps {
    gap: var(--eo-space-md);
    background: none;
    border: 0;
}

.eo-woo-step,
.eo-woo-step:first-child,
.eo-woo-step:last-child {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

/* the rail leaves this card's number and crosses the gap to the next card's number */
.eo-woo-step:not(:last-child)::before {
    top: calc(var(--eo-space-lg) + 39px);
    bottom: calc(6px - var(--eo-space-lg) - var(--eo-space-md) - 2px);
    left: calc(var(--eo-space-lg) + 16px);
}

.eo-woo-step.is-current {
    background: var(--eo-surface);
    border-color: var(--eo-brand);
    box-shadow: 0 0 0 3px var(--eo-brand-10), 0 6px 18px rgba(16, 24, 40, 0.06);
}

.eo-woo-step.is-done {
    background: var(--eo-surface);
}

.eo-woo-step__body .eo-card__title {
    font-size: var(--eo-fs-lg, 18px);
}

/* the developer page's summary card (owner, 21 Nov 2026): the API address with its copy button on the left, then a tile
   per count, split by thin lines; on a narrow screen the counts drop under the address side by side */
.eo-dev-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(170px, 220px));
    margin-bottom: var(--eo-space-lg);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-dev-summary > * {
    padding: var(--eo-space-lg);
}

.eo-dev-summary > * + * {
    border-left: 1px solid var(--eo-border);
}

.eo-dev-summary__base {
    display: grid;
    gap: var(--eo-space-sm);
    align-content: center;
    min-width: 0;
}

.eo-dev-summary__base .eo-api__call {
    background: var(--eo-surface-2);
}

.eo-dev-summary__label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
}

.eo-dev-summary__label .svg-icon {
    width: 15px;
    height: 15px;
    color: var(--eo-brand);
}

/* a count tile: its name small on top, the number large, "of how many" under it, the tinted icon on the right */
.eo-dev-summary__stat {
    display: flex;
    gap: var(--eo-space-md);
    align-items: flex-start;
    justify-content: space-between;
}

.eo-dev-summary__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: 10px;
}

.eo-dev-summary__icon--hook {
    color: #6941C6;
    background: #F4EBFF;
}

.eo-dev-summary__icon .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-dev-summary__text {
    display: grid;
    gap: 2px;
}

.eo-dev-summary__name {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium, 500);
    color: var(--eo-text-muted);
}

.eo-dev-summary__num {
    font-size: 30px;
    font-weight: var(--eo-fw-semibold);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.eo-dev-summary__of {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

@media (max-width: 991.98px) {
    .eo-dev-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-dev-summary__base {
        grid-column: 1 / -1;
    }

    .eo-dev-summary > * + * {
        border-left: 0;
        border-top: 1px solid var(--eo-border);
    }

    .eo-dev-summary__stat + .eo-dev-summary__stat {
        border-left: 1px solid var(--eo-border);
    }
}

@media (max-width: 575.98px) {
    .eo-dev-summary > * {
        padding: var(--eo-space-md);
    }

    .eo-dev-summary .eo-api__copy > span {
        display: none;
    }
}

.eo-dev-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-lg);
    align-items: start;
}

@media (min-width: 1500px) {
    .eo-dev-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1499.98px) {
    .eo-dev-grid .eo-woo-aside {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

/* the developer's box: a dark head like an editor tab, so it reads as the part to hand over (inside .eo-api to outweigh the
   box's own head rule further down) */
.eo-api .eo-api__head {
    color: #FFFFFF;
    background: #0F172A;
    border-bottom-color: #0F172A;
}

.eo-api .eo-api__title .svg-icon {
    color: #6EE7B7;
}

/* on the deep green head card the own site's tile is a light glass square */
.eo-woo-hero .eo-woo-hero__logo--site {
    background: rgba(255, 255, 255, 0.14);
}

.eo-woo-code {
    display: grid;
    gap: var(--eo-space-md);
    max-width: 460px;
}

.eo-woo-code .eo-btn {
    justify-self: start;
}

.eo-woo-notes {
    display: grid;
    gap: var(--eo-space-xs);
    max-width: 640px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-woo-notes .eo-strong {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.eo-woo-notes .svg-icon {
    width: 16px;
    height: 16px;
    color: #7F54B3;
}

/* the own website guide's notes for the developer (owner, 19 Nov 2026): a head with "সব কপি করুন", then three parts split by
   thin lines, each a numbered title, its address in a box (the method as a coloured tag, a copy button at the end), what to
   send in plain words and, for orders, the sample as a code block */
.eo-api {
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-api__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.eo-api__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--eo-fw-semibold);
}

.eo-api__title .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-brand);
}

/* the whole notes as one text for the copy button; on the page but out of sight (select() needs it rendered) */
.eo-api__all {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.eo-api__part {
    display: grid;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
}

.eo-api__part + .eo-api__part {
    border-top: 1px solid var(--eo-border);
}

.eo-api__part-title {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
}

.eo-api__step {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

.eo-api__call {
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-api__method {
    flex: none;
    margin-left: var(--eo-space-sm);
    padding: 2px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-brand-strong);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-api__method.is-get {
    color: var(--eo-accent);
    background: var(--eo-accent-10);
}

.eo-api__url {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--eo-control-h);
    padding: 0 var(--eo-space-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text);
    text-overflow: ellipsis;
    background: transparent;
    border: 0;
    outline: 0;
}

.eo-api__copy {
    flex: none;
    margin-right: 4px;
}

.eo-api__label {
    margin: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
}

.eo-api__fields {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px var(--eo-space-md);
    margin: 0;
    font-size: var(--eo-fs-sm);
}

.eo-api__fields dt {
    font-weight: var(--eo-fw-normal);
}

.eo-api__fields dd {
    margin: 0;
    color: var(--eo-text-muted);
}

.eo-api__fields code {
    padding: 1px 6px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.eo-api__note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-api__note .svg-icon {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 3px;
    color: var(--eo-accent);
}

.eo-api__code {
    margin: 0;
    padding: var(--eo-space-md);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--eo-fs-sm);
    line-height: 1.6;
    color: #E2E8F0;
    background: #0F172A;
    border: 1px solid #0F172A;
    border-radius: var(--eo-radius);
}

/* the sample in an editor's colours (owner, 21 Nov 2026): keys blue, text green, numbers amber */
.eo-api__code .tok-key {
    color: #93C5FD;
}

.eo-api__code .tok-str {
    color: #86EFAC;
}

.eo-api__code .tok-num {
    color: #FCD34D;
}

/* step 1: the address and its button on one line on a wide screen */
.eo-woo-code.eo-woo-code--inline {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    max-width: 640px;
}

.eo-woo-code--inline .eo-field {
    margin: 0;
}

/* step 3: a site's status and its one action at the row's end */
/* two fixed columns so every row lines up (owner, 21 Nov 2026): the status in the first, right-aligned, the action in the
   second at one width; a row with no action keeps the empty second column, so its status sits under the others */
.eo-woo-sites__end {
    display: grid;
    grid-template-columns: 150px 132px;
    align-items: center;
    justify-items: end;
    gap: var(--eo-space-sm);
}

.eo-woo-sites__end > .eo-badge {
    grid-column: 1;
}

.eo-woo-sites__end form {
    grid-column: 2;
    justify-self: stretch;
    margin: 0;
}

.eo-woo-sites__end form .eo-btn {
    justify-content: center;
    width: 100%;
}

@media (max-width: 575.98px) {
    .eo-woo-sites__end {
        grid-template-columns: minmax(0, 1fr) 132px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .eo-woo-code.eo-woo-code--inline:has(select) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .eo-woo-code.eo-woo-code--inline:has(select) .eo-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .eo-woo-code.eo-woo-code--inline,
    .eo-woo-code.eo-woo-code--inline:has(select) {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-api__fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .eo-api__fields dd {
        margin-bottom: var(--eo-space-xs);
    }

    .eo-api__copy > span {
        display: none;
    }
}

.eo-woo-sites {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

/* a long site address wraps on a phone instead of pushing the list past the edge */
.eo-woo-sites li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-xs) var(--eo-space-md);
    min-width: 0;
    overflow-wrap: anywhere;
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-woo-sites li + li {
    border-top: 1px solid var(--eo-border);
}

.eo-woo-needs {
    display: grid;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-woo-needs li {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-woo-needs .svg-icon {
    color: var(--eo-success);
}

/* what you need and the help stay in view while the owner works down the steps */
@media (min-width: 992px) {
    .eo-woo-aside {
        position: sticky;
        top: calc(var(--eo-topbar-h) + var(--eo-space-base));
        max-height: calc(100vh - var(--eo-topbar-h) - var(--eo-space-xl));
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

/* connected sites on a tablet or small laptop: the shop column folds into a third grey line under the site, the last
   order shows its day alone (the time stays in its hover) and the site's lines end in "…" (full text on hover), so the
   status and the row's buttons stay inside the card. A wide screen and the phone card keep the shop as its own column
   (:not(#eo-cards) only lends the selector an id's weight, to beat the lead column's own rules) */
.eo-intg-list:not(#eo-cards) .eo-intg-store {
    display: none;
}

@media (min-width: 768px) and (max-width: 1365.98px) {
    .eo-intg-list:not(#eo-cards) .eo-intg-store {
        display: block;
    }

    .eo-intg-list:not(#eo-cards) > .eo-table > :is(thead, tbody) > tr > [data-col="store"] {
        display: none;
    }

    .eo-intg-list td[data-col="last-order"] .eo-time-part {
        display: none;
    }

    .eo-intg-list:not(#eo-cards) > .eo-table > tbody > tr > td:first-child .eo-namecell__text {
        min-width: 0;
        max-width: 200px;
    }

    .eo-intg-list:not(#eo-cards) > .eo-table > tbody > tr > td:first-child :is(.eo-cell-main, .eo-cell-sub) {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* end page: p24-integrations */

/* page: p19-calls */
.eo-call-top {
    align-items: center;
}

.eo-call-tools {
    display: flex;
    flex: 1 1 420px;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

/* a call row: a soft tile with the call's direction, then the name and phone */

.eo-call-head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding-bottom: var(--eo-space-base);
    margin-bottom: var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-call-head .eo-namecell__text {
    flex: 1 1 auto;
}

.eo-call-audio {
    display: block;
    width: 100%;
}

.eo-call-order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

/* wide enough for two full dates side by side ("15 নভেম্বর 2026") */
.eo-call-range {
    min-width: 380px;
    padding: var(--eo-space-md);
}

.eo-call-range .eo-field {
    margin-bottom: var(--eo-space-sm);
}

@media (max-width: 575.98px) {
    /* the report's own dates keep the page gutter instead of touching the screen edge */
    .eo-call-range {
        min-width: 260px;
        max-width: calc(100vw - 2 * var(--eo-space-md));
    }

    /* stacked here only, so each picked date reads in full ("15 নভেম্বর 2026") inside the narrow dropdown */
    .eo-call-range .eo-daterange__boxes {
        flex-wrap: wrap;
    }

    .eo-call-range .eo-daterange__boxes > :not(.eo-daterange__dash) {
        flex-basis: 100%;
    }

    .eo-call-range .eo-daterange__dash {
        display: none;
    }
}
/* end page: p19-calls */

/* page: p22-customers */

/* the name stays dark text as before; it is a link only so the row opens the customer */
.eo-ordp-name .eo-cell-main > a {
    color: inherit;
}

/* "+1 জন" beside a name: more people order on this number (a husband and a wife) */
.eo-cust-people {
    display: inline-block;
    margin-left: var(--eo-space-xs);
    padding: 0 6px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    line-height: 18px;
    color: var(--eo-text-2);
    vertical-align: 2px;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

/* the list's delivery success: the rate on top, a short bar in its tone under it; both start at the left, as every
   column here reads from the left */
.eo-cust-rate {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.eo-cust-rate__bar {
    display: block;
    width: 64px;
    height: 4px;
    overflow: hidden;
    appearance: none;
    background: var(--eo-bg-hover);
    border: 0;
    border-radius: var(--eo-radius-pill);
}

.eo-cust-rate__bar::-webkit-progress-bar {
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-cust-rate__bar.is-success::-webkit-progress-value { background: var(--eo-success); border-radius: var(--eo-radius-pill); }
.eo-cust-rate__bar.is-warning::-webkit-progress-value { background: var(--eo-warning); border-radius: var(--eo-radius-pill); }
.eo-cust-rate__bar.is-danger::-webkit-progress-value { background: var(--eo-danger); border-radius: var(--eo-radius-pill); }
.eo-cust-rate__bar.is-success::-moz-progress-bar { background: var(--eo-success); border-radius: var(--eo-radius-pill); }
.eo-cust-rate__bar.is-warning::-moz-progress-bar { background: var(--eo-warning); border-radius: var(--eo-radius-pill); }
.eo-cust-rate__bar.is-danger::-moz-progress-bar { background: var(--eo-danger); border-radius: var(--eo-radius-pill); }

/* profile page (the order page's layout): the copy and call buttons sit at the right of the person card's head */
.eo-cust-quick {
    display: inline-flex;
    flex: 0 0 auto;
    gap: var(--eo-space-2xs);
}

/* the notes tab: the write box first, a hairline, then the notes */
.eo-cust-noteform {
    padding-bottom: var(--eo-space-base);
    margin-bottom: var(--eo-space-base);
    border-bottom: 1px solid var(--eo-border);
}

.eo-cust-tabs .eo-card__head {
    padding-bottom: 0;
}

/* the table runs to the card's edges, so the card keeps its own round corners over it (nothing in a tab opens a menu
   outside the card) */
.eo-cust-tabs {
    overflow: hidden;
}

/* the tab names sit right on the card head's line: one line under the tabs, not a short one plus the head's own */
.eo-cust-tabs .eo-card__head > .eo-tabs {
    margin-bottom: 0;
    border-bottom: 0;
}

/* the card's main action: a new order for this customer, the card's width (inside its padding) under the name */
.eo-cust-neworder {
    padding: 0 var(--eo-space-md) var(--eo-space-md);
}

.eo-cust-neworder > .eo-btn {
    width: 100%;
    justify-content: center;
}

/* the tab names and a tab's own button share one line; on a narrow card the names scroll sideways, the button stays */
.eo-cust-tabs > .eo-card__head {
    flex-wrap: nowrap;
    align-items: center;
}

.eo-cust-tabs .eo-card__head > .eo-tabs {
    flex: 1 1 auto;
    min-width: 0;
}

/* the framed button, level with the tab names, with a little room above the line under them */
.eo-cust-tabs .eo-card__head > .eo-cust-tabs__action {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-bottom: var(--eo-space-sm);
}

/* a tab's own button, level with the tab names (they keep a gap under their line) */
.eo-cust-tabs__action {
    margin-bottom: var(--eo-space-md);
}

.eo-cust-tabs__action[hidden] {
    display: none;
}

/* the four profile numbers stay even: two by two on a small screen, one row from a tablet up
   (auto-fit left the fourth alone on a second line) */
.eo-cust-page .pd-main > .eo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .eo-cust-page .pd-main > .eo-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* the notes tab is a plain list: no bullet indent, a hairline between notes */
.eo-cust-notes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-cust-notes > li + li {
    padding-top: var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

/* a tab's table runs edge to edge under the tab row, like a list under its toolbar: no padding round it and no second
   frame inside the card (a box in a box read cheap); its pages sit under a hairline */
/* (the order page layout gives a body under a head its own top room; a table here starts right under the tab line) */
.pd-layout .eo-cust-tabs .eo-card__head + [data-customer-tab-body]:has(> .eo-cust-tab-table, > .eo-skel-table),
.eo-cust-tabs [data-customer-tab-body]:has(> .eo-cust-tab-table, > .eo-skel-table) {
    padding: 0;
}

/* the loading rows draw the same: flush under the tab row, no frame of their own */
.eo-cust-tabs .eo-cust-tab-table,
.eo-cust-tabs [data-customer-tab-body] > .eo-skel-table {
    border: 0;
    border-radius: 0;
}

.eo-cust-tabs [data-customer-tab-body] > .eo-cust-tab-table + .eo-pager {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* what was bought may take two lines on a laptop rather than push the money off the card */
.eo-cust-tab-table .eo-cust-tab-table__items {
    min-width: 180px;
    max-width: 300px;
    white-space: normal;
}

.eo-cust-tab-table .eo-cust-tab-table__items .eo-cell-main {
    white-space: normal;
}

/* a long address (or reason, message) wraps in its own column instead of pushing the last columns off the card */
.eo-cust-tab-table td.eo-cell-wrap {
    min-width: 200px;
    max-width: 340px;
    white-space: normal;
}

.eo-cust-tab-table td.eo-cell-wrap .eo-cell-main,
.eo-cust-tab-table td.eo-cell-wrap .eo-cell-sub {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* the status badge with its grey line under it (who carries the parcel, or when a return came) */
.eo-cust-tab-table .eo-badge + .eo-cell-sub {
    display: block;
    margin-top: var(--eo-space-xs);
}

/* the history tab's last column is the time, so its head stays right like the cells under it */
.eo-cust-tabs .eo-table:has(.eo-log-changes) tr > th:last-child {
    text-align: right;
}
/* end page: p22-customers */

/* page: p25-parcels */
.eo-parcels-narrow {
    max-width: 720px;
}

.eo-parcels-show {
    align-items: start;
}

.eo-parcels-show .eo-more {
    padding: var(--eo-space-sm) var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}
/* end page: p25-parcels */

/* page: p23-daraz */

.eo-dz-error {
    max-width: 200px;
    overflow: hidden;
    color: var(--eo-danger-strong);
    text-overflow: ellipsis;
}

.eo-dz-note {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the head card (product details look): a shop with no logo shows its first letter, white on green, as the sidebar's
   shop switcher draws the shop picked */
.pd-head__photo.eo-dz-head__letter {
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-on-brand);
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

/* a logo is drawn whole on white (a product photo fills the tile, a logo must not be cut) */
.pd-head__photo.eo-dz-head__img {
    padding: var(--eo-space-xs);
    background: var(--eo-surface);
}

.pd-head__photo.eo-dz-head__img img {
    object-fit: contain;
}

/* the head card's corners hold the facts below, as the cod head does */
.pd-head.eo-dz-head {
    overflow: hidden;
}

/* a fact with somewhere to go is one big link, with the same grey hover as a clickable x-stat (a.eo-stat:hover) and no
   other mark; its words stay plain in the fact's own colour (amber waiting, red problem, grey otherwise) */
.eo-dz-head .pd-fact:has(> .eo-dz-fact__link) {
    position: relative;
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.eo-dz-head .pd-fact:has(> .eo-dz-fact__link):hover {
    background: var(--eo-surface-2);
}

.eo-dz-fact__link {
    position: absolute;
    inset: 0;
}

.eo-dz-fact__link:focus-visible {
    outline: none;
    box-shadow: inset var(--eo-focus);
}

/* the recent orders card's head: the "look at these" link (amber, it waits on the owner) beside "all orders" */
.eo-dz-recent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-md);
}

.eo-dz-review {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-2xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-warning-strong);
    text-decoration: none;
}

.eo-dz-review .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-dz-review:hover {
    text-decoration: underline;
}

/* the settings card: one line per setting, split by hairlines as the product page's rows; an icon tile, the name with its
   short help, and the switch or the small box on the right. a switch's whole line is its label */
.eo-dz-set {
    margin: 0;
    border-top: 1px solid var(--eo-border);
}

.eo-dz-set > form {
    margin: 0;
}

.eo-dz-set__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    margin: 0;
    padding: var(--eo-space-base) var(--eo-space-lg);
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.eo-dz-set__row + input + .eo-dz-set__row,
.eo-dz-set__row + .eo-dz-set__row,
.eo-dz-set > form + .eo-dz-set__row {
    border-top: 1px solid var(--eo-bg-hover);
}

label.eo-dz-set__row {
    cursor: pointer;
}

label.eo-dz-set__row:hover {
    background: var(--eo-surface-2);
}

.eo-dz-set__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-dz-set__icon .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-dz-set__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-dz-set__text strong {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-dz-set__text small {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-dz-set__control {
    flex-shrink: 0;
    margin: 0;
}


/* the alert's message and its fix share one line, the button on the right (as the payment page's pm-warn) */
.eo-dz-warn .eo-alert__body > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-base);
}

/* from a wide screen the side card is wider than the product page's (its dates are long) and as tall as the settings card
   beside it; below 1200px both stack, as the product page does */
@media (min-width: 1200px) {
    .pd-layout.eo-dz-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
        align-items: stretch;
    }

    .eo-dz-layout > .pd-side > .eo-card:only-child {
        flex: 1;
    }
}

/* the stock line's value: the number with its unit and the edit button beside it, always in sight */
.eo-dz-set__value {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-weight: var(--eo-fw-medium);
    white-space: nowrap;
}
/* end page: p23-daraz */

/* page: p26-profit */
.eo-profit-total td {
    background: var(--eo-bg-hover);
}

.eo-profit-sub {
    padding-left: var(--eo-space-xl);
}

/* a line opens its orders, but it reads as a statement line, not a row of green links */
.eo-profit-line a {
    color: inherit;
    text-decoration: none;
}

.eo-profit-line a:hover,
.eo-profit-line a:focus-visible {
    color: var(--eo-brand);
    text-decoration: underline;
}

.eo-profit-note {
    margin: var(--eo-space-sm) 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}
/* end page: p26-profit */

/* page: p29-staff */
.eo-staff-row-off .eo-namecell,
.eo-staff-row-off .eo-staff-role,
.eo-staff-row-off .eo-inline {
    opacity: .6;
}

.eo-staff-stores {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
}
/* on a laptop the last login may take two lines (never three), so the list and its pencil fit beside the settings menu;
   below a laptop the list slides sideways, one line a cell */
@media (min-width: 1024px) {
    .eo-staff-seen .eo-nowrap {
        white-space: normal;
    }

    .eo-table td.eo-staff-seen {
        min-width: calc(var(--eo-space-3xl) * 2 + var(--eo-space-xl));
    }
}
/* end page: p29-staff */

/* page: p30-stores */
/* the store page is one card: the tab names on its top line with one rule under them and the way back at that line's
   right end (as the customer page's tab button), the groups straight under it (no second box), the save buttons in the
   card's own foot */
.eo-store-card__head {
    flex-wrap: nowrap;
    /* the tab names sit on the line under them; only the button keeps room above it */
    align-items: flex-end;
    min-height: 0;
    padding-bottom: 0;
    border-bottom: 1px solid var(--eo-border);
}

.eo-store-card__head > .eo-tabs {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: -1px;
    border-bottom: 0;
}

/* the button keeps clear room above the line under it (owner, 17 Nov 2026) */
.eo-store-card__back {
    flex: 0 0 auto;
    margin-bottom: var(--eo-space-md);
    margin-left: auto;
}

.eo-form-card .eo-scards,
.eo-store-card .eo-scards {
    background: transparent;
    border: 0;
    border-radius: 0;
}

/* the first group sits right under the tabs' rule, so it does not draw its own top line again */
.eo-form-card .eo-scards > .eo-scard:first-child,
.eo-store-card .eo-scards > .eo-scard:first-child {
    border-top-color: transparent;
}

/* a phone: the way back on its own line at the top right, the three tab names under it in one row, none cut at the edge */
@media (max-width: 575.98px) {
    .eo-store-card__head {
        flex-wrap: wrap;
    }

    .eo-store-card__head > .eo-tabs {
        order: 2;
        flex-basis: 100%;
        gap: var(--eo-space-md);
    }

    .eo-store-card__head > .eo-tabs > .eo-tab {
        font-size: var(--eo-fs-sm);
    }
}

/* the name stays dark text, as on the customers list; it is a link only so the row opens the store's page */
.eo-store-list .eo-cell-main > a,
.eo-staff-list .eo-cell-main > a {
    color: inherit;
}

/* own domain (stores/domains): one card like the store page; a top line (the link today, the way back), then a group
   per domain (the records to copy, one line of buttons), one "how" card for the whole page, turned-off names last */

/* an empty page's top line: the shop's link today on the left, the way back on the right */
.eo-dm-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-dm-top__now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

/* the add box and its button on one line, the box takes the room */
.eo-dm-add {
    display: flex;
    gap: var(--eo-space-sm);
    width: 100%;
}

.eo-dm-add > .eo-field {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.eo-dm-add > .eo-btn {
    flex: none;
}

/* the three steps of an empty page: a small number in front of each short line */
.eo-dm-steps {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dm;
    color: var(--eo-text-muted);
}

.eo-dm-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    counter-increment: dm;
}

.eo-dm-steps li::before {
    content: counter(dm);
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 9%, transparent);
    border-radius: 50%;
}

/* the top line's buttons: the way back, then a new domain */
.eo-dm-top__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
}

/* a domain's group: its status is the line under the name, orange while waiting, green once live */
.eo-dm-group .eo-scard__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-warning-strong);
}

.eo-dm-group .eo-scard__text::before {
    content: "";
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

.eo-dm-group.is-live .eo-scard__text {
    color: var(--eo-success-strong);
}

.eo-dm-group.is-bad .eo-scard__text {
    color: var(--eo-danger-strong);
}

/* the domain's state in one sentence, in the colour of its status (owner, 22 Nov 2026) */
.eo-dm-state {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    margin: 0;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-warning-strong);
}

.eo-dm-state svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.eo-dm-state.is-success { color: var(--eo-success-strong); }
.eo-dm-state.is-danger { color: var(--eo-danger-strong); }
.eo-dm-state.is-neutral { color: var(--eo-text-muted); }

/* a group's last line: its main button (or the live links) on the left, the domain's own menu at the far right */
.eo-srow--stack.eo-dm-end > .eo-srow__control {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.eo-dm-end__main {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
}

/* the "how" card's steps column: the hint until a company is picked, then that company's numbered steps */
.eo-dm-guide {
    width: 100%;
}

.eo-dm-guide > p {
    margin: 0;
}

/* one box per record: Type, Host and Value side by side, the line under it says what we see now */
.eo-dm-recs {
    display: grid;
    gap: var(--eo-space-sm);
}

.eo-dm-rec {
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    overflow: hidden;
}

.eo-dm-rec__fields {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--eo-space-md);
    margin: 0;
    padding: var(--eo-space-md);
}

.eo-dm-rec__fields dt {
    margin-bottom: 2px;
    font-size: var(--eo-fs-xs, 12px);
    font-weight: 400;
    color: var(--eo-text-muted);
}

.eo-dm-rec__fields dd {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.eo-dm-rec__fields code {
    padding: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    background: none;
    overflow-wrap: anywhere;
}

.eo-dm-copy {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--eo-text-muted);
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.eo-dm-copy:hover { color: var(--eo-brand); background: var(--eo-success-10); }
.eo-dm-copy svg { width: 15px; height: 15px; }

.eo-dm-rec__state {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 8px var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    border-top: 1px solid var(--eo-border);
}

.eo-dm-rec__state svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* only the words take the colour, no filled block: the record above stays the thing to look at */
.eo-dm-rec.is-live .eo-dm-rec__state { color: var(--eo-success-strong); }
.eo-dm-rec.is-bad .eo-dm-rec__state { color: var(--eo-danger-strong); }

.eo-dm-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-dm-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* a phone: the add button under the box, a record's three fields stacked */
@media (max-width: 575.98px) {
    .eo-dm-add { flex-direction: column; }
    .eo-dm-rec__fields { grid-template-columns: 1fr 1fr; }
    .eo-dm-rec__value { grid-column: 1 / -1; }
}
/* end page: p30-stores */

/* page: p28-resellers */
.eo-rsl-seg {
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: var(--eo-space-md);
    overflow-x: auto;
}

.eo-rsl-hint {
    margin: 0 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* profile page: a narrow "who" column on the left, the orders and money on the right */
.eo-rsl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-lg);
    align-items: start;
}

@media (min-width: 1200px) {
    .eo-rsl-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

.eo-rsl-col {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    min-width: 0;
}

.eo-rsl-col > .eo-card {
    margin-bottom: 0;
}

.eo-rsl-who {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    margin-bottom: var(--eo-space-md);
}

.eo-rsl-who__name {
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

.eo-rsl-facts {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    margin: 0;
}

.eo-rsl-facts dt {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-rsl-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}
/* end page: p28-resellers */

/* page: p31-support */
.eo-sup-toolbar { align-items: center; }
.eo-sup-toolbar .eo-filterbar { flex: 1 1 260px; }

.eo-sup-narrow { width: 100%; max-width: 720px; }

.eo-sup-thread { display: flex; flex-direction: column; gap: var(--eo-space-base); }
.eo-sup-msg { display: flex; flex-direction: column; gap: var(--eo-space-xs); max-width: 80%; }
.eo-sup-msg--me { align-self: flex-end; align-items: flex-end; }
.eo-sup-msg--system { align-self: center; align-items: center; max-width: 100%; }
.eo-sup-msg__who { display: flex; gap: var(--eo-space-sm); margin: 0; font-size: var(--eo-fs-sm); }
.eo-sup-msg__bubble { padding: var(--eo-space-md) var(--eo-space-base); background: var(--eo-bg-hover); border-radius: var(--eo-radius-lg); }
.eo-sup-msg__bubble > p { margin: 0; }
.eo-sup-msg--me .eo-sup-msg__bubble { background: var(--eo-brand-10); }
.eo-sup-msg--system .eo-sup-msg__bubble { color: var(--eo-text-muted); background: none; border: 1px dashed var(--eo-border); }
/* super admin: an internal note stays on our side but reads as private */
.eo-sup-msg--internal .eo-sup-msg__bubble { background: var(--eo-warning-10); border: 1px dashed var(--eo-warning); }
.eo-sup-msg__files { margin-top: var(--eo-space-sm); }
.eo-sup-reply { margin-top: var(--eo-space-lg); padding-top: var(--eo-space-lg); border-top: 1px solid var(--eo-border); }
.eo-sup-rate { display: flex; }
.eo-sup-rate .eo-segment__item { flex: 1 1 0; justify-content: center; }
@media (max-width: 767.98px) {
    .eo-sup-msg { max-width: 100%; }
}

/* the TimoDesk support layout: one card (intro, body, foot) with a tips or details card beside it */
.eo-nt { align-items: start; }
.eo-nt-card { overflow: hidden; }
.eo-nt-intro { display: flex; align-items: center; gap: var(--eo-space-md); padding: var(--eo-space-xl); border-bottom: 1px solid var(--eo-border); }
.eo-nt-intro__icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--eo-brand); background: var(--eo-brand-10); border-radius: var(--eo-radius-lg); }
.eo-nt-intro__icon .svg-icon { width: 22px; height: 22px; }
.eo-nt-intro__text { flex: 1; min-width: 0; }
.eo-nt-intro__title { margin: 0 0 var(--eo-space-2xs); font-size: var(--eo-fs-lg); font-weight: var(--eo-fw-semibold); color: var(--eo-text); overflow-wrap: anywhere; }
.eo-nt-intro__sub { margin: 0; font-size: var(--eo-fs-sm); color: var(--eo-text-muted); }
.eo-nt-intro__status { flex-shrink: 0; align-self: flex-start; }
.eo-nt-body { display: flex; flex-direction: column; gap: var(--eo-space-lg); padding: var(--eo-space-xl); }
.eo-nt-body textarea { min-height: 110px; resize: vertical; }
.eo-nt-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--eo-space-base); }

/* the four departments in one row, as TimoDesk (two to a row on a phone) */
.eo-nt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--eo-space-sm); }
.eo-nt-tile { position: relative; display: flex; flex-direction: column; gap: var(--eo-space-2xs); padding: var(--eo-space-md); cursor: pointer; background: var(--eo-surface); border: 1px solid var(--eo-border); border-radius: var(--eo-radius-lg); transition: border-color var(--eo-dur) var(--eo-ease), background var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease); }
.eo-nt-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.eo-nt-tile:hover { border-color: var(--eo-brand); }
.eo-nt-tile:has(input:checked) { background: var(--eo-brand-10); border-color: var(--eo-brand); box-shadow: 0 0 0 3px var(--eo-brand-10); }
.eo-nt-tile:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--eo-brand-20); }
.eo-nt-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: var(--eo-space-sm); color: var(--eo-text-muted); background: var(--eo-bg-hover); border-radius: var(--eo-radius-lg); transition: all var(--eo-dur) var(--eo-ease); }
.eo-nt-tile__icon .svg-icon { width: 17px; height: 17px; }
.eo-nt-tile:has(input:checked) .eo-nt-tile__icon { color: var(--eo-on-brand); background: var(--eo-brand); }
.eo-nt-tile__name { font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-nt-tile__hint { font-size: var(--eo-fs-xs); color: var(--eo-text-muted); }

.eo-nt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--eo-space-md); padding: var(--eo-space-base) var(--eo-space-xl); border-top: 1px solid var(--eo-border); }
.eo-nt-foot__end { display: flex; gap: var(--eo-space-sm); margin-left: auto; }

.eo-nt-tips { padding: var(--eo-space-xl); }
.eo-nt-tips__title { margin: 0 0 var(--eo-space-base); font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text-muted); }
.eo-nt-tips__list { display: flex; flex-direction: column; gap: var(--eo-space-base); margin: 0 0 var(--eo-space-lg); padding: 0; list-style: none; }
.eo-nt-tips__list li { display: flex; gap: var(--eo-space-md); }
.eo-nt-tips__icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--eo-brand); background: var(--eo-brand-10); border-radius: var(--eo-radius-lg); }
.eo-nt-tips__icon .svg-icon { width: 15px; height: 15px; }
.eo-nt-tips__list strong { display: block; font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-nt-tips__list p { margin: var(--eo-space-2xs) 0 0; font-size: var(--eo-fs-sm); line-height: 1.5; color: var(--eo-text-muted); }
.eo-nt-tips__link { display: flex; align-items: center; gap: var(--eo-space-sm); padding-top: var(--eo-space-base); font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-medium); color: var(--eo-brand); text-decoration: none; border-top: 1px solid var(--eo-border); }
.eo-nt-tips__link .svg-icon { width: 16px; height: 16px; }
.eo-nt-tips__link .svg-icon:last-child { margin-left: auto; transition: transform var(--eo-dur) var(--eo-ease); }
.eo-nt-tips__link:hover .svg-icon:last-child { transform: translateX(3px); }

/* the ticket page: reply box on top, the conversation newest first under it */
.eo-nt-note { display: flex; align-items: center; gap: var(--eo-space-sm); padding: var(--eo-space-sm) var(--eo-space-md); font-size: var(--eo-fs-sm); color: var(--eo-text-2); background: var(--eo-warning-10); border-radius: var(--eo-radius-lg); }
.eo-nt-note .svg-icon { flex-shrink: 0; color: var(--eo-warning-strong); }
.eo-nt-thread { display: flex; flex-direction: column; gap: var(--eo-space-lg); padding: var(--eo-space-xl); border-top: 1px solid var(--eo-border); }
.eo-nt-msg { display: flex; gap: var(--eo-space-md); min-width: 0; }
.eo-nt-msg__avatar { width: 36px; height: 36px; font-size: var(--eo-fs-sm); }
.eo-nt-msg--team .eo-nt-msg__avatar { color: var(--eo-on-brand); background: var(--eo-text); }
.eo-nt-msg--system .eo-nt-msg__avatar { color: var(--eo-text-muted); background: var(--eo-bg-hover); }
.eo-nt-msg__main { flex: 1; min-width: 0; }
.eo-nt-msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eo-space-xs) var(--eo-space-sm); margin-bottom: var(--eo-space-xs); }
.eo-nt-msg__name { font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-nt-msg__time { margin-left: auto; font-size: var(--eo-fs-xs); color: var(--eo-text-subtle); }
.eo-nt-msg__body { padding: var(--eo-space-md) var(--eo-space-md); font-size: var(--eo-fs-sm); line-height: 1.6; color: var(--eo-text-2); overflow-wrap: anywhere; background: var(--eo-surface-2); border: 1px solid var(--eo-border); border-radius: 0 var(--eo-radius-lg) var(--eo-radius-lg) var(--eo-radius-lg); }
.eo-nt-msg--team .eo-nt-msg__body { background: var(--eo-brand-10); border-color: var(--eo-brand-20); }
.eo-nt-msg--system .eo-nt-msg__body { color: var(--eo-text-muted); background: none; border-style: dashed; }
.eo-nt-msg__files { display: flex; flex-wrap: wrap; gap: var(--eo-space-xs); margin-top: var(--eo-space-sm); }
/* file names are English and the close button measured level without it, so their icons skip the Bangla lift and sit in the middle */
.eo-nt-msg__files .eo-btn > .svg-icon,
.eo-nt-side .eo-btn--block > .svg-icon { transform: none; }

.eo-nt-facts { margin: 0 0 var(--eo-space-lg); }
.eo-nt-facts__row { display: flex; align-items: center; justify-content: space-between; gap: var(--eo-space-md); padding: var(--eo-space-sm) 0; font-size: var(--eo-fs-sm); }
.eo-nt-facts__row:first-child { padding-top: 0; }
.eo-nt-facts__row + .eo-nt-facts__row { border-top: 1px solid var(--eo-border); }
.eo-nt-facts__row dt { flex-shrink: 0; font-weight: var(--eo-fw-normal); color: var(--eo-text-subtle); white-space: nowrap; }
.eo-nt-facts__row dd { min-width: 0; margin: 0; font-weight: var(--eo-fw-medium); color: var(--eo-text); text-align: right; }
.eo-nt-facts + .eo-nt-tips__link,
.eo-nt-side form + .eo-nt-tips__link { margin-top: var(--eo-space-base); }

@media (min-width: 992px) {
    .eo-nt-side { position: sticky; top: calc(var(--eo-topbar-h, 64px) + 24px); }
}

@media (max-width: 767.98px) {
    .eo-nt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eo-nt-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .eo-nt-intro, .eo-nt-body, .eo-nt-foot, .eo-nt-tips, .eo-nt-thread { padding-right: var(--eo-space-base); padding-left: var(--eo-space-base); }
    .eo-nt-msg__time { width: 100%; margin-left: 0; }
}

/* the list's grey rows (partials/list, skeleton): the subject is the wide column of the real list, so its grey lines take
   a subject's width and the columns stay put when the rows come in */
@media (min-width: 992px) {
    [data-support-list] .eo-table-skel td[data-col="request"] { width: 40%; }
    [data-support-list] .eo-table-skel td[data-col="request"] .eo-rpt-skel-stack { flex: 1 1 auto; max-width: 320px; }
}
/* end page: p31-support */

/* page: p36-returns */
.eo-rl-actions form {
    display: inline-block;
    margin-left: 4px;
}
.eo-rt-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
    align-items: start;
}

@media (min-width: 992px) {
    .eo-rt-detail {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

.eo-rt-detail .eo-dl dd .eo-cell-sub {
    display: block;
}
/* x-settings-card choice tiles: a few plain options side by side, one tap each (confirmation "order sharing") */
.eo-choice-tiles {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--eo-space-sm);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-choice-tile {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 12px 36px 12px 12px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg, var(--eo-radius));
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-choice-tile:hover {
    border-color: var(--eo-text-subtle);
}

/* the radio itself is drawn as a small ring in the corner */
.eo-choice-tile > input {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    margin: 0;
    background: var(--eo-surface);
    border: 1.5px solid var(--eo-text-subtle);
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    transition: border-color var(--eo-dur) var(--eo-ease), box-shadow var(--eo-dur) var(--eo-ease);
}

.eo-choice-tile > input:checked {
    border: 5px solid var(--eo-brand);
}

/* a tile that can be picked with others (the staff's stores) has a square tick box instead of the round ring */
.eo-choice-tile > input[type="checkbox"] {
    border-radius: var(--eo-radius-sm);
}

.eo-choice-tile > input[type="checkbox"]:checked {
    background: var(--eo-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
    border: 1.5px solid var(--eo-brand);
}

.eo-choice-tile > input:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

.eo-choice-tile:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-choice-tile__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.eo-choice-tile:has(input:checked) .eo-choice-tile__icon {
    color: var(--eo-brand);
    background: var(--eo-surface);
}

.eo-choice-tile__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-choice-tile__title {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-choice-tile__hint {
    font-size: var(--eo-fs-sm);
    line-height: 1.4;
    color: var(--eo-text-muted);
}

.eo-choice-tiles__error:empty {
    display: none;
}

.eo-choice-tiles__error {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 767.98px) {
    .eo-choice-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* shop settings: the font tiles, three to a line (two on a tablet, one on a phone), each with a Bangla line written in
   that font */
.sf-font-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* drawn like the product form's kind tiles (সাধারণ / কম্বো): the radio on the left, a thin border when picked */
.sf-font-tile {
    padding: 14px 16px 14px 44px;
}

.sf-font-tile:hover:not(:has(input:checked)) {
    border-color: var(--eo-border-strong);
}

.sf-font-tile > input {
    top: 16px;
    right: auto;
    left: 16px;
    width: 16px;
    height: 16px;
    border-color: var(--eo-border-strong);
}

.sf-font-tile:has(input:checked) {
    box-shadow: none;
}

.sf-font-tile__sample {
    overflow: hidden;
    color: var(--eo-text);
    font-size: 1.25rem;
    font-weight: var(--eo-fw-semibold);
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .sf-font-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* a phone: two to a line cut the sample to "আমার দো…", so each font gets the full width and shows its whole line */
@media (max-width: 474.98px) {
    .sf-font-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* shop settings page: the form, and beside it on wide screens a small copy of the shop that follows every change */
.sf-set {
    display: grid;
    gap: var(--eo-space-lg);
    align-items: start;
}

.sf-set__main {
    min-width: 0;
    container-type: inline-size;
}

/* below 1200px the preview is a side panel (x-side-panel, opened by "প্রিভিউ" in the head): its cards sit on the page grey,
   as they do beside the form, so they never read as a box in a box */
.sf-set__aside .eo-sidepanel__body {
    background: var(--eo-bg);
}

/* a phone: the panel leaves a strip of page on its left, so its own edge room shrinks to give the shop copy its width back;
   the head's two buttons (open the shop, how it will look) share one line half and half instead of stacking */
@media (max-width: 575.98px) {
    .sf-set__aside .eo-sidepanel__body {
        padding: var(--eo-space-md);
    }

    .eo-pagehead__actions:has(> .sf-set__top-btn) {
        flex-wrap: nowrap;
    }

    .eo-pagehead__actions > .sf-set__top-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding-right: var(--eo-space-sm);
        padding-left: var(--eo-space-sm);
        white-space: nowrap;
    }
}

/* "open my shop" stays on the title's line, at the right; on a narrow phone the title takes two lines instead */
.sf-set__aside .eo-card__head {
    flex-wrap: nowrap;
}

.sf-set__aside .eo-card__head > .eo-card__title {
    flex: 1 1 0;
    min-width: 0;
}

/* in the side panel the panel's own title and the page head's "open the shop" already say this, so the card's head
   goes and its body keeps full room on top; the column on wide screens brings it back */
.sf-set__preview-head {
    display: none;
}

.sf-set__preview > .sf-set__preview-head + .eo-card__body {
    padding-top: var(--eo-space-lg);
}

@media (min-width: 1200px) {
    .sf-set__preview-head {
        display: flex;
    }

    .sf-set__preview > .sf-set__preview-head + .eo-card__body {
        padding-top: 0;
    }

    .sf-set {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    /* wide screens: the side panel is a plain column beside the form (as the confirmation desk's history column) */
    .sf-set__aside.offcanvas {
        position: static;
        z-index: auto;
        align-self: stretch;
        width: auto;
        max-width: none;
        visibility: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        transition: none;
    }

    .sf-set__aside .eo-sidepanel__head {
        display: none;
    }

    .sf-set__aside .eo-sidepanel__body {
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    /* the preview card carries "open my shop" here and the preview is on screen, so the head's buttons step aside, and
       a head left with nothing in it steps out of the page like a bare one (.eo-pagehead--echo.is-bare) */
    .sf-set__top-btn {
        display: none;
    }

    .eo-pagehead--echo:not(:has(.eo-pagehead__help)):not(:has(> .eo-pagehead__actions > :not(.sf-set__top-btn))) {
        position: absolute;
        width: 1px;
        height: 1px;
        min-height: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }


    .sf-set__sticky {
        position: sticky;
        top: calc(var(--eo-topbar-h) + var(--eo-space-lg));
    }
}

/* the form's cards (and every settings page's cards) the order details page's way: the heading, a full-width hairline under it, then the fields with their
   own breathing room (as .eo-od-layout .eo-card__head) */
.sf-set__main .eo-panel > .eo-card__head,
.eo-setpage .eo-panel > .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.sf-set__main .eo-panel > .eo-card__head + .eo-card__body,
.eo-setpage .eo-panel > .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-base);
}

/* the pixel table right under that hairline: one line, not the hairline and the table's own top edge */
.sf-set__main .eo-panel > .eo-card__head + .eo-table-wrap,
.eo-setpage .eo-panel > .eo-card__head + .eo-table-wrap {
    border-top: 0;
}

/* a chat field (WhatsApp, Messenger): its "show on the shop" switch at the right end of the label line instead of a row
   under the box; the label keeps its own room on the left */
.sf-chat-field {
    position: relative;
    min-width: 0;
}

.sf-chat-field__switch {
    position: absolute;
    top: 0;
    right: 0;
}

.sf-chat-field__switch > .eo-field {
    gap: 0;
}

/* the switch alone, no words beside it (its name is on the input), so no room is kept for them */
.sf-chat-field__switch .eo-check {
    gap: 0;
}

.sf-chat-field__switch .eo-error:empty {
    display: none;
}

/* a second group of fields in the same card (the fonts under the logo row, the page links under the numbers) */
.sf-set__gap {
    margin-top: var(--eo-space-lg);
}

/* fields side by side by the width of the form column, not of the screen */
.sf-set__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
}

@container (min-width: 600px) {
    .sf-set__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* an upload box needs room for its line of text: beside another field only in a wide column */
@container (max-width: 819.98px) {
    .sf-set__grid--wide {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* logo, tab icon and colour dots in one row, each as wide as it needs; a narrow column wraps them */
.sf-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--eo-space-lg) var(--eo-space-2xl);
}

.sf-brand-row > * {
    min-width: 0;
}

/* the shop colour takes the rest of the row: a tile as tall as the logo's with every ready colour as a dot and its
   name, spread evenly over the tile; the last dot ("own colour", a colour wheel until used) opens the picker.
   The colour's code sits under the tile, on the line of the logo's file hint */
.sf-brand-row > .sf-colors-field {
    flex: 1 1 440px;
}

.sf-colors {
    display: grid;
    gap: var(--eo-space-xs);
}

.sf-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    align-content: center;
    gap: var(--eo-space-sm) 4px;
    min-height: 96px;
    padding: var(--eo-space-sm);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.sf-swatch {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    cursor: pointer;
}

.sf-swatch > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sf-swatch__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: transparent;
    border-radius: 50%;
    transition: box-shadow 0.15s ease;
}

.sf-swatch__dot svg {
    width: 16px;
    height: 16px;
}

.sf-swatch__name {
    font-size: var(--eo-fs-xs);
    line-height: 1.2;
    color: var(--eo-text-muted);
    white-space: nowrap;
}

.sf-swatch:hover .sf-swatch__dot {
    box-shadow: 0 0 0 2px var(--eo-surface-2), 0 0 0 4px var(--eo-border-strong);
}

.sf-swatch input:checked + .sf-swatch__dot {
    color: #FFFFFF;
    box-shadow: 0 0 0 2px var(--eo-surface-2), 0 0 0 4px var(--eo-text);
}

.sf-swatch input:checked ~ .sf-swatch__name {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.sf-swatch input:focus-visible + .sf-swatch__dot {
    box-shadow: 0 0 0 2px var(--eo-surface-2), 0 0 0 4px var(--eo-brand);
}

/* own colour: a colour wheel until a colour is picked, then that colour; the picker lies invisibly over the dot */
.sf-swatch--custom .sf-swatch__dot {
    background: conic-gradient(#EF4444, #F59E0B, #EAB308, #22C55E, #06B6D4, #3B82F6, #8B5CF6, #EC4899, #EF4444);
}

.sf-swatch__picker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    border: 0;
    opacity: 0;
    transform: translateX(-50%);
}

/* the code reads like the logo's file line: plain small text, the code itself an input with no frame until it is
   pointed at or typed in */
.sf-colors__foot {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-text-muted);
}

.sf-colors__code {
    width: 76px;
    height: auto;
    padding: 0 4px;
    font: inherit;
    font-weight: var(--eo-fw-semibold);
    text-transform: uppercase;
    color: var(--eo-text-2);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
}

.sf-colors__code:hover {
    border-color: var(--eo-border);
}

.sf-colors__code:focus {
    color: var(--eo-text);
    background: var(--eo-surface);
    border-color: var(--eo-brand);
    outline: 0;
}

/* logo and tab icon: the picture itself is the button. A tile holds it (wide for the logo, square for the icon),
   a pointer over it darkens it with "change", a small round badge marks it as changeable on a phone too */
.sf-pick {
    display: grid;
    justify-items: start;
    gap: var(--eo-space-xs);
}

/* the tab icon's tile takes the width of its line of allowed files, so no empty gap sits beside a narrow square and the line
   ends with its box; the icon stays centred in it */
.sf-pick__tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 96px;
    height: 96px;
    padding: var(--eo-space-sm);
    cursor: pointer;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: border-color 0.15s ease;
}

.sf-pick__tile--wide {
    width: 224px;
}

.sf-pick__tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sf-pick__tile [hidden] {
    display: none;
}

.sf-pick__blank {
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.sf-pick__blank svg {
    width: 22px;
    height: 22px;
}

.sf-pick__over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: #FFFFFF;
    background: rgba(15, 23, 42, 0.55);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sf-pick__over svg {
    width: 16px;
    height: 16px;
}

.sf-pick__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--eo-text-2);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: 50%;
}

.sf-pick__badge svg {
    width: 12px;
    height: 12px;
}

.sf-pick__tile:hover,
.sf-pick__tile:focus-within {
    border-color: var(--eo-brand);
}

.sf-pick__tile:hover .sf-pick__over,
.sf-pick__tile:focus-within .sf-pick__over {
    opacity: 1;
}

/* an empty tile already says "ছবি দিন", so the "পরিবর্তন করুন" cover shows only over a picture, never over those words */
.sf-pick__tile:has(> .sf-pick__blank:not([hidden])) > .sf-pick__over {
    display: none;
}

.sf-pick__tile:hover .sf-pick__badge,
.sf-pick__tile:focus-within .sf-pick__badge {
    opacity: 0;
}

.sf-pick__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sf-pick__hint {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* a narrow column (a phone): the font samples get a little smaller */
@container (max-width: 479.98px) {
    .sf-font-tile__sample {
        font-size: 1.05rem;
    }
}

@container (min-width: 900px) {
    .sf-set__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* the copy of the shop: a browser tab, the shop's own colour and font, two product cards, the dark footer */
.sfp {
    --sfp-ink: color-mix(in srgb, var(--sfp-brand) 20%, #0A0D0C);
    --sfp-bg: color-mix(in srgb, var(--sfp-brand) 2%, #F6F7F7);
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.sfp [hidden],
.sfp-google [hidden] {
    display: none !important;
}

.sfp svg {
    flex: none;
    width: 13px;
    height: 13px;
}

.sfp__tab {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.sfp__tab-icon {
    flex: none;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.sfp__tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfp__screen {
    position: relative;
    font-family: var(--sfp-font);
    font-size: 12px;
    line-height: 1.5;
    color: var(--sfp-ink);
    background: var(--sfp-bg);
}

.sfp__notice {
    margin: 0;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: #FFFFFF;
    background: var(--sfp-brand);
}

.sfp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sfp__logo {
    max-width: 120px;
    max-height: 28px;
    object-fit: contain;
}

/* the shop writes its name in plain dark letters (.sf-brand); the shop colour is kept for the title's last word and prices */
.sfp__name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--sfp-ink);
}

/* the head's product search (.sf-search): a box with its "খুঁজুন" button inside the right end, then "my orders" */
.sfp__search {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 2px 2px 2px 6px;
    color: var(--eo-text-subtle);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}

.sfp .sfp__search svg {
    width: 11px;
    height: 11px;
}

.sfp__search-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfp__search-go {
    flex: none;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--sfp-brand);
    border-radius: 4px;
}

.sfp__account {
    display: inline-flex;
    flex: none;
    color: var(--sfp-ink);
}

.sfp .sfp__account svg {
    width: 15px;
    height: 15px;
}

/* the parcel button, a soft square in the shop colour as on the shop (.sf-action--btn) */
.sfp__account--btn {
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--sfp-brand);
    background: color-mix(in srgb, var(--sfp-brand) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--sfp-brand) 22%, transparent);
    border-radius: 5px;
}

.sfp .sfp__account--btn svg {
    width: 13px;
    height: 13px;
}

/* the menu line under the head (.sf-nav): the links cut off where the copy ends */
.sfp__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 500;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sfp__nav-links {
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sfp__hero {
    padding: 18px 14px;
    text-align: center;
    background: radial-gradient(60% 70% at 10% 0%, color-mix(in srgb, var(--sfp-brand) 14%, transparent), transparent 70%), radial-gradient(50% 60% at 95% 100%, color-mix(in srgb, var(--sfp-brand) 9%, transparent), transparent 70%), var(--sfp-bg);
}

/* the shop name as a small chip over a Google title (.sf-eyebrow) */
.sfp__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--sfp-brand);
    background: #FFFFFF;
    border: 1px solid color-mix(in srgb, var(--sfp-brand) 25%, transparent);
    border-radius: var(--eo-radius);
}

.sfp__eyebrow svg {
    width: 11px;
    height: 11px;
}

.sfp__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.sfp__title span {
    color: var(--sfp-brand);
}

.sfp__text {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 11px;
    color: color-mix(in srgb, var(--sfp-ink) 70%, #FFFFFF);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sfp__text:empty {
    display: none;
}

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

.sfp__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-bottom: 8px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.sfp__img {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: color-mix(in srgb, var(--sfp-brand) 6%, #EEF0F0);
}

.sfp__card-name {
    padding: 0 8px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfp__price {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sfp-brand);
}

.sfp__price del {
    margin-left: 3px;
    font-size: 10px;
    font-weight: 400;
    color: var(--eo-text-subtle);
}

/* the red discount label (or the grey sold-out one) on the picture's corner, as on the shop's cards */
.sfp__label {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
    color: #FFFFFF;
    background: var(--eo-danger);
    border-radius: var(--eo-radius-sm);
}

.sfp__label--out {
    background: var(--sfp-ink);
}

.sfp__line {
    height: 8px;
    margin: 3px 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.sfp__line--short {
    width: 40%;
}

.sfp__card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 4px 8px 0;
    padding: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--sfp-brand);
    background: color-mix(in srgb, var(--sfp-brand) 10%, #FFFFFF);
    border-radius: 6px;
}

.sfp__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 10px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    background: var(--sfp-ink);
}

.sfp__foot strong {
    width: 100%;
    font-size: 12px;
    color: #FFFFFF;
}

.sfp__foot-phone,
.sfp__social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sfp__social {
    margin-left: auto;
}

.sfp__social-icon {
    display: inline-flex;
}

/* the round chat buttons sit over the cards, as on the shop */
.sfp__chats {
    position: absolute;
    right: 8px;
    bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sfp__chat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #FFFFFF;
    border-radius: 50%;
}

.sfp__chat svg {
    width: 15px;
    height: 15px;
}

.sfp__chat--whatsapp {
    background: #25D366;
}

.sfp__chat--messenger {
    background: #0084FF;
}

/* both chats on: the shop shows one round button in its own colour that opens the two (.sf-chat__btn--main) */
.sfp__chat--main {
    background: var(--sfp-brand);
}

.sfp .sfp__card-btn svg {
    width: 11px;
    height: 11px;
}

/* the shop as one result on Google: site line, blue title, two lines of description */
.sfp-google {
    display: grid;
    gap: 2px;
    font-family: Arial, 'Noto Sans Bengali', sans-serif;
}

.sfp-google__site {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    color: #4D5156;
}

.sfp-google__icon {
    flex: none;
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 50%;
}

.sfp-google__url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfp-google__title {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
    color: #1A0DAB;
}

.sfp-google__text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: #4D5156;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sfp-google__text:empty {
    display: none;
}

/* role form: which orders as three tiles, then one block per area with one switch for all of it */
.eo-rl-scopes {
    display: grid;
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.eo-rl-scope {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-height: 40px;
    margin: 0;
    padding: 6px 10px;
    font-size: var(--eo-fs-sm);
    line-height: 1.3;
    white-space: nowrap;
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-rl-scope:hover {
    border-color: var(--eo-text-subtle);
}

.eo-rl-scope input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-rl-scope > .svg-icon {
    flex-shrink: 0;
    color: var(--eo-text-muted);
}

.eo-rl-scope:has(input:checked) {
    color: var(--eo-brand);
    font-weight: var(--eo-fw-semibold);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-rl-scope:has(input:checked) > .svg-icon {
    color: var(--eo-brand);
}

.eo-rl-scope:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

.eo-rl-perms {
    overflow: hidden;
}

.eo-rl-tools {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: 10px var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-rl-tools__search {
    flex: 1 1 auto;
    max-width: 340px;
    margin: 0;
}

.eo-rl-tools__search .eo-control {
    width: 100%;
}

.eo-rl-tools__set {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.eo-rl-block + .eo-rl-block {
    border-top: 1px solid var(--eo-border);
}

.eo-rl-block__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-base);
    padding-right: var(--eo-space-lg);
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.eo-rl-block__head:hover {
    background: var(--eo-bg-hover);
}

.eo-rl-block__open {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 52px;
    padding: 0 0 0 var(--eo-space-lg);
    font: inherit;
    color: var(--eo-text);
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.eo-rl-block__open:focus-visible {
    outline: none;
    box-shadow: inset var(--eo-focus);
}

.eo-rl-block__chev {
    flex-shrink: 0;
    color: var(--eo-text-subtle);
    transition: transform var(--eo-dur) var(--eo-ease);
}

.eo-rl-block.is-open .eo-rl-block__chev {
    transform: rotate(90deg);
}

.eo-rl-block__title {
    min-width: 0;
    overflow: hidden;
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-rl-block__count {
    flex-shrink: 0;
    margin-left: auto;
    padding: 1px 8px;
    font-size: var(--eo-fs-sm);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-rl-block.is-on .eo-rl-block__count {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
}

.eo-rl-block__all {
    flex-shrink: 0;
}

.eo-rl-block__all > span:empty {
    display: none;
}

/* only some tasks of a block on: its switch stands half way */
.eo-switch input:indeterminate {
    background: var(--eo-brand);
    opacity: 0.55;
}

.eo-switch input:indeterminate::after {
    transform: translateX(7px);
}

.eo-rl-block__body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0 var(--eo-space-xl, 28px);
    padding: 0 var(--eo-space-lg) 12px calc(var(--eo-space-lg) + 26px);
}

.eo-rl-block__body[hidden] {
    display: none;
}

.eo-rl-perm {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-base);
    padding: 9px 0;
    border-top: 1px dashed var(--eo-border);
}

.eo-rl-perm[hidden] {
    display: none;
}

.eo-rl-perm input {
    margin-top: 0;
}

.eo-rl-perm > span {
    min-width: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-rl-perm:has(input:checked) > span {
    color: var(--eo-text);
}

.eo-rl-empty {
    margin: 0;
    padding: var(--eo-space-lg);
    text-align: center;
    color: var(--eo-text-muted);
}

@media (max-width: 575.98px) {
    .eo-rl-scopes {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-rl-tools {
        flex-wrap: wrap;
        padding: 10px var(--eo-space-base);
    }

    .eo-rl-tools__search {
        flex-basis: 100%;
        max-width: none;
    }

    .eo-rl-tools__set {
        width: 100%;
        margin-left: 0;
    }

    .eo-rl-tools__set .eo-btn {
        flex: 1 1 0;
    }

    .eo-rl-block__open {
        padding-left: var(--eo-space-base);
    }

    .eo-rl-block__head {
        padding-right: var(--eo-space-base);
    }

    .eo-rl-block__body {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 var(--eo-space-base) 8px calc(var(--eo-space-base) + 26px);
    }
}
/* end page: p36-returns */

/* page: p35-pickups */
.eo-pk-scan {
    margin: 0;
}

.eo-pk-clip {
    display: block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* end page: p35-pickups */

/* page: p32-vat-invoices */
.eo-vat-toolbar {
    align-items: center;
}

.eo-vat-toolbar__tools {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}
/* end page: p32-vat-invoices */

/* page: p33-affiliates */
.eo-aff-seg {
    align-self: flex-start;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: var(--eo-space-md);
}

.eo-aff-player {
    width: 100%;
}
/* end page: p33-affiliates */

/* page: p40-disputes */
.eo-dsp-sum {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-dsp-sum__row {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

.eo-dsp-sum__row--total {
    padding-top: var(--eo-space-sm);
    border-top: 1px solid var(--eo-border);
    font-weight: 600;
}
/* end page: p40-disputes */

/* page: p43-profile */
/* my profile: who I am on top (photo, name, phone and email, role); below, my details with the photo as a round
   preview and one button, the phone change and the password, each its own settings block */
.eo-profile__who {
    display: flex;
    align-items: center;
    gap: var(--eo-space-base);
    padding: var(--eo-space-lg);
}

.eo-profile__avatar {
    width: 64px;
    height: 64px;
    overflow: hidden;
    font-size: 26px;
}

.eo-profile__photo-img {
    position: relative;
}

.eo-profile__photo-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--eo-surface);
}

.eo-profile__who-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    min-width: 0;
}

.eo-profile__name {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-profile__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-2xs) var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-profile__facts > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eo-profile__facts .svg-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.eo-profile__role {
    flex: 0 0 auto;
    padding: 4px 12px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

/* the photo: a round preview, the button and its line beside it */
.eo-profile__photo {
    display: flex;
    align-items: center;
    gap: var(--eo-space-base);
}

.eo-profile__photo-img {
    width: 56px;
    height: 56px;
    overflow: hidden;
    font-size: 22px;
}

.eo-profile__photo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--eo-space-2xs);
    min-width: 0;
}

.eo-profile__photo-text .eo-btn {
    margin: 0;
}

.eo-profile__photo-text .eo-help {
    margin: 0;
}

.eo-profile__photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* the phone change's two steps are fieldsets with no frame of their own */
.eo-profile__step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-profile__code {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
}

.eo-profile__code .eo-field,
.eo-profile__code .eo-help {
    margin: 0;
}

/* the number in use: a locked box the height of the new number's box */
.eo-profile__current {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h);
    padding: 0 var(--eo-space-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-profile__current .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

/* each form here is short, so its save button just sits under the fields: no line above it, no pinned bar and no
   "more below" shade */
.eo-profile form .eo-form-actions,
.eo-profile form .eo-form-actions.is-stuck {
    position: static;
    padding: 0;
    background: none;
    border-top: 0;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .eo-profile__who {
        align-items: flex-start;
        gap: var(--eo-space-md);
        padding: var(--eo-space-base);
    }

    .eo-profile__avatar {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .eo-profile__name {
        font-size: var(--eo-fs-lg);
    }

    .eo-profile__facts {
        flex-direction: column;
    }
}
/* end page: p43-profile */

/* page: p38-stock-transfers */
.eo-xfer-toolbar {
    align-items: center;
}

.eo-xfer-route {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs);
}

.eo-xfer-route .svg-icon {
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
}

/* the from > to card on the detail page */
.eo-xfer-trip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--eo-space-base);
}

.eo-xfer-trip__end {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-xfer-trip__end--to {
    text-align: right;
}

.eo-xfer-trip__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-xfer-trip__name {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-xfer-trip__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: 50%;
}

.eo-xfer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-base);
    margin-top: var(--eo-space-base);
    padding-top: var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    border-top: 1px solid var(--eo-border);
}

.eo-xfer-meta strong {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

/* nightly summary: the history list as a calm list of days */

.eo-night-state {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-night-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border-radius: 50%;
}

.eo-night-state__icon.is-on {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
}

.eo-night-state__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-night-panel .eo-nightly {
    max-width: none;
}
/* end page: p38-stock-transfers */

/* page: p42-money-accounts */
/* a list row's name with a soft icon tile in front, like TimoDesk's project list */

/* the packing desk's idle hint steps aside once a scanned order opens */
.eo-scandesk:has([data-pack-form]:not([hidden])) .eo-packidle {
    display: none;
}

/* a phone: the product's name wraps instead of pushing the count past the right edge (:not(#eo-cards) lends the weight
   to beat the lead column's one-line rule) */
@media (max-width: 575.98px) {
    .eo-scandesk:not(#eo-cards) [data-pack-form] .eo-table > tbody > tr > td:first-child,
    .eo-scandesk:not(#eo-cards) [data-pack-form] .eo-table > tbody > tr > td:first-child .eo-strong {
        white-space: normal;
    }
}
/* end page: p42-money-accounts */

/* page: p50-delivery-problems */
.eo-dp-seg {
    align-self: flex-start;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: var(--eo-space-md);
}

.eo-dp-tools {
    display: flex;
    gap: var(--eo-space-xs);
    align-items: center;
}

/* end page: p50-delivery-problems */

/* page: p39-catalog-sync */
.eo-cs-narrow {
    max-width: 720px;
}

.eo-cs-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--eo-space-sm);
}

.eo-cs-problem {
    margin-top: var(--eo-space-2xs);
    color: var(--eo-danger);
}
/* end page: p39-catalog-sync */

/* page: p45-stock-counts */

.eo-p45-scan {
    padding: 0 var(--eo-space-md) var(--eo-space-md);
}

.eo-p45-qty {
    max-width: 120px;
    margin-left: auto;
}
.eo-p45-link {
    text-decoration: none;
}

.eo-p45-link:hover {
    color: var(--eo-brand);
}

/* end page: p45-stock-counts */

/* page: p51-locations */
/* notifications: one row design for the bell menu and the page (user/notifications/partials/item) */
/* the page: one full-width panel; a slim tinted day heading (আজ, গতকাল, date) sits between the groups of rows */
.eo-notice-day {
    margin: 0;
    padding: 6px var(--eo-space-base);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-bottom: 1px solid var(--eo-border);
}

.eo-panel .eo-notice-day:first-of-type {
    border-top: 0;
}

.eo-notice-list > form + form .eo-notice {
    border-top: 1px solid var(--eo-border);
}

.eo-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
    width: 100%;
    padding: var(--eo-space-md) var(--eo-space-base);
    font: inherit;
    text-align: left;
    color: var(--eo-text-2);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.eo-notice:hover {
    background: var(--eo-surface-2);
}

.eo-notice:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: -2px;
}

.eo-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--eo-text-muted);
    background: var(--eo-neutral-10);
    border-radius: var(--eo-radius);
}

.eo-notice__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.eo-notice__icon--warning {
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
}

.eo-notice__icon--danger {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

.eo-notice__text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

/* at most two lines; the page it opens has the rest */
.eo-notice__subject {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.eo-notice.is-unread .eo-notice__subject {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-notice__time {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-notice__dot {
    width: 8px;
    height: 8px;
    margin-top: 12px;
    flex-shrink: 0;
    background: var(--eo-brand);
    border-radius: 50%;
}

.eo-notice:not(.is-unread) .eo-notice__icon {
    opacity: 0.7;
}

/* the notifications page (owner, 18 Nov 2026): one card, the pills and "সব পড়া হয়েছে" in its head; the rows are the bell's,
   larger: a 40px icon, the message at the body size with the time under it, an arrow at the right end; an unread row is
   tinted green with a dot */
.eo-noticepage {
    overflow: hidden;
}

.eo-noticepage__head {
    border-bottom: 1px solid var(--eo-border);
}

/* nothing unread: the head's right end says so, quietly */
.eo-noticepage__done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-noticepage__done .svg-icon {
    width: 15px;
    height: 15px;
    color: var(--eo-success);
}

.eo-noticepage .eo-notice-day:first-of-type {
    border-top: 0;
}

.eo-notice--page {
    align-items: center;
    gap: var(--eo-space-base);
    padding: var(--eo-space-md) var(--eo-space-lg);
}

.eo-notice--page .eo-notice__icon {
    width: 40px;
    height: 40px;
}

.eo-notice--page .eo-notice__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-notice--page .eo-notice__subject {
    font-size: var(--eo-fs-base);
}

.eo-notice--page .eo-notice__time {
    font-size: var(--eo-fs-sm);
}

.eo-notice--page.is-unread {
    background: var(--eo-brand-10);
}

.eo-notice--page.is-unread:hover {
    background: color-mix(in srgb, var(--eo-brand) 14%, var(--eo-surface));
}

.eo-notice--page .eo-notice__dot {
    margin-top: 0;
}

.eo-notice__go {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--eo-text-subtle);
}

.eo-notice--page .eo-notice-day,
.eo-noticepage .eo-notice-day {
    padding: 8px var(--eo-space-lg);
}

@media (max-width: 575.98px) {
    .eo-notice--page,
    .eo-noticepage .eo-notice-day {
        padding-left: var(--eo-space-base);
        padding-right: var(--eo-space-base);
    }
}

.eo-p51-list {
    min-width: 0;
}

.eo-p51-list > .eo-toolbar:not(:has(+ .eo-table-wrap, + .eo-empty)) {
    margin-bottom: var(--eo-space-md);
}

.eo-p51-list > .eo-table-wrap + * {
    margin-top: var(--eo-space-md);
}
.eo-p51-list > .eo-empty {
    max-width: none;
    margin: 0;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-p51-list > .eo-toolbar + .eo-empty {
    border-top: 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* a phone shows the three numbers two a row: the cash in hand takes the whole second row, not half of it */
@media (max-width: 575.98px) {
    .eo-stats.eo-aic-month > .eo-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* end page: p51-locations */

/* page: p53-wallet */

.eo-wh-name__default {
    margin-left: var(--eo-space-xs);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}
/* end page: p53-wallet */

/* page: p49-cash-flow */

.eo-p49-tools {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-p49-note {
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* end page: p49-cash-flow */

/* restored: the phone lines list still uses these rows */
 
/* page: p48-batches */

.eo-p48-expiry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.eo-p48-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-p48-row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

.eo-p48-row:first-child {
    border-top: 0;
}

.eo-p48-row__text {
    flex: 1;
    min-width: 0;
}

.eo-p48-row__title {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
}

.eo-p48-row__help {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-p48-row__note {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.eo-p48-row__end {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-p48-stack {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

/* page: p52-payment-methods */
/* the payment methods page: the online and the send money methods as tables in cards the order page's way (x-panel, a
   hairline under the title); a ready method switches on and off on its line and its setup opens in a panel from the right.
   Only the logo carries the method's own colour */
/* the advance warning: its words, then the way to the checkout settings at the end of the line */
.pm-warn .eo-alert__body > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-base);
}

/* one card per kind with a table in it: the card's title sits right on the table, one hairline between, not the table's frame */
.pm-list > .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.pm-list .eo-table-wrap {
    border: 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* from tablet width both cards share one column grid, so their columns line up one under the other and the switch and
   the setup button stay inside the card (at 768px the one-line "where the money goes" pushed them out); a long account
   wraps in its cell. Below 1024px the name still ends in "…" (the shared lead-column rule); a phone shows cards */
@media (min-width: 576px) {
    .pm-list .eo-table {
        table-layout: fixed;
    }

    .pm-list:not(#eo-cards) .eo-table td {
        white-space: normal;
    }

    .pm-list .eo-table th:nth-child(1) { width: 30%; }
    .pm-list .eo-table th:nth-child(2) { width: 26%; }
    .pm-list .eo-table th:nth-child(3) { width: 18%; }
    .pm-list .eo-table th:nth-child(4) { width: 26%; }

    /* a long name ("SSLCommerz (কার্ড ও মোবাইল ব্যাংকিং)") breaks onto a second line beside its logo instead of running under the next column */
    .pm-list__name > .eo-cell-main,
    .pm-list .eo-table td {
        overflow-wrap: anywhere;
    }

    .pm-list__name > .eo-cell-main {
        min-width: 0;
        white-space: normal;
    }
}

.pm-list__name {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.pm-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 46px;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-bold);
    letter-spacing: -0.02em;
    color: var(--eo-on-brand);
    background: var(--pm-c);
    border-radius: var(--eo-radius-lg);
}

/* smaller in the table row than in the setup panel's head */
.pm-list .pm-logo {
    width: 56px;
    height: 36px;
}

/* on a phone the name column is held narrow, so the logo shrinks and the name keeps the room */
@media (max-width: 767.98px) {
    .pm-list .pm-logo,
    .pm-list .pm-skel__logo {
        width: 40px;
        height: 28px;
        border-radius: var(--eo-radius);
    }

    .pm-list .pm-logo--img {
        padding: 3px;
    }
}

/* a real logo: on a white card with a fine border, the logo whole inside it */
.pm-logo--img {
    padding: 6px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    box-shadow: none;
}

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

/* a logo that is a whole tile itself (Rocket's purple square): it fills the box edge to edge */
.pm-logo--fill {
    overflow: hidden;
    padding: 0;
}

.pm-logo--fill img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* the first-load rows (partials/methods_skeleton): the logo block, the name and the button at their real sizes */
.pm-skel__logo {
    flex: 0 0 auto;
    width: 56px;
    height: 36px;
    border-radius: var(--eo-radius-lg);
}

.pm-skel__text {
    width: 140px;
    max-width: 100%;
}

.pm-skel__btn {
    display: inline-block;
    width: 96px;
    height: 32px;
}

.pm-toggle {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}

.pm-toggle .eo-check {
    margin: 0;
}

/* the status (a dot and a word, as the other lists) with the test tag beside it; the switch and setup button at the end */
.pm-list__status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.pm-list__test {
    font-size: var(--eo-fs-xs);
    color: var(--eo-warning-strong);
}

.pm-list__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--eo-space-md);
}

/* the where-to-get-the-keys note in the setup panel: two short paragraphs */
.pm-panel__guide {
    margin: 0;
    font-size: var(--eo-fs-sm);
}

.pm-panel__guide + .pm-panel__guide {
    margin-top: var(--eo-space-xs);
}

/* the setup panel: the method's mark on top, the fields one under another, the switches in small boxes */
.pm-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
}

.pm-panel__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
}

.pm-panel__body .eo-field {
    margin: 0;
}

.pm-panel__hero {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.pm-panel__kind {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.pm-panel__switch {
    padding: var(--eo-space-sm) var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pm-panel__tested {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* end page: p52-payment-methods */

/* page: p47-activity */

/* a date column elsewhere (partner payouts) borrows this muted one-line look */
.eo-act-when {
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* the activity table (owner, 17 Nov 2026): what was done with what changed under it in small grey lines, what it
   touched, and the day over the time on the right */
.eo-act-table .eo-act-did .eo-cell-main,
.eo-act-table .eo-act-on .eo-cell-main {
    white-space: normal;
}

.eo-act-table .eo-act-did > .eo-log-changes {
    margin-top: 2px;
    color: var(--eo-text-muted);
    font-size: var(--eo-fs-xs);
}

.eo-act-table .eo-act-on {
    max-width: 320px;
}

.eo-act-table tr > th:last-child,
.eo-act-table td.eo-act-when {
    text-align: right;
}

.eo-act-table td.eo-act-when {
    white-space: nowrap;
}

.eo-table td.eo-act-when {
    text-align: right;
}

.eo-p47-seg--top {
    align-self: flex-start;
    margin-bottom: var(--eo-space-md);
}

.eo-p47-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--eo-space-xs);
}
/* end page: p47-activity */

/* page: review-4 */
/* long variant names wrap so every return column fits without side scroll */
.eo-rt-items .eo-cell-main {
    white-space: normal;
}
/* shop link preview reads as a small hint under the field */
.eo-slug-preview {
    margin: var(--eo-space-2xs) 0 0;
    font-size: var(--eo-fs-sm);
}
/* end page: review-4 */

/* page: review-7 */
.eo-table__actions > .eo-row {
    flex-wrap: nowrap;
}

/* page: review-8 */
/* a list of amounts reads like a statement: label left, money right on a fine line */
.eo-dl--amounts {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0;
}

.eo-dl--amounts dt,
.eo-dl--amounts dd {
    padding: var(--eo-space-sm) 0;
    border-bottom: 1px solid var(--eo-border);
}

.eo-dl--amounts dd {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.eo-dl--amounts dt:nth-last-of-type(1),
.eo-dl--amounts dd:last-of-type {
    border-bottom: 0;
}

/* ============================================================
   STOCK TIMELINE (side panel on the product list and product page)
   ============================================================ */
.eo-stl {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

/* the body scrolls, so its parts keep their own height instead of being squeezed to fit */
.eo-stl > * {
    flex-shrink: 0;
}

/* where the stock is now: six small figures in a fine grid */
.eo-stl__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-stl__stat {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    padding: var(--eo-space-md) var(--eo-space-base);
    border-right: 1px solid var(--eo-border);
    border-bottom: 1px solid var(--eo-border);
}

.eo-stl__stat:nth-child(3n) {
    border-right: 0;
}

.eo-stl__stat:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.eo-stl__stat-label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-stl__stat-value {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    font-variant-numeric: tabular-nums;
}

.eo-stl__stat--danger .eo-stl__stat-value {
    color: var(--eo-danger-strong);
}

.eo-stl__unit {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-stl__totals {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs) var(--eo-space-xl);
    margin: calc(var(--eo-space-sm) * -1) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* the group tabs fill the panel's width on one line, never wider; a label with no room ends in "…" (a long group picked under আরও) */
.eo-stl {
    overflow-x: hidden;
}

.eo-stl .eo-segment {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.eo-stl .eo-segment__item {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0 var(--eo-space-sm);
}

.eo-stl .eo-segment__item > span:not(.eo-count) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-stl .eo-segment__item > .eo-count,
.eo-stl .eo-segment__item > .svg-icon {
    flex-shrink: 0;
}

.eo-stl .eo-segment__more {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.eo-stl .eo-segment__more > .eo-segment__item {
    width: 100%;
}

/* a phone has no room for four tabs on one line ("স…", "স্ট…"): two by two, each label whole */
@media (max-width: 575.98px) {
    .eo-stl .eo-segment {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* the stock history and stock value panels carry the product's name as their title: a long name stays within two lines
   of the head instead of running out of it */
[data-timeline-panel] .eo-sidepanel__title,
[data-stock-value-panel] .eo-sidepanel__title {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 575.98px) {
    [data-timeline-panel] .eo-sidepanel__title,
    [data-stock-value-panel] .eo-sidepanel__title {
        font-size: var(--eo-fs-md);
    }
}

.eo-stl__qty--in {
    color: var(--eo-success-strong);
}

.eo-stl__qty--out {
    color: var(--eo-danger-strong);
}

/* the moves: a line down the left, a colored dot per move, a day heading where the date changes */
.eo-stl__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-stl__day {
    padding: var(--eo-space-base) 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-stl__day:first-child {
    padding-top: 0;
}

.eo-stl__day strong {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-stl__item {
    --eo-stl-dot: var(--eo-neutral);
    position: relative;
    padding: 0 0 var(--eo-space-base) var(--eo-space-xl);
    border-left: 1px solid var(--eo-border);
    margin-left: 5px;
}

.eo-stl__item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -6px;
    width: 11px;
    height: 11px;
    background: var(--eo-stl-dot);
    border: 2px solid var(--eo-surface);
    border-radius: 50%;
}

.eo-stl__item--success { --eo-stl-dot: var(--eo-success); }
.eo-stl__item--warning { --eo-stl-dot: var(--eo-warning); }
.eo-stl__item--danger { --eo-stl-dot: var(--eo-danger); }

.eo-stl__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-base);
}

.eo-stl__what {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-stl__qty {
    flex-shrink: 0;
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eo-stl__flow {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.eo-stl__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--eo-space-sm);
    margin-top: var(--eo-space-2xs);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-stl__meta > * + *::before {
    content: "·";
    margin-right: var(--eo-space-sm);
    color: var(--eo-text-subtle);
}

/* the stock history skeleton: grey bars sized like the words they stand in for */
.eo-stl-skel__total { display: inline-block; width: 120px; }
.eo-stl-skel__tab { display: inline-block; width: 64px; background: var(--eo-border); }
.eo-stl-skel__day { display: inline-block; width: 140px; }
.eo-stl-skel__what { width: 90px; height: 16px; }
.eo-stl-skel__qty { width: 64px; height: 16px; }
.eo-stl-skel__meta { width: 180px; }
.eo-stl-skel__item { --eo-stl-dot: var(--eo-border-strong); }
.eo-stl__stat .eo-skel--title { height: 22px; }

.eo-stl__none {
    padding: var(--eo-space-base) 0;
}

.eo-stl__more {
    padding-top: var(--eo-space-sm);
    text-align: center;
}

@media (max-width: 575.98px) {
    .eo-stl__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-stl__stat:nth-child(3n) {
        border-right: 1px solid var(--eo-border);
    }

    .eo-stl__stat:nth-child(2n) {
        border-right: 0;
    }

    .eo-stl__stat:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--eo-border);
    }

    .eo-stl__stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

/* product list: a small colored dot before the stock figure, the same colors as the স্টক কম / স্টক শেষ tabs */
.eo-stockqty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--eo-fw-medium);
}

.eo-stockqty::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--eo-success);
}

.eo-stockqty--warning::before {
    background: var(--eo-warning);
}

.eo-stockqty--danger {
    color: var(--eo-danger-strong);
}

.eo-stockqty--danger::before {
    background: var(--eo-danger);
}

/* product list photo: a little bigger than other name cells, since the photo is how a seller spots the product */
.eo-namecell .eo-prodthumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--eo-radius-sm);
}

/* page: product wizard */
/* "নতুন প্রোডাক্ট" step by step (YouTube upload style): steps in the header, fields on the left, a live preview card on the right */
.pw-dialog {
    max-width: 880px;
}

.pw {
    overflow: hidden;
    border: 0;
    border-radius: var(--eo-radius-xl);
}

.pw__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--eo-space-lg);
    padding: 14px var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.pw__title {
    margin: 0;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

.pw__close {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    background: none;
    border: 0;
    border-radius: var(--eo-radius);
}

.pw__close:hover {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

/* the steps: a small number and its name in one line, joined by a short rule */
.pw__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--eo-space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pw__step {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

.pw__step:not(:last-child)::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--eo-border-strong);
}

.pw__step.is-done:not(:last-child)::after {
    background: var(--eo-brand);
}

.pw__step-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 6px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-subtle);
    background: none;
    border: 0;
    border-radius: var(--eo-radius-sm);
}

.pw__step-btn:not(:disabled):hover {
    background: var(--eo-bg-hover);
}

.pw__step-btn:disabled {
    cursor: default;
}

/* the step's word sits 0.15em lower so its Bangla ink is level with the circle and the joining lines */
.pw__step-label {
    position: relative;
    top: 0.15em;
}

.pw__step-num {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: var(--eo-fw-semibold);
    line-height: 1;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.pw__step-num .svg-icon {
    display: none;
    width: 12px;
    height: 12px;
}

.pw__step-label {
    white-space: nowrap;
}

.pw__step.is-current .pw__step-btn {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.pw__step.is-current .pw__step-num {
    color: #fff;
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

.pw__step.is-done .pw__step-btn {
    color: var(--eo-text-muted);
}

.pw__step.is-done .pw__step-num {
    color: var(--eo-brand);
    border-color: var(--eo-brand);
}

.pw__step.is-done .pw__step-num > span {
    display: none;
}

.pw__step.is-done .pw__step-num .svg-icon {
    display: block;
}

.pw__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
}

.pw__body {
    max-height: calc(100vh - 220px);
    padding: var(--eo-space-lg) var(--eo-space-xl);
    overflow-y: auto;
}

.pw__pane-text {
    margin: 0 0 var(--eo-space-base);
    color: var(--eo-text-muted);
}

.pw__stack {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
}

.pw__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-base);
    margin-bottom: var(--eo-space-base);
}

.pw__pane .eo-field {
    margin: 0;
}

/* step 4's one note: everything here is optional, saving now is fine */
.pw__note {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
    margin-bottom: var(--eo-space-lg);
    padding: 12px 14px;
    background: var(--eo-brand-10);
    border: 1px solid color-mix(in srgb, var(--eo-brand) 22%, transparent);
    border-radius: var(--eo-radius-lg);
}

.pw__note-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--eo-brand);
    background: var(--eo-surface);
    border-radius: 50%;
}

.pw__note-icon .svg-icon {
    width: 16px;
    height: 16px;
}

.pw__note-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-text-muted);
}

.pw__note-text strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* step 3 asks one plain question above its two answers */
.pw__question {
    margin: 0 0 4px;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
}

/* step 3: two plain choice cards */
.pw__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-md);
}

.pw__choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.pw__choice:hover {
    border-color: var(--eo-border-strong);
}

/* the radio dot, drawn so it matches the brand */
.pw__choice input {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid var(--eo-border-strong);
    border-radius: 50%;
    appearance: none;
}

.pw__choice input:checked {
    border: 5px solid var(--eo-brand);
}

.pw__choice:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.pw__choice:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

/* a choice the shop cannot take yet (a combo with fewer than 2 products): greyed, its hint says what it needs */
.pw__choice.is-disabled {
    cursor: not-allowed;
    background: var(--eo-surface-2);
}

.pw__choice.is-disabled:hover {
    border-color: var(--eo-border);
}

.pw__choice.is-disabled .pw__choice-title {
    color: var(--eo-text-muted);
}

.pw__choice.is-disabled input {
    background: var(--eo-surface-2);
}

.pw__choice-title {
    font-weight: var(--eo-fw-semibold);
}

.pw__choice-hint {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pw__options {
    margin-top: var(--eo-space-lg);
}

/* the variations as a small table: labels once on top, rows with clear room between them */
.pw__option-head,
.pw__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 32px;
    gap: var(--eo-space-md);
}

.pw__option-head {
    margin-bottom: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.pw__option {
    align-items: start;
}

.pw__option + .pw__option {
    margin-top: var(--eo-space-md);
}

.pw__option .eo-error:empty {
    display: none;
}

.pw__option-hint {
    margin: var(--eo-space-sm) 0 var(--eo-space-md);
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pw__option-remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: var(--eo-control-h);
    padding: 0;
    color: var(--eo-text-subtle);
    background: none;
    border: 0;
    border-radius: var(--eo-radius);
}

.pw__option-remove:hover {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

.pw__option-remove .svg-icon {
    width: 16px;
    height: 16px;
}

.pw__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: none;
    border: 0;
}

.pw__link .svg-icon {
    width: 15px;
    height: 15px;
}

.pw__link:hover {
    text-decoration: underline;
}

.pw__combos {
    margin-top: var(--eo-space-base);
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.pw__combo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--eo-fs-sm-plus);
}

.pw__combo-table th {
    padding: 7px 10px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    text-align: left;
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.pw__combo-table td {
    padding: 4px 10px;
    border-bottom: 1px solid var(--eo-bg-hover);
}

.pw__combo-table tr:last-child td {
    border-bottom: 0;
}

.pw__combo-table .eo-control {
    width: 100%;
    max-width: none;
    height: 32px;
    padding: 0 10px;
    font-size: var(--eo-fs-sm-plus);
}

.pw__combo-table th:first-child,
.pw__combo-table td:first-child {
    width: 34%;
}

/* the "সবগুলোতে" row: a light green band under the heads */
.pw__fill td {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-bottom: 1px solid var(--eo-border);
}

.pw__fill-qty {
    display: flex;
    gap: 6px;
}

.pw__fill-qty .eo-btn {
    flex-shrink: 0;
    height: 32px;
}

.pw__combo-name {
    font-weight: var(--eo-fw-medium);
}

.pw__stores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--eo-space-sm);
}

/* a store as a small card: letter tile, name, and a tick in the corner when it is chosen */
.pw__store {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.pw__store:hover {
    border-color: var(--eo-border-strong);
}

.pw__store input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pw__store:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

.pw__store-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.pw__store-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-weight: var(--eo-fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw__store-tick {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: transparent;
    border: 1.5px solid var(--eo-border-strong);
    border-radius: 50%;
}

.pw__store-tick .svg-icon {
    width: 12px;
    height: 12px;
}

.pw__store:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.pw__store:has(input:checked) .pw__store-mark {
    color: #fff;
    background: var(--eo-brand);
}

.pw__store:has(input:checked) .pw__store-tick {
    color: #fff;
    background: var(--eo-brand);
    border-color: var(--eo-brand);
}

/* the live preview: the product as a card, on a quiet grey side */
.pw__preview {
    padding: var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-left: 1px solid var(--eo-border);
}

.pw__preview-label {
    margin: 0 0 var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    letter-spacing: 0.02em;
    color: var(--eo-text-subtle);
}

.pw__card {
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.pw__card-img {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: var(--eo-border-strong);
    background: var(--eo-bg-hover);
}

.pw__card-img .svg-icon {
    width: 36px;
    height: 36px;
}

/* step 1: a wide drop area for the photo; with a photo it shows a thumbnail and the file name */
.pw__drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    margin: 0;
    padding: 14px 16px;
    background: var(--eo-surface-2);
    border: 1.5px dashed var(--eo-border-strong);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.pw__drop:hover,
.pw__drop:focus-within {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.pw__drop.has-photo {
    background: var(--eo-surface);
    border-style: solid;
    border-color: var(--eo-border);
}

.pw__drop input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.pw__drop-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--eo-brand);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pw__drop-icon .svg-icon {
    width: 22px;
    height: 22px;
}

.pw__drop-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--eo-radius);
}

.pw__drop-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pw__drop-title {
    overflow: hidden;
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw__drop-hint {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pw__drop-action {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pw__card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw__card-body {
    padding: 12px 14px 14px;
}

.pw__card-name {
    margin: 0;
    overflow: hidden;
    font-weight: var(--eo-fw-semibold);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw__card-name.is-empty {
    color: var(--eo-text-subtle);
}

.pw__card-cat {
    min-height: 18px;
    margin: 2px 0 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pw__card-price {
    margin: 8px 0 10px;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
}

.pw__card-facts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--eo-border);
}

.pw__card-facts > div {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
}

.pw__card-facts dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.pw__card-facts dd {
    margin: 0;
    font-weight: var(--eo-fw-medium);
}

.pw__foot {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.pw__foot-gap {
    flex: 1 1 auto;
}

.pw__foot .eo-btn--primary {
    min-width: 132px;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .pw__step-label {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .pw__head {
        grid-template-columns: 1fr auto;
    }

    .pw__steps {
        grid-column: 1 / -1;
        grid-row: 2;
    }

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

    .pw__preview {
        display: none;
    }

    .pw__pair,
    .pw__choices,
    .pw__option {
        grid-template-columns: minmax(0, 1fr);
    }

    .pw__body {
        padding: var(--eo-space-base);
    }

    /* the variation rows stay a small table under their two labels ("ভ্যারিয়েশনের নাম", "কী কী আছে") instead of stacking
       under a head that still shows two columns */
    .pw__option-head,
    .pw__options .pw__option {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) 32px;
        gap: var(--eo-space-sm);
    }

    /* "আগের ধাপ", "ক্যানসেল" and the next step on one line of a phone: the back button keeps only its arrow */
    .pw__foot {
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .pw__foot .eo-btn--primary {
        min-width: 0;
    }

    .pw__back {
        width: var(--eo-control-h);
        padding: 0;
        justify-content: center;
    }

    .pw__back-text {
        display: none;
    }
}
/* step 2: two small groups, "দাম" and "স্টক", each under a quiet title */
/* every group after the first, even with a hidden note between them (price, then stock): one line and the same air */
.pw__group ~ .pw__group {
    margin-top: var(--eo-space-lg);
    padding-top: var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.pw__group-title {
    margin: 0 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

.pw__group .pw__pair {
    margin-bottom: 0;
}

/* numbers read from the left in the popup, like every column */
.pw .eo-control--num,
.pw__qty .eo-control {
    text-align: left;
}

/* the count and its unit in one box, on the shared input group: the unit list sits at the end like the ৳ sign at the start */
/* a grid, not flex: the count takes the rest of the box and the unit list (or unit word) stays small at the end */
.eo-input-group.pw__qty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
}

.eo-input-group.pw__qty > .eo-control,
.eo-input-group.pw__qty > .eo-input-group__addon {
    width: 100%;
    min-width: 0;
}

.eo-input-group.pw__qty > .eo-input-group__addon {
    justify-content: center;
}

.eo-input-group.pw__qty > select.eo-control {
    background-color: var(--eo-bg);
    border-left: 0;
}

/* a thin scrollbar inside the popup, not the browser's thick one */
.pw__body {
    scrollbar-width: thin;
    scrollbar-color: var(--eo-border-strong) transparent;
}

.pw__body::-webkit-scrollbar {
    width: 6px;
}

.pw__body::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
    border-radius: var(--eo-radius);
}

.pw__body::-webkit-scrollbar-track {
    background: transparent;
}

/* edit: a product with variations changes each price in the variations tab */
.pw__edit-note {
    margin: var(--eo-space-base) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pw__edit-note:empty,
.pw__edit-note:has(> [hidden]:only-child) {
    display: none;
}

/* edit: the variations table: name, price, stock (read only), on / off */
.pw__combo-table--edit th:first-child,
.pw__combo-table--edit td:first-child {
    width: 36%;
}

.pw__combo-table--edit th:last-child,
.pw__combo-table--edit td:last-child {
    width: 72px;
    text-align: right;
}

.pw__combo-stock {
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-muted);
}

.pw__row-switch {
    display: inline-flex;
    justify-content: flex-end;
    margin: 0;
}

/* a new variation row: one small box per variation name */
.pw__new-row td {
    background: var(--eo-brand-10);
}

.pw__new-parts {
    display: flex;
    gap: 6px;
}

.pw__new-parts .eo-control {
    min-width: 0;
}

.pw__edit-add {
    margin-top: var(--eo-space-md);
}

/* edit: the rare settings live in the full form */
.pw__more-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: var(--eo-space-sm) 0 0;
    padding-top: var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    border-top: 1px solid var(--eo-border);
}

.pw__more-link .svg-icon {
    width: 15px;
    height: 15px;
}

.pw__more-link a,
.pw__note a {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
}

/* combo pack: the kind cards on top of step 1 */
.pw__kind {
    margin-bottom: var(--eo-space-lg);
}

/* combo pack: find a product by name or code */
.pw__search {
    position: relative;
    margin-top: var(--eo-space-base);
}

.pw__search > .svg-icon {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.pw__search > .eo-control {
    width: 100%;
    max-width: none;
    padding-left: 34px;
}

.pw__search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: var(--eo-z-popover);
    max-height: 240px;
    padding: 4px;
    overflow-y: auto;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
}

.pw__search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    width: 100%;
    padding: 7px 10px;
    font-size: var(--eo-fs-sm-plus);
    text-align: left;
    color: var(--eo-text);
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius);
}

.pw__search-item:hover,
.pw__search-item:focus-visible {
    background: var(--eo-bg-hover);
}

.pw__search-item.is-taken {
    opacity: 0.5;
    cursor: default;
}

.pw__search-name {
    min-width: 0;
    overflow: hidden;
    font-weight: var(--eo-fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pw__search-meta,
.pw__search-empty {
    flex-shrink: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pw__search-empty {
    margin: 0;
    padding: 8px 10px;
}

/* combo pack: the parts table: product, how many in one pack, stock, remove */
.pw__combo-table--parts th:first-child,
.pw__combo-table--parts td:first-child {
    width: auto;
}

.pw__combo-table--parts th:nth-child(2),
.pw__combo-table--parts td:nth-child(2) {
    width: 150px;
}

.pw__combo-table--parts th:nth-child(3),
.pw__combo-table--parts td:nth-child(3) {
    width: 96px;
}

.pw__combo-table--parts th:last-child,
.pw__combo-table--parts td:last-child {
    width: 40px;
    text-align: right;
}

.pw__combo-table--parts .eo-input-group.pw__qty {
    grid-template-columns: minmax(0, 1fr) 56px;
}

.pw__combo-table--parts .eo-input-group__addon {
    height: 32px;
    font-size: var(--eo-fs-sm);
}

.pw__part-sku {
    display: block;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pw__part-sku:empty {
    display: none;
}

.pw__combo-table--parts td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.pw__combo-table--parts .pw__combo-name {
    display: block;
}

/* a part's variation: one small box under its name, sized to its words; "যেকোনো" reads quieter */
.pw__combo-table .pw__part-variant {
    display: block;
    width: auto;
    max-width: 100%;
    height: 26px;
    margin-top: 5px;
    padding: 0 26px 0 8px;
    font-size: var(--eo-fs-sm);
    background-position: right 6px center;
    background-size: 12px;
}

.pw__combo-table .pw__part-variant[hidden] {
    display: none;
}

.pw__combo-table .pw__part-variant.is-any {
    color: var(--eo-text-muted);
    border-style: dashed;
}

.pw__combo-hint {
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* step 4's "Daraz-এও তুলুন": one card, its fields open under the tick */
.pw__daraz {
    padding: 12px 14px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.pw__daraz.is-on {
    border-color: color-mix(in srgb, var(--eo-brand) 40%, transparent);
}

.pw__daraz-body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    margin-top: var(--eo-space-md);
    padding-top: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

.pw__daraz-body .pw__pair {
    margin-bottom: 0;
}

.pw__daraz-blocked {
    margin: var(--eo-space-sm) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-warning, var(--eo-text-muted));
}

.pw__daraz-results {
    max-height: 180px;
    margin: 6px 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.pw__daraz-results:empty {
    display: none;
}

.pw__daraz-results li + li {
    border-top: 1px solid var(--eo-border);
}

.pw__daraz-results button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    font-size: var(--eo-fs-sm);
    text-align: left;
    color: var(--eo-text);
    background: none;
    border: 0;
    cursor: pointer;
}

.pw__daraz-results button:hover,
.pw__daraz-results button:focus-visible {
    background: var(--eo-brand-10);
}

.pw__daraz-results .is-note {
    padding: 7px 10px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pw__daraz-chosen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: 7px 10px;
    font-size: var(--eo-fs-sm);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.pw__daraz-size {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.pw__daraz-fields:empty {
    display: none;
}

.pw__daraz-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-base);
}

@media (max-width: 767.98px) {
    .pw__daraz-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* end page: product wizard */

/* page: product details (TimoDesk member page: one head card with the key facts, stock first, then sales, side cards) */
.pd-head {
    margin-bottom: 0;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.pd-head__top {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.pd-head__back:hover {
    color: var(--eo-text);
    background: var(--eo-bg-hover);
}

.pd-head__back .svg-icon {
    width: 18px;
    height: 18px;
}

.pd-head__photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    overflow: hidden;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.pd-head__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-head__id {
    flex: 1;
    min-width: 0;
}

.pd-head__title {
    margin: 0;
    overflow: hidden;
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 2px 0 0;
    padding: 0;
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-muted);
    list-style: none;
}

.pd-head__meta li + li::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 9px;
    vertical-align: middle;
    background: var(--eo-text-subtle);
    border-radius: 50%;
}

/* the ⋮ beside the head's buttons is a full-size button like them, not a small row icon */
.pd-head__actions .eo-action-menu > .eo-btn {
    width: var(--eo-control-h);
    height: var(--eo-control-h);
    color: var(--eo-text-2);
    border-radius: var(--eo-radius);
}

.pd-head__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--eo-space-sm);
}

/* a head menu left with one red action (cancel, void) shows as that button: it keeps a button's frame like the head's
   other buttons, so it does not float as loose red words in the card's corner */
.pd-head__actions .eo-single-action > .eo-btn--danger-ghost {
    background: var(--eo-surface);
    border-color: var(--eo-border);
}

.pd-head__actions .eo-single-action > .eo-btn--danger-ghost:hover {
    background: var(--eo-danger-10);
    border-color: var(--eo-danger-25);
}

.pd-head__actions .eo-single-action > .eo-btn > .svg-icon {
    transform: none;
}

/* the key facts: one row under a fine line, split by thin dividers */
.pd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0;
    border-top: 1px solid var(--eo-border);
}

.pd-fact {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: var(--eo-space-md);
    align-content: start;
    min-width: 0;
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.pd-fact > :not(.pd-fact__icon) {
    grid-column: 2;
}

/* the icon sits in the middle of the label and the number, which are the same height in every fact,
   so the four icons stay on one line however long a third line runs */
.pd-fact__icon {
    display: inline-flex;
    grid-row: 1 / span 2;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.pd-fact__icon .svg-icon {
    width: 20px;
    height: 20px;
}

.pd-fact.is-warning .pd-fact__icon { color: var(--eo-warning-strong); background: var(--eo-warning-10); }
.pd-fact.is-danger .pd-fact__icon { color: var(--eo-danger-strong); background: var(--eo-danger-10); }

/* the icon alone in a status colour (money in green, out red, today's note blue, a plain total grey); the figure stays ink */
.pd-fact__icon.is-success { color: var(--eo-success-strong); background: var(--eo-success-10); }
.pd-fact__icon.is-danger { color: var(--eo-danger-strong); background: var(--eo-danger-10); }
.pd-fact__icon.is-info { color: var(--eo-info-strong); background: var(--eo-info-10); }
.pd-fact__icon.is-warning { color: var(--eo-warning-strong); background: var(--eo-warning-10); }
.pd-fact__icon.is-neutral { color: var(--eo-text-muted); background: var(--eo-bg-hover); }

.pd-fact + .pd-fact {
    border-left: 1px solid var(--eo-border);
}

.pd-fact dt {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.pd-fact dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 2px 0 0;
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.35;
    color: var(--eo-text);
}

.pd-fact dd .eo-trend {
    font-size: var(--eo-fs-sm);
}

.pd-fact p {
    margin: 2px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pd-fact.is-warning p { color: var(--eo-warning-strong); }
.pd-fact.is-danger dd,
.pd-fact.is-danger p { color: var(--eo-danger-strong); }

/* the "bring more" line: which ones, how many, and the button */
.pd-alert {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    margin-bottom: 0;
    padding: 10px var(--eo-space-base);
    font-size: var(--eo-fs-sm-plus);
    color: var(--eo-text-2);
    background: var(--eo-warning-10);
    border: 1px solid var(--eo-warning-25);
    border-radius: var(--eo-radius-lg);
}

.pd-alert > .svg-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--eo-warning-strong);
}

.pd-alert > span {
    flex: 1;
}

/* one gap everywhere on this page: the same 20px the page puts between its blocks */
.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--eo-space-lg);
    align-items: start;
}

/* set by the script only when the side column fits on the screen */
.pd-side.is-sticky {
    position: sticky;
    top: calc(var(--eo-topbar-h) + var(--eo-space-lg));
}

.pd-main,
.pd-side {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
    min-width: 0;
}

.pd-main > *,
.pd-side > * {
    margin: 0;
}

/* a card's content sits as close under its title as the stock table does */
.pd-layout .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-xs);
}

/* grid / list switch in the stock card's head */
.pd-switch {
    display: inline-flex;
    padding: 2px;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.pd-switch button {
    padding: 4px 12px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius-sm);
}

.pd-switch button.is-active {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    background: var(--eo-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* the two-attribute ledger: plain rows and fine lines, numbers in the middle, totals on a light band */
.pd-grid-wrap {
    padding: var(--eo-space-sm) var(--eo-space-lg) var(--eo-space-base);
    overflow-x: auto;
}

.pd-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.pd-grid th,
.pd-grid td {
    padding: 0;
    text-align: center;
    border-bottom: 1px solid var(--eo-bg-hover);
}

.pd-grid thead th {
    height: 38px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    white-space: nowrap;
    border-bottom-color: var(--eo-border);
}

/* the label column: the same inner space on every row, so "মোট" sits inside its grey foot like the rest */
.pd-grid th:first-child {
    width: 120px;
    padding-right: var(--eo-space-sm);
    padding-left: var(--eo-space-md);
    text-align: left;
}

.pd-grid .pd-grid__corner {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-subtle);
}

.pd-grid .pd-grid__corner span {
    margin: 0 2px;
}

.pd-grid tbody th {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.pd-grid td {
    height: 60px;
    padding: 6px 4px;
}

.pd-grid .pd-grid__grand {
    white-space: nowrap;
}

.pd-grid .pd-grid__sum {
    width: 90px;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
}

.pd-grid thead .pd-grid__sum {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

.pd-grid tfoot th,
.pd-grid tfoot td {
    height: 42px;
    border-bottom: 0;
    background: var(--eo-surface-2);
}

.pd-grid tfoot th {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

.pd-grid .pd-grid__grand {
    color: var(--eo-text);
}

/* a cell is a small card: the number, and what sold under it only when something did */
.pd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 64px;
    height: 48px;
    padding: 0 8px;
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

button.pd-cell {
    cursor: pointer;
}

/* a cell answers the mouse in the brand's light tint, so it reads as something to press */
button.pd-cell:hover,
button.pd-cell:focus-visible {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

button.pd-cell:hover strong {
    color: var(--eo-brand-strong);
}

.pd-cell strong {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.2;
}

.pd-cell small {
    font-size: var(--eo-fs-xs);
    line-height: 1.2;
    color: var(--eo-text-muted);
}

.pd-cell.is-low {
    background: var(--eo-warning-10);
    border-color: var(--eo-warning-25);
}

.pd-cell.is-low strong { color: var(--eo-warning-strong); }

.pd-cell.is-out {
    background: var(--eo-danger-10);
    border-color: var(--eo-danger-25);
}

.pd-cell.is-out strong { color: var(--eo-danger-strong); }

.pd-cell.is-none {
    color: var(--eo-text-subtle);
    background: transparent;
    border-style: dashed;
}

.pd-grid__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-base);
    margin: var(--eo-space-md) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pd-grid__hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pd-grid__hint .svg-icon {
    width: 14px;
    height: 14px;
    transform: translateY(-0.15em);
}

/* a coloured dot before a word: the same colours as the grid and the bars */
.pd-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pd-key::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eo-neutral);
}

.pd-key--available::before { background: var(--eo-success); }
.pd-key--low::before,
.pd-key--reserved::before,
.pd-key--returning::before { background: var(--eo-warning); }
.pd-key--with_courier::before { background: var(--eo-info); }
.pd-key--out::before,
.pd-key--damaged::before,
.pd-key--lost::before { background: var(--eo-danger); }

/* a variation's stock in the list: the number, and a thin bar against the fullest one */
.pd-meter {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.pd-meter__value {
    min-width: 56px;
    white-space: nowrap;
}

.pd-meter__bar {
    width: 80px;
    height: 6px;
    overflow: hidden;
    appearance: none;
    background: var(--eo-bg-hover);
    border: 0;
    border-radius: var(--eo-radius-pill);
}

.pd-meter__bar::-webkit-progress-bar { background: var(--eo-bg-hover); border-radius: var(--eo-radius-pill); }
.pd-meter__bar::-webkit-progress-value { background: var(--eo-success); border-radius: var(--eo-radius-pill); }
.pd-meter__bar::-moz-progress-bar { background: var(--eo-success); border-radius: var(--eo-radius-pill); }
.pd-meter__bar.is-low::-webkit-progress-value { background: var(--eo-warning); }
.pd-meter__bar.is-low::-moz-progress-bar { background: var(--eo-warning); }

.pd-strike {
    color: var(--eo-text-subtle);
    text-decoration: line-through;
}

/* sales: a line with a light area under it, and the best sellers beside it */
.pd-sales {
    display: grid;
    gap: var(--eo-space-lg);
}

.pd-sales.has-top {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
}

.pd-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 200px auto;
}

/* each day: a light grey track the full height, the day's pieces as a solid bar inside it */
.pd-chart__track {
    fill: var(--eo-bg-hover);
}

.pd-chart__bar {
    fill: var(--eo-brand);
}

.pd-chart__base {
    stroke: var(--eo-border-strong);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.pd-chart__hits span:hover ~ span {
    background: none;
}

.pd-chart__plot {
    position: relative;
    min-width: 0;
}

.pd-chart__plot svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pd-chart__hits {
    position: absolute;
    inset: 0;
    display: flex;
}

.pd-chart__hits span {
    flex: 1;
}

.pd-chart__hits span {
    cursor: default;
}

.pd-chart__hits span:hover {
    background: color-mix(in srgb, var(--eo-text) 4%, transparent);
    border-radius: var(--eo-radius-sm);
}

/* one slot per day under the bars; a label sits centred under its bar and may run past its narrow slot */
.pd-chart__x {
    display: flex;
    margin-top: 8px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pd-chart__x span {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
}

.pd-chart__area {
    fill: var(--eo-brand-10);
}

.pd-chart__dot {
    fill: var(--eo-surface);
    stroke: var(--eo-brand);
    stroke-width: 1.5;
    opacity: 0;
}

.pd-chart__dot:hover {
    opacity: 1;
}

.pd-top__title {
    margin: 0 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

.pd-top__list {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-top__list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px var(--eo-space-sm);
    font-size: var(--eo-fs-sm-plus);
}

.pd-top__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-top__qty {
    font-weight: var(--eo-fw-semibold);
}

.pd-top__bar {
    grid-column: 1 / -1;
    width: 100%;
}

/* label on the left, value on the right; the side cards are all this one list */
.pd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: 8px 0;
    font-size: var(--eo-fs-sm-plus);
    border-bottom: 1px dashed var(--eo-border);
}

.pd-list li:first-child {
    padding-top: 0;
}

.pd-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pd-list li > span:first-child {
    color: var(--eo-text-muted);
}

.pd-list strong {
    font-weight: var(--eo-fw-semibold);
}

/* what one piece really earns, under the prices: a label, the amount in big type, one short line */
.pd-earn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--eo-space-base);
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-success-10);
    border-radius: var(--eo-radius-sm);
}

.pd-earn__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.pd-earn__value {
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-success-strong);
}

.pd-earn__sub {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pd-tip {
    display: inline-flex;
    color: var(--eo-text-muted);
    cursor: help;
}

.pd-tip .svg-icon {
    width: 14px;
    height: 14px;
}

/* the profit's line-by-line sum, folded until asked for */
.pd-fold {
    margin-top: var(--eo-space-sm);
}

.pd-fold > summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    list-style: none;
    cursor: pointer;
}

.pd-fold > summary::-webkit-details-marker {
    display: none;
}

.pd-fold > summary .svg-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.pd-fold[open] > summary .svg-icon {
    transform: rotate(180deg);
}

.pd-fold .pd-ledger {
    margin-top: var(--eo-space-md);
}

.pd-side__label--first {
    margin-top: 0;
}

/* delivery rate: the share in big type, one split bar, two counts */
.pd-rate {
    display: flex;
    align-items: baseline;
    gap: var(--eo-space-sm);
    margin-bottom: var(--eo-space-sm);
}

.pd-rate__value {
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.pd-rate__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pd-split {
    display: block;
    width: 100%;
    height: 8px;
    margin-bottom: var(--eo-space-md);
    overflow: hidden;
    border-radius: var(--eo-radius-pill);
}

.pd-split__track { fill: var(--eo-bg-hover); }
.pd-split__part--available { fill: var(--eo-success); }
.pd-split__part--lost { fill: var(--eo-danger); }

.pd-note {
    margin: var(--eo-space-md) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.pd-note--flush {
    margin: 0;
}

.pd-side__label {
    margin: var(--eo-space-base) 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

/* the shops a product is sold in: name as a link to its page there, a copy button at the end */
.pd-shops {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-shops li {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-height: 32px;
    font-size: var(--eo-fs-sm-plus);
}

.pd-shops li > .svg-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--eo-text-muted);
}

.pd-shops__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--eo-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.pd-shops__name:hover {
    color: var(--eo-brand);
    text-decoration: underline;
}

.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

a.pd-chip:hover {
    color: var(--eo-brand);
    border-color: var(--eo-brand-20);
}

.pd-chip .svg-icon {
    width: 13px;
    height: 13px;
    color: var(--eo-text-muted);
}

@media (max-width: 1199.98px) {
    .pd-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-sales.has-top {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* below 1200px (a tablet, or a small laptop with the sidebar open): the name gets the whole line and the picker
   and buttons sit under it; the facts go two by two */
@media (max-width: 1199.98px) {
    .pd-head__top {
        flex-wrap: wrap;
    }

    .pd-head__id {
        flex: 1 1 calc(100% - 140px);
    }

    .pd-head__title {
        white-space: normal;
    }

    .pd-head__actions {
        flex-wrap: wrap;
        width: 100%;
    }

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

    .pd-fact {
        border-top: 1px solid var(--eo-border);
    }

    .pd-fact + .pd-fact {
        border-left: 0;
    }

    .pd-fact:nth-child(even) {
        border-left: 1px solid var(--eo-border);
    }

    .pd-facts > .pd-fact:first-child,
    .pd-facts > .pd-fact:nth-child(2) {
        border-top: 0;
    }

    /* three facts (no profit for this role): the last one takes the row */
    .pd-fact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pd-head__top {
        padding: var(--eo-space-md);
    }

    .pd-head__back {
        display: none;
    }

    /* on a phone the period picker takes its own row, the buttons sit under it */

    .pd-head__actions .eo-range {
        flex: 1 0 100%;
    }

    .pd-head__actions .eo-range__btn {
        width: 100%;
    }

    .pd-head__actions > .eo-btn:first-of-type {
        flex: 1;
    }

    /* the grid keeps readable cells and scrolls sideways instead of squeezing them */
    .pd-grid {
        width: auto;
        min-width: 100%;
        table-layout: auto;
    }

    .pd-grid th:first-child {
        width: auto;
        min-width: 64px;
    }

    .pd-grid .pd-grid__sum {
        width: auto;
        min-width: 56px;
    }

    .pd-cell {
        min-width: 60px;
    }

    .pd-fact {
        padding: var(--eo-space-md);
    }

    .pd-fact dd {
        font-size: var(--eo-fs-xl);
    }

    .pd-alert {
        flex-wrap: wrap;
    }
}
/* the stock card's states: tiles in one row under a fine line, split by thin dividers like the head's facts */
.pd-states {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm) var(--eo-space-xl);
    margin: 0;
    padding: 10px var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

.pd-state {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.pd-state dt {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.pd-state dd {
    margin: 0;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
}

.pd-state p {
    margin: 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* the grid or the list under the states, separated by one line; a table here uses the card's own edge */
.pd-pane {
    border-top: 1px solid var(--eo-border);
}

.pd-pane > .eo-table-wrap {
    border: 0;
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* "সব অর্ডার": a quiet link in the card head, not a second button */
.pd-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
}

.pd-more:hover {
    color: var(--eo-brand-strong);
}

.pd-more .svg-icon {
    width: 15px;
    height: 15px;
}

/* recent orders: one line each, number and customer on the left, then qty, status and date in fixed columns */
.pd-orders {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.pd-orders li + li {
    border-top: 1px solid var(--eo-bg-hover);
}

.pd-orders__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 170px 120px;
    align-items: center;
    gap: var(--eo-space-md);
    padding: 8px var(--eo-space-lg);
    color: var(--eo-text);
}

.pd-orders__row:hover {
    color: var(--eo-text);
    background: var(--eo-surface-2);
}

.pd-orders li:last-child .pd-orders__row {
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.pd-orders__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pd-orders__main strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
}

.pd-orders__main small {
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-orders__qty {
    font-size: var(--eo-fs-sm-plus);
}

.pd-orders__date {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-align: right;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .pd-states {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-state:nth-child(odd) {
        border-left: 0;
    }

    .pd-state:nth-child(n + 3) {
        border-top: 1px solid var(--eo-border);
    }

    .pd-orders__row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pd-orders__qty,
    .pd-orders__date {
        display: none;
    }
}
/* "স্টক ঠিক করুন": today's stock on top, what happened as cards, how many, then the stock after it */
.sfx-kinds {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* what happened: two tiles a row; the picked tile gets the brand border and tint */
.sfx-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.sfx-kind {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: var(--eo-space-md);
    padding: 10px var(--eo-space-md);
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: background-color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease);
}

.sfx-kind.is-wide {
    grid-column: 1 / -1;
}

.sfx-kind[hidden] {
    display: none;
}

.sfx-kind:hover {
    border-color: var(--eo-border-strong);
}

.sfx-kind input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sfx-kind:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.sfx-kind:has(input:focus-visible) {
    outline: 2px solid var(--eo-brand);
    outline-offset: 1px;
}

.sfx-kind__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

.sfx-kind:has(input:checked) .sfx-kind__icon {
    color: var(--eo-brand);
    background: var(--eo-surface);
}

.sfx-kind__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.sfx-kind__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sfx-kind__title {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    line-height: 1.35;
    color: var(--eo-text);
}

/* which way the stock goes, under the name */
.sfx-kind__sign {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.sfx-kind__sign.is-down { color: var(--eo-danger-strong); }
.sfx-kind__sign.is-up { color: var(--eo-success-strong); }

/* "অন্যান্য": the way switch */
.sfx-way {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.sfx-way .eo-label {
    margin: 0;
}

.sfx-way .pd-switch label {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    cursor: pointer;
    border-radius: var(--eo-radius-sm);
}

.sfx-way .pd-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sfx-way .pd-switch label:has(input:checked) {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-surface);
    box-shadow: 0 0 0 1px var(--eo-border);
}

/* this popup grows downward as parts open, never jumps: it hangs from the top instead of sitting in the middle */
.sfx-modal .modal-dialog-centered {
    align-items: flex-start;
    min-height: auto;
    margin-top: min(8vh, 64px);
}

/* "অন্যান্য" with "কমবে": the cost field stays in place, greyed and off */
[data-fix-cost].is-off {
    opacity: 0.5;
}

/* how much, and what stays for sale after it: two fields side by side, labels on one line, boxes of one height */
.sfx-qty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-md);
}

.sfx-qty .eo-field {
    margin: 0;
}

.sfx-qty .eo-qty {
    width: 100%;
}

/* full width: the number takes the room, not the unit */
.sfx-qty .eo-qty > .eo-control {
    flex: 1 1 auto;
}

.sfx-result {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h);
    margin: 0;
    padding: 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.sfx-result__arrow {
    color: var(--eo-text-subtle);
}

.sfx-result strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.sfx-result.is-bad {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-danger-strong);
    white-space: normal;
    background: var(--eo-danger-10);
    border-color: transparent;
}

@media (max-width: 575.98px) {
    .sfx-qty {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sfx-note-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: none;
    border: 0;
}

.sfx-note-link[hidden] {
    display: none;
}

.sfx-note-link .svg-icon {
    width: 14px;
    height: 14px;
}

/* the profit ledger: income and costs, then the total on a solid line */
.pd-ledger .pd-ledger__total {
    margin-top: 4px;
    padding-top: 10px;
    font-size: var(--eo-fs-base);
    border-top: 1px solid var(--eo-border-strong);
    border-bottom: 0;
}

.pd-ledger .pd-ledger__total > span:first-child {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* the stock moves: a tinted arrow (in green, out red), what happened and when, the quantity at the end */
.pd-moves {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.pd-moves li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--eo-space-md);
    padding: 10px var(--eo-space-lg);
}

.pd-moves li + li {
    border-top: 1px solid var(--eo-bg-hover);
}

.pd-moves__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

.pd-moves__icon.is-in { color: var(--eo-success-strong); background: var(--eo-success-10); }
.pd-moves__icon.is-out { color: var(--eo-danger-strong); background: var(--eo-danger-10); }

.pd-moves__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.pd-moves__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pd-moves__text strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
}

.pd-moves__text small {
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-moves__qty {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

.pd-moves__qty.is-in { color: var(--eo-success-strong); }
.pd-moves__qty.is-out { color: var(--eo-danger-strong); }

button.pd-more {
    padding: 0;
    background: none;
    border: 0;
}

/* an empty period wrapper (no chart for one day) must not leave a double gap in the column */
.pd-main > [data-pd-part="chart"] {
    display: contents;
}

/* the first label in a card sits right under the title */
.pd-side__label.pd-side__label--first {
    margin-top: 0;
}

/* where it sells: two groups, each a small label over its rows; one full-width line between the groups */
.pd-group {
    padding: var(--eo-space-md) var(--eo-space-lg) var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

/* a group's heading: darker and bolder than its rows, with a small icon, so it reads as a heading */
.pd-group__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 var(--eo-space-md);
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.pd-group__label .svg-icon {
    width: 15px;
    height: 15px;
    color: var(--eo-brand);
    transform: translateY(-0.15em);
}

.pd-bars {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-bars li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px var(--eo-space-sm);
    font-size: var(--eo-fs-sm-plus);
}

.pd-bars__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-bars__qty {
    font-weight: var(--eo-fw-semibold);
}

.pd-bars__bar {
    grid-column: 1 / -1;
    width: 100%;
}

.pd-side > [data-pd-part="where"] {
    display: contents;
}

/* where it sells: the order sources and the districts side by side */
.pd-where {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--eo-space-lg) var(--eo-space-2xl);
}

.pd-where--stacked {
    grid-template-columns: minmax(0, 1fr);
}

/* the shared empty card inside a grid of tiles takes the whole row */
.eo-pick-grid > .eo-empty {
    grid-column: 1 / -1;
}

/* inside a list or a menu the empty card keeps its own spacing, not the list's */
.eo-stl__none,
.eo-bell__empty {
    list-style: none;
}

/* rows that run edge to edge under the card title, the same as the stock moves and the orders */
.pd-rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.pd-rows li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: 12px var(--eo-space-lg);
    font-size: var(--eo-fs-sm-plus);
}

.pd-rows li + li {
    border-top: 1px solid var(--eo-bg-hover);
}

.pd-rows li > span:first-child {
    color: var(--eo-text-muted);
}

.pd-rows strong {
    font-weight: var(--eo-fw-semibold);
}

/* the profit box and its fold sit inside a flush card, so they bring their own side room */
.pd-earn.pd-earn--inset {
    margin: 0 var(--eo-space-lg) 0;
    margin-top: var(--eo-space-xs);
}

.pd-fold.pd-fold--inset {
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-lg) var(--eo-space-base);
}

.pd-rows:last-child {
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

/* combo parts: photo and name, then three figures (in one combo, in stock, combos it is enough for);
   the part that holds the combo back gets a tinted row */
.pd-parts {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.pd-part {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 110px 110px 150px;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
}

.pd-part + .pd-part {
    border-top: 1px solid var(--eo-bg-hover);
}

.pd-part.is-limit {
    background: var(--eo-warning-10);
}

.pd-part:last-child {
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.pd-part__img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.pd-part__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pd-part__name a {
    overflow: hidden;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-part__name a:hover {
    color: var(--eo-brand);
}

.pd-part__name small,
.pd-part__fig small {
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-part__name small.is-open {
    color: var(--eo-accent);
}

.pd-part__fig {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: right;
}

.pd-part__fig strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .pd-part {
        grid-template-columns: 40px repeat(3, minmax(0, 1fr));
        row-gap: var(--eo-space-sm);
    }

    .pd-part__img {
        grid-row: span 2;
        width: 40px;
        height: 40px;
    }

    .pd-part__name {
        grid-column: 2 / -1;
    }

    .pd-part__fig {
        text-align: left;
    }
}

/* phones: half the dates under the chart, and the combo part notes wrap instead of cutting off */
@media (max-width: 767.98px) {
    .pd-chart__x .is-minor {
        visibility: hidden;
    }

    .pd-part__name small,
    .pd-part__fig small {
        white-space: normal;
    }
}

/* a product without variations: one tile per place its stock can be; a tile with nothing in it stays quiet,
   one with something gets its colour (orange to send or coming back, blue with the courier, red damaged or lost) */
.pd-hold {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.pd-hold__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.pd-hold__item + .pd-hold__item {
    border-left: 1px solid var(--eo-border);
}

.pd-hold__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: var(--eo-space-sm);
    color: var(--eo-text-subtle);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-sm);
}

.pd-hold__icon .svg-icon {
    width: 16px;
    height: 16px;
}

.pd-hold__item.is-warning .pd-hold__icon { color: var(--eo-warning-strong); background: var(--eo-warning-10); }
.pd-hold__item.is-info .pd-hold__icon { color: var(--eo-info-strong); background: var(--eo-info-10); }
.pd-hold__item.is-danger .pd-hold__icon { color: var(--eo-danger-strong); background: var(--eo-danger-10); }

.pd-hold__label {
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-hold__item strong {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

.pd-hold__item.is-zero strong {
    color: var(--eo-text-subtle);
}

.pd-hold__item.is-danger strong {
    color: var(--eo-danger-strong);
}

.pd-hold__item small {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.pd-hold__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm) var(--eo-space-xl);
    padding: 10px var(--eo-space-lg);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

/* the card's bottom corners only when nothing (a variation grid) follows */
.pd-hold__foot:last-child {
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.pd-hold__foot strong {
    margin-left: 4px;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* phones: the five places as a list, one row each (icon, name, how many), so no tile is left alone on a row */
@media (max-width: 575.98px) {
    .pd-hold {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-hold__item {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto;
        align-items: center;
        column-gap: var(--eo-space-md);
        row-gap: 0;
        padding: 10px var(--eo-space-lg);
    }

    .pd-hold__item + .pd-hold__item {
        border-top: 1px solid var(--eo-bg-hover);
        border-left: 0;
    }

    .pd-hold__icon {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .pd-hold__label {
        grid-column: 2;
        color: var(--eo-text);
    }

    .pd-hold__item strong {
        grid-column: 3;
        grid-row: 1 / span 2;
        font-size: var(--eo-fs-sm-plus);
    }

    .pd-hold__item small {
        grid-column: 2;
    }

    /* no second line: the name sits centred beside the icon */
    .pd-hold__item:not(:has(small)) .pd-hold__label {
        grid-row: 1 / span 2;
    }
}

/* "স্টক ইন" popup: who it is, what came in, the result band, the kind and the date */
.sin-modal .modal-dialog {
    --bs-modal-width: 560px;
}

/* it grows downward as its lines load, never jumps */
.sin-modal .modal-dialog-centered {
    align-items: flex-start;
    min-height: auto;
    margin-top: min(8vh, 64px);
}

.sin {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
}

/* who it is: the photo, the name, what is for sale now */
.sin-who {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
}

.sin-who__img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.sin-who__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sin-who__text strong {
    overflow: hidden;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sin-who__text small {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* beside the name: the sale price and the last stock in, small and right-aligned */
.sin-who__facts {
    display: flex;
    flex-shrink: 0;
    gap: var(--eo-space-lg);
    margin: 0;
    text-align: right;
}

.sin-who__facts dt {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.sin-who__facts dd {
    margin: 0;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .sin-who {
        flex-wrap: wrap;
    }

    .sin-who__facts {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
}

/* one variation: a question on the left, its field on the right, under a fine line */
.sin-rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--eo-border);
}

.sin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) 0;
    border-bottom: 1px solid var(--eo-bg-hover);
}

.sin-row__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.sin-row__label small {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.sin-row__field.eo-qty {
    width: 100%;
}

.sin-row__field.eo-qty > .eo-control {
    flex: 1 1 auto;
}

/* several variations: a light table that scrolls inside itself when long */
.sin-lines {
    max-height: min(40vh, 380px);
    overflow-y: auto;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.sin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px var(--eo-space-md);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    text-align: left;
    background: var(--eo-surface-2);
    border-bottom: 1px solid var(--eo-border);
}

.sin-table td {
    padding: 8px var(--eo-space-md);
    vertical-align: middle;
    border-bottom: 1px solid var(--eo-bg-hover);
}

.sin-table tr:last-child td {
    border-bottom: 0;
}

.sin-table th:not(:first-child),
.sin-table td:not(:first-child) {
    width: 140px;
}

/* the result band: the brand tint, the new figure large; the money on the right */
.sin-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-lg);
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.sin-band__part {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sin-band__part--end {
    align-items: flex-end;
    text-align: right;
}

.sin-band__label {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.sin-band__value {
    display: flex;
    align-items: baseline;
    gap: var(--eo-space-sm);
    white-space: nowrap;
}

.sin-band__value,
.sin-band__value strong {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.sin-band__old {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
    text-decoration: line-through;
}

.sin-band__arrow {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-subtle);
}

/* under the money: how it adds up */
.sin-band__sub {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* the kind and the date: one quiet line */
.sin-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-lg);
}

.sin-meta__part {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.sin-meta__label {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.sin-meta__date {
    width: 170px;
}

/* the kind as two pills, the picked one white with the brand's word */
.sin-switch {
    display: inline-flex;
    padding: 2px;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.sin-switch label {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    cursor: pointer;
    border-radius: var(--eo-radius-sm);
}

.sin-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sin-switch label:has(input:checked) {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-surface);
    box-shadow: 0 0 0 1px var(--eo-border);
}

.sin-switch label:has(input:focus-visible) {
    outline: 2px solid var(--eo-brand);
    outline-offset: 1px;
}

.sin-skel__box {
    height: var(--eo-control-h);
}

.sin-skel__band {
    height: 64px;
}

@media (max-width: 575.98px) {
    /* on a phone the whole popup, its buttons included, fits the screen: a small top gap and a shorter variation list
       (it still scrolls inside itself), so the page never needs a second scroll to reach "স্টক ইন করুন" */
    .sin-modal .modal-dialog-centered {
        margin-top: var(--eo-space-sm);
    }

    .sin-lines {
        max-height: 30vh;
        max-height: 30dvh;
    }

    .sin-row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--eo-space-sm);
    }

    .sin-table th:not(:first-child),
    .sin-table td:not(:first-child) {
        width: 104px;
    }

    /* with the cost column there is no room for three columns: the variation takes its own line, how many and the cost
       sit side by side under it, so neither box is squeezed to nothing nor slides out of the popup */
    .sin-table tr:has(> :nth-child(3)) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sin-table tr:has(> :nth-child(3)) > th:first-child {
        display: none;
    }

    .sin-table tr:has(> :nth-child(3)) > td:first-child {
        grid-column: 1 / -1;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .sin-table tr:has(> :nth-child(3)) > :not(:first-child) {
        width: auto;
        padding-left: var(--eo-space-sm);
        padding-right: var(--eo-space-sm);
    }

    .sin-table tr:has(> :nth-child(3)) > td:first-child,
    .sin-table tr:has(> :nth-child(3)) > :nth-child(2) {
        padding-left: var(--eo-space-md);
    }

    .sin-table tr:has(> :nth-child(3)) > :last-child {
        padding-right: var(--eo-space-md);
    }

    .sin-table td:first-child .eo-cell-main {
        white-space: normal;
    }
}

/* a fact with nothing to tell yet keeps its third line, lighter */
.pd-fact p.is-quiet {
    color: var(--eo-text-subtle);
}

/* the stock value in the stock card foot is a button to the cost layers: the amount with a dotted line under it */
button.pd-hold__amount {
    margin-left: 4px;
    padding: 0;
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--eo-text-subtle);
    border-radius: 0;
}

button.pd-hold__amount:hover {
    color: var(--eo-brand);
    border-bottom-color: var(--eo-brand);
}

/* the stock card foot's link to the cost layers */
button.pd-hold__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: var(--eo-space-sm);
    padding: 0;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: none;
    border: 0;
}

button.pd-hold__link .svg-icon {
    width: 14px;
    height: 14px;
}

/* "স্টকের দাম" panel: three figures, a short note, then each layer as a card; the next one out gets the brand edge */
.eo-svl__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eo-svl__stats .eo-stl__stat {
    border-bottom: 0;
}

.eo-svl__stats .eo-stl__stat-value {
    white-space: nowrap;
}

/* a phone has no room for three money figures side by side ("৳ 1,44,000" ran into "৳ 1,600"): what is on hand takes
   the first line, the total cost and the average share the second */
@media (max-width: 575.98px) {
    .eo-svl__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-svl__stats .eo-stl__stat:first-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid var(--eo-border);
    }

    .eo-svl__stats .eo-stl__stat:nth-child(2) {
        border-right: 1px solid var(--eo-border);
    }

    .eo-svl__stats .eo-stl__stat:nth-child(3) {
        border-right: 0;
    }

    .eo-svl__stats .eo-stl__stat-value {
        font-size: var(--eo-fs-lg);
    }
}

.eo-svl__note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-svl__note .svg-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
}

.eo-svl__list {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-svl__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-svl__item.is-next {
    border-color: var(--eo-brand);
    box-shadow: inset 3px 0 0 var(--eo-brand);
}

.eo-svl__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

.eo-svl__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
}

.eo-svl__next {
    padding: 1px 8px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-pill);
}

.eo-svl__value {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

.eo-svl__qty {
    display: grid;
    grid-template-columns: auto minmax(60px, 1fr);
    align-items: center;
    gap: var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.eo-svl__bar {
    width: 100%;
}

/* end page: product details */

.eo-act-subject {
    color: var(--eo-text);
    font-weight: var(--eo-fw-medium);
}

/* profit report row: compare is a small on/off chip, not a switch with a long label */
.eo-reportbar__compare {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    height: var(--eo-control-h-sm);
    padding: 0 var(--eo-space-md);
    font-size: var(--eo-fs-md);
    color: var(--eo-text-2);
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill, 999px);
}

.eo-reportbar__compare input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eo-reportbar__compare:hover,
.eo-reportbar__compare:focus-within {
    border-color: var(--eo-brand);
}

.eo-reportbar__compare.is-on {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

/* the period form fills the row so store and compare can sit on the right, next to the download */
.eo-reportbar > .eo-reportbar__period {
    flex: 1 1 auto;
}

.eo-reportbar__push {
    flex: 1 1 0;
}

.eo-reportbar > .eo-reportbar__tools {
    margin-left: 0;
}

/* x-date-range: from – to boxes on one line, the quick ranges as small chips under them */
.eo-daterange__boxes {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
}

.eo-daterange__boxes > * {
    flex: 1 1 0;
    min-width: 0;
}

.eo-daterange__boxes > .eo-daterange__dash {
    flex: 0 0 auto;
    color: var(--eo-text-muted);
}

/* the two boxes share the row: the filter bar's 150px floor for a date box pushed "to" past a phone's filter panel */
.eo-daterange__boxes > .eo-date__toggle {
    min-width: 0;
}

.eo-daterange__quick {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
}

.eo-daterange__clear {
    color: var(--eo-text-muted);
    background: transparent;
    border-color: var(--eo-border);
}

/* ==== money-cod: start (owned by the cod page work; edit only between these two lines) ==== */
/* courier money pages (/cod, /cod/unpaid, /cod/import: a numbers card and the product list's table card;
   /cod/settlements/{uid}: the product page's head card). Only the few things those don't have live here */

/* the head card's corners hold the hover colour of the facts below */
.pd-head.eo-cod-head {
    overflow: hidden;
}

/* a numbers card with no title row: the strip is the whole card, no line on top */
.eo-cod-facts > .pd-facts {
    border-top: 0;
}

/* a settlement's tile: the courier's letter in the colour its rows use */
.pd-head__photo > .eo-cod-head__tile {
    width: 100%;
    height: 100%;
    font-size: var(--eo-fs-xl);
    border-radius: 0;
}

.eo-cod-head .pd-fact dd {
    white-space: nowrap;
}

/* a fact that opens the list it counts: the whole cell is one tap target */
.pd-fact.eo-cod-fact {
    position: relative;
    transition: background-color var(--eo-dur) var(--eo-ease);
}

.pd-fact.eo-cod-fact:has(> .eo-cod-fact__hit):hover {
    background: var(--eo-surface-2);
}

.pd-fact.eo-cod-fact > .eo-cod-fact__hit {
    position: absolute;
    inset: 0;
    grid-row: auto;
    grid-column: auto;
}

.pd-fact.eo-cod-fact > .eo-cod-fact__hit:focus-visible {
    outline: 2px solid var(--eo-brand);
    outline-offset: -2px;
}

/* the status word of a settlement beside its number in the head's grey line */
.eo-cod-head .pd-head__meta .eo-status-dot {
    font-size: inherit;
}

/* the head's grey line: the dot rides after each part, so a line that wraps never starts with one */
.eo-cod-meta li {
    white-space: nowrap;
}

.eo-cod-meta li + li::before {
    content: none;
}

.eo-cod-meta li:not(:last-child)::after,
.eo-cod-meta__sep {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 9px;
    vertical-align: middle;
    background: var(--eo-text-subtle);
    border-radius: 50%;
}

/* a phone (as the claim page): the status on its own line, courier · payment id the next (cut with "…" if long),
   the date under it; a dot only ever sits between two parts of the same line */
@media (max-width: 575.98px) {
    .eo-cod-meta li {
        flex: 0 0 100%;
    }

    .eo-cod-meta li:not(:last-child)::after {
        content: none;
    }

    .eo-cod-meta .eo-cod-meta__pay {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* the swapping part is only a hook: the toolbar and table stay the page column's own items, so they still join as one card */
.eo-cod-swap {
    display: contents;
}

/* selectors read the real tree, not the boxes: the page column's rules for its own blocks (no margins, a wide table scrolls)
   and its toolbar-to-table join are repeated here for the blocks inside the hook */
.eo-cod-swap > * {
    flex: 0 0 auto;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* the match filter is the bar's only pick: wide enough that its words read without a squeeze */
@media (min-width: 768px) {
    .eo-cod-swap .eo-filterbar__actions .eo-select__toggle {
        min-width: calc(var(--eo-space-3xl) * 5);
    }
}

.eo-cod-swap > .eo-toolbar + .eo-table-wrap,
.eo-cod-swap > .eo-toolbar + .eo-empty {
    margin-top: calc(-1 * var(--eo-space-lg));
}

/* an empty view is the same white panel as an empty table on the page, joined to the toolbar above it */
.eo-cod-swap > .eo-empty {
    max-width: none;
    padding: calc(var(--eo-space-3xl) + var(--eo-space-xl)) var(--eo-space-xl);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

@media (max-width: 575.98px) {
    .eo-cod-swap > .eo-empty {
        padding: var(--eo-space-3xl) var(--eo-space-base);
    }
}

/* a payment with nothing left open: its "not matched" tile turns green (done), as the other tiles' tones go */
.pd-fact.eo-cod-fact.is-success .pd-fact__icon {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
}

.pd-fact.eo-cod-fact.is-success p {
    color: var(--eo-success-strong);
}

/* the COD trees take the report tree's fixed columns, whose wide name column is keyed to data-col="label": here the first
   column holds the names (courier, payment, parcel), so it gets that width; status, left aligned after a right aligned
   figure, keeps a gap from it */
:is(.eo-cod-table, .eo-exp-tree).eo-rpt-tree .eo-table th:first-child {
    width: calc(var(--eo-space-3xl) * 5 + var(--eo-space-lg));
}

/* its head cell stays put with the names under it while the figures slide (the report's rules are keyed to data-col="label",
   so this head slid away and the next column's title ran over the names) */
:is(.eo-cod-table, .eo-exp-tree).eo-rpt-tree .eo-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--eo-surface-2);
    transition: box-shadow var(--eo-dur) var(--eo-ease);
}

:is(.eo-cod-table, .eo-exp-tree).eo-rpt-tree.is-scrolled .eo-table th:first-child {
    box-shadow:
        1px 0 0 var(--eo-border),
        2px 0 0 color-mix(in srgb, var(--eo-text) 7%, transparent),
        4px 0 0 color-mix(in srgb, var(--eo-text) 4%, transparent),
        6px 0 0 color-mix(in srgb, var(--eo-text) 2%, transparent);
}

.eo-table-wrap:is(.eo-cod-table, .eo-exp-tree).eo-rpt-tree:is(.is-head-sticky, .is-sliding) .eo-table thead th:first-child {
    z-index: 31;
}

/* a phone: the names take at most 60% of the screen, as the report's name column does */
@media (max-width: 767.98px) {
    :is(.eo-cod-table, .eo-exp-tree).eo-rpt-tree .eo-table th:first-child {
        width: min(calc(var(--eo-space-3xl) * 4 + var(--eo-space-2xl)), 60vw);
    }
}

.eo-cod-table.eo-rpt-tree .eo-table [data-col="status"] {
    padding-left: var(--eo-space-3xl);
}

/* room for its word ("মেলানো হয়েছে") after that gap */
.eo-cod-table.eo-rpt-tree .eo-table th[data-col="status"] {
    width: calc(var(--eo-space-3xl) * 4);
}

/* a pill's short word waits for a phone */
.eo-cod-pill__short {
    display: none;
}

/* a settlement with no main button: the way back and ⋮ stay on the title's line, top right */
@media (max-width: 1199.98px) {
    .eo-cod-head .pd-head__top:has(> .eo-cod-head__tools) > .pd-head__id {
        flex: 1 1 0;
    }

    .eo-cod-head .pd-head__actions.eo-cod-head__tools {
        flex-wrap: nowrap;
        align-self: flex-start;
        width: auto;
    }
}

/* the upload form's card the order details page's way: the heading and its file/manual switch, a full-width hairline under
   them, then the fields with their own breathing room (the first label sat right under the heading) */
.eo-cod-form > .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.eo-cod-form > .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-lg);
}

/* typing a payment in: the courier's unpaid parcels to tick. its title and the search share a line (the search under it on a
   phone), "paid" is a narrow box at the row's end, and the running total sits under the list in the main text colour */
.eo-cod-pick__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-base);
    margin-top: var(--eo-space-sm);
}

.eo-cod-pick__find {
    flex: 0 1 calc(var(--eo-space-3xl) * 6);
}

.eo-cod-pick .eo-cod-pick__paid {
    width: calc(var(--eo-space-3xl) * 3);
    margin-left: auto;
}

.eo-cod-pick__total {
    margin: 0;
    font-weight: var(--eo-fw-medium);
}

.eo-cod-pick__total:empty {
    display: none;
}

/* the hand-typed parcels: their own section under the list, split from it by a hairline */
.eo-cod-pick__section {
    padding-top: var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* file preview: under each column's own name, a picker for what it holds (owner, 22 Nov 2026: right in the table). The
   picker keeps a width its longest word fits in, so a wide file scrolls sideways instead of squeezing it */
.eo-cod-preview__name {
    display: block;
    margin: 0 0 var(--eo-space-xs);
    white-space: nowrap;
    cursor: pointer;
}

.eo-cod-preview thead .eo-field {
    min-width: 11rem;
    margin: 0;
    text-align: left;
}

/* the head row holds a name and a picker: it grows to fit them with room above and below, so a picker never touches
   (or, with a taller font, covers) the first line */
.eo-table.eo-cod-preview thead th,
.eo-cod-preview .eo-table thead th {
    height: auto;
    padding-top: var(--eo-space-md);
    padding-bottom: var(--eo-space-md);
    vertical-align: top;
}

/* a payment's line with a claim: the claim's dot, number and status under the line's own status, opening the claim */
.eo-cod-claim {
    display: block;
    width: fit-content;
    margin-top: 2px;
    color: var(--eo-text-muted);
    text-decoration: none;
}

.eo-cod-claim:hover,
.eo-cod-claim:focus-visible {
    color: var(--eo-text);
    text-decoration: underline;
}

/* the file preview's head tile: the courier's logo drawn whole on white, as the Daraz page's head does */
.pd-head__photo.eo-cod-head__logo {
    padding: var(--eo-space-xs);
    background: var(--eo-surface);
}

.pd-head__photo.eo-cod-head__logo img {
    object-fit: contain;
}

/* the result filter on the right of the lines card's head: wide enough for its longest choice with a count */
.eo-cod-preview-card [data-cod-filter-box] .eo-field {
    min-width: 13rem;
    margin: 0;
}

/* the page links under the lines sit inside the card's padding; with one page there is nothing to show */
.eo-cod-preview__pager .eo-pager {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg) 0;
}

/* the help line under the card's title keeps a clear gap above the table */
.eo-cod-preview-card > .eo-card__head {
    padding-bottom: var(--eo-space-base);
}

.eo-cod-preview thead .eo-control {
    font-weight: var(--eo-fw-normal);
}

/* a column not used reads grey, its name and its lines */
.eo-cod-preview .is-ignored,
.eo-cod-preview .is-ignored .eo-cod-preview__name {
    color: var(--eo-text-subtle);
}

/* an old phone-only grey line in the first cell: the phone card already lists the columns it repeats, so it stays hidden
   at every size (:not(#eo-cards) outweighs the sliding list's "every grey line shows" rule under 1024px) */
.eo-cod-table:not(#eo-cards) .eo-cell-sub.eo-cod-phone {
    display: none;
}

@media (max-width: 767.98px) {
    /* the head's buttons share the width under the title */
    .eo-cod-head .pd-head__actions > .eo-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* the unpaid parcels link keeps to its clock icon on a phone (the shared toolbar rule places it) */
@media (max-width: 575.98px) {
    .eo-cod-iconbtn {
        padding: 0;
    }

    .eo-cod-iconbtn__label {
        display: none;
    }

    /* each pill its short word */
    .eo-cod-pill__full {
        display: none;
    }

    /* the settlement head: the number keeps one line beside its two buttons, so the tile steps aside as in the rows */
    .eo-cod-head .pd-head__photo {
        display: none;
    }

    .eo-cod-head .pd-head__title {
        white-space: nowrap;
    }

    .eo-cod-pill__short {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    /* the name gets the width: no letter tile, and a long consignment id or number breaks instead of being cut */
    .eo-cod-table .eo-namecell__tile {
        display: none;
    }

    .eo-cod-table .eo-namecell .eo-cell-main {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /* two numbers a row on a phone: the icon would leave a taka amount no room */
    .eo-cod-head .pd-fact {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-cod-head .pd-fact > .pd-fact__icon {
        display: none;
    }

    .eo-cod-head .pd-fact > :not(.pd-fact__icon):not(.eo-cod-fact__hit) {
        grid-column: 1;
    }

    /* typing parcels in by hand: five boxes and the remove button keep a usable width and the table scrolls sideways,
       as every list does on a phone */
    .eo-cod-entry .eo-table {
        width: 100%;
        min-width: 34rem;
        table-layout: fixed;
    }

    .eo-cod-entry .eo-table th,
    .eo-cod-entry .eo-table td {
        padding-right: 2px;
        padding-left: 2px;
        white-space: normal;
    }

    .eo-cod-entry .eo-table th:first-child,
    .eo-cod-entry .eo-table td:first-child {
        width: 28%;
        padding-left: var(--eo-space-sm);
    }

    .eo-cod-entry .eo-table th:last-child,
    .eo-cod-entry .eo-table td:last-child {
        padding-right: var(--eo-space-sm);
    }

    .eo-cod-entry .eo-control {
        width: 100%;
        min-width: 0;
        padding-right: var(--eo-space-xs);
        padding-left: var(--eo-space-xs);
    }
}
/* ==== money-cod: end ==== */

/* ==== money-disputes: start (owned by the disputes page work; edit only between these two lines) ==== */
/* claim page head: the separator hangs after an item, so a wrapped line never starts with one */
.eo-dsp-head .pd-head__meta li + li::before {
    content: none;
}

.eo-dsp-head .pd-head__meta li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 9px;
    vertical-align: middle;
    background: var(--eo-text-subtle);
    border-radius: 50%;
}

/* a phone: the status takes its own line, type and courier the next */
@media (max-width: 575.98px) {
    .eo-dsp-head .pd-head__meta li:first-child {
        flex: 0 0 100%;
    }

    .eo-dsp-head .pd-head__meta li:first-child::after {
        content: none;
    }
}

/* claim page: the head tile carries an icon, not a photo */
.pd-head__photo.eo-dsp-tile {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: transparent;
}

.pd-head__photo.eo-dsp-tile .svg-icon {
    width: 24px;
    height: 24px;
}

/* the "sent to courier" form sits in the head's button row as if it were the button itself */
.eo-dsp-inline {
    display: contents;
}

/* a phone has no room for three buttons on a line: each line the buttons take is filled edge to edge */
@media (max-width: 767.98px) {
    .eo-dsp-head .pd-head__actions > .eo-btn,
    .eo-dsp-head .pd-head__actions > .eo-dsp-inline > .eo-btn {
        flex: 1 1 auto;
    }
}

.eo-dsp-fold {
    border-top: 1px solid var(--eo-border);
}

.eo-dsp-fold > summary {
    padding-top: var(--eo-space-xs);
}

.eo-dsp-replies {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    margin-top: var(--eo-space-md);
}

.eo-dsp-reply pre {
    max-height: 240px;
    margin: var(--eo-space-2xs) 0 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

/* claim details: a long ticket number or reason wraps on the right instead of pushing the label */
.pd-rows .eo-dsp-val {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.eo-dsp-note {
    padding: 12px var(--eo-space-lg) var(--eo-space-base);
    font-size: var(--eo-fs-sm-plus);
    border-top: 1px solid var(--eo-bg-hover);
}

.eo-dsp-note p {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

/* a phone card: the claim number breaks onto a second line instead of being cut with "…"; :not(#eo-cards) outweighs the
   sliding list's one-line rule, which still matches under 1024px */
@media (max-width: 575.98px) {
    .eo-dsp-list:not(#eo-cards) .eo-namecell .eo-cell-main {
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

/* the claim list's grey rows hold a name as wide as a claim number ("#CLM-85YMWJEQPP"), so the columns keep their place
   when the real rows come in */
.eo-dsp-list .eo-table-skel td[data-col="number"] > .eo-namecell {
    /* a floor the table widens the column to, so the grey name never runs into the courier column */
    min-width: calc(var(--eo-space-3xl) * 5);
}

.eo-dsp-list .eo-table-skel .eo-rpt-skel-stack {
    flex: 1 1 auto;
}

/* the claim page's cards the order page's way: a hairline under each heading, then the body with its own room, so the
   heading belongs to its card; a list straight under the heading uses that line instead of its own */
.eo-dsp-layout .eo-panel > .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.pd-layout.eo-dsp-layout .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-base);
}

.eo-dsp-layout .eo-card__head + :is(.pd-rows, .pd-moves) {
    border-top: 0;
}

/* the note and the upload are short forms in a stack: their button stays at the card's end, never over the next card
   (as the support topic cards) */
.eo-dsp-layout .eo-card__foot {
    position: static;
}

/* ==== money-disputes: end ==== */

/* ==== money-expenses: start (owned by the expenses page work; edit only between these two lines) ==== */
/* expenses: the month's facts are a card of their own (only the strip, no title row) */
.pd-facts.eo-exp-facts {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

/* a card's change line sits at the height of the other cards' notes: the arrow inline in the text line, the size of the text,
   so the line box is the text's own (a flex box around it pushed the line down) */
.eo-exp-trend {
    display: inline;
}

.eo-exp-trend .svg-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 2px;
    vertical-align: -2px;
}

/* a long kind ("বিদ্যুৎ, গ্যাস ও পানির বিল") keeps to one line; a sum never breaks in two */
.eo-exp-facts .pd-fact dt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-exp-facts .pd-fact dd {
    white-space: nowrap;
}


/* a cancelled expense reads grey, its reason beside the word */
[data-table="expenses"] tbody tr.is-muted > td {
    color: var(--eo-text-subtle);
}

.eo-exp-note {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eo-exp-note > span:not(.eo-status-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-exp-note .eo-status-dot {
    font-size: var(--eo-fs-sm);
}

/* the side panel's two faces (what it is, and the form): the hidden one is gone, though the face's class lays it out */
[data-exp-panel] .eo-sidepanel__content[hidden] {
    display: none;
}

/* an expense row opens its panel: it reads as a link to click */
.eo-exp-leaf {
    cursor: pointer;
}

.eo-exp-name {
    max-width: 360px;
}

/* the tree's columns: the account gets room for a bank's long name and a clear gap from the right-aligned sum before it
   (left text right after a right figure ran into it); the person and status keep a fair share, so the wide screen's spare room
   is spread over them instead of all going to the name */
.eo-exp-tree.eo-rpt-tree .eo-table th[data-col="account"] {
    width: calc(var(--eo-space-3xl) * 5 + var(--eo-space-3xl));
}

.eo-exp-tree.eo-rpt-tree .eo-table th[data-col="added_by"] {
    width: calc(var(--eo-space-3xl) * 3 + var(--eo-space-xl));
}

.eo-exp-tree.eo-rpt-tree .eo-table th[data-col="status"] {
    width: calc(var(--eo-space-3xl) * 3);
}

.eo-exp-tree.eo-rpt-tree .eo-table [data-col="account"] {
    padding-left: var(--eo-space-3xl);
}

/* with the person and status off (a staff member's own list), their share went to every fixed column and the account
   stretched into a wide blank; the name takes the spare room instead, as on the other lists */
.eo-exp-tree.eo-rpt-tree[data-hide~="added_by"][data-hide~="status"] .eo-table th:first-child {
    width: auto;
}

/* but not on a phone: there the sum of the other fixed columns is wider than the screen, so "auto" left the name column 0px
   wide (the dates vanished and the next head ran over the first) - it keeps the names' 60% as on every other phone tree */
@media (max-width: 767.98px) {
    .eo-exp-tree.eo-rpt-tree[data-hide~="added_by"][data-hide~="status"] .eo-table th:first-child {
        width: min(calc(var(--eo-space-3xl) * 4 + var(--eo-space-2xl)), 60vw);
    }
}

/* a bank's long name ("ডাচ-বাংলা ব্যাংক, ধানমন্ডি শাখা") takes two lines at most */
[data-table="expenses"] td[data-col="account"] {
    min-width: 180px;
}

/* the kind list keeps its columns at a readable width and a phone slides it sideways (the name stays put on the left),
   instead of squeezing the name, count and status into the screen */
.eo-expcat-table > .eo-table {
    min-width: calc(var(--eo-space-3xl) * 11);
}

.eo-expcat-table > .eo-table th {
    white-space: nowrap;
}

/* the kind list: a system kind's lock stays right after its name, a long name is cut with "…" before it */
.eo-expcat-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.eo-expcat-name > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-expcat-name .svg-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--eo-text-subtle);
}

@media (max-width: 1199.98px) {
    /* a tablet fits the four columns without sliding sideways */
    .eo-exp-name {
        max-width: 180px;
    }

    .eo-exp-name .eo-cell-main {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .eo-exp-name .eo-inline,
    .eo-exp-name .eo-inline__value {
        max-width: 100%;
    }

    [data-table="expenses"] td[data-col="account"] {
        min-width: 0;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* phones: two facts a row with a tighter icon gap */
@media (max-width: 575.98px) {
    .eo-exp-facts .pd-fact {
        column-gap: var(--eo-space-sm);
    }

    .eo-exp-facts .pd-fact p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* the five period pills fit the phone's width */
    .eo-exp-bar .eo-filterbar__lead .eo-segment__item {
        padding: 0 6px;
    }

    /* a phone card: the account sits on the right like the date and the amount, a long bank name wraps under itself
       (the tablet's 140px cut would leave it floating in the middle of the line) */
    [data-table="expenses"] td[data-col="account"] {
        max-width: none;
        overflow: visible;
        white-space: normal;
    }
}
/* the expense page: the head tile carries an icon, as on the claim page */
.pd-head__photo.eo-exp-tile {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: transparent;
}

.pd-head__photo.eo-exp-tile .svg-icon {
    width: 24px;
    height: 24px;
}

/* a long bill number or reason wraps on the right instead of pushing the label */
.pd-rows .eo-exp-val {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.eo-exp-detail-note {
    padding: var(--eo-space-sm) var(--eo-space-lg) var(--eo-space-base);
    font-size: var(--eo-fs-sm-plus);
    border-top: 1px solid var(--eo-bg-hover);
}

.eo-exp-detail-note p {
    margin: var(--eo-space-2xs) 0 0;
    overflow-wrap: anywhere;
}

/* the side panel: the hero tile carries the receipt icon in brand tint, as the expense page's head tile */
.eo-rpt-hero__img.eo-exp-hero-tile {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: transparent;
}

.eo-rpt-hero__img.eo-exp-hero-tile .svg-icon {
    width: 28px;
    height: 28px;
}

/* a cancelled expense keeps its sum on show, struck through, so nobody counts it */
.eo-exp-void-sum {
    color: var(--eo-text-muted);
    text-decoration: line-through;
}

/* a long account name or reason wraps on the right instead of pushing its label */
.eo-exp-dl dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eo-exp-box-text {
    margin: 0;
    padding: var(--eo-space-md);
    font-size: var(--eo-fs-md);
    overflow-wrap: anywhere;
}

/* the picked account's money under its pick; red when the typed amount is more than it holds */
.eo-exp-balance.is-danger {
    color: var(--eo-danger-strong);
}

/* the panel's grey shape: a box's two lines stand apart like real lines, the two foot buttons share the foot */
.eo-exp-skel-lines {
    gap: var(--eo-space-xs);
}

.eo-exp-skel-btn {
    flex: 1 1 0;
}

/* the history rows sit under the box head, so they drop their own top line */
.pd-moves.eo-exp-moves {
    border-top: 0;
}

.eo-exp-moves li {
    padding: var(--eo-space-sm) var(--eo-space-md);
}

/* the foot's cancel stands as a real button beside the edit button: outlined, with the red word */
[data-exp-panel] .eo-sidepanel__foot > .eo-btn--danger-ghost {
    background: var(--eo-surface);
    border-color: var(--eo-border);
}

[data-exp-panel] .eo-sidepanel__foot > .eo-btn--danger-ghost:hover {
    background: var(--eo-danger-10);
    border-color: var(--eo-danger-25);
}

/* the receipt photo shows whole, never wider than its card; a tap opens it full size */
.eo-exp-receipt {
    display: block;
    text-align: center;
}

.eo-exp-receipt img {
    max-width: 100%;
    max-height: 640px;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

/* a small phone: history keeps only its icon, so the edit button and ⋮ share its line */
@media (max-width: 575.98px) {
    .eo-exp-head .pd-head__actions > .eo-btn {
        flex: 1 1 auto;
    }

    .eo-exp-head .pd-head__actions > .eo-exp-history {
        flex: 0 0 var(--eo-control-h);
        width: var(--eo-control-h);
        padding: 0;
    }

    .eo-exp-head .eo-exp-history > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
/* ==== money-expenses: end ==== */

/* ==== money-accounts: start (owned by the accounts page work; edit only between these two lines) ==== */
/* the accounts list: the product page's facts strip on its own card, so no line above it */
.eo-acct-strip > .pd-facts {
    border-top: 0;
}

/* a taka number never breaks in two ("৳ / 1,15,350") at any width */
.pd-facts.eo-acct-facts dd {
    white-space: nowrap;
}

/* a number below zero turns red, its grey line stays grey: the line only explains, it is not the warning */
.pd-facts.eo-acct-facts > .pd-fact.is-danger p {
    color: var(--eo-text-muted);
}

/* an account page's head tile: the kind of account as an icon in its own soft colour, the size of a product photo */
.eo-acct-photo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-acct-photo .svg-icon {
    width: 24px;
    height: 24px;
}

.eo-acct-photo--info { color: var(--eo-info-strong); background: var(--eo-info-10); }
.eo-acct-photo--warning { color: var(--eo-warning-strong); background: var(--eo-warning-10); }
.eo-acct-photo--neutral { color: var(--eo-text-2); background: var(--eo-neutral-10); }

/* the head's grey line: a dot between the items but never at the start of a wrapped line; every item carries its dot
   in front, the list moves left by one dot's room and the clip hides the dot that starts each line */
.pd-head__meta.eo-acct-meta {
    margin-left: -15px;
    clip-path: inset(0 0 0 15px);
}

.pd-head__meta.eo-acct-meta > li {
    position: relative;
    padding-left: 15px;
}

.pd-head__meta.eo-acct-meta > li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 3px;
    height: 3px;
    margin: 0;
    background: var(--eo-text-subtle);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* the statement card's head is one bar: the period picker on the left, the kind of entry on the right */
.eo-acct-statement__bar {
    flex: 1 1 auto;
}

/* the kind box is wide enough for its longest names ("পাইকারি কাস্টমারের টাকা"); a phone gives it the row */
.eo-acct-statement__bar .eo-filterbar__actions .eo-field {
    width: calc(var(--eo-space-3xl) * 5);
    max-width: 100%;
    margin: 0;
}

@media (max-width: 575.98px) {
    .eo-acct-statement__bar .eo-filterbar__actions,
    .eo-acct-statement__bar .eo-filterbar__actions .eo-field {
        width: 100%;
    }
}

/* a phone: taka amounts run long ("৳ 4,42,104.55"), so the numbers stack one under another, each on one line */
@media (max-width: 575.98px) {
    .pd-facts.eo-acct-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-facts.eo-acct-facts > .pd-fact {
        padding: var(--eo-space-sm) var(--eo-space-md);
        border-top: 1px solid var(--eo-border);
        border-left: 0;
    }

    .pd-facts.eo-acct-facts > .pd-fact:first-child {
        border-top: 0;
    }

    .pd-facts.eo-acct-facts dd {
        white-space: nowrap;
    }
}

/* a phone keeps the statement's table and slides it sideways: the entry column gets room for its words and note */
.eo-acct-statement__table > .eo-table {
    min-width: calc(var(--eo-space-3xl) * 11);
}

/* a tablet or a laptop with the sidebar open: a long account name ends in "…" so the balance, the status and the ⋮
   stay in view instead of sliding off the right edge */
@media (min-width: 576px) and (max-width: 1199.98px) {
    /* the screen less the page gutters, the other five columns and the tile: 150px on a 768px tablet, more when wider */
    .eo-acct-table .eo-namecell__text {
        max-width: max(150px, calc(100vw - 614px));
    }

    .eo-acct-table .eo-namecell__text :is(.eo-cell-main, .eo-cell-sub) {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* the same with the 260px sidebar open */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .eo-acct-table .eo-namecell__text {
        max-width: max(150px, calc(100vw - 874px));
    }
}

/* the grey rows hold a name as wide as a real account name, so the amount columns sit where they will be */
.eo-acct-table .eo-table-skel .eo-rpt-skel-stack {
    /* it gives way on a narrower screen instead of running into the next column */
    flex: 0 1 calc(var(--eo-space-3xl) * 6);
    min-width: 0;
}

/* ==== money-accounts: end ==== */

/* ==== money-vat: start (owned by the vat page work; edit only between these two lines) ==== */
/* a laptop with the sidebar open: the order number waits in the row's ⋮ menu, so the row fits without scrolling */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .eo-table-wrap[data-table="vat_invoices"] [data-col="order"] {
        display: none;
    }
}

/* sales register: the month's four figures are a card of their own, so the strip needs no line above it */
.eo-vat-reghead > .pd-facts {
    border-top: 0;
}

/* the table card's toolbar (shared toolbar rule): pills on the left; month, shop and the download on the right */
.eo-vat-regbar .eo-vat-month,
.eo-vat-regbar .eo-vat-store {
    flex: 0 0 auto;
    margin: 0;
}

.eo-vat-regbar .eo-vat-month {
    width: 170px;
}

.eo-vat-regbar .eo-vat-store {
    width: 170px;
}

/* a phone: month and shop share their line (the shared toolbar rule gives the pickers a line of their own), the
   download keeps only its icon at the right end; 44px to tap */
@media (max-width: 575.98px) {
    .eo-vat-regbar .eo-vat-month,
    .eo-vat-regbar .eo-vat-store {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    /* the pickers and the download share the whole line and may shrink: a 320px phone had them 4px past the edge */
    .eo-vat-regbar .eo-filterbar__actions {
        flex: 1 1 100%;
        min-width: 0;
        margin-left: 0;
    }

    /* "নভেম্বর 2026" needs the wider share; the shop name may shorten */
    .eo-vat-regbar .eo-vat-month {
        flex-grow: 3;
    }

    .eo-vat-regbar .eo-vat-store {
        flex-grow: 2;
    }

    .eo-vat-regbar .eo-vat-month .eo-control {
        padding-right: var(--eo-space-sm);
        padding-left: var(--eo-space-sm);
    }

    .eo-vat-regbar .eo-control,
    .eo-vat-regbar .eo-vat-regbar__download {
        height: 44px;
    }

    .eo-vat-regbar .eo-vat-regbar__download {
        flex: 0 0 44px;
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .eo-vat-regbar__label {
        display: none;
    }
}

/* a phone: the month's taka figures carry paisa, so the four numbers drop their icons to stay on one line */
@media (max-width: 575.98px) {
    .eo-vat-reghead .pd-fact {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-vat-reghead .pd-fact > :not(.pd-fact__icon) {
        grid-column: 1;
    }

    .eo-vat-reghead .pd-fact__icon {
        display: none;
    }

    .eo-vat-reghead .pd-fact dd {
        font-size: var(--eo-fs-lg);
    }
}

/* the "নতুন ইনভয়েস" tick list: the whole order cell ticks the row */
.eo-vat-pick__label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.eo-vat-pick__label .eo-cell-main {
    font-weight: var(--eo-fw-semibold);
}

/* on a phone each order stays one short row: tick, number and customer, amount */
@media (max-width: 575.98px) {
    .eo-vat-pick .eo-table-wrap--cards tbody tr:not(.eo-table-empty) {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: var(--eo-space-sm);
        align-items: center;
    }

    .eo-vat-pick .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td,
    .eo-vat-pick .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td.eo-table__check {
        position: static;
        padding: 0;
        text-align: left;
    }

    .eo-vat-pick .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td:last-child {
        text-align: right;
    }

    .eo-vat-pick .eo-table-wrap--cards tbody tr:not(.eo-table-empty) > td::before {
        content: none;
    }
}

/* VAT invoice details: the head's tile takes the product photo's place and size */
.eo-vat-head__tile {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: var(--eo-radius-sm);
}

.eo-vat-head__tile .svg-icon {
    width: 26px;
    height: 26px;
}

/* a taka figure never breaks in two ("৳ / 6,008.70") */
.eo-vat-head .pd-fact dd {
    white-space: nowrap;
}

/* the bill's phone list sits inside the card, edge to edge under its title; wider screens keep the table */
.eo-vat-replist.eo-replist {
    display: none;
    border: 0;
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-vat-replist .eo-replist__row {
    padding: 10px var(--eo-space-md);
}

@media (max-width: 575.98px) {
    .eo-vat-lines {
        display: none;
    }

    .eo-vat-replist.eo-replist {
        display: block;
    }

    /* two facts a row: a tighter icon gap leaves the taka figure room on one line */
    .eo-vat-head .pd-fact {
        column-gap: var(--eo-space-sm);
    }

    .eo-vat-head .pd-fact dd {
        font-size: var(--eo-fs-lg);
    }

    .eo-vat-head .eo-vat-head__order {
        display: none;
    }

    .eo-vat-head__tile {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    /* history and print share the line, the ⋮ keeps its size at the end */
    .eo-vat-head .pd-head__actions {
        flex-wrap: nowrap;
    }

    .eo-vat-head .pd-head__actions > .eo-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* the customer grid has as many columns as it has short facts, so no cell stands empty */
.eo-vat-info--1 { grid-template-columns: minmax(0, 1fr); }
.eo-vat-info--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eo-vat-info--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 575.98px) {
    .eo-vat-info--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-vat-info--3 > div:nth-child(3):not(.eo-desk-info__wide) {
        grid-column: 1 / -1;
    }
}

/* label and value rows in the side cards: a long address wraps under itself on the right, the label keeps its line */
.eo-vat-rows li > span:first-child {
    flex-shrink: 0;
}

.eo-vat-rows li > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

/* ==== money-vat: end ==== */

/* ==== money-payments: start (owned by the payments page work; edit only between these two lines) ==== */

/* phones: the name gets the width; the date moves left under the method and the order number goes right */
@media (max-width: 575.98px) {
    [data-table="order_payments"] tbody tr:not(.eo-table-empty) > td[data-col="method"] {
        padding-left: 0;
    }

    [data-table="order_payments"] tbody tr:not(.eo-table-empty) > td[data-col="date"] {
        grid-column: 1;
        white-space: normal;
    }

    [data-table="order_payments"] tbody tr:not(.eo-table-empty) > td[data-col="order"] {
        grid-column: 2;
        padding-left: 0;
        text-align: right;
    }
}

/* a tablet and a small laptop (768-1365px) leave the list about 715px: the date and the ⋮ stay inside the card. Half the
   usual gap between columns, the customer a smaller share (the phone number still whole), and the method and the
   status may take two lines */
@media (min-width: 768px) and (max-width: 1365.98px) {
    [data-table="order_payments"]:not(#eo-cards) > .eo-table > :is(thead, tbody, tfoot) > tr > :is(th, td):not(:first-child) {
        padding-left: var(--eo-space-sm);
    }

    [data-table="order_payments"]:not(#eo-cards) > .eo-table > :is(thead, tbody, tfoot) > tr > :is(th, td):not(:last-child) {
        padding-right: var(--eo-space-sm);
    }

    [data-table="order_payments"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="customer"] > * {
        max-width: 150px;
    }

    [data-table="order_payments"]:not(#eo-cards) > .eo-table > tbody > tr > td:is([data-col="method"], [data-col="status"]),
    [data-table="order_payments"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="method"] :is(.eo-cell-main, .eo-cell-sub),
    [data-table="order_payments"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="status"] > .eo-status-dot {
        white-space: normal;
    }
}

/* the list's one-line date and time; the desktop table shows the date with the time under it instead */
.eo-paylist-when {
    display: none;
}

/* the order page's payment box: three small totals, then one line per payment */
.eo-paybox__sum {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
}

.eo-paybox__note {
    margin: var(--eo-space-xs) 0 0;
    font-size: var(--eo-fs-sm);
}

.eo-paybox__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-paybox__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: var(--eo-space-sm);
    align-items: center;
    padding: var(--eo-space-sm) var(--eo-space-md) var(--eo-space-sm) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-paybox__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-paybox__text .eo-cell-main,
.eo-paybox__text .eo-cell-sub {
    white-space: normal;
    overflow-wrap: anywhere;
}

.eo-paybox__end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.eo-paybox__empty {
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    border-top: 1px solid var(--eo-border);
}

@media (max-width: 575.98px) {
    .eo-paybox__row {
        padding-left: var(--eo-space-md);
    }

    .eo-paybox__empty {
        padding: var(--eo-space-md);
    }
}
/* ==== money-payments: end ==== */

/* ==== pages-ordp: start (owned by the returns, parcels, pickups, riders, customers, abandoned, wholesale
   buyers, resellers and affiliates lists; edit only between these two lines) ==== */
/* the one table card toolbar of these lists follows the shared toolbar rule (TOOLBAR, FILTER BAR AND TABLE TOOLS) */
/* the toolbar's ⋮ (rare pages and downloads) is a square button like the column button beside it */
.eo-ordp-bar .eo-ordp-more > .eo-btn {
    width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
    color: var(--eo-text-2);
    border-radius: var(--eo-radius);
}

/* phones: a secondary button with words on a wide screen keeps only its icon, square at the main button's 44px */
@media (max-width: 575.98px) {
    .eo-ordp-bar .eo-ordp-more > .eo-btn {
        width: 44px;
        height: 44px;
    }

    .eo-ordp-bar > .eo-row > .eo-ordp-squash {
        width: 44px;
        height: 44px;
        flex: none;
        justify-content: center;
        padding: 0;
    }

    .eo-ordp-squash__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* the rows' one grey line of key facts (courier · reason · days); only the phone and tablet card shows it */
.eo-ordp-facts {
    display: none;
}

/* the parcel list on a laptop: the last update shows its day alone (the time stays in its hover, as on a phone), so the
   ⋮ column stays inside the card at 1366px instead of sliding off its right edge */
@media (min-width: 768px) and (max-width: 1439.98px) {
    .eo-table-wrap[data-table="parcels"] td[data-col="updated"] .eo-time-part {
        display: none;
    }
}

/* a status the shared rider menu or the booking poll still draws as a badge reads as dot + word, like the rest */
.eo-ordp-list .eo-ordp-state .eo-badge {
    gap: var(--eo-space-xs);
    height: auto;
    padding: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-normal);
    line-height: inherit;
    color: var(--eo-text);
    background: transparent;
    border: 0;
}

.eo-ordp-list .eo-ordp-state .eo-badge__dot {
    width: 7px;
    height: 7px;
}

.eo-ordp-list .eo-ordp-state .eo-badge--neutral {
    color: var(--eo-text-muted);
}

.eo-ordp-list .eo-ordp-state .eo-badge--neutral .eo-badge__dot {
    background: var(--eo-border-strong);
}

/* ==== pages-ordp: end ==== */

/* ==== pages-team: start (owned by the staff, attendance, performance and activity page work; edit only between these two lines) ==== */
/* a numbers card with no title row: the strip is the whole card, no line on top */
.eo-tm-facts > .pd-facts {
    border-top: 0;
}

.eo-tm-facts .pd-fact dd {
    white-space: nowrap;
}

/* the staff list beside the settings menu: a store list wraps sooner, so the ⋮ column stays inside the card
   (laptops and up; below that the list slides sideways, one line a cell, so the cell has no cap) */
@media (min-width: 1024px) {
    .eo-table td.eo-tm-stores {
        min-width: 140px;
        max-width: 240px;
        white-space: normal;
    }
}

/* the toolbars of these pages follow the shared toolbar rule (TOOLBAR, FILTER BAR AND TABLE TOOLS); the day or
   month picker is as wide as a date, never stretched (attendance's day picker joins the filter form through form="…") */
.eo-tm-bar .eo-tm-date {
    flex: none;
    width: 156px;
}

/* a tablet: the month sheet keeps only its icon */
@media (max-width: 1199.98px) {
    .eo-tm-icon-sm {
        width: var(--eo-control-h-sm);
        padding: 0;
        justify-content: center;
    }

    .eo-tm-icon-sm > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* salary: the sheet's state and its one grey line lead the bar; the month picker is as wide as its words */
.eo-tm-salary-bar .eo-status-dot {
    flex: none;
}

.eo-tm-salary-hint {
    min-width: 0;
}

.eo-tm-salary-bar .eo-filterbar__actions .eo-select {
    width: auto;
}

/* month sheet: the letter legend leads the bar in place of pills */
.eo-tm-legend.eo-team-legend {
    gap: var(--eo-space-xs) var(--eo-space-md);
    margin-bottom: 0;
}

.eo-tm-legend > .eo-row {
    white-space: nowrap;
}

/* a phone: two numbers a row */
@media (max-width: 575.98px) {
    .eo-tm-facts .pd-fact {
        column-gap: var(--eo-space-sm);
    }

    .eo-tm-facts .pd-fact dt,
    .eo-tm-facts .pd-fact p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* taka sums run long ("৳ 81,038.45"), so the salary numbers stack one under another, each on one line */
    .eo-tm-facts--money .pd-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-tm-facts--money .pd-facts > .pd-fact {
        padding: var(--eo-space-sm) var(--eo-space-md);
        border-top: 1px solid var(--eo-border);
        border-left: 0;
    }

    .eo-tm-facts--money .pd-facts > .pd-fact:first-child {
        border-top: 0;
    }

    .eo-tm-salary-bar .eo-tm-main {
        min-width: 0;
    }

    .eo-tm-salary-bar .eo-tm-main > .svg-icon,
    .eo-tm-bar > .eo-row > .eo-btn--primary > .svg-icon {
        display: none;
    }
}
/* phone and tablet rows on the team pages use the short card from pages-team-a (.eo-tma-list); only these extras here */
.eo-tm-short {
    display: none;
}

@media (max-width: 1023.98px) {
    /* activity: "2 ঘণ্টা আগে" on the short card, the full date and time on the wide table */
    .eo-tma-list td[data-m="fig"] > .eo-tm-wide {
        display: none;
    }

    .eo-tma-list td[data-m="fig"] > .eo-tm-short {
        display: inline;
    }

    /* staff: the last login is a quiet note, not a sum */
    .eo-table-wrap.eo-tma-list tbody tr:not(.eo-table-empty) > td.eo-tm-quiet-fig {
        font-weight: var(--eo-fw-normal);
        font-size: var(--eo-fs-sm);
        color: var(--eo-text-muted);
    }

    /* shifts: the time is the figure; "overnight" stays on the wide table */
    .eo-tma-list td[data-m="fig"] .eo-cell-sub {
        display: none;
    }

    .eo-tma-list td[data-m="fig"] .eo-team-time {
        white-space: nowrap;
    }
}
/* ==== pages-team: end ==== */

/* ==== pages-comm: start (owned by the calls, SMS, pixel events, support, webhook deliveries and bills page work; edit only between these two lines) ==== */
/* shared fix (approved): a short settings page on a tablet keeps the folded settings menu and the page at the top;
   without it the main area's full height stretched the two grid rows and left a big gap between them */
.eo-content--settings {
    align-content: start;
}

/* the one grey line of key facts (eo-comm-sub) stays hidden everywhere: the wide table shows the same facts in their own
   columns and the phone card as labelled lines (below a laptop the lead column's own rule would show it twice;
   :not(#eo-cards) only lends the selector an id's weight, as eo-tma-sub) */
.eo-comm-list .eo-comm-sub,
.eo-comm-list:not(#eo-cards) .eo-comm-sub {
    display: none;
}

/* SMS history: "why it was sent" keeps one line (full text on hover), so a row is not three short lines tall */
.eo-comm-cut {
    display: block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SMS history beside the settings menu: the message keeps two lines in a narrower column, so the date and the retry
   button stay inside the card */
.eo-comm-list[data-table="sms_history"] td[data-col="message"] {
    min-width: 0;
    max-width: 160px;
}

@media (min-width: 1024px) {
    .eo-comm-list[data-table="sms_history"] .eo-table th,
    .eo-comm-list[data-table="sms_history"] .eo-table td {
        padding-right: 10px;
        padding-left: 10px;
    }

    .eo-comm-list[data-table="sms_history"] td[data-col="status"] .eo-cell-sub {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* a figure written two ways: short in the table under its column name, with its unit in the phone row */
.eo-comm-list .eo-comm-phone {
    display: none;
}

/* support on a laptop: the subject gives a little width, so the row's open button is not pushed past the card */
@media (min-width: 1024px) and (max-width: 1599.98px) {
    .eo-comm-list .eo-namecell--clip .eo-namecell__text {
        max-width: 290px;
    }
}

/* phones: a long status ("আপনার উত্তরের অপেক্ষায়") may wrap; it stays on the right of its label like every other card line.
   the grey line under the name (a bill's period, a delivery's time) wraps too instead of ending in "…" */
@media (max-width: 575.98px) {
    .eo-table-wrap--cards.eo-comm-list:not(#eo-cards) td.eo-comm-name .eo-cell-sub {
        white-space: normal;
    }

    .eo-table-wrap.eo-comm-list tbody tr:not(.eo-table-empty) > td.eo-comm-state {
        white-space: normal;
    }

    .eo-comm-list .eo-comm-state .eo-status-dot {
        align-items: baseline;
        white-space: normal;
        text-align: left;
    }

    /* SMS history card: "why it was sent" and the message sit on the right of their label like every other line
       (the table's narrow column caps pulled them left, next to the label) */
    .eo-comm-list[data-table="sms_history"] td[data-col="message"] {
        max-width: none;
    }

    .eo-comm-list .eo-comm-cut {
        max-width: none;
        white-space: normal;
    }
}
/* the table card's toolbar follows the shared toolbar rule (TOOLBAR, FILTER BAR AND TABLE TOOLS) */
/* the toolbar's ⋮ is a square button like the column button */
.eo-comm-bar .eo-comm-more > .eo-btn {
    width: var(--eo-control-h-sm);
    height: var(--eo-control-h-sm);
    color: var(--eo-text-2);
    border-radius: var(--eo-radius);
}

/* call report: the quick periods on the left, the exact dates and the custom period on the right */
.eo-comm-period {
    align-items: center;
}

.eo-comm-dates {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* a numbers card of its own (only the strip, no title row), as on the money pages */
.eo-comm-facts > .pd-facts {
    border-top: 0;
}

.eo-comm-facts .pd-fact dd {
    white-space: nowrap;
}

.eo-comm-facts .pd-fact p.is-quiet {
    color: var(--eo-text-subtle);
}

/* webhook deliveries head: the webhook as an icon tile the size of a product photo; grey once it is switched off */
.eo-comm-hook {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius-sm);
}

.eo-comm-hook.is-off {
    color: var(--eo-text-2);
    background: var(--eo-neutral-10);
}

.eo-comm-hook .svg-icon {
    width: 24px;
    height: 24px;
}

/* the head's grey line: a dot between the items but never at the start of a wrapped line (the accounts page's way:
   every item carries its dot in front, the clip hides the one that starts each line) */
.pd-head__meta.eo-comm-meta {
    margin-left: -15px;
    clip-path: inset(0 0 0 15px);
}

.pd-head__meta.eo-comm-meta > li {
    position: relative;
    max-width: 100%;
    padding-left: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-head__meta.eo-comm-meta > li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 3px;
    height: 3px;
    margin: 0;
    background: var(--eo-text-subtle);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* a long webhook address breaks anywhere, at most two lines, instead of a word that runs off the card */
@media (max-width: 1199.98px) {
    .pd-head__title.eo-comm-url {
        display: -webkit-box;
        overflow: hidden;
        word-break: break-all;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 1199.98px) {
    /* two numbers a row: a third one takes the whole row instead of leaving a hole beside it */
    .eo-comm-facts .pd-fact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* phones: a page's one small button with words keeps only its icon (the shared toolbar rule places it) */
@media (max-width: 575.98px) {
    .eo-comm-bar .eo-comm-side {
        justify-content: center;
        min-width: var(--eo-control-h-sm);
        padding: 0;
    }

    .eo-comm-bar .eo-comm-side > span {
        display: none;
    }

    /* call report: the dates on the left of the second line, the custom period as a calendar icon on the right */
    .eo-comm-period > .eo-row {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* the numbers stack one under another, so a number and its grey line each keep to one line */
    .eo-comm-facts--stack > .pd-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-comm-facts--stack > .pd-facts > .pd-fact {
        padding: var(--eo-space-sm) var(--eo-space-md);
        border-top: 1px solid var(--eo-border);
        border-left: 0;
    }

    .eo-comm-facts--stack > .pd-facts > .pd-fact:first-child {
        border-top: 0;
    }
}
/* ==== pages-comm: end ==== */

/* ==== pages-sell: start ==== */
/* brands, catalog items, Daraz products and log, site products, SEO items, landing pages, offers, discounts, cash shifts:
   one table card toolbar as on the product list (search, pills, filter, the way back / shop picker, main button, columns) */
.eo-sell-bar .eo-sell-picker {
    flex: none;
    width: 200px;
}

/* the way back keeps one line; a long site name ("rakibfashion.com.bd") is cut with "…" */
.eo-sell-back {
    max-width: 220px;
}

.eo-sell-back > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the toolbar follows the shared toolbar rule (TOOLBAR, FILTER BAR AND TABLE TOOLS); on a phone the way back keeps
   only its arrow, a square button beside the filter or the main button */
@media (max-width: 575.98px) {
    .eo-sell-bar .eo-sell-back {
        min-width: var(--eo-control-h-sm);
        padding: 0;
        justify-content: center;
    }

    .eo-sell-bar .eo-sell-back > :not(.svg-icon) {
        display: none;
    }
}

/* the rows as short cards (the payments and claims lists): line 1 the name and the main figure, line 2 one grey line of
   key facts with the status under the figure, an optional line 3; the ⋮ at the end. Cells are marked in the view:
   eo-sl-name, eo-sl-fig, eo-sl-status, eo-sl-line3; the old facts line (eo-sl-facts) stays hidden at every width */
.eo-table-wrap .eo-sl-facts,
.eo-table-wrap .eo-sl-phone,
.eo-table-wrap:not(#eo-cards) .eo-sl-facts {
    display: none;
}

.eo-sl-problem {
    color: var(--eo-danger-strong);
}

/* a tablet and a small laptop (768-1365px) leave these lists about 715px: the status (and on the log, the message) stays
   inside the card instead of sliding out of view. The linked product, the log's kind and the message may wrap (the log
   time keeps its one line), the Daraz name and the landing title take a smaller share (:not(#eo-cards) outweighs the
   shared one-line rule below 1024px), and the Daraz product list, with the most columns, keeps half the usual gap
   between them (the products list's way) */
@media (min-width: 768px) and (max-width: 1365.98px) {
    :is([data-table="daraz_listings"], [data-table="marketplace_sync_logs"]):not(#eo-cards) > .eo-table > tbody > tr > td:is([data-col="variant"], [data-col="type"], [data-col="message"]),
    [data-table="daraz_listings"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="variant"] .eo-inline__value,
    [data-table="marketplace_sync_logs"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="type"] .eo-cell-main {
        white-space: normal;
    }

    [data-table="daraz_listings"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="variant"] {
        min-width: 170px;
    }

    [data-table="marketplace_sync_logs"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="message"] {
        min-width: 160px;
    }

    [data-table="daraz_listings"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="product"] > .eo-namecell {
        max-width: 190px;
    }

    [data-table="landing_pages"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="title"] {
        min-width: 0;
    }

    [data-table="landing_pages"]:not(#eo-cards) > .eo-table > tbody > tr > td[data-col="title"] > .eo-namecell {
        max-width: 240px;
    }

    [data-table="daraz_listings"]:not(#eo-cards) > .eo-table > :is(thead, tbody) > tr > :is(th, td):not(.eo-table__check, :last-child) {
        padding-right: var(--eo-space-sm);
    }

    [data-table="daraz_listings"]:not(#eo-cards) > .eo-table > :is(thead, tbody) > tr > :is(th, td):not(.eo-table__check, [data-col="product"]) {
        padding-left: var(--eo-space-sm);
    }
}

/* ==== pages-sell: end ==== */

/* ==== pages-team-a: start (owned by the ai calls, payouts, delivery problems, wholesale dues, my page, holidays, webhooks,
   api keys, courier settings and pixels page work; edit only between these two lines) ==== */
/* a numbers card with no title row: the strip is the whole card, no line on top */
.eo-tma-facts > .pd-facts {
    border-top: 0;
}

.eo-tma-facts .pd-fact dd {
    white-space: nowrap;
}

/* the table card's bar follows the shared toolbar rule (TOOLBAR, FILTER BAR AND TABLE TOOLS) */
/* the sheet's year switcher (holidays) */
.eo-tma-year {
    flex-wrap: nowrap;
}

/* a phone: the year switcher and the main button take their own line under the title, the button fills it */
@media (max-width: 575.98px) {
    .eo-card__head:has(> .eo-tma-year) {
        flex-wrap: wrap;
    }

    .eo-card__head > .eo-tma-year {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .eo-tma-year > .eo-btn--primary {
        flex: 1 1 100%;
        justify-content: center;
        height: var(--eo-control-h-lg);
    }

    .eo-tma-year .eo-btn-group > .eo-btn {
        height: var(--eo-control-h-lg);
    }
}

@media (max-width: 767.98px) {
    .eo-tma-facts .pd-fact {
        column-gap: var(--eo-space-sm);
    }

    .eo-tma-facts .pd-fact dt,
    .eo-tma-facts .pd-fact p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* taka sums run long, so a money strip stacks one number under another on a phone, each on one line */
@media (max-width: 575.98px) {
    .eo-tma-facts--money .pd-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-tma-facts--money .pd-facts > .pd-fact {
        grid-column: auto;
        padding: var(--eo-space-sm) var(--eo-space-md);
        border-top: 1px solid var(--eo-border);
        border-left: 0;
    }

    .eo-tma-facts--money .pd-facts > .pd-fact:first-child {
        border-top: 0;
    }
}

/* the list's phone line (facts joined by " · "); the wide table shows the same facts in their own columns, and the phone
   card shows them as labelled lines, so the line stays hidden everywhere (the lead column's own rule would show it below
   a laptop; :not(#eo-cards) only lends the selector an id's weight) */
.eo-tma-sub,
.eo-tma-list:not(#eo-cards) .eo-tma-sub {
    display: none;
}

/* a row's one action: a word on the wide table, a quiet square icon at the row's end on a phone or tablet */
@media (max-width: 1023.98px) {
    .eo-btn.eo-tma-act {
        width: var(--eo-control-h-sm);
        padding: 0;
        justify-content: center;
    }

    .eo-btn.eo-tma-act > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* webhooks beside the settings menu on a laptop: a long address ends in "…" (the full one on hover), so the status, the
   last success and the ⋮ stay inside the card instead of sliding off its right edge */
@media (min-width: 1024px) and (max-width: 1599.98px) {
    .eo-tma-list .eo-sup-url {
        max-width: 340px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* webhooks on a tablet or small laptop (the settings menu folds above the list at 1024, so the list has less room than
   the address cap above was made for): the last success shows its day alone (the time stays in its hover, as the taka
   list) and the address ends in "…" sooner, so the ⋮ stays inside the card */
@media (min-width: 768px) and (max-width: 1365.98px) {
    .eo-tma-list td[data-col="last-success"] .eo-time-part {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1365.98px) {
    .eo-tma-list .eo-sup-url {
        max-width: 300px;
    }
}

/* ==== pages-team-a: end ==== */

/* ==== pages-team-b: start (owned by the packing, cash counter, unit, inbox rule and saved reply, seo, domain, ads and phone line page work; edit only between these two lines) ==== */
/* a list row's phone line ("শুধু পুরো সংখ্যা · পিস"): hidden on a wide screen, where the columns say it */
.eo-tb-sub,
.eo-tb-only {
    display: none;
}

/* a numbers card with no title row: the strip is the whole card, no line on top */
.eo-tb-facts > .pd-facts {
    border-top: 0;
}

.eo-tb-facts .pd-fact dd {
    white-space: nowrap;
}

/* ads: the report loads its numbers card, an alert and the table into one box; the box steps aside so those parts
   join the page's own column, and the table card's bar (earlier in the page) moves down to sit on the table */
.eo-tb-ads {
    display: contents;
}

.eo-content > .eo-tb-ads-bar {
    order: 2;
    margin-bottom: 0;
    padding: var(--eo-space-md);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-bottom: 0;
    border-radius: var(--eo-radius-xl) var(--eo-radius-xl) 0 0;
}

.eo-tb-ads > .eo-table-wrap,
.eo-tb-ads > .eo-skel-table {
    order: 3;
    margin-top: calc(-1 * var(--eo-space-lg));
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.eo-tb-ads > .pd-head,
.eo-tb-ads > .eo-alert {
    order: 1;
}

/* google feed: the card head already names the link, so its field label is for screen readers only */
.eo-tb-sr-label > .eo-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* a date and time as a fact reads at the size of a word, not a big number */
.pd-fact dd.eo-tb-fact-text {
    font-size: var(--eo-fs-lg);
}

@media (max-width: 767.98px) {
    /* the feed link takes its own line; copy and "new link" sit under it */
    .eo-tb-feed-link {
        flex-wrap: wrap;
    }

    .eo-tb-feed-link > .eo-control {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* the period keeps to one line and ends in "…" when the bar is narrow; its hover text has the full dates */
.eo-tb-ads-bar .eo-mk-period {
    min-width: 0;
    max-width: 100%;
}

.eo-tb-period {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* a phone: two numbers a row; a long grey line ends in "…" instead of a second line */
@media (max-width: 575.98px) {
    .eo-tb-facts .pd-fact {
        column-gap: var(--eo-space-sm);
    }

    .eo-tb-facts .pd-fact dt,
    .eo-tb-facts .pd-fact p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ==== pages-team-b: end ==== */

/* ==== orders-list: the order table, TimoDesk style ==== */
/* columns: the order (number, day and time) · who (round letter, name, phone) · products · status · fraud · the money last on the right · ⋮ */

/* status as a dot and a word (the panel's one status look); the chevron on hover still says it can be changed */
/* line-height 1.5, never 1: the box clips (overflow hidden), and Bangla vowel signs (ে ি) rise above a tight line, so "পেন্ডিং" would read "পোন্ডং" */
[data-table="orders"] td[data-col="status"] .eo-badge {
    height: auto;
    padding: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-normal);
    line-height: 1.5;
    color: var(--eo-text);
    background: transparent;
    border-color: transparent;
}

[data-table="orders"] td[data-col="status"] .eo-badge__dot {
    width: 7px;
    height: 7px;
    background: var(--eo-border-strong);
}

[data-table="orders"] td[data-col="status"] .eo-badge--success .eo-badge__dot { background: var(--eo-success); }
[data-table="orders"] td[data-col="status"] .eo-badge--warning .eo-badge__dot { background: var(--eo-warning); }
[data-table="orders"] td[data-col="status"] .eo-badge--danger .eo-badge__dot { background: var(--eo-danger); }
[data-table="orders"] td[data-col="status"] .eo-badge--info .eo-badge__dot { background: var(--eo-accent); }
[data-table="orders"] td[data-col="status"] .eo-badge--neutral { color: var(--eo-text-muted); }

/* the order: its number in the brand color, the day and time in grey under it */
.eo-orders-id {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    line-height: 1.4;
}

.eo-orders-num {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    text-decoration: none;
}

.eo-orders-num:hover {
    color: var(--eo-brand-strong);
    text-decoration: underline;
}

/* who: one size of round letter on every row (a walk-in sale has no phone line), the name in medium weight, never bold */
[data-table="orders"] .eo-orders-person .eo-namecell__tile {
    width: 40px;
    height: 40px;
}

[data-table="orders"] .eo-orders-person .eo-namecell__text .eo-cell-main {
    max-width: 220px;
    font-weight: var(--eo-fw-medium);
}

/* the first product on one line, cut with … when long; "আরও 2টি প্রোডাক্ট" under it */
[data-table="orders"] td.eo-orders-items .eo-cell-main {
    max-width: 200px;
    overflow: hidden;
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-2);
    text-overflow: ellipsis;
}

[data-table="orders"] td[data-col="fraud"] {
    white-space: nowrap;
}

[data-table="orders"] td[data-col="fraud"] .eo-status-dot {
    color: var(--eo-text);
}

[data-table="orders"] td[data-col="fraud"].is-flag .eo-status-dot {
    font-weight: var(--eo-fw-medium);
}

/* the money: the last column, right aligned */
[data-table="orders"] td.eo-orders-total {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-align: right;
}

[data-table="orders"] .eo-table__actions {
    width: 1%;
    white-space: nowrap;
}

/* desktop: calm, even rows; the short columns hug what they hold, the products take the spare width */
@media (min-width: 576px) {
    [data-table="orders"] .eo-table th,
    [data-table="orders"] .eo-table td {
        padding-inline: var(--eo-space-md);
    }

    [data-table="orders"] .eo-table tbody td {
        height: 64px;
    }

    [data-table="orders"] :is(th, td):is([data-col="number"], [data-col="status"], [data-col="fraud"], [data-col="district"], [data-col="return_risk"], [data-col="source"], [data-col="cod"], [data-col="total"]) {
        width: 1%;
        white-space: nowrap;
    }

    [data-table="orders"] :is(th, td)[data-col="customer"] {
        width: 24%;
    }

    [data-table="orders"] th[data-col="total"] {
        text-align: right;
    }

    [data-table="orders"] th[data-col="total"] .eo-sort {
        justify-content: flex-end;
    }
}

/* a wide screen has room for the product name in full */
@media (min-width: 1600px) {
    [data-table="orders"] td.eo-orders-items .eo-cell-main {
        max-width: 360px;
    }
}

/* a small laptop (1366): a little less air between columns keeps every default column in view without a sideways scroll */
@media (min-width: 576px) and (max-width: 1439.98px) {
    [data-table="orders"] .eo-table th,
    [data-table="orders"] .eo-table td {
        padding-inline: 10px;
    }

    [data-table="orders"] td.eo-orders-items .eo-cell-main {
        max-width: 148px;
    }
}

/* phone card: who ordered and how much on top, the order and its status under it, a risk warning last */
@media (max-width: 575.98px) {
    [data-table="orders"] tbody tr:not(.eo-table-empty) > td[data-col="customer"] {
        display: block !important;
        grid-row: 1;
        grid-column: 2;
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty) > td[data-col="total"] {
        display: block !important;
        grid-row: 1;
        grid-column: 3;
        align-self: start;
        font-weight: var(--eo-fw-semibold);
    }

    /* the order line sits under the name, past the round letter, so the two texts start on one edge */
    [data-table="orders"] tbody tr:not(.eo-table-empty) > td[data-col="number"] {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 var(--eo-space-sm);
        grid-row: 2;
        grid-column: 2;
        padding-left: 48px;
        font-size: var(--eo-fs-sm);
    }

    [data-table="orders"] tbody td[data-col="number"] .eo-orders-num {
        font-weight: var(--eo-fw-medium);
    }

    /* the status sits at the right of the order line: the amount (with its payment line) keeps the top right to itself */
    [data-table="orders"] tbody tr:not(.eo-table-empty) > td[data-col="status"] {
        display: block !important;
        grid-row: 2;
        grid-column: 3;
        align-self: center;
        text-align: right;
    }

    [data-table="orders"] tbody td[data-col="status"] .eo-badge {
        font-size: var(--eo-fs-sm);
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty) > td[data-col="fraud"].is-flag {
        display: block !important;
        grid-row: 3;
        grid-column: 2 / span 2;
        padding-left: 48px;
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty) > td[data-col="fraud"].is-flag .eo-status-dot {
        font-size: var(--eo-fs-sm);
    }

    [data-table="orders"] tbody tr:not(.eo-table-empty) {
        row-gap: var(--eo-space-xs);
        padding-block: var(--eo-space-md);
    }
}
/* the fraud result in the list is a quiet button: it looks like the plain text it was, the card opens on hover or tap */
.eo-fraud-peek-btn {
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    font: inherit;
    color: inherit;
    cursor: help;
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--eo-border-strong);
}

.eo-fraud-peek-btn:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

/* a small floating card (it floats, so it may carry a shadow) */
.eo-hovercard {
    position: fixed;
    z-index: var(--eo-z-popover);
    width: 320px;
    max-width: calc(100vw - 16px);
    max-height: 70vh;
    padding: var(--eo-space-md) var(--eo-space-base);
    overflow-y: auto;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
}

.eo-hovercard__loading {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: var(--eo-space-md) 0;
}

.eo-fraud-peek {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
}

.eo-fraud-peek .fx-section {
    margin: 0;
}

/* a finished order: what the check said when it was placed, above today's answer */
.eo-fraud-peek__then {
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-fraud-peek__foot,
.eo-fraud-peek__empty {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}
/* the fraud column keeps one width whatever it shows (a button, a result, "কোনো তথ্য পাওয়া যায়নি"), so a new look never shifts the row */
@media (min-width: 576px) {
    [data-table="orders"] .eo-table :is(th, td)[data-col="fraud"] {
        width: 172px;
        min-width: 172px;
    }

    /* both fit their content, so the status needs its own air on the right or it runs into the fraud check (owner, 15 Nov 2026) */
    [data-table="orders"] .eo-table :is(th, td)[data-col="status"] {
        padding-inline-end: var(--eo-space-2xl);
    }
}

/* the check time stays pinned at the card's foot while a long answer scrolls above them */
.eo-fraud-peek__foot {
    position: sticky;
    bottom: calc(-1 * var(--eo-space-md));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    margin: 0 calc(-1 * var(--eo-space-base)) calc(-1 * var(--eo-space-md));
    padding: var(--eo-space-sm) var(--eo-space-base);
    background: var(--eo-surface);
    border-top: 1px solid var(--eo-border);
}

/* when it was checked (cut with … if long, the full time in its tooltip) */
.eo-fraud-peek__when {
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==== orders-list: end ==== */

/* ==== topbar-balance: on the billing pages the taka balance and its deposit button in one quiet box of the top bar's
   height, as TimoDesk's credit box (owner, 18 Nov 2026): white with the bar's fine border, the label over the figure,
   a small filled button at its right end ==== */
.eo-topbar__balance {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    height: var(--eo-control-h-sm);
    padding: 0 3px 0 4px;
    background: var(--eo-surface);
    /* the brand's line, so the box stands out from the plain buttons beside it (owner, 18 Nov 2026) */
    border: 1px solid var(--eo-brand);
    border-radius: var(--eo-radius);
}

.eo-topbar__balance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-topbar__balance-icon .svg-icon {
    width: 15px;
    height: 15px;
}

.eo-topbar__balance-text {
    display: flex;
    flex-direction: column;
    padding-right: var(--eo-space-xs);
    line-height: 1.1;
}

.eo-topbar__balance-label {
    font-size: 0.6875rem;
    color: var(--eo-text-muted);
}

.eo-topbar__balance-text strong {
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    white-space: nowrap;
}

.eo-topbar__balance > .eo-btn {
    height: 28px;
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
}

.eo-topbar__balance > .eo-btn .svg-icon {
    width: 14px;
    height: 14px;
}

/* a phone: the figure and a + button only, so the bar keeps room for the avatar */
@media (max-width: 575.98px) {
    .eo-topbar__balance-icon,
    .eo-topbar__balance-label,
    .eo-topbar__balance > .eo-btn > span {
        display: none;
    }

    .eo-topbar__balance > .eo-btn {
        width: 28px;
        padding: 0;
    }
}

/* the invoice list's action cell: the pay and PDF buttons side by side (owner, 18 Nov 2026) */
.eo-inv-actions {
    display: inline-flex;
    gap: var(--eo-space-xs);
}

/* ==== deposit window: one big amount box, the quick amounts as even tiles under it, the way to pay as tiles ==== */
.eo-dep {
    gap: var(--eo-space-lg);
}

.eo-dep__amount {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-dep__amount .eo-input-group,
.eo-dep__amount .eo-control {
    height: 52px;
}

.eo-dep__amount .eo-control {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
}

.eo-dep__presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

.eo-dep__preset {
    height: 36px;
    font-family: inherit;
    font-size: var(--eo-fs-sm-plus);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease);
}

.eo-dep__preset:hover {
    border-color: var(--eo-brand);
}

.eo-dep__preset.is-active {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

.eo-dep__min {
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-dep__methods {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-dep__methods > legend {
    margin-bottom: var(--eo-space-sm);
}

.eo-dep__method {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 52px;
    margin: 0;
    padding: var(--eo-space-sm) 44px var(--eo-space-sm) var(--eo-space-sm);
    cursor: pointer;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-dep__method:hover {
    border-color: var(--eo-text-subtle);
}

.eo-dep__method:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
}

/* the radio drawn as a ring at the tile's right end */
.eo-dep__method > input {
    position: absolute;
    top: 50%;
    right: var(--eo-space-md);
    width: 18px;
    height: 18px;
    margin: -9px 0 0;
    cursor: pointer;
    background: var(--eo-surface);
    border: 1.5px solid var(--eo-text-subtle);
    border-radius: 50%;
    appearance: none;
}

.eo-dep__method > input:checked {
    border: 5px solid var(--eo-brand);
}

.eo-dep__method > input:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

.eo-dep__method-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--eo-brand);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-dep__method-icon .svg-icon {
    width: 17px;
    height: 17px;
}

.eo-dep__method-name {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* buying credit: the price it comes to, and the balance tile's second line */
.eo-dep__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-dep__total strong {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    font-variant-numeric: tabular-nums;
}

.eo-dep__method-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-dep__method-sub {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

@media (max-width: 575.98px) {
    .eo-dep__presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==== topbar-desk: the confirmation desk, highlighted in the top bar with its waiting count ==== */
/* an outlined button beside the filled "নতুন অর্ডার", so the pair reads as secondary and main; the green count says how many wait */
.eo-topbar__desk {
    position: relative;
    gap: var(--eo-space-xs);
    color: var(--eo-text);
    background: var(--eo-surface);
    border-color: var(--eo-border);
}

.eo-topbar__desk:hover {
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border-color: var(--eo-border-strong);
}

.eo-topbar__desk .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-brand);
}

.eo-topbar__desk-count {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand-strong);
    background: var(--eo-brand-10);
}

/* measured on ন (no vowel sign above it): the Bangla head line is 10px over the baseline, so the letters' body sits 1.5px above the button middle; the words come down that much and the icon drops the shared lift, so both centre on the button */
.eo-topbar .eo-topbar__desk > .svg-icon,
.eo-topbar .eo-topbar__new > .svg-icon {
    transform: none;
}

.eo-topbar__desk .eo-topbar__label,
.eo-topbar__new .eo-topbar__label {
    position: relative;
    top: 1.5px;
}

/* laptop: both fold to icons, so they are the same square */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .eo-topbar .eo-topbar__new {
        justify-content: center;
        width: var(--eo-control-h-sm);
        padding: 0;
    }
}

/* a small phone shrinks the + to 36px, so the desk and the tray shrink with it */
@media (max-width: 399.98px) {
    .eo-topbar .eo-topbar__desk {
        width: 36px;
        height: 36px;
    }

    .eo-topbar .eo-topbar__tools {
        height: 36px;
    }
}

/* laptop and phone: the button is the icon alone, the count rides on its corner */
@media (max-width: 1199.98px) {
    .eo-topbar__desk {
        width: var(--eo-control-h-sm);
        padding: 0;
    }

    .eo-topbar__desk-count {
        position: absolute;
        top: -7px;
        right: -7px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        color: var(--eo-on-brand);
        background: var(--eo-brand);
    }

    /* the count sticks out past the button's corner, so the button keeps that much room on its right: the count never
       lands on the + beside it */
    .eo-topbar__desk:has(.eo-topbar__desk-count:not([hidden])) {
        margin-right: 6px;
    }
}
/* ==== topbar-desk: end ==== */

/* ==== qv-calls: the quick view's calls, right under the call button ==== */
.eo-qv-calls .eo-qv__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.eo-qv-calls__count {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-subtle);
}

.eo-qv-calls__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

/* the panel title while the order loads: a grey bar the width of an order number ("#ORD-1234") */
.eo-qv-title-skel {
    display: inline-block;
    width: calc(var(--eo-space-3xl) * 2 + var(--eo-space-base));
    height: var(--eo-space-lg);
    vertical-align: middle;
}

/* one call: a direction icon, the result and talk time on top, when and who under it, "শুনুন" on the right */
.eo-qv-call {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-qv-call + .eo-qv-call {
    border-top: 1px solid var(--eo-border);
}

.eo-qv-call__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: 50%;
}

.eo-qv-call__icon .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-qv-call__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.eo-qv-call__top {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    line-height: 1.5;
}

.eo-qv-call__top .eo-status-dot {
    color: var(--eo-text);
}

.eo-qv-call__time {
    font-variant-numeric: tabular-nums;
    color: var(--eo-text-2);
}

.eo-qv-call__meta {
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-qv-call__listen {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
}

.eo-qv-call__listen .svg-icon {
    width: 14px;
    height: 14px;
}

/* a call still ringing or talking: its icon in the brand colour, pulsing softly */
@keyframes eo-qv-call-live {
    0%, 100% { box-shadow: 0 0 0 0 var(--eo-brand-20); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

.eo-qv-call.is-live .eo-qv-call__icon {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    animation: eo-qv-call-live 1.6s ease-in-out infinite;
}

/* the list a call just changed glows once */
@keyframes eo-qv-calls-updated {
    0%, 40% { background-color: var(--eo-brand-10); }
    100% { background-color: transparent; }
}

.eo-qv-calls.is-updated .eo-qv-calls__list {
    animation: eo-qv-calls-updated 2.4s ease-out;
}
/* a call still going: its clock ticks in the brand colour */
.eo-qv-call__time.is-live {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
}
/* ==== qv-calls: end ==== */

/* ==== qv-skel: the quick view's grey shape while an order loads (partials/quick_view_skeleton) ==== */
/* each grey bar is as tall as the text or button it stands for, so the real panel lands without a jump */
.eo-qv-skel .eo-skel {
    flex-shrink: 0;
}

.eo-qv-skel__pill { width: 72px; height: 16px; }
.eo-qv-skel__date { width: 150px; height: 14px; }
.eo-qv-skel__btn { flex: 1 1 0; height: var(--eo-control-h-sm); border-radius: var(--eo-radius); }
.eo-qv-skel__label { width: 56px; height: 12px; }
.eo-qv-skel__name { width: 140px; height: 18px; }
.eo-qv-skel__phone { width: 100px; height: 13px; }
.eo-qv-skel__avatar { width: 40px; height: 40px; border-radius: 50%; }
.eo-qv-skel__round { width: 28px; height: 28px; border-radius: 50%; }
.eo-qv-skel__num { width: 24px; height: 16px; }
.eo-qv-skel__money { width: 56px; height: 14px; }
.eo-qv-skel__money--big { width: 88px; height: 22px; }
.eo-qv-skel__w40 { width: 40%; height: 14px; }
.eo-qv-skel__w60 { width: 60%; height: 14px; }
.eo-qv-skel__w75 { width: 75%; height: 14px; }
.eo-qv-skel__small { height: 11px; }

.eo-qv-skel__lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eo-qv__stats > .eo-qv-skel__lines {
    padding: var(--eo-space-sm);
}

.eo-sidepanel__foot.eo-qv-skel > .eo-skel {
    flex: 1 1 0;
    height: var(--eo-control-h);
}
/* the quick view's status and the buyer's risk: a dot and a word, as in the order list */
.eo-qv__status,
.eo-qv__risk {
    font-weight: var(--eo-fw-medium);
}
/* ==== qv-skel: end ==== */

/* ==== qv-folds: the quick view's sections fold on their title (dashboard.js remembers it per browser) ==== */
/* the title reads as a control (owner, 18 Nov 2026): dark text, the whole row lights up on hover, and the arrow sits in a
   small bordered square at the right end, like a button */
[data-qv-part] > .eo-qv__label:not(.eo-skel) {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: calc(var(--eo-space-xs) * -1) calc(var(--eo-space-sm) * -1);
    padding: var(--eo-space-xs) var(--eo-space-sm);
    font-size: var(--eo-fs-md);
    color: var(--eo-text);
    border-radius: var(--eo-radius);
    cursor: pointer;
    user-select: none;
    transition: background-color var(--eo-dur) var(--eo-ease);
}

[data-qv-part] > .eo-qv__label:not(.eo-skel):hover {
    background: var(--eo-surface-2);
}

[data-qv-part] > .eo-qv__label:focus-visible {
    outline: none;
    box-shadow: var(--eo-focus);
}

/* the arrow in its square at the far right; the calls count, when there is one, just before it */
.eo-qv__fold {
    flex: none;
    box-sizing: content-box;
    width: 14px;
    height: 14px;
    margin-left: auto;
    padding: 5px;
    color: var(--eo-text-muted);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
    transition: transform var(--eo-dur) var(--eo-ease), color var(--eo-dur) var(--eo-ease), border-color var(--eo-dur) var(--eo-ease);
}

[data-qv-part] > .eo-qv__label:hover .eo-qv__fold {
    color: var(--eo-text);
    border-color: var(--eo-border-strong);
}

.eo-qv-calls > .eo-qv__label {
    justify-content: flex-start;
}

.eo-qv-calls__count {
    margin-left: auto;
}

.eo-qv-calls__count + .eo-qv__fold {
    margin-left: 0;
}

/* folded: only the title stays, its chevron turned to point right */
[data-qv-part].is-folded > :not(.eo-qv__label) {
    display: none !important;
}

[data-qv-part].is-folded > .eo-qv__label .eo-qv__fold {
    transform: rotate(-90deg);
}
/* ==== qv-folds: end ==== */

/* ==== qv-cards: the quick view's customer and bill as two cards of one look ==== */
/* the bill clips its grey strips to its corners; the customer card must not clip (its edit form opens a place list),
   so its last grey row rounds its own corners instead */
.eo-qv-person,
.eo-qv-bill {
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-qv-bill {
    overflow: hidden;
}

.eo-qv-person > :last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

/* the × stays in the middle of the box, not of the box and its open list */
.eo-contact-form .eo-loc__clear {
    top: calc(var(--eo-control-h) / 2);
}

/* the contact form's place list opens in the form itself, pushing what is under it down: a floating list was cut off
   at the foot of the side panel and the screen */
.eo-contact-form .eo-loc__panel {
    position: static;
    min-width: 0;
    margin-top: var(--eo-space-xs);
    box-shadow: none;
}

/* customer: who on top (round letter, name, phone) with the risk on the right; each further part under a hairline */
.eo-qv-person__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
}

.eo-qv-person__who {
    min-width: 0;
}

.eo-qv-person__who .eo-namecell__tile {
    width: 40px;
    height: 40px;
}

.eo-qv-person__who .eo-cell-main {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    white-space: normal;
    overflow-wrap: anywhere;
}

.eo-qv-person__who .eo-cell-sub {
    font-size: var(--eo-fs-md);
    color: var(--eo-text-2);
}

.eo-qv-person__head .eo-qv__risk {
    flex: 0 0 auto;
    font-size: var(--eo-fs-sm);
}

.eo-qv-person__row {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-md);
    line-height: 1.5;
    overflow-wrap: anywhere;
    border-top: 1px solid var(--eo-border);
}

.eo-qv-person__row > .svg-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 4px;
    color: var(--eo-text-subtle);
}

.eo-qv-person__notes {
    flex-direction: column;
}

.eo-qv-person__note {
    display: flex;
    gap: var(--eo-space-sm);
    margin: 0;
    color: var(--eo-text-2);
}

.eo-qv-person__note .svg-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 4px;
    color: var(--eo-text-subtle);
}

/* a repeat buyer's three numbers: the card's own strip, no second border */
.eo-qv-person__stats {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--eo-border);
    border-radius: 0;
}

/* "কাস্টমারের তথ্য বদলান" and its form: the card's last, quiet line (gone when the order can no longer change) */
.eo-qv-person__edit {
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

/* nothing to offer (the order can no longer change, no buyer page): no empty grey strip. :empty outweighs the flex rule */
.eo-qv-person__edit:empty {
    display: none;
}

.eo-qv-person__edit .eo-contact-form.show,
.eo-qv-person__edit .eo-contact-form.collapsing {
    margin-top: var(--eo-space-sm);
}

/* bill: one row a product (its name, "qty × price" in grey under it, the amount on the right) */
.eo-qv-bill__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-qv-bill__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-qv-bill__item + .eo-qv-bill__item {
    border-top: 1px solid var(--eo-border);
}

.eo-qv-bill__what {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-qv-bill__name {
    font-size: var(--eo-fs-md);
    line-height: 1.5;
    color: var(--eo-text);
    overflow-wrap: anywhere;
}

.eo-qv-bill__unit {
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-text-muted);
}

.eo-qv-bill__amount {
    flex: 0 0 auto;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    line-height: 1.5;
    color: var(--eo-text);
    white-space: nowrap;
}

/* the sums on a soft strip, the cash to collect as the card's last, bold line */
.eo-qv-bill__sums {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

.eo-qv-bill__sums > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    line-height: 1.6;
}

.eo-qv-bill__sums dt {
    font-weight: var(--eo-fw-normal);
}

.eo-qv-bill__sums dd {
    margin: 0;
    color: var(--eo-text-2);
    white-space: nowrap;
}

.eo-qv-bill__due {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

.eo-qv-bill__due strong {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
}

/* skeleton rows inside the cards keep the cards' own spacing */
.eo-qv-bill__sums > div > .eo-skel,
.eo-qv-bill__due > .eo-skel {
    flex: 0 0 auto;
}
.eo-qv-person__edit .eo-contact-edit {
    margin-top: 0;
}
/* ==== qv-cards: end ==== */

/* ==== qv-fraud: the quick view's courier fraud check section ==== */
.eo-qv-fraud__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

.eo-qv-fraud__body .fx-section {
    gap: var(--eo-space-md);
    margin: 0;
}

/* when it was checked, on one line */
.eo-qv-fraud__foot,
.eo-qv-fraud__empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
}

.eo-qv-fraud__empty {
    padding: var(--eo-space-sm) var(--eo-space-md);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

/* ==== qv-fraud: end ==== */

/* ==== history: an order's history, the same in the quick view and on the order page (partials/history_item) ==== */
/* each step: an icon in a round bubble, joined to the next by a thin line; what happened, then who and when in grey */
.eo-history {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-history__item {
    position: relative;
    display: flex;
    gap: var(--eo-space-sm);
    padding-bottom: var(--eo-space-md);
}

.eo-history__item:last-child {
    padding-bottom: 0;
}

/* the thin line from this bubble down to the next */
.eo-history__item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 13px;
    width: 1px;
    background: var(--eo-border);
}

.eo-history__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--eo-text-muted);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: 50%;
}

.eo-history__icon .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-history__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding-top: 3px;
}

.eo-history__what {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px var(--eo-space-sm);
    margin: 0;
    line-height: 1.5;
}

.eo-history__what .eo-status-dot {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-history__action {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-history__detail {
    color: var(--eo-text-2);
}

.eo-history__meta {
    margin: 0;
    font-size: var(--eo-fs-sm);
    line-height: 1.5;
    color: var(--eo-text-muted);
}
/* ==== history: end ==== */

/* ==== order-page: the order details page (orders/show) ==== */
/* the head's line: the status as a dot and a word, then the source and the time in grey */
.eo-od-meta {
    flex-wrap: wrap;
    gap: var(--eo-space-xs) var(--eo-space-md);
}

.eo-od-meta__status {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-od-meta__item {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    color: var(--eo-text-muted);
}

.eo-od-meta__item .svg-icon {
    width: 14px;
    height: 14px;
}

/* the journey: one row of steps joined by a line; done steps green with a tick, the current one ringed, a stop red */
.eo-od-journey {
    margin-bottom: var(--eo-space-lg);
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.eo-journey {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-journey__step {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

/* the line to the next step, from this dot's edge to the next dot's edge */
.eo-journey__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--eo-border);
    border-radius: 2px;
}

.eo-journey__step.is-done:not(:last-child)::after {
    background: var(--eo-success);
}

.eo-journey__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: var(--eo-space-xs);
    color: var(--eo-text-subtle);
    background: var(--eo-surface);
    border: 2px solid var(--eo-border);
    border-radius: 50%;
}

.eo-journey__dot .svg-icon {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.eo-journey__step.is-done .eo-journey__dot {
    color: var(--eo-surface);
    background: var(--eo-success);
    border-color: var(--eo-success);
}

.eo-journey__step.is-current .eo-journey__dot {
    border-color: var(--eo-warning);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--eo-warning) 18%, transparent);
}

.eo-journey__step.is-current .eo-journey__dot::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--eo-warning);
    border-radius: 50%;
}

.eo-journey__step.is-stopped .eo-journey__dot {
    color: var(--eo-surface);
    background: var(--eo-danger);
    border-color: var(--eo-danger);
}

.eo-journey__label {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    line-height: 1.4;
    color: var(--eo-text);
}

.eo-journey__step.is-ahead .eo-journey__label {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-journey__step.is-stopped .eo-journey__label {
    color: var(--eo-danger);
}

.eo-journey__at {
    min-height: 1.4em;
    font-size: var(--eo-fs-xs);
    line-height: 1.4;
    color: var(--eo-text-muted);
}

.eo-journey__step.is-current .eo-journey__at {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-warning-strong);
}

/* three areas: the order (main), who and how safe (top of the side), the rest of the side.
   A phone reads them as: who and how safe, the order, the rest */
.eo-od {
    display: grid;
    grid-template-areas: "top" "main" "rest";
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-lg);
    align-items: start;
}

.eo-od__main { grid-area: main; }
.eo-od__top { grid-area: top; }
.eo-od__rest { grid-area: rest; }

@media (min-width: 992px) {
    .eo-od {
        grid-template-areas: "main top" "main rest";
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
        grid-template-rows: auto 1fr;
        row-gap: var(--eo-space-base);
    }
}

.eo-od__top,
.eo-od__rest {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
}

/* the side's sections sit on the page, not in boxes: the first has no rule above it */
.eo-od__top > .eo-qv__section:first-child,
.eo-od__rest > .eo-qv__section:first-child,
.eo-od__rest > .eo-card + .eo-qv__section {
    padding-top: 0;
    border-top: 0;
}

.eo-od-report {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    color: var(--eo-danger);
}

.eo-od-report .svg-icon {
    width: 14px;
    height: 14px;
}

/* a titled block in the main column without a box of its own (the parcels carry their own cards) */
.eo-od-block {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-od-block__title {
    margin: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* a parcel: courier and code on the left, its status on the right; numbers, updates, actions under hairlines */
.eo-od-parcel__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-od-parcel__courier {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-od-parcel__courier .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--eo-text-muted);
}

.eo-od-parcel__code {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--eo-fs-sm);
}

.eo-od-parcel__copy {
    width: 26px;
    height: 26px;
}

.eo-od-parcel__copy .svg-icon {
    width: 13px;
    height: 13px;
}

.eo-od-parcel__when {
    font-size: var(--eo-fs-sm) !important;
}

.eo-od-parcel__events {
    display: block;
}

.eo-od-parcel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.eo-od-parcel__actions .eo-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.eo-od-parcel__actions .eo-link-btn .svg-icon {
    width: 14px;
    height: 14px;
}

/* work facts: label on the left, value on the right, one per line */
.eo-od-facts {
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
}

.eo-od-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: 6px 0;
    font-size: var(--eo-fs-sm);
}

.eo-od-facts > div + div {
    border-top: 1px solid var(--eo-border);
}

.eo-od-facts dt {
    flex: 0 0 auto;
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-od-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--eo-text);
    text-align: right;
    overflow-wrap: anywhere;
}

.eo-od-attempts {
    display: block;
}

.eo-od-attempts .eo-od-sub__title {
    margin: 0 0 var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

/* phone: the journey's words stay short and the steps keep their width */
@media (max-width: 575.98px) {
    .eo-od-journey {
        padding: var(--eo-space-md) var(--eo-space-sm);
    }

    .eo-journey__label {
        font-size: var(--eo-fs-xs);
    }

    .eo-journey__at {
        font-size: 10px;
    }
}
/* ==== order-page: end ==== */

/* ==== bulkbar-more: the select bar's "আরও" (the bar keeps the sidebar's navy, so it stands out over a white table) ==== */
/* "আরও" sits in the row like the other words; its menu opens upward over the table (fixed, so the row's scroll never clips it) */
.eo-bulkbar__more {
    flex-shrink: 0;
}

.eo-bulkbar__more .dropdown-menu {
    min-width: 200px;
}
/* ==== bulkbar-more: end ==== */

/* ==== order-page-2: the order page's facts, risk, customer links and the phone journey ==== */
/* a fact that asks for something (when to call again) stands out; a cancel reason reads red */
.eo-od-facts > div.is-attention dd {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-warning-strong);
}

.eo-od-facts > div.is-danger dd {
    color: var(--eo-danger);
}

.eo-od-facts dd a {
    font-weight: var(--eo-fw-medium);
}

/* return risk as a side section: the percentage beside its title, the meter and reasons in the card, the advice last */
.eo-od-risk__value {
    font-weight: var(--eo-fw-semibold);
}

.eo-od-risk__value.is-danger { color: var(--eo-danger); }
.eo-od-risk__value.is-warning { color: var(--eo-warning-strong); }
.eo-od-risk__value.is-success { color: var(--eo-success-strong); }

.eo-od-risk > .eo-qv__label .eo-od-risk__value + .eo-qv__fold {
    margin-left: 0;
}

.eo-od-risk > .eo-qv__label .eo-od-risk__value {
    margin-left: auto;
}

.eo-od-risk__body {
    flex-direction: column;
    align-items: stretch;
    gap: var(--eo-space-sm);
}

.eo-od-risk__reasons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
}

.eo-od-risk__reasons li {
    position: relative;
    padding-left: 14px;
}

.eo-od-risk__reasons li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 2px;
    width: 5px;
    height: 5px;
    background: var(--eo-border-strong);
    border-radius: 50%;
}

.eo-od-risk__advice {
    align-items: flex-start;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
}

.eo-od-risk__advice.is-danger { color: var(--eo-danger-strong); }
.eo-od-risk__advice.is-warning { color: var(--eo-warning-strong); }

.eo-od-risk__advice > .svg-icon {
    margin-top: 3px;
    color: currentColor;
}

/* the customer card's last line: "বদলান" on the left, the buyer's profile on the right, the edit form under both */
.eo-qv-person__edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-xs) var(--eo-space-md);
}

.eo-qv-person__edit > form {
    flex: 1 0 100%;
    order: 3;
}

.eo-qv-person__profile {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--eo-fs-sm);
}

.eo-qv-person__profile .svg-icon {
    width: 14px;
    height: 14px;
}

/* the confirmation tries sit under their own small title inside the facts card */
.eo-od-attempts .eo-history__item {
    padding-bottom: var(--eo-space-sm);
}

.eo-od-attempts .eo-history__item:last-child {
    padding-bottom: 0;
}

/* phone: the journey reads top to bottom, one step a line with its time on the right, instead of five cramped columns */
@media (max-width: 575.98px) {
    .eo-od-journey {
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-journey {
        flex-direction: column;
    }

    .eo-journey__step {
        flex-direction: row;
        align-items: center;
        gap: var(--eo-space-sm);
        min-height: 36px;
        text-align: left;
    }

    .eo-journey__step:not(:last-child)::after {
        top: calc(50% + 14px);
        bottom: auto;
        left: 13px;
        right: auto;
        width: 2px;
        height: calc(100% - 28px);
    }

    .eo-journey__dot {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .eo-journey__label {
        font-size: var(--eo-fs-md);
    }

    .eo-journey__at {
        min-height: 0;
        margin-left: auto;
        font-size: var(--eo-fs-sm);
    }
}
/* ==== order-page-2: end ==== */

/* ==== order-page-3: the key-number strip, the product list and the sums ==== */
/* the strip sits in the journey's card, under the steps: the bill, the cash to collect, the courier, the agent */
.eo-od-journey {
    padding: 0;
    overflow: hidden;
}

.eo-od-journey > .eo-journey {
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.eo-od-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--eo-surface-2);
}

.eo-od-strip > .pd-fact {
    padding: var(--eo-space-md) var(--eo-space-lg);
}

.eo-od-strip > .pd-fact + .pd-fact {
    border-left: 1px solid var(--eo-border);
}

.eo-od-strip dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-od-strip p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the products: one row each, a picture, what it is, the math, the amount at the right edge */
.eo-od-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* the photo, the name, the sum and the amount share one middle line, so a one-line item does not hang off the photo's top */
.eo-od-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(150px, auto) minmax(96px, auto);
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-od-item:first-child {
    border-top: 0;
}

.eo-od-item__pic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    object-fit: cover;
    color: var(--eo-text-subtle);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-od-item__pic .svg-icon {
    width: 20px;
    height: 20px;
}

.eo-od-item__what,
.eo-od-item__math {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-od-item__name {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    line-height: 1.45;
    color: var(--eo-text);
    overflow-wrap: anywhere;
}

.eo-od-item__sub {
    font-size: var(--eo-fs-sm);
    line-height: 1.45;
    color: var(--eo-text-muted);
}

.eo-od-item__math {
    font-size: var(--eo-fs-md);
    color: var(--eo-text-2);
    text-align: right;
    white-space: nowrap;
}

.eo-od-item__amount {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    text-align: right;
    white-space: nowrap;
}

/* the sums: full-width rows on a soft strip (never a small block that leaves the left of the card empty) */
.eo-od-sums {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
    font-size: var(--eo-fs-md);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
}

.eo-od-sums > div {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-md);
    line-height: 1.7;
}

.eo-od-sums dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-od-sums dd {
    margin: 0;
    color: var(--eo-text-2);
    white-space: nowrap;
}

.eo-od-sums__total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--eo-border);
}

.eo-od-sums__total dt,
.eo-od-sums__total dd {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-od-due {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
    border-top: 1px solid var(--eo-border);
}

.eo-od-due strong {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
}

/* a wide screen gives the side a fair share, so the two columns weigh about the same */
@media (min-width: 1440px) {
    .eo-od {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 34%);
    }
}

/* laptop: the strip keeps four short facts */
@media (max-width: 1199.98px) {
    .eo-od-strip > .pd-fact {
        grid-template-columns: minmax(0, 1fr);
        padding: var(--eo-space-md);
    }

    .eo-od-strip .pd-fact__icon {
        display: none;
    }
}

/* phone: the strip is two by two; a product's math moves under its name */
@media (max-width: 575.98px) {
    .eo-od-journey > .eo-journey {
        padding: var(--eo-space-md) var(--eo-space-base);
    }

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

    .eo-od-strip > .pd-fact:nth-child(3) {
        border-left: 0;
    }

    .eo-od-strip > .pd-fact:nth-child(n + 3) {
        border-top: 1px solid var(--eo-border);
    }

    /* a long value ("কাউকে দেওয়া হয়নি") wraps instead of being cut */
    .eo-od-strip dd,
    .eo-od-strip p {
        font-size: var(--eo-fs-md);
        white-space: normal;
    }

    .eo-od-strip p {
        font-size: var(--eo-fs-xs);
    }

    .eo-od-item {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: var(--eo-space-md);
    }

    .eo-od-item__pic {
        grid-row: span 2;
        width: 44px;
        height: 44px;
    }

    .eo-od-item__math {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }

    .eo-od-item__amount {
        grid-column: 3;
        grid-row: 1;
    }

    .eo-od-sums,
    .eo-od-due {
        padding-inline: var(--eo-space-md);
    }
}
/* ==== order-page-3: end ==== */

/* ==== order-page-4: the order page on the product page's pattern (pd-head, pd-facts, pd-layout, x-panel) ==== */
/* the head's tile: where the order came from, in the brand's soft colour */
.pd-head__photo.eo-od-head__tile {
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-color: transparent;
}

.eo-od-head__tile .svg-icon {
    width: 24px;
    height: 24px;
}

.eo-od-head .pd-head__meta a {
    color: var(--eo-brand);
}

/* the steps sit between the head's top row and its numbers, each part under a fine line */
.eo-od-head__journey {
    padding: var(--eo-space-base) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* the side column is a little wider than the product page's: it holds the buyer, the fraud check and the facts */
.pd-layout.eo-od-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

@media (min-width: 1600px) {
    .pd-layout.eo-od-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
    }
}

/* one column below 1200px, as the product page: beside the menu and a 360px side column the products were squeezed to
   one letter a line (a 1024px laptop) */
@media (max-width: 1199.98px) {
    .pd-layout.eo-od-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* the products card ends at the total: the cash to collect is in the head's numbers */
.eo-od-sums {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

/* the shared customer card inside a panel: the panel is the box, so the card draws none of its own;
   the buyer's orders are in the head's numbers, so the card leaves them out here */
.eo-od-buyer .eo-qv-person {
    border: 0;
    border-radius: 0;
}

.eo-od-buyer .eo-qv-person__head {
    padding-top: var(--eo-space-xs);
}

.eo-od-buyer .eo-qv-person__stats {
    display: none;
}

.eo-od-buyer .eo-qv-person__edit {
    border-bottom-right-radius: var(--eo-radius-xl);
    border-bottom-left-radius: var(--eo-radius-xl);
}

/* the call list inside its panel: the panel is the box */
.pd-side .eo-qv-calls__list {
    border: 0;
    border-radius: 0;
}

/* the facts panel's confirmation tries, under a line */
.eo-od-attempts {
    padding: var(--eo-space-sm) var(--eo-space-md) var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

/* return risk: the percentage in the panel's head, the advice in a soft box */
.eo-od-risk__advice {
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-od-risk__advice.is-danger { color: var(--eo-danger-strong); }
.eo-od-risk__advice.is-warning { color: var(--eo-warning-strong); }

/* a parcel in the delivery panel: courier and code on the left, its status on the right, its updates, its actions */
.eo-od-parcel {
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.eo-od-parcel + .eo-od-parcel {
    padding-top: var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

.eo-od-parcel__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
}

/* the courier's logo leads the parcel, the name and code beside it, the status at the far right */
.eo-od-parcel__logo {
    flex: none;
}

.eo-od-parcel__logo > .svg-icon {
    color: var(--eo-text-muted);
}

.eo-od-parcel__head .eo-od-parcel__who {
    flex: 1 1 auto;
}

.eo-od-parcel__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-od-parcel__dot {
    width: 3px;
    height: 3px;
    margin: 0 4px;
    background: var(--eo-text-subtle);
    border-radius: 50%;
}

.eo-od-parcel__status {
    flex: 0 0 auto;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-od-parcel__events {
    margin-top: var(--eo-space-md);
}

.eo-od-parcel__none {
    margin: var(--eo-space-md) 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-od-parcel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    margin-top: var(--eo-space-md);
    padding-top: var(--eo-space-md);
    border-top: 1px dashed var(--eo-border);
}

/* the payment card's advance line */
.eo-paybox__advance {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-md);
}

@media (max-width: 575.98px) {
    .eo-od-head__journey {
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-od-parcel {
        padding-inline: var(--eo-space-md);
    }
}
/* phone: the two columns become one list, the buyer and the fraud check first (who to call and how safe), then the order */
@media (max-width: 1199.98px) {
    .eo-od-layout > .pd-main,
    .eo-od-layout > .pd-side {
        display: contents;
    }

    .eo-od-layout > .pd-side > .eo-od-buyer {
        order: -2;
    }

    .eo-od-layout > .pd-side > [data-fraud-card] {
        order: -1;
    }
}
/* back to the list: a quiet square at the head's left */
.pd-head__back {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--eo-text-muted);
    border-radius: var(--eo-radius);
}
/* every card the product page's way: the heading, a full-width hairline under it, then the body with its own breathing room,
   so the heading belongs to its card instead of floating above loose boxes */
.eo-od-layout .eo-card__head {
    border-bottom: 1px solid var(--eo-border);
}

.pd-layout.eo-od-layout .eo-card__head + .eo-card__body {
    padding-top: var(--eo-space-base);
}

/* rows inside a card are split by the same faint line as the product page's lists */
.eo-od-layout .eo-od-item + .eo-od-item,
.eo-od-layout .eo-qv-call + .eo-qv-call,
.eo-od-layout .eo-od-facts > div + div {
    border-top-color: var(--eo-bg-hover);
}

/* the customer card's first row sits right under the hairline, like the product page's first price row */
.eo-od-buyer .eo-qv-person__head {
    padding-top: var(--eo-space-md);
}
/* the fraud card sits right under the customer card on this page, so the customer card does not repeat its result */
.eo-od-buyer .eo-qv-person__risk {
    display: none;
}

/* "ফ্রড রিপোর্ট করুন" is the fraud card's last, quiet line at its left, not a red button floating in the middle */
.pd-side [data-fraud-card] .eo-card__body > .eo-btn--danger-ghost {
    align-self: flex-start;
    height: auto;
    padding: 0;
    font-size: var(--eo-fs-sm);
    background: none;
    border: 0;
}

/* order info: label and value on one line with the cards' own side padding; a value that can be changed (agent, note)
   keeps its pencil outside, so every value ends at the same right edge */
.eo-od-layout .eo-od-facts {
    padding: var(--eo-space-xs) var(--eo-space-lg);
}

.eo-od-facts dd .eo-inline {
    justify-content: flex-end;
}

.eo-od-facts dd .eo-inline__icon {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-right: 4px;
    transform: translateY(-50%);
}

.eo-od-layout .eo-od-attempts {
    padding-inline: var(--eo-space-lg);
}
/* phone: the head's main button takes the full width first, then call, message and "আরও" share one even row */
@media (max-width: 575.98px) {
    .eo-od-head .pd-head__top {
        flex-wrap: wrap;
    }

    .eo-od-head .pd-head__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .eo-od-head .pd-head__actions > .eo-btn--primary {
        grid-column: 1 / -1;
        order: -1;
    }

    .eo-od-head .pd-head__actions > *,
    .eo-od-head .pd-head__actions > .dropdown > .eo-btn {
        width: 100%;
        min-width: 0;
    }

    .eo-od-head .pd-head__actions .eo-btn {
        justify-content: center;
        padding-inline: 6px;
    }
}
/* ==== order-page-4: end ==== */

/* ==== payments-shown: how an order is paid, on the list, the quick view, the order page and the order form ==== */
/* the customer card's fraud result, under its own small label so it never reads as "this buyer has no information" */
.eo-qv-person__risk {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
}

.eo-qv-person__risk-label {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* the list: under the total, how it is paid; an advance asked for and not in yet stands out */
.eo-orders-pay {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-orders-pay.is-info,
.eo-orders-pay.is-success {
    color: var(--eo-success-strong);
}

.eo-orders-pay.is-warning {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-warning-strong);
}

/* the payment lines (quick view's bill card): the summary, then each payment with how, TrxID, number and note */
.eo-pay-lines {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

.eo-pay-lines__state {
    margin: 0;
    font-size: var(--eo-fs-sm);
}

.eo-pay-lines__state .eo-status-dot {
    white-space: normal;
    color: var(--eo-text);
}

.eo-pay-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-md);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.eo-pay-line.is-waiting {
    background: var(--eo-warning-10);
}

.eo-pay-line__what {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.eo-pay-line__method {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-pay-line__sub,
.eo-pay-line__note {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    overflow-wrap: anywhere;
}

.eo-pay-line__note {
    color: var(--eo-text-2);
}

.eo-pay-line__wait {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-warning-strong);
}

.eo-pay-line__amount {
    flex: 0 0 auto;
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

/* the order form's "অগ্রিম পেয়েছি": one small soft card. Its title and × on top, then amount | how, TrxID | number, the note */
.ofx-advance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.ofx-advance[hidden] {
    display: none;
}

.ofx-advance__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
}

.ofx-advance__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.ofx-advance__title .svg-icon {
    width: 15px;
    height: 15px;
    color: var(--eo-brand);
}

.ofx-advance__before {
    font-size: var(--eo-fs-xs);
    color: var(--eo-success-strong);
}

.ofx-advance__head .ofx-x {
    margin-left: auto;
}

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

.ofx-advance__grid .eo-control,
.ofx-advance__grid .eo-input-group__addon {
    height: 32px;
    min-height: 32px;
    font-size: var(--eo-fs-sm);
    background-color: var(--eo-surface);
}

.ofx-advance__grid .eo-control {
    padding: 0 8px;
}

.ofx-advance__grid .eo-input-group__addon {
    padding: 0 8px;
    background: var(--eo-bg-hover);
}

.ofx-advance__grid .eo-control--num {
    font-weight: var(--eo-fw-semibold);
    text-align: right;
}

.ofx-advance__note {
    grid-column: 1 / -1;
}

.ofx-advance .ofx-extra__error {
    margin: 0;
}
/* the order page's payment panel: the summary on top, a payment's note under its line */
.eo-paybox__state .eo-status-dot {
    white-space: normal;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-paybox__note-line {
    color: var(--eo-text-2);
    white-space: normal;
}
/* ==== payments-shown: end ==== */
/* ==== order-page-5: the marked fixes ==== */
/* calls on the order page: the panel is the box, so the list draws no second border; rows line up with the card's title,
   and on a wide column when and who sit on the right of the result instead of leaving the row half empty */
.eo-od-layout .eo-qv-calls__list {
    border: 0;
    border-radius: 0;
}

.eo-od-layout .eo-qv-call {
    padding: var(--eo-space-md) var(--eo-space-lg);
}

.eo-od-layout .eo-od-past__more .eo-qv-call {
    padding-inline: 0;
}

@media (min-width: 576px) {
    .eo-od-layout .pd-main .eo-qv-call__main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--eo-space-md);
    }
}

/* the customer card's last line: a plain row under a faint line, no grey strip poking past the card's round corners */
.eo-od-buyer .eo-qv-person__edit {
    padding: var(--eo-space-sm) var(--eo-space-lg);
    background: none;
    border-top-color: var(--eo-bg-hover);
    border-radius: 0;
}

/* return risk: the meter, then the advice as plain text right under it, no extra grey box */
.eo-od-risk__advice {
    padding: 0;
    color: var(--eo-text-muted);
    background: none;
}
/* the customer card on the order page: no own white box (its square corners hid the card's round ones), and its rows
   start at the same left edge as the card's title */
.eo-od-buyer .eo-qv-person {
    background: none;
}

.eo-od-buyer .eo-qv-person__head,
.eo-od-buyer .eo-qv-person__row {
    padding-inline: var(--eo-space-lg);
}
/* phone: three buttons share one row, so the dropdown carets go (the menus still open) and the gaps get smaller, the labels fit */
@media (max-width: 575.98px) {
    .eo-od-head .pd-head__actions {
        gap: var(--eo-space-xs);
    }

    .eo-od-head .pd-head__actions .eo-btn {
        height: var(--eo-control-h-lg);
        gap: 4px;
        font-size: var(--eo-fs-sm);
    }

    .eo-od-head .pd-head__actions > .eo-btn--primary {
        font-size: var(--eo-fs-md);
    }

    .eo-od-head .pd-head__actions [data-bs-toggle="dropdown"] > span + .svg-icon {
        display: none;
    }
}
/* a return-risk reason's dot sits on the middle of its first line */
.eo-od-risk__reasons li {
    line-height: 1.5;
}

.eo-od-risk__reasons li::before {
    top: calc(0.75em - 2.5px);
}
/* the products card's sums as one line under the items, on white like the rows above: the parts on the left with + and −
   between them (products + delivery − discount), the total on the right under the items' amount column, larger */
.eo-od-layout .eo-od-sums {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--eo-space-sm) var(--eo-space-2xl);
    padding: var(--eo-space-base) var(--eo-space-lg);
    background: none;
    border-top-color: var(--eo-border);
}

.eo-od-layout .eo-od-sums > div {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    line-height: 1.4;
}

.eo-od-layout .eo-od-sums dt {
    font-size: var(--eo-fs-sm);
}

.eo-od-layout .eo-od-sums dd {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    line-height: 1.5;
    color: var(--eo-text);
}

/* + and − sit in the gap before a part, on its amount's line */
.eo-od-layout .eo-od-sums > .is-plus::before,
.eo-od-layout .eo-od-sums > .is-minus::before {
    position: absolute;
    right: calc(100% + var(--eo-space-2xl) / 2);
    bottom: 0;
    font-size: var(--eo-fs-md);
    line-height: 1.5;
    color: var(--eo-text-subtle);
    transform: translateX(50%);
}

.eo-od-layout .eo-od-sums > .is-plus::before { content: "+"; }
.eo-od-layout .eo-od-sums > .is-minus::before { content: "\2212"; }

/* the cost is not part of the bill: kept apart by a line */
.eo-od-layout .eo-od-sums__cost {
    padding-left: var(--eo-space-lg);
    border-left: 1px solid var(--eo-border);
}

.eo-od-layout .eo-od-sums__cost dd {
    color: var(--eo-text-2);
}

.eo-od-layout .eo-od-sums__total {
    align-items: flex-end;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
}

.eo-od-layout .eo-od-sums__total dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-od-layout .eo-od-sums__total dd {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.3;
}

/* phone: one part a line, label on the left and amount on the right, the total under a line */
@media (max-width: 575.98px) {
    .eo-od-layout .eo-od-sums {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: var(--eo-space-md);
    }

    .eo-od-layout .eo-od-sums > div {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

    .eo-od-layout .eo-od-sums > .is-plus::before,
    .eo-od-layout .eo-od-sums > .is-minus::before {
        content: none;
    }

    .eo-od-layout .eo-od-sums > .is-minus dd::before {
        content: "\2212 ";
    }

    .eo-od-layout .eo-od-sums__total dt {
        font-weight: var(--eo-fw-semibold);
        color: var(--eo-text);
    }

    .eo-od-layout .eo-od-sums__cost {
        padding-left: 0;
        border-left: 0;
    }

    .eo-od-layout .eo-od-sums__total {
        margin: 4px 0 0;
        padding-top: var(--eo-space-sm);
        border-top: 1px solid var(--eo-border);
    }

    .eo-od-layout .eo-od-sums__total dd {
        font-size: var(--eo-fs-lg);
    }
}
/* the order page's older calls: they open as more rows of the same list, and "আরও Nটি কল" is a quiet link at the card's foot */
.eo-od-calls__rest .eo-qv-call:first-child {
    border-top: 1px solid var(--eo-bg-hover);
}

.eo-od-calls__foot {
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-bg-hover);
}

.eo-od-calls__toggle {
    padding: 0;
    background: none;
    border: 0;
}

.eo-od-calls__toggle .svg-icon {
    transition: transform 0.2s ease;
}

.eo-od-calls__toggle[aria-expanded="true"] .svg-icon {
    transform: rotate(180deg);
}
.eo-od-calls__toggle[aria-expanded="true"] .eo-od-calls__open,
.eo-od-calls__toggle:not([aria-expanded="true"]) .eo-od-calls__close {
    display: none;
}

/* the head's menus (message, আরও) at the full button size, so all four buttons share one height with the main button */
@media (min-width: 576px) {
    .eo-od-head .pd-head__actions > .dropdown > .eo-btn {
        height: var(--eo-control-h);
        gap: var(--eo-space-sm);
        padding: 0 var(--eo-space-md);
        font-size: var(--eo-fs-base);
    }
}
/* the payment card on the product page's patterns: three money tiles (the stock tiles) right under the card's head line,
   then one stock-movement row per payment with its ⋮ menu at the end */
.eo-paybox__hold {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
}

.pd-hold__item.is-success .pd-hold__icon { color: var(--eo-success-strong); background: var(--eo-success-10); }
.pd-hold__item.is-success strong { color: var(--eo-success-strong); }
.pd-hold__item.is-warning strong { color: var(--eo-warning-strong); }

.eo-paybox .pd-hold__foot {
    align-items: center;
}

.eo-paybox .pd-moves li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding-block: var(--eo-space-md);
}

/* the TrxID and the sender's number must stay readable: the line wraps instead of being cut */
.eo-paybox .pd-moves__text small {
    white-space: normal;
    overflow-wrap: anywhere;
}

.eo-paybox .pd-moves__qty {
    font-size: var(--eo-fs-md);
}

.eo-paybox .eo-paybox__end .eo-status-dot {
    font-size: var(--eo-fs-xs);
}

@media (max-width: 575.98px) {
    .eo-paybox__hold {
        grid-template-columns: minmax(0, 1fr);
    }

    .eo-paybox .pd-moves li {
        padding-inline: var(--eo-space-md);
    }
}
/* a payment's amount with its action right under it, both at the right edge: a short link, not a menu */
.eo-paybox .eo-paybox__end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.eo-paybox__act,
.eo-paybox__acts .eo-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
}

.eo-paybox__act {
    color: var(--eo-text-muted);
}

.eo-paybox__act:hover {
    color: var(--eo-danger-strong);
}

.eo-paybox__act .svg-icon {
    width: 13px;
    height: 13px;
}

.eo-paybox__acts {
    display: inline-flex;
    gap: var(--eo-space-md);
}

.eo-paybox__acts .eo-link-btn--danger {
    color: var(--eo-danger-strong);
}
/* the courier's cash line: its state opens the courier's payout sheet it came on */
.eo-paybox__state-link {
    text-decoration: none;
}

.eo-paybox__state-link:hover .eo-status-dot {
    text-decoration: underline;
}
/* a product line's warning (short stock, a combo pick still due) keeps its colour over the line's grey */
.eo-od-item__sub.eo-tone-warning { color: var(--eo-warning-strong); }
.eo-od-item__sub.eo-tone-danger { color: var(--eo-danger-strong); }
/* the stock-in popup's variation list scrolls with the side panels' thin, soft bar instead of the browser's thick one with arrows */
.sin-lines {
    scrollbar-width: thin;
    scrollbar-color: var(--eo-border-strong) transparent;
}

.sin-lines::-webkit-scrollbar {
    width: 8px;
}

.sin-lines::-webkit-scrollbar-button {
    display: none;
}

.sin-lines::-webkit-scrollbar-thumb {
    background: var(--eo-border-strong);
    border: 2px solid var(--eo-surface);
    border-radius: 8px;
}

.sin-lines::-webkit-scrollbar-track {
    background: transparent;
}
/* ==== order-page-5: end ==== */

/* ==== super admin dashboard (eo-adash): TimoDesk-style cards, activity chart, users, billing ==== */
.eo-adash-attn {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
}

.eo-adash-attn__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
    border: 1px solid var(--eo-warning-25);
    border-radius: var(--eo-radius-pill);
}

.eo-adash-attn__item.is-danger {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
    border-color: var(--eo-danger-25);
}

.eo-adash-attn__item:hover {
    text-decoration: none;
    filter: brightness(0.97);
}

.eo-adash-attn__item .svg-icon {
    width: 16px;
    height: 16px;
}

/* the four business cards: a coloured line on top, a tinted icon, label, number, one grey line and a chevron */
.eo-adash-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-base);
}

@media (min-width: 1200px) {
    .eo-adash-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.eo-adash-card {
    --adash-tone: var(--eo-brand);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
    padding: var(--eo-space-lg);
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-top: 3px solid var(--adash-tone);
    border-radius: var(--eo-radius-xl);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.eo-adash-card:hover {
    color: var(--eo-text);
    text-decoration: none;
    border-color: color-mix(in srgb, var(--adash-tone) 45%, var(--eo-border));
    border-top-color: var(--adash-tone);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--adash-tone) 12%, transparent);
}

.eo-adash-card--purple { --adash-tone: #8B5CF6; }
.eo-adash-card--green { --adash-tone: var(--eo-success); }
.eo-adash-card--orange { --adash-tone: #F97316; }
.eo-adash-card--red { --adash-tone: var(--eo-danger); }

.eo-adash-card__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--adash-tone);
    background: color-mix(in srgb, var(--adash-tone) 12%, transparent);
    border-radius: var(--eo-radius-lg);
}

.eo-adash-card__icon .svg-icon {
    width: 22px;
    height: 22px;
}

.eo-adash-card__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.eo-adash-card__label {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    line-height: 1.3;
    color: var(--eo-text-muted);
}

.eo-adash-card__value {
    font-size: var(--eo-fs-3xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.eo-adash-card__hint {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-adash-card__go {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--eo-text-subtle);
}

a.eo-adash-card:hover .eo-adash-card__go {
    color: var(--adash-tone);
}

/* phones: the icon sits above the text and the chevron moves to the top corner */
@media (max-width: 575.98px) {
    .eo-adash-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--eo-space-sm);
        padding: var(--eo-space-md);
    }

    .eo-adash-card__icon {
        width: 36px;
        height: 36px;
    }

    .eo-adash-card__icon .svg-icon {
        width: 18px;
        height: 18px;
    }

    .eo-adash-card__value {
        font-size: var(--eo-fs-2xl);
    }

    .eo-adash-card__go {
        position: absolute;
        top: var(--eo-space-md);
        right: var(--eo-space-md);
    }
}

/* rows: activity wide and users narrow, then three equal panels */
.eo-adash-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
}

@media (min-width: 1200px) {
    .eo-adash-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

@media (min-width: 768px) {
    .eo-adash-row.eo-adash-row--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* tablet and small laptop: two panels side by side, a third one takes the full width under them */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .eo-adash-row.eo-adash-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eo-adash-row--3 > :nth-child(3):last-child { grid-column: 1 / -1; }
}

.eo-adash-row > .eo-card:only-child {
    grid-column: 1 / -1;
}

/* activity: a row of figure tabs, the picked one underlined */
.eo-adash-metrics {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--eo-border);
    scrollbar-width: none;
}

.eo-adash-metrics::-webkit-scrollbar {
    display: none;
}

.eo-adash-metric {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 110px;
    margin-bottom: -1px;
    padding: var(--eo-space-md) var(--eo-space-lg);
    color: var(--eo-text-muted);
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.eo-adash-metric:hover {
    color: var(--eo-text);
    background: var(--eo-surface-2);
}

.eo-adash-metric.is-active {
    color: var(--eo-brand);
    border-bottom-color: var(--eo-brand);
}

.eo-adash-metric__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
}

.eo-adash-metric__label .svg-icon {
    width: 15px;
    height: 15px;
}

.eo-adash-metric__value {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    font-variant-numeric: tabular-nums;
}

/* the 30 day bars: a left scale, faint lines, one bar a day and a date every fifth day */
.eo-adash-chart {
    display: flex;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-lg) var(--eo-space-lg) var(--eo-space-md);
}

.eo-adash-chart[hidden] {
    display: none;
}

.eo-adash-chart__scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    margin-top: -0.5em;
    font-size: var(--eo-fs-xs);
    line-height: 1;
    color: var(--eo-text-subtle);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.eo-adash-chart__plot {
    flex: 1 1 auto;
    min-width: 0;
}

.eo-adash-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 200px;
    padding: 0 2px;
    background-image: linear-gradient(to bottom, var(--eo-border) 1px, transparent 1px);
    background-size: 100% 25%;
    border-bottom: 1px solid var(--eo-border);
}

.eo-adash-chart__bar {
    flex: 1 1 0;
    min-width: 0;
    height: max(var(--h), 2px);
    background: var(--eo-brand);
    border-radius: 3px 3px 0 0;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.eo-adash-chart__bar[data-empty] {
    background: var(--eo-border-strong);
    opacity: 0.6;
}

.eo-adash-chart__bar:hover {
    opacity: 1;
}

.eo-adash-chart__days {
    display: flex;
    gap: 3px;
    height: 22px;
    padding: 6px 2px 0;
}

.eo-adash-chart__days span {
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    font-size: 11px;
    line-height: 1;
    color: var(--eo-text-subtle);
    white-space: nowrap;
}

/* the last date ends at the last bar instead of running past the chart */
.eo-adash-chart__days span:last-child {
    direction: rtl;
}

/* phones: a shorter chart and a date every tenth day */
@media (max-width: 575.98px) {
    .eo-adash-chart { padding: var(--eo-space-md); }
    .eo-adash-chart__bars, .eo-adash-chart__scale { height: 160px; }
    .eo-adash-chart__bars, .eo-adash-chart__days { gap: 2px; }
    .eo-adash-chart__days span:nth-child(10n+6) { visibility: hidden; }
}

/* users: three numbers side by side */
.eo-adash-trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 var(--eo-space-lg);
    text-align: center;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-adash-trio > div {
    display: flex;
    flex-direction: column-reverse;
    padding: var(--eo-space-md) var(--eo-space-xs);
}

.eo-adash-trio > div + div {
    border-left: 1px solid var(--eo-border);
}

.eo-adash-trio dd {
    margin: 0;
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.eo-adash-trio dt {
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

.eo-adash-trio .is-good,
.eo-adash-big__side.is-good {
    color: var(--eo-success-strong);
}

/* labelled bars with a count and a share */
.eo-adash-bars {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-adash-bars__row {
    --adash-bar: var(--eo-brand);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
}

.eo-adash-bars__row--success { --adash-bar: var(--eo-success); }
.eo-adash-bars__row--info { --adash-bar: #3B82F6; }
.eo-adash-bars__row--danger { --adash-bar: var(--eo-danger); }

.eo-adash-bars__label,
.eo-adash-bars__count {
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
}

.eo-adash-bars__track {
    display: block;
    flex: 1 0 100%;
    height: 6px;
    overflow: hidden;
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-adash-bars__track--success { --adash-bar: var(--eo-success); }

.eo-adash-bars__track > span {
    display: block;
    height: 100%;
    background: var(--adash-bar, var(--eo-brand));
    border-radius: inherit;
}

.eo-adash-subhead {
    margin: var(--eo-space-lg) 0 var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* sign-in reach: four short columns, today to 30 days */
.eo-adash-reach {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--eo-space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.eo-adash-reach li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.eo-adash-reach__count {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
}

.eo-adash-reach__track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 44px;
    height: 64px;
    overflow: hidden;
    background: var(--eo-bg-hover);
    border-radius: 6px;
}

.eo-adash-reach__track > span {
    display: block;
    width: 100%;
    background: #3B82F6;
}

.eo-adash-reach__label {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

/* a big figure with its label, and a short note on the right */
.eo-adash-big {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--eo-space-xs) var(--eo-space-md);
    margin-bottom: var(--eo-space-md);
}

.eo-adash-big > div {
    display: flex;
    flex-direction: column;
}

.eo-adash-big__value {
    font-size: var(--eo-fs-3xl);
    font-weight: var(--eo-fw-bold);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.eo-adash-big__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-adash-big__side {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
}

/* money lines: label left, amount right */
.eo-adash-lines {
    margin: var(--eo-space-lg) 0 0;
}

.eo-adash-lines--flush {
    margin-top: 0;
}

.eo-adash-lines > div {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) 0;
    font-size: var(--eo-fs-sm);
    border-top: 1px solid var(--eo-border);
}

.eo-adash-lines--flush > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.eo-adash-lines dt {
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-adash-lines dd {
    margin: 0;
    font-weight: var(--eo-fw-semibold);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.eo-adash-lines > div.is-danger dd {
    color: var(--eo-danger-strong);
}

/* new businesses: one bar a month */
.eo-adash-months {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
    margin: var(--eo-space-lg) 0 0;
    padding: 0;
    list-style: none;
}

.eo-adash-months li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.eo-adash-months__track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 84px;
    border-bottom: 1px solid var(--eo-border);
}

.eo-adash-months__track > span {
    display: block;
    width: 100%;
    background: #8B5CF6;
    border-radius: 3px 3px 0 0;
    opacity: 0.85;
}

.eo-adash-months li:hover .eo-adash-months__track > span {
    opacity: 1;
}

.eo-adash-months__label {
    font-size: 10.5px;
    color: var(--eo-text-subtle);
}
/* ==== super admin dashboard: end ==== */

/* ==== super admin user page (eo-uprofile), laid out like the TimoDesk user detail ==== */
/* a narrow profile column and a wide work column; they stack below 1200px */
.eo-uprofile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-xl);
    align-items: start;
}

@media (min-width: 1200px) {
    .eo-uprofile { grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr); }
}

.eo-uprofile__card {
    overflow: hidden;
}

.eo-uprofile__cover {
    height: 64px;
    background: color-mix(in srgb, var(--eo-brand) 7%, var(--eo-surface));
    border-bottom: 1px solid color-mix(in srgb, var(--eo-brand) 10%, var(--eo-border));
}

.eo-uprofile__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--eo-space-lg) var(--eo-space-lg);
    text-align: center;
}

.eo-uprofile__avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 var(--eo-space-md);
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 14%, var(--eo-surface));
    border: 4px solid var(--eo-surface);
    border-radius: 50%;
}

.eo-uprofile__name {
    margin: 0;
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-semibold);
    overflow-wrap: anywhere;
}

.eo-uprofile__line {
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-uprofile__line:hover {
    color: var(--eo-brand);
}

.eo-uprofile__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: var(--eo-space-md);
}

/* the small tinted square in front of a business or a link */
.eo-uprofile__tile {
    --tile-tone: var(--eo-brand);
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--tile-tone);
    background: color-mix(in srgb, var(--tile-tone) 10%, transparent);
    border-radius: var(--eo-radius-lg);
}

.eo-uprofile__tile .svg-icon {
    width: 16px;
    height: 16px;
}

.eo-uprofile__tile--info { --tile-tone: var(--eo-info); }
.eo-uprofile__tile--success { --tile-tone: var(--eo-success); }
.eo-uprofile__tile--warning { --tile-tone: var(--eo-warning); }
.eo-uprofile__tile--danger { --tile-tone: var(--eo-danger); }

.eo-uprofile__org {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    color: var(--eo-text);
    border-top: 1px solid var(--eo-border);
    transition: background-color 0.15s ease;
}

a.eo-uprofile__org[href]:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-surface-2);
}

.eo-uprofile__org-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-uprofile__org-text small {
    font-size: 10.5px;
    font-weight: var(--eo-fw-medium);
    letter-spacing: 0.04em;
    color: var(--eo-text-muted);
    text-transform: uppercase;
}

.eo-uprofile__org > .svg-icon,
.eo-uprofile__links > * > .svg-icon:last-child {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--eo-text-subtle);
}

/* two by two facts under the business */
.eo-uprofile__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--eo-border);
}

.eo-uprofile__stats > div {
    min-width: 0;
    padding: var(--eo-space-md) var(--eo-space-base);
}

.eo-uprofile__stats > div:nth-child(odd) { border-right: 1px solid var(--eo-border); }
.eo-uprofile__stats > div:nth-child(n + 3) { border-top: 1px solid var(--eo-border); }

.eo-uprofile__stats dt {
    margin-bottom: 2px;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-uprofile__stats dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-uprofile__stats dd small {
    display: block;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

/* the link list card: one row per page, a rule between rows */
.eo-uprofile__links {
    overflow: hidden;
}

.eo-uprofile__links > a,
.eo-uprofile__links > button {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    width: 100%;
    padding: 10px var(--eo-space-lg);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-align: left;
    background: transparent;
    border: 0;
    transition: background-color 0.15s ease;
}

.eo-uprofile__links > * + * {
    border-top: 1px solid var(--eo-border);
}

.eo-uprofile__links > a:hover,
.eo-uprofile__links > button:hover {
    color: var(--eo-text);
    text-decoration: none;
    background: var(--eo-surface-2);
}

.eo-uprofile__links > .is-danger,
.eo-uprofile__links > .is-danger:hover { color: var(--eo-danger); }
.eo-uprofile__links > .is-success,
.eo-uprofile__links > .is-success:hover { color: var(--eo-success-strong); }

.eo-uprofile__meta {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.eo-uprofile__stores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--eo-space-sm) var(--eo-space-base);
}

/* three cards on top instead of the dashboard's four */
.eo-adash-cards--3 {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .eo-adash-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.eo-adash-card__value small {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

/* one card per row on phones, so the icon stays beside the text */
@media (max-width: 575.98px) {
    .eo-adash-cards--3 .eo-adash-card {
        flex-direction: row;
        align-items: center;
        gap: var(--eo-space-md);
    }
}
/* ==== super admin user page: end ==== */

/* settings cards: one card per group (x-settings-card), a small tinted icon and title on top,
   then the group's fields as a plain form (x-setting-row) */
/* the store settings page: every group in ONE card (owner, 16 Nov 2026), each group a part of it under a plain heading,
   split by hairlines */
.eo-scards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-xl);
}

.eo-scards > .eo-scard {
    margin: -1px 0 0 -1px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--eo-border);
    border-left: 1px solid var(--eo-border);
    border-radius: 0;
    box-shadow: none;
}

.eo-scards > .eo-scard > .eo-scard__head {
    padding: var(--eo-space-lg) var(--eo-space-lg) 0;
    border-bottom: 0;
}

.eo-scards > .eo-scard > .eo-scard__head > .eo-scard__icon {
    display: none;
}

.eo-scards > .eo-scard > .eo-scard__head .eo-scard__title {
    font-size: var(--eo-fs-base);
}

.eo-scards > .eo-scard > .eo-scard__body {
    padding-top: var(--eo-space-md);
}

/* a laptop: each group on its own row, its title (and line) in a block on the left, its settings on the right; no
   divider between the two (owner, 16 Nov 2026) */
@media (min-width: 1200px) {
    .eo-scards > .eo-scard {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
    }

    .eo-scards > .eo-scard > .eo-scard__head {
        align-items: flex-start;
        padding: var(--eo-space-lg);
    }

    .eo-scards > .eo-scard > .eo-scard__head .eo-scard__head-text {
        gap: var(--eo-space-xs);
    }

    .eo-scards > .eo-scard > .eo-scard__body {
        padding-top: var(--eo-space-lg);
    }
}



.eo-scard__head {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-scard__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--eo-brand);
    background: color-mix(in srgb, var(--eo-brand) 9%, transparent);
    border-radius: var(--eo-radius-lg);
}

.eo-scard__icon .svg-icon {
    width: 16px;
    height: 16px;
}

/* a card's own buttons (x-settings-card action slot) sit at the right end of its head */
.eo-scard__action {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

/* on a phone they drop under the title, in one line */
@media (max-width: 575.98px) {
    .eo-scard__head:has(.eo-scard__action) {
        flex-wrap: wrap;
    }

    .eo-scard__action {
        width: 100%;
        margin-left: 0;
    }
}

.eo-scard__head-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.eo-scard__title {
    margin: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-scard__text {
    margin: 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* a card of free content (the message templates) keeps normal padding */
.eo-scard--wide > .eo-scard__body {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    padding: var(--eo-space-base) var(--eo-space-lg) var(--eo-space-lg);
}

/* the card body is a plain form, like every other form in the app: the name on top, the box under it,
   two boxes to a line on a wide screen; a switch sits left of its name across the full width */
.eo-scard:not(.eo-scard--wide) > .eo-scard__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-base) var(--eo-space-lg);
    padding: var(--eo-space-base) var(--eo-space-lg) var(--eo-space-lg);
}

@media (max-width: 767.98px) {
    .eo-scard:not(.eo-scard--wide) > .eo-scard__body {
        grid-template-columns: minmax(0, 1fr);
    }
}

.eo-srow {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.eo-srow[hidden] {
    display: none;
}

/* the name, the box, then the grey line under the box (the same order as x-input's help) */
.eo-srow:not(:has(.eo-switch)) > .eo-srow__text {
    display: contents;
}

.eo-srow__label {
    order: 1;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-srow__control {
    display: flex;
    order: 2;
    align-items: center;
    gap: var(--eo-space-sm);
    min-width: 0;
}

.eo-srow__control > .eo-field {
    width: 100%;
    margin: 0;
}

.eo-srow__hint {
    order: 3;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

/* a switch: the switch first, then its name and grey line, like x-checkbox switch everywhere else */
.eo-srow:has(.eo-switch) {
    grid-column: 1 / -1;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-start;
    gap: var(--eo-space-sm);
}

.eo-srow:has(.eo-switch) > .eo-srow__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.eo-srow:has(.eo-switch) .eo-srow__label {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-normal);
}

.eo-srow:has(.eo-switch) > .eo-srow__control {
    flex: none;
}

.eo-srow__control > .eo-field:has(.eo-switch) {
    width: auto;
}

.eo-srow__control .eo-error:empty,
.eo-srow__control .eo-switch > span:empty {
    display: none;
}

.eo-srow__control .eo-switch {
    gap: 0;
}

/* a stacked row (a message, a script, a set of choices) takes the full width */
.eo-srow--stack {
    grid-column: 1 / -1;
}

.eo-srow--stack > .eo-srow__control {
    flex-direction: column;
    align-items: stretch;
}

/* a from - to pair on one line (two times) */
.eo-srow--range > .eo-srow__control > .eo-field {
    flex: 1 1 0;
    min-width: 0;
}

.eo-srow__dash {
    color: var(--eo-text-subtle);
}

/* on a phone the two times sit one under the other, each with room for "সকাল 10:00" */
@media (max-width: 575.98px) {
    .eo-srow--range > .eo-srow__control {
        flex-direction: column;
        align-items: stretch;
    }

    .eo-srow--range .eo-srow__dash {
        display: none;
    }
}

.eo-ac-test__script {
    flex: 1 1 auto;
    min-width: 0;
}

/* auto call: the fixed keypad chip, and the box with what the buyer hears, redrawn as the message is typed */
.eo-token-chip--fixed { border-style: dashed; border-color: var(--eo-brand); }
.eo-ac-hears {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--eo-border);
    border-left: 3px solid var(--eo-brand);
    border-radius: 10px;
    background: var(--eo-surface-2);
}
.eo-ac-hears__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--eo-fs-sm);
    font-weight: 600;
}
.eo-ac-hears__head svg { width: 16px; height: 16px; color: var(--eo-brand); }
.eo-ac-hears__head small { font-weight: 400; color: var(--eo-text-muted); }
.eo-ac-hears__text { margin: 6px 0 0; line-height: 1.6; overflow-wrap: anywhere; }

/* checkout settings (09): the settings cards of every settings page (x-settings-card, eo-choice-tiles); here only the
   zone boxes in a row, the advance part that rests while cash on delivery is off, the save bar's note and the preview */
.co-set [hidden] {
    display: none;
}

/* the order card in two columns: the switch, then the minimum order under it on the left; the thank-you message on the
   right as tall as both. one column on a phone */
@media (min-width: 768px) {
    .co-set .eo-srow.co-cod-row {
        grid-column: 1;
        grid-row: 1;
    }

    .co-set .eo-srow.co-thanks-row {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 767.98px) {
    .co-set .eo-srow.co-cod-row {
        grid-column: auto;
    }
}

.co-advance,
.co-advance__who {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-base);
    transition: opacity 0.2s ease;
}

.co-advance .eo-field {
    margin: 0;
}

/* cash on delivery off: every order is paid in full ahead, so these choices rest */
.co-set.is-cod-off .co-advance {
    opacity: 0.45;
    pointer-events: none;
}

.co-advance .is-shown {
    animation: co-in 0.2s ease-out;
}

.co-zones {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-base);
}

@media (min-width: 576px) {
    .co-zones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.co-zones .eo-field {
    margin: 0;
}

/* the save bar says when a change is not saved yet */
.co-bar {
    align-items: center;
}

.co-bar__note {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin-right: auto;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-2);
}

.co-bar__note i {
    width: 8px;
    height: 8px;
    background: var(--eo-warning);
    border-radius: 50%;
}

@media (max-width: 767.98px) {
    .co-bar__note {
        flex: 1 0 100%;
    }
}

/* the preview: a sample order on top (not sent), then the shop's checkout in a plain card (its button and picks in the
   shop's own colour), then the thank-you line */
.co-pv {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.co-pv__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-xs);
}

.co-pv__title {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.co-pv__store {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 8px;
    overflow: hidden;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-2);
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.co-pv__store .svg-icon {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
}

.co-pv__sample {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-sm);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius);
}

.co-pv__amount {
    display: flex;
    align-items: center;
    gap: var(--eo-space-xs);
    margin: 0;
    color: var(--eo-text-muted);
}

.co-pv__amount-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 8px;
    color: var(--eo-text);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-sm);
}

.co-pv__amount-box:focus-within {
    border-color: var(--eo-brand);
}

.co-pv__amount-box input {
    width: 60px;
    padding: 0;
    font: inherit;
    font-weight: var(--eo-fw-semibold);
    color: inherit;
    background: transparent;
    border: 0;
    outline: 0;
}

.co-pv__risk {
    margin: 0;
    font-size: var(--eo-fs-sm);
}

.co-pv__phone {
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.co-pv__screen {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-md);
    padding: var(--eo-space-base);
    font-size: var(--eo-fs-sm);
    color: var(--eo-text);
    background: var(--eo-surface);
}

.co-pv__screen-title {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
}

.co-pv__areas {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
}

.co-pv__area {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    cursor: pointer;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.co-pv__area input {
    margin: 0;
    accent-color: var(--co-brand);
}

.co-pv__area:has(input:checked) {
    background: color-mix(in srgb, var(--co-brand) 6%, var(--eo-surface));
    border-color: var(--co-brand);
}

.co-pv__area-name {
    flex: 1 1 auto;
}

.co-pv__area-cost {
    font-weight: var(--eo-fw-semibold);
}

.co-pv__bill {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
    margin: 0;
    padding-top: var(--eo-space-sm);
    border-top: 1px dashed var(--eo-border);
}

.co-pv__bill > div {
    display: flex;
    justify-content: space-between;
    gap: var(--eo-space-sm);
}

.co-pv__bill dt,
.co-pv__bill dd {
    margin: 0;
    font-weight: var(--eo-fw-normal);
}

.co-pv__bill dt {
    color: var(--eo-text-muted);
}

.co-pv__bill .co-pv__total {
    padding-top: 4px;
    font-size: var(--eo-fs-md);
}

.co-pv__bill .co-pv__total dt,
.co-pv__bill .co-pv__total dd {
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
}

.co-pv__pay {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-sm) var(--eo-space-md);
    border-radius: var(--eo-radius-lg);
}

.co-pv__pay > .svg-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.co-pv__pay > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.co-pv__pay--cod {
    color: var(--eo-text);
    background: var(--eo-surface-2);
}

.co-pv__pay--now {
    color: var(--co-brand);
    background: color-mix(in srgb, var(--co-brand) 8%, var(--eo-surface));
}

.co-pv__pay--now strong {
    color: var(--eo-text);
}

.co-pv__pay [data-co-out-rest] {
    color: var(--eo-text-2);
}

.co-pv__methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-xs);
    margin-top: 4px;
}

.co-pv__methods span {
    padding: 2px 8px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-2);
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.co-pv__min {
    margin: 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-danger-strong);
}

.co-pv__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--eo-control-h);
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-on-brand);
    background: var(--co-brand);
    border-radius: var(--eo-radius-lg);
    transition: opacity 0.2s ease;
}

.co-pv__btn.is-off {
    opacity: 0.4;
}

.co-pv__thanks {
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px dashed var(--eo-border-strong);
    border-radius: var(--eo-radius-lg);
}

.co-pv__thanks-label {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

.co-pv__thanks-text {
    margin: 4px 0 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text);
    overflow-wrap: anywhere;
}

/* a number that just changed glows once, and a part that just showed up slides in */
.co-pv .is-changed {
    animation: co-flash 0.7s ease-out;
}

.co-pv .is-shown {
    animation: co-in 0.25s ease-out;
}

@keyframes co-flash {
    0% {
        background: color-mix(in srgb, var(--co-brand) 22%, transparent);
    }

    100% {
        background: transparent;
    }
}

@keyframes co-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .co-pv .is-changed,
    .co-pv .is-shown,
    .co-advance .is-shown {
        animation: none;
    }
}

/* a new order: the mobile number is the field the form hangs on (the customer's past orders, the fraud check and the
   address come from it), so it alone stands out, by size, no colour: the whole width, a taller box and big bold digits */
.ofx-cust .eo-control[data-order-phone] {
    height: 64px;
    padding-left: 48px;
    /* a thick edge, no colour at rest: it is the one box drawn this way */
    border-width: 2px;
    border-color: var(--eo-border-strong);
    font-size: var(--eo-fs-2xl);
    font-weight: var(--eo-fw-semibold);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ofx-cust .eo-control[data-order-phone]::placeholder {
    font-weight: var(--eo-fw-normal);
}

.ofx-cust .eo-control[data-order-phone]:focus {
    border-color: var(--eo-brand);
}

.ofx-cust .eo-input-icon:has(> [data-order-phone]) > .svg-icon {
    left: 16px;
    width: 22px;
    height: 22px;
}

/* the new order's number: the shop's customers whose number starts with what is typed, in a list under the box; a row
   is a finger's height, the name on top, the number and area under it, the order count at the right */
.ofx-phone {
    position: relative;
}

.ofx-suggest {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: var(--eo-z-popover);
    display: flex;
    flex-direction: column;
    max-height: 320px;
    margin-top: var(--eo-space-xs);
    padding: var(--eo-space-xs);
    overflow-y: auto;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    box-shadow: var(--eo-shadow-float);
}

.ofx-suggest[hidden] {
    display: none;
}

.ofx-suggest__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--eo-space-md);
    row-gap: 2px;
    align-items: center;
    min-height: 48px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    color: var(--eo-text);
    text-align: left;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: var(--eo-radius);
}

.ofx-suggest__item:hover,
.ofx-suggest__item.is-active {
    background: var(--eo-bg-hover);
}

.ofx-suggest__name {
    overflow: hidden;
    font-weight: var(--eo-fw-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ofx-suggest__orders {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
}

.ofx-suggest__phone {
    font-size: var(--eo-fs-sm);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text-muted);
}

/* the digits typed so far, marked in each number: dark and bold against the grey rest, no colour */
.ofx-suggest__hit {
    padding: 0;
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    background: none;
}

/* ==== dropdown options: start ==== */
/* every list of options in a dropdown, across the whole panel (owner, 15 Nov 2026): the options run edge to edge with a fine
   line between each, the way the quick actions and the credit menu look. A menu that is a picker or a panel (the range
   calendar, the bell, the account) has no .dropdown-item rows, so it keeps its own look. Last in the file: it outweighs
   each module's own spacing for its menu rows */
.dropdown-menu:has(> .dropdown-item, > form > .dropdown-item, > li > .dropdown-item, > .eo-action-menu__group) {
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0;
    overflow: hidden;
}

.dropdown-menu .dropdown-item {
    min-height: 40px;
    padding: var(--eo-space-sm) var(--eo-space-base);
    border-radius: 0;
}

.dropdown-menu :is(.dropdown-item, form, li) + .dropdown-item,
.dropdown-menu :is(.dropdown-item, form, li) + :is(form, li) > .dropdown-item:first-of-type {
    border-top: 1px solid var(--eo-border);
}

/* an action menu's groups already part with a line; inside a group the rows now part the same way */
.eo-action-menu__group {
    gap: 0;
    padding: 0;
}

/* the custom select's list (x-select) reads the same: a fine line between its options */
.eo-sel__item {
    min-height: 40px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    border-radius: 0;
}

.eo-sel__item + .eo-sel__item {
    border-top: 1px solid var(--eo-border);
}
/* ==== dropdown options: end ==== */

/* the cancel window's "add a note": a whole-width row under the reasons, its key (n) at the right like theirs; a dashed
   edge says it adds something */
.eo-desk-note-btn {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: var(--eo-space-sm) var(--eo-space-md);
    gap: var(--eo-space-md);
    border-style: dashed;
}

.eo-desk-note-btn[hidden] {
    display: none;
}

/* the contact form's saved addresses: a short line, then the same chips as the new order form */
.eo-contact-places {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-contact-places__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-book-paths {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-book-path {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-height: 64px;
    padding: var(--eo-space-md) var(--eo-space-base);
    color: var(--eo-text-muted);
    text-decoration: none;
}

.eo-book-path + .eo-book-path {
    border-top: 1px solid var(--eo-border);
}

.eo-book-path:hover {
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
}

.eo-book-path__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-book-path__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: var(--eo-fs-sm);
}

.eo-book-path__text strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* courier account form, kept plain: the couriers as logo tiles (a tap marks one in the brand colour), then that courier's
   key boxes with one line on where to find them; everything else under "আরও অপশন" */
.eo-cf__couriers {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-cf__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--eo-space-sm);
}

@media (min-width: 768px) {
    .eo-cf__tiles {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.eo-cf__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--eo-space-sm);
    min-height: 88px;
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-sm);
    text-align: center;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-cf__tile:hover {
    border-color: var(--eo-text-subtle);
}

.eo-cf__tile:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-cf__tile:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

/* the courier's logo, or its first letter until the logo file is there */
.eo-cf__mark {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.eo-cf__mark--logo {
    width: auto;
    max-width: 100%;
    background: none;
}

.eo-cf__mark--logo img {
    display: block;
    max-width: 100%;
    height: 28px;
    object-fit: contain;
}

.eo-cf__tile-name {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-cf__error:empty {
    display: none;
}

.eo-cf__error {
    margin: var(--eo-space-sm) 0 0;
}

.eo-cf [data-courier-fields][hidden] {
    display: none;
}

.eo-cf__where {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-sm);
    margin: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-cf__where .svg-icon {
    flex: none;
    margin-top: 2px;
}

/* changing an account: the courier it is for, shown as a fact */
.eo-cf__picked {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-cf__picked-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eo-cf__picked-text span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-cf__copy {
    display: flex;
    gap: var(--eo-space-sm);
}
.eo-cf__copy .eo-control {
    flex: 1 1 auto;
    min-width: 0;
}

/* a new shop's first steps, kept short (owner, 18 Nov 2026): the title, how many are done and the hide button on one
   line; then one line per step still to do (number, what and why, its button) and one quiet line for the done ones */
.eo-fs__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-xs) var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-fs__count {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-fs__hide {
    margin-left: auto;
}

.eo-fs__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-fs__row {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
}

.eo-fs__row + .eo-fs__row {
    border-top: 1px solid var(--eo-border);
}

.eo-fs__mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-brand);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-fs__mark.is-done {
    color: var(--eo-success);
    background: var(--eo-success-10);
}

.eo-fs__mark .svg-icon {
    width: 14px;
    height: 14px;
}

.eo-fs__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-fs__text strong {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-fs__text > span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-fs__tag {
    margin-left: var(--eo-space-xs);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-subtle);
}

.eo-fs__row > .eo-btn {
    flex: 0 0 auto;
}

.eo-fs__done-list {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-fs__done-tag {
    flex: 0 0 auto;
    font-size: var(--eo-fs-sm);
    color: var(--eo-success);
}

/* a phone: the button under the text, the whole width */
@media (max-width: 575.98px) {
    .eo-fs__head,
    .eo-fs__row {
        padding-right: var(--eo-space-base);
        padding-left: var(--eo-space-base);
    }

    .eo-fs__row:not(.eo-fs__row--done) {
        flex-wrap: wrap;
    }

    .eo-fs__row > .eo-btn {
        flex-basis: 100%;
        justify-content: center;
        min-height: 40px;
    }
}

/* the courier list: each account starts with its courier's own logo, in a small framed box the height of a name tile */
.eo-courier-logo {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 40px;
    padding: 6px 8px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-courier-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* the courier form's groups: the name (with "ঐচ্ছিক" once when the group can stay empty) and one line on the left, its
   boxes on the right; a hairline between groups. On a phone the name sits on top */
.eo-cf {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-lg);
}

.eo-cf__group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--eo-space-md);
    padding-top: var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

@media (min-width: 768px) {
    .eo-cf__group {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: var(--eo-space-xl);
    }
}

.eo-cf__head h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0 0 var(--eo-space-xs);
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-cf__head p {
    margin: 0;
    font-size: var(--eo-fs-sm);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text-muted);
}

.eo-cf__optional {
    padding: 1px var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-cf__body {
    min-width: 0;
}

/* the account name takes the room; the charge is a short number, so its box is short too */
.eo-cf__pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: var(--eo-space-base);
}

@media (max-width: 575.98px) {
    .eo-cf__pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* the booking window: the courier as logo tiles (the ticked one in the brand colour, the area's best with a small mark),
   the cash and the weight side by side, and the courier's charge in a soft box at the foot */
.eo-book__couriers {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.eo-book__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: var(--eo-space-sm);
}

.eo-book__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--eo-space-xs);
    min-height: 80px;
    margin: 0;
    padding: var(--eo-space-md) var(--eo-space-sm);
    text-align: center;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    cursor: pointer;
    transition: border-color var(--eo-dur) var(--eo-ease), background-color var(--eo-dur) var(--eo-ease);
}

.eo-book__tile:hover {
    border-color: var(--eo-text-subtle);
}

.eo-book__tile:has(input:checked) {
    background: var(--eo-brand-10);
    border-color: var(--eo-brand);
    box-shadow: inset 0 0 0 1px var(--eo-brand);
}

.eo-book__tile:has(input:focus-visible) {
    box-shadow: var(--eo-focus);
}

.eo-book__tile-name {
    max-width: 100%;
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the area's best courier: a small mark on the tile's top edge */
.eo-book__best {
    position: absolute;
    top: -9px;
    left: 50%;
    display: none;
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-semibold);
    line-height: 18px;
    color: var(--eo-on-brand);
    white-space: nowrap;
    background: var(--eo-accent);
    border-radius: var(--eo-radius-pill);
    transform: translateX(-50%);
}

.eo-book__tile.is-best .eo-book__best {
    display: block;
}

.eo-book__couriers .eo-error:empty {
    display: none;
}

.eo-book__pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: var(--eo-space-base);
}

@media (max-width: 575.98px) {
    .eo-book__pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* the note under the cash and weight, inside the one-order group */
.eo-book__note {
    margin-top: var(--eo-space-base);
}

.eo-book__quote {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-book__quote[hidden] {
    display: none;
}

/* only one way to send (one account, no own riders): nothing to choose, so the tile is a plain full-width row, the logo
   then the name, not a lone box with blank room beside it */
.eo-book__tiles:has(> .eo-book__tile:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.eo-book__tile:only-child {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--eo-space-md);
    min-height: 56px;
    padding: var(--eo-space-sm) var(--eo-space-base);
    text-align: left;
}

.eo-book__tile:only-child .eo-book__tile-name {
    font-size: var(--eo-fs-md);
}

/* the COD payment page's courier (owner, 19 Nov 2026): the booking window's tiles as one full-width row, each the logo
   then the name, so a few couriers fill the form's width instead of a drop-down */
/* the packing desk's courier (owner, 21 Nov 2026) takes the same full-width row, so each name shows in full */
.eo-cod-couriers .eo-book__tiles,
.eo-pack-couriers .eo-book__tiles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.eo-cod-couriers .eo-book__tile,
.eo-pack-couriers .eo-book__tile {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--eo-space-md);
    min-height: 56px;
    padding: var(--eo-space-sm) var(--eo-space-base);
    text-align: left;
}

.eo-cod-couriers .eo-error {
    margin-top: var(--eo-space-xs);
}

/* the product wizard's weight: the box on the left, what it does on the right, so the pair has two sides */
.pw__side-note {
    align-self: center;
    margin: 0;
    font-size: var(--eo-fs-sm);
    line-height: var(--eo-lh-normal);
    color: var(--eo-text-muted);
}

/* the charge sum: a line each, the name left and the money right; the courier's whole cut under a dashed line, then what
   the shop gets in a tinted strip (what it pays, with nothing to collect, in the same strip) */
.eo-book__sum {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-xs);
    margin: 0;
}

.eo-book__sum > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--eo-space-md);
}

.eo-book__sum > div[hidden],
.eo-book__payout[hidden],
.eo-book__qnote[hidden] {
    display: none;
}

.eo-book__sum dt {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-2);
}

.eo-book__sum dd {
    margin: 0;
    font-size: var(--eo-fs-sm);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text);
    white-space: nowrap;
}

.eo-book__sum > .is-total {
    margin-top: var(--eo-space-xs);
    padding-top: var(--eo-space-sm);
    border-top: 1px dashed var(--eo-border-strong);
}

.eo-book__sum > .is-total dt,
.eo-book__sum > .is-total dd {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-book__est {
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    line-height: 18px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-book__payout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-md);
    background: var(--eo-brand-10);
    border-radius: var(--eo-radius);
}

.eo-book__payout span {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-book__payout strong {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
    color: var(--eo-brand);
}

.eo-book__payout.is-pay {
    background: var(--eo-bg-hover);
}

.eo-book__payout.is-pay strong {
    color: var(--eo-text);
}

.eo-book__qnote {
    margin: 0;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* the charge box while the courier is asked: the lines stay, each sum is a pulsing grey bar of its own size, so nothing
   moves when the numbers come */
.eo-book__quote.is-loading [data-q="delivery"],
.eo-book__quote.is-loading [data-q="cod"],
.eo-book__quote.is-loading [data-q="total"],
.eo-book__quote.is-loading [data-q="payout"] {
    display: inline-block;
    min-width: 64px;
    height: 12px;
    overflow: hidden;
    color: transparent;
    vertical-align: middle;
    background: var(--eo-border);
    border-radius: var(--eo-radius-sm);
    animation: eo-pulse 1.4s ease-in-out infinite;
}

.eo-book__quote.is-loading [data-q="payout"] {
    min-width: 104px;
    height: 20px;
    background: var(--eo-brand-20);
}

.eo-book__quote.is-loading [data-q-est],
.eo-book__quote.is-loading [data-q="note"] {
    visibility: hidden;
}

/* the note line keeps its room too (an estimate always brings one) */
.eo-book__quote.is-loading [data-q="note"] {
    min-height: 1.6em;
}

/* the take-payment window: under the way of paying, where its money goes (a quiet line), or, with no account for it yet,
   a soft warning with the button that opens one */
.eo-pay-into {
    margin-top: calc(var(--eo-space-sm) * -1);
}

.eo-pay-into[hidden],
.eo-pay-into__missing[hidden] {
    display: none;
}

.eo-pay-into__missing {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-pay-into__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
    border-radius: var(--eo-radius);
}

.eo-pay-into__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-pay-into__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-pay-into__text strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-pay-into__text span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-pay-into__missing .eo-btn {
    flex: none;
}

/* the payment account picker reuses the area box; its "+ খাতা খুলুন" row is the brand colour, a kind with no account yet
   is quieter */
.eo-loc__item--add strong {
    color: var(--eo-brand);
}

[data-acct-pick] .eo-loc__item.is-empty strong {
    color: var(--eo-text-muted);
}

/* a payment line: the icon, the way it came with its kind as a small pill and one grey line under it, the amount at the
   right, a ⋮ menu last; rows split by a hairline, the same side padding as the money tiles above */
.eo-paybox .pd-moves > li.eo-payrow {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 32px;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-md) var(--eo-space-md) var(--eo-space-lg);
}

.eo-paybox .pd-moves > li + li.eo-payrow {
    border-top: 1px solid var(--eo-border);
}

.eo-payrow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--eo-text-muted);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius);
}

.eo-payrow__icon.is-in {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
}

.eo-payrow__icon.is-out {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
}

.eo-payrow__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-payrow__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-payrow__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm);
}

.eo-payrow__title strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-payrow__kind {
    padding: 0 var(--eo-space-sm);
    font-size: var(--eo-fs-xs);
    line-height: 20px;
    color: var(--eo-text-2);
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-payrow__text small {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    overflow-wrap: anywhere;
}

.eo-payrow__note {
    font-style: italic;
}

.eo-payrow__end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.eo-payrow__amount {
    font-size: var(--eo-fs-lg);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
    color: var(--eo-text);
}

.eo-payrow__amount.is-in {
    color: var(--eo-success-strong);
}

.eo-payrow__amount.is-out {
    color: var(--eo-danger-strong);
}

.eo-payrow__menu {
    display: flex;
    justify-content: flex-end;
}

/* a phone: the amount and menu stay at the right, the text takes the rest */
@media (max-width: 575.98px) {
    .eo-paybox .pd-moves > li.eo-payrow {
        grid-template-columns: 36px minmax(0, 1fr) auto 32px;
        gap: var(--eo-space-sm);
        padding-inline: var(--eo-space-md) var(--eo-space-sm);
    }

    .eo-payrow__icon {
        width: 36px;
        height: 36px;
    }
}

/* inside a popup every picker list (place, area, account) floats over it like every other drop-down (owner, 19 Nov 2026:
   opening in place stretched the popup and pushed the fields down; the product wizard's combo search too); fixed to the screen so the popup's scrolling body does
   not clip it - dashboard.js (floatPickers) puts it under its box, or over it when there is more room above */
.modal .eo-loc__panel,
.modal .pw__search-results {
    position: fixed;
    right: auto;
    z-index: var(--eo-z-popover);
    min-width: 0;
    margin: 0;
    box-shadow: var(--eo-shadow-float);
}

/* the payment card's money: three short rows side by side, the icon at the left and the name over the amount beside it */
.eo-paybox .pd-hold__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value";
    column-gap: var(--eo-space-md);
    row-gap: 0;
    align-items: center;
    padding: var(--eo-space-base) var(--eo-space-lg);
}

.eo-paybox .pd-hold__icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: var(--eo-radius);
}

.eo-paybox .pd-hold__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-paybox .pd-hold__label {
    grid-area: label;
}

.eo-paybox .pd-hold__item strong {
    grid-area: value;
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

/* a phone: the three as a list, one line each: the icon, the name, the amount at the right edge */
@media (max-width: 575.98px) {
    .eo-paybox .pd-hold__item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-areas: "icon label value";
        padding: 10px var(--eo-space-md);
    }

    .eo-paybox .pd-hold__item .pd-hold__label {
        grid-area: label;
    }

    .eo-paybox .pd-hold__item .pd-hold__icon {
        width: 36px;
        height: 36px;
    }

    .eo-paybox .pd-hold__item strong {
        font-size: var(--eo-fs-md);
    }
}

/* the booking window's matched area: one quiet line (a pin, the place, "ঠিকানা থেকে মিলেছে") with "বদলান" at the right */
.eo-book-area {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    min-height: var(--eo-control-h);
    padding: var(--eo-space-sm) var(--eo-space-md);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-book-area[hidden],
[data-area-search-wrap][hidden] {
    display: none;
}

.eo-book-area > .svg-icon {
    flex: none;
    color: var(--eo-text-muted);
}

.eo-book-area__text {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--eo-space-sm);
    min-width: 0;
}

.eo-book-area__text strong {
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
}

.eo-book-area__text small {
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-muted);
}

/* the area box's note when the courier's list has not come in: the line, why it matters, the fetch button at the right */
.eo-book-area--wait {
    background: var(--eo-warning-10);
    border-color: color-mix(in srgb, var(--eo-warning) 30%, transparent);
}

.eo-book-area--wait > .svg-icon {
    color: var(--eo-warning-strong);
}

.eo-book-area__text--stack {
    flex-direction: column;
    gap: 2px;
}

[data-area-pick][hidden],
[data-area-nolist][hidden] {
    display: none;
}

.eo-book-area__skel {
    flex: 0 1 180px;
    height: 12px;
}

[data-area-loading][hidden] {
    display: none;
}

/* a parcel that is not with the courier yet: one note in place of the updates. Failed reads in red with the courier's own
   reason; waiting reads quiet */
.eo-od-parcel__note {
    display: flex;
    align-items: flex-start;
    gap: var(--eo-space-md);
    margin-top: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-base);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-od-parcel__note > .svg-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--eo-text-muted);
}

.eo-od-parcel__note.is-danger {
    background: var(--eo-danger-10);
    border-color: color-mix(in srgb, var(--eo-danger) 25%, transparent);
}

.eo-od-parcel__note.is-danger > .svg-icon {
    color: var(--eo-danger-strong);
}

.eo-od-parcel__note-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eo-od-parcel__note-text strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-od-parcel__note-text span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    overflow-wrap: anywhere;
}

/* the order page's parcel card: logo, name and status on top; then the parcel laid across the full width so neither
   side sits empty: four facts in a row, the latest update in one line, the buttons on the right */
.eo-od-parcel__top {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
}

.eo-od-parcel__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-od-parcel__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: var(--eo-space-base) 0 0;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    overflow: hidden;
}

.eo-od-parcel__facts > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: var(--eo-space-md) var(--eo-space-base);
    box-shadow: -1px 0 0 var(--eo-border);
}

.eo-od-parcel__facts dt {
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-od-parcel__facts dd {
    display: flex;
    align-items: center;
    min-height: 26px;
    margin: 0;
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text);
    white-space: nowrap;
}

.eo-od-parcel__facts .eo-od-parcel__cash dd {
    font-weight: var(--eo-fw-semibold);
}

.eo-od-parcel__facts .eo-od-parcel__code {
    gap: 2px;
}

.eo-od-parcel__facts .eo-code {
    font-size: var(--eo-fs-md);
}

.eo-od-parcel__last {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-sm) var(--eo-space-base);
    margin-top: var(--eo-space-md);
    padding: var(--eo-space-sm) var(--eo-space-base);
    background: var(--eo-surface-2);
    border-radius: var(--eo-radius-lg);
}

.eo-od-parcel__last-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px var(--eo-space-sm);
    min-width: 0;
    font-size: var(--eo-fs-sm);
}

.eo-od-parcel__last-label,
.eo-od-parcel__last-meta {
    color: var(--eo-text-muted);
}

.eo-od-parcel__last-text strong {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

.eo-od-parcel__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-sm) var(--eo-space-base);
    margin-top: var(--eo-space-base);
    padding-top: var(--eo-space-base);
    border-top: 1px solid var(--eo-border);
}

.eo-od-parcel__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--eo-space-sm);
    margin-left: auto;
}

.eo-od-parcel__buttons form {
    display: contents;
}

/* phone: the facts two by two, the buttons share the row evenly */
@media (max-width: 575.98px) {
    .eo-od-parcel__facts {
        grid-template-columns: 1fr 1fr;
    }

    .eo-od-parcel__facts > div {
        padding: var(--eo-space-sm) var(--eo-space-md);
        box-shadow: -1px 0 0 var(--eo-border), 0 -1px 0 var(--eo-border);
    }

    .eo-od-parcel__buttons {
        width: 100%;
    }

    .eo-od-parcel__buttons .eo-btn {
        flex: 1 1 0;
        justify-content: center;
    }
}

/* a row's only action, shown as its button in place of a ⋮ menu (x-dropdown); a form around it sits inline */
.eo-single-action {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.eo-single-action form {
    display: contents;
}

/* the parcel page (parcels.show): the order page's delivery card as its summary, then updates beside the buyer and charges */
.eo-ps-summary {
    margin-bottom: var(--eo-space-lg);
}

.eo-ps-summary .eo-od-parcel__facts {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}


@media (max-width: 575.98px) {
    .eo-ps-summary .eo-od-parcel__facts {
        grid-template-columns: 1fr 1fr;
    }

    /* half a phone is narrow: a date and time ("6 নভেম্বর, বিকাল 3:58") goes on to a second line instead of being cut */
    .eo-ps-summary .eo-od-parcel__facts dd:not(.eo-od-parcel__code) {
        flex-wrap: wrap;
        white-space: normal;
    }

    /* a long status ("ডেলিভারির জন্য বের হয়েছে") moves under the courier's name instead of sitting on top of it */
    .eo-ps-summary .eo-od-parcel__top {
        flex-wrap: wrap;
        row-gap: var(--eo-space-sm);
    }

    .eo-ps-note > .eo-btn {
        width: 100%;
    }
}

/* the charges' total closes the list in bold */
.eo-od-facts > div.eo-ps-total dt,
.eo-od-facts > div.eo-ps-total dd {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* every value in the parcel's facts row reads the same: the two codes take the row's size and font, not the small code style */
.eo-od-parcel__facts dd.eo-od-parcel__code,
.eo-od-parcel__facts dd .eo-code {
    font-family: inherit;
    font-size: inherit;
}

/* the parcel's updates: a small day heading over each day's lines; a status line's bubble takes its status colour */
.eo-ps-day + .eo-ps-day {
    margin-top: var(--eo-space-xl);
}

.eo-ps-day__title {
    display: inline-block;
    margin: 0 0 var(--eo-space-base);
    padding: 2px 12px;
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-history__icon.is-success {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
    border-color: transparent;
}

.eo-history__icon.is-warning {
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
    border-color: transparent;
}

.eo-history__icon.is-danger {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
    border-color: transparent;
}

/* the follow-up note: one slim row in the card's grey foot (not the sticky form foot), what was said, when to look again, save */
.eo-ps-note {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eo-space-sm);
    padding: var(--eo-space-md) var(--eo-space-lg);
    background: var(--eo-surface-2);
    border-top: 1px solid var(--eo-border);
    border-radius: 0 0 var(--eo-radius-xl) var(--eo-radius-xl);
}

.eo-ps-note__text {
    flex: 1 1 260px;
    margin: 0;
}

.eo-ps-note__date {
    flex: 0 1 200px;
    margin: 0;
}

@media (max-width: 575.98px) {
    .eo-ps-note__date,
    .eo-ps-note > .eo-btn {
        flex: 1 1 100%;
    }
}

/* the row menu's ⋮ in a page head is as tall as the buttons beside it and keeps their frame */
.eo-pagehead__actions .eo-action-menu > .eo-btn {
    width: var(--eo-control-h);
    height: var(--eo-control-h);
    border-color: var(--eo-border);
    background: var(--eo-surface);
}

/* the parcel page's updates read larger than the order page's side history: a 40px bubble, the update in a bigger
   word, the courier's reason under it, then the time and who. The newest one (the state now) has a filled bubble */
.eo-ps-history .eo-history__item {
    gap: var(--eo-space-md);
    padding-bottom: var(--eo-space-lg);
}

.eo-ps-history .eo-history__item:last-child {
    padding-bottom: 0;
}

.eo-ps-history .eo-history__item:not(:last-child)::before {
    top: 44px;
    bottom: 4px;
    left: 19px;
    width: 2px;
    border-radius: 1px;
}

.eo-ps-history .eo-history__icon {
    width: 40px;
    height: 40px;
}

.eo-ps-history .eo-history__icon .svg-icon {
    width: 18px;
    height: 18px;
}

.eo-ps-history .eo-history__body {
    gap: 4px;
    padding-top: 8px;
}

.eo-ps-history .eo-history__what {
    line-height: 1.4;
}

.eo-ps-history .eo-history__action {
    font-size: var(--eo-fs-base);
    font-weight: var(--eo-fw-semibold);
}

.eo-ps-history__message {
    margin: 0;
    font-size: var(--eo-fs-md);
    color: var(--eo-text-2);
}

.eo-ps-history .eo-history__meta {
    font-size: var(--eo-fs-sm);
}

.eo-ps-history .is-latest .eo-history__icon {
    color: var(--eo-on-brand);
    background: var(--eo-text-muted);
    border-color: transparent;
}

.eo-ps-history .is-latest .eo-history__icon.is-success {
    background: var(--eo-success);
}

.eo-ps-history .is-latest .eo-history__icon.is-warning {
    background: var(--eo-warning);
}

.eo-ps-history .is-latest .eo-history__icon.is-danger {
    background: var(--eo-danger);
}

/* a pickup (pickups.show): the scan box, then how far along in one line, a bar and two small counts */
.eo-pk-progress {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-sm);
}

.eo-pk-scan + .eo-pk-progress {
    margin-top: var(--eo-space-lg);
}

.eo-pk-progress__bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    appearance: none;
    background: var(--eo-bg-hover);
    border: 0;
    border-radius: var(--eo-radius-pill);
}

.eo-pk-progress__bar::-webkit-progress-bar {
    background: var(--eo-bg-hover);
    border-radius: var(--eo-radius-pill);
}

.eo-pk-progress__bar::-webkit-progress-value {
    background: var(--eo-success);
    border-radius: var(--eo-radius-pill);
}

.eo-pk-progress__bar::-moz-progress-bar {
    background: var(--eo-success);
    border-radius: var(--eo-radius-pill);
}

/* a row shows "স্ক্যান হয়নি" until its scan, then "দেওয়া হয়েছে" */
tr.is-scanned .eo-pk-wait,
tr:not(.is-scanned) .eo-pk-done {
    display: none;
}

.eo-pk-finish {
    width: 100%;
    justify-content: center;
}

/* the numbers carry the scan script's hook class (.eo-stat__value) but keep this line's own sizes */
.eo-pk-progress .eo-stat__value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* in the narrow side column the photo box stacks: the camera and words on top, the select button under them */
.pd-side .eo-upload__zone {
    flex-wrap: wrap;
}

.pd-side .eo-upload__zone .eo-upload__pick {
    flex: 1 1 100%;
    justify-content: center;
}

/* the scan box is this page's main tool, so it is tall and easy to hit */
.eo-pk-scan .eo-scan__input {
    height: 56px;
    font-size: var(--eo-fs-lg);
}

.eo-pk-scan > .svg-icon {
    width: 22px;
    height: 22px;
}

/* three numbers side by side: scanned of expected (the main one), left, to keep aside */
.eo-pk-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
    overflow: hidden;
}

/* a rider's trip once it is back: delivered and not delivered only, each half the width */
.eo-pk-stats.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eo-pk-stat {
    display: flex;
    flex-direction: column;
    /* a label that wraps on a phone (আলাদা রাখুন) keeps its number on the same line as the others */
    justify-content: space-between;
    gap: 2px;
    padding: var(--eo-space-md) var(--eo-space-base);
}

.eo-pk-stat + .eo-pk-stat {
    border-left: 1px solid var(--eo-border);
}

.eo-pk-stat__label {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-pk-stat__value {
    font-size: var(--eo-fs-xl);
    font-weight: var(--eo-fw-bold);
    color: var(--eo-text);
    font-variant-numeric: tabular-nums;
}

.eo-pk-stat__value small {
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-text-muted);
}

.eo-pk-stat.is-main .eo-pk-stat__value {
    color: var(--eo-success-strong);
}

.eo-pk-stat.is-danger .eo-pk-stat__value {
    color: var(--eo-danger-strong);
}

.eo-pk-done-note {
    display: flex;
    align-items: center;
    gap: var(--eo-space-sm);
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-md);
    font-size: var(--eo-fs-md);
    font-weight: var(--eo-fw-medium);
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
    border-radius: var(--eo-radius-lg);
}

.eo-pk-done-note[hidden] {
    display: none;
}

.eo-pk-done-note > .svg-icon {
    flex: none;
    width: 18px;
    height: 18px;
}

/* a finished pickup: the courier account beside the courier's name, the handover photo as a picture, a quiet line when no one was noted */
.eo-pk-account {
    margin-left: var(--eo-space-xs);
    font-size: var(--eo-fs-sm);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-pk-photo {
    display: block;
    margin: 0 var(--eo-space-lg) var(--eo-space-lg);
    overflow: hidden;
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-pk-photo img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}


/* money in the pickup list sits on the right, like every money column */
.eo-pk-layout :is(th, td).eo-num {
    text-align: right;
}

/* one pickup on a laptop: like the rider's trip, the side cards give up 60px, the cells sit closer and the status, heads,
   names and scan time may take two lines, so the last column (who scanned it) stays inside the parcel card */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .pd-layout.eo-od-layout.eo-pks-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .eo-pks-parcels :is(th, td) {
        padding-right: var(--eo-space-sm);
        padding-left: var(--eo-space-sm);
    }

    .eo-pks-parcels th,
    .eo-pks-parcels .eo-cell-main,
    .eo-pks-parcels .eo-cell-sub {
        white-space: normal;
    }

    .eo-pks-parcels .eo-badge {
        height: auto;
        min-height: 22px;
        padding-top: 3px;
        padding-bottom: 3px;
        line-height: 1.35;
        white-space: normal;
    }
}

/* a rider's trip on a laptop: the side cards give up 60px and the "ডেলিভারি হয়েছে" button keeps only its tick (the word
   is its hover), so the status and the row's buttons stay inside the parcel card instead of sliding off its right edge */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .pd-layout.eo-od-layout.eo-rt-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

/* the narrowest laptops (the card is about 570px): the cells sit closer still, so a longer name has room */
@media (min-width: 1200px) and (max-width: 1365.98px) {
    .eo-rt-layout .eo-rt-parcels :is(th, td) {
        padding-right: var(--eo-space-sm);
        padding-left: var(--eo-space-sm);
    }
}

/* from a tablet up to a wide laptop the parcel row must fit its card: the status, the money heads and the buyer's name
   may take two lines, the cells sit a little closer, and the deliver button is its tick only */
@media (min-width: 768px) and (max-width: 1599.98px) {
    .eo-rt-parcels :is(th, td) {
        padding-right: var(--eo-space-md);
        padding-left: var(--eo-space-md);
    }

    .eo-rt-parcels th,
    .eo-rt-parcels .eo-cell-main {
        white-space: normal;
    }

    .eo-rt-parcels .eo-badge {
        height: auto;
        min-height: 22px;
        padding-top: 3px;
        padding-bottom: 3px;
        line-height: 1.35;
        white-space: normal;
    }

    .eo-rt-parcels .eo-btn.eo-rt-act {
        width: var(--eo-control-h-sm);
        padding: 0;
        justify-content: center;
    }

    .eo-rt-parcels .eo-btn.eo-rt-act > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* the order list's source: its icon and its name in one quiet line */
.eo-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 160px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    white-space: nowrap;
}

.eo-source > .svg-icon {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--eo-text-muted);
}

.eo-source > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the hand-over's two people, each a round initial, a name and one grey line, their part on the right */
.eo-pk-people {
    display: flex;
    flex-direction: column;
}

.eo-pk-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-bottom: 1px solid var(--eo-border);
}

.eo-pk-person__role {
    flex: none;
    padding: 2px 10px;
    font-size: var(--eo-fs-xs);
    color: var(--eo-text-2);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

/* the parcel page's side cards read like the customer card above them: an icon before each label, the same size of
   words, the value in the text colour; an estimate says so in a small tag before the amount */
.eo-ps-body .pd-side .eo-od-facts > div {
    align-items: center;
    padding: 9px 0;
    font-size: var(--eo-fs-md);
}

.eo-ps-body .pd-side .eo-od-facts dt {
    display: inline-flex;
    align-items: center;
    gap: var(--eo-space-sm);
    color: var(--eo-text-2);
}

.eo-ps-body .pd-side .eo-od-facts dt > .svg-icon {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--eo-text-subtle);
}

.eo-ps-body .pd-side .eo-od-facts dd {
    font-weight: var(--eo-fw-medium);
}


.eo-ps-body .pd-side .eo-od-facts > div.eo-ps-total dt,
.eo-ps-body .pd-side .eo-od-facts > div.eo-ps-total dd {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-text);
}

/* the return card on the parcel page: its facts row and buttons sit inside the card's edges, the item table runs edge to edge */
.eo-ps-return .eo-ps-return__facts {
    margin: var(--eo-space-base) var(--eo-space-lg);
}

.eo-ps-return .eo-ps-return__foot {
    margin-top: 0;
    padding: var(--eo-space-md) var(--eo-space-lg);
}

/* a partial delivery's products the buyer kept whole: one grey line under the list (parcel page and return page) */
.eo-ps-return__kept {
    margin: 0;
    padding: var(--eo-space-sm) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

/* the return's products: the order page's rows under a hairline, the counts as small chips (a zero stays grey) */
.eo-ps-ritems {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--eo-border);
}

.eo-ps-rchips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.eo-ps-rchip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-pill);
}

.eo-ps-rchip strong {
    font-weight: var(--eo-fw-semibold);
}

.eo-ps-rchip.is-neutral {
    color: var(--eo-text);
}

.eo-ps-rchip.is-success {
    color: var(--eo-success-strong);
    background: var(--eo-success-10);
    border-color: transparent;
}

.eo-ps-rchip.is-warning {
    color: var(--eo-warning-strong);
    background: var(--eo-warning-10);
    border-color: transparent;
}

.eo-ps-rchip.is-danger {
    color: var(--eo-danger-strong);
    background: var(--eo-danger-10);
    border-color: transparent;
}

.eo-ps-ritems .eo-od-item__amount small {
    display: block;
    font-size: var(--eo-fs-xs);
    font-weight: var(--eo-fw-normal);
    color: var(--eo-text-muted);
}

.eo-ps-ritems .eo-od-item__sub .svg-icon {
    width: 13px;
    height: 13px;
}

/* phone: the tile and name on top with the amount at their right, the chips in one wrapping row under the name */
@media (max-width: 575.98px) {
    .eo-ps-ritems .eo-od-item {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        grid-template-areas: none;
        align-items: start;
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-ps-ritems .eo-od-item__pic {
        grid-column: 1;
        grid-row: 1;
        width: 40px;
        height: 40px;
    }

    .eo-ps-ritems .eo-od-item__what {
        grid-column: 2;
        grid-row: 1;
    }

    .eo-ps-ritems .eo-od-item__amount {
        grid-column: 3;
        grid-row: 1;
    }

    .eo-ps-ritems .eo-ps-rchips {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
}

/* the label page in a browser (no PDF tool): a grey page, a bar on top (what, size, print), the labels on white paper.
   Printing shows the labels alone */
.eo-labels.is-screen {
    padding: var(--eo-space-xl) var(--eo-space-base);
    font-family: "Noto Sans Bengali", sans-serif;
    background: var(--eo-surface-2);
}

.eo-labels__bar {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eo-space-md);
    max-width: 210mm;
    margin: 0 auto var(--eo-space-md);
}

.eo-labels__what {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}

.eo-labels__what strong {
    font-size: var(--eo-fs-lg);
    color: var(--eo-text);
}

.eo-labels__what span {
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
}

.eo-labels__sizes {
    display: inline-flex;
    padding: 3px;
    background: var(--eo-surface);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius-lg);
}

.eo-labels__size {
    padding: 6px 14px;
    font: inherit;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-2);
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: var(--eo-radius);
}

.eo-labels__size.is-active {
    font-weight: var(--eo-fw-semibold);
    color: var(--eo-on-brand);
    background: var(--eo-brand);
}

.eo-labels.is-screen .eo-labels__paper {
    box-sizing: border-box;
    max-width: 210mm;
    margin: 0 auto;
    padding: 6mm;
    background: #fff;
    border: 1px solid var(--eo-border);
}

.eo-labels--a4.is-screen {
    padding: var(--eo-space-xl) var(--eo-space-base);
}

/* a thermal roll is narrow: its labels sit centred on the same wide paper as the bar above */
.eo-labels--thermal.is-screen .eo-label-card {
    margin-right: auto;
    margin-left: auto;
}

.eo-labels--thermal.is-screen .eo-label-card + .eo-label-card {
    margin-top: 6mm;
}

/* a phone: the 95mm sticker is wider than the screen, so on screen it takes the paper's width and grows in height as its
   lines wrap; the printed sheet keeps the real size */
@media screen and (max-width: 575.98px) {
    .eo-labels.is-screen,
    .eo-labels--a4.is-screen {
        padding: var(--eo-space-base) var(--eo-space-md);
    }

    .eo-labels.is-screen .eo-labels__paper {
        padding: var(--eo-space-sm);
    }

    /* the black cash band sits on the card's bottom edge, so the card keeps room for it under the last line */
    .eo-labels--a4.is-screen .eo-label-card {
        width: 100%;
        height: auto;
        min-height: 64mm;
        margin-right: 0;
        padding-bottom: 11mm;
    }

    .eo-labels--thermal.is-screen .eo-label-card {
        max-width: 100%;
    }
}

@media print {
    .eo-labels.is-screen {
        padding: 0;
        background: #fff;
    }

    .eo-labels__bar {
        display: none;
    }

    .eo-labels.is-screen .eo-labels__paper {
        max-width: none;
        padding: 0;
        border: 0;
    }

    .eo-labels--a4.is-screen .eo-labels__paper {
        padding: 0;
    }

    .eo-labels--thermal.is-screen .eo-label-card + .eo-label-card {
        margin-top: 0;
    }
}

/* a row menu with one item shows that item as a button and keeps its ⋮ hidden; when another row of the same table needs a
   real menu, every row shows its ⋮ instead, so the action column never mixes buttons and ⋮ */
.eo-single-alt {
    display: none;
}

table:has(.dropdown:not(.eo-single-alt)) .eo-single-alt {
    display: inline-block;
}

table:has(.dropdown:not(.eo-single-alt)) .eo-single-action {
    display: none;
}

/* page: returns desk (ফেরত বুঝে নিন) */
/* the "coming back" list makes way for the form once a parcel is opened */
.eo-rd:has([data-return-form]:not([hidden])) .eo-rd-waiting,
.eo-rd[data-initial]:not([data-initial=""]) .eo-rd-waiting {
    display: none;
}

.eo-rd-find {
    padding: 0 var(--eo-space-lg) var(--eo-space-lg);
}

.eo-rd-find + .eo-empty {
    border-top: 1px solid var(--eo-border);
}

.eo-rd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-rd-list__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--eo-space-md);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-rd-list__row .eo-namecell__text .eo-cell-sub {
    white-space: normal;
}

.eo-rd-list__age {
    white-space: nowrap;
}

/* one product per row: photo and name on the left, the count boxes in one line on the right */
.eo-rd-item {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: var(--eo-space-lg);
    padding: var(--eo-space-md) var(--eo-space-lg);
    border-top: 1px solid var(--eo-border);
}

.eo-rd-item__product {
    display: flex;
    align-items: center;
    gap: var(--eo-space-md);
    min-width: 0;
}

.eo-rd-item__thumb {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    color: var(--eo-text-subtle);
    background: var(--eo-surface-2);
    border: 1px solid var(--eo-border);
    border-radius: var(--eo-radius);
}

.eo-rd-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eo-rd-item__name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eo-rd-item__name b {
    color: var(--eo-text);
    font-weight: var(--eo-fw-semibold);
}

.eo-rd-item__counts {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: var(--eo-space-sm);
}

.eo-rd-count {
    display: flex;
    flex-direction: column;
    gap: var(--eo-space-2xs);
    min-width: 0;
    margin: 0;
}

.eo-rd-count[hidden] {
    display: none;
}

.eo-rd-count__label {
    overflow: hidden;
    font-size: var(--eo-fs-sm);
    color: var(--eo-text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-rd-count .eo-control {
    width: 100%;
    text-align: center;
}

/* the label's colour says which pile a box counts; only "good" (what goes back to stock) is filled, a red or orange
   box would read as an error while it still says 0 */
.eo-rd-count.is-good .eo-control { border-color: var(--eo-success); background: var(--eo-success-10); }
.eo-rd-count.is-good .eo-rd-count__label { color: var(--eo-success-strong); }
.eo-rd-count.is-damaged .eo-rd-count__label { color: var(--eo-danger-strong); }
.eo-rd-count.is-missing .eo-rd-count__label { color: var(--eo-warning-strong); }

.eo-rd-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--eo-space-md);
    border-top: 1px solid var(--eo-border);
}

@media (max-width: 767.98px) {
    .eo-rd-item {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--eo-space-md);
    }

    .eo-rd-item__counts {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eo-rd-count--photo {
        grid-column: 1 / -1;
    }

    .eo-rd-extra {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .eo-rd-list__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--eo-space-sm) var(--eo-space-md);
        padding: var(--eo-space-md) var(--eo-space-base);
    }

    .eo-rd-list__age {
        grid-row: 2;
        padding-left: calc(32px + var(--eo-space-sm));
    }

    .eo-rd-list__row .eo-btn {
        grid-row: 1 / 3;
        grid-column: 2;
    }

    .eo-rd-item {
        padding: var(--eo-space-md) var(--eo-space-base);
    }
}
/* end page: returns desk */

/* coming-soon page (user/soon.blade.php): what is coming on the left, a still picture of it on the right; a phone stacks
   them, picture last. The picture is plain HTML in the panel colours, so it follows light and dark */
.eo-soon { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 40px; background: radial-gradient(120% 90% at 100% 0%, var(--eo-brand-10), transparent 60%), var(--eo-surface); border: 1px solid var(--eo-border); border-radius: var(--eo-radius-lg); overflow: hidden; }
.eo-soon--solo { grid-template-columns: minmax(0, 640px); justify-content: center; text-align: center; }
.eo-soon__intro { display: flex; flex-direction: column; gap: var(--eo-space-md); min-width: 0; }
.eo-soon--solo .eo-soon__intro { align-items: center; }
.eo-soon__badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 4px 12px; font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-brand); background: var(--eo-brand-10); border-radius: 999px; }
.eo-soon--solo .eo-soon__badge { align-self: center; }
.eo-soon__badge .svg-icon { width: 14px; height: 14px; }
.eo-soon__title { margin: 0; font-size: 1.75rem; font-weight: var(--eo-fw-bold); line-height: 1.35; color: var(--eo-text); }
.eo-soon__text { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--eo-text-muted); }
.eo-soon__points { display: flex; flex-direction: column; gap: 14px; margin: var(--eo-space-xs) 0 0; padding: 0; list-style: none; text-align: left; }
.eo-soon__points li { display: flex; gap: 12px; align-items: flex-start; }
.eo-soon__points strong { display: block; font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-soon__points small { display: block; margin-top: 2px; font-size: var(--eo-fs-sm); line-height: 1.6; color: var(--eo-text-muted); }
.eo-soon__point-icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; color: var(--eo-brand); background: var(--eo-brand-10); border-radius: var(--eo-radius-lg); }
.eo-soon__point-icon .svg-icon { width: 18px; height: 18px; }
.eo-soon__note { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin: var(--eo-space-xs) 0 0; padding: 8px 12px; font-size: var(--eo-fs-sm); color: var(--eo-text-muted); background: var(--eo-surface-2); border: 1px dashed var(--eo-border); border-radius: var(--eo-radius-lg); }
.eo-soon--solo .eo-soon__note { align-self: center; }
.eo-soon__note .svg-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.eo-soon__preview { min-width: 0; pointer-events: none; user-select: none; }

/* the inbox picture: a small window with the chat list beside one open chat */
.eo-soon-inbox { overflow: hidden; background: var(--eo-surface); border: 1px solid var(--eo-border); border-radius: 12px; box-shadow: var(--eo-shadow-float); transform: perspective(1400px) rotateY(-4deg); }
.eo-soon-inbox__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--eo-surface-2); border-bottom: 1px solid var(--eo-border); }
.eo-soon-inbox__bar span { width: 9px; height: 9px; background: var(--eo-border); border-radius: 50%; }
.eo-soon-inbox__body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); min-height: 330px; }
.eo-soon-inbox__list { margin: 0; padding: 6px; list-style: none; border-right: 1px solid var(--eo-border); }
.eo-soon-inbox__list li { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--eo-radius-lg); }
.eo-soon-inbox__list li.is-active { background: var(--eo-brand-10); }
.eo-soon-inbox__avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text); background: var(--eo-surface-2); border: 1px solid var(--eo-border); border-radius: 50%; }
.eo-soon-inbox__ch { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; color: #FFFFFF; border: 2px solid var(--eo-surface); border-radius: 50%; }
.eo-soon-inbox__ch .svg-icon { width: 10px; height: 10px; }
.eo-soon-inbox__ch--messenger { background: #0866FF; }
.eo-soon-inbox__ch--whatsapp { background: #25D366; }
.eo-soon-inbox__ch--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.eo-soon-inbox__ch--tiktok { background: #111111; }
.eo-soon-inbox__who { flex: 1 1 auto; min-width: 0; }
.eo-soon-inbox__who strong,
.eo-soon-inbox__who small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.eo-soon-inbox__who strong { font-size: var(--eo-fs-sm); font-weight: var(--eo-fw-semibold); color: var(--eo-text); }
.eo-soon-inbox__who small { font-size: var(--eo-fs-xs); color: var(--eo-text-muted); }
.eo-soon-inbox__time { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11px; color: var(--eo-text-muted); }
.eo-soon-inbox__time b { width: 8px; height: 8px; background: var(--eo-brand); border-radius: 50%; }
.eo-soon-inbox__chat { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--eo-surface-2); }
.eo-soon-inbox__msg { align-self: flex-start; max-width: 85%; margin: 0; padding: 8px 12px; font-size: var(--eo-fs-sm); line-height: 1.55; color: var(--eo-text); background: var(--eo-surface); border: 1px solid var(--eo-border); border-radius: 14px 14px 14px 4px; }
.eo-soon-inbox__msg.is-mine { align-self: flex-end; color: var(--eo-on-brand); background: var(--eo-brand); border-color: var(--eo-brand); border-radius: 14px 14px 4px 14px; }
.eo-soon-inbox__order { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--eo-surface); border: 1px solid color-mix(in srgb, var(--eo-success) 40%, var(--eo-border)); border-radius: var(--eo-radius-lg); }
.eo-soon-inbox__order-icon { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; color: var(--eo-success); background: color-mix(in srgb, var(--eo-success) 14%, transparent); border-radius: 50%; }
.eo-soon-inbox__order-icon .svg-icon { width: 15px; height: 15px; }
.eo-soon-inbox__order strong { display: block; font-size: var(--eo-fs-sm); color: var(--eo-text); }
.eo-soon-inbox__order small { display: block; font-size: var(--eo-fs-xs); color: var(--eo-text-muted); }
.eo-soon-inbox__reply { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--eo-border); }
.eo-soon-inbox__chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: var(--eo-fs-xs); color: var(--eo-brand); background: var(--eo-surface); border: 1px solid var(--eo-border); border-radius: 999px; }
.eo-soon-inbox__chip .svg-icon { width: 12px; height: 12px; }
.eo-soon-inbox__send { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; color: var(--eo-on-brand); background: var(--eo-brand); border-radius: 50%; }
.eo-soon-inbox__send .svg-icon { width: 14px; height: 14px; }

@media (max-width: 1099.98px) {
    .eo-soon { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px; }
    .eo-soon-inbox { transform: none; }
}

@media (max-width: 575.98px) {
    .eo-soon { padding: 20px 16px; }
    .eo-soon__title { font-size: 1.375rem; }
    .eo-soon-inbox__body { grid-template-columns: minmax(0, 1fr); }
    .eo-soon-inbox__list { border-right: 0; border-bottom: 1px solid var(--eo-border); }
    .eo-soon-inbox__list li:nth-child(n+3) { display: none; }
}
