/* The new admin look (docs/ADMIN_REDESIGN_PLAN.md, mockup in docs/design/admin-redesign-mockup.html).
   Loaded after app.css. EVERY rule here starts with .admin-shell.admin-v2, so the public shop, checkout and the
   sign-in pages are untouched, and Features:AdminRedesign = false (AdminLayout) switches all of it off at once.
   Kept friendly to old phones (iPhone 6s, old Android WebViews): long-hand top/right/bottom/left, a -webkit- twin
   for backdrop-filter, and a solid fallback where it is missing. */

/* ---- Phase 1: a light page: white at the top easing into a very light grey ---------------------------------------- */
/* No coloured wash on purpose (the owner asked for it to go): the colours of the cards, tiles and buttons should be what
   the eye sees. The page is white at the top and settles to a faint cool grey, so white cards still lift off it. */
.admin-shell.admin-v2 {
    --v2-page: #f4f7fb;
    --v2-sky-line: rgba(190, 212, 242, 0.95);
    --v2-card-shadow: 0 1px 2px rgba(18, 38, 60, 0.06), 0 8px 22px rgba(18, 38, 60, 0.07);
    background-color: var(--v2-page);
    background-image: linear-gradient(180deg, #ffffff 0%, var(--v2-page) 320px);
    background-repeat: no-repeat;
    background-size: 100% 320px;
}

/* ---- Phase 2: the phone's bottom bar ----------------------------------------------------------------------------- */
@media (max-width: 640px) {
    /* On a phone the header is just a logo strip; let the sky show through it. */
    .admin-shell.admin-v2 .admin-header {
        background: transparent;
        border-bottom-color: transparent;
        box-shadow: none;
    }

    /* A bar docked to the bottom edge, full width, no rounded corners (the owner preferred it over a floating one: no
       wasted space around it). NO backdrop-filter on the bar itself: it would make the bar the containing block of
       the "আরও" sheet (position: fixed inside it) and trap the sheet in the bar's height. The glass is a layer behind it. */
    .admin-shell.admin-v2 .admin-bottom-nav {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(66px + max(env(safe-area-inset-bottom, 0px), 10px));
        padding: 0 4px max(env(safe-area-inset-bottom, 0px), 10px);
        box-sizing: border-box;
        align-items: center;
        background: transparent;
        border: 0;
        border-top: 1px solid var(--v2-sky-line);
        border-radius: 0;
        box-shadow: 0 -6px 20px rgba(60, 110, 190, 0.10);
    }
    .admin-shell.admin-v2 .admin-bottom-nav::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .admin-shell.admin-v2 .admin-bottom-nav::before { background: #fff; }
    }

    .admin-shell.admin-v2 .admin-bottom-nav-link {
        min-height: 60px;
        gap: 3px;
        font-size: 0.62rem;
        font-weight: 600;
        line-height: 1.1;
        border-radius: 20px;
        -webkit-tap-highlight-color: transparent;
    }
    /* The amber hint that stock is low: a dot, no number, no red. */
    .admin-shell.admin-v2 .admin-bottom-nav-link .dock-dot {
        position: absolute;
        top: -1px;
        right: 4px;
        width: 10px;
        height: 10px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #f0a928;
    }
    .admin-shell.admin-v2 .admin-bottom-nav-link .dock-ic {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 30px;
        border-radius: 15px;
        font-size: 1.2rem;
        transition: background-color 0.15s ease;
    }
    .admin-shell.admin-v2 .admin-bottom-nav-link:active .dock-ic { background: rgba(26, 115, 232, 0.12); }
    .admin-shell.admin-v2 .admin-bottom-nav-link.active { color: #1a63c8; font-weight: 700; }
    .admin-shell.admin-v2 .admin-bottom-nav-link.active .dock-ic { background: #d9e9ff; }

    /* Everything that sits above the bar clears its 66px (plus the home-indicator area). */
    .admin-shell.admin-v2 .admin-main { padding-bottom: calc(1rem + 66px + 1rem + max(env(safe-area-inset-bottom, 0px), 10px)); }
    .admin-shell.admin-v2 .page-header .mobile-fab { bottom: calc(66px + 14px + max(env(safe-area-inset-bottom, 0px), 10px)); }
    .admin-shell.admin-v2 .settings-form .settings-save-bar { bottom: calc(66px + max(env(safe-area-inset-bottom, 0px), 10px)); }
    .admin-shell.admin-v2 .form-submit-bar { bottom: calc(66px + max(env(safe-area-inset-bottom, 0px), 10px)); }
}

/* ---- Phase 2b: the phone header and the left drawer (PhoneAdminHeader.razor, docs/ADMIN_UI_STANDARD.md) ------------- */
/* On a phone the logo, the nav and the old account button give way to: the business on the left (it opens the drawer),
   a few quick icons on the right. Everywhere else the whole thing is hidden and the old header shows. */
.admin-shell.admin-v2 .phone-head { display: none; }
@media (max-width: 640px) {
    .admin-shell.admin-v2 .admin-header > .brand,
    .admin-shell.admin-v2 .admin-header > .admin-nav-primary,
    .admin-shell.admin-v2 .admin-header > .admin-header-actions { display: none; }
    .admin-shell.admin-v2 .phone-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }
    /* flex: 1 + min-width: 0: a very long business name is cut with "…" and never pushes the right-hand icons away. */
    .admin-shell.admin-v2 .phone-head-who {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: flex-start;   /* the global button rule centres its content; the logo and name hug the left edge */
        gap: 9px;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #0f2a4d;
        font: inherit;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .admin-shell.admin-v2 .phone-av,
    .admin-shell.admin-v2 .drawer-av {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #dbe9ff;
        color: #1a63c8;
        font-weight: 700;
        overflow: hidden;
    }
    .admin-shell.admin-v2 .phone-av-img { object-fit: cover; }
    .admin-shell.admin-v2 .phone-head-text { display: flex; flex: 0 1 auto; flex-direction: column; min-width: 0; line-height: 1.25; }
    .admin-shell.admin-v2 .phone-head-name {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1rem;
        font-weight: 600;
    }
    .admin-shell.admin-v2 .phone-head-who .icon { flex: none; width: 1rem; height: 1rem; color: #5b6b80; }
    .admin-shell.admin-v2 .phone-head-actions { display: flex; flex: none; gap: 6px; }
    .admin-shell.admin-v2 .phone-head-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #e3eaf4;
        border-radius: 13px;
        background: #fff;
        color: #0f2a4d;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .admin-shell.admin-v2 .phone-head-icon .icon { width: 1.15rem; height: 1.15rem; }
    .admin-shell.admin-v2 .phone-head-icon:active { background: #e9f2ff; }

    /* The drawer: slides over from the left on a dimmed page. Closed it is the hidden attribute, like the "আরও" sheet. */
    .admin-shell.admin-v2 .drawer-backdrop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        display: flex;
        background: rgba(15, 30, 55, 0.45);
    }
    .admin-shell.admin-v2 .drawer-backdrop[hidden] { display: none !important; }
    .admin-shell.admin-v2 .drawer {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: 80%;
        max-width: 320px;
        height: 100%;
        padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        background: #fff;
        box-shadow: 8px 0 24px rgba(15, 30, 55, 0.18);
    }
    .admin-shell.admin-v2 .drawer-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eef2f8; }
    .admin-shell.admin-v2 .drawer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
    .admin-shell.admin-v2 .drawer-group-label { margin: 14px 4px 4px; font-size: 0.75rem; color: #5b6b80; }
    .admin-shell.admin-v2 .drawer-item {
        display: flex;
        align-items: center;
        gap: 12px;
        box-sizing: border-box;
        min-height: 46px;
        padding: 0 10px;
        border-radius: 12px;
        color: #0f2a4d;
        font-size: 1rem;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .admin-shell.admin-v2 .drawer-item .icon { flex: none; width: 1.2rem; height: 1.2rem; color: #1a63c8; }
    .admin-shell.admin-v2 .drawer-item:active { background: #e9f2ff; }
    .admin-shell.admin-v2 .drawer-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid #eef2f8;
    }
    .admin-shell.admin-v2 .drawer-brand { display: block; width: auto; height: 34px; object-fit: contain; }
    .admin-shell.admin-v2 .drawer-logout { margin: 0; }
    /* [type="submit"] only to out-rank the global blue button style. */
    .admin-shell.admin-v2 .drawer-logout button[type="submit"] {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        min-height: 44px;
        margin: 0;
        padding: 0 10px;
        border: 0;
        background: transparent;
        color: #b42318;
        font: inherit;
    }
    .admin-shell.admin-v2 .drawer-logout .icon { width: 1.1rem; height: 1.1rem; }
}

/* ---- Phase 3: the dashboard (Dashboard.razor, the UseRedesign branch) --------------------------------------------- */
.admin-shell.admin-v2 .dash2 { max-width: 880px; }
.admin-shell.admin-v2 .dash2 a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.admin-shell.admin-v2 .dash2 a:active { transform: scale(0.98); }
.admin-shell.admin-v2 .dash2 .icon { flex: none; }

/* The big card: light sky, dark ink, no comparison and no trend. */
.admin-shell.admin-v2 .dash2-hero {
    position: relative;
    overflow: hidden;
    margin: 0.25rem 0 0.75rem;
    padding: 1rem;
    border: 1px solid #c3dbfa;
    border-radius: 26px;
    color: #0f2a4d;
    background: linear-gradient(135deg, #e3f0ff 0%, #d0e5ff 55%, #bdd9ff 100%);
    box-shadow: 0 12px 24px rgba(66, 128, 214, 0.20);
}
.admin-shell.admin-v2 .dash2-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -50px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}
.admin-shell.admin-v2 .dash2-hero::after {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}
.admin-shell.admin-v2 .dash2-hero > * { position: relative; z-index: 1; }
.admin-shell.admin-v2 .dash2-hero-main { display: block; }
.admin-shell.admin-v2 .dash2-hero-label { display: block; font-size: 0.85rem; color: #3a5a86; }
.admin-shell.admin-v2 .dash2-hero-value { display: block; margin: 0.1rem 0 0.7rem; font-size: 2.25rem; font-weight: 700; line-height: 1.25; color: #0d2547; }
.admin-shell.admin-v2 .dash2-hero-value.is-zero { color: #5c7aa3; }
.admin-shell.admin-v2 .dash2-hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.admin-shell.admin-v2 .dash2-hero-tiles.is-single { grid-template-columns: 1fr; }
.admin-shell.admin-v2 .dash2-glass {
    display: block;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: #3a5a86;
}
.admin-shell.admin-v2 .dash2-glass-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; }
.admin-shell.admin-v2 .dash2-glass-value { display: block; margin-top: 0.1rem; font-size: 1.15rem; font-weight: 700; color: #0d2547; }
.admin-shell.admin-v2 .dash2-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.admin-shell.admin-v2 .dash2-dot.is-in { background: #19a463; }
.admin-shell.admin-v2 .dash2-dot.is-out { background: #e0568a; }
.admin-shell.admin-v2 .dash2-hero-split { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0.6rem 0 0; font-size: 0.78rem; color: #3a5a86; }

/* Cards: white, soft shadow, press feedback. */
.admin-shell.admin-v2 .dash2-card {
    display: flex;
    box-sizing: border-box;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--v2-card-shadow);
    transition: transform 0.12s ease;
}
.admin-shell.admin-v2 .dash2-title { margin: 1.1rem 0.15rem 0.5rem; font-size: 0.95rem; font-weight: 700; color: var(--ink); }

.admin-shell.admin-v2 .dash2-order { align-items: center; gap: 0.75rem; min-height: 60px; padding: 0.6rem 0.8rem; border: 1px solid #cfe0fb; background: #f3f8ff; }
.admin-shell.admin-v2 .dash2-order-ic { position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #e6f0fd; color: var(--brand); font-size: 1.2rem; }
.admin-shell.admin-v2 .dash2-order.has-new .dash2-order-ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border: 2px solid #f3f8ff; border-radius: 50%; background: #d6457a; }
.admin-shell.admin-v2 .dash2-order-text { flex: 1; min-width: 0; }
.admin-shell.admin-v2 .dash2-order-text b { display: block; font-size: 0.95rem; }
.admin-shell.admin-v2 .dash2-order-text small { font-size: 0.8rem; color: var(--muted); }

.admin-shell.admin-v2 .dash2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.admin-shell.admin-v2 .dash2-due { position: relative; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0.8rem; overflow: hidden; }
.admin-shell.admin-v2 .dash2-due::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 4px; border-radius: 0 4px 4px 0; background: transparent; }
.admin-shell.admin-v2 .dash2-due.is-customers.has-due::before { background: #f0a928; }
.admin-shell.admin-v2 .dash2-due.is-suppliers.has-due::before { background: #d6457a; }
.admin-shell.admin-v2 .dash2-due-head { display: flex; align-items: center; gap: 0.5rem; }
.admin-shell.admin-v2 .dash2-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 12px; background: #eef2f6; color: #607084; font-size: 1.1rem; }
.admin-shell.admin-v2 .dash2-due.is-customers.has-due .dash2-ic { background: #fff1d0; color: #b86e00; }
.admin-shell.admin-v2 .dash2-due.is-suppliers.has-due .dash2-ic { background: #fde8ef; color: #d6457a; }
.admin-shell.admin-v2 .dash2-due-label { font-size: 0.82rem; line-height: 1.25; color: var(--muted); }
.admin-shell.admin-v2 .dash2-due-value { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.admin-shell.admin-v2 .dash2-due-value.is-zero { color: var(--muted); font-weight: 600; }
.admin-shell.admin-v2 .dash2-due-sub { font-size: 0.75rem; line-height: 1.35; color: var(--muted); }

.admin-shell.admin-v2 .dash2-stock { align-items: center; gap: 0.75rem; min-height: 72px; padding: 0.65rem 0.8rem; }
.admin-shell.admin-v2 .dash2-stock-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 16px; background: #e6f0fd; color: var(--brand); font-size: 1.3rem; }
.admin-shell.admin-v2 .dash2-stock-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-shell.admin-v2 .dash2-stock-label { font-size: 0.8rem; color: var(--muted); }
.admin-shell.admin-v2 .dash2-stock-value { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.admin-shell.admin-v2 .dash2-prefix { margin-right: 0.3rem; font-size: 0.6em; font-weight: 600; color: var(--muted); }
.admin-shell.admin-v2 .dash2-stock-sub { font-size: 0.75rem; color: var(--muted); }

.admin-shell.admin-v2 .dash2-low { align-items: center; gap: 0.75rem; min-height: 64px; padding: 0.6rem 0.8rem; }
.admin-shell.admin-v2 .dash2-stock + .dash2-low { margin-top: 0.6rem; }
.admin-shell.admin-v2 .dash2-low-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #eef2f6; color: #607084; font-size: 1.2rem; }
.admin-shell.admin-v2 .dash2-low-text { flex: 1; min-width: 0; }
.admin-shell.admin-v2 .dash2-low-text b { display: block; font-size: 0.95rem; }
.admin-shell.admin-v2 .dash2-low-text small { font-size: 0.78rem; color: var(--muted); }
.admin-shell.admin-v2 .dash2-low-count { font-size: 1.3rem; font-weight: 700; color: #b86e00; }
.admin-shell.admin-v2 .dash2-low.has-low { border: 1px solid #f6dfa8; background: #fffaf0; }
.admin-shell.admin-v2 .dash2-low.has-low .dash2-low-ic { background: #fff1d0; color: #b86e00; }

/* Quick actions: the main one is a full-width blue button; the rest sit two to a row, all in view, nothing to scroll. */
.admin-shell.admin-v2 .dash2-fast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 54px;
    margin-bottom: 0.6rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a73e8, #3b8cf0);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.26);
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    transition: transform 0.12s ease;
}
.admin-shell.admin-v2 .dash2-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
/* An odd number of actions (online shops have five): the last one takes the whole row instead of leaving a hole. */
.admin-shell.admin-v2 .dash2-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.admin-shell.admin-v2 .dash2-chip { display: flex; align-items: center; gap: 0.5rem; min-width: 0; min-height: 52px; padding: 0.35rem 0.75rem 0.35rem 0.6rem; border-radius: 16px; background: #fff; box-shadow: var(--v2-card-shadow); font-size: 0.85rem; font-weight: 600; line-height: 1.25; color: #2b3b55; transition: transform 0.12s ease; }
/* The share tile is a button (it opens the share window): the same look as the link tiles. */
.admin-shell.admin-v2 button.dash2-chip { width: 100%; margin: 0; border: 0; font: inherit; font-size: 0.85rem; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.admin-shell.admin-v2 .dash2-store { margin-top: 0.25rem; }
/* On a phone and a tablet the Facebook share tile is hidden by app.css (it does not hand over reliably there), so the QR tile
   is alone in its row and takes the whole row. */
@media (max-width: 1100px) {
    .admin-shell.admin-v2 .dash2-store .dash2-chip:last-child { grid-column: 1 / -1; }
}
.admin-shell.admin-v2 .dash2-chip > span { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 10px; font-size: 1rem; }
.admin-shell.admin-v2 .dash2-chip.is-green > span { background: #e1f5e9; color: #0f9d58; }
.admin-shell.admin-v2 .dash2-chip.is-blue > span { background: #e6f0fd; color: #1a73e8; }
.admin-shell.admin-v2 .dash2-chip.is-orange > span { background: #ffe9d6; color: #e8710a; }
.admin-shell.admin-v2 .dash2-chip.is-violet > span { background: #efe7fb; color: #6b3fc4; }
.admin-shell.admin-v2 .dash2-chip.is-teal > span { background: #dff4f4; color: #0b8a8c; }

/* The hidden setup strip: a quiet dashed button at the bottom. */
.admin-shell.admin-v2 .dash2-setup { margin-top: 1rem; }
.admin-shell.admin-v2 .dash2-setup-toggle { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 50px; margin: 0; border: 1px dashed #b7c4d3; border-radius: 16px; background: transparent; font: inherit; font-size: 0.85rem; font-weight: 600; color: #4a5b72; cursor: pointer; }
.admin-shell.admin-v2 .dash2-setup-toggle em { padding: 1px 8px; border-radius: 999px; background: #e3e9f1; font-style: normal; font-size: 0.72rem; }
.admin-shell.admin-v2 .dash2-setup-toggle .dash2-setup-chevron { transition: transform 0.2s ease; }
.admin-shell.admin-v2 .dash2-setup.is-open .dash2-setup-chevron { transform: rotate(180deg); }
.admin-shell.admin-v2 .dash2-setup .setup-strip { margin-top: 0.5rem; }

@media (min-width: 641px) {
    /* On a wide screen as many as fit, each at least 200px wide. */
    .admin-shell.admin-v2 .dash2-chips { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .admin-shell.admin-v2 .dash2-chip:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---- Phase 4b: the report pages (লাভ-ক্ষতি, বিক্রয়/ক্রয় রিপোর্ট), the same pattern as the list pages ------------------ */
/* Screen only: the shop name and title card stay as they are on paper. On a phone the title card (shop name + title) becomes a
   plain title row, the period bar is just the pills with the date range as one small line, and the tabs are a segmented control. */
@media screen and (max-width: 640px) {
    .admin-shell.admin-v2 .admin-main .report-header.report-header-app {
        margin: 0 0 0.6rem;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
    }
    .admin-shell.admin-v2 .admin-main .report-header.report-header-app .report-shop-name { display: none; }
    .admin-shell.admin-v2 .admin-main .report-header.report-header-app .report-header-top { flex-wrap: nowrap; align-items: center; }
    .admin-shell.admin-v2 .admin-main .report-header.report-header-app .report-title {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.35;
        color: #0f2a4d;
    }
    .admin-shell.admin-v2 .admin-main .report-range-bar {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 0 0 0.4rem;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
    }
    .admin-shell.admin-v2 .admin-main .report-range-bar .report-period-presets { order: 1; }
    .admin-shell.admin-v2 .admin-main .report-range-bar .report-range-copy { order: 2; flex-direction: row; align-self: flex-start; text-align: left; }
    .admin-shell.admin-v2 .admin-main .report-range-bar .report-custom-dates { order: 3; }
    .admin-shell.admin-v2 .admin-main .report-range-copy .report-range-label { display: none; }
    .admin-shell.admin-v2 .admin-main .report-range-copy strong { font-size: 0.8rem; font-weight: 400; color: #5b6b80; }
}

/* The two tabs as one segmented control (all widths). */
.admin-shell.admin-v2 .admin-main .report-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin: 0.5rem 0;
    padding: 3px;
    border: 0;
    border-radius: 14px;
    background: #e6edf7;
}
.admin-shell.admin-v2 .admin-main .report-tabs .tab-button {
    margin: 0;
    padding: 0.55rem 0.4rem;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #5b6b80;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
}
.admin-shell.admin-v2 .admin-main .report-tabs .tab-button:hover:not(.active) { background: transparent; color: #0f2a4d; }
.admin-shell.admin-v2 .admin-main .report-tabs .tab-button.active {
    background: #fff;
    color: #1a63c8;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(18, 38, 60, 0.08);
}
.admin-shell.admin-v2 .report-tab-body { margin-top: 0.6rem; }

/* The result card: the light sky card like the dashboard (soft rose for a loss, never a scary red), then the sums as one
   soft card. The "= লাভ" row is left out: the card above it is the same number. */
.admin-shell.admin-v2 .profit-statement { max-width: none; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.admin-shell.admin-v2 .profit-statement-hero {
    padding: 0.8rem 1rem;
    border: 1px solid #c3dbfa;
    border-radius: 20px;
    background: linear-gradient(135deg, #e3f0ff 0%, #d0e5ff 55%, #bdd9ff 100%);
}
.admin-shell.admin-v2 .profit-statement.tone-loss .profit-statement-hero {
    border-color: #f1c8c8;
    background: linear-gradient(135deg, #fdf0f0 0%, #f9dede 100%);
}
.admin-shell.admin-v2 .profit-statement-label { color: #2d4f80; }
.admin-shell.admin-v2 .profit-statement.tone-loss .profit-statement-label { color: #8a3a3a; }
.admin-shell.admin-v2 .profit-statement-value { font-size: 1.8rem; color: #0f2a4d; }
.admin-shell.admin-v2 .profit-statement.tone-loss .profit-statement-value { color: #9b2c2c; }
.admin-shell.admin-v2 .profit-statement-rows,
.admin-shell.admin-v2 .profit-statement-split {
    margin: 8px 0 0;
    padding: 0.25rem 0.9rem;
    border: 1px solid #e3eaf4;
    border-radius: 16px;
    background: #fff;
}
.admin-shell.admin-v2 .profit-statement-rows .profit-statement-total { display: none; }
.admin-shell.admin-v2 .profit-statement-note {
    margin: 8px 0 0;
    border: 1px solid #f6d99a;
    border-radius: 14px;
    background: #fff7e6;
    color: #745714;
}

/* বাকির অবস্থা: small cards side by side (a row of its own when there is only one). */
.admin-shell.admin-v2 .report-due-title { margin: 1rem 0 0.4rem; font-size: 0.85rem; font-weight: 400; color: #5b6b80; }
.admin-shell.admin-v2 .report-due-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
.admin-shell.admin-v2 .report-due-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 0;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e3eaf4;
    border-radius: 14px;
    background: #fff;
}
.admin-shell.admin-v2 .report-due-row + .report-due-row { border-top: 1px solid #e3eaf4; }
.admin-shell.admin-v2 .report-due-row span { font-size: 0.75rem; }
.admin-shell.admin-v2 .report-due-row strong { font-size: 0.98rem; }
.admin-shell.admin-v2 .report-due-row .icon { display: none; }
.admin-shell.admin-v2 .report-due-card > .report-due-row:only-child { grid-column: 1 / -1; }
.admin-shell.admin-v2 .report-flow-card { border-color: #e3eaf4; border-radius: 16px; }

/* ---- Phase 5: forms, detail pages, reports, settings: the same soft cards and press feedback ------------------------ */
.admin-shell.admin-v2 .entry-form-section,
.admin-shell.admin-v2 .detail-section,
.admin-shell.admin-v2 .settings-group-card,
.admin-shell.admin-v2 .settings-card,
.admin-shell.admin-v2 .admin-form-card,
.admin-shell.admin-v2 .report-flow-card,
.admin-shell.admin-v2 .report-due-card,
.admin-shell.admin-v2 .filter-panel {
    border-color: transparent;
    border-radius: 20px;
    box-shadow: var(--v2-card-shadow);
}
/* Summary tiles keep their own coloured edge (amber while something is owed), so only the shape and shadow change. */
.admin-shell.admin-v2 .stat-card { border-radius: 18px; box-shadow: var(--v2-card-shadow); }

/* Everything that can be pressed answers the press at once. */
.admin-shell.admin-v2 .button,
.admin-shell.admin-v2 a.settings-card,
.admin-shell.admin-v2 a.stat-card,
.admin-shell.admin-v2 .pill { transition: transform 0.12s ease, background-color 0.12s ease; }
.admin-shell.admin-v2 .button:active,
.admin-shell.admin-v2 a.settings-card:active,
.admin-shell.admin-v2 a.stat-card:active,
.admin-shell.admin-v2 .pill:active { transform: scale(0.98); }

/* ---- Phase 4: list pages (Products, Sales, Purchases, Customers, Suppliers, Expenses, Orders) ----------------------- */

/* The period + count line above the summary cards: the period is a light pill, the count sits at the far end. */
.admin-shell.admin-v2 .list-filter-line { gap: 0.5rem; margin-bottom: 0.6rem; }
.admin-shell.admin-v2 .list-filter-line .list-period-select {
    padding: 0.4rem 1.9rem 0.4rem 0.9rem;
    border: 1px solid #d4e1f3;
    border-radius: 999px;
    background-color: #fff;
    background-position: right 0.6rem center;
    color: #0f2a4d;
}
.admin-shell.admin-v2 .list-filter-line .list-count-summary { margin-left: auto; color: #5b6b80; font-size: 0.8rem; }

/* While the numbers load: two blank cards of the same height, so nothing below them moves when the real ones arrive. */
.admin-shell.admin-v2 .sum-cards-skeleton .sum-card { height: 65px; background: #eaf0f8; box-shadow: none; }

/* Summary cards (SummaryCards.razor): a big total, then "হাতে পেয়েছি" and an amber "এখনো পাওনা" side by side. */
/* All the cards share ONE row (2 or 3 of them, equal width, never scrolling); .sum-pair only groups, so it takes no box. */
.admin-shell.admin-v2 .sum-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 0.7rem; }
.admin-shell.admin-v2 .sum-pair { display: contents; }
.admin-shell.admin-v2 .sum-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* the global button rule centres; the due card is a button */
    justify-content: flex-start;
    gap: 2px;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.45rem 0.6rem;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(18, 38, 60, 0.06), 0 4px 10px rgba(18, 38, 60, 0.05);
    color: #0f2a4d;
    font: inherit;
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.admin-shell.admin-v2 .sum-label { font-size: 0.7rem; line-height: 1.2; color: #5b6b80; }
.admin-shell.admin-v2 .sum-value { font-size: 0.95rem; font-weight: 700; line-height: 1.25; color: #0f2a4d; overflow-wrap: anywhere; }
.admin-shell.admin-v2 .sum-card-received .sum-value { color: #1a7a43; }
.admin-shell.admin-v2 .sum-more { font-size: 0.68rem; line-height: 1.2; color: #1a63c8; text-decoration: none; }
.admin-shell.admin-v2 .sum-card-due { background: #fff7e6; box-shadow: none; border: 1px solid #f6d99a; }
.admin-shell.admin-v2 .sum-card-due .sum-label,
.admin-shell.admin-v2 .sum-card-due .sum-value,
.admin-shell.admin-v2 .sum-card-due .sum-more { color: #9a5b00; }

/* Header buttons. One main action (the floating "+ নতুন ..." button), at most two secondary ones (light, with an icon),
   everything else under the "⋯" menu (PageMoreMenu). */
.admin-shell.admin-v2 .page-header > div { align-items: center; }
.admin-shell.admin-v2 .page-header .mobile-fab {
    min-height: 46px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a73e8, #3b8cf0);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.34);
    font-weight: 700;
    color: #fff;
}
.admin-shell.admin-v2 .page-header .button.secondary {
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid #c9d6e4;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--v2-card-shadow);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2a5a8f;
}
.admin-shell.admin-v2 .page-header .button.secondary:active { transform: scale(0.97); }
.admin-shell.admin-v2 .page-header .page-report-link { color: #2a5a8f; }

.admin-shell.admin-v2 .page-more { position: relative; display: inline-block; flex: none; }
.admin-shell.admin-v2 .page-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--v2-card-shadow);
    font-size: 1.2rem;
    color: #2b3b55;
    cursor: pointer;
}
.admin-shell.admin-v2 .page-more-btn:active { transform: scale(0.95); }
.admin-shell.admin-v2 .page-more-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 850;
    min-width: 210px;
    padding: 6px;
    border: 1px solid #d4deeb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 38, 60, 0.18);
}
.admin-shell.admin-v2 .page-more-panel[hidden] { display: none !important; }
.admin-shell.admin-v2 .page-more-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 46px;
    padding: 0 0.8rem;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.admin-shell.admin-v2 .page-more-item:hover,
.admin-shell.admin-v2 .page-more-item:active { background: #eef4fd; }

/* The title row: the page title on the left; filter, download and the "⋯" menu on the right (ListTitleActions). */
.admin-shell.admin-v2 .list-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.admin-shell.admin-v2 .list-titlebar > h1 { min-width: 0; margin: 0; }
.admin-shell.admin-v2 .list-titlebar-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.admin-shell.admin-v2 .list-titlebar-actions .filter-toggle,
.admin-shell.admin-v2 .list-titlebar-actions .export-menu > .button { border-color: transparent; background: #fff; box-shadow: var(--v2-card-shadow); color: #2b3b55; }
.admin-shell.admin-v2 .list-titlebar-actions .filter-toggle.active { background: #e6f0fd; color: #1a63c8; }
.admin-shell.admin-v2 .list-titlebar-actions .export-menu-panel { right: 0; left: auto; }
.admin-shell.admin-v2 .list-titlebar-actions .page-more-panel { right: 0; left: auto; }

/* The two views under the title (সব | বাকি আছে): one segmented control. */
.admin-shell.admin-v2 .seg-tabs { display: flex; box-sizing: border-box; max-width: 420px; margin: 0.25rem 0 0.75rem; padding: 4px; border-radius: 16px; background: #e3eaf3; }
.admin-shell.admin-v2 .seg-tab {
    flex: 1 1 0;
    min-height: 40px;
    margin: 0;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6a85;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease;
}
.admin-shell.admin-v2 .seg-tab:active { transform: scale(0.97); }
.admin-shell.admin-v2 .seg-tab.active { background: #fff; box-shadow: var(--v2-card-shadow); color: var(--brand); }

/* Search and the filter / download buttons: soft white, no hard borders. */
.admin-shell.admin-v2 .toolbar-search { border-color: transparent; border-radius: 14px; background: #fff; box-shadow: var(--v2-card-shadow); }
.admin-shell.admin-v2 .list-toolbar .filter-toggle,
.admin-shell.admin-v2 .list-toolbar .export-menu > .button { border-color: transparent; background: #fff; box-shadow: var(--v2-card-shadow); color: #2b3b55; }
.admin-shell.admin-v2 .list-toolbar .filter-toggle.active { background: #e6f0fd; color: #1a63c8; }

/* Soft dashed empty states. */
.admin-shell.admin-v2 .empty-state { border: 1px dashed #b7c4d3; border-radius: 20px; background: rgba(255, 255, 255, 0.6); }

@media (max-width: 640px) {
    /* On a phone the header buttons fill the row and the "⋯" sits at its right end, its menu opening leftwards. */
    .admin-shell.admin-v2 .page-header > div { flex: 1 1 auto; }
    .admin-shell.admin-v2 .page-more { margin-left: auto; }
    .admin-shell.admin-v2 .page-more-panel { left: auto; right: 0; }

    /* The row of tabs under the search (সব | বাকি আছে) becomes one segmented control. */
    .admin-shell.admin-v2 .list-toolbar .filter-pills { display: flex; box-sizing: border-box; gap: 0; padding: 4px; overflow: visible; border-radius: 16px; background: #e3eaf3; }
    .admin-shell.admin-v2 .list-toolbar .filter-pills .pill {
        flex: 1 1 0;
        min-height: 40px;
        padding: 0 0.5rem;
        border: 0;
        border-radius: 12px;
        background: transparent;
        font-size: 0.85rem;
        font-weight: 600;
        color: #5a6a85;
        text-align: center;
    }
    .admin-shell.admin-v2 .list-toolbar .filter-pills .pill.active { background: #fff; box-shadow: var(--v2-card-shadow); color: var(--brand); }

    .admin-shell.admin-v2 .list-toolbar .filter-toggle,
    .admin-shell.admin-v2 .list-toolbar .export-menu > .button,
    .admin-shell.admin-v2 .list-titlebar-actions .filter-toggle,
    .admin-shell.admin-v2 .list-titlebar-actions .export-menu > .button { position: relative; width: 46px; min-width: 46px; height: 46px; min-height: 46px; padding: 0; justify-content: center; border-radius: 15px; }
    .admin-shell.admin-v2 .toolbar-search { height: 46px; }

    /* State on a row as a soft pill (paid, due, cancelled) instead of a dot and a word. */
    .admin-shell.admin-v2 .record-row .status-badge { padding: 2px 10px; border-radius: 999px; background: #eef2f6; font-weight: 600; color: #5a6a85; }
    .admin-shell.admin-v2 .record-row .status-badge::before { display: none; }
    .admin-shell.admin-v2 .record-row .status-badge-positive { background: #e1f5e9; color: #0f7a43; }
    .admin-shell.admin-v2 .record-row .status-badge-warning { background: #fff1d0; color: #8a5200; }
    .admin-shell.admin-v2 .record-row .status-badge-danger { background: #fde8ef; color: #a02a52; }

    /* Rows: separate soft cards instead of one bordered list. */
    .admin-shell.admin-v2 .record-list { border: 0; border-radius: 0; background: transparent; overflow: visible; }
    .admin-shell.admin-v2 .record-row {
        margin-bottom: 8px;
        padding: 0.65rem 0.6rem 0.65rem 0.8rem;
        min-height: 64px;
        border: 0;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--v2-card-shadow);
    }
    .admin-shell.admin-v2 .record-row:first-child { border-top: 0; }
    .admin-shell.admin-v2 .record-row-thumb { border-radius: 14px; background: #eaf1fb; color: #6f8fb8; }
    .admin-shell.admin-v2 .record-row-thumb.round { border-radius: 50%; }
    .admin-shell.admin-v2 .record-row-chevron { color: #9fb2cc; }
    .admin-shell.admin-v2 .record-row-amount.due-amount { color: #b86e00; }
    .admin-shell.admin-v2 .record-group-title { font-weight: 700; color: #607084; }
}


/* Initial-letter avatars (NameAvatar) in the customer and supplier lists: one soft colour per name. */
.admin-shell.admin-v2 .record-row-thumb.name-avatar { font-weight: 700; font-size: 1.1rem; line-height: 1; }
.admin-shell.admin-v2 .record-row-thumb.name-avatar.na-0 { background: #e3edff; color: #2c5fb3; }
.admin-shell.admin-v2 .record-row-thumb.name-avatar.na-1 { background: #e0f5ec; color: #1d7a55; }
.admin-shell.admin-v2 .record-row-thumb.name-avatar.na-2 { background: #fff0dc; color: #b06a10; }
.admin-shell.admin-v2 .record-row-thumb.name-avatar.na-3 { background: #f4e6fb; color: #8a3fb0; }
.admin-shell.admin-v2 .record-row-thumb.name-avatar.na-4 { background: #ffe6ea; color: #b8344f; }
.admin-shell.admin-v2 .record-row-thumb.name-avatar.na-5 { background: #e1f4f7; color: #12788a; }

/* Sell form (new and edit): each section gets its own icon and colour so পণ্য, কাস্টমার and পেমেন্ট tell apart. */
.admin-shell.admin-v2 .entry-form-section.es-products { --es: #3b6fd1; --es-bg: #e6eeff; }
.admin-shell.admin-v2 .entry-form-section.es-customer { --es: #d17a14; --es-bg: #fff0dc; }
.admin-shell.admin-v2 .entry-form-section.es-payment { --es: #1f9460; --es-bg: #e0f5ec; }
.admin-shell.admin-v2 .entry-form-section.es-products, .admin-shell.admin-v2 .entry-form-section.es-customer, .admin-shell.admin-v2 .entry-form-section.es-payment { border-top: 3px solid var(--es); }
.admin-shell.admin-v2 .entry-form-section.es-products h2, .admin-shell.admin-v2 .entry-form-section.es-customer h2, .admin-shell.admin-v2 .entry-form-section.es-payment h2 { display: flex; align-items: center; gap: .55rem; color: var(--es); }
.admin-shell.admin-v2 .es-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--es-bg); color: var(--es); }
.admin-shell.admin-v2 .es-ic .icon { width: 18px; height: 18px; }
.admin-shell.admin-v2 .entry-form-section.es-supplier { --es: #c0405f; --es-bg: #ffe6ea; }
.admin-shell.admin-v2 .entry-form-section.es-delivery { --es: #7a4fc2; --es-bg: #f1e8fc; }
.admin-shell.admin-v2 .entry-form-section.es-info { --es: #12788a; --es-bg: #e1f4f7; }
.admin-shell.admin-v2 .entry-form-section.es-supplier, .admin-shell.admin-v2 .entry-form-section.es-delivery, .admin-shell.admin-v2 .entry-form-section.es-info { border-top: 3px solid var(--es); }
.admin-shell.admin-v2 .entry-form-section.es-supplier h2, .admin-shell.admin-v2 .entry-form-section.es-delivery h2, .admin-shell.admin-v2 .entry-form-section.es-info h2 { display: flex; align-items: center; gap: .55rem; color: var(--es); }

/* Product form (new and edit): the form itself is no longer one big card; পণ্য, ছবি ও বিবরণ, অনলাইন স্টোর and the
   optional rest are separate cards, in the same colours as the sell, purchase and order forms. */
.admin-shell.admin-v2 form.product-editor { background: transparent; border: 0; box-shadow: none; padding: 0; }
.admin-shell.admin-v2 .entry-form-section.es-media { --es: #d17a14; --es-bg: #fff0dc; }
.admin-shell.admin-v2 .entry-form-section.es-online { --es: #1f9460; --es-bg: #e0f5ec; }
.admin-shell.admin-v2 .entry-form-section.es-more { --es: #5b6b80; }
.admin-shell.admin-v2 .entry-form-section.es-media, .admin-shell.admin-v2 .entry-form-section.es-online, .admin-shell.admin-v2 .entry-form-section.es-more { border-top: 3px solid var(--es); }
.admin-shell.admin-v2 .entry-form-section.es-media h2, .admin-shell.admin-v2 .entry-form-section.es-online h2 { display: flex; align-items: center; gap: .55rem; color: var(--es); }
.admin-shell.admin-v2 .entry-form-section.es-products .product-editor-fields, .admin-shell.admin-v2 .entry-form-section.es-media .product-editor-fields { margin-bottom: 0; }

/* Product form: barcode, more info and supplier are one folded card ("আরও তথ্য"), closed unless something in it was
   filled by voice, needs a fix, or the barcode is already on another product. */
.admin-shell.admin-v2 .more-fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .75rem; }
.admin-shell.admin-v2 .more-fold > summary::-webkit-details-marker { display: none; }
.admin-shell.admin-v2 .more-fold > summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: .6rem; height: .6rem; border-right: 2px solid #5b6b80; border-bottom: 2px solid #5b6b80; transform: rotate(45deg); transition: transform .15s; }
.admin-shell.admin-v2 .more-fold[open] > summary::after { transform: rotate(-135deg); }
.admin-shell.admin-v2 .more-fold-title { font-weight: 700; font-size: 1.05rem; color: #16213a; }
.admin-shell.admin-v2 .more-fold-title small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.admin-shell.admin-v2 .more-fold-sub { grid-column: 1; color: var(--muted); font-size: .85rem; }
.admin-shell.admin-v2 .more-fold[open] > summary { padding-bottom: .75rem; border-bottom: 1px solid var(--border-subtle); }
.admin-shell.admin-v2 .more-fold .product-barcode-section { background: transparent; border: 0; padding: 0; margin: 1rem 0 0; }
.admin-shell.admin-v2 .more-fold-fields > label, .admin-shell.admin-v2 .more-fold-supplier > label { display: block; width: 100%; max-width: none; margin: 1rem 0 0; }
.admin-shell.admin-v2 .more-fold-fields > label > input:not([type=checkbox]), .admin-shell.admin-v2 .more-fold-fields > label > select, .admin-shell.admin-v2 .more-fold-supplier > label > input, .admin-shell.admin-v2 .more-fold-supplier > label > select { width: 100%; max-width: none; box-sizing: border-box; }
.admin-shell.admin-v2 .more-fold-supplier { margin-top: .25rem; }

/* Product form: sizes, colours and models get their own card (purple), shut until the box is ticked. */
.admin-shell.admin-v2 .entry-form-section.es-variants { --es: #7a4fc2; --es-bg: #f1e8fc; border-top: 3px solid var(--es); }
.admin-shell.admin-v2 .entry-form-section.es-variants h2 { display: flex; align-items: center; gap: .55rem; color: var(--es); }
.admin-shell.admin-v2 .entry-form-section.es-variants h2 small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.admin-shell.admin-v2 .es-sub { margin: -.35rem 0 .9rem; color: var(--muted); font-size: .9rem; }
.admin-shell.admin-v2 .entry-form-section.es-variants .product-variants-choice { margin-top: 0; }

/* Sizes, colours and models card: a soft purple wash, example chips that show what the card is for, and the tick box as
   a proper option row so the closed card does not look empty. */
.admin-shell.admin-v2 .entry-form-section.es-variants { background: linear-gradient(180deg, #f7f2ff 0, #ffffff 70%); border-color: #e3d6f7; }
.admin-shell.admin-v2 .entry-form-section.es-variants h2 { font-size: 1.15rem; }
.admin-shell.admin-v2 .entry-form-section.es-variants .es-ic { background: #7a4fc2; color: #fff; }
.admin-shell.admin-v2 .es-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.admin-shell.admin-v2 .es-chips span { padding: .3rem .8rem; border-radius: 999px; background: #efe5fc; color: #5a2fa0; font-weight: 700; font-size: .9rem; }
.admin-shell.admin-v2 .es-chips .es-chip-b { background: #fde8ef; color: #b8344f; }
.admin-shell.admin-v2 .es-chips .es-chip-c { background: #e1f4f7; color: #12788a; }
.admin-shell.admin-v2 .entry-form-section.es-variants .product-variants-choice { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; margin: 0; background: #fff; border: 1.5px solid #cdb6f0; border-radius: 12px; font-weight: 600; color: #3b2370; cursor: pointer; }
.admin-shell.admin-v2 .entry-form-section.es-variants .product-variants-choice input { width: 1.25rem; height: 1.25rem; accent-color: #7a4fc2; flex: 0 0 auto; }
.admin-shell.admin-v2 .entry-form-section.es-variants .product-variants-choice:has(input:checked) { background: #f1e8fc; border-color: #7a4fc2; }

/* Variant stock on the product page: one row per variant - name and selling price on the left, stock in the middle,
   a small "ঠিক করুন" pill on the right. */
.admin-shell.admin-v2 .vs-list { margin: .6rem 0 0; padding: 0; list-style: none; border: 1px solid #dfe8f5; border-radius: 14px; overflow: hidden; background: #fff; }
.admin-shell.admin-v2 .vs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; padding: .8rem .9rem; }
.admin-shell.admin-v2 .vs-row + .vs-row { border-top: 1px solid #edf2fa; }
.admin-shell.admin-v2 .vs-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.admin-shell.admin-v2 .vs-main strong { font-size: 1.02rem; color: #182d4d; overflow-wrap: anywhere; }
.admin-shell.admin-v2 .vs-price { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; font-size: .84rem; color: #5a6a85; }
.admin-shell.admin-v2 .vs-tag { padding: 1px 9px; border-radius: 999px; background: #eef2f6; color: #5a6a85; font-size: .72rem; font-style: normal; font-weight: 600; }
.admin-shell.admin-v2 .vs-tag-own { background: #e1f5e9; color: #0f7a43; }
.admin-shell.admin-v2 .vs-stock { display: flex; flex-direction: column; align-items: center; min-width: 3.4rem; line-height: 1.15; }
.admin-shell.admin-v2 .vs-stock b { font-size: 1.25rem; color: #182d4d; }
.admin-shell.admin-v2 .vs-stock small { font-size: .7rem; color: #7489a2; }
.admin-shell.admin-v2 .vs-adjust { padding: .4rem .8rem; border: 1px solid #c9dcf5; border-radius: 999px; background: #eef5ff; color: #1a63c8; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.admin-shell.admin-v2 .vs-off .vs-main strong, .admin-shell.admin-v2 .vs-off .vs-stock b { color: #8a97ab; }


/* Product page "তথ্য": label on the left, value on the right, a hairline between rows; the online-store state is a small tag. */
.admin-shell.admin-v2 .pi-list { margin: .6rem 0 0; padding: 0; border: 1px solid #dfe8f5; border-radius: 14px; background: #fff; overflow: hidden; }
.admin-shell.admin-v2 .pi-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem .95rem; }
.admin-shell.admin-v2 .pi-row + .pi-row { border-top: 1px solid #edf2fa; }
.admin-shell.admin-v2 .pi-row dt { flex: 0 0 auto; margin: 0; color: #6a7b95; font-size: .88rem; font-weight: 500; }
.admin-shell.admin-v2 .pi-row dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem .6rem; margin: 0; min-width: 0; color: #182d4d; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.admin-shell.admin-v2 .pi-wide { flex-direction: column; align-items: stretch; gap: .3rem; }
.admin-shell.admin-v2 .pi-wide dd { justify-content: flex-start; font-weight: 400; line-height: 1.55; text-align: left; }
.admin-shell.admin-v2 .pi-tag { padding: 2px 11px; border-radius: 999px; background: #eef2f6; color: #5a6a85; font-size: .82rem; font-weight: 600; }
.admin-shell.admin-v2 .pi-tag-on { background: #e1f5e9; color: #0f7a43; }
.admin-shell.admin-v2 .pi-link { padding: 2px 11px; border: 1px solid #c9dcf5; border-radius: 999px; background: #eef5ff; color: #1a63c8; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }