/* ---- teme (culorile se schimba din selectorul din capul paginii) ---- */
:root, :root[data-tema="intunecat"] {
  --side: #0c131c; --side-2: #16222f; --side-text: #b7c4d4; --accent: #4c9aff;
  --bg: #0f1620; --card: #17212d; --text: #e5edf6; --muted: #93a1b1; --line: #26313f;
  --neg: #ff6b6b; --radius: 10px;
  --field-bg: #111a25; --field-border: #2c3a4a; --field-disabled: #1a2431;
  --head-bg: #1c2836; --head-text: #a9b8c8; --row-line: #1e2937; --row-alt: #141e29; --row-hover: #1d2c3d;
  --total-bg: #1b2a3a; --total-line: #2f4257; --pop-bg: #17212d; --hover-soft: #1d2836;
  --umbra: rgba(0,0,0,.5);
}
:root[data-tema="bleumarin"] {
  --side: #0a1330; --side-2: #152253; --side-text: #bcc7ea; --accent: #5b8cff;
  --bg: #0b1226; --card: #141d3a; --text: #e6ebfa; --muted: #93a0c4; --line: #26315a;
  --neg: #ff7a8a;
  --field-bg: #101833; --field-border: #2c3968; --field-disabled: #17203f;
  --head-bg: #1a2449; --head-text: #aab6de; --row-line: #1d2747; --row-alt: #121a36; --row-hover: #1e2b56;
  --total-bg: #1a2750; --total-line: #33427a; --pop-bg: #141d3a; --hover-soft: #1a2445;
  --umbra: rgba(0,0,0,.55);
}
:root[data-tema="grafit"] {
  --side: #141414; --side-2: #232323; --side-text: #c6c6c6; --accent: #8ab4f8;
  --bg: #121212; --card: #1c1c1c; --text: #e8e8e8; --muted: #9a9a9a; --line: #2c2c2c;
  --neg: #ff7b72;
  --field-bg: #161616; --field-border: #343434; --field-disabled: #1f1f1f;
  --head-bg: #232323; --head-text: #b4b4b4; --row-line: #262626; --row-alt: #181818; --row-hover: #262626;
  --total-bg: #242424; --total-line: #3a3a3a; --pop-bg: #1c1c1c; --hover-soft: #242424;
  --umbra: rgba(0,0,0,.6);
}
:root[data-tema="padure"] {
  --side: #0c1c15; --side-2: #143023; --side-text: #bcd6c8; --accent: #3fbf7f;
  --bg: #0d1a14; --card: #14251d; --text: #e2f0e8; --muted: #8fab9c; --line: #21382c;
  --neg: #ff7b72;
  --field-bg: #102019; --field-border: #274434; --field-disabled: #18291f;
  --head-bg: #1a2f24; --head-text: #a5c2b1; --row-line: #1d3227; --row-alt: #122019; --row-hover: #1d3a2b;
  --total-bg: #1b3327; --total-line: #2d5440; --pop-bg: #14251d; --hover-soft: #1a2e23;
  --umbra: rgba(0,0,0,.55);
}
:root[data-tema="mov"] {
  --side: #1a1030; --side-2: #2c1b52; --side-text: #cfc2ec; --accent: #a97bff;
  --bg: #150e28; --card: #201636; --text: #ece4fb; --muted: #a596c4; --line: #33265a;
  --neg: #ff7aa2;
  --field-bg: #1a1130; --field-border: #3c2c66; --field-disabled: #241a3d;
  --head-bg: #2a1e4a; --head-text: #bbaada; --row-line: #2a1f48; --row-alt: #1b1230; --row-hover: #2e2154;
  --total-bg: #2b1f4d; --total-line: #46346f; --pop-bg: #201636; --hover-soft: #271b45;
  --umbra: rgba(0,0,0,.55);
}
:root[data-tema="deschis"] {
  --side: #16263d; --side-2: #1f3a5f; --side-text: #c9d6e8; --accent: #2f80ed;
  --bg: #eef2f7; --card: #ffffff; --text: #1d2939; --muted: #667085; --line: #e3e8ef;
  --neg: #c0392b;
  --field-bg: #ffffff; --field-border: #cfd6e0; --field-disabled: #f3f5f8;
  --head-bg: #f6f8fb; --head-text: #475467; --row-line: #f0f2f5; --row-alt: #fafbfd; --row-hover: #eef5ff;
  --total-bg: #e8eef7; --total-line: #c9d4e4; --pop-bg: #ffffff; --hover-soft: #f5f7fa;
  --umbra: rgba(16,24,40,.14);
}
:root[data-tema="gri"] {
  --side: #23272e; --side-2: #33383f; --side-text: #cfd4dc; --accent: #4b7bec;
  --bg: #e6e8ec; --card: #ffffff; --text: #1f2429; --muted: #6b7280; --line: #e2e5ea;
  --neg: #c0392b;
  --field-bg: #ffffff; --field-border: #cbd0d8; --field-disabled: #f1f2f5;
  --head-bg: #f2f4f7; --head-text: #414852; --row-line: #f0f1f4; --row-alt: #fafafb; --row-hover: #eaeef7;
  --total-bg: #e8eaee; --total-line: #cdd2da; --pop-bg: #ffffff; --hover-soft: #f4f5f7;
  --umbra: rgba(16,24,40,.14);
}
:root[data-tema="cald"] {
  --side: #3a2f26; --side-2: #5a4636; --side-text: #ecdfd0; --accent: #c2703a;
  --bg: #f4ece1; --card: #fffdf9; --text: #2e2620; --muted: #7b6a58; --line: #e8ddcd;
  --neg: #b23a2f;
  --field-bg: #fffdf9; --field-border: #ded0bc; --field-disabled: #f3ece1;
  --head-bg: #f7f0e5; --head-text: #5a4a39; --row-line: #f2ebe0; --row-alt: #fdf9f2; --row-hover: #f6e9d8;
  --total-bg: #f0e3d0; --total-line: #dcc9ae; --pop-bg: #fffdf9; --hover-soft: #f7f1e8;
  --umbra: rgba(60,40,20,.16);
}
:root[data-tema="oceanic"] {
  --side: #0d3b46; --side-2: #135c6b; --side-text: #cceaee; --accent: #0e8f9f;
  --bg: #e8f4f6; --card: #ffffff; --text: #10262b; --muted: #5d7b81; --line: #d7e8ea;
  --neg: #c0392b;
  --field-bg: #ffffff; --field-border: #c3dbdf; --field-disabled: #eef5f6;
  --head-bg: #eff7f8; --head-text: #3d5f65; --row-line: #eaf3f4; --row-alt: #f8fcfc; --row-hover: #e0f2f4;
  --total-bg: #dcedef; --total-line: #b9d8dc; --pop-bg: #ffffff; --hover-soft: #f1f8f9;
  --umbra: rgba(10,40,45,.16);
}
:root[data-tema="contrast"] {
  --side: #000000; --side-2: #101010; --side-text: #ffffff; --accent: #ffd400;
  --bg: #000000; --card: #0a0a0a; --text: #ffffff; --muted: #c8c8c8; --line: #3a3a3a;
  --neg: #ff5a5a;
  --field-bg: #0a0a0a; --field-border: #6a6a6a; --field-disabled: #151515;
  --head-bg: #151515; --head-text: #ffd400; --row-line: #2a2a2a; --row-alt: #0f0f0f; --row-hover: #262600;
  --total-bg: #1f1f00; --total-line: #ffd400; --pop-bg: #0a0a0a; --hover-soft: #1a1a1a;
  --umbra: rgba(0,0,0,.8);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); display: flex; }

/* ---- meniu lateral ---- */
.sidebar { width: 240px; flex: none; background: linear-gradient(180deg, var(--side), var(--side-2)); color: var(--side-text);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; transition: width .2s; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.brand-text { font-weight: 600; color: #fff; white-space: nowrap; }
nav { padding: 12px 8px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .55; padding: 12px 10px 6px; white-space: nowrap; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; white-space: nowrap; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.collapse { margin: 8px; padding: 6px; background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--side-text); border-radius: 6px; cursor: pointer; font-size: 16px; }
body.mini .sidebar { width: 62px; }
body.mini .brand-text, body.mini .nav-item span, body.mini .nav-group { display: none; }
body.mini .collapse { transform: rotate(180deg); }

/* ---- continut ---- */
.content { flex: 1; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px;
  height: 100vh; overflow-y: auto; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 600; }
.meta { color: var(--muted); font-size: 12px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05); }

/* filtrele stau pe un singur rand si se ingusteaza cat e nevoie */
.filters { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 12px; padding: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; flex: 0 1 auto; }
.field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input, .field select { font: inherit; font-size: 14px; color: var(--text); padding: 7px 9px; border: 1px solid var(--field-border); border-radius: 7px; width: 100%; min-width: 0; background: var(--field-bg); }
.field input:focus, .field select:focus { outline: 2px solid rgba(47,128,237,.25); border-color: var(--accent); }
.field-checkbox { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; color: var(--text); }
.field-checkbox input { min-width: 0; }
.actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.btn { white-space: nowrap; }
.btn { font: inherit; padding: 8px 16px; border-radius: 7px; border: 1px solid var(--field-border); background: var(--field-bg); cursor: pointer; color: var(--text); }
.btn:hover:not(:disabled) { background: var(--hover-soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #1f6fdc; }
.btn:disabled { opacity: .5; cursor: default; }

.alert { background: color-mix(in srgb, var(--neg) 12%, var(--card)); color: var(--neg); border: 1px solid color-mix(in srgb, var(--neg) 35%, var(--card)); border-radius: 8px; padding: 10px 14px; }

.table-card { flex: 1 0 auto; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.table-tools { display: flex; justify-content: flex-start; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); gap: 10px; min-height: 34px; }
.field-cauta { width: 170px; min-width: 110px; }
.field-cauta input:disabled { background: var(--field-disabled); color: var(--muted); }
#count { color: var(--muted); font-size: 12px; }
.neprelucrate { color: var(--neg); font-size: 12px; font-weight: 600; }
.table-wrap { flex: 1; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
thead { position: sticky; top: 0; z-index: 2; }
th { background: var(--head-bg); color: var(--head-text); font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
td { padding: 7px 10px; border-bottom: 1px solid var(--row-line); white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr:hover { background: var(--row-hover); }
.right { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
td.neg { color: var(--neg); }
tfoot td { position: sticky; bottom: 0; background: var(--total-bg); font-weight: 700; border-top: 2px solid var(--total-line); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--field-border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pe ecrane mai inguste filtrele se aseaza pe mai multe randuri */
@media (max-width: 1150px) {
  .filters { flex-wrap: wrap; }
  .field { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .content { height: auto; padding: 16px; }
  .actions { margin-left: 0; }
}

/* ---- lista cu cautare ---- */
.combo { position: relative; width: 240px; min-width: 90px; flex: 0 1 auto; }
.combo-input { width: 100%; min-width: 0 !important; padding-right: 26px !important;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23889'/%3E%3C/svg%3E") no-repeat right 9px center !important; }
.combo-input:disabled { background-color: var(--field-disabled) !important; color: var(--muted); }
.combo-list { position: absolute; z-index: 50; left: 0; top: calc(100% + 4px); min-width: 100%; width: max-content; max-width: 520px;
  max-height: 320px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--pop-bg);
  border: 1px solid var(--field-border); border-radius: 8px; box-shadow: 0 8px 24px var(--umbra, rgba(16,24,40,.14)); }
.combo-list li { padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-list li.active { background: var(--row-hover); }
.combo-list li.sel { font-weight: 600; color: var(--accent); }
.combo-list li.combo-none, .combo-list li.combo-more { color: var(--muted); cursor: default; font-size: 12px; }

/* ---- rand deasupra antetului (ex. Sold Initial) ---- */
.above-row td { background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 10px; }
.above-row .above-label { color: var(--muted); font-weight: 600; }
.above-row .above-value { font-weight: 700; background: var(--row-hover); }

/* ---- bara de progres colorata din capul aplicatiei ---- */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 15px; z-index: 200; overflow: hidden;
  background: #101a2b; opacity: 1; transition: opacity .5s ease; }
/* bara sta peste continut, nu impinge pagina; dupa incarcare dispare lin */
.topbar.gata { opacity: 0; }
.topbar-fill { position: relative; height: 100%; width: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg,
     #2f80ed, #00b3ff, #00c2c7, #00d68f, #34c759, #a8e05f,
     #ffd60a, #ff9f0a, #ff6b3d, #ff375f, #ff2d9b, #bf5af2, #5e5ce6, #2f80ed);
  background-size: 400% 100%; animation: topbar-slide 14s linear infinite;
  box-shadow: 0 0 14px rgba(47,128,237,.55), 0 0 6px rgba(255,255,255,.35), 0 1px 4px rgba(16,24,40,.25);
  transition: width .28s cubic-bezier(.4,0,.2,1); }
/* licarul care trece peste bara */
.topbar-fill span { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 65%);
  background-size: 250% 100%; animation: topbar-shine 3.2s ease-in-out infinite; opacity: .5; }
@keyframes topbar-slide { to { background-position: -400% 0; } }
@keyframes topbar-shine { 0% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
/* in timpul incarcarii culorile curg mai repede si bara straluceste mai tare */
body.loading .topbar-fill { animation-duration: 2.6s;
  box-shadow: 0 0 24px rgba(47,128,237,.95), 0 0 10px rgba(255,255,255,.7); }
body.loading .topbar-fill span { animation-duration: 1s; opacity: .95; }
@media (prefers-reduced-motion: reduce) {
  .topbar-fill, .topbar-fill span { animation: none; }
}

/* ---- camp de data + calendar in romana ---- */
.datepick { position: relative; width: 132px; min-width: 112px; flex: 0 1 auto; }
.date-input { width: 100%; min-width: 0 !important; padding-right: 28px !important;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23889' stroke-width='1.6'%3E%3Crect x='1.7' y='2.6' width='10.6' height='9.7' rx='1.6'/%3E%3Cpath d='M1.7 5.6h10.6M4.6 1.4v2.4M9.4 1.4v2.4'/%3E%3C/svg%3E") no-repeat right 9px center !important;
  font-variant-numeric: tabular-nums; }
.cal { position: absolute; z-index: 60; min-width: 252px; top: calc(100% + 4px); left: 0; width: 252px; padding: 8px;
  background: var(--pop-bg); border: 1px solid var(--field-border); border-radius: 10px; box-shadow: 0 8px 24px var(--umbra, rgba(16,24,40,.16)); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.cal-luna { font-weight: 600; text-transform: capitalize; border: 0; background: transparent;
  font: inherit; font-weight: 600; color: var(--text); cursor: pointer; padding: 4px 10px; border-radius: 6px; }
.cal-luna:hover { background: var(--row-hover); color: var(--accent); }
/* alegerea lunii */
.cal-luni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cal-luni .luna-btn { padding: 10px 0; border: 0; background: transparent; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text); text-transform: capitalize; }
.cal-luni .luna-btn:hover { background: var(--row-hover); }
.cal-luni .luna-btn.azi { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 600; }
.cal-luni .luna-btn.sel { background: var(--accent); color: #fff; font-weight: 600; }
.cal .nav { border: 1px solid var(--field-border); background: var(--field-bg); border-radius: 6px; width: 26px; height: 26px;
  cursor: pointer; font-size: 16px; line-height: 1; color: var(--text); }
.cal .nav:hover { background: var(--hover-soft); }
.cal-zile { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-zile .cap { text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0 4px; }
.cal-zile .gol { height: 30px; }
.cal .zi { height: 30px; border: 0; background: transparent; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text); }
.cal .zi:hover { background: var(--row-hover); }
.cal .zi.azi { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 600; }
.cal .zi.sel { background: var(--accent); color: #fff; font-weight: 600; }
.cal-jos { display: flex; justify-content: flex-end; padding-top: 6px; }
.cal .azi-btn { border: 1px solid var(--field-border); background: var(--field-bg); border-radius: 6px; padding: 4px 10px;
  cursor: pointer; font: inherit; font-size: 12px; color: var(--text); }
.cal .azi-btn:hover { background: var(--hover-soft); }

/* ---- selector de tema ---- */
.teme { display: flex; align-items: center; gap: 8px; }
.teme span { font-size: 12px; color: var(--muted); }
.teme select { font: inherit; font-size: 13px; color: var(--text); background: var(--field-bg);
  border: 1px solid var(--field-border); border-radius: 7px; padding: 6px 9px; cursor: pointer; min-width: 150px; }
.teme select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }

/* ---- blocurile de deasupra tabelului (decont) ---- */
.antet { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.panou { background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px var(--umbra, rgba(16,24,40,.06)); }
.panou-cap { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 9px 12px; background: var(--head-bg); color: var(--head-text); font-weight: 600; font-size: 13px; }
.panou-rand { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px;
  border-bottom: 1px solid var(--row-line); font-size: 13px; }
.panou-rand:last-child { border-bottom: 0; }
.panou-rand .val { font-variant-numeric: tabular-nums; }
.panou-rand.total { background: var(--total-bg); font-weight: 700; border-top: 1px solid var(--total-line); }
.panou-tabel { width: 100%; font-size: 13px; }
.panou-tabel th { position: static; background: transparent; border-bottom: 1px solid var(--line);
  cursor: default; font-size: 12px; padding: 6px 12px; }
.panou-tabel td { padding: 6px 12px; }
.panou-tabel td.gol { color: var(--muted); text-align: center; }

/* ---- pagina de autentificare ---- */
.pagina-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login { width: 100%; max-width: 380px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.login-cap { display: flex; align-items: center; gap: 12px; }
.login-cap h1 { margin: 0; font-size: 19px; font-weight: 600; }
.login-cap p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.login .field { width: 100%; }
.login .field input { width: 100%; }
.login .btn { margin-top: 4px; padding: 10px 16px; }
.login .alert { margin: 0; font-size: 13px; }
.login .alert #cronometru { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.login .alert.gata { background: color-mix(in srgb, var(--accent) 12%, var(--card));
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--card)); }
/* utilizatorul conectat, in meniul lateral */
.user-box { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; color: var(--side-text); font-size: 12px; }
.user-box b { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-box a { color: var(--side-text); text-decoration: none; border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.user-box a:hover { background: rgba(255,255,255,.08); color: #fff; }
body.mini .user-box b, body.mini .user-box .eticheta { display: none; }

/* comparatii Softone - Saga: coloana Stare */
td.stare-ok    { color: #22c55e; }
td.stare-dif   { color: #ef4444; font-weight: 600; }
td.stare-lipsa { color: #f59e0b; font-weight: 600; }

/* raport pe doua niveluri: luna -> zile */
td a.drill { color: var(--accent, #3b82f6); text-decoration: none; font-weight: 600; }
td a.drill:hover { text-decoration: underline; }
tr.detaliu.d1 > td { background: rgba(127, 127, 127, .07); font-size: .94em; }
tr.detaliu.d2 > td { background: rgba(127, 127, 127, .13); font-size: .9em; }
td.niv1 { padding-left: 26px; opacity: .9; }
td.niv2 { padding-left: 52px; opacity: .85; }
td.val-dif { background: rgba(239, 68, 68, .16); color: #ef4444; font-weight: 600; }
