/* Calculator de zile lucrătoare — doar clase .dlc-*, token-urile site-ului cu fallback. */
.dlc-page {
  --dlc-line: var(--line, #1c2542);
  --dlc-panel: var(--bg-1, #080b17);
  --dlc-panel-2: var(--bg-2, #0b101f);
  --dlc-field: var(--bg-3, #101728);
  --dlc-ink: var(--ink, #f3f6fd);
  --dlc-ink-2: var(--ink-2, #a9b4ce);
  --dlc-ink-3: var(--ink-3, #6f7d9c);
  --dlc-accent: var(--accent, #7c9cff);
  --dlc-ok: var(--mint, #5fd39a);
  --dlc-bad: #ff8a8a;
  --dlc-gold: var(--gold, #f4c667);
  min-width: 0;
}
.dlc-cta:empty { display: none; }
.dlc-cta { margin-top: 18px; }

.dlc {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--dlc-line); border-radius: var(--r, 18px);
  background: var(--dlc-panel); overflow: hidden; box-shadow: var(--shadow-3, none);
  color-scheme: dark;
}

/* ───── file ───── */
.dlc-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--dlc-line); background: var(--dlc-panel-2); overflow-x: auto; }
.dlc-tabs button {
  flex: 1 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-xs, 8px);
  background: transparent; color: var(--dlc-ink-2); font: 600 .92rem/1.2 var(--f-body, system-ui, sans-serif); cursor: pointer;
}
.dlc-tabs button:hover { color: var(--dlc-ink); border-color: var(--dlc-line); }
.dlc-tabs button[aria-selected="true"] { background: var(--dlc-accent); color: #05070f; }

.dlc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dlc-in { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.dlc-in + .dlc-res { border-left: 1px solid var(--dlc-line); }

.dlc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dlc-f { display: grid; gap: 6px; min-width: 0; }
.dlc-f > span { font-size: .84rem; color: var(--dlc-ink-2); font-weight: 500; }
.dlc input[type="date"], .dlc input[type="number"], .dlc select, .dlc textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-xs, 8px);
  border: 1px solid var(--dlc-line); background: var(--dlc-field); color: var(--dlc-ink);
  font: 500 1rem/1.3 var(--f-body, system-ui, sans-serif);
}
.dlc textarea { min-height: 88px; font: 13.5px/1.55 var(--f-mono, ui-monospace, Menlo, monospace); resize: vertical; }
.dlc input:focus-visible, .dlc select:focus-visible, .dlc textarea:focus-visible, .dlc button:focus-visible, .dlc summary:focus-visible {
  outline: 2px solid var(--dlc-accent); outline-offset: 2px;
}
.dlc-check { display: inline-flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--dlc-ink-2); cursor: pointer; min-height: 32px; }
.dlc-check input { width: 18px; height: 18px; accent-color: var(--dlc-accent); }
.dlc-inline { display: flex; gap: 8px; align-items: end; }
.dlc-inline .dlc-f { flex: 1; }

.dlc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  min-height: 44px; padding: 0 14px; border-radius: var(--r-xs, 8px); cursor: pointer;
  border: 1px solid var(--dlc-line); background: var(--dlc-field); color: var(--dlc-ink);
  font: 500 .9rem/1 var(--f-body, system-ui, sans-serif);
}
.dlc-btn:hover { border-color: var(--dlc-accent); }

/* ───── setări ───── */
.dlc-set { border-top: 1px solid var(--dlc-line); padding-top: 16px; }
.dlc-set > summary { cursor: pointer; font-weight: 600; color: var(--dlc-ink); min-height: 32px; }
.dlc-set[open] > summary { margin-bottom: 14px; }
.dlc-set-body { display: grid; gap: 16px; }
.dlc-week { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.dlc-week legend { font-size: .84rem; color: var(--dlc-ink-2); font-weight: 500; margin-bottom: 6px; padding: 0; }
.dlc-week label { position: relative; }
.dlc-week input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dlc-week span {
  display: inline-grid; place-items: center; min-width: 48px; min-height: 40px; padding: 0 8px;
  border: 1px solid var(--dlc-line); border-radius: var(--r-xs, 8px); font-size: .86rem; color: var(--dlc-ink-3);
}
.dlc-week input:checked + span { background: rgba(124, 156, 255, .16); border-color: var(--dlc-accent); color: var(--dlc-ink); font-weight: 600; }
.dlc-week input:focus-visible + span { outline: 2px solid var(--dlc-accent); outline-offset: 2px; }
.dlc-hint { font-size: .8rem; color: var(--dlc-ink-3); margin: 0; }
.dlc-err { font-size: .82rem; color: var(--dlc-bad); margin: 0; }

/* ───── rezultat ───── */
.dlc-res { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--dlc-panel-2); }
.dlc-res-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dlc-ink-3); }
.dlc-out { display: grid; gap: 12px; align-content: start; min-height: 220px; }
.dlc-big { font: 700 clamp(1.7rem, 2.6vw + .6rem, 2.6rem)/1.15 var(--f-display, system-ui, sans-serif); letter-spacing: -.02em; color: var(--dlc-ink); text-wrap: balance; overflow-wrap: anywhere; }
.dlc-big small { font-size: .5em; font-weight: 600; color: var(--dlc-ink-2); letter-spacing: 0; }
.dlc-late { color: var(--dlc-gold); }
.dlc-sub { margin: 0; color: var(--dlc-ink-2); }
.dlc-sub code { font: 600 .92em var(--f-mono, ui-monospace, monospace); color: var(--dlc-ink); background: var(--dlc-field); padding: 2px 6px; border-radius: 5px; }
.dlc-out .dlc-btn { justify-self: start; }
.dlc-skip { border: 1px solid var(--dlc-line); border-radius: var(--r-sm, 12px); padding: 10px 14px; }
.dlc-skip summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-size: .9rem; color: var(--dlc-ink); }
.dlc-skip ul { margin: 10px 0 2px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .88rem; color: var(--dlc-ink-2); }
.dlc-skip li span { display: inline-block; min-width: 9.5em; color: var(--dlc-ink); font-variant-numeric: tabular-nums; }
.dlc-note { margin: 0; font-size: .84rem; color: var(--dlc-gold); }

.dlc-toast {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding: 12px 18px; border-radius: var(--r-sm, 12px); max-width: min(92vw, 460px);
  background: var(--bg-3, #101728); color: var(--dlc-ink); border: 1px solid var(--dlc-line);
  box-shadow: var(--shadow-2, 0 10px 30px rgba(0,0,0,.5)); font-size: .9rem;
}
.dlc-toast[data-kind="ok"] { border-color: rgba(95, 211, 154, .55); }
.dlc-toast[data-kind="bad"] { border-color: rgba(255, 138, 138, .6); }

/* ───── text sub unealtă ───── */
.dlc-about { margin-top: clamp(32px, 4vw, 52px); max-width: var(--w-txt, 68ch); }
.dlc-about ul { padding-left: 1.2em; }
.dlc-about li { margin: .4em 0; }
.dlc-faq { margin-top: clamp(28px, 3.6vw, 44px); max-width: var(--w-txt, 68ch); }
.dlc-faq details { border-bottom: 1px solid var(--dlc-line); padding: 14px 0; }
.dlc-faq summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.dlc-faq details p { margin: 10px 0 2px; color: var(--dlc-ink-2); }
.dlc-about h2, .dlc-faq h2 { font-size: clamp(1.45rem, 1.2vw + 1.1rem, 2rem); margin: 0 0 .5em; }

@media (max-width: 860px) {
  .dlc-grid { grid-template-columns: minmax(0, 1fr); }
  .dlc-in + .dlc-res { border-left: 0; border-top: 1px solid var(--dlc-line); }
  .dlc-out { min-height: 0; }
}
@media (max-width: 560px) {
  .dlc-tabs { flex-direction: column; }
  .dlc-tabs button { text-align: left; }
}
@media (max-width: 420px) {
  .dlc-row { grid-template-columns: minmax(0, 1fr); }
}
