:root {
    /* ---------- Brand palette: deep teal + warm amber accent -------------------------------
       A deliberate departure from stock Bootstrap blue - teal reads as trustworthy/financial
       without being generic, amber gives warmth for highlights/CTAs. Every "-primary" Bootstrap
       utility actually used in this app (text-primary, bg-primary-subtle, text-bg-primary,
       plain links, focus rings) is retinted below via Bootstrap 5.3's own --bs-* custom
       properties; components that hardcode literals instead of chaining through --bs-primary
       (btn-outline-primary, pagination active state, form-check-input) get explicit overrides
       further down, matching this file's existing convention. ------------------------------- */
    --erp-primary: #0f766e;
    --erp-primary-dark: #0b5c56;
    --erp-primary-rgb: 15, 118, 110;
    --erp-primary-subtle: #e3f4f2;
    --erp-primary-border-subtle: #9bd6cf;
    --erp-primary-text-emphasis: #0a4842;
    --erp-accent: #c2760f;
    --erp-accent-dark: #9c5e0c;
    --erp-accent-subtle: #fbf0de;

    --erp-sidebar-width: 260px;
    --erp-sidebar-bg: #0d1e1c;
    --erp-sidebar-bg-hover: #16332f;
    --erp-success: #12b76a;
    --erp-danger: #f04438;
    --erp-warning: #f79009;
    --erp-info: #0dcaf0;
    --erp-text-muted: #667085;
    --erp-border: #e5e9e8;
    --erp-radius: 0.75rem;
    --erp-radius-sm: 0.5rem;
    --erp-shadow-sm: 0 1px 2px rgba(13, 30, 28, 0.06), 0 1px 3px rgba(13, 30, 28, 0.08);
    --erp-shadow: 0 4px 8px -2px rgba(13, 30, 28, 0.08), 0 2px 4px -2px rgba(13, 30, 28, 0.06);
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Backwards-compatible aliases - some inline view styles reference these shorter names. */
    --erp-primary-alias: var(--erp-primary);

    /* ---------- Retint Bootstrap 5.3's own variable-driven utilities ---------- */
    --bs-primary: var(--erp-primary);
    --bs-primary-rgb: var(--erp-primary-rgb);
    --bs-primary-bg-subtle: var(--erp-primary-subtle);
    --bs-primary-border-subtle: var(--erp-primary-border-subtle);
    --bs-primary-text-emphasis: var(--erp-primary-text-emphasis);
    --bs-link-color: var(--erp-primary);
    --bs-link-color-rgb: var(--erp-primary-rgb);
    --bs-link-hover-color: var(--erp-primary-dark);
    --bs-link-hover-color-rgb: 11, 92, 86;
    --bs-focus-ring-color: rgba(var(--erp-primary-rgb), 0.25);
}

body {
    background-color: #f7f8f8;
    font-family: var(--bs-body-font-family);
    color: #1a2b29;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Professional-polish overrides (applied globally, every page) ---------- */

.card {
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow-sm);
}

.card-header {
    border-bottom: 1px solid var(--erp-border);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.card-header.bg-white {
    border-top-left-radius: var(--erp-radius) !important;
    border-top-right-radius: var(--erp-radius) !important;
}

.btn {
    border-radius: var(--erp-radius-sm);
    font-weight: 500;
}

.btn-primary {
    background: var(--erp-primary);
    border-color: var(--erp-primary);
    box-shadow: 0 1px 2px rgba(var(--erp-primary-rgb), 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--erp-primary-dark);
    border-color: var(--erp-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--erp-primary);
    --bs-btn-border-color: var(--erp-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--erp-primary);
    --bs-btn-hover-border-color: var(--erp-primary);
    --bs-btn-focus-shadow-rgb: var(--erp-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--erp-primary);
    --bs-btn-active-border-color: var(--erp-primary);
    --bs-btn-disabled-color: var(--erp-primary);
    --bs-btn-disabled-border-color: var(--erp-primary);
}

.form-control, .form-select {
    border-radius: var(--erp-radius-sm);
    border-color: #d0d5dd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--erp-primary-rgb), 0.15);
}

.form-check-input:checked {
    background-color: var(--erp-primary);
    border-color: var(--erp-primary);
}

.form-check-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--erp-primary-rgb), 0.25);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.table {
    --bs-table-color: #344054;
}

.table thead th {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--erp-text-muted);
    background-color: #f9fafb;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table > :not(caption) > * > * {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Pagination active state - Bootstrap hardcodes these to its stock blue at the .pagination
   selector level rather than chaining through --bs-primary, so they need an explicit repaint
   (every list page in the app uses this control, so it's a highly visible surface). */
.pagination {
    --bs-pagination-active-bg: var(--erp-primary);
    --bs-pagination-active-border-color: var(--erp-primary);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--erp-primary-rgb), 0.25);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---------- ERP admin shell ---------- */
.erp-shell {
    display: flex;
    min-height: 100vh;
}

.erp-sidebar {
    width: var(--erp-sidebar-width);
    flex-shrink: 0;
    background: var(--erp-sidebar-bg);
    color: #b7c4c2;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.2s ease-in-out, width 0.2s ease-in-out;
}

.erp-sidebar-search {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-sidebar-search .input-group-text {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #93a5a2;
}

.erp-sidebar-search .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #eaf3f2;
}

.erp-sidebar-search .form-control::placeholder {
    color: #7d8f8c;
}

.erp-sidebar-search .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.erp-nav-empty {
    padding: 1rem 1.25rem;
    color: #7d8f8c;
    font-size: 0.85rem;
    text-align: center;
}

.erp-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.erp-brand i {
    color: var(--erp-accent);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 6px rgba(var(--erp-primary-rgb), 0.45));
}

.erp-brand-logo {
    height: 1.6rem;
    max-width: 2.4rem;
    object-fit: contain;
    border-radius: 0.2rem;
    background: #fff;
    padding: 1px;
    flex-shrink: 0;
}

.erp-nav {
    padding: 0.75rem 0;
}

.erp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.erp-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: #b7c4c2;
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease-in-out;
}

.erp-nav-list li a:hover {
    background-color: var(--erp-sidebar-bg-hover);
    color: #fff;
}

.erp-nav-list li.active a {
    background-color: var(--erp-sidebar-bg-hover);
    color: #fff;
    border-left-color: var(--erp-accent);
    font-weight: 600;
}

.erp-nav-list i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
}

.erp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.erp-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--erp-border);
    box-shadow: 0 1px 2px rgba(13, 30, 28, 0.04);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.erp-topbar-title {
    font-weight: 600;
    font-size: 1.05rem;
    flex: 1;
}

.erp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.erp-content {
    padding: 1.5rem;
    flex: 1;
}

.kpi-card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--erp-shadow) !important;
}

.setup-tile {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color: inherit;
}

.setup-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(13, 30, 28, 0.1) !important;
}

@media (max-width: 991.98px) {
    .erp-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
    }

    .erp-sidebar.show {
        transform: translateX(0);
    }
}

/* ---------- Sidebar collapse (desktop icon rail) --------------------------------------
   Desktop-only (lg+) - on narrower screens the sidebar is already an overlay drawer (see the
   max-width block above), so a separate "collapsed" rail there would just be confusing. Group
   sub-menus are intentionally suppressed rather than turned into hover-flyouts while collapsed -
   simplest thing that still works: the group icon stays visible (with its name as a native
   tooltip via the title attribute added in SidebarMenu/Default.cshtml), its children are one
   click away again the moment the sidebar is expanded. ------------------------------------- */
@media (min-width: 992px) {
    body.dinv-sidebar-collapsed .erp-sidebar {
        width: 76px;
    }

    body.dinv-sidebar-collapsed .erp-sidebar-search,
    body.dinv-sidebar-collapsed .erp-brand span,
    body.dinv-sidebar-collapsed .erp-nav-list li a span,
    body.dinv-sidebar-collapsed .erp-nav-sublist li a span,
    body.dinv-sidebar-collapsed .erp-nav-group-toggle span,
    body.dinv-sidebar-collapsed .erp-nav-chevron {
        display: none;
    }

    body.dinv-sidebar-collapsed .erp-nav-group > .collapse {
        display: none !important;
    }

    body.dinv-sidebar-collapsed .erp-brand {
        justify-content: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    body.dinv-sidebar-collapsed .erp-nav-list li a,
    body.dinv-sidebar-collapsed .erp-nav-group-toggle {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ---------- Auth pages ---------- */
.auth-body {
    background: linear-gradient(160deg, var(--erp-sidebar-bg) 0%, var(--erp-primary-dark) 65%, var(--erp-primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    border: none;
    border-radius: 1rem;
}

/* "Or try a live demo" divider + quick-login cards on the Login page - one click fills the real
   form and submits a real sign-in (see Login.cshtml's inline script), it's not a mocked login. */
.dinv-demo-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--erp-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.dinv-demo-divider::before,
.dinv-demo-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--erp-border);
}

.dinv-demo-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dinv-demo-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: #fff;
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius);
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.dinv-demo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--erp-shadow);
    border-color: var(--erp-primary-border-subtle);
}

.dinv-demo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dinv-demo-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dinv-demo-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.dinv-demo-user {
    font-size: 0.78rem;
    color: var(--erp-text-muted);
}

.dinv-demo-arrow {
    font-size: 1.4rem;
    color: var(--erp-text-muted);
}

/* ---------- Grouped / collapsible sidebar nav (Admin / Sales / Reports / Catalog) ---------- */
/* Explicit show/hide (doesn't lean on bootstrap.min.css's .collapse rules alone - the group toggle
   in site.js flips this "show" class itself with plain classList APIs, no Bootstrap JS involved). */
.erp-nav-sublist-wrap.collapse:not(.show),
.erp-nav-group > .collapse:not(.show) {
    display: none;
}

.erp-nav-group > .collapse.show {
    display: block;
}

.erp-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: #b7c4c2;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.erp-nav-group-toggle:hover {
    background-color: var(--erp-sidebar-bg-hover);
    color: #fff;
}

.erp-nav-group.active > .erp-nav-group-toggle {
    color: #fff;
}

.erp-nav-group-toggle i.bi:first-child {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
}

.erp-nav-chevron {
    font-size: 0.8rem;
    transition: transform 0.2s ease-in-out;
}

.erp-nav-group-toggle.collapsed .erp-nav-chevron {
    transform: rotate(-90deg);
}

.erp-nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.18);
}

.erp-nav-sublist li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem 0.55rem 2.75rem;
    color: #93a5a2;
    text-decoration: none;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease-in-out;
}

.erp-nav-sublist li a:hover {
    background-color: var(--erp-sidebar-bg-hover);
    color: #fff;
}

.erp-nav-sublist li.active a {
    background-color: var(--erp-sidebar-bg-hover);
    color: #fff;
    border-left-color: var(--erp-accent);
    font-weight: 600;
}

.erp-nav-sublist i {
    font-size: 0.95rem;
    width: 1.1rem;
    text-align: center;
}

/* ---------- Barcode label rendering (Barcode Generator page) ---------- */
/* The SVG's intrinsic width grows with the barcode's character count (CODE128), which can
   exceed the fixed-width label card. Scale it down to fit while keeping its aspect ratio
   (the viewBox makes this a clean proportional shrink, bars and text scale together). */
.print-label svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.15rem auto 0;
}

/* Every line of text on a printed label reads bold and pure black - regardless of what Bootstrap
   utility classes (e.g. .text-muted/.small) are also present on the element - so the label stays
   legible on low-contrast/low-quality label printers. Kept !important since .text-muted itself
   is !important in Bootstrap 5.3 and would otherwise win. */
.print-label .barcode-business-unit,
.print-label .barcode-product-name,
.print-label .barcode-brand-name,
.print-label .barcode-price {
    color: #000 !important;
    font-weight: 700 !important;
}

/* Business unit name reads as a small, bold, uppercase eyebrow line above the product name. */
.print-label .barcode-business-unit {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Product name prints a touch bigger than Bootstrap's "small" (0.875rem) so it reads clearly
   as the label's main line, while staying compact enough to avoid wrapping on the fixed-width card. */
.print-label .barcode-product-name {
    font-size: 0.95rem;
}

/* Price (incl. the Taka symbol from dinvMoney()) prints slightly larger and bold so it's the
   second thing a cashier's eye lands on after the barcode itself. Pulled up with a negative
   margin to eat into the barcode graphic's own baked-in bottom padding (the SVG reserves a
   little vertical room below the digits even with render margin:0), tightening the gap further. */
.print-label .barcode-price {
    font-size: 1.15rem;
    margin-top: -6px;
}

/* ---------- POS receipt (thermal printer) rendering ---------- */
/* Width must match the POS_RECEIPT_WIDTH_MM constant in site.js - keep both in sync if you ever
   change your printer's paper size (58mm and 80mm are the two common thermal roll widths).
   box-sizing: border-box means the padding below is INSIDE this width, so the rendered content
   never exceeds the physical roll width even if the printer's real printable area is a hair
   narrower than the nominal paper size - see the comment on printPosReceipt() in site.js for why
   that matters (it's what was causing receipts to print clipped/tiny before). */
.pos-receipt {
    width: 80mm;
    box-sizing: border-box;
    padding: 0 3mm;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin: 0 auto;
}

/* Applied by printPosReceipt('a4') - the fixed 80mm width above is correct for a thermal roll
   (where the page itself is 80mm), but on a standard A4 page it leaves the receipt stranded in a
   narrow strip in the middle of the sheet. This fills the full printable width instead. */
.pos-receipt.pos-receipt-full-width {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    font-size: 14px;
}

/* A "label ... value" line (e.g. product name vs. its line total). The label truncates instead of
   wrapping/overflowing so a long product name can never push the price past the receipt's right
   edge - previously an overflowing line like this was the other half of the "prints half the
   receipt" symptom, independent of the paper-width mismatch. */
.pos-receipt .pos-receipt-line {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.pos-receipt .pos-receipt-line .pos-receipt-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-receipt .pos-receipt-line .pos-receipt-value {
    flex-shrink: 0;
    white-space: nowrap;
}

@media print {
    .no-print, .erp-sidebar, .erp-topbar, #__afTokenForm {
        display: none !important;
    }

    .erp-main, .erp-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    #labelsContainer {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25in;
    }

    .print-label {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px dashed #999 !important;
        box-shadow: none !important;
        width: 2.5in !important;
    }

    .print-label .btn {
        display: none !important;
    }
}

/* ---------- Public marketing pages (Home/Index, Home/About) ------------------------------
   Shared building blocks so the landing/about pages read as one distinctive, cohesive brand
   rather than a stock Bootstrap template - eyebrow labels instead of pill badges, a subtle
   dot-grid texture instead of blurry gradient orbs, and a warm amber accent used sparingly for
   emphasis (numbers, underlines) against the deep teal brand color. ------------------------- */
.dinv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dinv-eyebrow .dinv-eyebrow-rule {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--erp-accent);
    border-radius: 2px;
}

.dinv-dotgrid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
}

.dinv-hero {
    background: linear-gradient(155deg, var(--erp-sidebar-bg) 0%, var(--erp-primary-dark) 55%, var(--erp-primary) 100%);
    color: #eaf3f2;
}

.dinv-hero .text-muted-hero {
    color: rgba(234, 243, 242, 0.78) !important;
}

.dinv-stat-strip {
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius);
    background: #fff;
}

@media (min-width: 768px) {
    .dinv-stat-strip .dinv-stat + .dinv-stat {
        border-left: 1px solid var(--erp-border);
    }
}

.dinv-stat {
    padding: 0.5rem 1rem;
}

.dinv-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--erp-primary);
    letter-spacing: -0.02em;
}

.dinv-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dinv-steps {
    border-top: 1px solid var(--erp-border);
    border-bottom: 1px solid var(--erp-border);
}

.dinv-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--erp-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dinv-quote {
    border-left: 3px solid var(--erp-accent);
    padding-left: 1.5rem;
    text-align: left !important;
}

.dinv-cta {
    background: linear-gradient(155deg, var(--erp-sidebar-bg) 0%, var(--erp-primary-dark) 55%, var(--erp-primary) 100%);
    color: #eaf3f2;
}

.dinv-pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 0.75rem;
    background: var(--erp-primary-subtle);
    color: var(--erp-primary);
}

/* ---------- Public storefront product grid (Home/Products) -------------------------------
   Was plain stock Bootstrap cards with zero custom styling - now shares the same teal/amber
   brand language as the rest of the public site (dinv-eyebrow, dinv-pillar-icon empty state)
   plus its own small set of card/image treatments: a soft hover lift, a subtle image zoom, and
   a floating category pill so the grid reads as a real storefront, not an admin list. --------- */
.dinv-shop-toolbar {
    border-radius: var(--erp-radius);
}

.dinv-product-card {
    overflow: hidden;
    transition: transform 0.18s ease-in-out, box-shadow 0.18s ease-in-out, border-color 0.18s ease-in-out;
}

.dinv-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--erp-shadow) !important;
    border-color: var(--erp-primary-border-subtle);
}

.dinv-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f5f4;
}

.dinv-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.dinv-product-card:hover .dinv-product-image img {
    transform: scale(1.06);
}

.dinv-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b6bdbc;
    font-size: 2.25rem;
}

.dinv-product-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--erp-primary-text-emphasis);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: var(--erp-shadow-sm);
}

.dinv-product-brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--erp-accent-dark);
    margin-bottom: 0.15rem;
}

.dinv-product-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dinv-product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dinv-product-price {
    border-top: 1px dashed var(--erp-border);
}

/* ---------- Admin User Guide (Home/Guide) -------------------------------------------------
   Deliberately minimal: no hero banner, just a plain heading and a single vertical timeline of
   6 steps (Bangla content - the guide is written for the shop's own admin/staff, not as public
   marketing copy). ".dinv-guide-bn" nudges the font stack toward faces with solid Bengali glyph
   coverage before falling back to the app's normal system-font stack, since the default
   Bootstrap font list is Latin-only and would otherwise fall back to whatever generic font the
   OS happens to substitute. ------------------------------------------------------------------ */
.dinv-guide-bn {
    font-family: "Nirmala UI", "Vrinda", "Noto Sans Bengali", var(--bs-body-font-family);
}

.dinv-guide-timeline {
    position: relative;
    padding-left: 4.75rem;
}

.dinv-guide-timeline::before {
    content: "";
    position: absolute;
    left: 1.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--erp-border);
}

.dinv-guide-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.dinv-guide-timeline-item:last-child {
    padding-bottom: 0;
}

.dinv-guide-timeline-number {
    position: absolute;
    left: -4.75rem;
    top: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--erp-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #fff;
}

/* Step 6's report list (Sales/Purchase History/Due Bill/Expense/etc.) - a compact numbered
   sub-list inside the timeline item, one notch smaller/quieter than the main timeline steps. */
.dinv-guide-sublist {
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

.dinv-guide-sublist li {
    margin-bottom: 0.35rem;
}

.dinv-guide-sublist li:last-child {
    margin-bottom: 0;
}

