/* =====================================================================
   CRM Light IT — Design System v2
   Look CRM/ERP profesional. Indigo + slate. Iconuri, taburi, KPI.
   ===================================================================== */

:root {
    /* Suprafețe */
    --bg:        #f6f7f9;
    --surface:   #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f4f8;
    --border:    #e7eaef;
    --border-2:  #eef1f5;

    /* Text */
    --text:      #111827;
    --text-soft: #586173;
    --text-mute: #98a2b3;

    /* Sidebar (slate închis) */
    --side-bg:      #0f172a;
    --side-bg-2:    #1e293b;
    --side-text:    #94a3b8;
    --side-mute:    #64748b;
    --side-active-bg: rgba(99,102,241,.16);
    --side-active:  #ffffff;

    /* Accente */
    --primary:     #4f46e5;
    --primary-600: #4338ca;
    --primary-50:  #eef2ff;
    --primary-100: #e0e7ff;

    /* Semantică */
    --green:   #059669;  --green-bg:  #ecfdf5;  --green-bd: #a7f3d0;
    --red:     #e11d48;  --red-bg:    #fff1f3;  --red-bd:   #fecdd3;
    --amber:   #d97706;  --amber-bg:  #fffbeb;  --amber-bd: #fde68a;
    --blue:    #2563eb;  --blue-bg:   #eff6ff;  --blue-bd:  #bfdbfe;
    --violet:  #7c3aed;  --violet-bg: #f5f3ff;  --violet-bd:#ddd6fe;
    --gray:    #64748b;  --gray-bg:   #f1f5f9;  --gray-bd:  #e2e8f0;

    /* Forme */
    --radius:    12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(16,24,40,.04);
    --shadow:    0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
    --shadow-md: 0 8px 24px rgba(16,24,40,.10);
    --shadow-lg: 0 16px 48px rgba(16,24,40,.14);

    /* Tipografie */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

    --sidebar-w: 256px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
.mono, code { font-family: var(--mono); }
.ic { display: block; flex-shrink: 0; }

/* Brand mark */
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em;
    font-family: var(--mono);
    box-shadow: 0 2px 8px rgba(99,102,241,.35);
}
.brand-mark-lg { width: 52px; height: 52px; font-size: 17px; border-radius: 14px; }

/* =====================================================================
   GUEST (login)
   ===================================================================== */
.guest-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(820px 460px at 88% -8%, rgba(99,102,241,.10), transparent),
        radial-gradient(680px 460px at 6% 108%, rgba(16,185,129,.08), transparent),
        var(--bg);
    padding: 24px;
}
.guest-wrap { width: 100%; max-width: 420px; }
.login-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 34px 32px;
}
.login-head { text-align: center; margin-bottom: 26px; }
.login-head .brand-mark { margin: 0 auto 16px; }
.login-title { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.login-sub { color: var(--text-soft); margin: 5px 0 0; }
.login-submit { width: 100%; margin-top: 8px; padding: 11px; font-size: 14px; }

/* =====================================================================
   SHELL
   ===================================================================== */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: var(--sidebar-w); }
.app-content { flex: 1; padding: 26px 30px; max-width: 1380px; width: 100%; }

/* Sidebar */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
    background: var(--side-bg); display: flex; flex-direction: column; z-index: 40;
    border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 11px;
    padding: 18px 18px 14px; color: #fff;
}
.sidebar-brand .brand-text { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 12px; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

.nav-group-label {
    padding: 14px 12px 6px; font-size: 10.5px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--side-mute);
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 11px; border-radius: var(--radius-sm);
    color: var(--side-text); font-weight: 500; font-size: 13.5px;
    transition: background .12s, color .12s; position: relative;
}
.nav-item .ic { color: var(--side-mute); transition: color .12s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.nav-item:hover .ic { color: #cbd5e1; }
.nav-item.active { background: var(--side-active-bg); color: #fff; font-weight: 600; }
.nav-item.active .ic { color: #a5b4fc; }
.nav-item.active::before {
    content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; background: #818cf8; border-radius: 0 3px 3px 0;
}

.sidebar-foot { padding: 10px 12px 14px; border-top: 1px solid rgba(255,255,255,.06); }
.nav-logout { color: var(--side-text); }
.nav-logout:hover { background: rgba(244,63,94,.12); color: #fda4af; }
.nav-logout:hover .ic { color: #fb7185; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 35; }
.sidebar-overlay.show { display: block; }

/* Topbar */
.topbar {
    height: 62px; background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px; padding: 0 24px;
    position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.topbar-search {
    display: flex; align-items: center; gap: 8px; flex: 1; max-width: 380px;
    background: var(--surface-3); border: 1px solid transparent;
    border-radius: var(--radius-pill); padding: 7px 14px; color: var(--text-mute);
    transition: border-color .12s, background .12s;
}
.topbar-search:focus-within { background: #fff; border-color: var(--primary-100); box-shadow: 0 0 0 3px var(--primary-50); }
.topbar-search input { border: 0; background: none; outline: none; flex: 1; font-family: inherit; font-size: 13.5px; color: var(--text); }
.topbar-spacer { flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-soft); display: inline-flex;
    align-items: center; justify-content: center; cursor: pointer; position: relative;
    transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 10px; cursor: default; }
.user-chip:hover { background: var(--surface-2); }
.user-meta { line-height: 1.2; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { font-size: 11.5px; color: var(--text-mute); }

.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.avatar-green  { background: linear-gradient(135deg,#10b981,#059669); }
.avatar-amber  { background: linear-gradient(135deg,#f59e0b,#d97706); }
.avatar-violet { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.avatar-rose   { background: linear-gradient(135deg,#fb7185,#e11d48); }

.topbar-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.topbar-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* =====================================================================
   PAGE HEAD
   ===================================================================== */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.page-head .sub { color: var(--text-soft); margin: 3px 0 0; font-size: 13.5px; }
.page-head-actions { display: flex; gap: 9px; align-items: center; }

.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--text-mute); font-size: 12.5px; margin-bottom: 10px; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--text-soft); }
.breadcrumb .ic { color: var(--text-mute); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--border-2); }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 650; }

/* =====================================================================
   BUTONS
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: background .12s, border-color .12s, box-shadow .12s, color .12s; white-space: nowrap;
}
.btn .ic { margin: -1px 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.35); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #be123c; color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-icon { padding: 7px; width: 34px; height: 34px; }

/* =====================================================================
   BADGES
   ===================================================================== */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; line-height: 1.5;
    border: 1px solid transparent;
}
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green  { background: var(--green-bg);  color: var(--green);  border-color: var(--green-bd); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border-color: var(--red-bd); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber);  border-color: var(--amber-bd); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);   border-color: var(--blue-bd); }
.badge-violet { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-bd); }
.badge-gray   { background: var(--gray-bg);   color: var(--gray);   border-color: var(--gray-bd); }

.code-tag { font-family: var(--mono); font-size: 12px; color: var(--text-soft); background: var(--surface-3); border: 1px solid var(--border-2); padding: 2px 8px; border-radius: 6px; font-weight: 500; }

/* =====================================================================
   KPI / STAT CARDS
   ===================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-xs); padding: 18px; display: flex; align-items: center; gap: 14px;
    transition: box-shadow .15s, transform .15s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-meta { min-width: 0; }
.stat-value { font-size: 26px; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-soft); font-size: 12.5px; margin-top: 3px; }

.tone-green  { background: var(--green-bg);  color: var(--green); }
.tone-red    { background: var(--red-bg);    color: var(--red); }
.tone-amber  { background: var(--amber-bg);  color: var(--amber); }
.tone-blue   { background: var(--blue-bg);   color: var(--blue); }
.tone-violet { background: var(--violet-bg); color: var(--violet); }
.tone-gray   { background: var(--gray-bg);   color: var(--gray); }
.tone-primary{ background: var(--primary-50);color: var(--primary); }

/* =====================================================================
   TABELE
   ===================================================================== */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left; padding: 12px 18px; background: var(--surface-2);
    border-bottom: 1px solid var(--border); color: var(--text-mute);
    font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--surface-2); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .12s; }
table.data tbody tr:hover .row-actions { opacity: 1; }
.cell-main { font-weight: 600; color: var(--text); }
.cell-sub { color: var(--text-mute); font-size: 12.5px; }
.td-user { display: flex; align-items: center; gap: 9px; }

/* Toolbar filtre */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; min-width: 240px; color: var(--text-mute); }
.toolbar .search-box input { border: 0; outline: none; background: none; flex: 1; font-family: inherit; font-size: 13.5px; color: var(--text); }
.toolbar .toolbar-right { margin-left: auto; display: flex; gap: 9px; }

/* =====================================================================
   FORMS
   ===================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 0; }
.field label { display: block; font-weight: 550; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.field label .req { color: var(--red); }
.input, .select, .textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 13.5px; color: var(--text); background: var(--surface);
    transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.textarea { resize: vertical; min-height: 84px; }
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; }
.field-hint { color: var(--text-mute); font-size: 12px; margin-top: 5px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-2); }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--gray-bd); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }

/* =====================================================================
   TABURI (pagină client etc.)
   ===================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab {
    padding: 11px 14px; font-size: 13.5px; font-weight: 550; color: var(--text-soft);
    border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .tab-count { background: var(--surface-3); color: var(--text-soft); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Detalii cheie-valoare */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; }
.detail-item .dlabel { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.detail-item .dvalue { font-size: 14px; color: var(--text); font-weight: 500; }
.detail-item .dvalue a { color: var(--primary); }
.detail-item .dvalue.empty { color: var(--text-mute); font-weight: 400; }

/* Mini cards rezumat (overview client) */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 12px; margin-bottom: 20px; }
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.mini-card .mv { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-card .ml { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* Contacte */
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.contact-row:last-child { border-bottom: 0; }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.contact-meta { color: var(--text-mute); font-size: 12.5px; margin-top: 2px; display: flex; gap: 14px; flex-wrap: wrap; }
.contact-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* =====================================================================
   ALERTE
   ===================================================================== */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: #047857; border-color: var(--green-bd); }
.alert-error   { background: var(--red-bg);   color: #be123c; border-color: var(--red-bd); }
.alert-info    { background: var(--blue-bg);  color: #1d4ed8; border-color: var(--blue-bd); }
.alert-warning { background: var(--amber-bg); color: #b45309; border-color: var(--amber-bd); }
.alert-close { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; opacity: .55; }
.alert-close:hover { opacity: 1; }

/* =====================================================================
   EMPTY STATES
   ===================================================================== */
.empty-state { text-align: center; padding: 52px 20px; }
.empty-state .empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-3); color: var(--text-mute); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.empty-state h4 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.empty-state p { margin: 0 0 16px; color: var(--text-soft); }

/* Setup / welcome (Pasul 1) */
.setup-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; }
.setup-card-sm { text-align: center; }
.setup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.setup-title { font-size: 20px; margin: 0; font-weight: 700; }
.setup-sub { margin: 2px 0 0; color: var(--text-soft); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--surface-2); }
.check strong { display: block; font-size: 13.5px; }
.check small { color: var(--text-soft); }
.check-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.check.ok .check-icon  { background: var(--green-bg); color: var(--green); }
.check.err .check-icon { background: var(--red-bg);   color: var(--red); }
.setup-error { margin-top: 10px; padding: 10px 12px; background: var(--red-bg); border: 1px solid var(--red-bd); border-radius: var(--radius-sm); color: #be123c; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.setup-next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-2); color: var(--text-soft); font-size: 13.5px; }
.error-code { font-size: 56px; font-weight: 800; margin: 0 0 4px; color: var(--primary); font-family: var(--mono); }

/* Utilitare */
.muted { color: var(--text-mute); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 8px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
    .app-main { margin-left: 0; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .topbar-burger { display: flex; }
    .topbar-search { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .user-meta { display: none; }
}

/* =====================================================================
   PIPELINE (kanban leaduri)
   ===================================================================== */
.pipeline { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.pipe-col { flex: 0 0 280px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 200px); }
.pipe-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.pipe-head .pt { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; }
.pipe-head .pcount { background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.pipe-sum { padding: 0 14px 8px; font-size: 11.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.pipe-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.pipe-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; box-shadow: var(--shadow-xs); cursor: pointer; transition: box-shadow .12s, transform .12s; }
.lead-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.lead-card .lc-title { font-weight: 600; font-size: 13px; line-height: 1.3; }
.lead-card .lc-sub { color: var(--text-mute); font-size: 12px; margin-top: 2px; }
.lead-card .lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.lead-card .lc-value { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); }
.lead-card .lc-move { margin-top: 9px; }
.lead-card .lc-move select { width: 100%; font-size: 11.5px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text-soft); font-family: inherit; }
.interest-rece { background: var(--blue); } .interest-cald { background: var(--amber); } .interest-fierbinte { background: var(--red); }

.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle a { padding: 7px 12px; font-size: 13px; color: var(--text-soft); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; }
.view-toggle a.active { background: var(--primary); color: #fff; }

/* =====================================================================
   TASKURI
   ===================================================================== */
.task-card .lc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.task-card .tmeta { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-mute); }
.task-card .tmeta.overdue { color: var(--red); font-weight: 600; }
.prio-bar { width: 3px; align-self: stretch; border-radius: 3px; margin: -11px 4px -11px -12px; }
.prio-critic { background: var(--red); } .prio-mare { background: var(--amber); }
.prio-normal { background: var(--gray-bd); } .prio-mic { background: var(--gray-bd); }
.task-card { display: flex; }
.task-card .tc-body { flex: 1; min-width: 0; }

.timer-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; flex-wrap: wrap; }
.timer-idle { background: var(--surface); border: 1px solid var(--border); }
.timer-active { background: linear-gradient(135deg, #ecfdf5, #fff); border: 1px solid var(--green-bd); }
.timer-left { display: flex; align-items: center; gap: 12px; }
.timer-clock { font-family: var(--mono); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.timer-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(5,150,105,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(5,150,105,.5);} 70%{box-shadow:0 0 0 8px rgba(5,150,105,0);} 100%{box-shadow:0 0 0 0 rgba(5,150,105,0);} }

.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-2); }
.check-item:last-child { border-bottom: 0; }
.check-item form.cbtn { display: inline-flex; }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: transparent; flex-shrink: 0; }
.check-box.done { background: var(--green); border-color: var(--green); color: #fff; }
.check-label { flex: 1; font-size: 13.5px; }
.check-label.done { text-decoration: line-through; color: var(--text-mute); }
.progress { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin: 4px 0 14px; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }

.review-box { background: var(--amber-bg); border: 1px solid var(--amber-bd); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.review-box .rb-title { font-weight: 650; color: #b45309; display: flex; align-items: center; gap: 8px; }
