/* =====================================================================================
   Lavender UI — Figma "lavenderpastry" design system applied to the panel.
   Loaded after lavender.css / mes-mobile.css. CSS only: it restyles, never removes content.
   Values come from lavender-tokens.css (exported from Figma variables).
   ===================================================================================== */

/* =====================================================================================
   Vazirmatn (Figma font/family-*) — SIL OFL, self-hosted woff2 in assets/fonts
   ===================================================================================== */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); }
/* the theme's leftover `font-family: estedad` rules resolve to Vazirmatn; the old Estedad files are no longer requested */
@font-face { font-family: "estedad"; font-weight: 300 400; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "estedad"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "estedad"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "estedad"; font-weight: 800 900; font-style: normal; font-display: swap; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); }
:root { --lv-font: "Vazirmatn", tahoma, sans-serif; }
/* every text element, except icon fonts (ft-*, icon-*, fa*) which must keep their own family */
html body, html body :not(i):not([class*="ft-"]):not([class*="icon-"]):not([class^="fa"]):not([class*=" fa-"]):not(.ficon) {
    font-family: "Vazirmatn", tahoma, sans-serif;
}

/* ---------- page canvas ---------- */
html body { background: var(--lv-bg-canvas); color: var(--lv-fg-primary); font-family: var(--lv-font-family-body), tahoma, sans-serif; }

/* ---------- top bar ---------- */
html body .header-navbar,
html body.vertical-layout[data-color] .navbar-container {
    background: var(--lv-bg-canvas) !important;
}
html body .header-navbar { border-bottom: var(--lv-border-width-hairline) solid var(--lv-border-subtle); }
html body .header-navbar .navbar-nav .nav-link,
html body .header-navbar .navbar-nav .nav-link i { color: var(--lv-fg-secondary); }
html body .header-navbar .nav-link:hover i { color: var(--lv-brand-600); }
html body .header-navbar .avatar { border: var(--lv-border-width-hairline) solid var(--lv-border-subtle); }
html body .lv-user-name { color: var(--lv-fg-primary); }

/* ---------- sidebar: floating dark-purple panel ---------- */
html body .main-menu, html body .main-menu.menu-light, html body .main-menu.menu-dark {
    background: var(--lv-brand-950) !important;
    color: var(--lv-brand-100);
}
html body .main-menu::after { opacity: .10; }
html body .main-menu .navbar-header .navbar-brand { flex-direction: row; gap: 12px; justify-content: center; }
html body .main-menu .navbar-header .navbar-nav { justify-content: center; }
html body .main-menu .navbar-header .nav-item.mr-auto { margin: 0 auto !important; }
html body .main-menu .navbar-header .brand-logo { display: block !important; width: 32px; height: 32px; border-radius: var(--lv-radius-full); }
html body .main-menu .navbar-header .brand-text.lv-wordmark { font-size: var(--lv-font-size-18); font-weight: 700; color: var(--lv-white); }
html body .main-menu .navbar-header { border-bottom: var(--lv-border-width-hairline) solid var(--lv-alpha-white-10); margin: 0 16px; padding: 20px 0 16px; min-height: 0; }

/* items: rounded rows, brand fill when active */
html body .main-menu .navigation > li > a,
html body .main-menu.menu-light .navigation > li > a {
    color: var(--lv-brand-100) !important;
    margin: 0 12px;
    padding: 4px 8px 4px 12px;
    border-radius: var(--lv-radius-md);
}
html body .main-menu .navigation > li > a > i,
html body.vertical-layout .main-menu.menu-light .navigation > li > a > i,
html body.vertical-layout.vertical-menu.menu-expanded .main-menu.menu-light .navigation > li > a > i {
    background: transparent !important;
    width: 32px !important; height: 32px !important; line-height: 32px !important;
    margin-left: 8px;
}
html body .main-menu .navigation > li > a:hover,
html body .main-menu .navigation > li:hover > a { background: var(--lv-alpha-white-6) !important; }
html body .main-menu .navigation > li.has-sub.open > a { background: transparent !important; color: var(--lv-white) !important; }

html body .main-menu .navigation > li.open:not(.has-sub) > a,
html body .main-menu .navigation > li.active > a,
html body .main-menu .navigation .menu-content > li.open > a,
html body .main-menu .navigation .menu-content > li.active > a,
html body .main-menu.menu-light .navigation .menu-content > li.open > a {
    background: var(--lv-brand-600) !important;
    color: var(--lv-white) !important;
    border-radius: var(--lv-radius-md);
}
html body .main-menu .navigation > li.open:not(.has-sub) > a > i,
html body .main-menu .navigation > li.active > a > i { background: transparent !important; }
/* the previous layer's concave "ears" are not part of the new design */
html body .main-menu .navigation > li.open:not(.has-sub)::before, html body .main-menu .navigation > li.open:not(.has-sub)::after,
html body .main-menu .navigation .menu-content > li.open::before, html body .main-menu .navigation .menu-content > li.open::after { display: none; }

html body .main-menu .navigation .menu-content > li > a,
html body .main-menu.menu-light .navigation .menu-content > li > a,
html body .main-menu .navigation .menu-content > li > a.menu-item {
    color: var(--lv-brand-200) !important;
    margin: 2px 12px;
    padding: 8px 52px 8px 12px !important;
    border-radius: var(--lv-radius-md);
}
html body .main-menu .navigation .menu-content > li > a:hover { background: var(--lv-alpha-white-6) !important; color: var(--lv-white) !important; }
html body .main-menu .navigation .menu-content > li.open > a:hover { background: var(--lv-brand-600) !important; }

/* ---------- desktop: sidebar is flat, full-height, flush right (Figma: 260px, radius 0, no margin) ---------- */
@media (min-width: 992px) {
    html body.vertical-layout.vertical-menu.menu-expanded .main-menu { top: 0 !important; bottom: 0 !important; right: 0 !important; height: auto !important; border-radius: 0 !important; width: 260px; }
}

/* ---------- sidebar user card (Figma "User": 228x64, r16, pad/gap 12, gradient fill, 1px white 10% stroke) ---------- */
/* the card takes its own row under the menu, so the scrolling list ends above it instead of running behind it */
html body .main-menu { display: flex; flex-direction: column; }
html body .main-menu .navbar-header { flex: none; }
html body .main-menu .main-menu-content { flex: 1 1 0; min-height: 0; height: auto !important; }
html body .main-menu .lv-user-card {
    position: relative; z-index: 2;
    flex: none; margin: 16px;
    display: flex; align-items: center; gap: 12px;
    height: 64px; padding: 12px;
    border-radius: var(--lv-radius-lg);
    border: var(--lv-border-width-hairline) solid var(--lv-alpha-white-10);
    background: linear-gradient(102deg,
        rgba(35, 20, 55, .83) 0%,
        rgba(86, 53, 129, .72) 45%,
        rgba(35, 20, 55, .78) 100%);
}
html body .main-menu .lv-user-card__avatar {
    position: relative;
    flex: none; width: 32px; height: 32px; border-radius: var(--lv-radius-full);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--lv-neutral-800); border: var(--lv-border-width-hairline) solid var(--lv-neutral-800);
    color: var(--lv-white); font-size: var(--lv-font-size-14); font-weight: 500; line-height: 1;
}
html body .main-menu .lv-user-card__status {
    position: absolute; left: 0; bottom: 0;
    width: 8px; height: 8px; border-radius: var(--lv-radius-full);
    background: var(--lv-success-200); border: 2px solid var(--lv-neutral-900);
    box-sizing: content-box; margin: -2px;
}
html body .main-menu .lv-user-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 18px; text-align: right; }
html body .main-menu .lv-user-card__text strong { color: var(--lv-white); font-size: var(--lv-font-size-14); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .main-menu .lv-user-card__text small { color: var(--lv-brand-200); font-size: var(--lv-font-size-12); font-weight: 400; }
body.menu-collapsed .main-menu:not(.expanded) .lv-user-card { display: none; }

/* ---------- surfaces: cards, buttons ---------- */
html body .card {
    background: var(--lv-bg-surface);
    border: var(--lv-border-width-hairline) solid var(--lv-border-subtle);
    border-radius: var(--lv-radius-lg);
    box-shadow: none;
}
html body .card .card-header { background: transparent; border-bottom: var(--lv-border-width-hairline) solid var(--lv-border-subtle); }
html body .btn-primary, html body .btn.btn-primary {
    background: var(--lv-action-primary-default) !important; border-color: var(--lv-action-primary-default) !important;
    color: var(--lv-fg-on-accent) !important; border-radius: var(--lv-radius-action);
}
html body .btn-primary:hover { background: var(--lv-action-primary-hover) !important; border-color: var(--lv-action-primary-hover) !important; }
html body .btn-primary:active { background: var(--lv-action-primary-active) !important; }

/* ---------- menu icons: Figma "vuesax/linear" set, drawn as masks so they follow the text colour ---------- */
html body .main-menu .navigation > li > a > i[class*="icon-"]:before {
    content: "" !important;
    display: block;
    width: 20px; height: 20px;
    background-color: currentColor !important;
    color: inherit !important;
    -webkit-mask: var(--lv-ico) center / 20px 20px no-repeat;
            mask: var(--lv-ico) center / 20px 20px no-repeat;
}
html body .main-menu .navigation > li > a > i.icon-home-1       { --lv-ico: url(../lavender/icons/home.svg); }
html body .main-menu .navigation > li > a > i.icon-kargah       { --lv-ico: url(../lavender/icons/cake.svg); }
html body .main-menu .navigation > li > a[href$="/panel/factory"] > i.icon-kargah { --lv-ico: url(../lavender/icons/building.svg); }
html body .main-menu .navigation > li > a > i.icon-users        { --lv-ico: url(../lavender/icons/users.svg); }
html body .main-menu .navigation > li > a > i.icon-furmola      { --lv-ico: url(../lavender/icons/receipt.svg); }
html body .main-menu .navigation > li > a > i.icon-ingrident-3  { --lv-ico: url(../lavender/icons/bag.svg); }
html body .main-menu .navigation > li > a > i.icon-product      { --lv-ico: url(../lavender/icons/category.svg); }
html body .main-menu .navigation > li > a > i.icon-shop         { --lv-ico: url(../lavender/icons/shop.svg); }
html body .main-menu .navigation > li > a > i.icon-store        { --lv-ico: url(../lavender/icons/buildings.svg); }
html body .main-menu .navigation > li > a > i.icon-inventry     { --lv-ico: url(../lavender/icons/clipboard.svg); }
html body .main-menu .navigation > li > a > i.icon-activity     { --lv-ico: url(../lavender/icons/activity.svg); }
html body .main-menu .navigation > li > a > i.icon-grid         { --lv-ico: url(../lavender/icons/setting.svg); }

/* ---------- active item underline (Figma "Active underline": 1px, brand-600 → white → brand-600) ---------- */
html body .main-menu .navigation .menu-content > li.open > a,
html body .main-menu .navigation > li.open:not(.has-sub) > a { position: relative; }
html body .main-menu .navigation .menu-content > li.open > a::after,
html body .main-menu .navigation > li.open:not(.has-sub) > a::after {
    content: "" !important;
    position: absolute;
    bottom: 0; left: 20px; right: 9.5px;
    height: 1px;
    background: linear-gradient(to right,
        color-mix(in srgb, var(--lv-brand-600) 42%, transparent) 0%,
        var(--lv-white) 52%,
        color-mix(in srgb, var(--lv-brand-600) 28%, transparent) 100%);
    transform: none !important;
    border: 0 !important;
}

/* ---------- brand header: logo + name centred in the sidebar ---------- */
html body .main-menu .navbar-header { margin: 0 16px !important; width: auto !important; float: none !important; }
html body .main-menu .navbar-header .navbar-nav { width: 100%; justify-content: center; }
html body .main-menu .navbar-header .navbar-brand { margin: 0 auto !important; }

/* ---------- no theme hover bullet (red 7px dot the old theme adds on submenu hover / collapsed popout) ---------- */
html body .main-menu .navigation a::before,
html body .main-menu .navigation li.hover > a::before,
html body .main-menu .navigation li:hover > a::before,
html body .main-menu ul.menu-popout li > a::before { content: none !important; display: none !important; }

/* Figma sidebar is a plain dark panel: drop the old layer's sprig watermark */
html body .main-menu::after { display: none !important; }

/* =====================================================================================
   Content area + top bar (Figma "Main": white content, 64px white top bar with hairline)
   ===================================================================================== */
html body, html body .app-content, html body .content-wrapper { background: var(--lv-bg-surface); }
html body .content-wrapper { padding: 24px; }
html body .header-navbar, html body.vertical-layout[data-color] .navbar-container { background: var(--lv-bg-surface) !important; }
html body .header-navbar { min-height: 64px; }

/* breadcrumb */
.lv-crumbs { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.lv-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin-inline-end: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.lv-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.lv-crumbs a:hover { color: var(--lv-brand-600); }
.lv-crumbs li[aria-current] { color: var(--lv-fg-primary); font-weight: 500; }
.lv-crumb-home { width: 16px; height: 16px; background: currentColor; -webkit-mask: url(../lavender/icons/home.svg) center / 16px no-repeat; mask: url(../lavender/icons/home.svg) center / 16px no-repeat; }
html body .header-navbar .navbar-nav > li.lv-crumbs-item { display: flex; align-items: center; margin-inline-start: 12px; }

/* icon tiles (Figma "Icon tile": 40/r10, 48/r12 large) */
.lv-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }
.lv-tile--lg { width: 48px; height: 48px; border-radius: var(--lv-radius-md); }
.lv-tile::before { content: ""; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: var(--lv-ico) center / contain no-repeat; mask: var(--lv-ico) center / contain no-repeat; }
.lv-tile--lg::before { width: 24px; height: 24px; }
.lv-tile--brand  { background: var(--lv-brand-100);   color: var(--lv-brand-600); }
.lv-tile--orange { background: var(--lv-orange-50);   color: var(--lv-orange-500); }
.lv-tile--green  { background: var(--lv-success-50);  color: var(--lv-success-600); }
.lv-tile--red    { background: var(--lv-danger-50);   color: var(--lv-danger-600); }
.lv-ico-calendar { --lv-ico: url(../lavender/icons/calendar.svg); }
.lv-ico-task     { --lv-ico: url(../lavender/icons/task.svg); }
.lv-ico-timer    { --lv-ico: url(../lavender/icons/timer.svg); }
.lv-ico-play     { --lv-ico: url(../lavender/icons/play.svg); }
.lv-ico-warning  { --lv-ico: url(../lavender/icons/warning.svg); }
.lv-ico-layer    { --lv-ico: url(../lavender/icons/layer.svg); }

/* =====================================================================================
   «امروز» (/panel/mes/today) — desktop layout from Figma "Today — Desktop".
   Component styles apply at every width; page layout differs below 992px (see the phone block).
   ===================================================================================== */
.lv-kpis, .lv-sub, .lv-today .mes-top > .lv-tile { display: none; }

@media all {
    .lv-today.mes-m { max-width: none; }

    /* top panel: icon tile + title + date chip, button on the other side, then 4 summary cards */
    .lv-today-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 24px; margin-bottom: 24px; background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
    .lv-today-top .mes-top { grid-column: 1; margin: 0; justify-content: flex-start; gap: 16px; }
    .lv-today .mes-top > .lv-tile { display: inline-flex; }
    .lv-today-title { display: flex; flex-direction: column; gap: 4px; }
    .lv-title-row { display: flex; align-items: center; gap: 12px; }
    .lv-today .mes-h1 { font-size: 30px; font-weight: 600; line-height: 39px; color: var(--lv-fg-primary); }
    .lv-today .lv-chip { padding: 2px 8px; border-radius: var(--lv-radius-full); background: var(--lv-brand-100); color: var(--lv-brand-700); font-size: var(--lv-font-size-12); font-weight: 500; line-height: 16px; }
    .lv-today .lv-sub { display: block; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
    .lv-today-top > .mes-btn-hero { grid-column: 2; grid-row: 1; width: auto; min-height: 48px; padding: 0 20px; border-radius: var(--lv-radius-action); font-size: var(--lv-font-size-16); font-weight: 500; background: var(--lv-brand-600); }
    .lv-today-top > .mes-btn-hero:hover { background: var(--lv-brand-700); }
    .lv-today-top > .mes-btn-hero i { font-size: 20px; }

    .lv-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .lv-kpi { display: flex; align-items: center; gap: 8px; min-height: 85px; padding: 16px 12px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); }
    .lv-kpi > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
    .lv-kpi small { font-size: var(--lv-font-size-12); font-weight: 500; line-height: 20px; color: var(--lv-fg-tertiary); }
    .lv-kpi b { font-size: var(--lv-font-size-18); font-weight: 600; line-height: 27px; color: var(--lv-fg-primary); }
    .lv-kpi.is-waiting b { color: var(--lv-orange-700); }
    .lv-kpi.is-running b { color: var(--lv-success-700); }
    .lv-kpi.is-late { border-color: var(--lv-danger-200); }
    .lv-kpi.is-late b { color: var(--lv-danger-700); }

    /* three columns, headers are cards */
    .lv-today .mes-sections { gap: 0 24px; padding: 0 24px; }
    .lv-today .mes-h2 { margin: 0 0 12px; padding: 12px 16px; gap: 8px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); font-size: var(--lv-font-size-18); font-weight: 600; line-height: 27px; color: var(--lv-fg-primary); }
    .lv-today .mes-dot { width: 10px; height: 10px; }
    .lv-today .mes-dot.is-waiting { background: var(--lv-orange-500); }
    .lv-today .mes-dot.is-running { background: var(--lv-success-600); }
    .lv-today .mes-dot.is-late { background: var(--lv-danger-600); }
    .lv-today .mes-count { margin-right: auto; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-14); font-weight: 500; line-height: 1; }
    .lv-today .mes-h2:has(.is-waiting) .mes-count { background: var(--lv-orange-50); color: var(--lv-orange-700); }
    .lv-today .mes-h2:has(.is-running) .mes-count { background: var(--lv-success-50); color: var(--lv-success-700); }
    .lv-today .mes-h2:has(.is-late) { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
    .lv-today .mes-h2:has(.is-late) .mes-count { background: var(--lv-danger-200); color: var(--lv-danger-700); }

    /* task cards */
    .lv-today .mes-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-bottom: 12px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-right: 4px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); }
    .lv-today .mes-card.is-waiting, .lv-today .mes-card.is-paused, .lv-today .mes-card.is-assigned { border-right-color: var(--lv-orange-500); }
    .lv-today .mes-card.is-running { border-right-color: var(--lv-success-600); }
    .lv-today .mes-card.is-late, .lv-today .mes-card.is-delayed { border-right-color: var(--lv-danger-600); }
    /* Figma cards are 202px tall in every column; the bottom block (button / operator row / note) sits at the card's foot */
    .lv-today .mes-card { box-sizing: border-box; min-height: 202px; }
    .lv-today .mes-card > .mes-card-head + * { margin-top: auto; }
    .lv-today .mes-card-head { margin: 0; gap: 12px; }
    .lv-today .mes-thumb { width: 48px; height: 48px; border-radius: var(--lv-radius-md); background: var(--lv-brand-100); color: var(--lv-brand-600); font-size: 24px; }
    .lv-today .mes-card-title { font-size: var(--lv-font-size-18); font-weight: 600; line-height: 27px; color: var(--lv-fg-primary); }
    .lv-today .mes-card .mes-muted { font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-tertiary); }
    .lv-today .mes-card-row { margin: 0; padding: 10px 12px; background: var(--lv-brand-50); border: 1px solid var(--lv-brand-200); border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); }
    .lv-today .mes-timer { font-size: var(--lv-font-size-18); font-weight: 600; line-height: 27px; color: var(--lv-fg-primary); }
    .lv-today .mes-card.is-running .mes-timer { color: var(--lv-success-700); }
    .lv-today .mes-timer.is-late { color: var(--lv-danger-700); }
    .lv-today .mes-note { margin: 0; padding: 12px; border: 1px solid transparent; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 400; line-height: 21px; }
    .lv-today .mes-note.is-paused, .lv-today .mes-note.is-waiting { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
    .lv-today .mes-note.is-late { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
    .lv-today .mes-card .mes-btn-block { min-height: 48px; border-radius: var(--lv-radius-action); font-size: var(--lv-font-size-16); font-weight: 500; background: var(--lv-brand-600); }
    .lv-today .mes-card .mes-btn-block:hover { background: var(--lv-brand-700); }
    .lv-today .mes-empty { border-radius: var(--lv-radius-lg); border-color: var(--lv-neutral-200); color: var(--lv-fg-tertiary); font-size: var(--lv-font-size-14); }

    /* "other pages": card with icon tile, 4-column link grid */
    .lv-today .mes-fold { margin: 24px 24px 0; padding: 16px !important; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); }
    .lv-today .mes-fold > summary { min-height: 40px; padding: 0; gap: 12px; justify-content: flex-start; font-size: var(--lv-font-size-16); font-weight: 600; color: var(--lv-fg-primary); }
    .lv-today .mes-fold > summary::after { margin-right: auto; }
    .lv-today .mes-fold > :not(summary) { margin: 16px 0 0; }
    .lv-today .mes-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .lv-today .mes-links .mes-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-primary) !important; }
    .lv-today .mes-links .mes-btn:hover { background: var(--lv-brand-50); }
}

/* top bar: 64px (Figma "Topbar"), breadcrumb vertically centred */
html body .header-navbar, html body .header-navbar .navbar-wrapper, html body .header-navbar .navbar-container,
html body .header-navbar .navbar-container > #navbar-mobile { height: 64px; min-height: 64px; }
html body .header-navbar .navbar-nav { align-items: center; }
html body .header-navbar .navbar-nav > li.lv-crumbs-item { align-self: center; margin-top: 0; padding: 0; height: auto; line-height: 1; }
html body .header-navbar { border-bottom: var(--lv-border-width-hairline) solid var(--lv-neutral-200); box-sizing: border-box; }

/* =====================================================================================
   «بده به…» popup (#mesAssignSheet) — Figma modal: Panel r16, 1px border, two shadows,
   header (title 18/600 + description 14) with 32px close, footer with hairline.
   Desktop/tablet only; phones keep the full-screen sheet.
   ===================================================================================== */
.mes-sheet-foot { display: none; }
@media (min-width: 768px) {
    html body .mes-backdrop { background: var(--lv-bg-overlay); }
    html body #mesAssignSheet {
        inset: 50% auto auto 50%;
        width: 480px; max-width: calc(100vw - 48px);
        max-height: min(86vh, 680px);
        margin: 0; padding: 0;
        display: flex; flex-direction: column;
        background: var(--lv-bg-surface);
        border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 8px 24px rgba(0, 0, 0, .1);
        transform: translate(-50%, calc(-50% + 16px)); opacity: 0;
        transition: transform .2s ease, opacity .2s ease, visibility .2s;
    }
    html body #mesAssignSheet.open { transform: translate(-50%, -50%); opacity: 1; }

    #mesAssignSheet .mes-sheet-head { margin: 0; padding: 24px 24px 12px; gap: 12px; align-items: flex-start; }
    #mesAssignSheet .mes-sheet-head > div { display: flex; flex-direction: column-reverse; gap: 4px; flex: 1; min-width: 0; }
    #mesAssignSheet .mes-sheet-title { font-size: var(--lv-font-size-18); font-weight: 600; line-height: 27px; color: var(--lv-fg-primary); }
    #mesAssignSheet .mes-sheet-head .mes-muted { font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-secondary); }
    #mesAssignSheet .mes-icon-btn { width: 32px; height: 32px; border-radius: var(--lv-radius-md); background: transparent; color: var(--lv-fg-secondary) !important; font-size: 18px; }
    #mesAssignSheet .mes-icon-btn:hover { background: var(--lv-neutral-100); }

    #mesAssignSheet form { padding: 12px 24px; overflow-y: auto; flex: 1; min-height: 0; }
    #mesAssignSheet .mes-op-list { grid-template-columns: 1fr; gap: 8px; }
    #mesAssignSheet .mes-op-btn { min-height: 56px; padding: 8px 12px; gap: 12px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-primary); }
    #mesAssignSheet .mes-op-btn:hover:not([disabled]), #mesAssignSheet .mes-op-btn:focus-visible { border-color: var(--lv-brand-600); background: var(--lv-brand-50); }
    #mesAssignSheet .mes-op-avatar { width: 40px; height: 40px; background: var(--lv-brand-100); color: var(--lv-brand-700); font-size: var(--lv-font-size-16); font-weight: 600; }
    #mesAssignSheet .mes-op-name small { font-size: var(--lv-font-size-12); font-weight: 400; color: var(--lv-fg-tertiary); }
    #mesAssignSheet .mes-chip { font-size: var(--lv-font-size-12); font-weight: 500; padding: 2px 8px; }
    #mesAssignSheet .mes-chip.is-free { background: var(--lv-brand-100); color: var(--lv-brand-700); }
    #mesAssignSheet .mes-chip.is-running { background: var(--lv-success-50); color: var(--lv-success-700); border: 1px solid var(--lv-success-200); }
    #mesAssignSheet .mes-fold { margin: 12px 0 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); }
    #mesAssignSheet .mes-fold > summary { min-height: 48px; font-size: var(--lv-font-size-14); font-weight: 500; }
    /* opened "ایستگاه کار": select stays inside the box and uses the Figma field style (r12, 1px neutral-500, 48px) */
    #mesAssignSheet .mes-fold > :not(summary) { margin: 0 16px 16px; }
    #mesAssignSheet .mes-fold .form-control {
        display: block; width: calc(100% - 32px); height: 48px; padding: 0 16px;
        border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md);
        background-color: var(--lv-white); color: var(--lv-fg-primary);
        font-size: var(--lv-font-size-14); box-shadow: none;
    }
    #mesAssignSheet .mes-fold .form-control:focus { border-color: var(--lv-brand-600); outline: 2px solid var(--lv-brand-200); outline-offset: 0; }
    #mesAssignSheet .mes-fold .mes-muted { margin-top: 8px; font-size: var(--lv-font-size-12); line-height: 18px; color: var(--lv-fg-tertiary); }
    #mesAssignSheet .mes-empty { border-radius: var(--lv-radius-md); border-color: var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }

    #mesAssignSheet .mes-sheet-foot { display: flex; gap: 12px; padding: 24px; border-top: 0; }
    #mesAssignSheet .mes-sheet-foot .mes-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-primary) !important; }
    #mesAssignSheet .mes-sheet-foot .mes-btn:hover { background: var(--lv-neutral-50); }
}

/* top bar bottom border (Figma "Topbar": 1px neutral-200, bottom only). It must sit on the inner
   container, which is white and would otherwise paint over the bar's own border. */
html body .header-navbar { border-bottom: 0; }
html body .header-navbar .navbar-container { box-sizing: border-box; border-bottom: var(--lv-border-width-hairline) solid var(--lv-neutral-200) !important; }
/* content starts right under the 64px bar with 24px padding (theme used 80px + 19px) */
html body.vertical-layout.fixed-navbar { padding-top: 64px; }
html body.vertical-layout .app-content .content-wrapper { padding: 24px; }

/* sidebar brand header is exactly as tall as the top bar (64px incl. 1px border) so both hairlines sit on one line */
html body .main-menu .navbar-header { box-sizing: border-box; height: 64px !important; min-height: 64px; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
html body .main-menu .navbar-header .navbar-nav { flex-wrap: nowrap; align-items: center; }

/* "ثبت سفارش: ساعت …" footer of waiting cards (Figma: hairline on top, 12px neutral-700, clock icon) */
.lv-today .lv-card-foot { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-12); line-height: 18px; color: var(--lv-fg-tertiary); }
.lv-today .lv-card-foot i { font-size: 14px; }

/* =====================================================================================
   «امروز» on phones/tablets (Figma "Today — Mobile"): no grey panel, 2x2 summary cards,
   one column of cards, 2-column link grid.
   ===================================================================================== */
@media (max-width: 991.98px) {
    html body.vertical-layout .app-content .content-wrapper { padding: 16px; }
    .lv-today-top { display: block; padding: 0; margin-bottom: 16px; background: transparent; border-radius: 0; }
    .lv-today .mes-top > .lv-tile, .lv-today .lv-sub { display: none; }
    .lv-today .mes-top { margin-bottom: 16px; }
    .lv-today .mes-h1 { font-size: 24px; line-height: 32px; }
    .lv-today .lv-chip { padding: 0; background: transparent; color: var(--lv-fg-tertiary); font-size: var(--lv-font-size-14); font-weight: 400; }
    .lv-today .lv-title-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .lv-today-top > .mes-btn-hero { display: flex; width: 100%; min-height: 48px; margin: 0 0 16px; padding: 0 20px; border-radius: var(--lv-radius-action); font-size: var(--lv-font-size-16); font-weight: 500; background: var(--lv-brand-600); }
    .lv-today-top > .mes-btn-hero i { font-size: 20px; }
    .lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .lv-kpi { min-height: 0; padding: 12px; }
    .lv-kpi b { font-size: var(--lv-font-size-16); line-height: 24px; }
    .lv-today .mes-sections { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
    .lv-today .mes-section + .mes-section { margin-top: 12px; }
    .lv-today .mes-h2 { margin-top: 0; }
    .lv-today .mes-fold { margin: 16px 0 0; }
    .lv-today .mes-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lv-today .mes-icon-btn { width: 40px; height: 40px; border-radius: var(--lv-radius-md); background: transparent; }
    /* bottom tab bar room */
    .lv-today.mes-m { padding-bottom: 72px; }
}

/* fold arrow: Figma "Chevron up" (stroke 2, neutral-700) instead of the old ▾/▴ glyph; up when open, down when closed */
.lv-today .mes-fold > summary::after, .lv-today .mes-fold[open] > summary::after,
#mesAssignSheet .mes-fold > summary::after, #mesAssignSheet .mes-fold[open] > summary::after {
    content: ""; flex: none;
    width: 8px; height: 8px; margin: 0 auto 0 8px;
    border-right: 2px solid var(--lv-neutral-700); border-bottom: 2px solid var(--lv-neutral-700);
    border-radius: 1px; box-sizing: border-box;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .15s ease;
}
.lv-today .mes-fold[open] > summary::after, #mesAssignSheet .mes-fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

/* "ایستگاه کار (اختیاری)" fold inside the assign popup — every width (phones included):
   the select stays inside the card (width minus its 16px side margins) and uses the Figma field style */
#mesAssignSheet .mes-fold { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); overflow: hidden; }
#mesAssignSheet .mes-fold > :not(summary) { margin: 0 16px 16px; }
#mesAssignSheet .mes-fold .form-control {
    display: block; width: calc(100% - 32px); max-width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px;
    border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md);
    background-color: var(--lv-white); color: var(--lv-fg-primary);
    font-size: var(--lv-font-size-14); box-shadow: none;
}
#mesAssignSheet .mes-fold .form-control:focus { border-color: var(--lv-brand-600); outline: 2px solid var(--lv-brand-200); outline-offset: 0; }
#mesAssignSheet .mes-fold .mes-muted { margin-top: 8px; font-size: var(--lv-font-size-12); line-height: 18px; color: var(--lv-fg-tertiary); }

/* assign popup: red close button with a background, hairline under the header (all widths) */
#mesAssignSheet .mes-sheet-head { border-bottom: 1px solid var(--lv-neutral-200); }
#mesAssignSheet .mes-icon-btn,
#mesAssignSheet .mes-icon-btn:hover,
#mesAssignSheet .mes-icon-btn:focus-visible { color: var(--lv-white) !important; }
#mesAssignSheet .mes-icon-btn { background: var(--lv-danger-600); border: 0; }
#mesAssignSheet .mes-icon-btn:hover, #mesAssignSheet .mes-icon-btn:focus-visible { background: var(--lv-danger-700); }
@media (max-width: 767.98px) {
    #mesAssignSheet .mes-sheet-head { margin: 0 -16px 16px; padding: 0 16px 12px; }
    #mesAssignSheet .mes-icon-btn { width: 44px; height: 44px; border-radius: var(--lv-radius-md); font-size: 20px; }
}

/* assign popup: the question sits below the header line (all widths) */
#mesAssignSheet .mes-sheet-head .mes-muted { display: none; }
#mesAssignSheet .mes-sheet-q { display: block; margin: 0 0 12px; font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-secondary); }
@media (min-width: 768px) {
    #mesAssignSheet .mes-sheet-q { margin: 0; padding: 16px 24px 0; }
}

/* assign popup: the close button background is a circle */
#mesAssignSheet .mes-icon-btn { border-radius: var(--lv-radius-full); }

/* =====================================================================================
   Type scale from Figma (sidebar / top bar / chips). Sidebar labels are 16 Regular on
   neutral-200, the active child 14 Medium on white, brand 18 SemiBold.
   ===================================================================================== */
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation > li > a > span,
html body .main-menu .navigation > li > a > span { font-size: var(--lv-font-size-16) !important; font-weight: 400 !important; }
html body .main-menu .navigation > li > a,
html body .main-menu.menu-light .navigation > li > a { color: var(--lv-neutral-200) !important; }
html body .main-menu .navigation > li.has-sub.open > a { color: var(--lv-white) !important; }
html body .main-menu .navigation .menu-content > li > a,
html body .main-menu.menu-light .navigation .menu-content > li > a,
html body .main-menu .navigation .menu-content > li > a.menu-item { font-size: var(--lv-font-size-16) !important; font-weight: 400; line-height: 24px; color: var(--lv-neutral-200) !important; }
html body .main-menu .navigation .menu-content > li.open > a,
html body .main-menu.menu-light .navigation .menu-content > li.open > a,
html body .main-menu .navigation .menu-content > li.active > a { font-size: var(--lv-font-size-14) !important; font-weight: 500 !important; color: var(--lv-white) !important; }
html body .main-menu .navigation .menu-content > li > a:hover { color: var(--lv-white) !important; }
html body .main-menu .navbar-header .brand-text.lv-wordmark { font-weight: 600; }
html body .header-navbar .lv-user-name { font-weight: 500; }
.lv-crumbs { color: var(--lv-fg-secondary); }
.lv-crumbs li[aria-current] { font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-today .mes-chip { font-size: var(--lv-font-size-12); font-weight: 500; line-height: 18px; padding: 2px 8px; }
/* Figma nav items are 40px tall (4px padding + 32px line) */
html body .main-menu .navigation > li > a, html body .main-menu.menu-light .navigation > li > a { line-height: 32px; padding-top: 4px; padding-bottom: 4px; }

/* assign popup question: 16px on phones */
@media (max-width: 767.98px) {
    #mesAssignSheet .mes-sheet-q { font-size: var(--lv-font-size-16); line-height: 24px; }
}

/* assign popup header: title and close button share one vertical centre */
#mesAssignSheet .mes-sheet-head { align-items: center; }
#mesAssignSheet .mes-sheet-head > div { justify-content: center; }

/* =====================================================================================
   Order details (/panel/mes/batch/{id}) — Figma "Order detail (tabs)". Reuses the Today
   component styles (wrapper also carries .lv-today) and adds header, summary, tabs, panes.
   ===================================================================================== */
.mes-btn-cancel { background: var(--lv-danger-600); border: 1px solid var(--lv-danger-600); color: var(--lv-white) !important; }
.mes-btn-cancel:hover { background: var(--lv-danger-700); }

.lv-order .lv-order-top { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.lv-order .lv-back { flex: none; width: 40px; height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary) !important; font-size: 18px; }
.lv-order .mes-h1 { font-size: 24px; font-weight: 600; line-height: 31px; }
.lv-order .lv-order-top > .mes-chip { font-size: var(--lv-font-size-12); }
.lv-order-actions { display: flex; align-items: center; gap: 12px; }
.lv-order-actions form { margin: 0; }
.lv-order-actions .mes-btn { min-height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-order-actions .mes-btn i { font-size: 16px; }
.lv-order-actions .mes-btn-light { background: var(--lv-white); border: 1px solid var(--lv-neutral-500); color: var(--lv-fg-primary) !important; }

/* summary card */
.lv-order > .mes-card { min-height: 0; margin: 0 0 20px; gap: 12px; }
.lv-order > .mes-card > .mes-card-head + * { margin-top: 0; }
.lv-order > .mes-card .mes-card-row { padding: 0; background: transparent; border: 0; font-size: var(--lv-font-size-14); }
.lv-order > .mes-card .mes-card-row > span:first-child { font-weight: 500; color: var(--lv-fg-primary); }
.lv-order .mes-progress { height: 8px; margin: 0; background: var(--lv-neutral-100); }
.lv-order .mes-progress > span { background: var(--lv-success-600); }

/* tabs card: tab bar + divider + pane */
.lv-tabs { display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-bottom: 0; border-radius: var(--lv-radius-lg) var(--lv-radius-lg) 0 0; scrollbar-width: none; }
.lv-tabs::-webkit-scrollbar { display: none; }
.lv-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: var(--lv-radius-md); background: transparent; color: var(--lv-fg-secondary); font-family: inherit; font-size: var(--lv-font-size-14); font-weight: 500; line-height: 18px; white-space: nowrap; cursor: pointer; }
.lv-tab:hover { background: var(--lv-neutral-50); }
.lv-tab.is-active { background: var(--lv-brand-100); color: var(--lv-brand-700); }
.lv-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: var(--lv-radius-full); background: var(--lv-brand-100); color: var(--lv-brand-700); font-size: var(--lv-font-size-12); font-weight: 500; line-height: 1; }
.lv-tab.is-active .lv-tab-count { background: var(--lv-brand-600); color: var(--lv-white); }
.lv-pane { display: none; padding: 24px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-top-color: var(--lv-neutral-200); border-radius: 0 0 var(--lv-radius-lg) var(--lv-radius-lg); }
.lv-pane.is-active { display: block; }
.lv-pane > .mes-h2 { display: none; }
.lv-pane-sec + .lv-pane-sec { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--lv-neutral-200); }
.lv-pane-title { margin: 0 0 12px; font-size: var(--lv-font-size-16); font-weight: 600; line-height: 24px; color: var(--lv-fg-primary); }
.lv-pane .table { font-size: var(--lv-font-size-14); }
.lv-pane .table th { font-weight: 500; color: var(--lv-fg-tertiary); }
.lv-pane .text-muted { color: var(--lv-fg-tertiary) !important; }
.lv-pane .form-control { border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); box-shadow: none; }
.lv-pane .form-control:focus { border-color: var(--lv-brand-600); outline: 2px solid var(--lv-brand-200); outline-offset: 0; }
.lv-pane .border-bottom { border-color: var(--lv-neutral-200) !important; }

/* task cards inside the tasks pane */
.lv-order .lv-pane .mes-sections { padding: 0; gap: 16px; align-items: start; }
.lv-order .lv-pane .mes-section + .mes-section { margin-top: 0; }
.lv-order .mes-card { min-height: 0; margin-bottom: 0; }
.lv-order .mes-card > .mes-card-row:first-child { padding: 0; background: transparent; border: 0; }
.lv-order .mes-card .mes-btn-block { min-height: 48px; border-radius: var(--lv-radius-action); font-size: var(--lv-font-size-16); font-weight: 500; }
.lv-order .mes-card .mes-btn-primary { background: var(--lv-brand-600); color: var(--lv-white) !important; }
.lv-order .mes-card .mes-btn-start { background: var(--lv-success-600); color: var(--lv-white) !important; }
.lv-order .mes-card .mes-btn-start:hover { background: var(--lv-success-700); }
.lv-order .mes-card .mes-btn-pause { background: var(--lv-orange-50); border: 1px solid var(--lv-orange-200); color: var(--lv-orange-700) !important; }
.lv-order .mes-card .mes-btn-light { background: var(--lv-white); border: 1px solid var(--lv-neutral-500); color: var(--lv-fg-primary) !important; }
.lv-order .mes-card .mes-btn-danger { background: var(--lv-white); border: 1px solid var(--lv-danger-600); color: var(--lv-danger-700) !important; }
.lv-order .mes-fold-sm { margin: 0; padding: 0 !important; border: 0; background: transparent; }
.lv-order .mes-fold-sm > summary { min-height: 32px; padding: 0; font-size: var(--lv-font-size-16); font-weight: 500; }
.lv-order .mes-fold-sm > :not(summary) { margin: 12px 0 0; }

@media (max-width: 991.98px) {
    .lv-order .lv-order-top { flex-wrap: wrap; }
    .lv-order .lv-order-actions { width: 100%; }
    .lv-order .lv-order-actions > * { flex: 1; }
    .lv-order .lv-order-actions .mes-btn { width: 100%; }
    .lv-pane { padding: 16px; }
}

/* order tabs: Figma 22px icons (before the label, as a mask so they follow the tab colour) */
.lv-tab::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--lv-ico) center / contain no-repeat; mask: var(--lv-ico) center / contain no-repeat; }
.lv-tab[data-pane="tasks"]   { --lv-ico: url(../lavender/icons/tab-tasks.svg); }
.lv-tab[data-pane="info"]    { --lv-ico: url(../lavender/icons/tab-info.svg); }
.lv-tab[data-pane="issues"]  { --lv-ico: url(../lavender/icons/tab-issues.svg); }
.lv-tab[data-pane="notes"]   { --lv-ico: url(../lavender/icons/tab-notes.svg); }
.lv-tab[data-pane="history"] { --lv-ico: url(../lavender/icons/tab-history.svg); }
/* gap under the summary card (the task-card reset above also matched it) */
.lv-order > .mes-card { margin-bottom: 20px; }

/* tab labels: full on desktop, short under the icon on phones (Figma mobile: 5 equal tabs, count on the icon) */
.lv-tab-short { display: none; }
@media (max-width: 767.98px) {
    .lv-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 8px; overflow: visible; }
    .lv-tab { position: relative; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; font-size: var(--lv-font-size-12); line-height: 16px; }
    .lv-tab-full { display: none; }
    .lv-tab-short { display: inline; }
    .lv-tab-count { position: absolute; top: 2px; left: calc(50% - 22px); min-width: 16px; height: 16px; font-size: 10px; }
}

/* info pane: key/value table -> 3-column grid of "label over value" (Figma "Info"); materials table with rounded frame */
.lv-pane .table-borderless, .lv-pane .table-borderless tbody { display: block; width: 100%; }
.lv-pane .table-borderless tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.lv-pane .table-borderless tr { display: flex; flex-direction: column; gap: 2px; padding: 0; }
.lv-pane .table-borderless td { display: block; padding: 0 !important; border: 0; }
.lv-pane .table-borderless td:first-child { font-size: var(--lv-font-size-12); line-height: 18px; }
.lv-pane .table-borderless td:last-child { font-size: var(--lv-font-size-14); font-weight: 600; line-height: 21px; color: var(--lv-fg-primary); }
.lv-pane table.table:not(.table-borderless) { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); overflow: hidden; }
.lv-pane table.table:not(.table-borderless) th { padding: 12px 16px; background: var(--lv-neutral-100); border: 0; border-bottom: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-tertiary); text-align: right; }
.lv-pane table.table:not(.table-borderless) td { padding: 14px 16px; border: 0; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); text-align: right; }
.lv-pane table.table:not(.table-borderless) tbody tr:first-child td { border-top: 0; }
@media (max-width: 767.98px) { .lv-pane .table-borderless tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } }
.lv-pane .mes-muted { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
/* summary card meta line: qty + chips (priority, status) */
.lv-order .lv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* cards with a coloured edge: equal 16px content inset on both sides (4px edge + 12px | 1px border + 15px),
   as in Figma where the accent is overlaid on the card's 16px padding */
.lv-today .mes-card { padding: 15px 12px 15px 15px; }
/* the theme's .mt-1 (+16px) on action buttons doubled the 12px card gap */
.lv-order .mes-card .mes-btn.mt-1, .lv-order .mes-card form.mt-1 { margin-top: 0 !important; }
.lv-order .mes-card .mes-btn.mb-1 { margin-bottom: 0 !important; }

/* buttons of the forms inside the order tabs (record waste / add note / upload): Figma 40px buttons, 12px below the fields */
.lv-pane form .mes-btn { min-height: 40px; padding: 0 16px; margin-top: 12px; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-pane form .mes-btn i { font-size: 16px; }
.lv-pane form .mes-btn-light { background: var(--lv-white); border: 1px solid var(--lv-neutral-500); color: var(--lv-fg-primary) !important; }
.lv-pane form .mes-btn-danger { background: var(--lv-white); border: 1px solid var(--lv-danger-600); color: var(--lv-danger-700) !important; }
.lv-pane form label { margin-bottom: 4px; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary); }

/* tab-pane forms: one column, even 12px rhythm (the theme's mb-1/mb-50 margins made it uneven) */
.lv-pane form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 0 16px !important; }
.lv-pane form > *:not(.row) { margin: 0 !important; }
.lv-pane form > .form-control, .lv-pane form > .row { align-self: stretch; width: 100%; }
.lv-pane form .mes-btn { margin-top: 0; }
.lv-pane form .row { display: flex; flex-wrap: wrap; row-gap: 12px; }
.lv-pane form .row > [class*="col-"] { margin-bottom: 0 !important; }
.lv-pane form small.d-block { color: var(--lv-fg-tertiary); font-size: var(--lv-font-size-12); line-height: 18px; }

/* history tab: vertical timeline (Figma "History"): purple check markers on a line, text / date / who */
.lv-pane-sec:has(.lv-timeline) > .lv-pane-title { display: none; }
.lv-timeline { position: relative; display: flex; flex-direction: column; gap: 20px; padding-right: 32px; }
.lv-timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; right: 9px; width: 2px; background: var(--lv-brand-600); border-radius: 1px; }
.lv-event { position: relative; display: flex; flex-direction: column; gap: 2px; }
.lv-event::before {
    content: ""; position: absolute; top: 0; right: -32px; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%237A54B2'/%3E%3Cpath d='M6 10.2l2.7 2.7L14 7.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lv-event-text { font-size: var(--lv-font-size-14); font-weight: 500; line-height: 20px; color: var(--lv-fg-primary); }
.lv-event-date { font-size: var(--lv-font-size-12); line-height: 18px; color: var(--lv-fg-tertiary); }
.lv-event-who { font-size: var(--lv-font-size-14); line-height: 20px; color: var(--lv-fg-tertiary); }
/* the line ends on the last marker */
.lv-event:last-child::after { content: ""; position: absolute; top: 20px; bottom: 0; right: -31px; width: 4px; background: var(--lv-white); }

/* order tabs: the active state is the tinted pill (Figma); no focus ring around the tab after a click */
html body .lv-tab, html body .lv-tab:focus, html body .lv-tab:focus-visible, html body .lv-tab:active { outline: none !important; box-shadow: none !important; }

/* secondary (white, outlined) buttons: hover fills with the brand colour and the label turns white */
html body .mes-btn-light:hover, html body .mes-btn-light:focus-visible {
    background: var(--lv-brand-600) !important;
    border-color: var(--lv-brand-600) !important;
    color: var(--lv-white) !important;
}
html body .mes-btn-light:active { background: var(--lv-brand-700) !important; border-color: var(--lv-brand-700) !important; color: var(--lv-white) !important; }
html body .lv-today .mes-links .mes-btn:hover,
html body #mesAssignSheet .mes-sheet-foot .mes-btn:hover,
html body .lv-order-actions .mes-btn-light:hover,
html body .lv-order .mes-card .mes-btn-light:hover,
html body .lv-pane form .mes-btn-light:hover {
    background: var(--lv-brand-600) !important;
    border-color: var(--lv-brand-600) !important;
    color: var(--lv-white) !important;
}

/* =====================================================================================
   Orders list (/panel/mes/batch) — Figma "Orders — List view": grey header panel (title, date,
   list/board switch, new-order button, inline filters) and a rounded table with a grey head.
   ===================================================================================== */
.lv-orders .card { border: 0; background: transparent; box-shadow: none; }
.lv-orders .card-body { padding: 0; }
.lv-orders-head { margin-bottom: 24px; padding: 24px; background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
.lv-orders-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.lv-orders-title { display: flex; flex-direction: column; gap: 4px; }
.lv-orders .mes-h1 { font-size: 30px; font-weight: 600; line-height: 39px; color: var(--lv-fg-primary); }
.lv-orders .lv-sub { display: block; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-orders-tools { display: flex; align-items: center; gap: 12px; }
.lv-orders-tools .mes-btn-hero { width: auto; min-height: 48px; padding: 0 20px; margin: 0 !important; border-radius: var(--lv-radius-action); font-size: var(--lv-font-size-16); font-weight: 500; background: var(--lv-brand-600); }
.lv-orders-tools .mes-btn-hero:hover { background: var(--lv-brand-700); }
.lv-orders-tools .mes-btn-hero i { font-size: 20px; }

/* list | board switch */
.lv-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); }
.lv-seg > * { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 36px; padding: 0 12px; border-radius: var(--lv-radius-sm); font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary); }
.lv-seg > .is-active { background: var(--lv-brand-100); color: var(--lv-brand-700); }
.lv-seg > a:hover { background: var(--lv-neutral-50); color: var(--lv-fg-primary); }

/* filters: one row of fields inside the panel */
.lv-orders .mes-filters { margin: 0; border: 0; background: transparent; }
.lv-orders .mes-filters > .row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.lv-orders .mes-filters .form-group { flex: 1 1 200px; max-width: none; width: auto; margin: 0; padding: 0; }
.lv-orders .mes-filters label { margin-bottom: 4px; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-tertiary); }
.lv-orders .form-control, .lv-orders .select2-container--default .select2-selection--single {
    height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white);
    font-size: var(--lv-font-size-14); box-shadow: none;
}
.lv-orders .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; padding: 0 12px; color: var(--lv-fg-primary); }
.lv-orders .select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.lv-orders .form-control:focus { border-color: var(--lv-brand-600); outline: 2px solid var(--lv-brand-200); outline-offset: 0; }

/* DataTables tools row (page size + search) */
.lv-orders .dataTables_wrapper .dataTables_length, .lv-orders .dataTables_wrapper .dataTables_filter { margin-bottom: 12px; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-orders .dataTables_wrapper .dataTables_filter input, .lv-orders .dataTables_wrapper .dataTables_length select { height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); box-shadow: none; }
.lv-orders .dataTables_wrapper .dataTables_filter input { min-width: 260px; padding: 0 12px; }

/* table: rounded frame, grey head, hairline rows, no striping */
.lv-orders .table-responsive { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); overflow: hidden; }
.lv-orders #batch-listing { margin: 0; border-collapse: separate; border-spacing: 0; }
.lv-orders #batch-listing thead th { padding: 14px 16px; background: var(--lv-neutral-100); border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-orders #batch-listing tbody tr, .lv-orders #batch-listing.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.lv-orders #batch-listing tbody tr:hover { background: var(--lv-neutral-50); }
.lv-orders #batch-listing tbody td { padding: 14px 16px; border: 0; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
.lv-orders #batch-listing tbody tr:first-child td { border-top: 0; }
.lv-orders .mes-chip { padding: 2px 8px; font-size: var(--lv-font-size-12); font-weight: 500; line-height: 18px; }
.lv-orders .progress { height: 8px; margin: 0 0 2px; background: var(--lv-neutral-100); border-radius: var(--lv-radius-full); }
.lv-orders .progress-bar { background: var(--lv-success-600) !important; border-radius: var(--lv-radius-full); }
.lv-orders #batch-listing small { color: var(--lv-fg-tertiary); }
.lv-orders .dataTables_info { padding-top: 16px; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-orders .dataTables_paginate { padding-top: 12px; }
.lv-orders .dataTables_paginate .paginate_button { min-width: 36px; height: 36px; margin: 0 2px; padding: 0 12px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-secondary) !important; line-height: 34px; }
.lv-orders .dataTables_paginate .paginate_button.current { border-color: var(--lv-brand-600); background: var(--lv-brand-600); color: var(--lv-white) !important; }
.lv-orders .dataTables_paginate .paginate_button:hover:not(.current) { background: var(--lv-brand-50); }

@media (max-width: 767.98px) {
    .lv-orders-head { padding: 0; background: transparent; margin-bottom: 16px; }
    .lv-orders-top { flex-direction: column; align-items: stretch; margin-bottom: 12px; }
    .lv-orders .mes-h1 { font-size: 24px; line-height: 32px; }
    .lv-orders-tools { flex-direction: column-reverse; align-items: stretch; }
    .lv-orders-tools .mes-btn-hero { width: 100%; display: flex; }
    .lv-orders .mes-filters { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); }
    /* phone cards */
    .lv-orders .mes-order-cards .mes-card { padding: 15px 12px 15px 15px; border: 1px solid var(--lv-neutral-200); border-right-width: 4px; border-radius: var(--lv-radius-lg); margin-bottom: 12px; }
    .lv-orders .mes-order-cards .mes-card.is-waiting, .lv-orders .mes-order-cards .mes-card.is-paused { border-right-color: var(--lv-orange-500); }
    .lv-orders .mes-order-cards .mes-card.is-running { border-right-color: var(--lv-success-600); }
    .lv-orders .mes-order-cards .mes-card.is-late { border-right-color: var(--lv-danger-600); }
    .lv-orders .mes-order-cards .mes-card-title { font-size: var(--lv-font-size-18); font-weight: 600; }
    .lv-orders .mes-order-cards .mes-card-row { font-size: var(--lv-font-size-14); }
    .lv-orders .mes-order-cards .mes-muted { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
    .lv-orders .mes-order-cards .mes-progress { height: 8px; background: var(--lv-neutral-100); }
    .lv-orders .mes-order-cards .mes-progress > span { background: var(--lv-success-600); }
}

/* sidebar type: ONE size (14px) in every state so nothing shrinks or grows on selection; only the weight changes */
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation > li > a > span,
html body .main-menu .navigation > li > a > span { font-size: var(--lv-font-size-14) !important; font-weight: 400 !important; line-height: 32px; }
html body .main-menu .navigation > li.open > a > span,
html body .main-menu .navigation > li.active > a > span,
html body .main-menu .navigation > li.has-sub.open > a > span { font-size: var(--lv-font-size-14) !important; font-weight: 500 !important; }
html body .main-menu .navigation .menu-content > li > a,
html body .main-menu.menu-light .navigation .menu-content > li > a,
html body .main-menu .navigation .menu-content > li > a.menu-item,
html body .main-menu .navigation .menu-content > li.open > a,
html body .main-menu.menu-light .navigation .menu-content > li.open > a,
html body .main-menu .navigation .menu-content > li.active > a { font-size: var(--lv-font-size-14) !important; line-height: 24px; }
html body .main-menu .navigation .menu-content > li > a, html body .main-menu .navigation .menu-content > li > a.menu-item { font-weight: 400 !important; }
html body .main-menu .navigation .menu-content > li.open > a, html body .main-menu .navigation .menu-content > li.active > a { font-weight: 500 !important; }
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation > li.open > a > span,
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation > li.active > a > span { font-weight: 500 !important; }

/* orders list: DataTables tool row — label and field on one line */
.lv-orders .dataTables_wrapper > .row:first-child { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.lv-orders .dataTables_wrapper > .row:first-child > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
.lv-orders .dataTables_length label, .lv-orders .dataTables_filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-orders .dataTables_wrapper .dataTables_length, .lv-orders .dataTables_wrapper .dataTables_filter { margin-bottom: 0; }
@media (max-width: 767.98px) {
    .lv-orders .table-responsive { border: 0; border-radius: 0; overflow: visible; }
    .lv-orders .lv-seg { align-self: flex-start; }
    .lv-orders .dataTables_wrapper > .row:first-child { flex-direction: column; align-items: stretch; gap: 8px; }
    .lv-orders .dataTables_filter label { width: 100%; }
    .lv-orders .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100%; flex: 1; }
}

/* ---- Orders list header, exact Figma layout: title 24 + search (300x40) / subtitle 16 / filter buttons + switch + button ---- */
.lv-orders-head { display: flex; flex-direction: column; gap: 12px; }
.lv-orders-top { margin: 0; align-items: center; }
.lv-orders .mes-h1 { font-size: var(--lv-font-size-24); line-height: 31px; }
.lv-orders .lv-sub { font-size: var(--lv-font-size-16); line-height: 24px; color: var(--lv-fg-secondary); }
.lv-orders-search { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 100%; height: 40px; margin: 0; padding: 0 12px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); }
.lv-orders-search i { font-size: 18px; color: var(--lv-fg-tertiary); }
.lv-orders-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-orders-search input::placeholder { color: var(--lv-fg-tertiary); }
.lv-orders-search:focus-within { border-color: var(--lv-brand-600); box-shadow: 0 0 0 2px var(--lv-brand-200); }
.lv-orders-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.lv-orders-row > .mes-filters { flex: 1 1 auto; min-width: 0; }
.lv-orders .mes-filters > .row { gap: 8px; flex-wrap: nowrap; }
.lv-orders .mes-filters .form-group { flex: 0 1 150px; min-width: 120px; }
.lv-orders .mes-filters .form-group label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lv-orders .mes-filters .select2-container { width: 100% !important; }
.lv-orders .lv-orders-tools .mes-btn-hero { min-height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); }
.lv-orders .lv-orders-tools .mes-btn-hero i { font-size: 16px; }
.lv-orders .lv-seg { border-radius: var(--lv-radius-lg); height: 42px; padding: 4px; }
.lv-orders .lv-seg > * { height: 32px; border-radius: var(--lv-radius-md); }
/* the header search replaces DataTables' own search box (still in the DOM; it drives the same table) */
.lv-orders .dataTables_filter { display: none; }
@media (max-width: 767.98px) {
    .lv-orders-top { flex-direction: column; align-items: stretch; gap: 12px; }
    .lv-orders-search { width: 100%; }
    .lv-orders-row { flex-direction: column; align-items: stretch; }
    .lv-orders .mes-filters > .row { flex-wrap: wrap; }
    .lv-orders .mes-filters .form-group { flex: 1 1 100%; }
    .lv-orders-tools { flex-direction: column-reverse; }
    .lv-orders .lv-seg { align-self: flex-start; }
}
/* filter dropdowns: identical look for native selects and select2 (Figma 40px buttons: neutral-500 border, chevron at the start edge) */
.lv-orders .mes-filters select.form-control {
    -webkit-appearance: none; appearance: none;
    padding: 0 14px 0 36px;
    background: var(--lv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2357555C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center / 12px 8px;
}
.lv-orders .mes-filters .select2-container--default .select2-selection--single { border: 1px solid var(--lv-neutral-500) !important; border-radius: var(--lv-radius-md); background: var(--lv-white); }
.lv-orders .mes-filters .select2-container--default .select2-selection--single .select2-selection__arrow { left: 10px; right: auto; }
.lv-orders .mes-filters .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--lv-neutral-700) transparent transparent transparent; }
.lv-orders .mes-filters .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 14px 0 36px; line-height: 38px; font-size: var(--lv-font-size-14); }
.lv-orders .mes-filters .select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.lv-orders .mes-filters .select2-container--default .select2-selection--single .select2-selection__arrow { width: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2357555C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 8px; left: 14px; }

/* orders list: panel and table sit 32px from the page edges, 24px under the top bar (Figma Content padding 24/32) */
.lv-orders { margin: 0 8px; }
.lv-orders > .row { margin: 0; }
.lv-orders > .row > [class*="col-"] { padding: 0; }
@media (max-width: 767.98px) { .lv-orders { margin: 0; } }
html body .lv-orders .card .card-body { padding: 0 !important; }
html body .lv-orders .card { margin-bottom: 0; }

/* =====================================================================================
   Board (/panel/mes/board) — Figma "Orders — Board view". Header is shared with the list
   (.lv-orders-*); columns are grey panes with a coloured title, cards are small white cards.
   ===================================================================================== */
.lv-board > .lv-orders-head, .lv-board .lv-orders-head { margin-bottom: 24px; }
.lv-board .mes-filters > .row { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; }
.lv-board .mes-filters .form-group { flex: 0 1 150px; min-width: 120px; margin: 0; padding: 0; }
#mesBoard.lv-board, #mesBoard.lv-board ~ .row { margin-left: 8px; margin-right: 8px; }

#mesBoard .mes-columns { margin: 0 -8px; }
#mesBoard .mes-columns > [class*="col-"] { padding: 0 8px; margin-bottom: 16px; }
#mesBoard .mes-col { min-height: 0; padding: 12px; background: var(--lv-neutral-50); border: 0; border-radius: var(--lv-radius-lg); }
#mesBoard .mes-col > .d-flex { margin: 0 0 12px !important; padding: 4px 4px 0 !important; }
#mesBoard .mes-col > .d-flex strong { display: inline-flex; align-items: center; gap: 8px; font-size: var(--lv-font-size-16); font-weight: 600; line-height: 24px; }
#mesBoard .mes-col > .d-flex strong i { width: 10px; height: 10px; border-radius: var(--lv-radius-full); background: currentColor; font-size: 0; }
#mesBoard .mes-col > .d-flex strong i::before { display: none; }
#mesBoard .mes-col .text-success { color: var(--lv-success-700) !important; }
#mesBoard .mes-col .text-warning { color: var(--lv-orange-700) !important; }
#mesBoard .mes-col .text-danger { color: var(--lv-danger-700) !important; }
#mesBoard .mes-col .text-secondary { color: var(--lv-neutral-700) !important; }
#mesBoard .mes-col > .d-flex strong.text-success i { color: var(--lv-success-600); }
#mesBoard .mes-col > .d-flex strong.text-warning i { color: var(--lv-orange-500); }
#mesBoard .mes-col > .d-flex strong.text-danger i { color: var(--lv-danger-600); }
#mesBoard .mes-col > .d-flex strong.text-secondary i { color: var(--lv-neutral-600); }

/* chips (count + badges) */
#mesBoard .badge { padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; line-height: 18px; }
#mesBoard .mes-col > .d-flex .badge { min-width: 28px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
#mesBoard .badge-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
#mesBoard .badge-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
#mesBoard .badge-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
#mesBoard .badge-secondary { background: var(--lv-neutral-100); border-color: var(--lv-neutral-200); color: var(--lv-neutral-700); }

/* cards */
#mesBoard .mes-col .mes-card { display: block; margin: 0 0 8px; padding: 0; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); box-shadow: none; }
#mesBoard .mes-col .mes-card .card-body { padding: 12px !important; font-size: var(--lv-font-size-14); }
#mesBoard .mes-col .mes-card strong { font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
#mesBoard .mes-col .mes-card small { font-size: var(--lv-font-size-12); line-height: 18px; color: var(--lv-fg-tertiary); }
#mesBoard .mes-col .mes-card .text-danger small, #mesBoard .mes-col .mes-card small.text-danger { color: var(--lv-danger-700) !important; }
#mesBoard .mes-col .mes-card .progress { height: 6px; background: var(--lv-neutral-100); border-radius: var(--lv-radius-full); }
#mesBoard .mes-col .mes-card .progress-bar { border-radius: var(--lv-radius-full); }
#mesBoard .mes-col .mes-card .progress-bar.bg-success { background: var(--lv-success-600) !important; }
#mesBoard .mes-col .mes-card .progress-bar.bg-danger { background: var(--lv-danger-600) !important; }
#mesBoard .mes-col .mes-card .dropdown > a { color: var(--lv-fg-tertiary); }
#mesBoard .mes-col .mes-card.dragging { opacity: .5; }
#mesBoard .mes-col .text-muted.small { color: var(--lv-fg-tertiary) !important; }

/* drop target row */
#mesBoard.lv-board ~ .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
#mesBoard.lv-board ~ .row .card { margin: 0; background: transparent; border: 1px dashed var(--lv-neutral-300); border-radius: var(--lv-radius-lg); box-shadow: none; }
#mesBoard.lv-board ~ .row .card-body { padding: 16px !important; display: flex; align-items: center; gap: 16px; }
#mesBoard.lv-board ~ .row .mes-drop { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: var(--lv-radius-md); background: var(--lv-brand-50); color: var(--lv-brand-700); font-size: var(--lv-font-size-14); font-weight: 500; }
#mesBoard.lv-board ~ .row .mes-drop.over { background: var(--lv-brand-100); outline: 2px dashed var(--lv-brand-600); }
#mesBoard.lv-board ~ .row small.text-muted { color: var(--lv-fg-tertiary) !important; }
@media (max-width: 767.98px) { #mesBoard.lv-board, #mesBoard.lv-board ~ .row { margin-left: 0; margin-right: 0; } .lv-board .mes-filters > .row { flex-wrap: wrap; } .lv-board .mes-filters .form-group { flex: 1 1 100%; } }
/* board header: same geometry as the list header (no extra padding on the filter block; 40px selects) */
html body .lv-orders .mes-filters { padding: 0 !important; }
html body .lv-orders .mes-filters select.form-control { height: 40px !important; min-height: 40px; }

/* board cards: the three-dot menu opens inward (under the dots, towards the card body) and is never clipped */
#mesBoard .mes-col .mes-card { overflow: visible; }
#mesBoard .mes-card .dropdown { position: relative; }
#mesBoard .mes-card .dropdown-menu {
    position: absolute !important; top: calc(100% + 4px) !important; left: 0 !important; right: auto !important;
    transform: none !important; margin: 0; min-width: 160px; z-index: 20;
    padding: 4px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .08);
}
#mesBoard .mes-card .dropdown-menu .dropdown-item { padding: 8px 12px; border-radius: var(--lv-radius-sm); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); text-align: right; }
#mesBoard .mes-card .dropdown-menu .dropdown-item:hover { background: var(--lv-brand-50); color: var(--lv-brand-700); }

/* "more" icon from Figma (vuesax/linear/more, 20px): row actions in the orders table and the board cards' menu */
.lv-ico-more, #mesBoard .mes-card .dropdown > a > i { display: inline-block; width: 20px; height: 20px; font-size: 0; vertical-align: middle; background: currentColor; -webkit-mask: url(../lavender/icons/more.svg) center / 20px no-repeat; mask: url(../lavender/icons/more.svg) center / 20px no-repeat; }
#mesBoard .mes-card .dropdown > a > i::before { display: none; }
.lv-more { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--lv-radius-md); color: var(--lv-fg-secondary); }
.lv-more:hover, .lv-more[aria-expanded="true"] { background: var(--lv-neutral-100); color: var(--lv-fg-primary); }
.lv-row-menu { position: relative; display: inline-block; }
.lv-row-menu .dropdown-menu {
    position: absolute !important; top: calc(100% + 4px) !important; left: 0 !important; right: auto !important; transform: none !important;
    min-width: 140px; margin: 0; padding: 4px; z-index: 30; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .08);
}
.lv-row-menu .dropdown-menu .dropdown-item { padding: 8px 12px; border-radius: var(--lv-radius-sm); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); text-align: right; }
.lv-row-menu .dropdown-menu .dropdown-item:hover { background: var(--lv-brand-50); color: var(--lv-brand-700); }
/* the row menu must not be clipped by the rounded table frame (wide screens; narrower ones keep horizontal scrolling) */
@media (min-width: 1200px) { .lv-orders .table-responsive { overflow: visible; } .lv-orders #batch-listing thead th:first-child { border-top-right-radius: var(--lv-radius-md); } .lv-orders #batch-listing thead th:last-child { border-top-left-radius: var(--lv-radius-md); } }

/* DataTables footer: info on one side, pagination on the other, one box per page button (the <a>, not the <li>) */
.lv-orders .dataTables_wrapper > .row:last-child { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; padding: 16px 0 0; }
.lv-orders .dataTables_wrapper > .row:last-child > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
.lv-orders .dataTables_info { padding: 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-orders .dataTables_paginate { padding: 0; margin: 0; }
.lv-orders .dataTables_paginate ul.pagination { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.lv-orders .dataTables_paginate li.paginate_button { min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 1; }
.lv-orders .dataTables_paginate li.paginate_button > a.page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: 0; padding: 0 12px;
    border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white);
    font-size: var(--lv-font-size-14); font-weight: 500; line-height: 1; color: var(--lv-fg-secondary); box-shadow: none;
}
.lv-orders .dataTables_paginate li.paginate_button > a.page-link:hover { background: var(--lv-brand-50); border-color: var(--lv-brand-200); color: var(--lv-brand-700); }
.lv-orders .dataTables_paginate li.paginate_button.active > a.page-link { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white); }
.lv-orders .dataTables_paginate li.paginate_button.disabled > a.page-link { opacity: .5; pointer-events: none; }

/* orders list: the border belongs to the table itself, not to .table-responsive (which also wraps the page-size row and the pager) */
html body .lv-orders .table-responsive { border: 0; border-radius: 0; }
html body .lv-orders #batch-listing { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); border-collapse: separate; border-spacing: 0; }
html body .lv-orders #batch-listing thead th:first-child { border-top-right-radius: calc(var(--lv-radius-lg) - 1px); }
html body .lv-orders #batch-listing thead th:last-child { border-top-left-radius: calc(var(--lv-radius-lg) - 1px); }
html body .lv-orders #batch-listing tbody tr:last-child td:first-child { border-bottom-right-radius: calc(var(--lv-radius-lg) - 1px); }
html body .lv-orders #batch-listing tbody tr:last-child td:last-child { border-bottom-left-radius: calc(var(--lv-radius-lg) - 1px); }

/* list | board switch: smaller corners (outer 12, inner 8) */
html body .lv-orders .lv-seg, html body .lv-seg { border-radius: var(--lv-radius-md); }
html body .lv-orders .lv-seg > *, html body .lv-seg > * { border-radius: var(--lv-radius-sm); }

/* =====================================================================================
   Operators & performance (/panel/mes/operators) — Figma "Operators — Desktop/Mobile".
   Grey header panel (title + date filters, six coloured KPI cards), tabs + table, paired cards.
   ===================================================================================== */
.lv-ico-tick { --lv-ico: url(../lavender/icons/tick.svg); }
.lv-ico-timer22 { --lv-ico: url(../lavender/icons/timer-22.svg); }
.lv-ico-clip { --lv-ico: url(../lavender/icons/tab-tasks.svg); }
.lv-ico-users { --lv-ico: url(../lavender/icons/users.svg); }
.lv-ico-element3 { --lv-ico: url(../lavender/icons/element3.svg); }
.lv-tile--blue { background: var(--lv-info-50); color: var(--lv-info-600); }

.lv-ops { margin: 0 8px; }
.lv-ops-head { margin-bottom: 24px; padding: 24px; background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
.lv-ops-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lv-ops .mes-h1 { font-size: var(--lv-font-size-24); font-weight: 600; line-height: 31px; color: var(--lv-fg-primary); }

/* the shared filter form, flattened into the panel */
.lv-ops-top form.card { margin: 0 !important; background: transparent; border: 0; box-shadow: none; }
.lv-ops-top form.card .card-body { padding: 0 !important; }
.lv-ops-top .mes-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; border: 0; background: transparent; }
.lv-ops-top .mes-filters .form-group { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 12px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); }
.lv-ops-top .mes-filters .form-group label { margin: 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-ops-top .mes-filters .form-control { width: 108px; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-ops-top .mes-filters select.form-control { width: auto; min-width: 100px; -webkit-appearance: none; appearance: none; padding-left: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2357555C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left center / 12px 8px; }
.lv-ops-top .mes-filters .btn-primary { height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600) !important; font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-ops-top .mes-filters .btn-primary:hover { background: var(--lv-brand-700) !important; }
.lv-ops-top .mes-filters .btn-primary i.ft-filter { font-size: 0; width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-left: 6px; background: currentColor; -webkit-mask: url(../lavender/icons/filter.svg) center / contain no-repeat; mask: url(../lavender/icons/filter.svg) center / contain no-repeat; }
.lv-ops-top .mes-filters .btn-primary i.ft-filter::before { display: none; }

/* KPI cards: coloured top edge, tinted head with an icon disc, big value */
.lv-ops-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lv-kpi-card { --c: var(--lv-brand-600); --c-ink: var(--lv-brand-700); --c-tint: var(--lv-brand-100); --c-wash: var(--lv-brand-50); display: flex; flex-direction: column; overflow: hidden; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-top: 4px solid var(--c); border-radius: var(--lv-radius-lg); }
.lv-kpi-card.is-success { --c: var(--lv-success-600); --c-ink: var(--lv-success-700); --c-tint: var(--lv-success-100); --c-wash: var(--lv-success-50); }
.lv-kpi-card.is-info { --c: var(--lv-info-600); --c-ink: var(--lv-info-700); --c-tint: var(--lv-info-100); --c-wash: var(--lv-info-50); }
.lv-kpi-card.is-warning { --c: var(--lv-orange-500); --c-ink: var(--lv-orange-700); --c-tint: var(--lv-orange-200); --c-wash: var(--lv-orange-50); }
.lv-kpi-card.is-teal { --c: var(--lv-info-400); --c-ink: var(--lv-info-700); --c-tint: var(--lv-info-200); --c-wash: var(--lv-info-50); }
.lv-kpi-card.is-danger { --c: var(--lv-danger-600); --c-ink: var(--lv-danger-700); --c-tint: var(--lv-danger-200); --c-wash: var(--lv-danger-50); }
.lv-kpi-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(to bottom, var(--c-wash), var(--lv-white)); }
.lv-kpi-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--lv-radius-full); background: var(--c-tint); color: var(--c-ink); }
.lv-kpi-ico i { display: inline-block; width: 20px; height: 20px; font-size: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.lv-kpi-ico i::before { display: none; }
.lv-i-users { --ico: url(../lavender/icons/users.svg); }
.lv-i-tick { --ico: url(../lavender/icons/tick.svg); }
.lv-i-clip { --ico: url(../lavender/icons/tab-tasks.svg); }
.lv-i-clock { --ico: url(../lavender/icons/tab-history.svg); }
.lv-i-doc { --ico: url(../lavender/icons/tab-notes.svg); }
.lv-i-timer { --ico: url(../lavender/icons/timer-22.svg); }
.lv-kpi-label { font-size: var(--lv-font-size-14); font-weight: 600; color: var(--c-ink); }
.lv-kpi-value { padding: 0 16px; font-size: 30px; font-weight: 700; line-height: 40px; color: var(--lv-fg-primary); }
.lv-kpi-sub { padding: 0 16px 16px; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }

/* tabs + tools, then the table (border on the table itself) */
.lv-ops-table { margin-bottom: 24px; }
.lv-ops-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lv-ops .nav-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0; background: var(--lv-white); border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-md); }
.lv-ops .nav-tabs .nav-item { margin: 0; }
.lv-ops .nav-tabs .nav-link { padding: 8px 16px; border: 0 !important; border-radius: var(--lv-radius-sm) !important; background: transparent; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary); }
.lv-ops .nav-tabs .nav-link.active { background: var(--lv-brand-100) !important; color: var(--lv-brand-700) !important; }
.lv-ops-tools { display: flex; align-items: center; gap: 8px; }
.lv-ops-tools .btn-primary { height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600) !important; font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-ops-tools .btn-primary:hover { background: var(--lv-brand-700) !important; }
.lv-ops-tools select.form-control { width: auto; height: 40px; padding: 0 14px 0 36px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2357555C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center / 12px 8px; -webkit-appearance: none; appearance: none; font-size: var(--lv-font-size-14); box-shadow: none; }
.lv-ops .table-responsive { border: 0; }
.lv-ops #operators { margin: 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); border-collapse: separate; border-spacing: 0; }
.lv-ops #operators thead th { padding: 14px 16px; background: var(--lv-neutral-100); border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-ops #operators thead th:first-child { border-top-right-radius: calc(var(--lv-radius-lg) - 1px); }
.lv-ops #operators thead th:last-child { border-top-left-radius: calc(var(--lv-radius-lg) - 1px); }
.lv-ops #operators tbody td { padding: 12px 16px; border: 0; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
.lv-ops #operators tbody tr:first-child td { border-top: 0; }
.lv-ops #operators tbody tr:hover { background: var(--lv-neutral-50); }
.lv-ops #operators tbody tr:last-child td:first-child { border-bottom-right-radius: calc(var(--lv-radius-lg) - 1px); }
.lv-ops #operators tbody tr:last-child td:last-child { border-bottom-left-radius: calc(var(--lv-radius-lg) - 1px); }
.lv-ops #operators .progress { height: 4px; background: var(--lv-neutral-100); border-radius: var(--lv-radius-full); }
.lv-ops #operators .progress-bar { background: var(--lv-success-600) !important; border-radius: var(--lv-radius-full); }
.lv-ops #operators small { color: var(--lv-fg-tertiary); }
.lv-ops #operators .badge { padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-ops #operators .badge-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-ops #operators .badge-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
.lv-ops #operators .badge-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-ops #operators .badge-secondary { background: var(--lv-neutral-100); border-color: var(--lv-neutral-200); color: var(--lv-neutral-700); }
.lv-ops #operators td.text-success { color: var(--lv-success-700) !important; }
.lv-ops #operators td.text-warning { color: var(--lv-orange-700) !important; }
.lv-ops #operators td.text-danger { color: var(--lv-danger-700) !important; }
/* DataTables tool/footer rows (same treatment as the orders list) */
.lv-ops .dataTables_wrapper > .row:first-child, .lv-ops .dataTables_wrapper > .row:last-child { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; }
.lv-ops .dataTables_wrapper > .row:first-child { padding: 0 0 12px; }
.lv-ops .dataTables_wrapper > .row:last-child { padding: 16px 0 0; }
.lv-ops .dataTables_wrapper > .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
.lv-ops .dataTables_length label, .lv-ops .dataTables_filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-ops .dataTables_filter input, .lv-ops .dataTables_length select { height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); box-shadow: none; }
.lv-ops .dataTables_info { padding: 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-ops .dataTables_paginate ul.pagination { display: flex; gap: 4px; margin: 0; padding: 0; }
.lv-ops .dataTables_paginate li.paginate_button { margin: 0; padding: 0; border: 0; background: transparent; }
.lv-ops .dataTables_paginate li.paginate_button > a.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary); box-shadow: none; }
.lv-ops .dataTables_paginate li.paginate_button.active > a.page-link { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white); }
.lv-ops .dataTables_paginate li.paginate_button.disabled > a.page-link { opacity: .5; pointer-events: none; }

/* paired cards */
.lv-ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; align-items: start; }
.lv-ops-card { overflow: hidden; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); }
.lv-ops-card-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--lv-neutral-200); }
.lv-ops-card-head h4 { margin: 0; font-size: var(--lv-font-size-16); font-weight: 600; color: var(--lv-fg-primary); }
.lv-ops-card-head small { margin-right: auto; font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-ops-card-body { padding: 16px; }
.lv-ops-card-body h6 { margin: 16px 0 8px; font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-rank { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 12px; background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
.lv-rank-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 600; }
.lv-rank.is-good .lv-rank-av { background: var(--lv-success-50); color: var(--lv-success-700); }
.lv-rank.is-bad .lv-rank-av { background: var(--lv-danger-50); color: var(--lv-danger-700); }
.lv-rank-text { display: flex; flex-direction: column; min-width: 0; }
.lv-rank-text b { font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-rank-text small { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-rank-val { margin-right: auto; padding: 2px 10px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-rank.is-good .lv-rank-val { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-rank.is-bad .lv-rank-val { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-donut { position: relative; display: flex; justify-content: center; margin-bottom: 12px; }
.lv-donut > div:first-child { width: 180px; }
.lv-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.lv-donut-center b { font-size: 24px; font-weight: 700; color: var(--lv-fg-primary); }
.lv-donut-center small { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-legend-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--lv-font-size-14); }
.lv-legend-val { color: var(--lv-fg-tertiary); }
.lv-att-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.lv-att-tiles > div { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-md); }
.lv-att-tiles b { font-size: 24px; font-weight: 700; line-height: 32px; }
.lv-att-tiles small { font-size: var(--lv-font-size-12); }
.lv-att-tiles .is-green { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-att-tiles .is-red { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-att-tiles .is-blue { background: var(--lv-info-50); border-color: var(--lv-info-200); color: var(--lv-info-700); }
.lv-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-line small { color: var(--lv-fg-tertiary); }
.lv-pill { padding: 2px 12px; border-radius: var(--lv-radius-full); background: var(--lv-neutral-100); font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-secondary); }
.lv-ops-edit { width: 100%; margin-top: 12px; min-height: 40px; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-ops-edit i.ft-edit { font-size: 0; display: inline-block; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(../lavender/icons/edit2.svg) center / contain no-repeat; mask: url(../lavender/icons/edit2.svg) center / contain no-repeat; }
.lv-ops-edit i.ft-edit::before { display: none; }
.lv-ops-tools .btn-primary i.ft-plus { font-size: 0; display: inline-block; width: 16px; height: 16px; vertical-align: middle; margin-left: 4px; background: currentColor; -webkit-mask: url(../lavender/icons/add.svg) center / contain no-repeat; mask: url(../lavender/icons/add.svg) center / contain no-repeat; }
.lv-ops-tools .btn-primary i.ft-plus::before { display: none; }
@media (max-width: 1199.98px) { .lv-ops-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .lv-ops { margin: 0; }
    .lv-ops-head { padding: 16px; }
    .lv-ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .lv-kpi-value { font-size: 24px; line-height: 32px; }
    .lv-ops-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .lv-ops-bar { flex-direction: column; align-items: stretch; }
    .lv-ops-tools { flex-wrap: wrap; }
}
/* operators: full-width table, paired cards share their height */
html body .lv-ops #operators { width: 100% !important; }
.lv-ops .dataTables_wrapper > .row:not(:first-child):not(:last-child) { margin: 0; }
.lv-ops .dataTables_wrapper > .row:not(:first-child):not(:last-child) > [class*="col-"] { padding: 0; max-width: 100%; flex: 0 0 100%; }
.lv-ops-grid { align-items: stretch; }
/* operators tab bar: 42px like the Figma switch (theme padding 16/24 was winning) */
html body .lv-ops .nav-tabs .nav-link { padding: 6px 16px !important; line-height: 28px; min-height: 0; }
html body .lv-ops-tools select.form-control, html body .lv-ops-tools .btn-primary { height: 40px !important; min-height: 0; }

/* ---- KPI cards, exact Figma: white card (166x144, r16, 1px border) over a coloured "Accent" that peeks 4px
   above and tints the top 67px; dark label (13 bold) / value (30 semibold) / sub (14), per-card circle + icon colours ---- */
.lv-i-user { --ico: url(../lavender/icons/user22.svg); }
.lv-ops-kpis { gap: 12px; }
html body .lv-kpi-card {
    --accent: #9d76d9; --circle: #dcd2ea; --stroke: #7a54b2;
    position: relative; overflow: visible; min-height: 144px; padding: 16px; gap: 2px;
    border: 1px solid var(--lv-neutral-200); border-top: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 21%, #fff) 0, color-mix(in srgb, var(--accent) 13%, #fff) 67px, #fff 67px, #fff 100%);
    box-shadow: 0 -4px 0 0 var(--accent);
}
html body .lv-kpi-card.is-success { --accent: #2fa463; --circle: #c2e6d1; --stroke: #2fa463; }
html body .lv-kpi-card.is-info    { --accent: #4c8df0; --circle: #cedef7; --stroke: #4c8df0; }
html body .lv-kpi-card.is-warning { --accent: #f59a3c; --circle: #f4d8bd; --stroke: #f59a3c; }
html body .lv-kpi-card.is-teal    { --accent: #2bb5c4; --circle: #b8e0e3; --stroke: #2bb5c4; }
html body .lv-kpi-card.is-danger  { --accent: #e5534b; --circle: #f1c8c4; --stroke: #e5534b; }
html body .lv-kpi-top { gap: 10px; height: 32px; padding: 0; background: none; }
html body .lv-kpi-ico { width: 32px; height: 32px; background: var(--circle); color: var(--stroke); }
html body .lv-kpi-ico i { width: 22px; height: 22px; }
html body .lv-kpi-label { font-size: 13px; font-weight: 700; line-height: 18px; color: var(--lv-fg-primary); }
html body .lv-kpi-value { padding: 14px 0 0; font-size: 30px; font-weight: 600; line-height: 39px; color: var(--lv-fg-primary); }
html body .lv-kpi-sub { padding: 0; font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-tertiary); }
@media (max-width: 767.98px) { html body .lv-kpi-card { min-height: 0; padding: 12px; } html body .lv-kpi-value { font-size: 24px; line-height: 32px; padding-top: 8px; } }
/* KPI value: more room above the number (was 14px, tight against the tinted head) */
html body .lv-kpi-value { padding-top: 24px; }
@media (max-width: 767.98px) { html body .lv-kpi-value { padding-top: 14px; } }

/* =====================================================================================
   Reports (/panel/mes/reports) — Figma "Reports — Desktop". Same panel/KPI/card language as the
   operators page (.lv-ops); here: 3-column chart cards and the recent-reports table.
   ===================================================================================== */
.lv-i-box { --ico: url(../lavender/icons/box-time.svg); }
.lv-i-pause { --ico: url(../lavender/icons/tab-issues.svg); }
.lv-ico-chart2 { --lv-ico: url(../lavender/icons/chart2.svg); }
.lv-ico-clip20 { --lv-ico: url(../lavender/icons/clipboard.svg); }
.lv-ico-box { --lv-ico: url(../lavender/icons/box-time.svg); }
.lv-ico-user { --lv-ico: url(../lavender/icons/user22.svg); }
.lv-ico-doc22 { --lv-ico: url(../lavender/icons/tab-notes.svg); }
.lv-tile--teal { background: var(--lv-info-50); color: var(--lv-info-500); }

.lv-rep .lv-kpi-value small { font-size: var(--lv-font-size-14); font-weight: 400; color: var(--lv-fg-tertiary); }
.lv-kpi-foot { margin-top: auto; padding-top: 8px; font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-delta { display: flex; align-items: center; gap: 8px; }
.lv-delta-chip { padding: 1px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; line-height: 18px; }
.lv-delta-chip.is-good { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-delta-chip.is-bad { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-rep .lv-kpi-label { white-space: normal; }

.lv-rep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .lv-rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .lv-rep-grid { grid-template-columns: minmax(0, 1fr); } }
.lv-rep .lv-ops-card { margin-bottom: 0; }
.lv-rep .lv-ops-grid { margin-bottom: 24px; }
.lv-more-link { margin-right: auto; font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-more-link:hover { color: var(--lv-brand-600); }

/* segmented tabs (station | task) */
.lv-seg-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--lv-neutral-100); border: 0 !important; border-radius: var(--lv-radius-md); }
.lv-seg-tabs .nav-item { flex: 1; margin: 0; }
.lv-seg-tabs .nav-link { display: block; padding: 6px 12px !important; text-align: center; border: 0 !important; border-radius: var(--lv-radius-sm) !important; background: transparent; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary); }
.lv-seg-tabs .nav-link.active { background: var(--lv-white) !important; color: var(--lv-fg-primary) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.lv-bn { margin-bottom: 14px; }
.lv-bn-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-bn-row small { color: var(--lv-fg-tertiary); }
.lv-bn .progress { background: var(--lv-neutral-100); border-radius: var(--lv-radius-full); }
.lv-bn .progress-bar { border-radius: var(--lv-radius-full); }
.lv-bn .progress-bar.bg-danger { background: var(--lv-danger-700) !important; }
.lv-bn .progress-bar.bg-warning { background: var(--lv-orange-700) !important; }

/* tables inside cards: rounded frame, grey head, hairline rows */
.lv-rep .lv-ops-card .table { width: 100%; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.lv-rep .lv-ops-card .table thead th { padding: 10px 12px; background: var(--lv-neutral-100); border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-rep .lv-ops-card .table tbody td { padding: 10px 12px; border: 0; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
.lv-rep .lv-ops-card .table tbody tr:first-child td { border-top: 0; }
.lv-rep .lv-ops-card .table .text-success { color: var(--lv-success-700) !important; }
.lv-rep .lv-ops-card .table .text-warning { color: var(--lv-orange-700) !important; }
.lv-rep .lv-ops-card .table .text-danger { color: var(--lv-danger-700) !important; }
.lv-rep .lv-ops-card .table .badge { padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-rep .lv-ops-card .table .badge-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-rep .lv-ops-card .table .badge-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-rep .lv-donut-center b { font-size: 20px; }

/* recent reports */
.lv-rep-recent { margin-top: 24px; }
.lv-rep-recent-head { flex-wrap: wrap; justify-content: space-between; }
.lv-rep-recent-head h4 { margin-left: auto; }
.lv-rep-gen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.lv-rep-gen select.form-control { width: auto; height: 40px; padding: 0 14px 0 36px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2357555C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center / 12px 8px; -webkit-appearance: none; appearance: none; font-size: var(--lv-font-size-14); box-shadow: none; }
.lv-rep-gen .btn-primary { height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600) !important; font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-rep-gen .btn-primary i.ft-download, .lv-rep-actions i { font-size: 0; display: inline-block; width: 16px; height: 16px; vertical-align: middle; background: currentColor; -webkit-mask: var(--lv-ico) center / contain no-repeat; mask: var(--lv-ico) center / contain no-repeat; }
.lv-rep-gen .btn-primary i.ft-download, .lv-rep-actions i.ft-download { --lv-ico: url(../lavender/icons/doc-download.svg); }
.lv-rep-actions i.ft-mail { --lv-ico: url(../lavender/icons/sms.svg); }
.lv-rep-gen .btn-primary i::before, .lv-rep-actions i::before { display: none; }
.lv-rep-actions .btn { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--lv-radius-md); background: transparent; color: var(--lv-fg-secondary); }
.lv-rep-actions .btn:hover { background: var(--lv-brand-50); color: var(--lv-brand-700); }
.lv-rep-recent .table-responsive { padding: 16px; }
.lv-rep-recent table { width: 100%; }
/* reports: KPI footer on one line; filter bar fits one row (fields shrink instead of wrapping the button) */
.lv-kpi-foot { font-size: 11px; }
.lv-delta { flex-wrap: nowrap; gap: 6px; }
.lv-delta > span:first-child { white-space: nowrap; }
.lv-delta-chip { white-space: nowrap; padding: 1px 6px; font-size: 11px; }
.lv-rep .lv-ops-top { flex-wrap: wrap; }
.lv-rep .lv-ops-top .mes-h1 { flex: 1 1 100%; }
.lv-rep .lv-ops-top form.card { flex: 1 1 100%; }
.lv-rep .lv-ops-top .mes-filters { flex-wrap: nowrap; }
.lv-rep .lv-ops-top .mes-filters .form-group { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.lv-rep .lv-ops-top .mes-filters .form-control { width: 100%; min-width: 0; }
.lv-rep .lv-ops-top .mes-filters .btn-primary { flex: none; }
@media (max-width: 991.98px) { .lv-rep .lv-ops-top .mes-filters { flex-wrap: wrap; } .lv-rep .lv-ops-top .mes-filters .form-group { flex: 1 1 45%; } }

/* ---- Reports on phones: keep the small card tables as real tables (the global phone rule stacks every table into cards);
   the wide recent-reports table scrolls sideways instead ---- */
@media (max-width: 767.98px) {
    html body .lv-rep .lv-ops-card table.table { display: table; width: 100% !important; }
    html body .lv-rep .lv-ops-card table.table thead { display: table-header-group; }
    html body .lv-rep .lv-ops-card table.table tbody { display: table-row-group; width: auto; }
    html body .lv-rep .lv-ops-card table.table tr { display: table-row; width: auto; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
    html body .lv-rep .lv-ops-card table.table th, html body .lv-rep .lv-ops-card table.table td { display: table-cell; width: auto !important; padding: 10px 8px; text-align: right; white-space: normal; }
    html body .lv-rep .lv-ops-card table.table td[data-label]::before { content: none; }
    html body .lv-rep .lv-ops-card table.table td { font-size: 13px; }
    html body .lv-rep .lv-ops-card table.table tbody tr + tr td { border-top: 1px solid var(--lv-neutral-200); }
    html body .lv-rep .lv-ops-card-body.table-responsive { overflow-x: auto; padding: 12px; }
    html body .lv-rep .lv-rep-recent table.table { min-width: 680px; }
    html body .lv-rep .lv-rep-recent table.table td { white-space: nowrap; }
    .lv-rep-gen { width: 100%; }
    .lv-rep-gen select.form-control, .lv-rep-gen .btn-primary { flex: 1 1 100%; width: 100%; height: 44px !important; }
    .lv-rep .lv-ops-card-head { padding: 12px; }
    .lv-rep-recent-head h4 { flex: 1 1 100%; margin: 0 0 4px; }
}
/* segmented station | task tabs fill the card (Figma) */
html body .lv-ops .nav-tabs.lv-seg-tabs { display: flex; width: 100%; padding: 4px; border: 0 !important; background: var(--lv-neutral-100); }

/* ---- Operators list on phones: real scrollable table instead of stacked cards; tidy DataTables tools ---- */
@media (max-width: 767.98px) {
    html body .lv-ops #operators { display: table; width: 100% !important; min-width: 640px; }
    html body .lv-ops #operators thead { display: table-header-group; }
    html body .lv-ops #operators tbody { display: table-row-group; width: auto; }
    html body .lv-ops #operators tr { display: table-row; width: auto; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    html body .lv-ops #operators th, html body .lv-ops #operators td { display: table-cell; width: auto !important; padding: 10px 12px; text-align: right; white-space: nowrap; }
    html body .lv-ops #operators td[data-label]::before { content: none; }
    html body .lv-ops #operators td { font-size: 13px; border-top: 1px solid var(--lv-neutral-200); }
    html body .lv-ops #operators tbody tr:first-child td { border-top: 0; }
    html body .lv-ops #tabList .table-responsive { overflow-x: auto; padding: 0; }
    .lv-ops .dataTables_wrapper > .row:first-child { flex-direction: row-reverse; }
    .lv-ops .dataTables_filter, .lv-ops .dataTables_length { width: 100%; }
    .lv-ops .dataTables_filter label, .lv-ops .dataTables_length label { width: 100%; }
    .lv-ops .dataTables_filter input { flex: 1 1 auto; width: 100% !important; margin: 0 !important; }
    .lv-ops .dataTables_wrapper > .row:first-child > [class*="col-"] { width: 100%; }
    .lv-ops .dataTables_wrapper > .row:last-child { justify-content: center; }
}
@media (max-width: 767.98px) {
    html body .lv-ops .dataTables_wrapper .dataTables_filter label { display: flex !important; align-items: center; gap: 8px; width: 100%; }
    html body .lv-ops .dataTables_wrapper .dataTables_filter input { flex: 1 1 0; min-width: 0; width: auto !important; margin: 0 !important; height: 44px; }
    html body .lv-ops .dataTables_wrapper .dataTables_length select { height: 44px; }
}

/* ---- Manager dashboard (.lv-mgr) ---- */
.lv-mgr-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .lv-mgr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .lv-mgr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-mgr .lv-ops-top form.card { flex: 0 0 auto; }
.lv-mgr .lv-ops-top { flex-wrap: nowrap; }
@media (max-width: 767.98px) { .lv-mgr .lv-ops-top { flex-wrap: wrap; } .lv-mgr .lv-ops-top .mes-filters { flex-wrap: wrap; } }
.lv-mgr-progress { height: 6px; margin-top: 6px; background: var(--lv-neutral-100); border-radius: var(--lv-radius-full); }
.lv-mgr-progress .progress-bar { background: var(--lv-info-600) !important; border-radius: var(--lv-radius-full); }
.lv-mgr .lv-kpi-value small { font-size: var(--lv-font-size-14); font-weight: 400; color: var(--lv-fg-tertiary); }
.lv-mgr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .lv-mgr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .lv-mgr-grid { grid-template-columns: minmax(0, 1fr); } }
.lv-mgr-wide { grid-column: span 2; }
@media (max-width: 767.98px) { .lv-mgr-wide { grid-column: auto; } }
.lv-mgr .lv-ops-card-head .lv-more-link { margin-right: auto; font-size: var(--lv-font-size-12); }
.lv-mgr .lv-ops-card-body { padding: 16px; }
.lv-mgr-link { display: block; margin-top: 12px; text-align: center; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-brand-600); }
.lv-mgr-link:hover { color: var(--lv-brand-700); }
.lv-mgr-link i { font-size: 12px; vertical-align: middle; }
.lv-mgr-empty { margin: 0; padding: 8px 0; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-mgr-note { display: block; margin-top: 8px; font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
/* gauge */
.lv-mgr-gauge { display: flex; align-items: center; gap: 16px; }
.lv-mgr-gauge .lv-donut { flex: 0 0 120px; margin: 0; }
.lv-mgr-gauge .lv-donut > div:first-child { width: 120px; }
.lv-mgr-gauge .lv-donut-center b { font-size: 20px; }
.lv-mgr-gauge .lv-donut-center small { display: none; }
.lv-mgr-stats { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lv-mgr-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--lv-font-size-14); }
.lv-mgr-stats small { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-mgr-stats strong { font-weight: 600; color: var(--lv-fg-primary); }
.lv-mgr-stats strong.text-success { color: var(--lv-success-700) !important; }
/* status tiles */
.lv-mgr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lv-mgr-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv-mgr-tile { --t: var(--lv-info-700); --tb: var(--lv-info-50); --tbd: var(--lv-info-200); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; background: var(--tb); border: 1px solid var(--tbd); border-radius: var(--lv-radius-md); text-align: center; }
.lv-mgr-tile b { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--t); }
.lv-mgr-tile small { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-mgr-tile.is-success { --t: var(--lv-success-700); --tb: var(--lv-success-50); --tbd: var(--lv-success-200); }
.lv-mgr-tile.is-warning { --t: var(--lv-orange-700); --tb: var(--lv-orange-50); --tbd: var(--lv-orange-200); }
.lv-mgr-tile.is-danger { --t: var(--lv-danger-700); --tb: var(--lv-danger-50); --tbd: var(--lv-danger-200); }
.lv-mgr-total { display: flex; flex-direction: column; margin-bottom: 12px; }
.lv-mgr-total b { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--lv-fg-primary); }
.lv-mgr-total small { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
/* bottlenecks */
.lv-mgr-bn { margin-bottom: 12px; padding: 12px; background: var(--lv-neutral-50); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); }
.lv-mgr-bn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lv-mgr-bn-head strong { font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-mgr-bn .badge { padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-mgr-bn .badge-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-mgr-bn .badge-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
.lv-mgr-bn-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-mgr-bn-cols > div { display: flex; flex-direction: column; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-mgr-bn-cols b { font-weight: 600; }
.lv-mgr-bn-cols small { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-mgr-bn-cols span { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
/* products table */
.lv-mgr-products { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.lv-mgr-products thead th { padding: 10px 12px; background: var(--lv-neutral-100); border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-tertiary); white-space: nowrap; }
.lv-mgr-products tbody td { padding: 10px 12px; border: 0; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
.lv-mgr-products tbody tr:first-child td { border-top: 0; }
.lv-mgr-products small { color: var(--lv-fg-tertiary); }
.lv-mgr-products .progress { background: var(--lv-neutral-100); border-radius: var(--lv-radius-full); }
.lv-mgr-products .progress-bar { border-radius: var(--lv-radius-full); }
.lv-mgr-products .progress-bar.bg-success { background: var(--lv-success-600) !important; }
.lv-mgr-products .progress-bar.bg-warning { background: var(--lv-orange-500) !important; }
.lv-mgr-products .progress-bar.bg-danger { background: var(--lv-danger-600) !important; }
/* alerts */
.lv-mgr-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 12px; background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
.lv-mgr-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--lv-info-600); }
.lv-mgr-dot.is-danger { background: var(--lv-danger-600); }
.lv-mgr-dot.is-warning { background: var(--lv-orange-500); }
.lv-mgr-alert-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-mgr-alert-text strong { font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-mgr-alert-text small, .lv-mgr-time { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
/* trend */
.lv-mgr-trend { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 767.98px) { .lv-mgr-trend { grid-template-columns: minmax(0, 1fr); } }
.lv-mgr-summary { padding: 12px 16px; background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
.lv-mgr-summary h6 { margin: 0 0 10px; font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-mgr-summary > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: var(--lv-font-size-14); }
.lv-mgr-summary small { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-mgr-summary strong { font-weight: 600; color: var(--lv-fg-primary); }
.lv-mgr-summary strong.text-success { color: var(--lv-success-700) !important; }
/* quick access */
.lv-mgr-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-mgr-qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 4px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); text-align: center; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-primary); }
.lv-mgr-qa:hover { border-color: var(--lv-brand-600); background: var(--lv-brand-50); color: var(--lv-brand-700); }
.lv-qa-ico { width: 20px; height: 20px; background-color: var(--lv-brand-600); -webkit-mask: var(--lv-ico) center / contain no-repeat; mask: var(--lv-ico) center / contain no-repeat; }
@media (max-width: 767.98px) {
    .lv-mgr-kpis .lv-kpi-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    html body .lv-mgr table.lv-mgr-products { display: table; width: 100% !important; }
    html body .lv-mgr table.lv-mgr-products thead { display: table-header-group; }
    html body .lv-mgr table.lv-mgr-products tbody { display: table-row-group; width: auto; }
    html body .lv-mgr table.lv-mgr-products tr { display: table-row; width: auto; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    html body .lv-mgr table.lv-mgr-products th, html body .lv-mgr table.lv-mgr-products td { display: table-cell; width: auto !important; padding: 10px 8px; text-align: right; }
    html body .lv-mgr table.lv-mgr-products td[data-label]::before { content: none; }
    html body .lv-mgr table.lv-mgr-products td { font-size: 13px; border-top: 1px solid var(--lv-neutral-200); }
    html body .lv-mgr table.lv-mgr-products tbody tr:first-child td { border-top: 0; }
}

/* ---- Production settings (.lv-set) ---- */
.lv-set .lv-ops-head { margin-bottom: 24px; }
.lv-set .lv-ops-top { margin-bottom: 0; }
.lv-set-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lv-set-tools form { margin: 0; }
.lv-set-tools label { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-set-tools .btn-def-primary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; border: 0; color: var(--lv-white) !important; font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-set-tools .btn-def-primary:hover { background: var(--lv-brand-700) !important; }
.lv-set-tools select.form-control { width: auto; min-width: 150px; height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background-color: var(--lv-white); box-shadow: none; font-size: var(--lv-font-size-14); }
.lv-set-body { padding: 0 16px; }
/* pill tab bar with icons */
html body .lv-set .nav-tabs.lv-set-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 16px !important; padding: 4px; border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-lg); background: var(--lv-white); }
html body .lv-set .lv-set-tabs .nav-item { margin: 0; }
html body .lv-set .lv-set-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px !important; border: 0 !important; border-radius: var(--lv-radius-md) !important; background: transparent !important; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary) !important; box-shadow: none !important; outline: 0; }
html body .lv-set .lv-set-tabs .nav-link:hover { background: var(--lv-neutral-50) !important; }
html body .lv-set .lv-set-tabs .nav-link.active { background: var(--lv-brand-100) !important; color: var(--lv-brand-700) !important; }
.lv-set-ico { width: 20px; height: 20px; background-color: currentColor; -webkit-mask: var(--lv-ico) center / contain no-repeat; mask: var(--lv-ico) center / contain no-repeat; }
/* table */
.lv-set .table-responsive { border: 0; }
.lv-set-table { width: 100%; margin: 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.lv-set-table thead th { padding: 12px 16px; background: var(--lv-neutral-100); border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-tertiary); }
.lv-set-table tbody td { padding: 12px 16px; border: 0; border-top: 1px solid var(--lv-neutral-200); background: transparent; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
.lv-set-table tbody tr:first-child td { border-top: 0; }
.lv-set-table.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.lv-set-table tbody tr:hover { background: var(--lv-neutral-50); }
.lv-set-table td[style*="flex"] { gap: 4px; align-items: center; }
.lv-set-table .table-action-btn { width: 32px; height: 32px; padding: 0; background: transparent !important; border: 0; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.lv-set-table .table-action-btn:hover { background: var(--lv-neutral-100) !important; border-radius: var(--lv-radius-sm); }
.lv-set-table .table-action-btn img { width: 18px; height: 18px; }
.lv-set-table form.deleteForm { margin: 0; }
.lv-set .lv-chip { display: inline-block; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-set .lv-chip.is-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-set .lv-chip.is-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
.lv-set .lv-chip.is-neutral { background: var(--lv-neutral-100); border-color: var(--lv-neutral-200); color: var(--lv-neutral-700); }
/* form card */
.lv-set-card { padding: 16px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); background: var(--lv-white); }
.lv-set-card h4 { font-size: var(--lv-font-size-16); font-weight: 600; }
.lv-set-body > h4 { margin: 0 0 12px; font-size: var(--lv-font-size-16); font-weight: 600; color: var(--lv-fg-primary); }
.lv-set-card .form-group { margin-bottom: 16px; }
.lv-set-card label { margin-bottom: 6px; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-primary); }
.lv-set-card .form-control { height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background-color: var(--lv-white); box-shadow: none; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-set-card .form-control:focus { border-color: var(--lv-brand-600); box-shadow: 0 0 0 3px var(--lv-brand-100); }
.lv-set-card .btn-def-primary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; border: 0; color: var(--lv-white) !important; font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-set-card .btn-def-primary:hover { background: var(--lv-brand-700) !important; }
.lv-set-card .btn-outline-secondary { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary); font-size: var(--lv-font-size-14); font-weight: 500; }
.lv-set-card .btn-outline-secondary:hover { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white); }
@media (max-width: 767.98px) {
    .lv-set-body { padding: 0; }
    .lv-set .lv-ops-top { flex-direction: column; align-items: stretch; }
    .lv-set-tools { width: 100%; }
    .lv-set-tools select.form-control, .lv-set-tools .btn-def-primary { height: 44px; }
    .lv-set-tools .btn-def-primary { flex: 1 1 100%; justify-content: center; }
    .lv-set-tools form { flex: 1 1 100%; }
    .lv-set-tools form select { flex: 1; }
    html body .lv-set .nav-tabs.lv-set-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
    html body .lv-set .lv-set-tabs .nav-link { white-space: nowrap; }
    html body .lv-set table.lv-set-table { display: table; width: 100% !important; min-width: 520px; }
    html body .lv-set table.lv-set-table thead { display: table-header-group; }
    html body .lv-set table.lv-set-table tbody { display: table-row-group; width: auto; }
    html body .lv-set table.lv-set-table tr { display: table-row; width: auto; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    html body .lv-set table.lv-set-table th, html body .lv-set table.lv-set-table td { display: table-cell; width: auto !important; padding: 10px 12px; text-align: right; }
    html body .lv-set table.lv-set-table td[data-label]::before { content: none; }
    html body .lv-set table.lv-set-table td { border-top: 1px solid var(--lv-neutral-200); }
    html body .lv-set table.lv-set-table tbody tr:first-child td { border-top: 0; }
    .lv-set .table-responsive { overflow-x: auto; }
}
html body .lv-set table.lv-set-table thead, html body .lv-set table.lv-set-table thead tr, html body .lv-set table.lv-set-table thead th { background: var(--lv-neutral-100) !important; font-weight: 500 !important; color: var(--lv-fg-tertiary) !important; }
html body .lv-set table.lv-set-table thead th:first-child { border-top-right-radius: calc(var(--lv-radius-lg) - 1px); }
html body .lv-set table.lv-set-table thead th:last-child { border-top-left-radius: calc(var(--lv-radius-lg) - 1px); }
html body .lv-set-card label { color: var(--lv-fg-primary) !important; font-weight: 500; }
/* settings icons (exact Figma strokes) */
.lv-ico-pause22 { --lv-ico: url(../lavender/icons/pause-circle-22.svg); }
.lv-ico-doctext22 { --lv-ico: url(../lavender/icons/doc-text-22.svg); }
.lv-ico-clock22 { --lv-ico: url(../lavender/icons/clock-22.svg); }
html body .lv-set .lv-set-tabs .lv-set-ico { width: 22px; height: 22px; flex: none; }
html body .lv-set-table .table-action-btn i { position: relative; display: block; width: 16px; height: 16px; }
html body .lv-set-table .table-action-btn i img { display: none; }
html body .lv-set-table .table-action-btn i::before { content: ""; position: absolute; inset: 0; background-color: var(--lv-orange-500); -webkit-mask: url(../lavender/icons/edit-16.svg) center / contain no-repeat; mask: url(../lavender/icons/edit-16.svg) center / contain no-repeat; }
html body .lv-set-table form.deleteForm .table-action-btn i::before { background-color: var(--lv-danger-700); -webkit-mask-image: url(../lavender/icons/trash-16.svg); mask-image: url(../lavender/icons/trash-16.svg); }
html body .lv-set .btn-def-primary i.ft-plus, html body .lv-set .btn-def-primary i.ft-check { font-size: 0; width: 16px; height: 16px; display: inline-block; background: currentColor; }
html body .lv-set .btn-def-primary i.ft-plus::before, html body .lv-set .btn-def-primary i.ft-check::before { display: none; }
html body .lv-set .btn-def-primary i.ft-plus { -webkit-mask: url(../lavender/icons/add.svg) center / contain no-repeat; mask: url(../lavender/icons/add.svg) center / contain no-repeat; }
html body .lv-set .btn-def-primary i.ft-check { -webkit-mask: url(../lavender/icons/tick.svg) center / contain no-repeat; mask: url(../lavender/icons/tick.svg) center / contain no-repeat; }
html body .lv-set-table .table-action-btn { width: 40px; height: 40px; }
html body .lv-set-table .table-action-btn i { width: 22px; height: 22px; }
@media (max-width: 767.98px) {
    html body .lv-set .nav-tabs.lv-set-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; gap: 4px; }
    html body .lv-set .lv-set-tabs .nav-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
    html body .lv-set .lv-set-tabs .nav-link { width: 100%; justify-content: center; padding: 0 8px !important; white-space: nowrap; }
}

/* ---- New production order wizard (.lv-wz) ---- */
html body .lv-wz.mes-wizard { max-width: 720px; margin: 8px auto 0; }
html body .lv-wz .lv-wz-card { padding: 32px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-xl); }
html body .lv-wz .mes-top { margin: 0 0 12px; align-items: flex-start; }
html body .lv-wz .mes-top .mes-h1 { margin: 0; font-size: var(--lv-font-size-24); line-height: 32px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-wz .mes-top .mes-muted { font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
html body .lv-wz .mes-icon-btn { order: 2; width: 40px; height: 40px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary) !important; }
html body .lv-wz .mes-icon-btn:hover { background: var(--lv-neutral-50); }
.lv-wz-bar { display: flex; gap: 6px; margin-bottom: 24px; direction: rtl; }
.lv-wz-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--lv-neutral-100); }
.lv-wz-bar i.is-on { background: var(--lv-brand-600); }
html body .lv-wz .mes-h2 { margin: 0 0 16px; font-size: var(--lv-font-size-20); line-height: 28px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-wz select.form-control, html body .lv-wz input.mes-search { height: 48px; min-height: 0; margin-bottom: 16px !important; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background-color: var(--lv-white); box-shadow: none; font-size: var(--lv-font-size-16); color: var(--lv-fg-primary); }
html body .lv-wz input.mes-search { height: 40px; }
html body .lv-wz .form-control:focus { border-color: var(--lv-brand-600); box-shadow: 0 0 0 3px var(--lv-brand-100); }
html body .lv-wz .mes-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body .lv-wz .mes-tiles.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html body .lv-wz .mes-tiles:not(.is-wide) .mes-tile { padding: 12px; gap: 10px; min-height: 72px; }
html body .lv-wz .mes-tiles:not(.is-wide) .mes-thumb { width: 40px; height: 40px; }
html body .lv-wz .mes-tiles:not(.is-wide) span.mes-thumb i { width: 20px; height: 20px; }
html body .lv-wz .mes-tiles:not(.is-wide) .mes-tile-text b { font-size: var(--lv-font-size-14); line-height: 22px; }
html body .lv-wz .mes-tiles:not(.is-wide) .mes-tile-text small { font-size: 11px; line-height: 16px; }
html body .lv-wz .mes-tile { min-height: 82px; padding: 16px; gap: 12px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); background: var(--lv-white); }
html body .lv-wz .mes-tile:hover { border-color: var(--lv-brand-600); }
html body .lv-wz .mes-tile:has(input:checked) { border-color: var(--lv-brand-600); background: var(--lv-brand-50); }
html body .lv-wz .mes-tile-text b { font-size: var(--lv-font-size-16); font-weight: 600; line-height: 24px; color: var(--lv-fg-primary); }
html body .lv-wz .mes-tile-text small { font-size: var(--lv-font-size-12); line-height: 18px; color: var(--lv-fg-tertiary); }
html body .lv-wz .mes-thumb { width: 48px; height: 48px; border-radius: var(--lv-radius-md); background: var(--lv-brand-100); color: var(--lv-brand-600); }
html body .lv-wz span.mes-thumb i { font-size: 0; width: 24px; height: 24px; display: inline-block; background: currentColor; -webkit-mask: url(../lavender/icons/box-time.svg) center / contain no-repeat; mask: url(../lavender/icons/box-time.svg) center / contain no-repeat; }
html body .lv-wz span.mes-thumb i::before { display: none; }
/* buttons */
html body .lv-wz .mes-btn-light { border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary) !important; font-size: var(--lv-font-size-16); font-weight: 500; box-shadow: none; }
html body .lv-wz .mes-btn-light:hover { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
html body .lv-wz a.mes-btn-block { min-height: 48px; height: 48px; margin-top: 16px !important; }
html body .lv-wz .mes-btn-hero { min-height: 48px; height: 48px; margin-top: 0; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-16); font-weight: 500; }
html body .lv-wz .mes-btn-hero i { font-size: 18px; }
html body .lv-wz .mes-btn-primary { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
html body .lv-wz .mes-btn-primary:hover { background: var(--lv-brand-700); }
html body .lv-wz .mes-btn-start { background: var(--lv-success-700); border-color: var(--lv-success-700); color: var(--lv-white) !important; }
html body .lv-wz .mes-btn-start:hover { background: var(--lv-success-600); }
/* step 2 */
html body .lv-wz .mes-stepper { gap: 12px; margin-bottom: 16px; }
html body .lv-wz .mes-stepper .mes-btn { width: 56px; height: 56px; border-radius: var(--lv-radius-md); }
html body .lv-wz .mes-stepper .mes-btn i { font-size: 20px; }
html body .lv-wz .mes-stepper input { height: 56px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); font-size: 32px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-wz .mes-stepper input:focus { border-color: var(--lv-brand-600); box-shadow: 0 0 0 3px var(--lv-brand-100); }
html body .lv-wz .mes-chips { gap: 12px; margin-bottom: 16px; }
html body .lv-wz .mes-chips .mes-btn { height: 40px; min-height: 0; font-size: var(--lv-font-size-14); }
html body .lv-wz .mes-chips .mes-btn.is-active { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
/* step 4 */
html body .lv-wz .mes-summary { margin-bottom: 16px; padding: 16px; border: 1px solid var(--lv-brand-200); border-radius: var(--lv-radius-md); background: var(--lv-brand-50); box-shadow: none; }
html body .lv-wz .mes-summary .mes-muted { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
html body .lv-wz .mes-summary-text { margin: 4px 0 0; font-size: var(--lv-font-size-18); line-height: 28px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-wz .mes-toggle { min-height: 0; margin-bottom: 16px; padding: 12px 16px; gap: 12px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); }
html body .lv-wz .mes-toggle:has(input:checked) { border-color: var(--lv-danger-200); background: var(--lv-danger-50); }
html body .lv-wz .mes-toggle b { font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-wz .mes-toggle small { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
html body .lv-wz .mes-toggle input { width: 20px; height: 20px; accent-color: var(--lv-danger-600); }
@media (max-width: 767.98px) {
    html body .lv-wz.mes-wizard { margin-top: 0; }
    html body .lv-wz .lv-wz-card { padding: 16px; border-radius: var(--lv-radius-lg); }
    html body .lv-wz .mes-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    html body .lv-wz .mes-tiles.is-wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
html body .lv-wz .mes-toggle input { -webkit-appearance: none; appearance: none; width: 36px; height: 20px; border-radius: 10px; background: var(--lv-neutral-500); position: relative; flex: none; transition: background .15s; order: 2; margin-right: auto; }
html body .lv-wz .mes-toggle input::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--lv-white); transition: transform .15s; }
html body .lv-wz .mes-toggle input:checked { background: var(--lv-danger-600); }
html body .lv-wz .mes-toggle input:checked::after { transform: translateX(-16px); }
html body .lv-wz [data-wz-other] { margin-top: 16px; }
html body .lv-wz [data-wz-other] input.form-control { height: 48px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); box-shadow: none; font-size: var(--lv-font-size-16); }
/* product step: wider card, four tiles per row */
html body .lv-wz.mes-wizard:has(.mes-step[data-step="1"]:not([hidden])) { max-width: 1040px; }
html body .lv-wz .mes-tiles:not(.is-wide) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { html body .lv-wz .mes-tiles:not(.is-wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { html body .lv-wz .mes-tiles:not(.is-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Alerts / waiting / calendar / live monitor (.lv-pg) ---- */
.lv-pg .lv-ops-head { margin-bottom: 24px; }
.lv-pg .lv-ops-top { margin-bottom: 0; }
.lv-pg .lv-ops-head .lv-pg-kpis { margin-top: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .lv-pg .lv-ops-head .lv-pg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-pg .lv-kpi-card .lv-kpi-value { padding-bottom: 8px; }
.lv-pg-body, .lv-pg-card { padding: 16px; background: var(--lv-white); border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); }
.lv-pg-title { margin: 0 0 8px; font-size: var(--lv-font-size-16); font-weight: 600; color: var(--lv-fg-primary); }
.lv-pg-nav { display: flex; gap: 8px; flex-wrap: wrap; }
html body .lv-pg .lv-pg-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary) !important; font-size: var(--lv-font-size-14); font-weight: 500; box-shadow: none; }
html body .lv-pg .lv-pg-btn:hover { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
html body .lv-pg .lv-pg-btn.is-primary { height: 36px; background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
html body .lv-pg .lv-pg-btn.is-primary:hover { background: var(--lv-brand-700); border-color: var(--lv-brand-700); }
html body .lv-pg .lv-pg-iconbtn { width: 36px; height: 36px; padding: 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-secondary); box-shadow: none; }
html body .lv-pg .lv-pg-iconbtn:hover { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
/* pill tabs */
html body .lv-pg .nav-tabs.lv-pg-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 16px !important; padding: 4px; border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-lg); background: var(--lv-white); }
html body .lv-pg .lv-pg-tabs .nav-item { margin: 0; }
html body .lv-pg .lv-pg-tabs .nav-link { display: inline-flex; align-items: center; height: 40px; padding: 0 16px !important; border: 0 !important; border-radius: var(--lv-radius-md) !important; background: transparent !important; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-secondary) !important; box-shadow: none !important; outline: 0; white-space: nowrap; }
html body .lv-pg .lv-pg-tabs .nav-link:hover { background: var(--lv-neutral-50) !important; }
html body .lv-pg .lv-pg-tabs .nav-link.active { background: var(--lv-brand-100) !important; color: var(--lv-brand-700) !important; }
/* rows */
.lv-pg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 8px; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
.lv-pg-row:first-of-type, .lv-pg-tabs + .lv-pg-row, .lv-pg-title + .lv-pg-row { border-top: 0; }
.lv-pg-row:hover { background: var(--lv-neutral-50); border-radius: var(--lv-radius-md); }
.lv-pg-row.is-compact { padding: 10px 8px; }
.lv-pg-row.is-read { color: var(--lv-fg-tertiary); }
.lv-pg-row small { font-size: var(--lv-font-size-12); color: var(--lv-fg-tertiary); }
.lv-pg-row a strong { color: var(--lv-fg-primary); font-weight: 600; }
.lv-pg-row a:hover strong { color: var(--lv-brand-600); }
.lv-pg-row-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1; }
.lv-pg-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lv-pg-empty { margin: 0; padding: 24px 0; text-align: center; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
.lv-pg-lvl { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font-size: 18px; background: var(--lv-info-50); color: var(--lv-info-600); }
.lv-pg-lvl.is-danger { background: var(--lv-danger-50); color: var(--lv-danger-600); }
.lv-pg-lvl.is-warning { background: var(--lv-orange-50); color: var(--lv-orange-500); }
.lv-pg-day { margin: 16px 0 4px; padding: 10px 12px; background: var(--lv-neutral-100); border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-pg-day small { font-weight: 400; color: var(--lv-fg-tertiary); }
.lv-pg-day:first-child { margin-top: 0; }
.lv-pg-steps { display: flex; gap: 4px; }
.lv-pg-step { width: 22px; height: 6px; border-radius: 3px; background: var(--lv-neutral-100); }
.lv-pg-step.is-done { background: var(--lv-success-600); }
.lv-pg-step.is-success { background: var(--lv-success-600); }
.lv-pg-step.is-warning { background: var(--lv-orange-500); }
.lv-pg-step.is-danger { background: var(--lv-danger-600); }
.lv-pg-step.is-info { background: var(--lv-info-600); }
.lv-pg .lv-chip { display: inline-block; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; line-height: 18px; }
.lv-pg .lv-chip.is-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-pg .lv-chip.is-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
.lv-pg .lv-chip.is-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-pg .lv-chip.is-neutral, .lv-pg .lv-chip.is-secondary { background: var(--lv-neutral-100); border-color: var(--lv-neutral-200); color: var(--lv-neutral-700); }
.lv-pg .lv-chip.is-info { background: var(--lv-info-50); border-color: var(--lv-info-200); color: var(--lv-info-700); }
.lv-pg-body .pagination { gap: 4px; }
@media (max-width: 767.98px) {
    .lv-pg .lv-ops-top { flex-direction: column; align-items: stretch; }
    .lv-pg-nav .lv-pg-btn { flex: 1; justify-content: center; }
    html body .lv-pg .nav-tabs.lv-pg-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .lv-pg-side { align-items: flex-start; }
}
/* supervisor dashboard extras */
.lv-dash-spark { height: 36px; margin-top: 8px; }
.lv-mgr .lv-kpi-card .lv-kpi-value small { font-size: var(--lv-font-size-14); font-weight: 400; color: var(--lv-fg-tertiary); }
.lv-dash-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv-dash-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991.98px) { .lv-dash-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.lv-dash-h { margin: 0 0 12px; font-size: var(--lv-font-size-14); font-weight: 600; color: var(--lv-fg-primary); }
.lv-dash-late { color: var(--lv-danger-700) !important; font-weight: 500; }
.lv-dash-wait { color: var(--lv-orange-700); }
.lv-dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lv-dash-table td a { color: var(--lv-brand-600); font-weight: 600; }
.lv-dash-table .chip, .lv-mgr .lv-chip { display: inline-block; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
.lv-mgr .lv-chip.is-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
.lv-mgr .lv-chip.is-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
.lv-mgr .lv-chip.is-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
.lv-mgr .lv-chip.is-neutral { background: var(--lv-neutral-100); border-color: var(--lv-neutral-200); color: var(--lv-neutral-700); }
.lv-mgr-tile.is-info + .lv-mgr-tile:not([class*="is-"]) { --t: var(--lv-fg-primary); --tb: var(--lv-neutral-50); --tbd: var(--lv-neutral-200); }
.lv-mgr-tile:not([class*="is-"]) { --t: var(--lv-fg-primary); --tb: var(--lv-neutral-50); --tbd: var(--lv-neutral-200); }
.lv-mgr .lv-mgr-tile b { font-size: 18px; }
@media (max-width: 767.98px) { .lv-dash-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-dash-spark { position: relative; width: 100%; align-self: stretch; }
.lv-dash-spark canvas { display: block; width: 100% !important; height: 100% !important; }
html body .lv-mgr table.lv-mgr-products thead, html body .lv-mgr table.lv-mgr-products thead tr, html body .lv-mgr table.lv-mgr-products thead th { background: var(--lv-neutral-100) !important; font-weight: 500 !important; color: var(--lv-fg-tertiary) !important; }
@media (max-width: 767.98px) {
    html body .lv-mgr table.lv-dash-table { min-width: 680px; }
    html body .lv-mgr table.lv-dash-table td, html body .lv-mgr table.lv-dash-table th { white-space: nowrap; }
    html body .lv-mgr .lv-ops-card-body.table-responsive { overflow-x: auto; }
}
@media (max-width: 767.98px) { html body .lv-pg .nav-tabs.lv-pg-tabs { overflow: visible; flex-wrap: wrap; } html body .lv-pg .lv-pg-tabs .nav-link { height: 36px; padding: 0 12px !important; } }

/* ---- Admin list + form pages (users / roles) (.lv-adm) ---- */
.lv-adm.content-wrapper { padding: 0; }
.lv-adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; padding: 0 0 16px; border-bottom: 1px solid var(--lv-neutral-200); }
.lv-adm-head .mes-h1 { margin: 0; font-size: var(--lv-font-size-24); line-height: 32px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-adm .lv-adm-add, html body .lv-adm .lv-adm-submit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--lv-radius-md); background: var(--lv-brand-600); color: var(--lv-white) !important; font-size: var(--lv-font-size-14); font-weight: 500; box-shadow: none; }
html body .lv-adm .lv-adm-add:hover, html body .lv-adm .lv-adm-submit:hover { background: var(--lv-brand-700); }
html body .lv-adm .lv-adm-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary) !important; font-size: var(--lv-font-size-14); font-weight: 500; }
html body .lv-adm .lv-adm-btn:hover { background: var(--lv-brand-600); border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
html body .lv-adm .lv-adm-add i, html body .lv-adm .lv-adm-submit i { font-size: 16px; }
.lv-adm-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
/* cards */
html body .lv-adm .card, html body .lv-adm .card-content { box-shadow: none; }
html body .lv-adm .card { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-xl); background: var(--lv-white); }
html body .lv-adm .card-body { padding: 24px; }
html body .lv-adm #row-selection .card-body, html body .lv-adm.lv-ops #row-selection .card-body { padding: 24px; }
/* list table */
html body .lv-adm table.dataTable, html body .lv-adm #user-listing { width: 100% !important; margin: 0 !important; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden; }
html body .lv-adm #user-listing thead, html body .lv-adm #user-listing thead tr, html body .lv-adm #user-listing thead th { background: var(--lv-neutral-100) !important; border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500 !important; color: var(--lv-fg-tertiary) !important; white-space: nowrap; }
html body .lv-adm #user-listing thead th { padding: 14px 16px; }
html body .lv-adm #user-listing tbody td { padding: 12px 16px; border: 0; border-top: 1px solid var(--lv-neutral-200); background: transparent !important; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
html body .lv-adm #user-listing tbody tr:first-child td { border-top: 0; }
html body .lv-adm #user-listing tbody tr:hover td { background: var(--lv-neutral-50) !important; }
html body .lv-adm #user-listing .table-action-btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent !important; border: 0; box-shadow: none; }
html body .lv-adm #user-listing .table-action-btn:hover { background: var(--lv-neutral-100) !important; border-radius: var(--lv-radius-sm); }
html body .lv-adm #user-listing .table-action-btn i { position: relative; display: block; width: 22px; height: 22px; }
html body .lv-adm #user-listing .table-action-btn i img { display: none; }
html body .lv-adm #user-listing .table-action-btn i::before { content: ""; position: absolute; inset: 0; background-color: var(--lv-orange-500); -webkit-mask: url(../lavender/icons/edit-16.svg) center / contain no-repeat; mask: url(../lavender/icons/edit-16.svg) center / contain no-repeat; }
html body .lv-adm #user-listing form.deleteForm .table-action-btn i::before { background-color: var(--lv-danger-700); -webkit-mask-image: url(../lavender/icons/trash-16.svg); mask-image: url(../lavender/icons/trash-16.svg); }
html body .lv-adm #user-listing form.deleteForm { margin: 0; }
html body .lv-adm #user-listing td > div[style*="flex"] { gap: 4px; align-items: center; }
html body .lv-adm .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
/* DataTables tools: search left like Figma */
html body .lv-adm .dataTables_wrapper > .row:first-child { padding-bottom: 16px; }
html body .lv-adm .dataTables_filter input { width: 260px; height: 40px; }
/* forms */
html body .lv-adm .form-group { margin-bottom: 16px; }
html body .lv-adm label { margin-bottom: 6px; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-primary) !important; }
html body .lv-adm .form-control { height: 48px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background-color: var(--lv-white); box-shadow: none; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
html body .lv-adm textarea.form-control { height: auto; min-height: 96px; padding: 12px 16px; }
html body .lv-adm .form-control:focus { border-color: var(--lv-brand-600); box-shadow: 0 0 0 3px var(--lv-brand-100); }
html body .lv-adm .form-control::placeholder { color: var(--lv-fg-tertiary); opacity: 1; }
/* role permission accordions */
html body .lv-adm .permission-container { margin-bottom: 8px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-neutral-50); overflow: hidden; }
html body .lv-adm .permission-container > h6.card-title { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 16px; background: transparent !important; border: 0; color: var(--lv-fg-primary) !important; font-size: var(--lv-font-size-14); font-weight: 600; cursor: pointer; }
html body .lv-adm .permission-container > h6.card-title:hover { background: var(--lv-neutral-100) !important; }
html body .lv-adm .permission-container .formcheck-item { padding: 8px 16px 12px; background: var(--lv-white); border-top: 1px solid var(--lv-neutral-200); }
html body .lv-adm .permission-container .form-check { margin: 0 0 8px; padding: 0; }
html body .lv-adm .permission-container .form-check-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
html body .lv-adm .permission-container input[type="checkbox"] { accent-color: var(--lv-brand-600); width: 18px; height: 18px; }
@media (max-width: 767.98px) {
    .lv-adm-head { flex-direction: row; }
    html body .lv-adm .card-body { padding: 16px; }
    html body .lv-adm .dataTables_filter input { width: 100%; }
    html body .lv-adm #user-listing { display: table; min-width: 640px; }
    html body .lv-adm .table-responsive { overflow-x: auto; }
    html body .lv-adm #user-listing tr { display: table-row; background: transparent; border: 0; box-shadow: none; }
    html body .lv-adm #user-listing th, html body .lv-adm #user-listing td { display: table-cell; width: auto !important; white-space: nowrap; }
    html body .lv-adm #user-listing td[data-label]::before { content: none; }
    html body .lv-adm #user-listing thead { display: table-header-group; }
    html body .lv-adm #user-listing tbody { display: table-row-group; }
}
html body .lv-adm .card-body.card-body-addUser { padding: 24px; border: 0 !important; background: transparent !important; box-shadow: none; border-radius: 0; }
html body .lv-adm .card-body-addUser form, html body .lv-adm form.forms-sample { background: transparent !important; border: 0; padding: 0; box-shadow: none; }
html body .lv-adm > .grid-margin { padding: 0; }
/* role permission accordion fixes */
html body .lv-adm .permission-container { box-shadow: none; border-radius: var(--lv-radius-md); margin-bottom: 8px; }
html body .lv-adm .permission-container > h6.card-title { position: relative; gap: 8px; }
html body .lv-adm .permission-container .ft-chevron-down { position: static; flex: none; margin: 0; font-size: 16px; font-weight: 400; line-height: 1; color: var(--lv-fg-secondary) !important; transition: transform .15s; }
html body .lv-adm .permission-container > h6.card-title[aria-expanded="true"] .ft-chevron-down { transform: rotate(180deg); }
html body .lv-adm .permission-container > h6.card-title[aria-expanded="true"] { background: var(--lv-neutral-100) !important; }
html body .lv-adm .permission-container .formcheck-item { padding: 12px 16px 8px; overflow: hidden; }
html body .lv-adm .permission-container .form-check { display: block; position: static; padding: 0; margin: 0 0 4px; }
html body .lv-adm .permission-container .form-check-label { position: static; display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; cursor: pointer; }
html body .lv-adm .permission-container .form-check-input, html body .lv-adm .permission-container input[type="checkbox"] { position: static !important; margin: 0 !important; flex: none; width: 18px; height: 18px; opacity: 1; accent-color: var(--lv-brand-600); }
html body .lv-adm .permission-container .input-helper { display: none; }
html body .lv-adm { overflow-anchor: none; }

/* ---- Formula form (.lv-fm) ---- */
.lv-adm-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html body .lv-fm form.form > .card, html body .lv-fm form.edit-formula > .card { width: 100%; padding: 24px; box-shadow: none; }
html body .lv-fm form.edit-formula { margin: 0; display: block; }
html body .lv-fm form > .card > .row { display: flex; flex-direction: column; margin: 0; padding: 0 !important; }
html body .lv-fm form > .card > .row > [class*="col-"] { flex: 0 0 auto; width: 100%; max-width: 100%; padding: 0; }
html body .lv-fm form > .card .card-content .card-body { padding: 0; }
html body .lv-fm form > .card .card-content .card-body > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
html body .lv-fm form > .card .card-content .card-body > .row > .form-group { width: 100%; max-width: 100%; padding: 0; margin-bottom: 16px !important; }
html body .lv-fm .select2-container { width: 100% !important; }
html body .lv-fm .select2-container--default .select2-selection--single, html body .lv-fm .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); }
html body .lv-fm .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0 16px; color: var(--lv-fg-primary); }
html body .lv-fm .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
/* materials block */
html body .lv-fm .quntity-formula { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px !important; padding: 0 !important; background: transparent !important; border: 0; box-shadow: none; }
html body .lv-fm .lv-fm-title { margin: 0; font-size: var(--lv-font-size-16); font-weight: 600; color: var(--lv-fg-primary) !important; }
html body .lv-fm .quntity-formula .heading-elements { position: static; display: block; background: transparent; padding: 0; height: auto; }
html body .lv-fm .quntity-formula .heading-elements ul { display: flex; }
html body .lv-fm .quntity-formula .addOption { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 40px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md) !important; background: var(--lv-white) !important; color: var(--lv-fg-primary); font-size: var(--lv-font-size-14); font-weight: 500; cursor: pointer; box-shadow: none; }
html body .lv-fm .quntity-formula .addOption:hover { background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600); color: var(--lv-white); }
html body .lv-fm .quntity-formula .addOption i { color: currentColor !important; }
html body .lv-fm form > .card > .row > [class*="col-"] > .card:not(.card-content) { margin: 0; border: 0; box-shadow: none; background: transparent; }
html body .lv-fm form > .card > .row > [class*="col-"] > .card > .card-header.quntity-formula { margin-top: 8px; }
html body .lv-fm #formulaDetails > .card { margin: 0 0 8px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); background: var(--lv-neutral-50); box-shadow: none; }
html body .lv-fm #formulaDetails > .card .card-body { padding: 12px 16px; }
html body .lv-fm #formulaDetails .row { align-items: flex-end; margin: 0; }
html body .lv-fm #formulaDetails .form-group { margin-bottom: 0 !important; }
html body .lv-fm #formulaDetails .deleteDetail { width: 40px; height: 40px; padding: 0; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--lv-danger-200); border-radius: var(--lv-radius-md) !important; background: var(--lv-danger-50) !important; color: var(--lv-danger-700) !important; box-shadow: none; }
html body .lv-fm #formulaDetails .deleteDetail:hover { background: var(--lv-danger-600) !important; color: var(--lv-white) !important; }
@media (max-width: 767.98px) { html body .lv-fm form > .card .card-content .card-body > .row { grid-template-columns: minmax(0, 1fr); } html body .lv-fm form > .card { padding: 16px; } }

/* ---- Legacy admin pages (everything outside MES) get the same layer via .lv-legacy ---- */
.lv-legacy { padding-top: 8px; }
html body .lv-legacy .btn-def-primary, html body .lv-legacy a.btn-primary, html body .lv-legacy button.btn-primary, html body .lv-legacy .btn-info { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; color: var(--lv-white) !important; font-size: var(--lv-font-size-14); font-weight: 500; box-shadow: none; }
html body .lv-legacy .btn-def-primary:hover, html body .lv-legacy .btn-primary:hover, html body .lv-legacy .btn-info:hover { background: var(--lv-brand-700) !important; color: var(--lv-white) !important; }
html body .lv-legacy .btn-def-primary img { width: 16px; height: 16px; }
html body .lv-legacy .btn-secondary, html body .lv-legacy .btn-outline-secondary, html body .lv-legacy .btn-outline-primary, html body .lv-legacy .btn-light, html body .lv-legacy .btn-white { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white) !important; color: var(--lv-fg-primary) !important; font-size: var(--lv-font-size-14); font-weight: 500; box-shadow: none; }
html body .lv-legacy .btn-secondary:hover, html body .lv-legacy .btn-outline-secondary:hover, html body .lv-legacy .btn-outline-primary:hover, html body .lv-legacy .btn-light:hover, html body .lv-legacy .btn-white:hover { background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600); color: var(--lv-white) !important; }
html body .lv-legacy .btn-danger { height: 40px; border-radius: var(--lv-radius-md); background: var(--lv-danger-600) !important; border: 0; color: var(--lv-white) !important; box-shadow: none; }
html body .lv-legacy .card-header { padding: 0 0 16px; background: transparent; border: 0; }
html body .lv-legacy .card-title { margin: 0 0 16px; font-size: var(--lv-font-size-20); line-height: 28px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-legacy .card-header .card-title { margin: 0; }
html body .lv-legacy .card-header.bg-def-primary { padding: 12px 16px; background: var(--lv-neutral-100) !important; border-radius: var(--lv-radius-md); }
html body .lv-legacy .card-header.bg-def-primary .text-white { color: var(--lv-fg-primary) !important; }
html body .lv-legacy .table-responsive { border: 0; }
html body .lv-legacy table.table:not(.lv-set-table):not(.lv-mgr-products) { width: 100%; margin: 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden; }
html body .lv-legacy table.table thead, html body .lv-legacy table.table thead tr, html body .lv-legacy table.table thead th { background: var(--lv-neutral-100) !important; border: 0 !important; font-size: var(--lv-font-size-12); font-weight: 500 !important; color: var(--lv-fg-tertiary) !important; white-space: nowrap; }
html body .lv-legacy table.table thead th { padding: 14px 16px; }
html body .lv-legacy table.table tbody td { padding: 12px 16px; border: 0; border-top: 1px solid var(--lv-neutral-200); background: transparent !important; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); vertical-align: middle; }
html body .lv-legacy table.table tbody tr:first-child td { border-top: 0; }
html body .lv-legacy table.table tbody tr:hover td { background: var(--lv-neutral-50) !important; }
html body .lv-legacy table.table.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
html body .lv-legacy .table-action-btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent !important; border: 0; box-shadow: none; }
html body .lv-legacy .table-action-btn:hover { background: var(--lv-neutral-100) !important; border-radius: var(--lv-radius-sm); }
html body .lv-legacy .table-action-btn i { position: relative; display: block; width: 22px; height: 22px; }
html body .lv-legacy .table-action-btn i img { display: none; }
html body .lv-legacy .table-action-btn i::before { content: ""; position: absolute; inset: 0; background-color: var(--lv-orange-500); -webkit-mask: url(../lavender/icons/edit-16.svg) center / contain no-repeat; mask: url(../lavender/icons/edit-16.svg) center / contain no-repeat; }
html body .lv-legacy form.deleteForm .table-action-btn i::before, html body .lv-legacy .table-action-btn.deleteButton i::before { background-color: var(--lv-danger-700); -webkit-mask-image: url(../lavender/icons/trash-16.svg); mask-image: url(../lavender/icons/trash-16.svg); }
html body .lv-legacy form.deleteForm { margin: 0; }
html body .lv-legacy .badge { padding: 2px 8px; border: 1px solid transparent; border-radius: var(--lv-radius-full); font-size: var(--lv-font-size-12); font-weight: 500; }
html body .lv-legacy .badge-success { background: var(--lv-success-50); border-color: var(--lv-success-200); color: var(--lv-success-700); }
html body .lv-legacy .badge-danger { background: var(--lv-danger-50); border-color: var(--lv-danger-200); color: var(--lv-danger-700); }
html body .lv-legacy .badge-warning { background: var(--lv-orange-50); border-color: var(--lv-orange-200); color: var(--lv-orange-700); }
html body .lv-legacy .badge-info, html body .lv-legacy .badge-primary { background: var(--lv-info-50); border-color: var(--lv-info-200); color: var(--lv-info-700); }
html body .lv-legacy .badge-secondary, html body .lv-legacy .badge-light { background: var(--lv-neutral-100); border-color: var(--lv-neutral-200); color: var(--lv-neutral-700); }
html body .lv-legacy .modal-content { border: 0; border-radius: var(--lv-radius-xl); box-shadow: 0 24px 48px rgba(0, 0, 0, .18); }
html body .lv-legacy .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--lv-neutral-200); }
html body .lv-legacy .modal-title { font-size: var(--lv-font-size-18); font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-legacy .modal-footer { border-top: 1px solid var(--lv-neutral-200); }
html body .lv-legacy .select2-container .select2-selection--single, html body .lv-legacy .select2-container--default .select2-selection--multiple { min-height: 48px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); }
html body .lv-legacy .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0 16px; }
html body .lv-legacy .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
html body .lv-legacy .nav-tabs { border-bottom: 1px solid var(--lv-neutral-200); }
html body .lv-legacy .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; font-weight: 500; color: var(--lv-fg-secondary); }
html body .lv-legacy .nav-tabs .nav-link.active { border-bottom-color: var(--lv-brand-600); color: var(--lv-brand-700); background: transparent; }
html body .lv-legacy .alert { border-radius: var(--lv-radius-md); }
@media (max-width: 767.98px) {
    html body .lv-legacy table.table { display: table; min-width: 560px; }
    html body .lv-legacy .table-responsive { overflow-x: auto; }
    html body .lv-legacy table.table tr { display: table-row; background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
    html body .lv-legacy table.table th, html body .lv-legacy table.table td { display: table-cell; width: auto !important; white-space: nowrap; text-align: right; }
    html body .lv-legacy table.table td[data-label]::before { content: none; }
    html body .lv-legacy table.table thead { display: table-header-group; }
    html body .lv-legacy table.table tbody { display: table-row-group; }
}
.lv-legacy:has(.lv-adm-head:not(.lv-auto-head)) > .lv-auto-head { display: none; }
.lv-legacy > .lv-auto-head { margin-bottom: 24px; }
html body .lv-legacy .card-body > a.btn, html body .lv-legacy .card-body > button.btn, html body .lv-legacy .card-body > .btn-group { margin: 0 0 16px 8px; }
html body .lv-legacy .card-body > a.btn:first-child { margin-right: 0; }
html body .lv-legacy .btn-def-primary .plus, html body .lv-legacy .btn-def-primary i.plus { display: inline-flex; width: 16px; height: 16px; }
html body .lv-legacy .btn-def-primary .plus img { width: 16px; height: 16px; max-width: none; }
html body .lv-legacy .btn .plus img, html body .lv-legacy .btn i img { width: 16px; height: 16px; }
html body .lv-legacy .lv-dup-title { display: none; }
html body .lv-legacy .card-title-parent:has(.lv-dup-title) { display: none; }
.lv-legacy > .lv-auto-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lv-legacy > .lv-auto-head .lv-adm-head-actions { margin-right: 0; }
html body .lv-legacy .lv-adm-head-actions .btn { margin: 0 !important; }
.lv-legacy .card-body > br:first-child { display: none; }
@media (max-width: 767.98px) { .lv-legacy > .lv-auto-head { flex-direction: column; align-items: stretch; } .lv-legacy > .lv-auto-head .lv-adm-head-actions { width: 100%; } .lv-legacy > .lv-auto-head .lv-adm-head-actions .btn { flex: 1 1 auto; justify-content: center; } }
/* table action icons: only edit/trash are swapped; the stock/repository link keeps its own meaning */
html body .lv-legacy .table-action-btn i:has(img[src*="paste"])::before, html body .lv-adm #user-listing .table-action-btn i:has(img[src*="paste"])::before { background-color: var(--lv-brand-600); -webkit-mask: url(../lavender/icons/clipboard.svg) center / contain no-repeat; mask: url(../lavender/icons/clipboard.svg) center / contain no-repeat; }
html body .lv-legacy .table-action-btn i:not(:has(img[src*="edit.svg"], img[src*="trash.svg"], img[src*="paste"]))::before, html body .lv-adm #user-listing .table-action-btn i:not(:has(img[src*="edit.svg"], img[src*="trash.svg"], img[src*="paste"]))::before { display: none; }
html body .lv-legacy .table-action-btn i:not(:has(img[src*="edit.svg"], img[src*="trash.svg"], img[src*="paste"])) img, html body .lv-adm #user-listing .table-action-btn i:not(:has(img[src*="edit.svg"], img[src*="trash.svg"], img[src*="paste"])) img { display: block; width: 22px; height: 22px; }
/* actions column is centred */
html body .content-body table th.lv-col-actions, html body .content-body table td.lv-col-actions { text-align: center !important; }
html body .content-body table td.lv-col-actions > div[style*="flex"], html body .content-body table td.lv-col-actions > .d-flex { justify-content: center; }
html body .content-body table td.lv-col-actions form { display: inline-flex; }
html body .lv-legacy .card > .card-header { padding: 24px 24px 0; }
html body .lv-legacy .card > .card-header + .card-content .card-body { padding-top: 16px; }
html body .lv-legacy .card > .card-header .card-title { font-size: var(--lv-font-size-18); }
@media (max-width: 767.98px) { html body .lv-legacy .card > .card-header { padding: 16px 16px 0; } }
/* admin pages: cards have no outer border */
html body .lv-adm .card, html body .lv-legacy .card, html body .lv-adm .lv-adm-card, html body .lv-fm form > .card, html body .lv-adm .card-body.card-body-addUser { border: 0 !important; box-shadow: none !important; }
html body .lv-adm .card-body { padding: 0; }
html body .lv-adm .card > .card-header, html body .lv-legacy .card > .card-header { padding: 0 0 16px; }
html body .lv-adm .card > .card-header + .card-content .card-body, html body .lv-legacy .card > .card-header + .card-content .card-body { padding-top: 0; }
html body .lv-adm .card-content > .card-body { padding: 0; }
html body .lv-adm #row-selection .card-body, html body .lv-adm.lv-ops #row-selection .card-body, html body .lv-adm .card > .card-content > .card-body { padding: 0; }
html body .lv-adm .dataTables_wrapper.container-fluid { padding-left: 0; padding-right: 0; }
html body .lv-adm .card-body.card-body-addUser { padding: 0; }
html body .lv-adm .card, html body .lv-legacy .card { overflow: visible; }
html body .lv-adm .dataTables_filter label { padding-left: 1px; }
html body .content-wrapper.lv-adm { padding: 0 !important; margin: 0 !important; }
/* formula material rows: select | amount | delete on one line */
html body .lv-fm #formulaDetails > .card .card-body > .row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 12px; align-items: end; margin: 0; }
html body .lv-fm #formulaDetails > .card .card-body > .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; margin: 0; }
html body .lv-fm #formulaDetails > .card .card-body > .row > input[type="hidden"] { display: none; }
html body .lv-fm #formulaDetails .deleteDetail { margin: 0 !important; }
html body .lv-fm #formulaDetails .col-md-2 { align-self: end; display: flex; }
html body .lv-legacy .lv-fm .card-header.quntity-formula, html body .lv-fm .card-header.bg-def-primary.quntity-formula { background: transparent !important; padding: 0 !important; border-radius: 0; }
html body .lv-fm .quntity-formula .addOption { background: var(--lv-white) !important; }
html body .lv-fm form > .card { padding: 0 !important; }
html body .lv-fm .lv-adm-actions { margin-top: 24px; }
@media (max-width: 767.98px) { html body .lv-fm #formulaDetails > .card .card-body > .row { grid-template-columns: minmax(0, 1fr) 40px; } html body .lv-fm #formulaDetails > .card .card-body > .row > .form-group:nth-of-type(2) { grid-column: 1; } }
/* formula materials: one bordered block (title + add button + rows) */
html body .lv-fm .lv-fm-box { margin-top: 8px; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); background: var(--lv-white); overflow: hidden; }
html body .lv-fm .lv-fm-box > .card:not(#x) { margin: 0; border: 0 !important; background: transparent; }
html body .lv-fm .lv-fm-box .card-header.quntity-formula { margin: 0 !important; padding: 12px 16px !important; background: var(--lv-neutral-100) !important; border-bottom: 1px solid var(--lv-neutral-200); border-radius: 0; }
html body .lv-fm .lv-fm-box #formulaDetails { padding: 12px; }
html body .lv-fm .lv-fm-box #formulaDetails:empty { padding: 0; }
html body .lv-fm .lv-fm-box #formulaDetails:empty::after { content: "هنوز مادهای اضافه نشده است. با دکمه‌ی «افزودن ماده» شروع کنید."; display: block; padding: 20px 16px; text-align: center; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
html body .lv-fm .lv-fm-box #formulaDetails > .card { margin: 0 0 8px; background: var(--lv-white); }
html body .lv-fm .lv-fm-box #formulaDetails > .card:last-child { margin-bottom: 0; }
html body .lv-fm .lv-fm-box .quntity-formula .addOption { height: 36px; }

/* legacy forms: the old purple panels become plain white forms */
html body .lv-legacy .bg-def-primary:not(.btn):not(.badge):not(.lv-fm-box *), html body .lv-legacy form.bg-def-primary, html body .lv-legacy .card-inner, html body .lv-legacy .ingredient { background: transparent !important; color: var(--lv-fg-primary) !important; box-shadow: none; border: 0; }
html body .lv-legacy .bg-def-primary label, html body .lv-legacy .card-inner label, html body .lv-legacy .ingredient label, html body .lv-legacy form label { color: var(--lv-fg-primary) !important; font-size: var(--lv-font-size-14); font-weight: 500; margin-bottom: 6px; }
html body .lv-legacy .bg-def-primary .text-white, html body .lv-legacy .card-inner .text-white { color: var(--lv-fg-primary) !important; }
html body .lv-legacy form .form-control { height: 48px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background-color: var(--lv-white); box-shadow: none; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
html body .lv-legacy form textarea.form-control { height: auto; min-height: 96px; padding: 12px 16px; }
html body .lv-legacy form .form-control:focus { border-color: var(--lv-brand-600); box-shadow: 0 0 0 3px var(--lv-brand-100); }
html body .lv-legacy form .btn-white, html body .lv-legacy form button[type="submit"].btn:not(.btn-primary):not(.btn-def-primary):not(.btn-danger):not(.btn-info) { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border: 0; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; color: var(--lv-white) !important; font-size: var(--lv-font-size-14); font-weight: 500; box-shadow: none; }
html body .lv-legacy form .btn-white:hover { background: var(--lv-brand-700) !important; }
html body .lv-legacy form .btn-white img { filter: brightness(0) invert(1); width: 14px; height: 14px; }
html body .lv-legacy .content-wrapper { padding: 0; }
html body .lv-legacy .col-md-12.grid-margin { padding: 0; }
html body .lv-legacy .card-body.card-body-addUser { padding: 0; }

/* ---- Home dashboard (.lv-home) ---- */
.lv-home { padding-top: 8px; }
html body .lv-home #minimal-statistics .row { margin: 0 -8px 24px; }
html body .lv-home #minimal-statistics [class*="col-"] { padding: 0 8px; }
html body .lv-home #minimal-statistics .card { margin: 0; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); background: var(--lv-white); box-shadow: none; }
html body .lv-home #minimal-statistics .card-content { background: transparent !important; }
html body .lv-home #minimal-statistics .card-body { padding: 20px; }
html body .lv-home #minimal-statistics .media { align-items: flex-start !important; text-align: right; }
html body .lv-home #minimal-statistics .media-body { text-align: right !important; width: 100%; margin-top: 16px !important; display: flex; flex-direction: column-reverse; gap: 4px; }
html body .lv-home #minimal-statistics .media-body .text-white, html body .lv-home #minimal-statistics .media-body span { color: var(--lv-fg-tertiary) !important; font-size: var(--lv-font-size-14); font-weight: 400; }
html body .lv-home #minimal-statistics .media-body p { margin: 0; font-size: var(--lv-font-size-24); line-height: 32px; font-weight: 700; color: var(--lv-fg-primary) !important; }
html body .lv-home #minimal-statistics .media-body p * { color: inherit !important; }
html body .lv-home #minimal-statistics .align-self-top i { position: relative; display: inline-flex; width: 40px; height: 40px; border-radius: var(--lv-radius-md); background: var(--lv-brand-100); }
html body .lv-home #minimal-statistics .align-self-top i img { display: none; }
html body .lv-home #minimal-statistics .align-self-top i::before { content: ""; position: absolute; inset: 10px; background-color: var(--lv-brand-600); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(1) i { --ico: url(../../app-assets/images/icons/eye.svg); background: var(--lv-brand-100); }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(2) i { --ico: url(../../app-assets/images/icons/user.svg); background: var(--lv-orange-50); }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(2) i::before { background-color: var(--lv-orange-500); }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(3) i { --ico: url(../../app-assets/images/icons/shop.svg); background: var(--lv-success-50); }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(3) i::before { background-color: var(--lv-success-600); }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(4) i { --ico: url(../../app-assets/images/icons/wallet.svg); background: var(--lv-info-50); }
html body .lv-home #minimal-statistics [class*="col-"]:nth-child(4) i::before { background-color: var(--lv-info-600); }
html body .lv-home #ecommerce-stats .content-wrapper { padding: 0; margin: 0; }
html body .lv-home #ecommerce-stats .card, html body .lv-home #ecommerce-stats .home-card { border: 0; box-shadow: none; background: transparent; }
html body .lv-home #ecommerce-stats .card.p-2 { padding: 16px !important; border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); background: var(--lv-white); }
html body .lv-home #ecommerce-stats .home-card { padding: 0 !important; }
html body .lv-home #ecommerce-stats label, html body .lv-home #ecommerce-stats .form-group > span { margin-bottom: 6px; font-size: var(--lv-font-size-14); font-weight: 500; color: var(--lv-fg-primary) !important; }
html body .lv-home #ecommerce-stats .form-control, html body .lv-home #ecommerce-stats .border-gradient { height: 48px; border: 1px solid var(--lv-neutral-500) !important; border-radius: var(--lv-radius-md); background: var(--lv-white) !important; box-shadow: none; color: var(--lv-fg-primary); }
html body .lv-home #ecommerce-stats .chart-container, html body .lv-home #ecommerce-stats .chart-row .col-md-6 > div { border: 1px solid var(--lv-neutral-200); border-radius: var(--lv-radius-lg); background: var(--lv-white); box-shadow: none; padding: 16px; }
html body .lv-home #ecommerce-stats .nav-pills, html body .lv-home #ecommerce-stats .nav-vertical .nav { gap: 8px; }
html body .lv-home #ecommerce-stats .nav-link { height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); color: var(--lv-fg-primary); font-size: var(--lv-font-size-14); font-weight: 500; }
html body .lv-home #ecommerce-stats .nav-link.active, html body .lv-home #ecommerce-stats .nav-link:hover { background: var(--lv-brand-100); border-color: var(--lv-brand-600); color: var(--lv-brand-700); }
html body .lv-home .select2-container--default .select2-selection--multiple { min-height: 48px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); }
html body .lv-home .select2-container--default .select2-selection--multiple .select2-selection__choice { margin-top: 8px; border: 0; border-radius: var(--lv-radius-sm); background: var(--lv-brand-100); color: var(--lv-brand-700); }
@media (max-width: 767.98px) { html body .lv-home #minimal-statistics [class*="col-"] { margin-bottom: 12px; } }
html body .lv-home #ecommerce-stats .tab-content > .card, html body .lv-home #ecommerce-stats .home-card, html body .lv-home #ecommerce-stats .nav-dir > [class*="col-"] > .card:not(.p-2), html body .lv-home #ecommerce-stats .nav-dir .nav-vertical, html body .lv-home #ecommerce-stats .nav-dir .nav { border: 0 !important; box-shadow: none !important; background: transparent !important; }
html body .lv-home #ecommerce-stats .chart-row { margin: 16px 0 0; }
html body .lv-home #ecommerce-stats .chart-row > .col-md-6 > div, html body .lv-home #ecommerce-stats .chart-container { padding: 16px; }
html body .lv-home #ecommerce-stats .chart-row .chart-container { border: 1px solid var(--lv-neutral-200) !important; }
html body .lv-home #ecommerce-stats .chart-row .chart-container .chart-container, html body .lv-home #ecommerce-stats .chart-row .col-md-6 > .chart-container > div { border: 0 !important; padding: 0; }
html body .lv-home #ecommerce-stats .nav-dir > .col-xl-2 .nav { padding: 0; }
@media (max-width: 767.98px) { html body .lv-home #minimal-statistics [class*="col-"] { flex: 0 0 50%; max-width: 50%; } html body .lv-home #minimal-statistics .card-body { padding: 14px; } html body .lv-home #minimal-statistics .media-body p { font-size: var(--lv-font-size-18); } }

/* ---- Login (Figma «Screen/Login») ---- */
html body .lv-login { background: var(--lv-neutral-50); }
html body .lv-login__panel { background: var(--lv-neutral-50); padding: 32px 24px; }
html body .lv-login__brand { flex: 0 0 39%; background: var(--lv-brand-600); color: var(--lv-white); align-items: flex-start; justify-content: center; padding: 64px; }
html body .lv-login__brand .lv-login__logo { width: 72px; height: 72px; margin-bottom: 24px; border-radius: 50%; object-fit: cover; }
html body .lv-login__brand .lv-wordmark { font-size: 40px; line-height: 52px; font-weight: 700; color: var(--lv-white); }
html body .lv-login__brand p { margin: 12px 0 0; font-size: var(--lv-font-size-18); line-height: 28px; font-weight: 400; color: rgba(255, 255, 255, .88); max-width: 24em; }
html body .lv-login__sprig { display: none; }
html body .lv-login__card { width: 100%; max-width: 400px; padding: 32px; background: var(--lv-white); border-radius: var(--lv-radius-xl); box-shadow: 0 12px 32px rgba(30, 29, 32, .1); }
html body .lv-login__card .lv-login__logo-sm { display: block; width: 44px; height: 44px; margin: 0 0 16px; border-radius: 50%; object-fit: cover; }
html body .lv-login__form h1 { font-size: var(--lv-font-size-24); line-height: 32px; font-weight: 600; margin: 0 0 4px; color: var(--lv-fg-primary); }
html body .lv-login__form .lv-lead { margin: 0 0 24px; font-size: var(--lv-font-size-14); color: var(--lv-fg-tertiary); }
html body .lv-login__form .form-group { margin-bottom: 16px; }
html body .lv-login__form label { margin-bottom: 6px; font-size: var(--lv-font-size-14) !important; font-weight: 500; color: var(--lv-fg-primary) !important; }
html body .lv-login__form .form-control, html body .card-login .form-control { height: 48px; padding: 0 16px; border: 1px solid var(--lv-neutral-500); border-radius: var(--lv-radius-md); background: var(--lv-white); box-shadow: none; font-size: var(--lv-font-size-14); color: var(--lv-fg-primary); }
html body .lv-login__form .form-control:focus { border-color: var(--lv-brand-600); box-shadow: 0 0 0 3px var(--lv-brand-100); }
html body .lv-login__form .btn, html body .card-login button { width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: var(--lv-radius-md); background: var(--lv-brand-600) !important; color: var(--lv-white) !important; font-size: var(--lv-font-size-16); font-weight: 500; box-shadow: none; }
html body .lv-login__form .btn:hover { background: var(--lv-brand-700) !important; }
@media (max-width: 991.98px) {
    html body .lv-login { flex-direction: column; }
    html body .lv-login__brand { flex: 0 0 auto; padding: 24px; align-items: center; text-align: center; min-height: 0; }
    html body .lv-login__brand .lv-login__logo { display: none; }
    html body .lv-login__brand .lv-wordmark { font-size: 28px; line-height: 36px; }
    html body .lv-login__card { padding: 24px; }
}
/* home stat cards use the shared KPI card */
html body .lv-home .lv-home-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; padding-top: 4px; }
html body .lv-home .lv-home-kpis .lv-kpi-card { margin: 0; }
html body .lv-home .lv-kpi-value { padding-bottom: 8px; }
@media (max-width: 991.98px) { html body .lv-home .lv-home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sidebar chevrons: vertically centred on their own row (theme pinned them at top:14px) ---------- */
html body .main-menu .navigation li.has-sub > a { position: relative; }
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation li.has-sub > a:not(.mm-next):after,
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation li.has-sub .has-sub > a:not(.mm-next):after {
    top: 50%;
    line-height: 1;
    transform: translateY(-50%);
}
html body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation li.open > a:not(.mm-next):after {
    transform: translateY(-50%) rotate(-90deg);
}

/* ============================================================
   Login — phone layout (≤767px) = the operator login: gradient + art, animated logo, typed brand name, white sheet.
   Desktop/tablet keep the split layout above. Timeline (ms): 300 art · 600 disc · 950/1100/1250 leaves · 1450 name · 2100 tagline · 2940 sheet.
   ============================================================ */
.lv-m-art, .lv-m-brand, .lv-m { display: none; }
@media (max-width: 767.98px) {
    html body .lv-login {
        --t: 3590ms; --ease: cubic-bezier(.22, .8, .24, 1);
        position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; width: 100%; max-width: 430px; margin: 0 auto;
        background: linear-gradient(180deg, #9d76d9 0%, #7a54b2 30%, #3e2461 55%, #26163b 100%);
    }
    html body.blank-page, html body.blank-page .app-content, html body.blank-page .content-wrapper { background: #1a0f2b !important; padding: 0 !important; margin-top: 0 !important; }
    html body .content-wrapper-before, html body .content-header { display: none; }
    .lv-m-art { display: block; position: absolute; left: calc(50% - 195px + var(--x)); top: calc(100% - 844px + var(--y)); pointer-events: none; z-index: 1; animation: lvArt var(--t) var(--ease) both; }
    .lv-m-art img { display: block; max-width: none; width: var(--w); height: var(--h); transform-origin: 0 0; transform: var(--m); }
    .lv-m-art--branch { --x: 29.59px; --y: 76px;   --w: 609.95px; --h: 926.78px; --m: matrix(.9772, .2121, -.2121, .9772, 0, 0); --from: 150px; }
    .lv-m-art--lav1   { --x: -94.48px; --y: 392.57px; --w: 349.62px; --h: 349.62px; --m: matrix(.9928, -.1198, .1198, .9928, 0, 0); --from: 190px; }
    .lv-m-art--lav2   { --x: 464.96px; --y: 463.07px; --w: 301.06px; --h: 301.06px; --m: matrix(-.9928, -.1198, -.1198, .9928, 0, 0); --from: 190px; }

    html body .lv-login__brand { flex: 0 0 auto; position: relative; z-index: 2; background: transparent; padding: 73px 0 0; align-items: center; justify-content: flex-start; min-height: 0; }
    html body .lv-login__brand > .lv-login__logo, html body .lv-login__brand > .lv-wordmark, html body .lv-login__brand > p, html body .lv-login__brand > .lv-login__sprig, html body .lv-login__logo-sm { display: none; }
    .lv-m-brand { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
    .lv-m-logo { display: block; width: 80px; height: 80px; transform-origin: 50% 0; animation: lvLogo var(--t) var(--ease) both; }
    .lv-leaf { transform-box: view-box; }
    .lv-leaf--1 { transform-origin: 38px 70px; animation: lvLeaf 200ms var(--ease) 950ms both; }
    .lv-leaf--2 { transform-origin: 46px 66px; animation: lvLeaf 200ms var(--ease) 1100ms both; }
    .lv-leaf--3 { transform-origin: 40px 46px; animation: lvLeaf 200ms var(--ease) 1250ms both; }
    .lv-m-name { margin: 16px 0 0; font-size: 20px; line-height: 26px; font-weight: 700; color: #fff; animation: lvDrop var(--t) var(--ease) both; }
    .lv-m-sub  { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: #fff; animation: lvDrop var(--t) var(--ease) both; }
    .lv-m-type { display: inline-block; }
    .lv-m-name .lv-m-type { animation: lvType 650ms steps(17, end) 1450ms both; }
    .lv-m-sub .lv-m-type  { animation: lvType 840ms steps(36, end) 2100ms both; }

    html body .lv-login__panel { flex: 1 1 auto; position: relative; z-index: 3; margin-top: 31px; padding: 32px 24px 28px; background: #fff; border-radius: 40px 40px 0 0; animation: lvSheet var(--t) var(--ease) both; }
    html body .lv-login__card { max-width: 420px; padding: 0; margin: 0 auto; background: transparent; box-shadow: none; border-radius: 0; }
    html body .lv-login__form h1 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0 0 6px; }
    .lv-d { display: none; } .lv-m { display: inline; }
    html body .lv-login__card .lv-login__logo-sm { display: none; }
    html body .lv-login__form .form-control { border-color: #dad9de; border-radius: 16px; }
    html body .lv-login__form .btn, html body .card-login button { border-radius: 16px; background: linear-gradient(90deg, #7a54b2, #634193) !important; box-shadow: 0 10px 22px -8px rgba(99, 65, 147, .55); }
}
@keyframes lvArt { 0%, 8.36% { opacity: 0; transform: translateY(var(--from)); } 22.28%, 81.89% { opacity: 1; transform: translateY(150px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes lvLogo { 0%, 16.71% { opacity: 0; transform: scale(.5); } 26.46%, 81.89% { opacity: 1; transform: scale(.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lvLeaf { from { opacity: 0; transform: scale(.35) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes lvDrop { 0%, 81.89% { transform: translateY(-16px); } 100% { transform: translateY(0); } }
@keyframes lvType { from { clip-path: inset(-12px 0 -12px 100%); } to { clip-path: inset(-12px 0 -12px 0); } }
@keyframes lvSheet { 0%, 81.88% { transform: translateY(100vh); visibility: hidden; } 81.89% { transform: translateY(100vh); visibility: visible; } 100% { transform: translateY(0); visibility: visible; } }
@media (max-width: 767.98px) {
    html body .lv-login.is-skipped, html body .lv-login.is-skipped * { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { html body .lv-login, html body .lv-login * { animation: none !important; } }


/* ============================================================
   Phone/tablet tab bar — same floating glass pill as the operator app (restyles the existing .lv-tabbar)
   ============================================================ */
@media (max-width: 991.98px) {
    html body .lv-tabbar {
        inset: auto 12px calc(10px + env(safe-area-inset-bottom)) 12px; max-width: 496px; margin: 0 auto;
        padding: 5px; gap: 4px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(243, 242, 246, .86));
        -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
        box-shadow: 0 6px 16px -8px rgba(30, 29, 32, .16), 0 1px 3px rgba(30, 29, 32, .05), inset 0 1px 0 #fff;
    }
    html body .lv-tabbar a {
        position: relative; min-height: 44px; padding: 4px 6px; gap: 1px; border: 1px solid transparent; border-radius: 999px;
        color: #8a878f; font-size: 10px; line-height: 12px; font-weight: 500;
        transition: flex .25s ease, color .2s ease, box-shadow .25s ease;
    }
    html body .lv-tabbar a:active { opacity: .55; }
    html body .lv-tabbar a span { position: relative; z-index: 1; }
    html body .lv-tabbar a i { width: 22px; height: 22px; border-radius: 0; background: none !important; font-size: 22px; line-height: 22px; position: relative; z-index: 1; }
    html body .lv-tabbar a i[class*="icon-"], html body .lv-tabbar a i.lv-ico-menu { font-size: 0; }
    html body .lv-tabbar a i[class*="icon-"]:before, html body .lv-tabbar a i.lv-ico-menu:before {
        content: "" !important; display: block; width: 22px; height: 22px; background-color: currentColor;
        -webkit-mask: var(--lv-ico) center / 22px 22px no-repeat; mask: var(--lv-ico) center / 22px 22px no-repeat;
    }
    html body .lv-tabbar a > i.icon-home-1 { --lv-ico: url(../lavender/icons/home.svg); }
    html body .lv-tabbar a > i.icon-kargah { --lv-ico: url(../lavender/icons/cake.svg); }
    html body .lv-tabbar a > i.icon-users { --lv-ico: url(../lavender/icons/users.svg); }
    html body .lv-tabbar a > i.icon-furmola { --lv-ico: url(../lavender/icons/receipt.svg); }
    html body .lv-tabbar a > i.icon-ingrident-3 { --lv-ico: url(../lavender/icons/bag.svg); }
    html body .lv-tabbar a > i.icon-product { --lv-ico: url(../lavender/icons/category.svg); }
    html body .lv-tabbar a > i.icon-shop { --lv-ico: url(../lavender/icons/shop.svg); }
    html body .lv-tabbar a > i.icon-store { --lv-ico: url(../lavender/icons/buildings.svg); }
    html body .lv-tabbar a > i.icon-inventry { --lv-ico: url(../lavender/icons/clipboard.svg); }
    html body .lv-tabbar a > i.icon-activity { --lv-ico: url(../lavender/icons/activity.svg); }
    html body .lv-tabbar a > i.icon-grid { --lv-ico: url(../lavender/icons/setting.svg); }
    html body .lv-tabbar a > i.icon-inventry { --lv-ico: url(../lavender/icons/clipboard.svg); }
    html body .lv-tabbar a > i.lv-ico-menu { --lv-ico: url(../lavender/icons/menu.svg); }
    html body .lv-tabbar a[href$="/panel/factory"] > i.icon-kargah { --lv-ico: url(../lavender/icons/building.svg); }
    html body .lv-tabbar a.active {
        flex: 1.35; color: #fff; font-weight: 600;
        background: linear-gradient(180deg, rgba(176, 150, 235, .78) 0%, rgba(122, 84, 178, .88) 100%);
        -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
        box-shadow: 0 10px 26px -6px rgba(122, 84, 178, .55), 0 0 22px -4px rgba(150, 120, 230, .45);
    }
    html body .lv-tabbar a.active i { background: none !important; }
    html body .lv-tabbar a.active::before {
        content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .22) 48%, rgba(213, 196, 255, .75) 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    }
    html body .lv-tabbar a.active::after {
        content: ""; position: absolute; left: 12%; right: 12%; top: 2px; height: 40%; border-radius: 999px; pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
    }
    html body .content-wrapper { padding-bottom: 88px; }
}

/* phones: the tinted band ends right under the label row and the number sits in the white part with clear space from the band
   (card = 12px padding + 32px label row; band 52px; number starts at 64px) */
@media (max-width: 767.98px) {
    html body .lv-kpi-card {
        min-height: 0; padding: 12px;
        background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 21%, #fff) 0, color-mix(in srgb, var(--accent) 13%, #fff) 52px, #fff 52px, #fff 100%);
    }
    html body .lv-kpi-value { padding: 20px 0 0; font-size: clamp(18px, 5.4vw, 24px); line-height: 32px; }
    html body .lv-kpi-sub { padding-top: 2px; }
}

/* top bar logo — phones and tablets only (desktop shows the logo in the sidebar) */
.lv-nav-logo { display: none; }
@media (max-width: 991.98px) {
    html body .header-navbar .lv-nav-logo { display: flex; align-items: center; height: 75px; }
    html body .header-navbar .lv-nav-logo a { display: inline-flex; padding: 0 !important; margin: 0 !important; line-height: 0; }
    html body .header-navbar .lv-nav-logo svg { display: block; width: 36px; height: 36px; }
}

/* ============================================================
   Legacy create/edit forms: ONE full-width bordered card (was a narrow centred column with the button floating above it),
   fields in two columns, the action row at the bottom behind a hairline.
   ============================================================ */
html body .lv-legacy form > .card { width: 100%; max-width: 100%; padding: 32px; margin: 0 0 24px; border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-xl); background: var(--lv-white); box-shadow: none; }
html body .lv-legacy form > .card > .row { margin: 0; padding: 0 !important; justify-content: flex-start; }
html body .lv-legacy form > .card > .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0; display: flex; flex-direction: column; }
html body .lv-legacy form > .card > .row > [class*="col-"] > .card { order: 1; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
html body .lv-legacy form > .card > .row > [class*="col-"] > .file-repeater { order: 99; margin: 8px 0 0; padding: 24px 0 0 !important; border-top: 1px solid var(--lv-neutral-200); justify-content: flex-end; }
html body .lv-legacy form > .card .card-body { padding: 0; }
html body .lv-legacy form > .card .card-body > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
html body .lv-legacy form > .card .card-body > .row > [class*="col-"] { width: 100%; max-width: 100%; padding: 0; }
html body .lv-legacy form > .card .select2-container { width: 100% !important; }
@media (max-width: 767.98px) {
    html body .lv-legacy form > .card { padding: 16px; border-radius: var(--lv-radius-lg); }
    html body .lv-legacy form > .card .card-body > .row { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Home request lists (انبار / فروشگاه / کارگاه): the accordion becomes always-open request cards.
   Markup stays: .card > .card-header.repoRequestCollaps + .card-content.collapse > .card-body.repoRequestDetail > .row…
   ============================================================ */
html body .lv-home .col-xl-8.m-auto { flex: 0 0 100%; max-width: 100%; margin: 0 !important; }
html body .lv-home .card-header h2.text-center { text-align: start !important; padding: 0 !important; margin: 0 0 16px; font-size: var(--lv-font-size-20); line-height: 28px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-home .card:has(> .repoRequestCollaps) {
    margin: 0 0 16px; overflow: hidden; background: var(--lv-white);
    border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-xl); box-shadow: none !important;
}
html body .lv-home .repoRequestCollaps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; background: var(--lv-brand-50); border: 0; border-bottom: 1px solid var(--lv-neutral-200); }
html body .lv-home .repoRequestCollaps .card-title { margin: 0; font-size: var(--lv-font-size-16); line-height: 24px; font-weight: 600; color: var(--lv-fg-primary); }
html body .lv-home .repoRequestCollaps .heading-elements, html body .lv-home .repoRequestCollaps .heading-elements-toggle { display: none !important; }
html body .lv-home .repoRequestCollaps + .card-content.collapse { display: block !important; height: auto !important; visibility: visible; }
html body .lv-home .repoRequestDetail { padding: 8px 20px 20px; }
html body .lv-home .repoRequestDetail > .row {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 12px; margin: 0; padding: 12px 8px;
    border-bottom: 1px solid var(--lv-neutral-100); font-size: var(--lv-font-size-14); color: var(--lv-fg-primary);
}
html body .lv-home .repoRequestDetail > .row > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
html body .lv-home .repoRequestDetail > .row:first-child { padding: 10px 8px; border: 0; border-radius: var(--lv-radius-md); background: var(--lv-neutral-100); font-size: var(--lv-font-size-12); font-weight: 500; color: var(--lv-fg-secondary); }
html body .lv-home .repoRequestDetail > .row:has(form) { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 0; border: 0; }
html body .lv-home .repoRequestDetail > .row:has(form) > [class*="col"] { margin: 0 !important; }
html body .lv-home .repoRequestDetail form { margin: 0; }
html body .lv-home .repoRequestDetail .btn { min-height: 40px; padding: 0 16px; border-radius: var(--lv-radius-md); font-size: var(--lv-font-size-14); font-weight: 500; }
html body .lv-home .repoRequestDetail .btn-outline-info, html body .lv-home .repoRequestDetail .btn-outline-warning, html body .lv-home .repoRequestDetail .btn-outline-success { background: var(--lv-brand-600); border: 1px solid var(--lv-brand-600); color: var(--lv-white); }
html body .lv-home .repoRequestDetail .btn-outline-info:hover, html body .lv-home .repoRequestDetail .btn-outline-warning:hover { background: var(--lv-brand-700); color: var(--lv-white); }
html body .lv-home .repoRequestDetail .btn-outline-danger, html body .lv-home .repoRequestDetail .changeStatusSubmit { background: var(--lv-white); border: 1px solid var(--lv-danger-600); color: var(--lv-danger-700); }
html body .lv-home .repoRequestDetail textarea, html body .lv-home .repoRequestDetail input[type="text"] { border-radius: var(--lv-radius-md); }
/* request cards: plain rows (the old purple boxes go), outer wrapper card loses its own border */
html body .lv-home .repoRequestDetail > .row { border: 0 !important; border-bottom: 1px solid var(--lv-neutral-100) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html body .lv-home .repoRequestDetail > .row:first-child { border-bottom: 0 !important; border-radius: var(--lv-radius-md) !important; background: var(--lv-neutral-100) !important; }
html body .lv-home .repoRequestDetail > .row:has(form) { border-bottom: 0 !important; background: transparent !important; }
html body .lv-home .repoRequestDetail > .row:last-child { border-bottom: 0 !important; }
html body .lv-home .card:has(> .card-content > .card-header h2.text-center) { border: 0 !important; background: transparent !important; box-shadow: none !important; }
html body .lv-home .card:has(> .card-content > .card-header h2.text-center) > .card-content > .row > .col-xl-8 > .card-body { padding: 0; }
html body .lv-home .card:has(> .repoRequestCollaps) { margin-bottom: 16px !important; }

/* request items = labelled mini cards (no table header row) */
html body .lv-home .repoRequestDetail > .row:first-child { display: none !important; }
html body .lv-home .repoRequestDetail { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }
html body .lv-home .repoRequestDetail:empty { display: none; }
html body .lv-home .repoRequestDetail > .lv-item-card {
    padding: 12px 16px; gap: 16px; align-items: start;
    border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-md) !important; background: var(--lv-white) !important;
}
html body .lv-home .repoRequestDetail > .lv-item-card > [data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--lv-font-size-12); line-height: 18px; font-weight: 500; color: var(--lv-fg-tertiary);
}
html body .lv-home .repoRequestDetail > .lv-item-card > [data-label] { font-size: var(--lv-font-size-14); font-weight: 500; line-height: 21px; }
html body .lv-home .repoRequestDetail > .row:not(.lv-item-card):not(:first-child):not(:has(form)) { padding: 4px 8px; border: 0 !important; font-size: var(--lv-font-size-14); color: var(--lv-fg-secondary); }
@media (max-width: 767.98px) { html body .lv-home .repoRequestDetail > .lv-item-card { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sidebar icons that had no picture (grey squares): Figma / Iconsax set, same mask technique as the other menu icons */
html body .main-menu .navigation > li > a > i.icon-order-4     { --lv-ico: url(../lavender/icons/document-text.svg); }
html body .main-menu .navigation > li > a > i.icon-request-shop { --lv-ico: url(../lavender/icons/cart.svg); }
html body .main-menu .navigation > li > a > i.icon-shop-list    { --lv-ico: url(../lavender/icons/receipt-item.svg); }
html body .main-menu .navigation > li > a > i.icon-wastage      { --lv-ico: url(../lavender/icons/warning-hex.svg); }
html body .main-menu .navigation > li > a > i.icon-inventry     { --lv-ico: url(../lavender/icons/box-time.svg); }
html body .lv-tabbar a > i.icon-order-4 { --lv-ico: url(../lavender/icons/document-text.svg); }
html body .lv-tabbar a > i.icon-request-shop { --lv-ico: url(../lavender/icons/cart.svg); }
html body .lv-tabbar a > i.icon-shop-list { --lv-ico: url(../lavender/icons/receipt-item.svg); }
html body .lv-tabbar a > i.icon-wastage { --lv-ico: url(../lavender/icons/warning-hex.svg); }
html body .lv-tabbar a > i.icon-inventry { --lv-ico: url(../lavender/icons/box-time.svg); }

/* ============================================================
   Request cards = Figma "Card/تولید اسفنج": icon tile + title/meta, full-width action, hairline, time footer, status stripe on the start edge
   ============================================================ */
html body .lv-home .card:has(> .repoRequestCollaps) { border-right: 4px solid #f59a3c !important; }
html body .lv-home .card:has(> .repoRequestCollaps.bg-gra-green) { border-right-color: #2fa463 !important; }
html body .lv-home .repoRequestCollaps { padding: 20px 20px 4px; background: transparent !important; border: 0; align-items: center; gap: 16px; }
html body .lv-home .lv-req-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lv-brand-100); color: var(--lv-brand-600); }
html body .lv-home .lv-req-ico i { display: block; width: 28px; height: 28px; font-size: 0; }
html body .lv-home .lv-req-ico i::before { content: "" !important; display: block; width: 28px; height: 28px; background-color: currentColor; -webkit-mask: var(--lv-ico) center / 28px 28px no-repeat; mask: var(--lv-ico) center / 28px 28px no-repeat; }
html body .lv-home .lv-req-ico i.icon-order-4 { --lv-ico: url(../lavender/icons/document-text.svg); }
html body .lv-home .lv-req-ico i.icon-request-shop { --lv-ico: url(../lavender/icons/cart.svg); }
html body .lv-home .lv-req-ico i.icon-shop { --lv-ico: url(../lavender/icons/shop.svg); }
html body .lv-home .lv-req-ico i.icon-ingrident-3 { --lv-ico: url(../lavender/icons/bag.svg); }
html body .lv-home .lv-req-head { min-width: 0; }
html body .lv-home .repoRequestCollaps .card-title { font-size: var(--lv-font-size-20); line-height: 28px; font-weight: 600; }
html body .lv-home .lv-req-meta { margin-top: 2px; font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-secondary); }
html body .lv-home .repoRequestDetail { padding: 8px 20px 20px; }
html body .lv-home .repoRequestDetail > .row:has(form) { display: flex; gap: 10px; padding: 8px 0 0; }
html body .lv-home .repoRequestDetail > .row:has(form) > [class*="col"] { flex: 1 1 0; min-width: 0; }
html body .lv-home .repoRequestDetail > .row:has(form) form, html body .lv-home .repoRequestDetail > .row:has(form) .btn { width: 100%; }
html body .lv-home .repoRequestDetail .btn { min-height: 48px; font-size: var(--lv-font-size-16); border-radius: var(--lv-radius-lg); }
html body .lv-home .lv-req-foot { display: flex; align-items: center; gap: 8px; margin: 0 20px; padding: 14px 0 18px; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); color: var(--lv-fg-secondary); }
html body .lv-home .lv-req-clock { flex: none; display: block; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: url(../lavender/icons/clock.svg) center / contain no-repeat; mask: url(../lavender/icons/clock.svg) center / contain no-repeat; }

/* request cards: three per row (two on tablets, one on phones) */
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; padding: 0; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) > .card { margin: 0 !important; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .repoRequestCollaps { padding: 16px 16px 4px; gap: 12px; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .lv-req-ico { width: 48px; height: 48px; border-radius: 14px; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .lv-req-ico i, html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .lv-req-ico i::before { width: 24px; height: 24px; -webkit-mask-size: 24px 24px; mask-size: 24px 24px; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .repoRequestCollaps .card-title { font-size: var(--lv-font-size-18); line-height: 27px; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .repoRequestDetail { padding: 8px 16px 16px; }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .repoRequestDetail > .lv-item-card { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
html body .lv-home .card-body:has(> .card > .repoRequestCollaps) .lv-req-foot { margin: 0 16px; }
@media (max-width: 1199.98px) { html body .lv-home .card-body:has(> .card > .repoRequestCollaps) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { html body .lv-home .card-body:has(> .card > .repoRequestCollaps) { grid-template-columns: minmax(0, 1fr); } }
html body .lv-home .lv-req-clock { color: var(--lv-fg-secondary) !important; opacity: 1; }
/* title + number sit right next to the icon tile (start edge), not pushed to the far side */
html body .lv-home .repoRequestCollaps { justify-content: flex-start !important; text-align: start !important; }
html body .lv-home .lv-req-head { flex: 1 1 auto; text-align: start !important; }
html body .lv-home .lv-req-head .card-title, html body .lv-home .lv-req-head .lv-req-meta { text-align: start !important; margin-left: 0; margin-right: 0; padding: 0; }

/* phones: Bootstrap columns of the home request lists have no width below md and split the row between them (each level halves the card) */
@media (max-width: 767.98px) {
    html body .lv-home #minimal-statistics .row > [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; width: 100%; }
    html body .lv-home #minimal-statistics .row { margin-left: 0; margin-right: 0; }
    html body .lv-home #minimal-statistics .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
    html body .lv-home .card-body:has(> .card > .repoRequestCollaps) { padding: 0; }
}
html body .lv-home .repoRequestDetail .btn-outline-info, html body .lv-home .repoRequestDetail .btn-outline-warning, html body .lv-home .repoRequestDetail .btn-outline-success { background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600) !important; color: var(--lv-white) !important; }

/* request cards: no side stripe — a soft status glow fades in from the bottom corner instead (orange = waiting, green = ready) */
html body .lv-home .card:has(> .repoRequestCollaps) {
    border: 1px solid var(--lv-neutral-200) !important;
    background:
        radial-gradient(130% 85% at 100% 112%, rgba(245, 154, 60, .24) 0%, rgba(245, 154, 60, .10) 38%, rgba(245, 154, 60, 0) 68%),
        var(--lv-white) !important;
}
html body .lv-home .card:has(> .repoRequestCollaps.bg-gra-green) {
    background:
        radial-gradient(130% 85% at 100% 112%, rgba(47, 164, 99, .24) 0%, rgba(47, 164, 99, .10) 38%, rgba(47, 164, 99, 0) 68%),
        var(--lv-white) !important;
}
html body .lv-home .lv-req-foot .lv-req-clock { background-color: var(--lv-fg-secondary) !important; border-radius: 0; }

/* item mini-cards (product / requested / sent): no border, soft grey fill */
html body .lv-home .repoRequestDetail > .lv-item-card { border: 0 !important; background: color-mix(in srgb, var(--lv-neutral-100) 50%, #fff) !important; box-shadow: none !important; }

/* notification bell = Figma (Iconsax "notification"), everywhere */
html body .lv-bell { display: block; width: 24px; height: 24px; color: var(--lv-fg-primary); }
html body .header-navbar .nav-link-label { display: inline-flex; align-items: center; }
html body .header-navbar .nav-link-label .lv-bell { color: var(--lv-fg-primary); }
html body .mes-icon-btn .lv-bell { width: 22px; height: 22px; }

/* ============================================================
   Collapsed sidebar (desktop): the hover fly-out was the old theme's white panel with salmon (#fa626b) text/dot for the active item.
   Same look as the expanded sidebar now: dark panel, soft hover, brand-filled active item, no dots.
   ============================================================ */
@media (min-width: 992px) {
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content,
    html body .main-menu ul.menu-popout {
        width: 240px; padding: 8px; background: var(--lv-brand-950) !important; border: 1px solid var(--lv-alpha-white-10);
        border-radius: var(--lv-radius-lg); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .5);
    }
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li a,
    html body .main-menu ul.menu-popout li a {
        padding: 10px 16px; border-radius: var(--lv-radius-sm); color: var(--lv-brand-100) !important; background: transparent; font-size: var(--lv-font-size-14); transform: none !important;
    }
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li:hover > a,
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li.hover > a,
    html body .main-menu ul.menu-popout li:hover > a, html body .main-menu ul.menu-popout li.hover > a {
        background: var(--lv-alpha-white-6) !important; color: var(--lv-white) !important; transform: none !important;
    }
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li.active > a,
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li.open > a,
    html body .main-menu ul.menu-popout li.active > a, html body .main-menu ul.menu-popout li.open > a {
        background: var(--lv-brand-600) !important; color: var(--lv-white) !important; font-weight: 500;
    }
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li.active > a:hover { background: var(--lv-brand-600) !important; }
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li a::before,
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > ul.menu-content li a::after,
    html body .main-menu ul.menu-popout li a::before, html body .main-menu ul.menu-popout li a::after { content: none !important; display: none !important; }
    html body .main-menu ul.menu-popout .open > ul .open, html body .main-menu ul.menu-popout .open > ul .open > ul { background: transparent; }
}

/* product list: thumbnail column */
html body .lv-adm .lv-prod-thumb { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; overflow: hidden; border-radius: var(--lv-radius-md); border: 1px solid var(--lv-neutral-200); background: var(--lv-neutral-50); color: var(--lv-fg-tertiary); }
html body .lv-adm .lv-prod-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body .lv-adm #user-listing th.lv-col-thumb, html body .lv-adm #user-listing td.lv-col-thumb { width: 72px; }
@media (min-width: 992px) {
    /* the fly-out's title bar was salmon (#fa626b) */
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content > span.menu-title,
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .main-menu-content a.menu-title {
        width: 240px; right: 60px; padding: 14px 20px; border: 0 !important; border-radius: var(--lv-radius-md);
        background: var(--lv-brand-600) !important; color: var(--lv-white) !important; font-size: var(--lv-font-size-14); font-weight: 600; text-transform: none; box-shadow: 0 10px 24px -8px rgba(122, 84, 178, .55);
    }
    html body.vertical-layout.vertical-menu.menu-collapsed .main-menu .navigation > li > a > span { background: var(--lv-brand-600) !important; border-color: var(--lv-brand-600) !important; }
}
html body .lv-adm .lv-prod-thumb.is-empty { background: var(--lv-brand-50); border-color: var(--lv-brand-100); color: var(--lv-brand-600); }
html body .lv-adm .lv-prod-thumb.is-empty i { font-size: 22px; line-height: 1; }
html body .lv-adm #user-listing .lv-prod-thumb.is-empty { background: var(--lv-brand-100) !important; border-color: var(--lv-brand-200) !important; color: var(--lv-brand-600) !important; }
html body .lv-adm #user-listing .lv-prod-thumb.is-empty i { color: var(--lv-brand-600) !important; }

/* production board: product picture on every card */
html body #mesBoard .lv-bcard-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body #mesBoard .lv-bcard-thumb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: var(--lv-radius-md); background: var(--lv-brand-100); border: 1px solid var(--lv-brand-200); color: var(--lv-brand-600); }
html body #mesBoard .lv-bcard-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body #mesBoard .lv-bcard-thumb i { font-size: 20px; line-height: 1; color: var(--lv-brand-600); }
html body #mesBoard .lv-bcard-head strong { line-height: 22px; }

/* production board card: header / meta / hairline / status + time */
html body #mesBoard .lv-bcard-meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-secondary); }
html body #mesBoard .lv-bcard-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lv-neutral-200); font-size: var(--lv-font-size-14); }
html body #mesBoard .lv-bcard-foot > *, html body #mesBoard .lv-bcard-foot small { margin: 0 !important; }
html body #mesBoard .lv-bcard-foot small { font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-secondary); }
html body #mesBoard .lv-bcard-foot small.text-muted { color: var(--lv-fg-tertiary) !important; }
html body #mesBoard .lv-bcard-foot .progress { height: 6px !important; border-radius: 999px; background: var(--lv-neutral-100); overflow: hidden; margin-top: 2px !important; }
html body #mesBoard .lv-bcard-foot .badge { font-size: var(--lv-font-size-12); }
html body #mesBoard .mes-card { margin-bottom: 12px !important; }

/* board card v2: quantity under the title, every badge in one row under the hairline */
html body #mesBoard .lv-bcard-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body #mesBoard .lv-bcard-qty { font-size: var(--lv-font-size-14); line-height: 21px; color: var(--lv-fg-secondary); font-weight: 400; }
html body #mesBoard .lv-bcard-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html body #mesBoard .lv-bcard-badges:empty { display: none; }
html body #mesBoard .lv-bcard-badges .badge { display: inline-flex; align-items: center; gap: 4px; }
html body #mesBoard .lv-bcard-badges .badge i { font-size: 14px; line-height: 1; color: inherit; }

/* simple stock tables (id / product / count): fixed narrow id + count columns, the name column takes the rest */
html body .lv-adm #user-listing { table-layout: auto; }
html body .lv-adm #user-listing td, html body .lv-adm #user-listing th { vertical-align: middle; }

/* login: desktop = original design, phones/tablets = operator-style layout */
@media (min-width: 992px) { html body #lv-login { display: none !important; } }
@media (max-width: 991.98px) { html body .lv-login-classic { display: none !important; } }

/* classic desktop login: keep the icon and the text apart (icon on the right in RTL) */
html body .lv-login-classic .has-icon-left .form-control { padding: 0 52px 0 16px !important; text-align: right; }
html body .lv-login-classic .has-icon-left .form-control-position { right: 0 !important; left: auto !important; width: 52px; display: flex; align-items: center; justify-content: center; top: 0; bottom: 0; height: 100%; }
html body .lv-login-classic .has-icon-left .form-control-position i { position: static; background: none !important; font-size: 18px; line-height: 1; }
html body .lv-login-classic .has-icon-left .form-control-position { top: 50% !important; bottom: auto !important; height: auto !important; transform: translateY(-50%); line-height: 1 !important; padding: 0 !important; }
html body .lv-login-classic .has-icon-left .form-control-position i { display: block; margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
html body .lv-login-classic .card-login .has-icon-left .form-control-position i { transform: none !important; right: auto !important; top: auto !important; }

/* stat cards: smaller numbers (was 30px / 24px) */
html body .lv-kpi-card .lv-kpi-value { font-size: 22px; line-height: 30px; }
@media (max-width: 767.98px) { html body .lv-kpi-card .lv-kpi-value { font-size: clamp(16px, 4.6vw, 20px); line-height: 28px; } }

/* home filters: smaller text for the selected branches (chips) and the dropdown list */
html body .lv-home .select2-container--default .select2-selection--multiple .select2-selection__choice { font-size: 12px !important; line-height: 22px !important; padding: 0 8px !important; }
html body .lv-home .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { font-size: 14px !important; }
html body .lv-home .select2-container--default .select2-search--inline .select2-search__field { font-size: 13px !important; }
html body .select2-container--default .select2-results__option { font-size: 13px; }

/* forms wrapped in a bordered card: the fields must never touch the border (the formula add/edit forms have other class names, so the 24px padding rule missed them) */
html body .lv-fm form > .card, html body .lv-adm form > .card:not(.lv-card-flush) { width: 100%; padding: 24px !important; box-shadow: none; }
@media (max-width: 767.98px) { html body .lv-fm form > .card, html body .lv-adm form > .card:not(.lv-card-flush) { padding: 16px !important; } }

/* bordered form cards: ~40px above and below the fields */
html body .lv-fm form > .card, html body .lv-adm form > .card:not(.lv-card-flush), html body .lv-legacy form > .card { padding: 40px 32px !important; }
@media (max-width: 767.98px) { html body .lv-fm form > .card, html body .lv-adm form > .card:not(.lv-card-flush), html body .lv-legacy form > .card { padding: 24px 16px !important; } }
/* the in-card title is invisible (the page header already shows it) but kept its height: collapse it so the top padding is the 40px the card is meant to have */
html body .lv-legacy form > .card .card-header:has(> .card-title:only-child) { display: none; }

/* select2 dropdowns: on a coloured (hovered / selected) option the text is white (the theme forced #424242 !important on the hovered one) */
html body .select2-container--default .select2-results__option--highlighted[aria-selected],
html body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
html body .select2-container--default .select2-results__option--highlighted,
html body .select2-container--default .select2-results__options .select2-results__option[aria-selected=true],
html body .select2-container--default .select2-results__option--selected { color: #FFFFFF !important; }
html body .select2-container--default .select2-results__option--highlighted *,
html body .select2-container--default .select2-results__option[aria-selected=true] * { color: #FFFFFF !important; }

/* batch create/edit: the description spans both grid columns */
html body .lv-fm form > .card .card-content .card-body > .row > .form-group.col-12 { grid-column: 1 / -1; }
html body .lv-fm form > .card, html body .lv-adm form > .card:not(.lv-card-flush) { border: 1px solid var(--lv-neutral-200) !important; border-radius: var(--lv-radius-xl); background: var(--lv-white); }

/* home filters (multi-select): the chosen items sit in ONE row, starting at the right edge; extra items scroll sideways */
html body .lv-home .select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex !important; flex-wrap: nowrap; align-items: center; justify-content: flex-start; direction: rtl; gap: 6px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
html body .lv-home .select2-container--default .select2-selection--multiple .select2-selection__rendered::-webkit-scrollbar { display: none; }
html body .lv-home .select2-container--default .select2-selection--multiple .select2-selection__choice { float: none !important; flex: none; margin: 0 !important; white-space: nowrap; }
html body .lv-home .select2-container--default .select2-selection--multiple .select2-search--inline { float: none !important; flex: none; }

/* phone tab bar: icon beside the label (right of it in RTL), not above */
@media (max-width: 991.98px) {
    html body .lv-tabbar a { flex-direction: row; gap: 5px; white-space: nowrap; font-size: 11px; line-height: 14px; }
}

/* phone tab bar: the active item matches the sidebar's active item (flat brand fill, white text) and the items use less side padding */
@media (max-width: 991.98px) {
    html body .lv-tabbar { padding: 4px; gap: 2px; }
    html body .lv-tabbar a { padding: 4px 4px; }
    html body .lv-tabbar a.active { flex: 1.15; border: var(--lv-border-width-hairline, 1px) solid var(--lv-alpha-white-10) !important; background: linear-gradient(102deg, #3c255d 0%, #8857d2 45%, #41246c 87%) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: var(--lv-white); }
    html body .lv-tabbar a.active::before, html body .lv-tabbar a.active::after { display: none; }
}
