/* =================================================================
   LockUse Theme v6 — theme.css
   ТОЧНА Boron структура:
   - Topbar: position:sticky + margin-left (НЕ fixed+left)
   - Sidenav: position:fixed, top:0, full height
   - Toggle: в topbar вляво, мести се при collapse
   - Mobile: overlay + slide-in от ляво
================================================================= */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    /* Точни Boron размери */
    --bs-sidenav-width:     250px;
    --bs-sidenav-width-sm:  70px;
    --bs-sidenav-width-md:  170px;
    --bs-topbar-height:     70px;

    /* Sidenav colors (dark theme) */
    --bs-menu-bg:                #000000;
    --bs-menu-item-color:        #97aac1;
    --bs-menu-item-hover-color:  #ffffff;
    --bs-menu-item-hover-bg:     rgba(255,255,255,.08);
    --bs-menu-item-active-color: #000000;
    --bs-menu-item-active-bg:    #fffbf4;
    --bs-menu-item-padding-x:    20px;
    --bs-menu-item-padding-y:    10px;
    --bs-menu-item-font-size:    15px;
    --bs-menu-link-item-gap:     12px;
    --bs-menu-item-item-gap:     2px;

    /* Topbar (light) */
    --bs-topbar-bg:              #fffbf4;
    --bs-topbar-item-color:      #313a46;

    /* LockUse */
    --lu-border:        0.8px solid #343a40;
    --lu-border-dashed: 0.8px dashed #343a40;
    --lu-radius:        4.8px;
    --lu-dark:          #313a46;
    --lu-dark-hover:    #1e2531;
    --lu-font:          'Lexend', sans-serif;
    --lu-text:          #4c4c5c;
    --lu-muted:         #6c757d;
    --lu-surface:       #ffffff;
    --lu-bg:            #fffbf4;
}

/* ── Global ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    font-family: var(--lu-font) !important;
    background-color: var(--lu-bg) !important;
    color: var(--lu-text);
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════
   SIDENAV — fixed, full height, starts at top:0
══════════════════════════════════════════════════════════════ */
.sidenav-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--bs-sidenav-width);
    background: var(--bs-menu-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width .25s ease-in-out;
    overflow: hidden;
}

/* Logo — height = topbar */
.sidenav-menu .logo {
    display: flex;
    align-items: center;
    min-height: var(--bs-topbar-height);
    padding: 0 22px;
    flex-shrink: 0;
    border-bottom: 0.8px solid rgba(255,255,255,.06);
}
/* logo-lg: икона + текст на един ред */
.sidenav-menu .logo-lg {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidenav-menu .logo-lg .site-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.sidenav-menu .logo-lg .lu-logo-text {
    font-family: var(--lu-font);
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    white-space: nowrap;
    text-decoration: none;
}
/* logo-sm: само буквите при condensed */
.sidenav-menu .logo-sm {
    display: none;
}
.sidenav-menu .logo-sm .lu-logo-sm {
    font-family: var(--lu-font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.lu-logo-text {
    font-family: var(--lu-font);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.lu-logo-sm {
    font-family: var(--lu-font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: none; /* показва се при condensed */
}

/* Scroll area */
.sidenav-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0 24px;
    scrollbar-width: none;
}
.sidenav-scroll::-webkit-scrollbar { display: none; }

/* Side nav */
.side-nav { list-style: none; margin: 0; padding: 0; }

.side-nav-title {
    list-style: none;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #97aac1;
    padding: 14px 20px 6px;
}

.side-nav-item {
    list-style: none;
    margin: 0 8px 2px;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: var(--bs-menu-link-item-gap);
    padding: var(--bs-menu-item-padding-y) var(--bs-menu-item-padding-x);
    font-size: var(--bs-menu-item-font-size);
    font-family: var(--lu-font);
    font-weight: 400;
    color: var(--bs-menu-item-color);
    text-decoration: none;
    border-radius: 9.6px;
    transition: all .2s ease;
    white-space: nowrap;
    overflow: hidden;
}
.side-nav-link:hover,
.side-nav-link:focus {
    background: var(--bs-menu-item-hover-bg);
    color: var(--bs-menu-item-hover-color);
}
.side-nav-item.menuitem-active > .side-nav-link,
.side-nav-link.active {
    background: var(--bs-menu-item-active-bg);
    color: var(--bs-menu-item-active-color);
    font-weight: 600;
}

.menu-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.menu-text { flex: 1; transition: opacity .2s; }

/* ══════════════════════════════════════════════════════════════
   TOPBAR — sticky, margin-left (ТОЧНО като Boron)
   При collapse: margin-left се намалява → toggle се мести вляво
══════════════════════════════════════════════════════════════ */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-left: var(--bs-sidenav-width);
    min-height: var(--bs-topbar-height);
    background: var(--bs-topbar-bg);
    border-bottom: var(--lu-border-dashed);
    transition: margin-left .25s ease-in-out;
}

.app-topbar .container-fluid.topbar-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bs-topbar-height);
    padding: 0 24px;
}

/* Toggle buttons */
.sidenav-toggle-button,
.topnav-toggle-button {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: var(--lu-border);
    border-radius: var(--lu-radius);
    color: var(--bs-topbar-item-color);
    cursor: pointer;
    transition: background .15s;
    padding: 0;
    flex-shrink: 0;
}
.sidenav-toggle-button:hover,
.topnav-toggle-button:hover { background: rgba(49,58,70,.07); }
.sidenav-toggle-button:focus,
.topnav-toggle-button:focus { outline: none; box-shadow: none; }

/* Topbar icon buttons */
.btn-icon {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
.topbar-link {
    background: transparent !important;
    border: var(--lu-border) !important;
    border-radius: var(--lu-radius) !important;
    color: var(--bs-topbar-item-color) !important;
    transition: background .15s !important;
    text-decoration: none !important;
}
.topbar-link:hover { background: rgba(49,58,70,.07) !important; }
.topbar-link:focus { outline: none !important; box-shadow: none !important; }
.topbar-right-menu { list-style: none; padding: 0; margin: 0; }
.topbar-item { display: flex; align-items: center; }

/* User area */
.topbar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--lu-dark);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    font-family: var(--lu-font);
    flex-shrink: 0;
}
.topbar-user-name  { font-size: 14px; font-weight: 600; color: var(--lu-dark); line-height: 1.2; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.topbar-user-email { font-size: 11px; color: var(--lu-muted); display: block; }

/* Nav link user toggle */
.app-topbar .nav-link {
    color: var(--bs-topbar-item-color);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--lu-radius);
    transition: background .15s;
}
.app-topbar .nav-link:hover { background: rgba(49,58,70,.07); }
.drop-arrow-none::after { display: none !important; }

/* Search */
.app-search .form-control {
    font-family: var(--lu-font);
    font-size: 13px;
    border: var(--lu-border);
    border-radius: var(--lu-radius) !important;
    height: 38px;
    width: 220px;
    background: #fff;
}
.app-search .form-control:focus { border-color: var(--lu-dark); box-shadow: none; }

/* Dropdowns */
.dropdown-menu {
    border: var(--lu-border) !important;
    border-radius: var(--lu-radius) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.1) !important;
    padding: 6px !important;
    font-family: var(--lu-font);
    animation: luDropIn .15s ease;
}
@keyframes luDropIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.dropdown-item {
    font-family: var(--lu-font) !important;
    font-size: 13.5px;
    padding: 8px 12px !important;
    border-radius: calc(var(--lu-radius) - 1px);
    color: var(--lu-text) !important;
    display: flex; align-items: center;
}
.dropdown-item:hover { background: #f1f3f5 !important; }
.dropdown-item.text-danger { color: #dc2626 !important; }
.dropdown-item.text-danger:hover { background: #fff1f1 !important; }
.dropdown-divider { border-color: #e2e8f0 !important; margin: 4px 0 !important; }
.border-bottom-dashed { border-bottom: var(--lu-border-dashed) !important; }
.modal-content { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; font-family: var(--lu-font); }

/* ══════════════════════════════════════════════════════════════
   PAGE CONTENT — margin-left = sidenav width
   При collapse: margin-left се намалява
══════════════════════════════════════════════════════════════ */
.page-content {
    margin-left: var(--bs-sidenav-width);
    min-height: calc(100vh - var(--bs-topbar-height));
    background: var(--lu-bg);
    transition: margin-left .25s ease-in-out;
}
.page-container { padding: 28px 24px 40px; }

/* Fullscreen pages */
.lu-fullscreen { min-height: 100vh; background: var(--lu-bg); }

/* ══════════════════════════════════════════════════════════════
   FOOTER — margin-left = sidenav width
══════════════════════════════════════════════════════════════ */
.footer {
    margin-left: var(--bs-sidenav-width);
    border-top: var(--lu-border);
    padding: 20px 24px;
    background: var(--lu-surface);
    font-family: var(--lu-font);
    font-size: 13px;
    color: var(--lu-muted);
    transition: margin-left .25s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer a { color: var(--lu-muted); text-decoration: none; font-weight: 500; }

/* Mobile overlay */
.sidenav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1039;
}
.sidenav-overlay.show { display: block; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR CONDENSED STATE
   data-sidenav-size="condensed" на <html>
   Точно като Boron — само иконки, без текст
══════════════════════════════════════════════════════════════ */
html[data-sidenav-size="condensed"] .sidenav-menu {
    width: var(--bs-sidenav-width-sm) !important;
}
html[data-sidenav-size="condensed"] .menu-text,
html[data-sidenav-size="condensed"] .side-nav-title,
/* При condensed: скрий текста, покажи само иконката или LU */
html[data-sidenav-size="condensed"] .sidenav-menu .logo-lg .lu-logo-text { display: none; }
html[data-sidenav-size="condensed"] .sidenav-menu .logo-lg .site-logo-img { width: 28px; height: 28px; }
html[data-sidenav-size="condensed"] .sidenav-menu .logo-sm { display: none; }
html[data-sidenav-size="condensed"] .side-nav-item { margin: 0 6px 2px; }
html[data-sidenav-size="condensed"] .side-nav-link {
    justify-content: center;
    padding: 10px 8px;
    gap: 0;
    border-radius: 8px;
}
html[data-sidenav-size="condensed"] .menu-icon { width: 22px; height: 22px; font-size: 1.2rem; }
html[data-sidenav-size="condensed"] .app-topbar { margin-left: var(--bs-sidenav-width-sm) !important; }
html[data-sidenav-size="condensed"] .page-content { margin-left: var(--bs-sidenav-width-sm) !important; }
html[data-sidenav-size="condensed"] .footer { margin-left: var(--bs-sidenav-width-sm) !important; }

/* ══════════════════════════════════════════════════════════════
   CARD, TABLE, BUTTONS, FORMS (Boron exact)
══════════════════════════════════════════════════════════════ */
.card { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: none !important; background: var(--lu-surface); font-family: var(--lu-font); }
.card-header { border-bottom: var(--lu-border-dashed) !important; background: transparent; padding: 16px 20px; font-size: 15px; font-weight: 600; color: var(--lu-text); font-family: var(--lu-font); }
.card-body { padding: 20px; }
.card-footer { border-top: var(--lu-border-dashed) !important; padding: 12px 20px; background: transparent; }

.table { font-family: var(--lu-font); font-size: 14px; color: var(--lu-text); }
.table thead th { background: #eef2f7; font-size: 12px; font-weight: 600; color: var(--lu-muted); border-bottom: var(--lu-border) !important; padding: 11px 12px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: var(--lu-border) !important; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none !important; }
.table-hover tbody tr:hover td { background: #f8f9fa; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.btn { font-family: var(--lu-font) !important; border-radius: var(--lu-radius) !important; font-weight: 500; }
.btn-primary,.btn-dark { background: var(--lu-dark) !important; border-color: var(--lu-dark) !important; color: #fff !important; }
.btn-primary:hover,.btn-dark:hover { background: var(--lu-dark-hover) !important; border-color: var(--lu-dark-hover) !important; }
.btn-secondary,.btn-light { background: #f1f3f5 !important; border-color: #dee2e6 !important; color: var(--lu-text) !important; }
.btn-secondary:hover,.btn-light:hover { background: #e2e6ea !important; }
.btn-sm { font-size: 12px; padding: 4px 10px; }

.form-control,.form-select { font-family: var(--lu-font); font-size: 13.5px; border: var(--lu-border); border-radius: var(--lu-radius); color: var(--lu-text); background: var(--lu-surface); }
.form-control:focus,.form-select:focus { border-color: var(--lu-dark); box-shadow: 0 0 0 3px rgba(49,58,70,.1); outline: none; }
.form-label { font-family: var(--lu-font); font-size: 12px; font-weight: 600; color: var(--lu-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }

h1,h2,h3,h4,h5,h6 { font-family: var(--lu-font); color: var(--lu-text); font-weight: 600; }
a { color: var(--lu-dark); }
a:hover { color: var(--lu-dark-hover); }
code { background: #f1f3f5; border: 1px solid #dee2e6; border-radius: 4px; padding: 1px 5px; font-size: 12px; color: #c7254e; }
.badge { font-family: var(--lu-font); font-weight: 700; font-size: 11px; border-radius: 800px; padding: 3px 8px; }

/* ══════════════════════════════════════════════════════════════
   PLUGIN .lh-* .lhs-* → Boron
══════════════════════════════════════════════════════════════ */
#lh-dashboard {
    font-family: var(--lu-font) !important;
    padding: 0; max-width: 100%;
    --primary:#313a46; --primary-dark:#1e2531;
    --success:#22c55e; --warning:#f59e0b; --danger:#ef4444;
    --surface:#fff; --surface2:#f8f9fa;
    --border:#343a40; --text-muted:#6c757d;
}
.lh-header { border-bottom: var(--lu-border-dashed) !important; }
.lh-logo { font-family: var(--lu-font) !important; font-weight: 700; font-size: 18px !important; }
.lh-stat { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: none !important; transition: background .2s; }
.lh-stat:hover { background: #f8f9fa !important; }
.lh-stat-value { font-family: var(--lu-font) !important; font-weight: 700; }

/* TABS — точна Boron линия */
#lh-dashboard .lh-tabs { border-bottom: var(--lu-border) !important; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; -webkit-overflow-scrolling: touch; }
#lh-dashboard .lh-tabs::-webkit-scrollbar { display: none; }
#lh-dashboard .lh-tab { font-family: var(--lu-font) !important; font-size: 14px !important; font-weight: 500; color: var(--lu-muted) !important; background: transparent !important; border: none !important; border-bottom: 2px solid transparent !important; padding: 12px 20px !important; margin-bottom: -1px; border-radius: 0 !important; white-space: nowrap; flex-shrink: 0; transition: color .15s, border-color .15s, background .15s; cursor: pointer; }
#lh-dashboard .lh-tab:hover { color: var(--lu-dark) !important; background: rgba(49,58,70,.04) !important; }
#lh-dashboard .lh-tab.active { color: #000 !important; border-bottom-color: var(--lu-dark) !important; font-weight: 600 !important; }

.lh-table-wrap { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; overflow: hidden; }
.lh-table thead { background: #eef2f7; }
.lh-table th { font-family: var(--lu-font) !important; font-size: 11px !important; font-weight: 600; color: var(--lu-muted) !important; border-bottom: var(--lu-border) !important; padding: 11px 14px; text-transform: uppercase; letter-spacing: .4px; }
.lh-table td { font-family: var(--lu-font) !important; font-size: 13.5px !important; padding: 12px 14px; border-bottom: var(--lu-border) !important; }
.lh-table tr:last-child td { border-bottom: none !important; }
.lh-table tr:hover td { background: #f8f9fa !important; }
.lh-btn { font-family: var(--lu-font) !important; border-radius: var(--lu-radius) !important; font-size: 13px !important; }
.lh-btn-primary { background: var(--lu-dark) !important; border-color: var(--lu-dark) !important; color: #fff !important; }
.lh-btn-primary:hover { background: var(--lu-dark-hover) !important; }
.lh-btn-secondary { background: #f1f3f5 !important; border-color: #dee2e6 !important; color: var(--lu-text) !important; }
.lh-btn-secondary:hover { background: #e2e6ea !important; }
.lh-btn-warning { background: #fff3cd !important; border-color: #ffc107 !important; color: #664d03 !important; }
.lh-btn-danger { background: #fee2e2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.lh-badge { font-family: var(--lu-font) !important; font-weight: 700; font-size: 11px; border-radius: 800px; padding: 3px 9px; }
.lh-badge-green { background: #dcfce7; color: #166534; }
.lh-badge-amber { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.lh-badge-gray  { background: #f1f5f9; color: #64748b; }
.lh-badge-red   { background: #fee2e2; color: #991b1b; }
.lh-provider-badge { background: #e2e8f0 !important; color: var(--lu-dark) !important; border-radius: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border: 1px solid #cbd5e1; }
.lh-pin-chip { font-family: var(--lu-font) !important; background: #f1f5f9; border: var(--lu-border); border-radius: var(--lu-radius); padding: 3px 9px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--lu-dark); }
.lh-count { background: var(--lu-dark); color: #fff; border-radius: 800px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.lh-card,.lh-settings-card,.lh-pms-card { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: none !important; }
.lh-card-hdr,.lh-pms-card-head { border-bottom: var(--lu-border-dashed) !important; }
.lh-select,.lh-input,.lh-pms-input { font-family: var(--lu-font) !important; border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; font-size: 13px !important; }
.lh-modal,.lh-modal-overlay .lh-modal { border: var(--lu-border) !important; border-radius: 8px !important; box-shadow: 0 8px 40px rgba(0,0,0,.15) !important; font-family: var(--lu-font) !important; }
.lh-dropdown-menu { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; }
.lh-res-card,.lh-dev-card { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: none !important; background: var(--lu-surface); font-family: var(--lu-font); }
.lhs-wrap { font-family: var(--lu-font) !important; }
.lhs-card { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: none !important; background: var(--lu-surface); }
.lhs-card-hdr { border-bottom: var(--lu-border-dashed) !important; }
.lhs-card-hdr h2 { font-family: var(--lu-font) !important; font-weight: 600; }
.lhs-table-wrap { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; overflow: hidden; }
.lhs-table th { background: #eef2f7; font-family: var(--lu-font) !important; font-size: 11px !important; color: var(--lu-muted) !important; border-bottom: var(--lu-border) !important; text-transform: uppercase; letter-spacing: .4px; }
.lhs-table td { font-family: var(--lu-font) !important; font-size: 13.5px; border-bottom: var(--lu-border) !important; }
.lhs-activate-card { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; box-shadow: none !important; }
.lhs-activate-card.is-active { border-color: #86efac !important; }
.lhs-btn-primary,.lhs-btn-save { background: var(--lu-dark) !important; border-color: var(--lu-dark) !important; border-radius: var(--lu-radius) !important; font-family: var(--lu-font) !important; }
.lhs-btn-secondary,.lhs-btn-sm { background: #f1f3f5 !important; border-color: #dee2e6 !important; color: var(--lu-text) !important; border-radius: var(--lu-radius) !important; font-family: var(--lu-font) !important; }
.lhs-type-option { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; }
.lhs-type-option.selected { border-color: var(--lu-dark) !important; background: #f1f3f5 !important; }

/* ══════════════════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════════════════ */
html[data-bs-theme="dark"] {
    --lu-bg: #17181e; --lu-surface: #1e1f27; --lu-text: #c8ccd2; --lu-muted: #8a93a0;
    --lu-border: 0.8px solid rgba(255,255,255,.12);
    --lu-border-dashed: 0.8px dashed rgba(255,255,255,.12);
    --bs-topbar-bg: #1e1f27;
}
html[data-bs-theme="dark"] body { background-color: #17181e !important; }
html[data-bs-theme="dark"] .app-topbar { background: #1e1f27 !important; }
html[data-bs-theme="dark"] .card { background: #1e1f27 !important; }
html[data-bs-theme="dark"] .page-content,
html[data-bs-theme="dark"] .lu-fullscreen { background: #17181e; }
html[data-bs-theme="dark"] .footer { background: #1e1f27 !important; }
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select { background: #2a2c33 !important; color: #c8ccd2 !important; }
html[data-bs-theme="dark"] .lh-stat,
html[data-bs-theme="dark"] .lh-card,
html[data-bs-theme="dark"] .lhs-card { background: #1e1f27 !important; }
html[data-bs-theme="dark"] .lh-table thead,
html[data-bs-theme="dark"] .lhs-table thead { background: #2a2c33 !important; }
html[data-bs-theme="dark"] .dropdown-menu { background: #1e1f27 !important; }
html[data-bs-theme="dark"] .dropdown-item { color: #c8ccd2 !important; }
html[data-bs-theme="dark"] .dropdown-item:hover { background: #2a2c33 !important; }
html[data-bs-theme="dark"] .topbar-link { color: #c8ccd2 !important; }
html[data-bs-theme="dark"] #lh-dashboard .lh-tab { color: #8a93a0 !important; }
html[data-bs-theme="dark"] #lh-dashboard .lh-tab.active { color: #fff !important; border-bottom-color: #fff !important; }
html[data-bs-theme="dark"] .modal-content { background: #1e1f27 !important; }
html[data-bs-theme="dark"] .lu-logo-text,
html[data-bs-theme="dark"] .lu-logo-sm { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤1199px
   Boron breakpoint: xl = 1200px
══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   FULL SIZE — mobile (≤767px) и sidebar-enable
   Точно от Boron: data-sidenav-size="full" + sidebar-enable class
═══════════════════════════════════════════════════════════ */
html[data-sidenav-size="full"] .sidenav-menu {
    width: var(--bs-sidenav-width);
    transform: translateX(-100%);
    transition: transform .25s ease-in-out;
    z-index: 1050;
    top: 0;
}
html[data-sidenav-size="full"].sidebar-enable .sidenav-menu {
    transform: translateX(0);
}
html[data-sidenav-size="full"] .app-topbar { margin-left: 0 !important; }
html[data-sidenav-size="full"] .page-content { margin-left: 0 !important; }
html[data-sidenav-size="full"] .footer { margin-left: 0 !important; }
/* При full: logo и текст винаги видими */
html[data-sidenav-size="full"] .sidenav-menu .logo .logo-sm { display: none; }
html[data-sidenav-size="full"] .sidenav-menu .logo .logo-lg { display: flex; }
html[data-sidenav-size="full"] .menu-text { display: block !important; }
html[data-sidenav-size="full"] .side-nav-title { display: block !important; }
html[data-sidenav-size="full"] .side-nav-link { justify-content: flex-start; padding: 10px 20px; gap: 12px; border-radius: 9.6px; }

/* Tablet condensed (768-1140px) — автоматично */
@media (max-width: 1140px) and (min-width: 768px) {
    /* Handled by adjustLayout() → data-sidenav-size="condensed" */
}

/* Mobile ≤767px */
@media (max-width: 767.98px) {
    .app-topbar { margin-left: 0 !important; }
    .page-content { margin-left: 0 !important; }
    .footer { margin-left: 0 !important; }
    .page-container { padding: 12px 10px 32px; }
    /* Toggle button stays visible */
    .sidenav-toggle-button { display: inline-flex !important; }
    /* Hide desktop search on small mobile */
    .app-search { display: none !important; }
}

/* Mobile plugin fixes */
@media (max-width: 960px) {
    #lh-dashboard .lh-tabs { flex-wrap: wrap !important; gap: 6px; padding-bottom: 8px; }
    #lh-dashboard .lh-tab { border: var(--lu-border) !important; border-radius: var(--lu-radius) !important; padding: 7px 14px !important; margin-bottom: 0; font-size: 13px !important; }
    #lh-dashboard .lh-tab.active { background: var(--lu-dark) !important; color: #fff !important; border-color: var(--lu-dark) !important; }
    .lh-header { flex-direction: column; align-items: flex-start; }
    .lh-header-right { width: 100%; flex-wrap: wrap; gap: 6px; }
    .lh-header-right > .lh-btn,.lh-header-right > button { flex: 1; justify-content: center; }
    .lh-stats { grid-template-columns: repeat(2,1fr) !important; }
    .page-container { padding: 16px 12px 40px; }
}
@media (max-width: 480px) {
    .lh-stats { grid-template-columns: 1fr !important; }
}