/* Graftum CRM — stratul de design unitar (7 oct 2026).
   Doar aspect: nu schimbă niciun comportament. Se încarcă DUPĂ tw-app.css, dark.css și stilurile din app.html,
   deci câștigă la egalitate de specificitate. Ideea: un singur set de distanțe, raze, umbre, culori de text —
   aceleași carduri, aceleași etichete, aceleași butoane pe toate ecranele. Fără decor care nu poartă informație.
   Temă deschisă (implicit) + temă întunecată (html.gr-dark), amândouă din aceleași token-uri. */

:root{
  --r-card:14px; --r-ctl:10px; --r-pill:999px;
  --sh-card:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --sh-card-hover:0 4px 10px rgba(16,24,40,.07), 0 12px 28px -16px rgba(16,24,40,.18);
  --sh-pop:0 12px 32px -8px rgba(16,24,40,.22);
  --canvas:#f3f5f9; --surface:#ffffff; --raised:#f8fafc; --line:#e4e8f0; --line-strong:#cfd6e3;
  --ink:#141c2e; --ink-2:#3b4660; --muted:#6b778f; --faint:#98a2b8;
  --brand:#304269; --brand-ink:#ffffff; --accent:#e63946;
  --ok:#15803d; --ok-bg:#ecfdf3; --warn:#b45309; --warn-bg:#fff7e6; --bad:#be123c; --bad-bg:#fff1f2; --info:#1d4ed8; --info-bg:#eef2ff;
  --side-bg:#1a2340; --side-bg-2:#141c33; --side-ink:#aab5cf; --side-ink-strong:#ffffff; --side-eyebrow:#6b7799; --side-active:rgba(99,112,255,.22);
  --focus:0 0 0 3px rgba(48,66,105,.16);
}
html.gr-dark{
  --canvas:#0b1120; --surface:#121a2f; --raised:#172138; --line:rgba(148,163,184,.13); --line-strong:rgba(148,163,184,.22);
  --ink:#e6eaf4; --ink-2:#c3cbe0; --muted:#8e99b5; --faint:#5f6b88;
  --brand:#8ea2ff; --brand-ink:#0b1120;
  --ok:#4ade80; --ok-bg:rgba(34,197,94,.13); --warn:#fbbf24; --warn-bg:rgba(245,158,11,.14); --bad:#fb7185; --bad-bg:rgba(244,63,94,.14); --info:#93a8ff; --info-bg:rgba(99,112,255,.14);
  --side-bg:#0e1527; --side-bg-2:#0b1120; --side-ink:#9aa6c4; --side-eyebrow:#5f6b88; --side-active:rgba(99,112,255,.26);
  --sh-card:0 1px 2px rgba(0,0,0,.35); --sh-card-hover:0 6px 18px -8px rgba(0,0,0,.55); --sh-pop:0 16px 40px -8px rgba(0,0,0,.6);
  --focus:0 0 0 3px rgba(142,162,255,.25);
}

/* ---------- fundal & text ---------- */
body{ background:var(--canvas) !important; color:var(--ink); }
html.gr-dark body{ color:var(--ink); }
main{ animation:none; }
h1.text-2xl{ font-size:22px; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
html.gr-dark h1.text-2xl{ color:var(--ink); }
h1 + p, .text-\[11px\].text-slate-400.mt-0\.5{ color:var(--muted); }

/* numerele mari: fără gradient-text (era greu de citit și se tăia pe unele ecrane) */
.mono.text-slate-900{ background:none; -webkit-text-fill-color:initial; -webkit-background-clip:initial; background-clip:initial; color:var(--ink); }
.mono{ font-variant-numeric:tabular-nums; letter-spacing:-.01em; }

/* ---------- carduri: o singură formă pe toată aplicația ---------- */
.bg-white.rounded-lg.border, .bg-white.rounded-xl.border{
  background:var(--surface) !important; border:1px solid var(--line) !important; border-radius:var(--r-card) !important;
  box-shadow:var(--sh-card) !important; animation:none !important; transition:box-shadow .15s, border-color .15s; }
button.bg-white.rounded-lg.border:hover{ box-shadow:var(--sh-card-hover) !important; border-color:var(--line-strong) !important; transform:none; }
.bg-white.rounded-lg.border.p-4:has(.mono)::before{ content:none; }
.bg-white.rounded-lg.border-2{ border-width:1px !important; }
/* etichetele de secțiune din carduri („NEEDS ATTENTION”, „CASH”…) */
.text-\[10px\].uppercase.tracking-widest{ font-size:11px; letter-spacing:.06em; font-weight:700; color:var(--muted); text-transform:uppercase; }
html.gr-dark .text-\[10px\].uppercase.tracking-widest{ color:var(--muted) !important; }
/* fundaluri secundare din carduri */
.bg-slate-50{ background:var(--raised) !important; }
.bg-slate-100{ background:var(--raised) !important; }
html.gr-dark .bg-slate-50, html.gr-dark .bg-slate-100, html.gr-dark .bg-slate-200{ background:var(--raised) !important; }
.border-slate-200, .border-slate-100, .border-slate-300{ border-color:var(--line) !important; }
.divide-slate-100 > * + *, .divide-slate-200 > * + *{ border-color:var(--line) !important; }
.text-slate-900, .text-slate-800{ color:var(--ink) !important; }
.text-slate-700, .text-slate-600{ color:var(--ink-2) !important; }
.text-slate-500{ color:var(--muted) !important; }
.text-slate-400{ color:var(--faint) !important; }
.text-slate-300{ color:var(--faint) !important; opacity:.8; }

/* ---------- KPI (Readout) ---------- */
.kpi{ position:relative; padding:14px 16px !important; min-width:0; }
/* KPI în interiorul altui card (ex. Cash): plat, fără umbră, pe fundalul secundar */
.bg-white.rounded-lg.border .kpi{ box-shadow:none !important; background:var(--raised) !important; }
.kpi::after{ content:""; position:absolute; left:16px; right:16px; bottom:0; height:2px; border-radius:2px 2px 0 0; background:var(--line-strong); opacity:.9; }
.kpi[data-tone="pos"]::after{ background:var(--ok); } .kpi[data-tone="neg"]::after{ background:var(--bad); }
.kpi .mono{ font-size:24px; font-weight:800; margin-top:8px; color:var(--ink); letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1100px){ .kpi .mono{ font-size:21px; } }
.kpi .text-emerald-600{ color:var(--ok) !important; } .kpi .text-rose-600{ color:var(--bad) !important; }
.kpi > .flex > .rounded-full{ display:none; }   /* punctul colorat e înlocuit de linia de jos */

/* ---------- butoane ---------- */
button{ border-radius:var(--r-ctl); }
button.bg-amber-500{ background:var(--accent) !important; color:#fff; box-shadow:none !important; font-weight:700; }
button.bg-amber-500:hover{ filter:brightness(1.06); }
button.bg-slate-900, button.bg-slate-800{ background:var(--brand) !important; color:var(--brand-ink) !important; border-color:transparent !important; }
button.bg-slate-900:hover, button.bg-slate-800:hover{ filter:brightness(1.08); }
button.border.border-slate-200, button.border.border-slate-300{ background:var(--surface); color:var(--ink-2); border-color:var(--line-strong) !important; }
button.border.border-slate-200:hover, button.border.border-slate-300:hover{ background:var(--raised); border-color:var(--line-strong) !important; }
html.gr-dark button.border.border-slate-200, html.gr-dark button.border.border-slate-300{ background:var(--raised); color:var(--ink-2); }
button:disabled{ opacity:.45; cursor:not-allowed; filter:none !important; }
:where(button,a,input,select,textarea):focus-visible{ outline:none; box-shadow:var(--focus); }
/* pastile de filtre (bg-slate-900 text-white border-slate-900 când sunt active) */
button.rounded-full.bg-slate-900{ background:var(--brand) !important; }
.text-amber-600.hover\:underline, a.text-sky-700, .text-sky-700{ color:var(--info) !important; }

/* ---------- inputuri ---------- */
.inp, input[type=text], input[type=email], input[type=number], input[type=date], input[type=tel], select, textarea{
  background:var(--surface); color:var(--ink); border:1px solid var(--line-strong); border-radius:var(--r-ctl); }
.inp:hover:not(:focus){ border-color:var(--line-strong); }
.inp:focus{ border-color:var(--brand); box-shadow:var(--focus); }
html.gr-dark .inp, html.gr-dark input, html.gr-dark select, html.gr-dark textarea{ background:var(--raised) !important; border-color:var(--line-strong) !important; color:var(--ink) !important; }
::placeholder{ color:var(--faint); }

/* ---------- tabele ---------- */
table{ font-size:13px; }
thead th{ font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); font-weight:700; background:var(--raised); border-bottom:1px solid var(--line); }
html.gr-dark thead th{ background:var(--raised) !important; color:var(--muted) !important; }
tbody td{ border-color:var(--line); }
tbody tr:hover{ background:rgba(48,66,105,.04); }
html.gr-dark tbody tr:hover{ background:rgba(148,163,184,.06) !important; }

/* ---------- etichete de stare ---------- */
.rounded-full.font-semibold.tracking-wide{ font-weight:700; letter-spacing:.02em; }
.bg-emerald-50{ background:var(--ok-bg) !important; } .text-emerald-700, .text-emerald-600, .text-emerald-800{ color:var(--ok) !important; }
.bg-amber-50{ background:var(--warn-bg) !important; } .text-amber-700, .text-amber-800, .text-amber-900{ color:var(--warn) !important; }
.bg-rose-50{ background:var(--bad-bg) !important; } .text-rose-700, .text-rose-800{ color:var(--bad) !important; }
html.gr-dark .text-rose-600{ color:var(--bad) !important; } html.gr-dark .text-amber-600{ color:var(--warn) !important; }
html.gr-dark .bg-emerald-100, html.gr-dark .bg-amber-100, html.gr-dark .bg-rose-100, html.gr-dark .bg-sky-100, html.gr-dark .bg-violet-100, html.gr-dark .bg-fuchsia-100{ filter:saturate(.9) brightness(.75); }
html.gr-dark .border-emerald-200{ border-color:rgba(34,197,94,.35) !important; }
html.gr-dark .border-amber-200, html.gr-dark .border-amber-300{ border-color:rgba(245,158,11,.4) !important; }
html.gr-dark .border-rose-200, html.gr-dark .border-rose-300{ border-color:rgba(244,63,94,.4) !important; }
.h-2.bg-slate-100.rounded-full{ background:var(--line) !important; } .h-2 .bg-amber-500{ background:var(--brand) !important; }

/* ---------- alertele de sus (AdminAlerts) și „Needs attention” ---------- */
.no-print.mb-4.rounded-xl.border-2{ border-width:1px !important; border-radius:var(--r-card) !important; box-shadow:var(--sh-card); }
.no-print.mb-4.rounded-xl.border-2 > .flex{ font-size:13px; }
/* rândurile de alertă: butonul de acțiune și „hide 24h” nu se mai suprapun (văzut live pe 7 oct) */
.no-print.mb-4.rounded-xl.border-2 .divide-y > div{ flex-wrap:nowrap; align-items:center; }
.no-print.mb-4.rounded-xl.border-2 .divide-y > div > button{ flex:none; white-space:nowrap; }
.no-print.mb-4.rounded-xl.border-2 .divide-y > div > button.underline{ margin-left:4px; }
@media (max-width:640px){ .no-print.mb-4.rounded-xl.border-2 .divide-y > div{ flex-wrap:wrap; } }

/* ---------- sidebar ---------- */
aside{ background:linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%) !important; box-shadow:1px 0 0 rgba(255,255,255,.05) !important; }
aside > div:first-child::after{ content:none; }
aside > div:first-child{ border-bottom:1px solid rgba(255,255,255,.06) !important; }
.navitem{ color:var(--side-ink); font-size:13.5px; font-weight:500; padding:8px 11px; border-radius:10px; gap:10px; }
.navitem .navico{ opacity:.8; }
.navitem:hover{ background:rgba(255,255,255,.06); color:var(--side-ink-strong); }
.navitem.active{ background:var(--side-active) !important; color:#fff; font-weight:600; }
.navitem.active .navico{ opacity:1; }
.navitem.active::before{ animation:none !important; box-shadow:none !important; left:-4px; top:9px; bottom:9px; width:3px; background:#8ea2ff; }
html:not(.gr-dark) .navitem.active::before{ background:var(--accent); }
.naveyebrow{ color:var(--side-eyebrow); font-size:10px; letter-spacing:.14em; padding:14px 11px 5px; }
/* căutarea din sidebar: ca o casetă de căutare, nu ca un item de meniu */
aside .px-2.pb-1.pt-2 > button.navitem:first-child{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); color:#c9d2ea; font-weight:500; }
aside .px-2.pb-1.pt-2 > button.navitem:first-child:hover{ background:rgba(255,255,255,.1); }
/* butonul de temă din sidebar */
.gr-theme-side{ width:auto; }
#gr-theme-btn{ display:none !important; }   /* butonul plutitor rămâne pe desk-uri, în CRM e în sidebar */

/* ---------- dashboard ---------- */
.dash-hello{ display:flex; align-items:center; gap:10px; }
.dash-hello .wave{ display:inline-block; font-size:22px; }
/* cardul „Today on site” compact & lista „Needs attention”: aceeași înălțime de rând, aceleași margini */
.space-y-1\.5 > button.rounded-lg.border{ border-radius:11px; }

/* ---------- diverse ---------- */
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:var(--line-strong); border:2px solid var(--canvas); border-radius:10px; }
html.gr-dark ::-webkit-scrollbar-thumb{ background:#2a3552; border-color:var(--canvas); }
::selection{ background:rgba(99,112,255,.25); }
.text-white[style*="background:#304269"]{ background:var(--brand) !important; color:var(--brand-ink) !important; }
html.gr-dark [style*="color:#304269"]{ color:var(--brand) !important; }
html.gr-dark .bg-white{ background:var(--surface) !important; }
html.gr-dark .text-black{ color:var(--ink) !important; }
@media print{ body{ background:#fff !important; } aside{ display:none; } }

/* ---------- retușuri după prima captură live în dark (7 oct) ---------- */
/* banner-ul „What's new”: galben de hârtie pe fundal întunecat — îl aducem în tonul temei */
html.gr-dark [style*="background:linear-gradient(90deg,#fff7d6,#ffefb0)"], html.gr-dark [style*="background: linear-gradient(90deg, rgb(255, 247, 214), rgb(255, 239, 176))"]{
  background:var(--warn-bg) !important; border-color:rgba(245,158,11,.35) !important; }
html.gr-dark [style*="color:#7a5200"]{ color:var(--warn) !important; }
html.gr-dark [style*="color:#be123c"]{ color:var(--bad) !important; }
/* titlul barei de alerte (roșu închis pe fundal roșu închis) */
html.gr-dark [style*="color:#9f1239"]{ color:#fda4af !important; }
html.gr-dark [style*="color:#92400e"]{ color:var(--warn) !important; }
html.gr-dark .bg-rose-50, html.gr-dark .bg-amber-50{ background:var(--raised) !important; }
/* pastilele de stare (⏳ not started etc.) pe dark: text deschis pe fundal transparent, nu chihlimbar pe chihlimbar */
html.gr-dark .bg-amber-100.text-amber-800, html.gr-dark .bg-amber-100.text-amber-700{ background:rgba(245,158,11,.16) !important; color:var(--warn) !important; filter:none; }
html.gr-dark .bg-emerald-100.text-emerald-800, html.gr-dark .bg-emerald-100.text-emerald-700{ background:rgba(34,197,94,.16) !important; color:var(--ok) !important; filter:none; }
html.gr-dark .bg-rose-100.text-rose-800, html.gr-dark .bg-rose-100.text-rose-700{ background:rgba(244,63,94,.16) !important; color:var(--bad) !important; filter:none; }
html.gr-dark .bg-sky-100, html.gr-dark .bg-violet-100, html.gr-dark .bg-fuchsia-100{ filter:none; opacity:.9; }

/* React scrie culorile inline ca rgb(...), nu ca #hex — aceleași remapări și pentru forma asta (7 oct, Timesheets) */
html.gr-dark [style*="color: rgb(48, 66, 105)"]{ color:var(--brand) !important; }
html.gr-dark [style*="color: rgb(122, 82, 0)"]{ color:var(--warn) !important; }
html.gr-dark [style*="color: rgb(159, 18, 57)"]{ color:#fda4af !important; }
html.gr-dark [style*="color: rgb(146, 64, 14)"]{ color:var(--warn) !important; }
html.gr-dark [style*="color: rgb(190, 18, 60)"]{ color:var(--bad) !important; }
html.gr-dark [style*="color: rgb(21, 128, 61)"]{ color:var(--ok) !important; }
html.gr-dark [style*="color: rgb(180, 83, 9)"]{ color:var(--warn) !important; }
html.gr-dark [style*="color: rgb(100, 116, 139)"]{ color:var(--muted) !important; }
html.gr-dark [style*="background: rgb(238, 241, 246)"], html.gr-dark [style*="background: rgb(244, 246, 250)"], html.gr-dark [style*="background: rgb(248, 250, 252)"]{ background:var(--raised) !important; color:var(--ink) !important; }
html.gr-dark [style*="background: rgb(254, 243, 199)"], html.gr-dark [style*="background: rgb(255, 251, 235)"]{ background:var(--warn-bg) !important; }
html.gr-dark [style*="background: rgb(253, 236, 236)"], html.gr-dark [style*="background: rgb(254, 226, 226)"], html.gr-dark [style*="background: rgb(255, 241, 242)"]{ background:var(--bad-bg) !important; }
html.gr-dark [style*="background: rgb(236, 253, 245)"], html.gr-dark [style*="background: rgb(238, 250, 241)"]{ background:var(--ok-bg) !important; }
/* pașii „făcuți” din Close the week (bg-emerald-50/40) erau un gri spălăcit pe dark */
html.gr-dark .bg-emerald-50\/40{ background:rgba(34,197,94,.08) !important; }
html.gr-dark .bg-emerald-50\/40 .text-slate-500, html.gr-dark .bg-emerald-50\/40 .text-slate-400{ color:var(--muted) !important; }

/* 7 oct, Valuation în dark: rândurile cu „bg-amber-50/50” (și celelalte nuanțe cu opacitate) erau bej-deschis cu text alb */
html.gr-dark [class*="bg-amber-50/"]{ background:rgba(245,158,11,.10) !important; }
html.gr-dark [class*="bg-rose-50/"], html.gr-dark [class*="bg-red-50/"]{ background:rgba(244,63,94,.10) !important; }
html.gr-dark [class*="bg-emerald-50/"], html.gr-dark [class*="bg-green-50/"]{ background:rgba(34,197,94,.10) !important; }
html.gr-dark [class*="bg-sky-50/"], html.gr-dark [class*="bg-blue-50/"], html.gr-dark [class*="bg-indigo-50/"]{ background:rgba(99,112,255,.10) !important; }
html.gr-dark [class*="bg-slate-50/"], html.gr-dark [class*="bg-slate-100/"], html.gr-dark [class*="bg-white/"]{ background:rgba(148,163,184,.08) !important; }
html.gr-dark .bg-sky-50, html.gr-dark .bg-blue-50, html.gr-dark .bg-indigo-50{ background:var(--info-bg) !important; }
html.gr-dark .text-sky-800, html.gr-dark .text-sky-700, html.gr-dark .text-blue-800{ color:var(--info) !important; }
/* inputurile înguste (procente, cantități): mai puțin padding, ca „100” să nu se taie */
.inp[style*="width: 56px"], .inp[style*="width: 60px"], .inp[style*="width: 64px"], .inp[style*="width: 70px"], .inp[style*="width: 72px"], .inp[style*="width: 80px"], .inp[style*="width: 84px"]{ padding-left:7px; padding-right:7px; }

/* ---------- 7 oct: shell nou — bara de sus pe desktop ---------- */
.topbar{ height:56px; padding:0 28px; z-index:60; background:color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.topbar-search{ display:flex; align-items:center; gap:10px; width:min(460px, 40vw); height:38px; padding:0 12px 0 14px; border-radius:12px; border:1px solid var(--line-strong); background:var(--surface); color:var(--muted); font-size:13.5px; transition:border-color .15s, box-shadow .15s; }
.topbar-search:hover{ border-color:var(--brand); }
.topbar-search kbd{ font:600 10.5px/1 ui-monospace, Menlo, monospace; color:var(--faint); border:1px solid var(--line-strong); border-radius:6px; padding:3px 6px; }
.topbar-date{ margin-left:auto; font-size:12.5px; color:var(--muted); white-space:nowrap; }
.topbar-btn{ position:relative; display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--ink-2); font-size:13px; font-weight:600; text-decoration:none; }
.topbar-btn:hover{ border-color:var(--line-strong); background:var(--raised); }
.bell-badge{ position:absolute; top:-6px; right:-6px; background:var(--accent); color:#fff; font-size:10px; font-weight:800; border-radius:999px; padding:2px 6px; line-height:1; border:2px solid var(--canvas); }
aside .bell-badge{ top:3px; right:3px; border:0; }
.topbar-pop{ position:absolute; right:0; top:44px; width:320px; background:var(--surface); border:1px solid var(--line-strong); border-radius:14px; box-shadow:var(--sh-pop); padding:8px; display:flex; flex-direction:column; gap:4px; z-index:70; }
.bell-row{ color:var(--ink-2); background:var(--raised); }
.bell-row:hover{ background:var(--line); }
aside .bell-row{ color:#c9d2e8; background:rgba(255,255,255,.05); }
.topbar-me{ display:flex; align-items:center; gap:10px; margin-left:4px; padding-left:14px; border-left:1px solid var(--line); color:var(--ink); max-width:220px; }
.topbar-role{ color:var(--muted); }
/* sidebar-ul: puțin mai îngust, logo-ul și meniul mai aerisite */
@media (min-width:1024px){ aside{ width:232px !important; } }
aside nav{ padding-top:6px; }
aside > div:first-child{ height:56px !important; }

/* ---------- 7 oct: Dashboard v2 ---------- */
.dash-ops{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
@media (min-width:768px){ .dash-ops{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (min-width:1280px){ .dash-ops{ grid-template-columns:repeat(6, minmax(0,1fr)); } }
.okpi{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:left; padding:14px 16px 12px; border-radius:var(--r-card); border:1px solid var(--line); background:var(--surface); box-shadow:var(--sh-card); min-width:0; transition:border-color .15s, box-shadow .15s, transform .12s; }
.okpi:hover{ border-color:var(--line-strong); box-shadow:var(--sh-card-hover); transform:translateY(-1px); }
.okpi::after{ content:""; position:absolute; left:16px; right:16px; bottom:0; height:2px; border-radius:2px 2px 0 0; background:var(--line-strong); }
.okpi.ok::after{ background:var(--ok); } .okpi.warn::after{ background:var(--warn); } .okpi.bad::after{ background:var(--bad); }
.okpi-l{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.okpi-v{ font-size:26px; font-weight:800; line-height:1.1; color:var(--ink); letter-spacing:-.02em; }
.okpi.ok .okpi-v{ color:var(--ok); } .okpi.bad .okpi-v{ color:var(--bad); }
.okpi-s{ font-size:11.5px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.dash-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
@media (min-width:1280px){ .dash-grid{ grid-template-columns:minmax(0,1fr) 320px; } }
.dash-side{ position:sticky; top:72px; }
@media (max-width:1279px){ .dash-side{ position:static; } }
.qa-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.qa-btn{ text-align:left; font-size:13px; font-weight:600; padding:10px 12px; border-radius:11px; border:1px solid var(--line); background:var(--raised); color:var(--ink-2); transition:border-color .12s, background .12s; }
.qa-btn:hover{ border-color:var(--brand); color:var(--ink); }
.wk-strip{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.wk-day{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 2px; border-radius:10px; background:var(--raised); border:1px solid transparent; }
.wk-day.today{ border-color:var(--brand); background:var(--info-bg); }
.wk-day.past{ opacity:.75; }
.wk-n{ font-size:10px; font-weight:700; text-transform:uppercase; color:var(--muted); }
.wk-v{ font-size:17px; font-weight:800; color:var(--ink); }
.wk-s{ font-size:9px; color:var(--faint); }
.act-list{ display:flex; flex-direction:column; }
.act-row{ display:flex; align-items:flex-start; gap:10px; width:100%; text-align:left; padding:8px 4px; border-bottom:1px solid var(--line); border-radius:0; font-size:12.5px; color:var(--ink-2); }
.act-row:last-child{ border-bottom:0; }
.act-row:hover{ background:var(--raised); border-radius:8px; }
.act-ic{ flex:none; width:22px; text-align:center; }
.act-tx{ flex:1; min-width:0; line-height:1.35; }
.act-t{ flex:none; font-size:11px; color:var(--faint); padding-top:2px; }
/* „Today on site” pe dashboard: titlu ca secțiune, nu ca text mic */
.dash-main > .bg-white.rounded-lg.border.p-3 > .flex > .text-sm.font-semibold{ font-size:14px; font-weight:800; color:var(--ink); }

/* ---------- 7 oct: Jobs ca grilă de carduri + antetul jobului ---------- */
.cards-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
@media (min-width:768px){ .cards-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:1400px){ .cards-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
.jobcard{ display:flex; flex-direction:column; gap:6px; text-align:left; padding:14px 16px !important; min-width:0; }
.jobcard:hover{ border-color:var(--brand) !important; }
.jc-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.jc-client{ font-size:16px; font-weight:800; color:var(--ink); line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jc-site{ font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jc-prog{ margin-top:4px; }
.jc-foot{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; padding-top:10px; border-top:1px solid var(--line); }
.jc-chip{ font-size:11px; font-weight:600; padding:3px 8px; border-radius:999px; background:var(--raised); color:var(--muted); white-space:nowrap; }
.jc-chip.ok{ background:var(--ok-bg); color:var(--ok); } .jc-chip.bad{ background:var(--bad-bg); color:var(--bad); }
.jobhead .jh-client{ font-size:22px; font-weight:800; letter-spacing:-.02em; }
.jobhead .jh-ref{ font-size:11px; padding:2px 7px; border-radius:6px; background:var(--raised); color:var(--muted); }
.jh-strip{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 4px; }
.jh-prog{ flex:1 1 220px; min-width:180px; }
.jobtabs2{ background:var(--raised) !important; border-color:transparent !important; padding:4px !important; }
.jobtabs2 button{ border-radius:9px; font-weight:600; }
.jobtabs2 button.bg-slate-900{ background:var(--surface) !important; color:var(--ink) !important; box-shadow:var(--sh-card); }
.jobtabs2 button.text-slate-500{ color:var(--muted) !important; }
.jobtabs2 button.text-slate-500:hover{ background:transparent !important; color:var(--ink) !important; }

/* ---------- 7 oct: Team ca carduri + Timesheets aerisit ---------- */
.people-grid{ gap:10px; }
@media (min-width:1400px){ .people-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
.person-card{ display:flex; align-items:flex-start; gap:12px; text-align:left; padding:12px 14px !important; min-width:0; }
.person-card:hover{ border-color:var(--brand) !important; }
.person-card.is-open{ border-color:var(--brand) !important; box-shadow:0 0 0 3px rgba(142,162,255,.18) !important; }
.person-card .pc-name{ font-size:14px; font-weight:700; color:var(--ink); line-height:1.3; }
.person-card .rounded-full.align-middle{ display:inline-block; margin-top:3px; }
.pc-rate{ color:var(--ink-2); }
/* Close the week: pașii ca o bandă cu etichete */
.wc-steps{ display:flex; gap:6px; flex-wrap:wrap; }
.wc-step{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px 4px 5px; border-radius:999px; background:var(--raised); color:var(--muted); font-size:11.5px; font-weight:600; border:1px solid var(--line); }
.wc-step b{ width:18px; height:18px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:10.5px; background:var(--line-strong); color:var(--ink); }
.wc-step.ok{ color:var(--ok); border-color:rgba(34,197,94,.35); background:var(--ok-bg); }
.wc-step.ok b{ background:var(--ok); color:#fff; }
@media (max-width:900px){ .wc-step .wc-lbl{ display:none; } .wc-step{ padding-right:5px; } }
/* grila de pontaj: celule mai clare */
.ts-cell{ border-radius:10px !important; transition:transform .08s, box-shadow .12s; }
.ts-cell:hover{ box-shadow:var(--sh-card-hover); transform:translateY(-1px); }
.ts-cell.bg-white{ background:var(--raised) !important; border-style:dashed; }
html.gr-dark .ts-cell.bg-emerald-600{ background:#16a34a !important; border-color:#16a34a !important; color:#fff !important; }
html.gr-dark .ts-cell.bg-sky-50{ background:rgba(99,112,255,.18) !important; border-color:#8ea2ff !important; color:#c7d2ff !important; }
html.gr-dark .ts-cell.bg-emerald-50{ background:rgba(34,197,94,.14) !important; border-color:rgba(34,197,94,.55) !important; color:#86efac !important; }
