/* Reputation Manager — stiluri */

:root {
    --bg:            #f4f5f7;
    --surface:       #ffffff;
    --surface-alt:   #f8f9fb;
    --border:        #e3e5ea;
    --text:          #1c1f26;
    --text-muted:    #6b7280;
    --accent:        #2f5fd8;
    --accent-soft:   #eaf0ff;
    --positive:      #0f8a4d;
    --positive-soft: #e6f5ed;
    --neutral:       #9a6a00;
    --neutral-soft:  #fdf3e0;
    --negative:      #c62828;
    --negative-soft: #fdecec;
    --star:          #e8a317;
    --radius:        10px;
    --shadow:        0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --sidebar-w:     236px;
    --sidebar-icon-w: 60px;
    --panel-radius:  14px;

    /* Controalele native (input, select, scrollbar) urmează tema paginii. */
    color-scheme: light dark;
}

/*
 * Tema: `<html data-theme="system|light|dark">`, pusă din preferința contului.
 *
 * `system` (și vizitatorii nelogați) urmează sistemul de operare; `light` și
 * `dark` îl suprascriu. De aceea blocul de sistem exclude explicit tema
 * deschisă — altfel un utilizator care a ales „light" ar primi tot întuneric
 * pe un laptop setat pe dark.
 */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg:            #14161a;
        --surface:       #1c1f25;
        --surface-alt:   #22262e;
        --border:        #2e333c;
        --text:          #e7e9ee;
        --text-muted:    #9aa1ae;
        --accent:        #6f96f5;
        --accent-soft:   #1e2740;
        --positive:      #4ade80;
        --positive-soft: #16281f;
        --neutral:       #e0b050;
        --neutral-soft:  #2c2413;
        --negative:      #f87171;
        --negative-soft: #2e1a1a;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg:            #14161a;
    --surface:       #1c1f25;
    --surface-alt:   #22262e;
    --border:        #2e333c;
    --text:          #e7e9ee;
    --text-muted:    #9aa1ae;
    --accent:        #6f96f5;
    --accent-soft:   #1e2740;
    --positive:      #4ade80;
    --positive-soft: #16281f;
    --neutral:       #e0b050;
    --neutral-soft:  #2c2413;
    --negative:      #f87171;
    --negative-soft: #2e1a1a;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

/*
 * Shell „inset", ca în proiectul `seo`: bara laterală stă direct pe fundalul
 * paginii, fără chenar și fără fundal propriu, iar conținutul e un panou
 * rotunjit care plutește peste el.
 */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    transition: width .15s ease;
}

.brand-mark { color: var(--star); }

.sidebar nav { display: flex; flex-direction: column; gap: 16px; flex: 1; overflow-y: auto; }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-label {
    margin: 0 0 2px; padding: 0 10px;
    font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    color: var(--text-muted);
}

.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 10px; border-radius: 8px;
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    text-decoration: none;
}
.nav-item:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.badge {
    margin-left: auto;
    background: var(--negative); color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
}

.sidebar-footer { padding-top: 10px; }
/* ── Meniul contului (model: NavUser din proiectul `seo`) ────────────────── */

.account { position: relative; }

.account-trigger {
    display: flex; align-items: center; gap: 9px;
    padding: 8px; border-radius: var(--radius);
    color: var(--text); font-size: 14px; cursor: pointer;
    list-style: none; user-select: none;
}
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger::marker { content: ''; }
.account-trigger:hover { background: var(--surface-alt); }
.account[open] > .account-trigger { background: var(--accent-soft); color: var(--accent); }

.account-id { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.account-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-email { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account[open] > .account-trigger .account-email { color: inherit; opacity: .8; }
.account-chevron { flex-shrink: 0; opacity: .6; }

.avatar {
    display: grid; place-items: center; flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--surface-alt); border: 1px solid var(--border);
    color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .3px;
}

.account-menu {
    position: absolute; bottom: calc(100% + 6px); left: 0;
    min-width: max(100%, 224px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
    padding: 4px; z-index: 30;
}

.account-head { display: flex; align-items: center; gap: 9px; padding: 8px; }
.account-sep { height: 1px; background: var(--border); margin: 4px -4px; }

.account-item {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 8px; border-radius: 8px;
    background: none; border: none; font: inherit; font-size: 14px;
    color: var(--text); text-align: left; cursor: pointer;
}
.account-item:hover { background: var(--surface-alt); text-decoration: none; }
.account-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.account-item svg { flex-shrink: 0; }

/* ── Alegerea temei (model: AppearanceTabs din proiectul `seo`) ──────────── */

.appearance-tabs {
    display: inline-flex; gap: 4px;
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: 10px; padding: 4px;
}
.appearance-tab {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 7px;
    background: none; border: none; font: inherit; font-size: 13px;
    color: var(--text-muted); cursor: pointer; transition: background .12s, color .12s;
}
.appearance-tab:hover { color: var(--text); }
.appearance-tab.active {
    background: var(--surface); color: var(--text); font-weight: 600;
    box-shadow: var(--shadow);
}
.appearance-tab svg { flex-shrink: 0; }

/* ── Bara de sus a panoului ──────────────────────────────────────────────── */

.topbar {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 14px;
    border-bottom: 1px solid var(--border);
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    background: var(--surface);
}

.topbar-toggle {
    display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: none; border: none; color: var(--text-muted); cursor: pointer;
}
.topbar-toggle:hover { background: var(--surface-alt); color: var(--text); }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.crumbs a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumb-sep { color: var(--text-muted); opacity: .5; }
.crumb-current { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.main {
    margin: 8px 8px 8px var(--sidebar-w);
    min-height: calc(100vh - 16px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow);
    transition: margin-left .15s ease;
}
.main-body { padding: 24px 28px 56px; max-width: 1280px; }
/* Paginile-tabel (recenziile) nu au de ce să se oprească la 1280px: coloanele
   sunt multe, iar comentariul câștigă tot spațiul rămas. */
.main-body-wide { max-width: none; }
.main-body-wide .cell-comment { max-width: none; width: 100%; }
.main-bare { display: grid; place-items: center; min-height: 100vh; padding: 24px; }

/* Bara strânsă: rămân doar iconițele, ca `collapsible="icon"` din `seo`. */
body.sidebar-collapsed .sidebar { width: var(--sidebar-icon-w); }
body.sidebar-collapsed .main { margin-left: var(--sidebar-icon-w); }
body.sidebar-collapsed .nav-group-label,
body.sidebar-collapsed .nav-item span:not(.badge),
body.sidebar-collapsed .switcher-id,
body.sidebar-collapsed .switcher-chevron,
body.sidebar-collapsed .account-id,
body.sidebar-collapsed .account-chevron { display: none; }
body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .switcher-trigger,
body.sidebar-collapsed .account-trigger { justify-content: center; padding: 8px; position: relative; }
body.sidebar-collapsed .nav-item .badge {
    position: absolute; top: 2px; right: 2px; margin: 0;
    min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px;
}
body.sidebar-collapsed .switcher-menu,
body.sidebar-collapsed .account-menu { left: 0; min-width: 240px; }

.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.4px; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 14px; }

h2 { font-size: 16px; margin: 0 0 14px; letter-spacing: -.2px; }

/* ── Carduri ─────────────────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-head {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h2 { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 660; letter-spacing: -.8px; margin-top: 6px; }
.stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Tabele ──────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
    text-align: left; padding: 11px 16px;
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-muted); font-weight: 650;
    background: var(--surface-alt); border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-alt); }

.cell-comment { max-width: 460px; }
.cell-nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }

/* ── Elemente specifice ──────────────────────────────────────────────────── */

.stars { color: var(--star); letter-spacing: 2px; white-space: nowrap; font-size: 14px; }

.pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 20px;
    font-size: 11.5px; font-weight: 640; letter-spacing: .2px;
    white-space: nowrap;
}
.pill-positive { background: var(--positive-soft); color: var(--positive); }
.pill-neutral  { background: var(--neutral-soft);  color: var(--neutral); }
.pill-negative { background: var(--negative-soft); color: var(--negative); }
.pill-default  { background: var(--surface-alt);   color: var(--text-muted); border: 1px solid var(--border); }
.pill-accent   { background: var(--accent-soft);   color: var(--accent); }

.quote {
    border-left: 3px solid var(--border);
    padding: 2px 0 2px 14px;
    color: var(--text);
    white-space: pre-wrap;
}
.reply-box {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ── Formulare & butoane ─────────────────────────────────────────────────── */

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--text-muted); font-weight: 400; margin-top: 5px; }

input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.check label { margin: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent; border-radius: 8px;
    background: var(--accent); color: #fff;
    font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); filter: none; }
.btn-danger { background: var(--negative); }
.btn-success { background: var(--positive); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.filters {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px; align-items: end;
}

/* ── Flash & goale ───────────────────────────────────────────────────────── */

.flashes { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.flash {
    padding: 12px 16px; border-radius: 8px; font-size: 14px;
    border-left: 3px solid;
}
.flash-success { background: var(--positive-soft); color: var(--positive); border-color: var(--positive); }
.flash-error   { background: var(--negative-soft); color: var(--negative); border-color: var(--negative); }
.flash-warning { background: var(--neutral-soft);  color: var(--neutral);  border-color: var(--neutral); }

.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-icon { font-size: 34px; margin-bottom: 10px; opacity: .55; }

.notice {
    background: var(--neutral-soft); color: var(--neutral);
    border: 1px solid currentColor; border-radius: 8px;
    padding: 14px 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 20px;
}
.notice strong { display: block; margin-bottom: 3px; }
.notice a { color: inherit; text-decoration: underline; }

/* ── Distribuție rating ──────────────────────────────────────────────────── */

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 50px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 8px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--star); border-radius: 5px; }

/* ── Graficul recenziilor pe zi ──────────────────────────────────────────── */

.chart-head { flex-wrap: wrap; align-items: flex-end; }
.chart-range { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.chart-range-field { display: flex; flex-direction: column; gap: 2px; }
.chart-range-field input {
    padding: 5px 8px; font-size: 12.5px; border: 1px solid var(--border);
    border-radius: 7px; background: var(--surface); color: var(--text);
}
.chart-body { padding: 16px 18px 18px; }
.chart-summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13.5px; }
.chart-summary strong { font-size: 20px; }
.chart { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.chart-scale {
    display: flex; flex-direction: column; justify-content: space-between;
    height: 170px; text-align: right; font-size: 11.5px; color: var(--text-muted);
}
.chart-scroll { overflow-x: auto; }
.chart-plot {
    display: flex; align-items: flex-end; gap: 2px; height: 170px;
    padding: 18px 2px 0; border-bottom: 1px solid var(--border); background:
        linear-gradient(var(--border), var(--border)) 0 33.3% / 100% 1px no-repeat,
        linear-gradient(var(--border), var(--border)) 0 66.6% / 100% 1px no-repeat;
}
.chart-col { flex: 1 1 20px; min-width: 20px; height: 100%; display: flex; align-items: flex-end; }
.chart-bar {
    position: relative; width: 100%; min-height: 2px;
    border-radius: 3px 3px 0 0; background: var(--accent);
}
.chart-bar.is-empty { background: var(--border); }
.chart-value {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    padding-bottom: 3px; font-size: 11px; line-height: 1; color: var(--text-muted);
}
.chart-bar.is-empty .chart-value { opacity: .5; }
.chart-col:hover .chart-bar { background: var(--text); }
.chart-col:hover .chart-value { color: var(--text); font-weight: 600; }
.chart-axis { display: flex; justify-content: space-between; margin: 6px 0 0 42px; font-size: 11.5px; color: var(--text-muted); }

/* ── Login ───────────────────────────────────────────────────────────────── */

.login-card { width: 100%; max-width: 380px; }
.login-card .brand { justify-content: center; padding-bottom: 6px; font-size: 18px; }
.login-sub { text-align: center; color: var(--text-muted); font-size: 13.5px; margin: 0 0 22px; }

/* ── Paginare ────────────────────────────────────────────────────────────── */

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 6px 11px; border-radius: 7px; font-size: 13px;
    border: 1px solid var(--border); color: var(--text-muted); text-decoration: none;
}
.pagination a:hover { background: var(--surface-alt); text-decoration: none; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ── Adăugiri pentru Laravel ─────────────────────────────────────────────── */

/* Buton care arată ca un link (folosit pentru „Ieșire", care e un POST) */
.btn-link {
    background: none; border: none; padding: 0;
    color: var(--accent); font: inherit; font-size: 12px;
    cursor: pointer; text-align: left;
}
.btn-link:hover { text-decoration: underline; }

.code-block {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0 0 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.context { margin-top: 3px; font-family: ui-monospace, monospace; font-size: 11.5px; }

/* Paginarea implicită Laravel (Tailwind-flavoured) — o readucem la stilul aplicației */
.pagination-wrap { padding: 12px 16px; border-top: 1px solid var(--border); }
.pagination-wrap nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagination-wrap svg { width: 16px; height: 16px; }
.pagination-wrap p, .pagination-wrap .text-sm { font-size: 13px; color: var(--text-muted); margin: 0; }
.pagination-wrap a, .pagination-wrap span[aria-current], .pagination-wrap span[aria-disabled] {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; padding: 6px 11px; margin: 2px;
    border: 1px solid var(--border); border-radius: 7px;
    font-size: 13px; color: var(--text-muted); text-decoration: none;
}
.pagination-wrap a:hover { background: var(--surface-alt); text-decoration: none; }
.pagination-wrap span[aria-current] > span,
.pagination-wrap span[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pagination-wrap span[aria-disabled] { opacity: .45; }
/* Ascunde varianta mobilă duplicată din markup-ul Laravel */
.pagination-wrap .hidden { display: none; }
.pagination-wrap .sm\:hidden { display: none; }

/* ── Comutatorul de companie (model: WorkspaceSwitcher din `seo`) ────────── */

.switcher { position: relative; margin-bottom: 16px; }

.switcher-trigger {
    display: flex; align-items: center; gap: 9px;
    padding: 8px; border-radius: var(--radius);
    color: var(--text); font-size: 14px; cursor: pointer;
    list-style: none; user-select: none;
}
.switcher-trigger::-webkit-details-marker { display: none; }
.switcher-trigger::marker { content: ''; }
.switcher-trigger:hover { background: var(--surface-alt); }
.switcher[open] > .switcher-trigger { background: var(--accent-soft); color: var(--accent); }

.switcher-mark {
    display: grid; place-items: center; flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--accent); color: #fff;
}

.switcher-id { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.switcher-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-role { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher[open] > .switcher-trigger .switcher-role { color: inherit; opacity: .8; }
.switcher-chevron { flex-shrink: 0; opacity: .6; }

.switcher-menu {
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: max(100%, 256px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
    padding: 4px; z-index: 30;
}

.switcher-label {
    margin: 0; padding: 8px 8px 6px;
    font-size: 12px; color: var(--text-muted);
}

.switcher-item {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 7px 8px; border-radius: 8px;
    background: none; border: none; font: inherit; font-size: 14px;
    color: var(--text); text-align: left; cursor: pointer;
}
.switcher-item:hover { background: var(--surface-alt); text-decoration: none; }
.switcher-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-new .switcher-item-name { color: var(--text-muted); }

.switcher-tile {
    display: grid; place-items: center; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 6px;
    border: 1px solid var(--border); color: var(--text);
}
.switcher-check { flex-shrink: 0; opacity: .8; }

/* Rating-ul mare de pe cardul de companie */
.rating-lead { display: flex; align-items: baseline; gap: 8px; }
.rating-lead .value { font-size: 26px; font-weight: 660; letter-spacing: -.6px; }
.role-note { font-size: 12.5px; color: var(--text-muted); }

/* Acțiunea în masă de sub filtre */
.bulk-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}

/* Limba cerută la regenerare: câmp propriu, deasupra rândului de acțiuni */
.regenerate-field { max-width: 260px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .sidebar {
        position: static; width: auto; flex-direction: row; align-items: center;
        border-bottom: 1px solid var(--border);
        padding: 8px 10px; gap: 10px; overflow-x: auto;
    }
    .sidebar nav { flex-direction: row; gap: 4px; flex: 1; overflow: visible; }
    .nav-group { flex-direction: row; }
    .nav-group-label { display: none; }
    .nav-item span:not(.badge) { display: none; }
    .sidebar-footer { padding-top: 0; display: flex; align-items: center; gap: 8px; }
    .switcher { margin-bottom: 0; }
    .switcher-id, .switcher-chevron { display: none; }
    .switcher-trigger { padding: 4px; }
    .switcher-menu { min-width: 256px; }
    .account { margin-top: 0; }
    .account-id, .account-chevron { display: none; }
    .account-trigger { padding: 4px; background: none; }
    .account-menu { bottom: auto; top: calc(100% + 10px); left: auto; right: 0; width: 260px; }

    /* Panoul ocupă toată lățimea; toggle-ul de bară nu are sens aici. */
    .main { margin: 0; min-height: 0; border: none; border-radius: 0; box-shadow: none; }
    .main-body { padding: 20px 16px 48px; }
    .topbar { border-radius: 0; }
    .topbar-toggle { display: none; }
}
