/*
 * ERP additions on top of the sorin theme (public/assets).
 * Palette: Tawakkal Enterprise (warm neutrals: charcoal, tan/gold, lavender, greige).
 * Theme colours are remapped in theme-tawakkal.css (generated by scripts/build-theme.php);
 * this file uses the tokens below.
 */
:root {
    --primary: #4A4541;      /* charcoal: buttons, headings, active tab/chip (9.2:1 on white) */
    --accent: #C9A96E;       /* gold/tan: logo mark, focus, highlights (not for small text) */
    --accent-soft: #E3C9A0;  /* tan fill: count badges, tiles */
    --accent-text: #8A6A3F;  /* links and accent text (5.0:1) */
    --lavender: #B7A0CC;     /* second accent: avatars, tiles */
    --icon: #66605A;         /* icons */
    --soft-border: #DDD6CC;  /* soft borders */
    --hover: #F1EDE7;        /* hover / selected rows */
    --chip: #E9E4DD;         /* chips, tab bar */
    --ink: #2B2724;          /* body text */
    --muted: #66605A;        /* hints and labels (6.3:1 on white, 4.9:1 on canvas) */
    --surface: #FFFFFF;
    --surface-2: #F7F5F2;    /* header band */
    --canvas: #E9E5DF;       /* page background */
    --line: #E4DFD8;
    --field-border: #9A938B; /* form fields need 3:1 against white */
    --radius: 16px;

    /* Status colours */
    --danger: #B42318;
    --danger-bg: #FDECEA;
    --warning: #8A5A00;
    --warning-bg: #FBEFD9;
    --success: #2E6B3F;
    --success-bg: #E4F0E6;
    --info: #5B4A78;
    --info-bg: #EFEAF5;
}

body.tealBreeze { background-color: var(--canvas); color: var(--ink); }
.tealBreeze .wrapper { background-color: var(--canvas) !important; }
/* Each branch tints the page background lightly with its own colour (cards stay white) */
body.tealBreeze.erpBranchTinted, .tealBreeze.erpBranchTinted .wrapper { background-color: color-mix(in srgb, var(--branch) 10%, var(--canvas)) !important; }
.erpBranchTinted .erpNodeStrip { height: 6px; }
.tealBreeze .wrapper .iq-sidebar { background: var(--surface-2) !important; border-right: 1px solid var(--line) !important; }

/* Brand: dark rounded mark with gold monogram + "Tawakkal Enterprise | POS ERP" */
.erpBrand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.erpBrandMark {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 22px; line-height: 1;
}
.erpBrandText { display: flex; flex-direction: column; line-height: 1.15; }
.erpBrandName { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.erpBrandName span { color: var(--accent-text); font-weight: 500; border-left: 1px solid var(--soft-border); padding-left: 6px; margin-left: 4px; }
.erpBrandSub { font-size: 11px; color: var(--muted); }
.erpBrandLarge .erpBrandMark { width: 56px; height: 56px; flex-basis: 56px; font-size: 30px; border-radius: 14px; }
.erpBrandLarge .erpBrandName { font-size: 20px; }

.erpBrandText { min-width: 0; }
.erpBrandCompact .erpBrandName { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.erpBrandSub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erpBrandSub b { color: var(--accent-text); font-weight: 600; }
.erpBrandDot { color: var(--accent); margin: 0 2px; }

/* ---------- Layout over the sorin theme ---------- */
/* Sidebar: brand header / scrolling menu / user card */
.tealBreeze .wrapper .iq-sidebar.erpSidebar {
    width: 264px; display: flex; flex-direction: column; padding-top: 0 !important;
    overflow: hidden !important; background: var(--surface-2) !important;
    border-right: 1px solid var(--line) !important; box-shadow: none;
}
.erpSidebarHead { padding: 18px 16px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.erpSidebarNav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 6px 0 12px; scrollbar-width: thin; }
.erpSidebarNav > .iq-menu { margin: 0; padding: 0; }
.erpSidebarFoot { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--line); }

.iq-sidebar-menu .erpMenu { margin: 0; padding: 0; list-style: none; }
.tealBreeze .iq-sidebar-menu .iq-menu .erpMenu .navbarsettingitem,
.tealBreeze .wrapper .iq-sidebar .iq-sidebar-menu .iq-menu .navbarsettingitem,
.tealBreeze .wrapper .iq-sidebar .iq-sidebar-menu .navbarsettingitem { margin: 1px 10px !important; border: 0 !important; }
.iq-sidebar-menu .iq-menu .erpMenu li a.menu-link {
    padding: 8px 10px !important; font-size: 14px; line-height: 20px; color: var(--ink);
    text-transform: none !important; border-radius: 8px; white-space: nowrap;
}
.iq-sidebar-menu .iq-menu .erpMenu li a.menu-link span { overflow: hidden; text-overflow: ellipsis; }
.iq-sidebar-menu .iq-menu .erpMenu li a.menu-link:hover { background: var(--hover); }
.iq-sidebar-menu .iq-menu .erpMenu li a.activenav { background: var(--surface) !important; box-shadow: 0 1px 2px rgba(43, 39, 36, .08); }
.iq-sidebar-menu .navbarstrokeicon { display: inline-flex; flex: 0 0 20px; }
.iq-sidebar-menu .navbarstrokeicon svg { width: 18px; height: 18px; }
.erpMenu .erpMenuSection { margin: 14px 20px 4px !important; list-style: none; }

/* User card */
.erpUserCard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.erpUserAvatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); color: var(--ink);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.erpUserText { min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.erpUserName { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erpUserRole { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erpIconAction { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--icon); }
.erpIconAction:hover, .erpIconAction:focus-visible { background: var(--hover); color: var(--danger); outline: none; }

/* Content area: full width (the theme reserved 365px on the right for a panel we don't use) */
.content-page { margin-left: 0 !important; padding: 8px 28px 40px !important; min-height: 0 !important; overflow: visible !important; }
@media (min-width: 1200px) {
    .tealBreeze .wrapper > .content { margin-left: 264px; }
}
@media (max-width: 1199px) {
    .tealBreeze .wrapper .iq-sidebar.erpSidebar { display: none; }
    .content-page { padding: 8px 16px 32px !important; }
}
.dashbaordSection .form-control, .dashbaordSection .form-select { width: 100%; }
.dashbaordSection .input-group > .form-control { width: 1%; flex: 1 1 auto; }
.erpTableCard { overflow-x: auto; }
@media (max-width: 575px) {
    .erpTableCard td, .erpTableCard th { white-space: normal; }
    .dashboardHeading { font-size: 20px !important; }
}
.erpMobileBrand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.erpMobileBrand .erpBrandMark { width: 36px; height: 36px; flex-basis: 36px; font-size: 19px; }
@media (max-width: 575px) { .erpMobileBrand .erpBrandText { display: none; } }
.dashbaordSection .form-control:not(.form-control-sm), .dashbaordSection .form-select:not(.form-select-sm) { min-height: 40px; }

/* Buttons: one height and type size everywhere */
.content-page .btn:not(.btn-sm):not(.p-0) {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; font-size: 14px; font-weight: 600; line-height: 1.2; border-radius: 10px; white-space: nowrap;
}
.content-page .btn-sm:not(.p-0) { min-height: 32px; display: inline-flex; align-items: center; padding: 4px 12px; font-size: 13px; font-weight: 600; border-radius: 8px; }
.content-page .input-group > .btn { border-radius: 0 10px 10px 0; }

/* Checkboxes inside tables line up with the text */
.table .form-check-input { margin-top: 0; vertical-align: middle; }
.erpRoleMatrix td { padding-top: 10px; padding-bottom: 10px; }
.dashbaordSection { max-width: 1400px; }
.table td, .table th { vertical-align: middle; }
.erpTableCard .table { margin: 0; }

/* Mobile top bar */
.tealBreeze .NotificationIcon { padding: 12px 16px !important; background: var(--surface-2) !important; border-bottom: 1px solid var(--line); }
.tealBreeze .NotificationIcon .MenuBtn { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.tealBreeze .NotificationIcon .MenuIcon { width: 22px; height: 22px; color: #fff; }

/* Tan count badge, as in the tab bar ("Sales & Receipts 4") */
.erpCount { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }

.erpSidebarHeight { height: 87% !important; }

/* Initials avatar in the sidebar user card */
.erpInitials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Sidebar icons: inline SVGs use a stroke attribute, CSS takes precedence */
.iq-sidebar-menu .navbarstrokeicon svg path { stroke: var(--icon); }
.iq-sidebar-menu .activenav .navbarstrokeicon svg path { stroke: var(--primary) !important; }
.iq-sidebar-menu .activenav span { color: var(--primary) !important; font-weight: 600; }

/* Forms: visible field borders and a tan focus ring */
.form-control, .form-select { border-color: var(--field-border) !important; color: var(--ink); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.35) !important;
}
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.labelHeading, .form-label { color: var(--ink); }
.form-text, .hintText, .TableSubHeading, .TableDate { color: var(--muted) !important; }
.dashboardHeading, .TableHeading, .TableName { color: var(--primary) !important; }
.text-danger, .invalid-feedback { color: var(--danger) !important; }
.is-invalid { border-color: var(--danger) !important; }

/* Primary buttons: charcoal with white text */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus-visible { background-color: #36322F !important; border-color: #36322F !important; }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.45) !important; }

/* Top bar holding the company switcher */
.erpTopbar {
    padding: 16px 24px 0 24px;
}

/* Company switcher */
.erpSwitcherToggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    padding: 6px 14px;
    min-width: 220px;
    max-width: 320px;
    color: var(--primary);
}
.erpSwitcherToggle:hover,
.erpSwitcherToggle:focus-visible {
    background-color: var(--hover);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.35);
}
.erpSwitcherToggle::after { margin-left: auto; }
.erpSwitcherToggle svg path { stroke: var(--icon); }
.erpSwitcherLabel {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.1;
}
.erpSwitcherName {
    font-size: 14px;
    font-weight: 600;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.erpSwitcherMenu {
    min-width: 280px;
    padding: 8px;
    margin-top: 6px !important;
    background-color: var(--surface) !important;
    border: 1px solid var(--soft-border) !important;
    border-radius: 12px;
}
.erpSwitcherHeader {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 8px 10px 8px !important;
}
.erpSwitcherMenu .dropdown-item {
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    white-space: normal;
}
.erpSwitcherMenu .dropdown-item:hover { background-color: var(--hover) !important; }
.erpSwitcherMenu .dropdown-item.active,
.erpSwitcherMenu .dropdown-item:active {
    background-color: #F1EDE7;
    color: var(--primary);
}
.erpSwitcherMenu .dropdown-item svg path { stroke: var(--primary); }
.erpSwitcherMeta {
    font-size: 12px;
    color: var(--muted);
}

/* Cards and tables */
.erpStatCard,
.erpTableCard {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(43, 39, 36, 0.05);
}
.erpStatCard { padding: 16px 20px; }
a.erpStatCard:hover, a.erpStatCard:focus-visible { border-color: var(--soft-border); background-color: #FCFBF9; }
.erpStatValue {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.erpTableCard { padding: 4px 12px; }
.erpTableCard th {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background-color: #F8F6F3;
    border-bottom: 1px solid var(--line);
}
.erpTableCard td { border-color: var(--line); }
.erpTableCard tbody tr:hover td { background-color: var(--hover); }

/* Badges: warehouse = lavender, branch = green; states use the status colours */
.erpBadge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.erpBadgeWarehouse { background-color: #EFEAF5; color: #5B4A78; }
.erpBadgeBranch { background-color: var(--success-bg); color: var(--success); }
.erpBadgeWarn { background-color: var(--warning-bg); color: var(--warning); }
.erpBadgeDanger { background-color: var(--danger-bg); color: var(--danger); }

/* Buttons and links */
.erpBtnLight {
    background-color: var(--surface);
    border: 1px solid var(--soft-border);
    color: var(--primary);
}
.erpBtnLight:hover, .erpBtnLight:focus-visible { background-color: var(--hover); color: var(--primary); border-color: var(--accent); }
.erpLink { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.erpLink:hover, .erpLink:focus-visible { text-decoration: underline; color: var(--primary); }
.erpIconBtn { font-size: 20px; line-height: 1; color: var(--muted); background: none; border: 0; }
.erpIconBtn:hover, .erpIconBtn:focus-visible { color: var(--danger); }
.erpRowLink { cursor: default; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sidebar sections */
.erpMenu { padding: 0; }
.erpMenuSection { margin: 14px 15px 2px 15px; list-style: none; }
.erpMenuSection .menuPinnedTxt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.iq-sidebar { overflow-y: auto; }

/* Branch accent (node colour) */
.erpNodeDot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.erpPosHeader { border-left: 6px solid var(--node-accent, var(--primary)); padding-left: 14px; }
.erpNodeStrip { height: 4px; background: var(--node-accent, transparent); }

/* Line editor and totals */
.erpLinesTable td, .erpLinesTable th { padding: 6px 6px; }
.erpLinesTable .form-control-sm, .erpLinesTable .form-select-sm { min-width: 70px; }
.erpTotals td { padding: 4px 0 4px 24px; color: var(--muted); }
.erpTotals .erpTotalsGrand td, tr.erpTotalsGrand td { border-top: 1px solid var(--line); font-weight: 700; color: var(--primary); font-size: 16px; }
.erpPosSummary { position: sticky; top: 16px; }

/* Receipt */
.erpReceipt {
    max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--node-accent, var(--primary));
    border-radius: 12px; padding: 18px 20px; font-size: 14px; color: var(--ink);
}
.erpReceipt td { padding: 3px 0; vertical-align: top; }
.erpReceipt .erpReceiptTotal td { border-top: 1px dashed var(--field-border); font-weight: 700; padding-top: 8px; font-size: 16px; }
.erpReceiptHeld { opacity: .8; background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(184, 147, 90, .10) 14px 28px); }

/* Role matrix */
.erpRoleMatrix td, .erpRoleMatrix th { white-space: nowrap; }

/* Toast colours (toastr) */
.toast-teal { background-color: var(--primary) !important; }
#toast-container > .toast-error { background-color: var(--danger) !important; }

/* Pagination */
.pagination .page-link { color: var(--accent-text); border-color: var(--line); }
.pagination .page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); color: #fff; }

@media print {
    .iq-sidebar, .NotificationIcon, .erpTopbar, .d-print-none { display: none !important; }
    .content { margin: 0 !important; padding: 0 !important; }
    body { background: #fff !important; }
}

@media (max-width: 1199px) {
    .erpCompanySwitcher .erpSwitcherToggle { min-width: 0; max-width: 220px; }
    .erpCompanySwitcher .erpSwitcherName { max-width: 140px; }
}

/* ---------- v2: branch switcher, sidebar arrow, searchable selects ---------- */
.erpBranchToggle { min-width: 200px; }
.erpBranchToggle:disabled { opacity: 1; cursor: default; }
.erpBranchToggle:disabled::after { display: none; }
.erpSidebarHide, .erpSidebarShow {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; border: 1px solid var(--line);
    background: var(--surface); color: var(--icon); display: inline-flex; align-items: center; justify-content: center;
}
.erpSidebarHide:hover, .erpSidebarShow:hover, .erpSidebarHide:focus-visible, .erpSidebarShow:focus-visible { background: var(--hover); color: var(--primary); outline: none; }
.erpSidebarShow { display: none; }
@media (min-width: 1200px) {
    body.erpSidebarHidden .tealBreeze .wrapper .iq-sidebar.erpSidebar,
    body.erpSidebarHidden .wrapper .iq-sidebar.erpSidebar { display: none; }
    body.erpSidebarHidden.tealBreeze .wrapper > .content { margin-left: 0; }
    body.erpSidebarHidden .erpSidebarShow { display: inline-flex; }
}

/* select2 matched to the form controls */
.select2-container { max-width: 100%; }
.select2-container--default .select2-selection--single {
    height: 40px; border: 1px solid var(--field-border); border-radius: 0.375rem; background: var(--surface);
    display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 38px; padding-left: 12px; padding-right: 28px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.erpLinesTable .select2-container--default .select2-selection--single { height: 31px; }
.erpLinesTable .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 29px; font-size: 13px; padding-left: 8px; }
.erpLinesTable .select2-container--default .select2-selection--single .select2-selection__arrow { height: 29px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.35); }
.select2-dropdown { border-color: var(--soft-border); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(43, 39, 36, .12); z-index: 2000; }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--field-border); border-radius: 8px; padding: 6px 10px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--primary); color: #fff; }
.select2-container--default .select2-results__option--selected { background: var(--hover); }
.select2-results__option { padding: 7px 10px; font-size: 14px; }
.erpLocked .select2-selection--single { background: var(--hover) !important; }

/* Cylinder rows in the line editor and cylinder pickers */
.erpLinesTable [data-cyl][hidden] { display: none; }
.erpPicker td, .erpPicker th { white-space: nowrap; }
.erpPicker tr.is-picked td { background: var(--hover); }
.erpPicker input[type=number] { max-width: 120px; }

/* Cash collected / change due */
.erpChange { font-size: 18px; font-weight: 700; color: var(--success); }
.erpChange.is-short { color: var(--danger); }

/* 80 mm thermal receipt */
@media print {
    @page { size: 80mm auto; margin: 3mm; }
    body.tealBreeze, .tealBreeze .wrapper, body.tealBreeze.erpBranchTinted, .tealBreeze.erpBranchTinted .wrapper { background: #fff !important; }
    .wrapper > .content { margin: 0 !important; }
    .content-page { padding: 0 !important; }
    .erpReceipt { max-width: 74mm !important; width: 74mm; border: 0 !important; border-radius: 0; padding: 0 !important; margin: 0 !important; font-size: 12px; box-shadow: none !important; }
    .erpReceipt * { color: #000 !important; }
    .erpNodeStrip, .toast, #toast-container { display: none !important; }
}
.erpChecklist { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
/* The sorin theme fixes every select2 at 114.5px; ours fill their column like other fields */
.content-page .select2-container, .offcanvas .select2-container, .erpTopbar .select2-container { width: 100% !important; display: block; }
.erpLinesTable td .select2-container, .erpTableCard td .select2-container { min-width: 120px; }

/* ---------- v3: POS frames, token print, stock popup ---------- */
.erpPosFrame { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; }
.erpPosFrameGas { border-left: 5px solid var(--accent); }
.erpPosFrameTitle { font-size: 15px; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.erpPosFrame .erpTableCard { box-shadow: none; }
.erpCommissionRow td { border-top: 1px dashed var(--line); padding-top: 10px !important; }
.erpToken { max-width: 340px; }
.erpToken .erpTokenTitle { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.erpToken td { padding: 4px 0; font-size: 15px; }
.erpStockShort li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.erpStockShort li:last-child { border-bottom: 0; }
.erpStockShortNote { background: color-mix(in srgb, var(--accent) 16%, #fff); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
@media print {
    /* Bill and gas token print as two slips (one page each on the 80 mm roll) */
    .erpToken { max-width: 74mm !important; width: 74mm; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; break-before: page; page-break-before: always; }
    .erpToken * { color: #000 !important; }
    body.erpPrintBill .erpToken { display: none !important; }
    body.erpPrintToken .erpReceipt { display: none !important; }
    body.erpPrintToken .erpToken { break-before: auto; page-break-before: auto; }
}

/* ---------- v4: collapsible sidebar groups ---------- */
.erpMenuGroup { list-style: none; margin: 2px 0; }
.erpMenuGroup details > summary { list-style: none; cursor: pointer; }
.erpMenuGroup details > summary::-webkit-details-marker { display: none; }
.erpMenuSummary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 4px 10px; padding: 8px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.erpMenuSummary:hover, .erpMenuSummary:focus-visible { background: var(--hover); color: var(--primary); outline: none; }
.erpMenuChevron { flex: 0 0 14px; transition: transform .15s ease; }
.erpMenuGroup details[open] > .erpMenuSummary { color: var(--primary); }
.erpMenuGroup details[open] > .erpMenuSummary .erpMenuChevron { transform: rotate(90deg); }
.erpMenuGroupList { list-style: none; margin: 0 0 6px; padding: 0 0 0 6px; }

/* ---------- v5: Accestors platform panel ---------- */
.erpPlatformBar { padding: 10px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.erpPlatformMain { max-width: 1280px; margin: 0 auto; padding: 8px 12px 40px; }
.erpPlatformMain .content-page { margin-left: 0 !important; }
