/* =====================================================================================
   Lavender (لوندر) design layer — loaded LAST from admin/includes/head.blade.php.
   Pure overrides of the Modern Admin RTL theme + style-rtl.css; no page markup depends on it.
   Tokens: lavandin = brand, lilac = soft surfaces, aubergine = ink/sidebar, meringue = page,
   pistachio / apricot / raspberry = running / waiting / delayed.
   ===================================================================================== */
:root {
    --lv-lavandin: #7B5EA7;        /* white text 5.2:1 */
    --lv-lavandin-deep: #5E4485;   /* links/small text on lilac 6:1 */
    --lv-lavandin-ink: #4A3470;
    --lv-lilac: #E6DCF5;
    --lv-lilac-soft: #F1EBFA;
    --lv-line: #E3D9F2;
    --lv-line-strong: #CFC0E6;
    --lv-aubergine: #2A1B3D;
    --lv-aubergine-2: #3A2754;
    --lv-on-dark: #D9CCEE;         /* menu text on aubergine 10:1 */
    --lv-meringue: #F7F4FB;
    --lv-muted: #6E5F86;           /* secondary text on white 5.8:1 */
    --lv-pistachio: #7FB685;       /* aubergine text 6.8:1 */
    --lv-pistachio-soft: #E4F1E5;
    --lv-pistachio-ink: #2F6B3A;
    --lv-apricot: #F2A65A;         /* aubergine text 7.8:1 */
    --lv-apricot-soft: #FCEBD8;
    --lv-apricot-ink: #8A4A0F;
    --lv-raspberry: #D64571;
    --lv-raspberry-deep: #B8325C;  /* white text 5.7:1 */
    --lv-raspberry-soft: #FADDE6;
    --lv-raspberry-ink: #9E2449;
    --lv-ring: 0 0 0 3px rgba(123, 94, 167, .35);
    --lv-float: 0 18px 40px -12px rgba(74, 52, 112, .35), 0 2px 6px rgba(74, 52, 112, .08);
    --lv-r-panel: 20px;
    --lv-r-ctl: 12px;
    --lv-font: estedad, tahoma, sans-serif;
}

/* ---------- base + type (13 / 15 / 18 / 24 / 32) ---------- */
html body {
    font-family: var(--lv-font);
    font-size: 14px !important;
    font-weight: 400;
    background: var(--lv-meringue);
    color: var(--lv-aubergine);
}
body h1, body h2, body h3, body h4, body h5, body h6, body .h1, body .h2, body .h3, body .h4, body .h5, body .h6,
body button, body input, body select, body textarea, body .btn, body .dropdown-menu, body .tooltip, body .popover,
body .select2-container, body .swal2-popup, body .datepicker-plot-area, body .modal, body .table {
    font-family: var(--lv-font);
}
body h1, body h2, body h3, body h4, body h5, body h6 { color: var(--lv-aubergine); line-height: 1.5; }
body h1, body .h1 { font-size: 32px; font-weight: 900; }
body h2, body .h2, body h3, body .h3 { font-size: 24px; font-weight: 900; }
body h4, body .h4, body .card .card-title { font-size: 18px; font-weight: 700; }
body h5, body .h5 { font-size: 15px; font-weight: 700; }
body h6, body .h6 { font-size: 13px; font-weight: 700; }
body small, body .small { font-size: 12px; }
body strong, body b { font-weight: 700; }
body a { color: var(--lv-lavandin-deep); }
body a:hover, body a:focus { color: var(--lv-lavandin-ink); }
body .text-muted { color: var(--lv-muted) !important; }
body .text-primary, body .text-def-primary, body .primary { color: var(--lv-lavandin) !important; }
body .text-info, body .info { color: var(--lv-lavandin-deep) !important; }
body .text-success, body .success { color: var(--lv-pistachio-ink) !important; }
body .text-warning, body .warning { color: var(--lv-apricot-ink) !important; }
body .text-danger, body .danger { color: var(--lv-raspberry-ink) !important; }
body .text-dark, body .black { color: var(--lv-aubergine) !important; }
body .badge, body .lv-num, body [id$="Count"], body [id$="Amount"], body [id$="Quantity"] { font-variant-numeric: tabular-nums; }
::selection { background: var(--lv-lilac); color: var(--lv-aubergine); }

/* visible keyboard focus everywhere */
body a:focus-visible, body button:focus-visible, body .btn:focus-visible, body [tabindex]:focus-visible,
body input[type=checkbox]:focus-visible, body input[type=radio]:focus-visible, body summary:focus-visible {
    outline: 3px solid rgba(123, 94, 167, .6) !important;
    outline-offset: 2px;
    box-shadow: none;
}
body .main-menu a:focus-visible { outline-color: var(--lv-lilac) !important; outline-offset: -3px; }

/* ---------- page frame ---------- */
body.vertical-layout .content-wrapper-before { display: none; }
body .app-content, body .content-wrapper { background: transparent; }
html body .content-wrapper { padding: 24px 28px; }

/* top bar: quiet, meringue, hairline */
body .header-navbar,
body.vertical-layout[data-color] .navbar-container,
body.horizontal-layout[data-color] .navbar-container {
    background: var(--lv-meringue) !important;
    box-shadow: none !important;
}
body .header-navbar { border-bottom: 1px solid var(--lv-line); }
body .header-navbar .navbar-nav .nav-link, body .navbar-semi-light .navbar-nav .nav-link { color: var(--lv-aubergine); }
body .header-navbar .navbar-nav .nav-link i.ficon, body .header-navbar .navbar-nav .nav-link i { color: var(--lv-aubergine); }
body .header-navbar .nav-link:hover i { color: var(--lv-lavandin); }
body .header-navbar .avatar { border: 2px solid var(--lv-lilac); border-radius: 50%; }
.lv-user-name { font-weight: 700; font-size: 14px; color: var(--lv-aubergine); margin-inline-start: 10px; vertical-align: middle; }
@media (max-width: 767.98px) { .lv-user-name { display: none; } }

/* ---------- the signature: aubergine sidebar ---------- */
body .main-menu, body .main-menu.menu-light, body .main-menu.menu-dark {
    background: var(--lv-aubergine) !important;
    color: var(--lv-on-dark);
    border: 0 !important;
    box-shadow: none !important;
}
body .main-menu .navigation-background { display: none !important; }
body .main-menu .main-menu-content, body .main-menu .navigation, body .main-menu.menu-light .navigation,
body .main-menu .navigation li, body .main-menu .navigation .menu-content { background: transparent !important; }
body .main-menu::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 300px;
    background: url(../lavender/sprig.svg) no-repeat 8px 100% / 150px auto;
    opacity: .16;
    pointer-events: none;
    z-index: 0;
}
body .main-menu .main-menu-content, body .main-menu .navbar-header { position: relative; z-index: 1; }

/* brand: wordmark */
body .main-menu .navbar-header { background: transparent !important; height: auto; min-height: 96px; padding: 18px 20px 10px; }
body .main-menu .navbar-header .navbar-brand { display: flex; align-items: center; padding: 0; margin: 0; }
body .main-menu .navbar-header .brand-logo { display: none; }
.lv-wordmark {
    font-family: var(--lv-font);
    font-weight: 900;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}
body .main-menu .navbar-header .brand-text.lv-wordmark { color: #fff; font-size: 44px; font-weight: 900; padding: 0; margin: 0; }
body .main-menu .close-navbar i { color: var(--lv-on-dark); }

/* items */
body .main-menu .navigation { font-family: var(--lv-font); padding: 4px 0 260px; }
body .main-menu .navigation > li { padding: 0; margin: 2px 0; }
body .main-menu .navigation > li > a,
body .main-menu.menu-light .navigation > li > a {
    color: var(--lv-on-dark) !important;
    padding: 6px 16px 6px 12px;
    margin-right: 12px;
    line-height: 36px;
    border-radius: 0 999px 999px 0;   /* RTL: rounded toward the sidebar, flush against the content */
    transition: background-color .15s ease, color .15s ease;
}
body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation > li > a > span,
body .main-menu .navigation > li > a > span { font-size: 14px !important; font-weight: 500; color: inherit !important; }
body .main-menu .navigation > li > a > i,
body.vertical-layout.vertical-menu.menu-expanded .main-menu.menu-light .navigation > li > a > i,
body.vertical-layout .main-menu.menu-light .navigation > li > a > i {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin-left: 10px;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: rgba(230, 220, 245, .09) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
body .main-menu .navigation > li > a > i:before,
body.vertical-layout.vertical-menu.menu-collapsed .main-menu .navigation > li > a > i:before,
body.vertical-layout.vertical-menu.menu-expanded .main-menu .navigation > li:hover > a > i:before { color: var(--lv-on-dark) !important; font-size: 20px !important; }
body .main-menu .navigation > li > a:hover,
body .main-menu .navigation > li:hover > a { background: rgba(230, 220, 245, .08) !important; color: #fff !important; }
body.vertical-layout.vertical-menu.menu-expanded .main-menu.menu-light .navigation > li:hover > a > i { background: rgba(230, 220, 245, .16) !important; }
/* sub-menu arrow */
body .main-menu .navigation > li.has-sub > a:not(.mm-next):after { color: var(--lv-on-dark) !important; }
/* expanded group header */
body .main-menu .navigation > li.has-sub.open > a { color: #fff !important; background: rgba(230, 220, 245, .06) !important; }

/* active: lavender pill that runs into the content edge */
body .main-menu .navigation > li.open:not(.has-sub) > a,
body .main-menu .navigation > li.active > a,
body .main-menu .navigation .menu-content > li.open > a,
body .main-menu .navigation .menu-content > li.active > a,
body .main-menu.menu-light .navigation .menu-content > li.open > a {
    background: var(--lv-lavandin) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: none !important;
}
body .main-menu .navigation > li.open:not(.has-sub) > a > i,
body .main-menu .navigation > li.active > a > i { background: rgba(255, 255, 255, .18) !important; }
body .main-menu .navigation > li.open:not(.has-sub) > a > i:before { color: #fff !important; }
/* concave "ears" where the pill meets the content edge, so it reads as flowing out of the page */
body .main-menu .navigation > li.open:not(.has-sub), body .main-menu .navigation .menu-content > li.open { position: relative; }
body .main-menu .navigation > li.open:not(.has-sub)::before, body .main-menu .navigation > li.open:not(.has-sub)::after,
body .main-menu .navigation .menu-content > li.open::before, body .main-menu .navigation .menu-content > li.open::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
body .main-menu .navigation > li.open:not(.has-sub)::before, body .main-menu .navigation .menu-content > li.open::before {
    top: -16px; background: radial-gradient(circle at 100% 0, transparent 15.5px, var(--lv-lavandin) 16px);
}
body .main-menu .navigation > li.open:not(.has-sub)::after, body .main-menu .navigation .menu-content > li.open::after {
    bottom: -16px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--lv-lavandin) 16px);
}
body.menu-collapsed .main-menu:not(.expanded) .navigation li.open::before, body.menu-collapsed .main-menu:not(.expanded) .navigation li.open::after { display: none; }

/* children */
body .main-menu .navigation .menu-content { padding: 2px 0 6px; font-size: 14px; }
body .main-menu .navigation .menu-content > li > a,
body .main-menu.menu-light .navigation .menu-content > li > a,
body .main-menu .navigation .menu-content > li > a.menu-item {
    color: rgba(217, 204, 238, .85) !important;
    font-weight: 400;
    padding: 8px 64px 8px 16px !important;
    margin-right: 12px;
    line-height: 1.6;
    border-radius: 0 999px 999px 0;
    text-align: right;
    transition: background-color .15s ease, color .15s ease;
}
body .main-menu .navigation .menu-content > li > a:hover { color: #fff !important; background: rgba(230, 220, 245, .08) !important; }
body .main-menu .navigation .menu-content > li.open > a:hover { background: var(--lv-lavandin) !important; }
body .main-menu .navigation .menu-content .badge { background: var(--lv-raspberry-deep); color: #fff; }

/* collapsed (desktop icon rail) */
body.menu-collapsed .main-menu:not(.expanded) .navbar-header .brand-text { display: none; }
body.menu-collapsed .main-menu:not(.expanded) .navbar-header { padding: 18px 0 10px; }
body.menu-collapsed .main-menu:not(.expanded) .navbar-header .brand-logo {
    display: block; width: 40px !important; height: 40px; padding: 5px; margin: 0 auto;
    background: var(--lv-lilac); border-radius: 12px;
}
body.menu-collapsed .main-menu:not(.expanded) .navigation > li > a { margin-right: 0; border-radius: 0; padding: 6px 0; text-align: center; }
body.menu-collapsed .main-menu:not(.expanded) .navigation > li > a > i { margin: 0 !important; }
body.menu-collapsed .main-menu:not(.expanded)::after { background-size: 80px auto; background-position: 50% 100%; height: 160px; }

/* mobile overlay */
body.vertical-overlay-menu.menu-open .main-menu.menu-light .navigation > li > a > i {
    width: 36px !important; height: 36px !important; border: 0 !important; box-shadow: none !important;
    background: rgba(230, 220, 245, .09) !important; border-radius: 12px !important; margin-left: 10px;
}
body.vertical-overlay-menu.menu-open .main-menu.menu-light .navigation > li > a > i:before { color: var(--lv-on-dark) !important; font-size: 20px !important; }
body .sidenav-overlay { background: rgba(42, 27, 61, .5); }

/* ---------- surfaces ---------- */
body .card,
body #repoRequestList .card, body div#formulaDetails .card, body #minimal-statistics .card, body .home-card .card {
    background: #fff;
    border: 1px solid var(--lv-line);
    border-radius: var(--lv-r-panel);
    box-shadow: none !important;
    filter: none !important;
}
body .card .card-header { background: transparent; border-bottom: 1px solid var(--lv-line); border-radius: var(--lv-r-panel) var(--lv-r-panel) 0 0; padding: 18px 22px; }
body .card .card-header.border-0 { border-bottom: 0; }
body .card .card-body { padding: 22px; }
body .card .card-footer { background: var(--lv-meringue); border-top: 1px solid var(--lv-line); border-radius: 0 0 var(--lv-r-panel) var(--lv-r-panel); }
/* theme rule `.card-body p { color: white }` was for gradient tiles only */
body .card-body p { color: inherit; font-size: 15px; }
body .media-body span { font-weight: 700; }
body .chart-row { filter: none; background: #fff; border: 1px solid var(--lv-line); border-radius: var(--lv-r-panel); }
body .border-def-primary { border-color: var(--lv-line-strong) !important; }
body .bg-def-primary, body .card-inner, body .ingredient, body .permissionLists .card-title { background: var(--lv-lavandin) !important; color: #fff; box-shadow: none; }
body .card-inner .card-header { background: var(--lv-lavandin-deep); }
body .permission-container, body .card-body-addUser form { box-shadow: none; border: 1px solid var(--lv-line); }
body hr { border-color: var(--lv-line); }
body .border-bottom { border-bottom-color: var(--lv-line) !important; }

/* stat tiles on the home dashboards (were 4 gradient cards) */
body #minimal-statistics .card-content.bg-gra-blue,
body #minimal-statistics .card-content.bg-gra-orange,
body #minimal-statistics .card-content.bg-gra-green,
body #minimal-statistics .card-content.bg-gra-pink,
body .bg-gra-blue, body .bg-gra-orange, body .bg-gra-green, body .bg-gra-pink {
    background: #fff !important;
    color: var(--lv-aubergine);
    border-radius: var(--lv-r-panel);
}
body .bg-gra-blue .text-white, body .bg-gra-orange .text-white, body .bg-gra-green .text-white, body .bg-gra-pink .text-white { color: var(--lv-muted) !important; font-size: 15px; font-weight: 500; }
body .bg-gra-blue p, body .bg-gra-orange p, body .bg-gra-green p, body .bg-gra-pink p { color: var(--lv-aubergine); font-size: 24px; font-weight: 900; }
body .bg-gra-blue .align-self-top i, body .bg-gra-orange .align-self-top i,
body .bg-gra-green .align-self-top i, body .bg-gra-pink .align-self-top i {
    display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center;
}
body .bg-gra-blue .align-self-top i { background: var(--lv-lavandin); }
body .bg-gra-orange .align-self-top i { background: var(--lv-apricot); }
body .bg-gra-green .align-self-top i { background: var(--lv-pistachio); }
body .bg-gra-pink .align-self-top i { background: var(--lv-aubergine); }
body .bg-gra-blue .align-self-top img, body .bg-gra-orange .align-self-top img,
body .bg-gra-green .align-self-top img, body .bg-gra-pink .align-self-top img { width: 26px; height: 26px; }
body #minimal-statistics .home-card:before { display: none; }
body .card.home-card, body #minimal-statistics .home-card { background: #fff; }
body .home-card .form-control { border: 1px solid var(--lv-line-strong) !important; border-image: none !important; }
body .border-gradient, body #ecommerce-stats .select2-selection__choice, body #ecommerce-stats .select2-selection.select2-selection--multiple {
    background: #fff;
    border: 1px solid var(--lv-line-strong) !important;
    border-radius: var(--lv-r-ctl);
    color: var(--lv-lavandin-deep);
}
body #ecommerce-stats .select2-selection__choice, body #filterByShopBlock .select2-selection__choice { background: var(--lv-lilac) !important; color: var(--lv-lavandin-ink); border: 0 !important; }
body #filterByShopBlock .select2-selection__choice__remove { color: var(--lv-lavandin-ink) !important; }
body #filterByShopBlock .select2-selection.select2-selection--multiple { border: 1px solid var(--lv-line-strong) !important; border-radius: var(--lv-r-ctl); padding: 8px !important; }
body .home-card .nav-link { border: 1px solid var(--lv-line-strong); color: var(--lv-lavandin-deep); background: #fff; }
body .home-card .nav-tabs .nav-link.active { background: var(--lv-lavandin) !important; border-color: var(--lv-lavandin); color: #fff; }

/* ---------- tables + DataTables ---------- */
body .table { color: var(--lv-aubergine); border-collapse: separate; border-spacing: 0; }
body .table thead th, body table.dataTable thead th {
    background: var(--lv-lilac);
    color: var(--lv-aubergine);
    font-size: 13px;
    font-weight: 700;
    border: 0 !important;
    padding: 12px 14px;
    vertical-align: middle;
    white-space: nowrap;
}
body .table thead th:first-child { border-radius: 0 12px 12px 0; }
body .table thead th:last-child { border-radius: 12px 0 0 12px; }
body .table thead th:only-child { border-radius: 12px; }
body .table td, body .table tbody th {
    font-size: 14px;
    padding: 14px;
    vertical-align: middle;
    border-top: 0;
    border-bottom: 1px solid var(--lv-line);
}
body .table.table-sm td, body .table.table-sm tbody th { padding: 10px 12px; }
body .table.table-sm thead th { padding: 10px 12px; }
body .table-striped tbody tr:nth-of-type(odd), body .table-striped tbody tr:nth-of-type(even) { background: transparent; }
body .table-hover tbody tr:hover, body .table tbody tr:hover, body table.dataTable tbody tr:hover { background: var(--lv-lilac-soft) !important; }
body table.dataTable tbody tr.selected, body .table tr.table-active { background: var(--lv-lilac) !important; }
body .table tr.table-success, body .table tr.table-success > td { background: var(--lv-pistachio-soft); }
body table.dataTable.no-footer { border-bottom: 0; }
body .table-bordered, body .table-bordered td, body .table-bordered th { border-color: var(--lv-line); }
body .dataTables_wrapper .dataTables_info { color: var(--lv-muted); font-size: 13px; }
body #user-listing_wrapper .row:first-child { margin-bottom: 20px; }
body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_filter input,
body #user-listing_length .form-control, body #user-listing_filter input { border: 1px solid var(--lv-line-strong); border-radius: var(--lv-r-ctl); height: 40px; }
body .dataTables_wrapper .dataTables_filter label, body #user-listing_filter label { color: var(--lv-muted) !important; }
/* row actions: the theme's coloured-square SVGs become quiet chips with feather glyphs */
body .table-action-btn { padding: 0; width: 34px; height: 34px; margin: 0 3px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--lv-lilac-soft); color: var(--lv-lavandin-deep); }
body .table-action-btn > i:has(> img[src$="/trash.svg"]), body .table-action-btn > i:has(> img[src$="/edit.svg"]), body .table-action-btn > i:has(> img[src$="/paste.svg"]) { font-family: feather; font-style: normal; font-size: 16px; line-height: 1; }
body .table-action-btn > i > img[src$="/trash.svg"], body .table-action-btn > i > img[src$="/edit.svg"], body .table-action-btn > i > img[src$="/paste.svg"] { display: none; }
body .table-action-btn > i:has(> img[src$="/trash.svg"])::before { content: "\e9c7"; }
body .table-action-btn > i:has(> img[src$="/edit.svg"])::before { content: "\e94d"; }
body .table-action-btn > i:has(> img[src$="/paste.svg"])::before { content: "\e931"; }
body .table-action-btn:has(img[src$="/trash.svg"]) { background: var(--lv-raspberry-soft); color: var(--lv-raspberry-ink); }
body .table-action-btn:hover { background: var(--lv-lilac) !important; color: var(--lv-lavandin-ink) !important; }
body .table-action-btn:has(img[src$="/trash.svg"]):hover { background: #F5C6D5 !important; color: var(--lv-raspberry-ink) !important; }

/* pagination */
body .page-link { color: var(--lv-lavandin-deep); border-color: var(--lv-line); border-radius: 10px !important; margin: 0 2px; min-width: 36px; text-align: center; }
body .page-item.active .page-link { background: var(--lv-lavandin); border-color: var(--lv-lavandin); color: #fff; }
body .page-item.disabled .page-link { border-color: var(--lv-line); color: #A99BC0; }
body .page-link:hover { background: var(--lv-lilac-soft); color: var(--lv-lavandin-ink); }

/* ---------- forms ---------- */
html body label, html body output { font-size: 13px; font-weight: 500; color: var(--lv-muted) !important; margin-bottom: 6px; }
body .form-control, body .custom-select {
    min-height: 44px;
    border: 1px solid var(--lv-line-strong);
    border-radius: var(--lv-r-ctl);
    background-color: #fff;
    color: var(--lv-aubergine);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body textarea.form-control { min-height: 96px; }
body select.form-control:not([multiple]):not([size]) { height: 44px; padding-left: 32px; }
body .form-control-sm { min-height: 36px; }
body .form-control::placeholder { color: #9C8FB4; }
body .form-control:focus, body .custom-select:focus,
body .select2-container--default.select2-container--focus .select2-selection--multiple,
body .select2-container--default.select2-container--open .select2-selection--single,
body .select2-container--default .select2-selection--single:focus {
    border-color: var(--lv-lavandin) !important;
    box-shadow: var(--lv-ring) !important;
    outline: none;
}
body .form-control:disabled, body .form-control[readonly] { background: var(--lv-meringue); }
body .is-invalid, body .form-control.is-invalid { border-color: var(--lv-raspberry) !important; }
body .invalid-feedback, body .help-block, body .text-error { color: var(--lv-raspberry-ink); }
body .custom-control-input:checked ~ .custom-control-label::before { background: var(--lv-lavandin); border-color: var(--lv-lavandin); }
body input[type=checkbox], body input[type=radio] { accent-color: var(--lv-lavandin); }
@media (max-width: 1200px) { body .form-control { height: auto; border-radius: var(--lv-r-ctl); } }

/* select2 */
body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-selection--multiple {
    border: 1px solid var(--lv-line-strong) !important;
    border-radius: var(--lv-r-ctl);
    min-height: 44px;
    height: auto !important;
    background: #fff;
}
body .select2-container--default .select2-selection--single { height: 44px !important; }
body .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--lv-aubergine); line-height: 42px; }
body .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #9C8FB4; font-size: 14px; }
body .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--lv-lavandin) transparent transparent transparent; }
body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--lv-lavandin) transparent; }
body .select2-dropdown { border: 1px solid var(--lv-line) !important; border-radius: var(--lv-r-ctl); box-shadow: var(--lv-float); overflow: hidden; }
body .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--lv-meringue); outline: 0; border: 1px solid var(--lv-line) !important; border-radius: 10px; padding: 8px 12px; }
body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--lv-lavandin) !important; color: #fff; }
body .select2-container--default .select2-results__option[aria-selected=true],
body .select2-container--default .select2-results__option--selected { background: var(--lv-lilac); color: var(--lv-lavandin-ink); }
body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--lv-lilac) !important; border: 0 !important; color: var(--lv-lavandin-ink) !important; border-radius: 999px !important; padding: 2px 10px;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--lv-lavandin-ink) !important; }

/* persian datepicker */
body .datepicker-plot-area {
    border: 1px solid var(--lv-line) !important;
    border-radius: 16px !important;
    box-shadow: var(--lv-float) !important;
    font-family: var(--lv-font) !important;
    color: var(--lv-aubergine);
}
body .datepicker-plot-area .datepicker-day-view .table-days td.selected span,
body .datepicker-plot-area .datepicker-year-view .year-item.selected,
body .datepicker-plot-area .datepicker-month-view .month-item.selected,
body .datepicker-plot-area .toolbox .btn-today { background: var(--lv-lavandin) !important; color: #fff !important; }
body .datepicker-plot-area .datepicker-day-view .table-days td.today span { background: var(--lv-lilac) !important; color: var(--lv-lavandin-ink) !important; }
body .datepicker-plot-area .datepicker-day-view .table-days td span:hover,
body .datepicker-plot-area .datepicker-year-view .year-item:hover,
body .datepicker-plot-area .datepicker-month-view .month-item:hover { background: var(--lv-lilac-soft) !important; }

/* CKEditor chrome */
body .cke_chrome { border-color: var(--lv-line) !important; border-radius: var(--lv-r-ctl); overflow: hidden; }
body .cke_top, body .cke_bottom { background: var(--lv-meringue) !important; border-color: var(--lv-line) !important; }

/* ---------- buttons ---------- */
body .btn {
    font-family: var(--lv-font);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--lv-r-ctl);
    padding: 9px 18px;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body .btn-sm { font-size: 13px; padding: 5px 12px; border-radius: 10px; min-width: 0 !important; }
body .btn-lg { font-size: 15px; padding: 12px 24px; }
body .btn.round, body .btn-pill { border-radius: 999px; }
body .btn-round { border-radius: 10px; width: 36px; height: 36px; }
body .btn-glow { box-shadow: none !important; }
body .btn-primary, body .btn-def-primary,
body .btn-primary:not(:disabled):not(.disabled):active, body .btn-primary:not(:disabled):not(.disabled).active {
    background: var(--lv-lavandin) !important;
    border: 1px solid var(--lv-lavandin) !important;
    color: #fff !important;
}
body .btn-primary:hover, body .btn-primary:focus, body .btn-def-primary:hover, body .btn-def-primary:focus {
    background: var(--lv-lavandin-deep) !important; border-color: var(--lv-lavandin-deep) !important; color: #fff !important;
}
body .btn-outline-primary, body .excelButton, body .btn-white {
    background: #fff !important; border: 1px solid var(--lv-lavandin) !important; color: var(--lv-lavandin-deep) !important;
}
body .btn-outline-primary:hover, body .excelButton:hover, body .btn-white:hover { background: var(--lv-lilac) !important; color: var(--lv-lavandin-ink) !important; }
body .btn-success { background: var(--lv-pistachio) !important; border: 1px solid var(--lv-pistachio) !important; color: var(--lv-aubergine) !important; }
body .btn-success:hover, body .btn-success:focus { background: #6AA571 !important; border-color: #6AA571 !important; color: var(--lv-aubergine) !important; }
body .btn-warning { background: var(--lv-apricot) !important; border: 1px solid var(--lv-apricot) !important; color: var(--lv-aubergine) !important; }
body .btn-warning:hover, body .btn-warning:focus { background: #E8934A !important; border-color: #E8934A !important; color: var(--lv-aubergine) !important; }
body .btn-danger { background: var(--lv-raspberry-deep) !important; border: 1px solid var(--lv-raspberry-deep) !important; color: #fff !important; }
body .btn-danger:hover, body .btn-danger:focus { background: var(--lv-raspberry-ink) !important; border-color: var(--lv-raspberry-ink) !important; color: #fff !important; }
body .btn-info, body .btn-def-info { background: var(--lv-lilac) !important; border: 1px solid var(--lv-lilac) !important; color: var(--lv-lavandin-ink) !important; }
body .btn-info:hover, body .btn-def-info:hover { background: #D8CAEE !important; color: var(--lv-lavandin-ink) !important; }
body .btn-secondary, body .btn-light, body .btn-outline, body .btn-outline-secondary {
    background: #fff !important; border: 1px solid var(--lv-line-strong) !important; color: var(--lv-aubergine) !important;
}
body .btn-secondary:hover, body .btn-light:hover, body .btn-outline:hover, body .btn-outline-secondary:hover { background: var(--lv-lilac-soft) !important; color: var(--lv-aubergine) !important; }
body .btn-outline-info { background: #fff !important; border: 1px solid var(--lv-line-strong) !important; color: var(--lv-lavandin-deep) !important; }
body .btn-outline-info:hover { background: var(--lv-lilac-soft) !important; }
body .btn-outline-success { background: #fff !important; border: 1px solid var(--lv-pistachio) !important; color: var(--lv-pistachio-ink) !important; }
body .btn-outline-success:hover { background: var(--lv-pistachio-soft) !important; }
body .btn-outline-warning { background: #fff !important; border: 1px solid var(--lv-apricot) !important; color: var(--lv-apricot-ink) !important; }
body .btn-outline-warning:hover { background: var(--lv-apricot-soft) !important; }
body .btn-outline-danger { background: #fff !important; border: 1px solid var(--lv-raspberry) !important; color: var(--lv-raspberry-ink) !important; }
body .btn-outline-danger:hover { background: var(--lv-raspberry-soft) !important; }
body .btn:disabled, body .btn.disabled { opacity: .5; }
body .btn-group > .btn:not(:last-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body .btn-group > .btn:not(:first-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* ---------- status chips (badges) ---------- */
body .badge {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    padding: 4px 11px;
    border-radius: 999px;
    border: 0;
}
body .badge-success { background: var(--lv-pistachio-soft) !important; color: var(--lv-pistachio-ink) !important; }
body .badge-warning { background: var(--lv-apricot-soft) !important; color: var(--lv-apricot-ink) !important; }
body .badge-danger { background: var(--lv-raspberry-soft) !important; color: var(--lv-raspberry-ink) !important; }
body .badge-info, body .badge-primary { background: var(--lv-lilac) !important; color: var(--lv-lavandin-ink) !important; }
body .badge-secondary, body .badge-light, body .badge-dark { background: #EEE9F4 !important; color: var(--lv-muted) !important; }
/* counters stay solid so they read at a glance */
body .badge-up, body .badge.badge-glow, body .badge-pill.badge-sm { background: var(--lv-raspberry-deep) !important; color: #fff !important; box-shadow: none !important; padding: 2px 6px; }

/* solid background helpers (used by MES boards/charts) */
body .bg-primary, body .bg-def-primary { background-color: var(--lv-lavandin) !important; color: #fff; }
body .bg-info { background-color: var(--lv-lilac) !important; color: var(--lv-lavandin-ink); }
body .bg-success { background-color: var(--lv-pistachio) !important; color: var(--lv-aubergine); }
body .bg-warning { background-color: var(--lv-apricot) !important; color: var(--lv-aubergine); }
body .bg-danger { background-color: var(--lv-raspberry-deep) !important; color: #fff; }
body .bg-success.text-white, body .bg-success .text-white, body .bg-warning.text-white, body .bg-warning .text-white { color: var(--lv-aubergine) !important; }
body .bg-light, body .bg-lighten-5 { background-color: var(--lv-meringue) !important; }
body .progress { background: var(--lv-lilac-soft); border-radius: 999px; }
body .progress-bar { background-color: var(--lv-lavandin); }
body .progress-bar.bg-success { background-color: var(--lv-pistachio) !important; }

/* alerts */
body .alert { border: 0; border-radius: 14px; font-size: 14px; padding: 12px 16px; }
body .alert-success { background: var(--lv-pistachio-soft) !important; color: var(--lv-pistachio-ink) !important; }
body .alert-warning { background: var(--lv-apricot-soft) !important; color: var(--lv-apricot-ink) !important; }
body .alert-danger, body .alert-error { background: var(--lv-raspberry-soft) !important; color: var(--lv-raspberry-ink) !important; }
body .alert-info, body .alert-primary { background: var(--lv-lilac) !important; color: var(--lv-lavandin-ink) !important; }
body .alert .close { color: inherit; }

/* nav tabs / pills */
body .nav-tabs { border-bottom: 1px solid var(--lv-line); }
body .nav-tabs .nav-link { color: var(--lv-muted); font-size: 14px; font-weight: 500; border: 0; border-bottom: 2px solid transparent; box-shadow: none !important; }
body .nav-tabs .nav-link:hover { color: var(--lv-lavandin-deep); }
body .nav-tabs .nav-link.active, body .nav-tabs .nav-item.show .nav-link { color: var(--lv-lavandin-ink); background: transparent; border-bottom-color: var(--lv-lavandin); font-weight: 700; }
body .nav-pills .nav-link { border-radius: 999px; color: var(--lv-lavandin-deep); }
body .nav-pills .nav-link.active, body .nav-pills .show > .nav-link { background: var(--lv-lavandin); color: #fff; }
body .list-group-item { border-color: var(--lv-line); }
body .list-group-item.active { background: var(--lv-lavandin); border-color: var(--lv-lavandin); }

/* ---------- floating things: the only shadows ---------- */
body .modal-content { border: 0; border-radius: var(--lv-r-panel); box-shadow: var(--lv-float); overflow: hidden; }
body .modal-header { background: #fff; border-bottom: 1px solid var(--lv-line); padding: 18px 22px; }
body .modal-header .modal-title { font-size: 18px; font-weight: 700; color: var(--lv-aubergine); }
body .modal-footer { border-top: 1px solid var(--lv-line); background: var(--lv-meringue); }
body .modal-backdrop.show { background: var(--lv-aubergine); opacity: .45; }
body .dropdown-menu { border: 1px solid var(--lv-line); border-radius: 14px; box-shadow: var(--lv-float); padding: 6px; }
body .dropdown-item { border-radius: 8px; color: var(--lv-aubergine); font-size: 14px; }
body .dropdown-item:hover, body .dropdown-item:focus { background: var(--lv-lilac-soft); color: var(--lv-lavandin-ink); }
body .dropdown-item.active, body .dropdown-item:active { background: var(--lv-lavandin); color: #fff; }
body .header-navbar .dropdown-menu .arrow_box_right:before, body .header-navbar .dropdown-menu .arrow_box_right:after,
body .header-navbar .dropdown-menu .arrow_box:before, body .header-navbar .dropdown-menu .arrow_box:after { display: none; }
body .dropdown-notification .dropdown-menu-header .dropdown-header span { color: var(--lv-aubergine) !important; font-weight: 700; font-size: 15px; }
body .dropdown-notification .media { border-bottom: 1px solid var(--lv-line); padding: 12px; }
body .dropdown-notification .media-heading { color: var(--lv-aubergine) !important; font-size: 14px; font-weight: 500; }
body .tooltip-inner { background: var(--lv-aubergine); border-radius: 8px; font-size: 12px; }
body .popover { border-color: var(--lv-line); border-radius: 14px; box-shadow: var(--lv-float); }

/* sweetalert2 (confirms + toasts) */
body .swal2-popup { border-radius: var(--lv-r-panel) !important; box-shadow: var(--lv-float); font-family: var(--lv-font) !important; color: var(--lv-aubergine); }
body .swal2-popup .swal2-title { color: var(--lv-aubergine); font-weight: 900; }
body .swal2-popup .swal2-content, body .swal2-popup .swal2-html-container { color: var(--lv-muted); }
body .swal2-popup .swal2-styled { border-radius: var(--lv-r-ctl) !important; font-weight: 700; box-shadow: none !important; }
body .swal2-popup .swal2-styled.swal2-confirm { background: var(--lv-lavandin) !important; }
body .swal2-popup .swal2-styled.swal2-cancel { background: #fff !important; color: var(--lv-aubergine) !important; border: 1px solid var(--lv-line-strong) !important; }
body .swal2-popup .swal2-styled:focus { box-shadow: var(--lv-ring) !important; }
body .swal2-popup.swal2-toast { border: 1px solid var(--lv-line); }
body .swal2-icon.swal2-success { border-color: var(--lv-pistachio) !important; color: var(--lv-pistachio) !important; }
body .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--lv-pistachio) !important; }
body .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(127, 182, 133, .35) !important; }
body .swal2-icon.swal2-error { border-color: var(--lv-raspberry) !important; }
body .swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: var(--lv-raspberry) !important; }
body .swal2-icon.swal2-warning { border-color: var(--lv-apricot) !important; color: var(--lv-apricot) !important; }
body .swal2-icon.swal2-info, body .swal2-icon.swal2-question { border-color: var(--lv-lavandin) !important; color: var(--lv-lavandin) !important; }
body.swal2-shown .swal2-container.swal2-backdrop-show, body .swal2-container.swal2-shown { background: rgba(42, 27, 61, .45); }

/* native file input */
body input[type=file] { font-size: 13px; color: var(--lv-muted); max-width: 100%; }
body input[type=file]::file-selector-button {
    font-family: var(--lv-font); font-weight: 700; font-size: 13px; margin-inline-end: 10px; padding: 6px 14px; cursor: pointer;
    border: 1px solid var(--lv-line-strong); border-radius: 10px; background: #fff; color: var(--lv-lavandin-deep);
}
body input[type=file]::file-selector-button:hover { background: var(--lv-lilac-soft); }

/* chart legend dots (colours match window.LV keys) */
.lv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.lv-c-lavandin { color: var(--lv-lavandin); } .lv-c-lavandin-ink { color: var(--lv-lavandin-ink); }
.lv-c-pistachio { color: var(--lv-pistachio); } .lv-c-apricot { color: var(--lv-apricot); } .lv-c-raspberry { color: var(--lv-raspberry); }
.lv-c-line { color: var(--lv-line); } .lv-c-line-strong { color: var(--lv-line-strong); } .lv-c-lilac { color: var(--lv-lilac); } .lv-c-muted { color: var(--lv-muted); }

/* ---------- MES (factory production pages) ---------- */
.mes-links .card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; }
.mes-links .card-body > strong { margin-inline-end: 6px; }
.mes-links .card-body > * { flex-shrink: 0; }
.mes-links .btn { margin: 0; white-space: nowrap; }
.mes-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.mes-toolbar .btn { min-width: 0; white-space: nowrap; }
.mes-toolbar .btn-group .btn { padding-inline: 20px; }
.mes-col { background: var(--lv-lilac-soft); border: 1px solid var(--lv-line); border-radius: var(--lv-r-panel); padding: 10px; min-height: 300px; }
.mes-col .card { margin-bottom: 8px; }
.mes-card { cursor: grab; }
.mes-card[draggable=false] { cursor: default; }
.mes-card.dragging { opacity: .5; }
.mes-drop-row { gap: 14px; }
.mes-drop { border: 2px dashed var(--lv-line-strong); border-radius: var(--lv-r-ctl); padding: 16px; text-align: center; color: var(--lv-muted); transition: background-color .15s ease, border-color .15s ease; }
.mes-drop.over { border-color: var(--lv-lavandin); background: var(--lv-lilac); color: var(--lv-lavandin-ink); }
.mes-tile { background: var(--lv-meringue); border: 1px solid var(--lv-line); border-radius: var(--lv-r-ctl); }
.mes-tile small { display: block; line-height: 1.4; }
.mes-tile-success { background: var(--lv-pistachio-soft); border-color: transparent; }
.mes-tile-warning { background: var(--lv-apricot-soft); border-color: transparent; }
.mes-tile-danger { background: var(--lv-raspberry-soft); border-color: transparent; }
.mes-tile-primary { background: var(--lv-lilac-soft); border-color: transparent; }
.mes-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 22px; }
.mes-filters .form-group { margin: 0; flex: 1 1 150px; max-width: 220px; }
.mes-filters .form-control { min-height: 44px; height: 44px; }
.mes-filters .btn { min-width: 0; height: 44px; white-space: nowrap; }
#mesBoard.list .mes-columns { display: none; }
#mesBoard:not(.list) .mes-list { display: none; }
@media (max-width: 767.98px) {
    /* one swipeable row instead of four wrapped lines */
    .mes-links .card-body { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .mes-links .card-body::-webkit-scrollbar { display: none; }
    .mes-toolbar { justify-content: stretch; }
    .mes-toolbar > * { flex: 1 1 auto; }
    .mes-toolbar .btn-group .btn { flex: 1; }
    .mes-col { min-height: 0; }
    .mes-filters .form-group { max-width: none; }
    .mes-filters .btn { flex: 1 1 100%; }
    /* tabs scroll sideways instead of wrapping to a second row */
    body .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    body .nav-tabs .nav-link { white-space: nowrap; }
}

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
    html body .content-wrapper { padding: 16px 12px; }
    body .card .card-body { padding: 16px; }
    body h2, body .h2, body h3, body .h3 { font-size: 20px; }
    body .table td { padding: 12px 10px; }
}

/* ---------- login (split screen) ---------- */
body.blank-page .content-wrapper { padding: 0 !important; }
body.blank-page .app-content, body.blank-page .content-wrapper, body.blank-page .content-body { margin: 0 !important; height: 100%; }
.lv-login { display: flex; min-height: 100vh; background: var(--lv-meringue); }
.lv-login__brand {
    position: relative;
    flex: 0 0 46%;
    background: var(--lv-aubergine);
    color: var(--lv-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    overflow: hidden;
}
.lv-login__brand .lv-wordmark { font-size: clamp(96px, 13vw, 200px); line-height: .95; color: #fff; }
.lv-login__brand p { margin: 20px 0 0; font-size: 18px; font-weight: 300; color: var(--lv-on-dark); max-width: 22em; }
.lv-login__sprig {
    position: absolute;
    left: -40px;
    bottom: -30px;
    width: 46%;
    max-width: 340px;
    opacity: .5;
    pointer-events: none;
}
.lv-login__panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.lv-login__form { width: 100%; max-width: 380px; }
.lv-login__form h1 { font-size: 32px; font-weight: 900; margin: 0 0 6px; }
.lv-login__form .lv-lead { color: var(--lv-muted); font-size: 15px; margin: 0 0 32px; }
.lv-login__form .form-group { margin-bottom: 20px; }
.lv-login__form label { display: block; font-size: 14px !important; color: var(--lv-aubergine) !important; font-weight: 700; }
.lv-login__form .form-control, body .card-login .form-control { height: 52px; font-size: 15px; padding: 0 16px; border: 1px solid var(--lv-line-strong); }
.lv-login__form .btn, body .card-login button { width: 100%; height: 52px; font-size: 16px; margin-top: 8px; padding: 0 18px; border-radius: var(--lv-r-ctl); }
@media (max-width: 991.98px) {
    .lv-login { flex-direction: column; }
    .lv-login__brand { flex: 0 0 auto; padding: 40px 24px 36px; }
    .lv-login__brand .lv-wordmark { font-size: 72px; }
    .lv-login__brand p { font-size: 15px; margin-top: 10px; }
    .lv-login__sprig { width: 150px; left: 8px; bottom: -40px; opacity: .45; }
    .lv-login__panel { align-items: flex-start; padding: 32px 20px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* collapsed rail: centre icons + logo in the 60px rail */
body.menu-collapsed .main-menu:not(.expanded) .navbar-header { padding: 16px 0 10px !important; width: 100%; }
body.menu-collapsed .main-menu:not(.expanded) .navbar-header .navbar-nav, body.menu-collapsed .main-menu:not(.expanded) .navbar-header .nav-item { width: 100%; margin: 0 !important; justify-content: center; }
body.menu-collapsed .main-menu:not(.expanded) .navbar-header .navbar-brand { justify-content: center; width: 100%; }
body.menu-collapsed .main-menu:not(.expanded) .navigation > li > a { display: flex; justify-content: center; padding: 4px 0 !important; }
body.menu-collapsed .main-menu:not(.expanded) .navigation > li > a > i { margin: 0 !important; }
body.menu-collapsed .main-menu:not(.expanded) .navigation > li > a > span, body.menu-collapsed .main-menu:not(.expanded) .navigation > li.has-sub > a:after { display: none; }

/* =====================================================================
   Mobile-first layer (priority: phone > tablet > desktop)
   ===================================================================== */
/* bottom bar for phones + tablets; desktop keeps the sidebar */
.lv-tabbar { display: none; }
@media (max-width: 991.98px) {
    .lv-tabbar {
        position: fixed; inset: auto 0 0 0; z-index: 1000;
        display: flex; background: #fff; border-top: 1px solid var(--lv-line);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .lv-tabbar a {
        flex: 1 1 0; min-width: 0; min-height: 56px;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        color: var(--lv-aubergine); font-size: 12px; font-weight: 500; text-decoration: none;
    }
    .lv-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
    .lv-tabbar a i { font-size: 22px; width: 56px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease; }
    .lv-tabbar a i:before { color: inherit !important; }
    .lv-tabbar a.active { color: var(--lv-lavandin-deep); font-weight: 700; }
    .lv-tabbar a.active i { background: var(--lv-lilac); }
    html body .content-wrapper { padding-bottom: 96px; }
    /* the bar's «بیشتر/همه بخش‌ها» is the only menu opener: no header hamburger, no collapsed icon rail */
    body .header-navbar .nav-item > .menu-toggle { display: none !important; }
    body.vertical-menu.menu-collapsed .main-menu { display: none; }
    body.vertical-menu.menu-collapsed .app-content, body.vertical-menu.menu-collapsed .header-navbar.navbar { margin-right: 0 !important; }
}

/* phones: bigger targets, larger text */
@media (max-width: 767.98px) {
    html body { font-size: 15px !important; }
    body .form-control, body .custom-select, body .select2-container--default .select2-selection--single { min-height: 48px; height: 48px !important; font-size: 16px; }
    body textarea.form-control { height: auto !important; }
    body .btn { min-height: 44px; font-size: 15px; }
    body .btn-sm { min-height: 40px; }
    body .table-action-btn { width: 44px; height: 44px; }

    /* tables become cards: each cell shows its column title (data-label set by the layout script) */
    body .content-body table.table thead { display: none; }
    body .content-body table.table, body .content-body table.table tbody,
    body .content-body table.table tr, body .content-body table.table td { display: block; width: 100% !important; }
    body .content-body table.table tbody tr { background: #fff; border: 1px solid var(--lv-line); border-radius: 16px; padding: 6px 14px; margin-bottom: 12px; }
    body .content-body table.table td {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 0; border-bottom: 1px solid var(--lv-lilac-soft); text-align: left; white-space: normal;
    }
    body .content-body table.table td:last-child { border-bottom: 0; }
    body .content-body table.table td[data-label]::before { content: attr(data-label); color: var(--lv-muted); font-size: 13px; font-weight: 500; text-align: right; flex-shrink: 0; }
    body .content-body table.table td.dataTables_empty { justify-content: center; }
    body .content-body .table-responsive { overflow: visible; }
    body .dataTables_wrapper .row > div { width: 100%; max-width: 100%; flex: 0 0 100%; }
    body .dataTables_wrapper .dataTables_filter label { width: 100%; }
    body .dataTables_wrapper .dataTables_filter input { width: 100% !important; margin: 4px 0 0 !important; }
}
