/* Calculator part-time — doar clase .hpt-*, token-urile site-ului cu fallback. */
.hpt-page {
  --hpt-line: var(--line, #1c2542);
  --hpt-panel: var(--bg-1, #080b17);
  --hpt-panel-2: var(--bg-2, #0b101f);
  --hpt-ink: var(--ink, #f3f6fd);
  --hpt-ink-2: var(--ink-2, #a9b4ce);
  --hpt-ink-3: var(--ink-3, #6f7d9c);
  --hpt-accent: var(--accent, #7c9cff);
  --hpt-ok: var(--mint, #5fd39a);
  --hpt-gold: var(--gold, #f4c667);
  min-width: 0;
}
.hpt-cta:empty { display: none; }
.hpt-cta { margin-top: 18px; }
.hpt-box { margin-top: clamp(24px, 4vw, 40px); padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--hpt-line); border-radius: var(--r, 18px); background: var(--hpt-panel); }
.hpt-next { margin: 0 0 14px; color: var(--hpt-ink-2); font-size: 1.05rem; line-height: 1.5; }
.hpt-next:empty { display: none; }
.hpt-next b { color: var(--hpt-ok); }
.hpt-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hpt-nav { margin: 14px 0 0; color: var(--hpt-ink-3); font-size: .92rem; }
.hpt-nav a, .hpt-sec a, .hpt-hint a { color: var(--hpt-accent); }
.hpt-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-xs, 8px);
  background: var(--hpt-accent); color: #05070f; font: 600 .92rem/1.2 var(--f-body, system-ui, sans-serif); text-decoration: none;
}
.hpt-btn-2 { background: transparent; color: var(--hpt-ink); border: 1px solid var(--hpt-line); }
.hpt-btn:hover { filter: brightness(1.08); }
.hpt-btn:focus-visible, .hpt-page a:focus-visible { outline: 2px solid var(--hpt-accent); outline-offset: 2px; }

.hpt-an, .hpt-sec { margin-top: clamp(32px, 5vw, 56px); }
.hpt-an h3 { font-size: 1rem; color: var(--hpt-gold); margin: 0 0 8px; }
.hpt-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.hpt-big > div { padding: 12px 14px; border: 1px solid var(--hpt-line); border-radius: var(--r-xs, 8px); background: var(--hpt-panel-2); min-width: 0; }
.hpt-big span { display: block; color: var(--hpt-ink-3); font-size: .8rem; font-weight: 600; }
.hpt-big b { display: block; margin-top: 4px; color: var(--hpt-ink); font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-variant-numeric: tabular-nums; }
.hpt-big > div:first-child b { color: var(--hpt-ok); }

.hpt-scroll { overflow-x: auto; }
.hpt-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hpt-t th, .hpt-t td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hpt-line); text-align: left; vertical-align: top; color: var(--hpt-ink); }
.hpt-t thead th { color: var(--hpt-ink-3); font-size: .8rem; font-weight: 600; }
.hpt-t td:first-child { white-space: nowrap; font-weight: 600; }
.hpt-t tr.hpt-we td { color: var(--hpt-ink-3); }
.hpt-t tr.hpt-past td { opacity: .55; }
.hpt-t tr.hpt-cur td { color: var(--hpt-ok); }
.hpt-num td + td, .hpt-num th + th { text-align: right; }
.hpt-t tr.hpt-tot td { font-weight: 700; border-bottom: 0; }
.hpt-hint { margin: 10px 0 0; color: var(--hpt-ink-3); font-size: .88rem; line-height: 1.5; }
.hpt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.hpt-cols ul, .hpt-src ul, .hpt-guides ul { padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.5; color: var(--hpt-ink-2); margin: 0; }
.hpt-sec > p { color: var(--hpt-ink-2); line-height: 1.55; }
.hpt-note { margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid var(--hpt-gold); background: var(--hpt-panel-2); color: var(--hpt-ink-2); font-size: .92rem; line-height: 1.5; }
.hpt-an .hpt-dl { margin-top: 16px; }
.hpt-sec details { border-bottom: 1px solid var(--hpt-line); padding: 14px 0; }
.hpt-sec summary { cursor: pointer; font-weight: 600; color: var(--hpt-ink); }
.hpt-sec details p { margin: 10px 0 0; color: var(--hpt-ink-2); line-height: 1.55; }
.hpt-disc { margin-top: 18px; color: var(--hpt-ink-3); font-size: .88rem; }

@media (max-width: 760px) {
  .hpt-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hpt-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .hpt-t th, .hpt-t td { padding-right: 8px; font-size: .92rem; }
  .hpt-btn { flex: 1 1 100%; justify-content: center; }
}

/* calculator */
.hpt { margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--hpt-line); border-radius: var(--r, 18px); background: var(--hpt-panel); overflow: hidden; color-scheme: dark; }
.hpt-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--hpt-line); background: var(--hpt-panel-2); overflow-x: auto; }
.hpt-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(--hpt-ink-2); font: 600 .92rem/1.2 var(--f-body, system-ui, sans-serif); cursor: pointer; }
.hpt-tabs button:hover { color: var(--hpt-ink); border-color: var(--hpt-line); }
.hpt-tabs button[aria-selected="true"] { background: var(--hpt-accent); color: #05070f; }
.hpt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hpt-in { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.hpt-res { padding: clamp(18px, 2.4vw, 28px); border-left: 1px solid var(--hpt-line); min-width: 0; }
.hpt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hpt-f { display: grid; gap: 6px; min-width: 0; }
.hpt-f > span { color: var(--hpt-ink-2); font-size: .88rem; font-weight: 600; }
.hpt-f input, .hpt-f select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--hpt-line); border-radius: var(--r-xs, 8px); background: var(--bg-3, #101728); color: var(--hpt-ink); font: 500 1rem/1.2 var(--f-body, system-ui, sans-serif); }
.hpt-f input:focus-visible, .hpt-f select:focus-visible, .hpt-tabs button:focus-visible, .hpt-share:focus-visible { outline: 2px solid var(--hpt-accent); outline-offset: 2px; }
.hpt-err { margin: 0; color: #ff8a8a; font-weight: 600; }
.hpt-res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--hpt-ink-2); font-weight: 600; }
.hpt-share { min-height: 40px; padding: 0 14px; border: 1px solid var(--hpt-line); border-radius: var(--r-xs, 8px); background: var(--bg-3, #101728); color: var(--hpt-ink); font: 600 .88rem/1 var(--f-body, system-ui, sans-serif); cursor: pointer; }
.hpt-big { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.hpt-big.hpt-one { grid-template-columns: minmax(0, 1fr); }
.hpt-line { color: var(--hpt-ink-2); line-height: 1.5; margin: 0 0 12px; }
.hpt-res .hpt-sec { margin: 14px 0 6px; color: var(--hpt-gold); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hpt-list { padding-left: 1.2em; margin: 0; display: grid; gap: 4px; color: var(--hpt-ink-2); }
.hpt-list span { color: var(--hpt-ink-3); }
.hpt-hide { display: none !important; }
@media (max-width: 860px) { .hpt-grid { grid-template-columns: minmax(0, 1fr); } .hpt-res { border-left: 0; border-top: 1px solid var(--hpt-line); } }
@media (max-width: 480px) { .hpt-row { grid-template-columns: minmax(0, 1fr); } .hpt-big { grid-template-columns: minmax(0, 1fr); } }

/* vechime */
.hpt-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hpt-per { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px dashed var(--hpt-line); }
.hpt-f small { color: var(--hpt-ink-3); font-weight: 500; }
.hpt-x { width: 44px; height: 46px; border: 1px solid var(--hpt-line); border-radius: var(--r-xs, 8px); background: transparent; color: var(--hpt-ink-2); font-size: 1.3rem; cursor: pointer; }
.hpt-x:hover { color: #ff8a8a; border-color: #ff8a8a; }
.hpt-add { justify-self: start; min-height: 44px; padding: 0 14px; border: 1px dashed var(--hpt-accent); border-radius: var(--r-xs, 8px); background: transparent; color: var(--hpt-accent); font: 600 .92rem/1 var(--f-body, system-ui, sans-serif); cursor: pointer; }
.hpt-x:focus-visible, .hpt-add:focus-visible { outline: 2px solid var(--hpt-accent); outline-offset: 2px; }
.hpt-big b { font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.hpt-t { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.hpt-t th, .hpt-t td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hpt-line); text-align: left; color: var(--hpt-ink); vertical-align: top; }
.hpt-t td + td, .hpt-t th + th { text-align: right; }
.hpt-t thead th { color: var(--hpt-ink-3); font-size: .8rem; font-weight: 600; }
.hpt-t tr.hpt-sub td { color: var(--hpt-ink-2); }
.hpt-t tr.hpt-tot td { font-weight: 700; border-bottom: 0; }
@media (max-width: 480px) { .hpt-per { grid-template-columns: minmax(0, 1fr) 44px; } .hpt-per .hpt-f:nth-child(2) { grid-row: 2; } .hpt-x { grid-row: 1 / span 2; grid-column: 2; align-self: center; } }
.hpt-ul { padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.55; color: var(--hpt-ink-2); }
.hpt-in .hpt-sec-in { margin: 0; color: var(--hpt-gold); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hpt-sec .hpt-note, .hpt-res .hpt-note { margin: 0 0 12px; }
.hpt-check { display: flex; gap: 10px; align-items: flex-start; color: var(--hpt-ink-2); font-size: .95rem; cursor: pointer; }
.hpt-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hpt-accent); flex: none; }
.hpt-note { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--hpt-gold); background: var(--hpt-panel-2); color: var(--hpt-ink-2); font-size: .92rem; line-height: 1.5; }
.hpt-susp:empty { display: none; }
/* concediu medical */
.hpt-ven { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hpt-in details summary { cursor: pointer; color: var(--hpt-ink-2); font-weight: 600; }
.hpt-in details > div { display: grid; gap: 12px; margin-top: 12px; }
.hpt-conf { border-left-color: var(--hpt-accent); }
.hpt-conf b { color: var(--hpt-ink); }
@media (max-width: 480px) { .hpt-ven { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hpt-res .hpt-t td:first-child { white-space: normal; }
.hpt-res .hpt-t td + td, .hpt-res .hpt-t th + th { white-space: nowrap; padding-left: 8px; }
@media (max-width: 480px) { .hpt-res .hpt-t th, .hpt-res .hpt-t td { font-size: .86rem; padding-right: 4px; } }
.hpt-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--hpt-gold); color: var(--hpt-gold); font-size: .78rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
