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

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

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

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

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

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