/* ============================================================================
 * andebe_cmm.css - designul aplicatiei: carduri pastel, meniu lipit, fundal in tonul sectiunii.
 * Tema intunecata e scrisa :root[data-theme="dark"], ca sa bata stilurile de baza (invoice.css), scrise la fel.
 * Tonul grupurilor vine din data-ton (inc/ui.php, INV_TON_GRUP).
 * ========================================================================== */

@font-face{ font-family:"ANdebE Inter"; font-style:normal; font-weight:100 900; font-display:swap;
	src:url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"ANdebE Inter"; font-style:normal; font-weight:100 900; font-display:swap;
	src:url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-wght-normal.woff2) format("woff2");
	unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root{
	--an-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","ANdebE Inter","Segoe UI",Roboto,Arial,sans-serif;
	/* tonurile: text / fundal pastel / chenar */
	--t-teal:#13808f;   --p-teal:#e6fbf9;   --b-teal:#8fd3df;
	--t-green:#2f9b35;  --p-green:#eefbe8;  --b-green:#a3e09d;
	--t-purple:#8a2be2; --p-purple:#f2eeff; --b-purple:#d3b5f5;
	--t-pink:#c4148a;   --p-pink:#fff0fa;   --b-pink:#f39bd5;
	--t-blue:#2f6bff;   --p-blue:#ecf6fe;   --b-blue:#b4d8f1;
	--t-orange:#ef6c12; --p-orange:#fef4e6; --b-orange:#f6c48d;
	--an-bg:#ffffff; --an-bg-2:#f7f7fa;
	--an-text:#1c1c1e; --an-text-dim:#7a716b;
	--an-border:rgba(28,28,30,.09);
	--an-hair:#ebe8f0;
	--sc:var(--t-blue); --sp:var(--p-blue); --sb:var(--b-blue);
}
:root[data-theme="dark"]{
	/* pe intunecat: fundal indigo / mov si carduri de sticla */
	--t-teal:#5fe0d0;   --p-teal:rgba(95,224,208,.10);  --b-teal:rgba(95,224,208,.30);
	--t-green:#7be07f;  --p-green:rgba(123,224,127,.10); --b-green:rgba(123,224,127,.30);
	--t-purple:#c49bff; --p-purple:rgba(196,155,255,.12); --b-purple:rgba(196,155,255,.32);
	--t-pink:#ff8fd8;   --p-pink:rgba(255,143,216,.11);  --b-pink:rgba(255,143,216,.32);
	--t-blue:#8cc0ff;   --p-blue:rgba(140,192,255,.11);  --b-blue:rgba(140,192,255,.32);
	--t-orange:#ffb46e; --p-orange:rgba(255,180,110,.11); --b-orange:rgba(255,180,110,.32);
	--an-bg:#1a1238; --an-bg-2:#211845;
	--an-text:#f4f2fa; --an-text-dim:#b4abcf;
	--an-border:rgba(255,255,255,.12);
	--an-hair:rgba(255,255,255,.10);
	/* Suprafetele de pe intunecat sunt OPACE (tonul paginii + putin alb), ca textul de dedesubt sa nu se vada prin meniuri, calendare, ferestre si capete de tabel lipite. */
	--an-sticla:color-mix(in srgb, var(--pg1) 55%, var(--pg2));
	--an-panel:color-mix(in srgb, var(--an-sticla) 93%, #ffffff); --an-panel-solid:color-mix(in srgb, var(--pg1) 55%, #07070c 45%); --an-card:color-mix(in srgb, var(--an-sticla) 93%, #ffffff);
	--an-head:color-mix(in srgb, var(--an-sticla) 90%, #ffffff); --an-row-1:color-mix(in srgb, var(--an-sticla) 96%, #ffffff); --an-row-2:color-mix(in srgb, var(--an-sticla) 93%, #ffffff);
	--an-field:color-mix(in srgb, var(--an-sticla) 90%, #ffffff); --an-field-focus:color-mix(in srgb, var(--an-sticla) 86%, #ffffff);
	--an-hover:rgba(255,255,255,.07);
}

/* ---------------------------------------------------------------- baza -- */
html{ background:var(--an-bg); }
body{ font-family:var(--an-font); background:var(--an-bg); }
:root[data-theme="dark"] body{
	background:
		radial-gradient(1200px 760px at 18% 8%, rgba(108,58,212,.55), transparent 62%),
		radial-gradient(1000px 700px at 100% 100%, rgba(74,38,170,.55), transparent 60%),
		linear-gradient(160deg, #1d1446 0%, #160f35 55%, #23145a 100%);
	background-attachment:fixed;
}
body, .an-side, #an-fly, #an-clopot-p, .mg-wrap, input, select, textarea, button{ font-family:var(--an-font); }
h1,h2,h3{ letter-spacing:-.02em; }

/* tonul fiecarui grup (data-ton = culoarea icoanei grupului) */
[data-ton="orange"]{ --sc:var(--t-orange); --sp:var(--p-orange); --sb:var(--b-orange); }
[data-ton="green"] { --sc:var(--t-green);  --sp:var(--p-green);  --sb:var(--b-green); }
[data-ton="blue"]  { --sc:var(--t-blue);   --sp:var(--p-blue);   --sb:var(--b-blue); }
[data-ton="pink"]  { --sc:var(--t-pink);   --sp:var(--p-pink);   --sb:var(--b-pink); }
[data-ton="teal"]  { --sc:var(--t-teal);   --sp:var(--p-teal);   --sb:var(--b-teal); }
[data-ton="purple"]{ --sc:var(--t-purple); --sp:var(--p-purple); --sb:var(--b-purple); }

/* ---------------------------------------------------- icoanele colorate -- */
svg.an-ic-c{ overflow:visible; filter:drop-shadow(0 1px 1.2px rgba(40,20,80,.22)); }
:root[data-theme="dark"] svg.an-ic-c{ filter:drop-shadow(0 1px 2px rgba(0,0,0,.45)); }

/* ------------------------------------------- meniul: lipit, cu linia fina -- */
@media (min-width:901px){
	body.an-cu-meniu{ padding-left:290px; }
	.an-side{ left:0; top:0; height:100vh; max-height:none; width:262px;
		border:0; border-right:1px solid var(--an-hair); border-radius:0;
		box-shadow:none; padding:16px 12px 12px;
		background:var(--an-bg); -webkit-backdrop-filter:none; backdrop-filter:none; }
	:root[data-theme="dark"] .an-side{ background:rgba(16,10,40,.30); }
	.an-side .an-foot{ border-radius:0; background:var(--an-bg); border-top:1px solid var(--an-hair); margin:12px -12px -12px; }
	:root[data-theme="dark"] .an-side .an-foot{ background:rgba(22,14,52,.92); }
}

/* logo: fara cartonas */
.an-side .an-brand > a:first-child,
:root[data-theme="dark"] .an-side .an-brand > a:first-child{
	width:64px; height:64px; margin:0; border-radius:16px; background:transparent; box-shadow:none; }
.an-side .an-brand > a:first-child img{ width:62px; height:62px; }
.an-side .an-brand > a:first-child:hover{ box-shadow:none; transform:translateY(-1px); }

/* butoanele mici de sus: plate, cu chenar fin */
.an-side .an-ico, .an-side .theme-toggle, .an-side .an-side-toggle, .an-top-b,
:root[data-theme="dark"] .an-side .an-ico, :root[data-theme="dark"] .an-side .theme-toggle,
:root[data-theme="dark"] .an-side .an-side-toggle, :root[data-theme="dark"] .an-top-b{
	background:transparent; box-shadow:inset 0 0 0 1px var(--an-hair); border-radius:10px; }
.an-side .an-ico:hover, .an-side .theme-toggle:hover, .an-side .an-side-toggle:hover, .an-top-b:hover{
	background:var(--an-hover); box-shadow:inset 0 0 0 1px var(--an-border); }

.an-side .an-sep{ background:var(--an-hair); margin:4px 6px 10px; }

/* capetele de sectiune: rand simplu, icoana mare, textul normal (nu majuscule) */
.an-side .an-sec{ margin:0 0 2px; }
.an-side .an-sec-h, :root[data-theme="dark"] .an-side .an-sec-h,
.an-side .an-sec.open .an-sec-h, :root[data-theme="dark"] .an-side .an-sec.open .an-sec-h{
	background:transparent; box-shadow:none; color:var(--an-text);
	padding:8px 8px 8px 8px; gap:11px; border-radius:12px;
	font-size:13.5px; font-weight:600; letter-spacing:-.01em; text-transform:none; }
.an-side .an-sec-h:hover, :root[data-theme="dark"] .an-side .an-sec-h:hover{
	background:var(--an-hover); box-shadow:none; transform:none; }
.an-side .an-sec-h .an-sec-ic, :root[data-theme="dark"] .an-side .an-sec-h .an-sec-ic,
.an-side .an-sec.open .an-sec-h .an-sec-ic, :root[data-theme="dark"] .an-side .an-sec.open .an-sec-h .an-sec-ic,
.an-side .an-sec.is-cur .an-sec-h .an-sec-ic{
	width:26px; height:26px; background:transparent; box-shadow:none; border-radius:0; }
.an-side .an-sec-h .an-sec-ic svg.an-ic-c{ width:26px; height:26px; }
.an-side .an-sec-h .chev, :root[data-theme="dark"] .an-side .an-sec-h .chev{
	width:18px; height:18px; background:transparent; color:var(--an-text-dim); font-size:8px; }
.an-side .an-sec.open .an-sec-h .chev{ color:var(--sc); }
/* pe pagina grupului: pastila in tonul sectiunii */
.an-side .an-sec.is-cur .an-sec-h, .an-side .an-sec.is-cur .an-sec-h:hover,
:root[data-theme="dark"] .an-side .an-sec.is-cur .an-sec-h, :root[data-theme="dark"] .an-side .an-sec.is-cur .an-sec-h:hover{
	color:var(--sc); background:var(--sp); box-shadow:inset 0 0 0 1px var(--sb); }
.an-side .an-sec.is-cur .an-sec-h .chev, :root[data-theme="dark"] .an-side .an-sec.is-cur .an-sec-h .chev{ background:transparent; color:var(--sc); }

/* linkurile: icoana colorata 22px, textul normal; pagina curenta = pastila pastel */
.an-side .an-sec-b > div{ padding:2px 0 6px 14px; margin-left:12px; border-left:1px solid var(--an-hair); }
.an-side a.an-link{ gap:10px; padding:6px 9px; border-radius:11px; font-size:13px; font-weight:500; color:var(--an-text); }
.an-side a.an-link svg.an-ic-c{ width:22px; height:22px; }
.an-side a.an-link:hover, :root[data-theme="dark"] .an-side a.an-link:hover{
	background:var(--an-hover); box-shadow:none; transform:none; color:var(--an-text); }
.an-side a.an-link:hover svg.an-ic-c{ transform:scale(1.08); }
.an-side a.an-link.is-active, .an-side a.an-link.is-active:hover,
:root[data-theme="dark"] .an-side a.an-link.is-active, :root[data-theme="dark"] .an-side a.an-link.is-active:hover{
	color:var(--sc); background:var(--sp); font-weight:650; box-shadow:inset 0 0 0 1px var(--sb); }

/* „Adauga” si alertele: fond alb, chenar in tonul sectiunii */
.an-side a.an-add, .an-side a.an-add:hover{ background:#fff; color:var(--sc); box-shadow:inset 0 0 0 1.5px var(--sb);
	font-weight:650; letter-spacing:0; }
.an-side a.an-add:hover{ background:var(--sp); }
:root[data-theme="dark"] .an-side a.an-add, :root[data-theme="dark"] .an-side a.an-add:hover{ background:var(--an-card); color:var(--sc); }

/* ------------------------------------------- meniul strans: doar icoanele -- */
@media (min-width:901px){
	.an-side.an-ascuns{ width:76px; padding:14px 10px 12px; }
	body.an-cu-meniu.an-meniu-ascuns{ padding-left:100px; }
	.an-side.an-ascuns .an-brand > a:first-child{ width:48px; height:48px; }
	.an-side.an-ascuns .an-brand > a:first-child img{ width:46px; height:46px; }
	.an-side.an-ascuns .an-sec{ margin:0 0 6px; }
	.an-side.an-ascuns .an-sec-h{ justify-content:center; padding:9px 0; border-radius:14px; }
	.an-side.an-ascuns .an-sec-h .an-sec-ic, .an-side.an-ascuns .an-sec-h .an-sec-ic svg.an-ic-c{ width:28px; height:28px; }
	/* sectiunea paginii curente: icoana intr-o pastila */
	.an-side.an-ascuns .an-sec.open .an-sec-h, .an-side.an-ascuns .an-sec.is-cur .an-sec-h,
	:root[data-theme="dark"] .an-side.an-ascuns .an-sec.open .an-sec-h{
		background:var(--sp); box-shadow:inset 0 0 0 1px var(--sb); }
	.an-side.an-ascuns .an-sec-h.an-fly-deschis{ box-shadow:inset 0 0 0 1.5px var(--sc); }
	.an-side.an-ascuns .an-foot{ margin:12px -10px -12px; }
}
/* lista sectiunii langa bara stransa */
#an-fly{ border-radius:16px; border:1px solid var(--an-hair); box-shadow:0 18px 40px -16px rgba(40,20,80,.35); }
:root[data-theme="dark"] #an-fly{ background:color-mix(in srgb, var(--pg1) 55%, #07070c 45%); }
#an-fly a.an-link svg.an-ic-c{ width:22px; height:22px; }
#an-fly a.an-link.is-active{ color:var(--sc); background:var(--sp); box-shadow:inset 0 0 0 1px var(--sb); }

/* ------------------------------------------------- CARDURILE ------------
   Albe, colturi mari, chenar colorat; pe intunecat sticla. */
.cmm-card{ background:#fff; border:1.5px solid var(--sb); border-radius:20px; }
:root[data-theme="dark"] .cmm-card{ background:var(--an-card); border:1px solid rgba(255,255,255,.13); }
.cmm-panou{ background:var(--sp); border-radius:28px; }

/* ----- meniul: fara linie sub sectiunile inchise ----- */
.an-side .an-sec:not(.open) .an-sec-b > div{ padding-top:0; padding-bottom:0; border-left-color:transparent; }
@media (min-width:901px){ .an-side{ width:256px; } body.an-cu-meniu{ padding-left:280px; } }

/* ===== FUNDALUL IN CULOAREA SECTIUNII =================================
   Pagina ia tonul sectiunii din meniu in care se afla (icoana capului de sectiune). Pe luminos = pastel;
   pe intunecat = acelasi ton, adanc si moale, in degrade.
   Tonul = data-ton al grupului din meniu; Acasa = movul implicit. Grupul se afla din meniu, cu :has(). */
:root{ --pg:#e8f7fb; --pg1:#06394a; --pg2:#021820; }   /* Culoarea implicita, pentru o pagina fara link in meniu (mesaje, un raport deschis fara filtru): cyan inchis. */
:root:has(.an-sec[data-ton="orange"] .is-active), :root:has(.an-sec[data-ton="orange"].is-cur){ --pg:var(--p-orange); --pg1:#3a2312; --pg2:#24150c; --an-lum:.22; --an-lum-m:20%; }
:root:has(.an-sec[data-ton="green"] .is-active), :root:has(.an-sec[data-ton="green"].is-cur){ --pg:var(--p-green); --pg1:#183a1e; --pg2:#0f2616; }
:root:has(.an-sec[data-ton="blue"] .is-active), :root:has(.an-sec[data-ton="blue"].is-cur){ --pg:var(--p-blue); --pg1:#14306a; --pg2:#0c1c44; }
:root:has(.an-sec[data-ton="pink"] .is-active), :root:has(.an-sec[data-ton="pink"].is-cur){ --pg:var(--p-pink); --pg1:#45123c; --pg2:#2a0c28; }
:root:has(.an-sec[data-ton="teal"] .is-active), :root:has(.an-sec[data-ton="teal"].is-cur){ --pg:var(--p-teal); --pg1:#0f3d40; --pg2:#0a2630; }
:root:has(.an-sec[data-ton="purple"] .is-active), :root:has(.an-sec[data-ton="purple"].is-cur){ --pg:var(--p-purple); --pg1:#2c1860; --pg2:#1a0f3e; }

/* pe luminos pastelul e opac (variabilele --p-* de pe intunecat sunt transparente) */
:root:not([data-theme="dark"]) body{ background:var(--pg); }
:root:not([data-theme="dark"]){ background:#fff; }
:root[data-theme="dark"] body{
	background:
		radial-gradient(1100px 720px at 22% 6%, color-mix(in srgb, var(--pg1) 85%, #ffffff 15%), transparent 64%),
		radial-gradient(900px 640px at 100% 100%, var(--pg1), transparent 62%),
		linear-gradient(160deg, var(--pg1) 0%, var(--pg2) 60%, var(--pg1) 100%);
	background-attachment:fixed;
}
/* meniul are fundalul paginii; doar linia fina il desparte */
@media (min-width:901px){
	:root:not([data-theme="dark"]) .an-side, :root:not([data-theme="dark"]) .an-side .an-foot{ background:var(--pg); }
	:root[data-theme="dark"] .an-side{ background:rgba(0,0,0,.12); }
	:root[data-theme="dark"] .an-side .an-foot{ background:var(--pg2); }
}
/* ===== UMBRA MENIULUI ======================================
   Pe toata inaltimea barei, la fel sus si jos: o linie fina si o umbra scurta, moale. */
@media (min-width:901px){
	.an-side{ border-right:0; overflow-x:visible; box-shadow:3px 0 10px -8px rgba(40,20,80,.22); }
	:root[data-theme="dark"] .an-side{ background:rgba(0,0,0,.20); box-shadow:3px 0 10px -7px rgba(0,0,0,.50); }
	/* linia fina, aceeasi pe toata inaltimea */
	body.an-cu-meniu::before{ content:""; position:fixed; z-index:41; top:0; bottom:0; width:1px;
		left:256px; pointer-events:none; background:rgba(40,20,80,.10); }
	:root[data-theme="dark"] body.an-cu-meniu::before{ background:rgba(255,255,255,.09); }
	body.an-cu-meniu.an-meniu-ascuns::before{ left:76px; }
}
@media print{ body.an-cu-meniu::before{ display:none; } }
/* fundalul paginii acopera tot ecranul, si sub paginile scurte: html fara fundal,
   ca cel de pe body sa treaca pe toata fereastra */
html, :root:not([data-theme="dark"]), :root[data-theme="dark"]{ background:none; }
/* pe mobil (bara de adrese, tragerea paginii) se vede si fundalul ferestrei: are culoarea
   paginii, ca sa nu ramana o linie alba jos */
:root:not([data-theme="dark"]){ background-color:var(--pg); }
:root[data-theme="dark"]{ background-color:var(--pg2); }
body{ min-height:100vh; min-height:100dvh; box-sizing:border-box; }


/* in meniul strans numele aplicatiei si al firmei nu incap */
@media (min-width:901px){ .an-side.an-ascuns .an-brand-t, .an-side.an-ascuns .inv-firma-b{ display:none; } }
/* butonul chatului, jos langa utilizator */
.an-side .an-foot .an-foot-chat{ flex:0 0 auto; }

/* butoanele de sus din pastila (chatul echipei) */
.an-top{ display:flex; gap:6px; margin-top:7px; }
.an-top-b{ position:relative; flex:0 0 auto; width:30px; height:30px; padding:0; border:0; border-radius:10px;
	cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:var(--an-text-dim);
	transition:transform .15s ease, box-shadow .15s ease, color .15s, background .15s; }
.an-top-b:hover, .an-top-b[aria-expanded="true"]{ color:var(--an-accent); transform:translateY(-1px); }
.an-top-b svg{ width:17px; height:17px; display:block; fill:none; stroke:currentColor; stroke-width:1.8;
	stroke-linecap:round; stroke-linejoin:round; }
.an-top-b:focus{ outline:0; }
.an-top-b[hidden]{ display:none !important; }
.an-top-b:focus-visible{ outline:2px solid var(--an-accent); outline-offset:2px; }
.an-top-b b{ position:absolute; top:-6px; right:-7px; min-width:17px; height:17px; padding:0 4px; box-sizing:border-box;
	border-radius:999px; background:#e11d48; color:#fff; font-size:10px; line-height:17px; font-weight:700;
	text-align:center; box-shadow:0 0 0 2px var(--an-panel-solid); }
.an-top-b b[hidden]{ display:none; }

/* ===================== POTRIVIREA PE STILURILE DE BAZA =====================
   - panoul impinge .layout, nu body;
   - variabilele de baza (--bg, --s1, --s2, --br, --tx, --mu) urmeaza tokenii noi;
   - cardurile Acasa (.dw) si formularele (.fc): albe, colturi mari,
     chenar in tonul lor; pe intunecat, sticla. */
:root{ --bg:var(--an-bg); --tx:var(--an-text); --mu:var(--an-text-dim); }
:root[data-theme="dark"]{ --bg:var(--an-bg); --s1:var(--an-card); --s2:var(--an-head); --br:rgba(255,255,255,.12);
	--tx:var(--an-text); --mu:var(--an-text-dim); --dd:color-mix(in srgb, var(--pg1) 55%, #07070c 45%); --ddh:color-mix(in srgb, var(--pg1) 70%, #07070c 30%); }
@media (min-width:901px){
	body.an-cu-meniu, body.an-cu-meniu.an-meniu-ascuns{ padding-left:0; }
	body.an-cu-meniu .layout{ padding-left:280px; }
	body.an-cu-meniu.an-meniu-ascuns .layout{ padding-left:100px; }
	body.an-cu-meniu.an-meniu-ascuns .main{ padding-top:14px; }
	body.an-cu-meniu #anai{ left:280px; }
	body.an-cu-meniu.an-meniu-ascuns #anai{ left:100px; }
}
.an-side .an-jos{ margin-top:auto; }
.an-side .an-sep-jos{ background:var(--an-hair); }
/* icoanele duo-ton din meniu (cand o pagina n-are desen colorat) */
.an-side a.an-link svg.ico{ width:20px; height:20px; }

.inv-titlu h1{ font-size:30px; font-weight:500; letter-spacing:-.03em; }
.dw, .fc{ border-radius:22px; box-shadow:none; background:#fff; border:1.5px solid var(--an-hair); }
:root[data-theme="dark"] .dw, :root[data-theme="dark"] .fc{ background:var(--an-card); border:1px solid rgba(255,255,255,.12); }
.dash > .dw:nth-child(6n+1){ --sc:var(--t-purple); --sb:var(--b-purple); --sp:var(--p-purple); }
.dash > .dw:nth-child(6n+2){ --sc:var(--t-orange); --sb:var(--b-orange); --sp:var(--p-orange); }
.dash > .dw:nth-child(6n+3){ --sc:var(--t-green);  --sb:var(--b-green);  --sp:var(--p-green); }
.dash > .dw:nth-child(6n+4){ --sc:var(--t-teal);   --sb:var(--b-teal);   --sp:var(--p-teal); }
.dash > .dw:nth-child(6n+5){ --sc:var(--t-pink);   --sb:var(--b-pink);   --sp:var(--p-pink); }
.dash > .dw:nth-child(6n+6){ --sc:var(--t-blue);   --sb:var(--b-blue);   --sp:var(--p-blue); }
.dash > .dw{ border-color:var(--sb); }
:root[data-theme="dark"] .dash > .dw{ border-color:rgba(255,255,255,.12); }
.dw h3{ text-transform:none; letter-spacing:0; font-size:14px; font-weight:600; color:var(--an-text); }
.dash > .dw h3 a, .dash > .dw h3 svg.ico{ color:var(--sc); }

/* ===== NUMELE FIRMEI SI UTILIZATORUL ===================================
   Numele firmei care nu incape pe un rand se imparte pe doua, cu font mai mic;
   utilizatorul de jos foloseste fontul aplicatiei. */
.an-side .an-brand-t .an-brand-f{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
	white-space:normal; text-overflow:clip; text-wrap:balance; overflow-wrap:anywhere; max-width:none;
	font-size:10.5px; line-height:1.25; }
.an-side .an-foot-t b{ font-family:"ANdebE Unbounded","Segoe UI",Inter,Roboto,Arial,sans-serif; font-weight:700;
	font-size:11.5px; letter-spacing:-.01em; }

/* ===== FERESTRELE PESTE PAGINA IN CULOAREA PAGINII =====================
   Pe intunecat, ferestrele (chat, lista firmelor, lista sectiunii din meniul strans, notificari) iau
   tonul paginii (--pg1), adancit; pe luminos raman albe. */
:root[data-theme="dark"] #anc-ov{ --anc-bg:color-mix(in srgb, var(--pg1) 55%, #07070c 45%); --anc-bg2:color-mix(in srgb, var(--pg1) 38%, #050508 62%); }
:root[data-theme="dark"] .inv-firme, :root[data-theme="dark"] #an-clopot-p{ background:color-mix(in srgb, var(--pg1) 55%, #07070c 45%); }

/* ===== LISTA RAPOARTELOR CA BUTOANE =====================================
   Fiecare raport e un buton: pastila cu
   chenar fin, in relief usor; raportul deschis = pastila in tonul sectiunii (ca in meniu). */
.rap-l{ grid-template-columns:280px minmax(0,1fr); }
.rap-m{ --sc:var(--t-purple); --sp:var(--p-purple); --sb:var(--b-purple); background:transparent; border:0; padding:0; display:flex; flex-direction:column; gap:6px;
	max-height:calc(100vh - 24px); overflow:auto; }
.rap-m h4{ margin:12px 2px 2px; font-size:10.5px; font-weight:750; letter-spacing:.7px; color:var(--sc); }
.rap-m h4:first-child{ margin-top:0; }
.rap-m a{ display:block; padding:9px 12px; border-radius:12px; font-size:12.5px; font-weight:550; line-height:1.3;
	color:var(--an-text); text-decoration:none; background:#fff;
	box-shadow:inset 0 0 0 1px var(--an-hair), 0 1px 2px rgba(40,20,80,.06), 0 4px 10px -8px rgba(40,20,80,.35);
	transition:transform .15s ease, box-shadow .15s ease, background .15s; }
.rap-m a:hover{ transform:translateY(-1px); background:var(--sp);
	box-shadow:inset 0 0 0 1px var(--sb), 0 8px 16px -10px rgba(40,20,80,.40); }
.rap-m a.on, .rap-m a.on:hover{ color:var(--sc); font-weight:700; background:var(--sp); transform:none;
	box-shadow:inset 0 0 0 1.5px var(--sc), 0 6px 14px -10px rgba(40,20,80,.40); }
:root[data-theme="dark"] .rap-m a{ background:var(--an-card);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.11), inset 0 1px 0 rgba(255,255,255,.06), 0 6px 12px -10px rgba(0,0,0,.6); }
:root[data-theme="dark"] .rap-m a:hover{ background:rgba(255,255,255,.10); box-shadow:inset 0 0 0 1px var(--sb), 0 10px 18px -10px rgba(0,0,0,.7); }
:root[data-theme="dark"] .rap-m a.on, :root[data-theme="dark"] .rap-m a.on:hover{ background:var(--sp); color:var(--sc);
	box-shadow:inset 0 0 0 1.5px var(--sc), 0 10px 18px -10px rgba(0,0,0,.7); }
@media (max-width:900px){ .rap-l{ grid-template-columns:1fr; } .rap-m{ max-height:none; } }

/* ===== LOGO-UL IN PASTILA ====================================
   Pastila in culoarea paginii (--pg / --pg1): lumina pe marginea de sus,
   umbra fina pe cea de jos, o umbra colorata sub ea. */
.an-side .an-brand > a:first-child, .an-side .an-brand > a:first-child:hover{
	width:64px; height:64px; border-radius:18px; display:inline-flex; align-items:center; justify-content:center;
	background:linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--pg) 55%, #ffffff 45%) 55%, var(--pg) 100%);
	box-shadow:inset 0 1px 0 #ffffff, inset 0 -2px 0 color-mix(in srgb, var(--pg1) 14%, transparent),
		0 0 0 1px color-mix(in srgb, var(--pg1) 20%, transparent),
		0 2px 3px color-mix(in srgb, var(--pg1) 18%, transparent), 0 10px 20px -8px color-mix(in srgb, var(--pg1) 55%, transparent); }
.an-side .an-brand > a:first-child img{ width:52px; height:52px; }
.an-side .an-brand > a:first-child:hover{ transform:translateY(-1px); }
:root[data-theme="dark"] .an-side .an-brand > a:first-child, :root[data-theme="dark"] .an-side .an-brand > a:first-child:hover{
	background:linear-gradient(180deg, color-mix(in srgb, var(--pg1) 62%, #ffffff 30%) 0%, var(--pg1) 60%, color-mix(in srgb, var(--pg1) 80%, #000 20%) 100%);
	box-shadow:inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.10),
		0 2px 4px rgba(0,0,0,.40), 0 10px 22px -8px color-mix(in srgb, var(--pg1) 85%, #000 15%), 0 0 22px -6px color-mix(in srgb, var(--pg1) 80%, transparent); }
@media (min-width:901px){
	.an-side.an-ascuns .an-brand > a:first-child{ width:48px; height:48px; border-radius:14px; }
	.an-side.an-ascuns .an-brand > a:first-child img{ width:40px; height:40px; }
}

/* ===== PRIMA PAGINA (DASHBOARD) ===========================
   Pagina de start foloseste movul implicit: --pg:var(--p-purple); --pg1:#2c1860; --pg2:#1a0f3e. */
:root:has(.layout[data-pagina="acasa"]){ --pg:var(--p-purple); --pg1:#2c1860; --pg2:#1a0f3e; }

/* subsolul meniului: versiunea si e-mailul de suport, una sub alta, centrate */
.an-side .an-jos{ text-align:center; }
.an-side .an-jos .an-ver, .an-side .an-jos .an-sup{ display:block; text-align:center; }

/* ===== LUMINA FINA A MENIULUI PE INTUNECAT ===========================
   Pe intunecat o umbra neagra nu se vede, deci e o lumina: un halou ingust de-a lungul liniei dintre
   meniu si pagina, cel mai puternic la mijlocul ecranului si stins spre sus si spre jos.
   Lumina are o nuanta din tonul paginii; pe tonul portocaliu e mai tare (--an-lum).
   Pe luminos ramane umbra fina de mai sus. */
@media (min-width:901px){
	:root[data-theme="dark"] body.an-cu-meniu::after{ content:""; position:fixed; z-index:40; top:0; bottom:0; left:256px;
		width:14px; margin-left:-7px; pointer-events:none;
		--an-lum-c:color-mix(in srgb, var(--pg1) 22%, #ffffff 78%);
		background:radial-gradient(ellipse 50% 46% at 50% 50%, color-mix(in srgb, var(--an-lum-c) calc(var(--an-lum,.22) * 100%), transparent) 0%,
			color-mix(in srgb, var(--an-lum-c) calc(var(--an-lum,.22) * var(--an-lum-m,40%)), transparent) 35%, transparent 100%); }
	:root[data-theme="dark"] body.an-cu-meniu.an-meniu-ascuns::after{ left:76px; }
	:root[data-theme="dark"] body.an-cu-meniu::before{
		background:linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.12) 70%, rgba(255,255,255,.05) 100%); }
	:root[data-theme="dark"] .an-side{ box-shadow:none; }
}
@media print{ body.an-cu-meniu::after{ display:none; } }

/* ===== LOGO-UL MAI MARE =====================================
   Pastila logo-ului are 84px, cat blocul cu numele aplicatiei, firma si butoanele.
   In meniul strans ramane 48px. */
@media (min-width:901px){
	.an-side .an-brand > a:first-child, .an-side .an-brand > a:first-child:hover,
	:root[data-theme="dark"] .an-side .an-brand > a:first-child, :root[data-theme="dark"] .an-side .an-brand > a:first-child:hover{
		width:84px; height:84px; border-radius:22px; margin:0; }
	.an-side .an-brand > a:first-child img{ width:70px; height:70px; }
	.an-side.an-ascuns .an-brand > a:first-child{ width:48px; height:48px; border-radius:14px; }
	.an-side.an-ascuns .an-brand > a:first-child img{ width:40px; height:40px; }
}

/* ===== PASTILA LOGO-ULUI FARA UMBRE =====================================
   Fara umbra, lumina sau chenar, pe ambele teme: doar pastila in culoarea paginii. */
.an-side .an-brand > a:first-child, .an-side .an-brand > a:first-child:hover{
	box-shadow:none; }
:root[data-theme="dark"] .an-side .an-brand > a:first-child, :root[data-theme="dark"] .an-side .an-brand > a:first-child:hover{
	box-shadow:none; }

/* ===== PASTILA LOGO-ULUI PLATA, CU CONTUR FOARTE FIN =====================
   Fara degradeu: fond plat (alb pe luminos, tonul paginii pe intunecat) si un contur de 0,5px
   in cyanul logo-ului (#0da9d0). */
.an-side .an-brand > a:first-child, .an-side .an-brand > a:first-child:hover,
:root[data-theme="dark"] .an-side .an-brand > a:first-child, :root[data-theme="dark"] .an-side .an-brand > a:first-child:hover{
	background:#ffffff; box-shadow:none; border:0.5px solid rgba(13,169,208,.75); box-sizing:border-box; }
:root[data-theme="dark"] .an-side .an-brand > a:first-child, :root[data-theme="dark"] .an-side .an-brand > a:first-child:hover{
	background:var(--pg1); }
