/* PR1 (plan mock 'letter', EBTCO R01–R07) — the print pack: the letter window (the letter as it prints, the language chips,
   the 'show the salary' switch), the issued-letters register, and the public page the letter's QR code opens. */

/* ── the letter window ─────────────────────────────────────────────────────────────────────────────────────────── */
.lw { display: flex; flex-direction: column; gap: 14px; }
.lw-paper { background: var(--s, #fff); border: 1px solid var(--bo2, rgba(0,0,0,.12)); border-radius: 12px; padding: 16px 20px 14px;
  font-size: 14px; line-height: 1.85; color: var(--t, #0b1818); max-height: 52vh; overflow: auto; }
.lw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lw-co { font-size: 15px; font-weight: 700; }
.lw-no { font-family: var(--mono, monospace); font-size: 13px; color: var(--t2, #2a3e3e); white-space: nowrap; }
.lw-no .lw-k { font-family: var(--sans, sans-serif); color: var(--t3, #557070); }
.lw-p { margin: 0 0 8px; text-align: justify; }
.lw-strong { font-weight: 600; }
.lw-h { font-size: 14px; font-weight: 700; color: var(--ac, #0F766E); margin: 10px 0 6px; }
.lw-note { margin: 0 0 6px; font-size: 12px; color: var(--t3, #557070); }
.lw-box { margin: 6px 0; padding: 8px 12px; background: var(--s2, #f4f8f8); border: 1px solid var(--bo2, rgba(0,0,0,.12)); border-radius: 8px; }
.lw-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; margin: 4px 0 8px; }
.lw-facts > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--bo, rgba(0,0,0,.07)); padding: 3px 0; }
.lw-facts dt { color: var(--t3, #557070); font-size: 13px; }
.lw-facts dd { margin: 0; font-weight: 600; font-size: 13px; text-align: end; }
.lw-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 8px; }
.lw-table th, .lw-table td { padding: 5px 8px; border-bottom: 1px solid var(--bo, rgba(0,0,0,.07)); text-align: start; }
.lw-table thead th { background: var(--s2, #f4f8f8); color: var(--t3, #557070); font-weight: 600; }
.lw-table tfoot th { background: var(--s2, #f4f8f8); }
.lw-table .num { text-align: end; font-family: var(--mono, monospace); white-space: nowrap; width: 28%; }
.lw-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 14px; }
.lw-closing { margin: 0; font-size: 12.5px; color: var(--t2, #2a3e3e); }
.lw-qr { flex: 0 0 64px; width: 64px; height: 64px; display: block; }
.lw-qr svg { width: 64px; height: 64px; display: block; }
.lw-signs { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--bo2, rgba(0,0,0,.12)); }
.lw-sign { display: inline-flex; flex-direction: column; font-size: 12px; color: var(--t2, #2a3e3e); min-width: 120px; }
.lw-sign small { color: var(--t3, #557070); }
.lw-err { margin: 0; }

.lw-ctrl { display: flex; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.lw-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--t2, #2a3e3e); margin-bottom: 6px; }
.lw-chips { display: inline-flex; gap: 8px; }
.lw-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bo2, rgba(0,0,0,.12));
  background: var(--s, #fff); font-size: 14px; cursor: pointer; user-select: none; }
.lw-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lw-chip.on { border-color: var(--ac, #0F766E); background: var(--ad, rgba(13,148,136,.10)); color: var(--ac-on, #0F766E); font-weight: 700; }
.lw-chip:focus-within { outline: 2px solid var(--ac, #0F766E); outline-offset: 2px; }
.lw-sal { display: inline-flex; flex-direction: column; align-items: flex-start; }
.lw-switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--s4, #cfd8d8); position: relative;
  cursor: pointer; margin: 6px 0 0; transition: background .15s; }
.lw-switch::before { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.lw-switch:checked { background: var(--ac, #0F766E); }
.lw-switch:checked::before { inset-inline-start: 21px; }
.lw-switch:disabled { opacity: .5; cursor: not-allowed; }
.lw-switch:focus-visible { outline: 2px solid var(--ac, #0F766E); outline-offset: 2px; }
.lw .md-ft { display: flex; gap: 8px; }
.lw .md-ft .inline-form { display: inline-flex; margin: 0; }
.lw-busy { opacity: .55; pointer-events: none; }
.lt-menu .lt-pop button.lt-item[data-modal-trigger^="letter-"] { width: 100%; }

@media (max-width: 640px) {
  .lw-facts { grid-template-columns: minmax(0, 1fr); }
  .lw-ctrl { gap: 18px; }
  .lw-chip { min-height: 44px; }
  .lw-paper { max-height: none; }
}

/* ── the public check page (Verify/Letter) ─────────────────────────────────────────────────────────────────────── */
.vf-body { margin: 0; min-height: 100vh; background: #EEF3F3; color: #0B1818; font: 14px/1.6 'DM Sans', 'Cairo', system-ui, sans-serif; }
.vf-card { max-width: 520px; margin: 48px auto; padding: 24px 24px 18px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px;
  box-shadow: 0 6px 24px rgba(11,24,24,.06); }
.vf-t { margin: 0 0 12px; font-size: 20px; }
.vf-state { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.vf-ok { background: rgba(22,163,74,.09); color: #15803D; }
.vf-bad { background: rgba(220,38,38,.08); color: #B91C1C; }
.vf-facts { margin: 0 0 12px; }
.vf-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.vf-facts dt { color: #557070; }
.vf-facts dd { margin: 0; font-weight: 600; text-align: end; }
.vf-muted { color: #557070; font-size: 13px; margin: 0 0 10px; }
.vf-lang { font-size: 13px; text-align: center; margin-top: 8px; }
.vf-lang a { color: #0F766E; }
@media (max-width: 560px) { .vf-card { margin: 16px; } }
