/* Reconfirmation performance: Leave (views-perf-leave.js) and the "Mark leave" dialog. Design tokens only (no literal
   colours). Prefix lv-. Leave on other screens (the Agents day grid, the agent page) is styled in s-perf-overview.css
   and s-perf-people.css. Reused: .pp-loading / .pp-link (s-perf-people.css), .cmodal (app.css). */

/* ---------- header: month navigator + Mark leave ---------- */
.lv-actions{align-items:center;gap:10px;flex-wrap:wrap}
.lv-month{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:2px}
.lv-mbtn{width:32px;padding:0;justify-content:center}
.lv-mbtn svg{width:16px;height:16px}
.lv-mlabel{min-width:128px;text-align:center;font-size:13px;font-weight:650;color:var(--ink)}

/* ---------- tiles + list ---------- */
.lv-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
.lv-of{font-size:13px;font-weight:550;color:var(--ink3)}
.lv-filters{align-items:center}
.lv-q{margin-left:auto;min-width:0;width:220px;max-width:100%}
.lv-tbl td{vertical-align:top}
.lv-tbl .lv-r{text-align:right;white-space:nowrap}
.lv-tbl th.lv-r{text-align:right}
.lv-chips{display:flex;flex-wrap:wrap;gap:4px}
.lv-note{max-width:280px;color:var(--ink2)}
.lv-note-sub{display:none}
.lv-tbl tr.is-past td{color:var(--ink2)}
.lv-tbl tr.is-now td:first-child{box-shadow:inset 3px 0 0 var(--brand)}

/* ---------- the dialog ---------- */
.lv-modal{width:min(460px,100%)}
.lv-lbl{display:block;font-size:12px;font-weight:600;color:var(--ink2);margin-bottom:6px}
.lv-kinds{flex-wrap:wrap}
.lv-kinds button:disabled{opacity:.45;cursor:default}
.lv-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lv-half{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink);margin:0 0 12px;cursor:pointer}
.lv-half.is-off{color:var(--ink3);cursor:default}
.lv-hint{margin:0;font-size:12.5px;color:var(--ink2);min-height:1.4em}
.lv-err{color:var(--crit-ink);font-size:12.5px}

@media (max-width:760px){
  .lv-tiles{grid-template-columns:1fr 1fr}
  .lv-tiles .tile:last-child{grid-column:1 / -1}
  .lv-note{display:none}
  .lv-note-sub{display:block}
}
@media (max-width:560px){
  .lv-actions{width:100%;justify-content:space-between}
  .lv-q{margin-left:0;width:100%}
  .lv-dates{grid-template-columns:1fr}
  /* the list becomes one block per line: who + type, then when + days, then Remove */
  .lv-tbl thead{display:none}
  .lv-tbl,.lv-tbl tbody{display:block}
  .lv-tbl tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 14px;border-bottom:1px solid var(--line2)}
  .lv-tbl tr:last-child{border-bottom:0}
  .lv-tbl td{display:block;padding:0;border:0}
  .lv-tbl td.lv-note{display:none}
  .lv-tbl td:nth-child(2){grid-column:2;grid-row:1;text-align:right}
  .lv-tbl td:nth-child(2) .lv-chips{justify-content:flex-end}
  .lv-tbl td:nth-child(3){grid-column:1;grid-row:2}
  .lv-tbl td:nth-child(4){grid-column:2;grid-row:2}
  .lv-tbl td:nth-child(6){grid-column:1 / -1;text-align:left}
  .lv-tbl td:nth-child(6):empty{display:none}
  .lv-tbl td:nth-child(6) .btn{margin-left:-10px}
  .lv-tbl tr.is-now td:first-child{box-shadow:none}
  .lv-tbl tr.is-now{box-shadow:inset 3px 0 0 var(--brand)}
}
