/* =========================================================
   SYA MOTORS — DESIGN SYSTEM v2
   Aceeași paletă (albastru Bootstrap, sidebar navy, Inter),
   layout nou: bară de sus cu căutare + clopoțel, carduri mai curate.
   Teme: light (implicit) / dark (data-bs-theme="dark")
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --sm-bg: #f3f5f9;
    --sm-surface: #ffffff;
    --sm-surface-2: #eef2f7;
    --sm-text: #1c2534;
    --sm-text-muted: #6b7684;
    --sm-border: #e6e9f0;
    --sm-primary: #0d6efd;
    --sm-primary-dark: #0b5ed7;
    --sm-primary-soft: rgba(13,110,253,.08);
    --sm-accent: #6610f2;
    --sm-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    --sm-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
    --sm-radius: 14px;
    --sm-radius-sm: 8px;
    --sm-sidebar-bg: #0f172a;
    --sm-sidebar-text: #cbd5e1;
    --sidebar-width: 230px;
    --sidebar-collapsed: 74px;
    --topbar-h: 64px;

    --sm-ok: #198754;   --sm-ok-bg: rgba(25,135,84,.1);
    --sm-warn: #b76e00; --sm-warn-bg: rgba(255,193,7,.16);
    --sm-bad: #dc3545;  --sm-bad-bg: rgba(220,53,69,.1);
    --sm-info: #0d6efd; --sm-info-bg: rgba(13,110,253,.1);
}

[data-bs-theme="dark"] {
    --sm-bg: #0b1120;
    --sm-surface: #131b2c;
    --sm-surface-2: #182238;
    --sm-text: #e6eaf2;
    --sm-text-muted: #92a0b5;
    --sm-border: #232f45;
    --sm-primary: #3b82f6;
    --sm-primary-dark: #2563eb;
    --sm-primary-soft: rgba(59,130,246,.12);
    --sm-accent: #8b5cf6;
    --sm-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    --sm-shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.55);
    --sm-sidebar-bg: #0a0f1c;
    --sm-sidebar-text: #b7c2d4;

    --sm-ok: #4ade80;   --sm-ok-bg: rgba(74,222,128,.12);
    --sm-warn: #fbbf24; --sm-warn-bg: rgba(251,191,36,.13);
    --sm-bad: #f87171;  --sm-bad-bg: rgba(248,113,113,.12);
    --sm-info: #60a5fa; --sm-info-bg: rgba(96,165,250,.12);
}

* { box-sizing: border-box; }

html, body {
    background: var(--sm-bg);
    color: var(--sm-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    transition: background-color .25s ease, color .25s ease;
}

a { color: var(--sm-primary); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--sm-primary); outline-offset: 2px; }
.num, td, .sm-kpi-val { font-variant-numeric: tabular-nums; }

/* ===== Bootstrap surfaces urmează tema ===== */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content { background-color: var(--sm-surface); border-color: var(--sm-border); }
[data-bs-theme="dark"] .table { color: var(--sm-text); }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select { background-color: var(--sm-surface-2); border-color: var(--sm-border); color: var(--sm-text); }
[data-bs-theme="dark"] .form-control::placeholder { color: var(--sm-text-muted); }

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

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sm-sidebar-bg);
    color: var(--sm-sidebar-text);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(0,0,0,0.25);
    z-index: 1040;
    transition: transform .3s ease, width .25s ease;
}

.sidebar-logo { padding: 20px 16px 8px; text-align: center; flex-shrink: 0; }
.sidebar-logo .logo-img { height: 60px; width: auto; display: block; margin: 0 auto; object-fit: contain; transition: height .25s; }

.sidebar-menu {
    list-style: none; padding: 0 10px 12px; margin: 0;
    flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sidebar-menu::-webkit-scrollbar { width: 6px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.sidebar-title {
    padding: 16px 12px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    white-space: nowrap;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--sm-sidebar-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    border-radius: var(--sm-radius-sm);
    position: relative;
    margin-bottom: 2px;
    white-space: nowrap;
}
.sidebar-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-item.active { background: rgba(13,110,253,0.18); color: #fff; }
.sidebar-item.active::before {
    content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0; background: #4d94ff;
}
.sidebar-item.active .icon { color: #4d94ff; }
.sidebar-item .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.notif-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    color: white;
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

/* Cont (jos în sidebar) */
.user-box {
    margin: 0 10px 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(77,148,255,.18); color: #8ab8ff; font-weight: 800; font-size: 12px;
}
.user-info { min-width: 0; flex: 1; line-height: 1.2; }
.user-info b { display: block; color: #fff; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-info span { font-size: .72rem; color: #8796ab; }

.theme-toggle, .logout-btn {
    width: 32px; height: 32px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06); cursor: pointer; font-size: 14px;
    text-decoration: none; transition: .2s;
}
.theme-toggle { color: #fbbf24; }
.theme-toggle:hover { background: rgba(255,255,255,0.14); }
.logout-btn { color: #fca5a5; }
.logout-btn:hover { background: #ef4444; border-color: #ef4444; color: #fff; }

/* Sidebar restrâns (desktop) */
body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapsed .sidebar .text,
body.sidebar-collapsed .sidebar .sidebar-title,
body.sidebar-collapsed .sidebar .user-info,
body.sidebar-collapsed .sidebar .theme-toggle { display: none; }
body.sidebar-collapsed .sidebar .sidebar-logo .logo-img { height: 36px; }
body.sidebar-collapsed .sidebar .sidebar-item { justify-content: center; padding: 11px 0; }
body.sidebar-collapsed .sidebar .notif-badge { position: absolute; top: 2px; right: 6px; min-width: 16px; padding: 1px 4px; font-size: 9px; }
body.sidebar-collapsed .sidebar .user-box { flex-direction: column; padding: 8px 4px; }

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1035;
}
.sidebar-overlay.show { display: block; }

/* =========================================================
   BARA DE SUS
   ========================================================= */
.sm-topbar {
    position: fixed;
    top: 0; right: 0;
    left: var(--sidebar-width);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    background: color-mix(in srgb, var(--sm-bg) 86%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sm-border);
    z-index: 1030;
    transition: left .25s ease;
}
body.sidebar-collapsed .sm-topbar { left: var(--sidebar-collapsed); }

.topbar-btn {
    position: relative;
    width: 38px; height: 38px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; border: 1px solid var(--sm-border);
    background: var(--sm-surface); color: var(--sm-text-muted);
    cursor: pointer; font-size: 15px; transition: .15s;
}
.topbar-btn:hover { color: var(--sm-text); border-color: var(--sm-text-muted); }
.mobile-menu-btn { display: none; }
.theme-toggle-top { color: #f59e0b; display: none; }

.topbar-crumbs { font-size: .88rem; color: var(--sm-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-crumbs b { color: var(--sm-text); font-weight: 700; }

.topbar-search {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
    height: 38px; width: min(360px, 38vw); padding: 0 12px;
    background: var(--sm-surface); border: 1px solid var(--sm-border); border-radius: 9px;
    color: var(--sm-text-muted);
}
.topbar-search:focus-within { border-color: var(--sm-primary); box-shadow: 0 0 0 3px rgba(13,110,253,.12); }
.topbar-search input { border: 0; outline: 0; background: transparent; color: var(--sm-text); width: 100%; font-size: .88rem; }
.topbar-search input::placeholder { color: var(--sm-text-muted); }
.topbar-search kbd { font-family: inherit; font-size: 11px; background: transparent; color: var(--sm-text-muted); border: 1px solid var(--sm-border); border-radius: 5px; padding: 1px 6px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-search + .topbar-actions { margin-left: 0; }
.topbar-crumbs + .topbar-actions { margin-left: auto; }

/* ===== Clopoțel + panou ===== */
.notif-wrap { position: relative; }
.notif-bell-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    color: #fff; font-size: 10px; font-weight: 700; border-radius: 50px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.45);
}

.notif-panel {
    position: absolute;
    top: 48px; right: 0;
    width: 370px;
    max-width: calc(100vw - 24px);
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-lg);
    overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 1050;
}
.notif-panel.show { opacity: 1; visibility: visible; transform: translateY(0); }

.notif-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; border-bottom: 1px solid var(--sm-border); color: var(--sm-text);
}
.notif-panel-header a { font-size: .8rem; font-weight: 600; text-decoration: none; }

.notif-panel-list { max-height: 360px; overflow-y: auto; }

.notif-panel-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--sm-border);
    color: var(--sm-text); text-decoration: none; position: relative;
    transition: background .12s;
}
.notif-panel-item:last-child { border-bottom: none; }
.notif-panel-item:hover { background: var(--sm-surface-2); color: var(--sm-text); }
.notif-panel-item.unread { background: var(--sm-primary-soft); }
.notif-panel-item.unread::after {
    content: ""; position: absolute; right: 14px; top: 17px;
    width: 7px; height: 7px; border-radius: 50%; background: #ff1a1a;
}
.notif-panel-text { display: block; font-size: .84rem; line-height: 1.35; padding-right: 14px; }
.notif-panel-time { display: block; font-size: .72rem; color: var(--sm-text-muted); margin-top: 3px; }

.notif-ico {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 13px;
}
.notif-panel-empty { padding: 30px 14px; text-align: center; color: var(--sm-text-muted); font-size: .86rem; }
.notif-panel-empty i { display: block; font-size: 22px; margin-bottom: 8px; opacity: .6; }

.notif-panel-footer {
    display: block; padding: 11px 14px; text-align: center;
    font-size: .82rem; font-weight: 600; color: var(--sm-primary);
    text-decoration: none; border-top: 1px solid var(--sm-border);
}
.notif-panel-footer:hover { background: var(--sm-surface-2); }

.notif-page { overflow: hidden; padding: 0; }
.notif-page .notif-panel-item { padding: 15px 18px; }
.notif-page .notif-ico { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.notif-page .notif-panel-text { font-size: .92rem; }

/* Tonuri (iconițe, pastile) */
.t-ok      { background: var(--sm-ok-bg);   color: var(--sm-ok); }
.t-warn    { background: var(--sm-warn-bg); color: var(--sm-warn); }
.t-bad     { background: var(--sm-bad-bg);  color: var(--sm-bad); }
.t-info    { background: var(--sm-info-bg); color: var(--sm-info); }
.t-primary { background: var(--sm-primary-soft); color: var(--sm-primary); }

.sm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sm-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* =========================================================
   CONȚINUT
   ========================================================= */
.main-content { margin-left: var(--sidebar-width); padding: 28px; min-height: calc(100vh - 60px); transition: margin-left .25s ease; }
body.has-sidebar .main-content { padding-top: calc(var(--topbar-h) + 26px); }
body.sidebar-collapsed .main-content,
body.sidebar-collapsed .footer { margin-left: var(--sidebar-collapsed); }
body:not(.has-sidebar) .main-content,
body:not(.has-sidebar) .footer { margin-left: 0; }

.footer { margin-left: var(--sidebar-width); color: var(--sm-text-muted); border-color: var(--sm-border) !important; font-size: .85rem; transition: margin-left .25s ease; }
.footer a { color: var(--sm-text-muted); }
.footer a:hover { color: var(--sm-primary); }

/* Titluri de pagină: <h3 class="mb-3"> direct în conținut */
.main-content > h3:first-child,
.main-content > h2:first-child { font-size: 1.55rem; margin-bottom: 1.1rem !important; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h3 { margin: 0; font-size: 1.55rem; }
.page-head p { margin: 4px 0 0; color: var(--sm-text-muted); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--sm-primary), var(--sm-accent));
    color: white;
    padding: 28px 32px;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hero h2 { margin: 0 0 4px; font-size: 1.7rem; }
.hero p { color: rgba(255,255,255,.86); }
.hero .btn-light { color: var(--sm-primary); font-weight: 700; border-radius: 9px; padding: 9px 16px; }

/* ===== KPI ===== */
.sm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.sm-kpis:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-kpis:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-kpi {
    background: var(--sm-surface); border: 1px solid var(--sm-border); border-radius: var(--sm-radius);
    padding: 18px; box-shadow: var(--sm-shadow);
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .2s, box-shadow .2s;
}
.sm-kpi:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-lg); }
.sm-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--sm-text-muted); font-size: .82rem; font-weight: 600; }
.sm-kpi-top .notif-ico { width: 32px; height: 32px; }
.sm-kpi-val { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--sm-text); }
.sm-kpi-val small { font-size: .85rem; font-weight: 700; color: var(--sm-text-muted); margin-left: 3px; }

/* ===== Acțiuni rapide ===== */
.sm-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sm-text-muted); font-weight: 700; margin: 6px 0 12px; }
.sm-quick {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    background: var(--sm-border); border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius); overflow: hidden; box-shadow: var(--sm-shadow);
}
.sm-quick a {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: var(--sm-surface); color: var(--sm-text); font-weight: 600; font-size: .9rem;
    text-decoration: none; transition: background .15s;
}
.sm-quick a:hover { background: var(--sm-surface-2); }
.sm-quick a > i:first-child { color: var(--sm-primary); width: 20px; text-align: center; font-size: 1.05rem; }
.sm-quick a .arr { margin-left: auto; color: var(--sm-text-muted); opacity: 0; transition: .15s; font-size: .8rem; }
.sm-quick a:hover .arr { opacity: 1; transform: translateX(2px); }

/* ===== Carduri vechi (păstrate pentru paginile existente) ===== */
.card-hover { transition: transform .25s, box-shadow .25s; border-radius: var(--sm-radius); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow-lg); }
.icon-box { font-size: 2rem; color: var(--sm-primary); }

/* =========================================================
   TABELE — orice .table din conținut primește aspect de card
   ========================================================= */
.main-content .table {
    --bs-table-bg: var(--sm-surface);
    --bs-table-striped-bg: var(--sm-surface-2);
    --bs-table-hover-bg: var(--sm-primary-soft);
    --bs-table-border-color: var(--sm-border);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    font-size: .9rem;
}
.main-content .table > thead > tr > th,
.main-content .table thead.table-dark th,
.main-content .table thead.table-light th {
    background: var(--sm-surface-2) !important;
    color: var(--sm-text-muted) !important;
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    border-bottom: 1px solid var(--sm-border); border-top: 0; white-space: nowrap;
    padding: 12px 14px;
}
.main-content .table td { padding: 12px 14px; vertical-align: middle; border-color: var(--sm-border); }
.main-content .table > tbody > tr:last-child > td { border-bottom: 0; }
.main-content .table-bordered > :not(caption) > * > * { border-width: 0 0 1px 0; }
.main-content .table-responsive > .table,
.table-card .table { box-shadow: none; border: 0; border-radius: 0; margin-bottom: 0; }
.table-responsive { border-radius: var(--sm-radius); }

.table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.filter-card {
    background: var(--sm-surface); border: 1px solid var(--sm-border); border-radius: var(--sm-radius);
    padding: 16px; margin-bottom: 18px; box-shadow: var(--sm-shadow);
}
.table-card {
    background: var(--sm-surface); border: 1px solid var(--sm-border); border-radius: var(--sm-radius);
    overflow: hidden; box-shadow: var(--sm-shadow);
}

/* Butoane de acțiune în tabele */
.action-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.action-btn {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; font-size: 0.85rem; border: none; flex-shrink: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.18); color: #fff; }

/* Paginare */
.pagination { gap: 4px; flex-wrap: wrap; }
.page-link { border-radius: 8px !important; border-color: var(--sm-border); color: var(--sm-text); background: var(--sm-surface); min-width: 36px; text-align: center; }
.page-item.active .page-link { background: var(--sm-primary); border-color: var(--sm-primary); color: #fff; }
.page-item.disabled .page-link { background: var(--sm-surface); color: var(--sm-text-muted); opacity: .6; }

/* Alerte */
.alert { border-radius: 10px; border-width: 1px; }

/* =========================================================
   FORMULARE + BUTOANE
   ========================================================= */
.form-control, .form-select {
    border-radius: var(--sm-radius-sm);
    padding: 10px 14px;
    border: 1px solid var(--sm-border);
}
.form-control:focus, .form-select:focus { border-color: var(--sm-primary); box-shadow: 0 0 0 3px rgba(13,110,253,0.15); }
.form-label { font-size: .85rem; font-weight: 600; color: var(--sm-text-muted); margin-bottom: 5px; }

.input-icon-group { position: relative; }
.input-icon-group i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sm-text-muted); }
.input-icon-group .form-control { padding-left: 40px; }
.input-icon-group .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--sm-text-muted); cursor: pointer; background: none; border: none; }

.btn { border-radius: var(--sm-radius-sm); font-weight: 600; }
.btn-primary { background: var(--sm-primary); border-color: var(--sm-primary); padding: 9px 16px; }
.btn-primary:hover { background: var(--sm-primary-dark); border-color: var(--sm-primary-dark); }
.btn-sm { border-radius: 7px; }

/* =========================================================
   PAGINI PUBLICE (login / register / index)
   ========================================================= */
.theme-toggle-float {
    position: fixed; top: 18px; right: 18px; z-index: 1030;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--sm-border); background: var(--sm-surface); color: #f59e0b;
    box-shadow: var(--sm-shadow); display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer; transition: transform .2s;
}
.theme-toggle-float:hover { transform: scale(1.08); }

.auth-shell { min-height: 100vh; background: var(--sm-bg); padding: 40px 16px; }
.auth-card, .login-card, .register-card, .stats-card {
    background: var(--sm-surface); border: 1px solid var(--sm-border);
    padding: 32px; border-radius: var(--sm-radius); box-shadow: var(--sm-shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand img { height: 64px; margin-bottom: 10px; }
.auth-brand h3 { margin: 0; font-weight: 800; }
.auth-brand p { color: var(--sm-text-muted); font-size: .9rem; margin: 4px 0 0; }

.remember-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.remember-row label { font-size: .9rem; color: var(--sm-text-muted); cursor: pointer; }

.stat-box { background: var(--sm-surface-2); padding: 16px; border-radius: var(--sm-radius-sm); text-align: center; font-weight: bold; border: 1px solid var(--sm-border); }
.stat-number { font-size: 26px; color: var(--sm-primary); }

.feature-box { text-align: center; }
.feature-box i { font-size: 30px; color: var(--sm-primary); margin-bottom: 6px; display: block; }
.feature-box .fw-bold { font-size: .92rem; }

.review-card { background: var(--sm-surface-2); border: 1px solid var(--sm-border); border-radius: var(--sm-radius-sm); padding: 14px 16px; }
.review-stars { color: #f59e0b; letter-spacing: 2px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-circle {
    position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px;
    background-color: #25D366; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 26px;
    text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 1020;
    animation: sm-pulse 1.8s infinite;
}
.whatsapp-circle:hover { color: #fff; }
@keyframes sm-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

#installBanner { animation: sm-slideUp 0.4s ease-out; }
@keyframes sm-slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* =========================================================
   TOAST
   ========================================================= */
.sm-toast-container {
    position: fixed; top: calc(var(--topbar-h) + 12px); right: 18px; z-index: 1060;
    display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.sm-toast {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--sm-surface); color: var(--sm-text);
    border: 1px solid var(--sm-border); border-left: 4px solid var(--sm-primary);
    border-radius: var(--sm-radius-sm); padding: 12px 14px; box-shadow: var(--sm-shadow-lg);
    opacity: 0; transform: translateX(30px); transition: opacity .25s ease, transform .25s ease; font-size: .9rem;
}
.sm-toast.show { opacity: 1; transform: translateX(0); }
.sm-toast i { margin-top: 2px; }
.sm-toast-success { border-left-color: #16a34a; }
.sm-toast-success i { color: #16a34a; }
.sm-toast-danger { border-left-color: #dc3545; }
.sm-toast-danger i { color: #dc3545; }
.sm-toast-info { border-left-color: var(--sm-primary); }
.sm-toast-info i { color: var(--sm-primary); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .sm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .theme-toggle-float { top: 12px; right: 12px; }
    .topbar-search { width: min(280px, 34vw); }
}

@media (max-width: 991.98px) {
    :root { --topbar-h: 58px; }

    .sidebar { transform: translateX(-100%); width: 260px !important; }
    .sidebar.open { transform: translateX(0); }
    body.sidebar-collapsed .sidebar .text,
    body.sidebar-collapsed .sidebar .sidebar-title,
    body.sidebar-collapsed .sidebar .user-info,
    body.sidebar-collapsed .sidebar .theme-toggle { display: revert; }
    body.sidebar-collapsed .sidebar .sidebar-item { justify-content: flex-start; padding: 9px 12px; }
    body.sidebar-collapsed .sidebar .user-box { flex-direction: row; padding: 10px; }

    .sm-topbar, body.sidebar-collapsed .sm-topbar { left: 0; padding: 0 12px; gap: 8px; }
    .mobile-menu-btn, .theme-toggle-top { display: inline-flex; }
    .collapse-btn { display: none; }
    .topbar-search { display: none; }
    .topbar-crumbs { margin-right: auto; }

    .main-content, body.sidebar-collapsed .main-content { margin-left: 0 !important; padding: 18px 14px 90px; }
    body.has-sidebar .main-content { padding-top: calc(var(--topbar-h) + 16px); }
    .footer, body.sidebar-collapsed .footer { margin-left: 0 !important; }

    .theme-toggle-float { display: none; }
    body:not(.has-sidebar) .theme-toggle-float { display: flex; }

    .hero { padding: 22px 20px; }
    .hero h2 { font-size: 1.35rem; }

    .notif-panel { position: fixed; top: calc(var(--topbar-h) + 6px); left: 10px; right: 10px; width: auto; max-width: none; }

    .whatsapp-circle { width: 48px; height: 48px; font-size: 22px; bottom: 16px; right: 16px; }

    .auth-shell { padding: 20px 12px; }
    .auth-card, .login-card, .register-card, .stats-card { padding: 22px; }

    .main-content .table { font-size: .84rem; }
    .main-content > .table { display: block; overflow-x: auto; white-space: nowrap; }

    .sm-toast-container { top: auto; bottom: 16px; right: 12px; left: 12px; max-width: none; }
    .sm-toast { transform: translateY(20px); }
    .sm-toast.show { transform: translateY(0); }
}

@media (max-width: 520px) {
    .sm-kpis { gap: 10px; }
    .sm-kpi { padding: 14px; }
    .sm-kpi-val { font-size: 1.35rem; }
    .sm-quick { grid-template-columns: 1fr; }
    .col-6.col-md-3 { flex: 0 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Celule de acțiuni marcate cu .d-flex în paginile vechi: rămân celule de tabel */
.main-content .table td.d-flex { display: table-cell !important; white-space: nowrap; }
.main-content .table td.d-flex > * + * { margin-left: 6px; }


/* =========================================================
   MENIU MOBIL — fix-uri telefon
   ========================================================= */
.sidebar { height: 100vh; height: 100dvh; }
.sidebar-close { display: none; }
.mobile-menu-btn, .sidebar-close, .sidebar-item, .logout-btn, .theme-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

@media (max-width: 991.98px) {
    .sidebar {
        width: min(280px, 84vw) !important;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        visibility: hidden;
        transition: transform .28s ease, visibility 0s linear .28s;
        box-shadow: none;
    }
    .sidebar.open {
        visibility: visible;
        transform: translateX(0);
        transition: transform .28s ease, visibility 0s;
        box-shadow: 4px 0 24px rgba(0,0,0,.35);
    }
    .sidebar-menu { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

    .sidebar-close {
        display: inline-flex; align-items: center; justify-content: center;
        position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px;
        width: 36px; height: 36px; border-radius: 9px;
        border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
        color: #cbd5e1; font-size: 18px; cursor: pointer; z-index: 2;
    }
    .sidebar-close:active { background: rgba(255,255,255,.16); }

    .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
    .sidebar-overlay.show { opacity: 1; pointer-events: auto; }

    .mobile-menu-btn { width: 42px; height: 42px; font-size: 18px; }

    /* corp blocat cât e meniul deschis + ascundem elementele flotante */
    body.sm-menu-open { overflow: hidden; }
    body.sm-menu-open .whatsapp-circle,
    body.sm-menu-open #installBanner { display: none !important; }
}


/* =========================================================
   PROCESE VERBALE — card-uri pe telefon (acțiuni sub date)
   ========================================================= */
.pv-table .pv-tel { color: inherit; text-decoration: none; }

@media (max-width: 767.98px) {
    .table-card:has(.pv-table) { background: transparent; box-shadow: none; border: 0; }
    .table-card .table-responsive:has(.pv-table) { overflow: visible; }

    .main-content .pv-table,
    .pv-table tbody { display: block; width: 100%; white-space: normal; font-size: .9rem; background: transparent; }
    .pv-table thead { display: none; }

    .pv-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 12px;
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid var(--sm-border);
        border-radius: 12px;
        background: var(--sm-surface);
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
    }
    .pv-table td {
        display: flex; justify-content: space-between; gap: 12px;
        grid-column: 1 / -1;
        padding: 3px 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        min-width: 0;
        text-align: right;
        word-break: break-word;
    }
    .pv-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--sm-text-muted);
        font-size: .78rem; font-weight: 600;
        text-transform: uppercase; letter-spacing: .03em;
        text-align: left;
    }

    /* Antet card: Serie (stânga) + Data (dreapta) */
    .pv-table td.pv-serie { grid-column: 1; font-weight: 800; font-size: 1rem; justify-content: flex-start; text-align: left; }
    .pv-table td.pv-data  { grid-column: 2; color: var(--sm-text-muted); font-size: .82rem; justify-content: flex-end; }
    .pv-table td.pv-serie::before, .pv-table td.pv-data::before { display: none; }
    .pv-table td.pv-nume { font-weight: 700; padding-top: 8px !important; margin-top: 4px; border-top: 1px solid var(--sm-border) !important; }
    .pv-table .pv-tel { color: var(--bs-primary); font-weight: 600; }

    /* Acțiunile — sub datele clientului, pe toată lățimea */
    .pv-table td.pv-actions {
        display: block;
        margin-top: 8px;
        padding-top: 12px !important;
        border-top: 1px solid var(--sm-border) !important;
    }
    .pv-table td.pv-actions::before { display: none; }
    .pv-table td.pv-actions .action-btns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        gap: 8px;
    }
    .pv-table td.pv-actions .action-btn { width: 100%; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
}

/* =========================================================
   TABELE → CARD-URI PE TELEFON (generic: table.sm-cards)
   Etichetele vin automat din <thead> (vezi layout/footer.php)
   ========================================================= */
@media (max-width: 767.98px) {
    .table-card:has(.sm-cards) { background: transparent; box-shadow: none; border: 0; overflow: visible; }
    .table-responsive:has(> .sm-cards) { overflow: visible; }

    .main-content table.sm-cards,
    table.sm-cards tbody { display: block; width: 100%; white-space: normal; font-size: .9rem; background: transparent; border: 0; }
    table.sm-cards thead { display: none; }

    table.sm-cards tr {
        display: block;
        margin-bottom: 12px;
        padding: 12px 14px;
        border: 1px solid var(--sm-border);
        border-radius: 12px;
        background: var(--sm-surface);
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
    }
    table.sm-cards td {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        padding: 4px 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: right;
        word-break: break-word;
        white-space: normal !important;
    }
    table.sm-cards td::before {
        content: attr(data-label);
        flex-shrink: 0;
        max-width: 45%;
        color: var(--sm-text-muted);
        font-size: .76rem; font-weight: 600;
        text-transform: uppercase; letter-spacing: .03em;
        text-align: left;
    }
    table.sm-cards td.sm-card-title {
        font-weight: 800; font-size: 1rem;
        padding-bottom: 8px !important; margin-bottom: 4px;
        border-bottom: 1px solid var(--sm-border) !important;
    }
    table.sm-cards td.sm-card-empty { display: none; }
    table.sm-cards td.sm-card-full { display: block; text-align: center; }
    table.sm-cards td.sm-card-full::before { display: none; }

    table.sm-cards td.sm-card-actions {
        display: block;
        margin-top: 8px;
        padding-top: 12px !important;
        border-top: 1px solid var(--sm-border) !important;
        text-align: left;
    }
    table.sm-cards td.sm-card-actions::before { display: none; }
    table.sm-cards td.sm-card-actions .action-btns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        gap: 8px;
    }
    table.sm-cards td.sm-card-actions .action-btn { width: 100%; height: 42px; }
    table.sm-cards td.sm-card-actions > .btn { width: 100%; }
    table.sm-cards td.sm-card-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
}

/* =========================================================
   SCANER NUMĂR → POPUP LOCAȚIE CUSTODIE
   ========================================================= */
.sm-scan {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(2, 6, 23, .72);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    padding: 16px;
}
.sm-scan.show { display: flex; }
body.sm-scan-open { overflow: hidden; }
body.sm-scan-open .whatsapp-circle, body.sm-scan-open #installBanner { display: none !important; }

.sm-scan-box {
    width: 100%; max-width: 520px; max-height: 100%;
    overflow-y: auto;
    background: var(--sm-surface); color: var(--sm-text);
    border-radius: 16px; padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.sm-scan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sm-scan-head b { font-size: 1.05rem; }
.sm-scan-x {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--sm-border);
    background: transparent; color: var(--sm-text-muted); font-size: 18px;
}

.sm-scan-cam {
    position: relative; width: 100%; aspect-ratio: 4 / 3;
    background: #000; border-radius: 12px; overflow: hidden;
}
.sm-scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-scan-guide {
    position: absolute; left: 7%; right: 7%; top: 50%;
    aspect-ratio: 4.6 / 1; transform: translateY(-50%);
    border: 3px solid #fff; border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.42);
    pointer-events: none;
}
.sm-scan-guide span {
    position: absolute; left: 0; right: 0; top: 50%; height: 2px;
    background: rgba(59,130,246,.9); box-shadow: 0 0 10px #3b82f6;
    animation: smScanLine 1.6s ease-in-out infinite;
}
@keyframes smScanLine { 0%,100% { transform: translateY(-14px); } 50% { transform: translateY(14px); } }
.sm-scan.busy .sm-scan-guide { border-color: #3b82f6; }
.sm-scan-hint {
    position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
    color: #fff; font-size: .82rem; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.sm-scan-nocam {
    position: absolute; inset: 0; display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: #cbd5e1; text-align: center; padding: 20px; font-size: .9rem;
}
.sm-scan-nocam i { font-size: 2rem; }
.sm-scan.no-cam .sm-scan-nocam { display: flex; }
.sm-scan.no-cam .sm-scan-guide, .sm-scan.no-cam .sm-scan-hint, .sm-scan.no-cam video { display: none; }

.sm-scan-status { min-height: 22px; margin: 10px 2px 6px; font-size: .9rem; color: var(--sm-text-muted); }
.sm-scan-status.warn { color: #d97706; }
.sm-scan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sm-chip {
    border: 1px solid var(--sm-border); background: var(--sm-bg); color: var(--sm-text);
    border-radius: 999px; padding: 4px 12px; font-weight: 700; letter-spacing: .04em;
}
.sm-scan-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.sm-scan-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sm-scan.busy .sm-scan-shot { opacity: .6; pointer-events: none; }
.sm-scan-manual { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sm-scan-manual input { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }

/* Popup rezultat */
.sm-scan-result {
    display: none;
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: calc(100% - 32px); max-width: 440px; max-height: calc(100% - 32px); overflow-y: auto;
    background: var(--sm-surface); color: var(--sm-text);
    border-radius: 18px; padding: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
    animation: smPop .18s ease-out;
}
@keyframes smPop { from { transform: translate(-50%, -46%) scale(.96); opacity: 0; } }
.sm-scan.has-result .sm-scan-result { display: block; }
.sm-scan.has-result .sm-scan-box { visibility: hidden; }

.sm-plate {
    display: inline-block; padding: 4px 14px 4px 30px; position: relative;
    background: #fff; color: #111; border: 2px solid #111; border-radius: 6px;
    font-weight: 800; letter-spacing: .08em; font-size: 1.15rem;
}
.sm-plate::before {
    content: "RO"; position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
    background: #003399; color: #fff; font-size: .55rem; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px;
}
.sm-res-plate { text-align: center; margin-bottom: 14px; }
.sm-res-icon { text-align: center; font-size: 2.6rem; color: #f59e0b; }
.sm-scan-result h4 { text-align: center; font-size: 1.1rem; margin: 8px 0; }

.sm-loc {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    padding: 12px; border-radius: 14px; margin-bottom: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
}
.sm-loc.zona-ext      { background: linear-gradient(135deg, #059669, #0d9488); }
.sm-loc.zona-galben   { background: linear-gradient(135deg, #d97706, #eab308); }
.sm-loc.zona-albastru { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.sm-loc-cell { text-align: center; background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px 8px; }
.sm-loc-cell small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sm-loc-cell b { display: block; font-size: clamp(1.1rem, 5.4vw, 1.6rem); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 480px) { .sm-loc:not(.sm-loc-none) { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sm-loc-cell b { font-size: 1.35rem; } }
.sm-loc.sm-loc-none { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--sm-bg); color: var(--sm-text-muted); border: 1px dashed var(--sm-border); }

.sm-res-info { display: grid; gap: 6px; font-size: .92rem; margin-bottom: 14px; }
.sm-res-info i { width: 18px; color: var(--sm-text-muted); }
.sm-res-more { margin-bottom: 14px; font-size: .88rem; }
.sm-res-more summary { cursor: pointer; color: var(--bs-primary); }
.sm-res-row { padding: 8px 0; border-bottom: 1px solid var(--sm-border); }
.sm-res-ok { font-weight: 800; letter-spacing: .05em; }

@media (max-width: 576px) {
    .sm-scan { padding: 0; align-items: stretch; }
    .sm-scan-box { max-width: none; border-radius: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); padding-top: calc(12px + env(safe-area-inset-top)); }
    .sm-scan-cam { aspect-ratio: 3 / 4; max-height: 56vh; }
}

/* Buton scanare în bara de sus */
.topbar-btn.scan-btn { color: var(--bs-primary); }
@media (max-width: 767.98px) {
    .main-content table.sm-cards td.d-flex { display: flex !important; }
    .main-content table.sm-cards td.d-flex.sm-card-actions { display: block !important; }
}

/* =========================================================
   CĂUTARE ÎN MENIUL LATERAL (desktop + telefon)
   ========================================================= */
.sidebar-search {
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    margin: 4px 12px 10px; padding: 0 6px 0 12px; height: 42px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #8796ab;
    transition: border-color .15s, background .15s;
}
.sidebar-search:focus-within { border-color: #4d94ff; background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(77,148,255,.18); }
.sidebar-search > i { font-size: .85rem; flex-shrink: 0; }
.sidebar-search input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    color: #fff; font-size: .86rem;
    -webkit-appearance: none; appearance: none;
}
.sidebar-search input::placeholder { color: #8796ab; }
.sidebar-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.sidebar-search-scan {
    flex-shrink: 0; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px;
    background: rgba(77,148,255,.18); color: #8ab8ff; font-size: .9rem;
    cursor: pointer; touch-action: manipulation;
}
.sidebar-search-scan:hover, .sidebar-search-scan:active { background: #3b82f6; color: #fff; }

/* sidebar restrâns (desktop): doar iconița de căutare */
body.sidebar-collapsed .sidebar .sidebar-search { margin: 4px 10px 10px; padding: 0; justify-content: center; cursor: pointer; }
body.sidebar-collapsed .sidebar .sidebar-search input,
body.sidebar-collapsed .sidebar .sidebar-search .sidebar-search-scan { display: none; }

@media (max-width: 991.98px) {
    /* pe telefon meniul nu e niciodată „restrâns” */
    body.sidebar-collapsed .sidebar .sidebar-search { margin: 4px 12px 10px; padding: 0 6px 0 12px; justify-content: flex-start; }
    body.sidebar-collapsed .sidebar .sidebar-search input { display: block; }
    body.sidebar-collapsed .sidebar .sidebar-search .sidebar-search-scan { display: inline-flex; }
    .sidebar-search { height: 46px; margin-top: 8px; }
    .sidebar-search input { font-size: 16px; } /* 16px = iOS nu mai face zoom la focus */
}
