/* Paneli i adminit. */

:root {
  --bg: #F2F5F3;
  --surface: #FFFFFF;
  --ink: #10231F;
  --muted: #55665F;
  --line: #D6DEDA;
  --accent: #0B6B53;
  --accent-soft: #E1EFEA;
  --danger: #A3271C;
  --danger-soft: #F8E7E4;
  --side: #10231F;
  --side-text: #C9D6D1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: 100vh; }

/* Navigimi */
.side { background: var(--side); color: var(--side-text); padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.product { margin: 0 0 1.5rem; padding: 0 0.75rem; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; color: #FFFFFF; }
.side ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.side a { display: block; padding: 0.55rem 0.75rem; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.side a:hover { background: rgba(255, 255, 255, 0.07); color: #FFFFFF; }
.side a[aria-current="page"] { background: #FFFFFF; color: var(--ink); font-weight: 700; }
.side :focus-visible { outline-color: #FFFFFF; }
.quiet { width: 100%; padding: 0.55rem 0.75rem; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.quiet:hover { background: rgba(255, 255, 255, 0.07); color: #FFFFFF; }

/* Përmbajtja */
.content { padding: 2rem 2.5rem 4rem; min-width: 0; }
h1 { margin: 0 0 1.5rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { margin: 2.5rem 0 0.75rem; font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 0.75rem; max-width: 46rem; }
.lead { color: var(--muted); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.875em; }
th:first-child, td:first-child { padding-left: 1rem; }
th:last-child, td:last-child { padding-right: 1rem; }

.flash { padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600; max-width: 46rem; }
.flash.ok { background: var(--accent-soft); color: #07473A; }
.flash.bad { background: var(--danger-soft); color: var(--danger); }

.empty { padding: 1.25rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); max-width: 46rem; }

/* Numrat kryesorë */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.figures div { padding: 1rem 1.25rem; border-right: 1px solid var(--line); }
.figures div:last-child { border-right: 0; }
.figures dt { color: var(--muted); font-size: 0.875rem; }
.figures dd { margin: 0.15rem 0 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Tabelat */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.65rem 0.75rem; text-align: left; vertical-align: middle; white-space: nowrap; }
th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { text-align: right; }
.actions form { display: inline; }
.actions > * + * { margin-left: 0.25rem; }
.swatch { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.5rem; border-radius: 50%; vertical-align: -1px; }
.tag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 6px; background: #EEF0EF; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }

/* Format */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; max-width: 46rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.field.wide { grid-column: 1 / -1; }
label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9375rem; }
label.inline { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 500; }
input:not([type="checkbox"]):not([type="color"]), select {
  display: block; width: 100%; height: 2.5rem; padding: 0 0.75rem;
  border: 1px solid #9FADA7; border-radius: 8px; background: #FFFFFF; color: var(--ink); font: inherit;
}
input[type="color"] { width: 4rem; height: 2.5rem; padding: 0.15rem; border: 1px solid #9FADA7; border-radius: 8px; background: #FFFFFF; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.hint { margin: 0.3rem 0 0; font-size: 0.8125rem; color: var(--muted); }

button, .button {
  display: inline-block; height: 2.5rem; padding: 0 1.1rem; border: 0; border-radius: 8px;
  background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 700; line-height: 2.5rem; text-decoration: none; cursor: pointer;
}
.small, button.small {
  display: inline-block; height: 2rem; padding: 0 0.7rem; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 600; line-height: calc(2rem - 2px); text-decoration: none; cursor: pointer;
}
.small:hover { border-color: #9FADA7; }
.small.danger { color: var(--danger); }
.form .small { margin-left: 0.5rem; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.filters .field { min-width: 14rem; }
.filters .small { height: 2.5rem; line-height: calc(2.5rem - 2px); }
.pager { margin-top: 1rem; color: var(--muted); }
.pager .small { margin-left: 0.5rem; }

.code { margin: 0 0 1rem; padding: 1rem 1.25rem; max-width: 60rem; overflow-x: auto; background: var(--side); color: #E4ECE9; border-radius: 10px; font: 0.8125rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; }

/* Kyçja */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
body.auth main { width: 100%; max-width: 22rem; }
body.auth .product { padding: 0; margin-bottom: 0.25rem; color: var(--accent); }
body.auth form { display: grid; gap: 0.3rem; }
body.auth label { margin-top: 0.75rem; }
body.auth button { margin-top: 1.25rem; height: 2.75rem; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.25rem; padding: 0.75rem; }
  .product { margin: 0 0.5rem 0 0; padding: 0 0.25rem; }
  .side ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .quiet { width: auto; }
  .content { padding: 1.25rem 1rem 3rem; }
  .form { grid-template-columns: 1fr; padding: 1rem; }
  .figures div { border-right: 0; border-bottom: 1px solid var(--line); }
  .figures div:last-child { border-bottom: 0; }
}

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.row form { margin: 0; }
.small.tall { height: 2.5rem; line-height: calc(2.5rem - 2px); }
.hint-gap { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted); }

/* Menyja */
.who { margin: 0 0 0.25rem; padding: 0 0.75rem; font-size: 0.8125rem; color: #8FA39C; overflow-wrap: anywhere; }

/* Fotoja e sfondit */
.photo-now { display: flex; align-items: center; gap: 1rem; margin: 0 0 0.6rem; }
.photo-now img { display: block; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.form input[type="file"] { display: block; width: 100%; height: auto; padding: 0.3rem 0; border: 0; font: inherit; }
.form textarea { display: block; width: 100%; min-height: 11rem; padding: 0.6rem 0.75rem; border: 1px solid #9FADA7; border-radius: 8px; font: inherit; line-height: 1.5; resize: vertical; }
.checks { display: grid; gap: 0.4rem; }

/* Lista e hapave të konfigurimit */
.steps { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 46rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.steps li { display: flex; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .mark { flex: none; min-width: 4.75rem; font-weight: 700; }
.steps .ok .mark { color: var(--accent); }
.steps .bad .mark { color: var(--danger); }
details.manual { max-width: 60rem; margin-top: 1.5rem; }
details.manual > summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }

/* Grafikët: ngjyrat e serive janë zgjedhur dhe kontrolluar që të dallohen edhe nga personat me daltonizëm. */
.chart { max-width: 60rem; padding: 1rem 1.25rem 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.chart-plot { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: #E3E9E6; stroke-width: 1; }
.chart-svg .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-svg .hit { fill: transparent; }
.chart-svg .col { outline: none; cursor: default; }
.chart-svg .col:hover .hit, .chart-svg .col:focus .hit { fill: rgba(16, 35, 31, 0.06); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0 0 0.5rem; padding: 0; font-size: 0.875rem; color: var(--muted); }
.swatch-box { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.4rem; border-radius: 2px; vertical-align: -1px; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); padding: 0.45rem 0.65rem; border-radius: 8px; background: var(--ink); color: #FFFFFF; font-size: 0.8125rem; line-height: 1.45; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart-tip strong, .chart-tip span { display: block; }
.chart-tip strong { font-weight: 700; }
.chart-table { margin-top: 0.5rem; }
.chart-table > summary { cursor: pointer; font-size: 0.875rem; color: var(--muted); padding: 0.35rem 0; }
.chart-table .table-wrap { margin-top: 0.5rem; max-height: 18rem; overflow-y: auto; }
.chart-note { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--muted); max-width: 60rem; }
h2.in-form { margin: 0.5rem 0 0.15rem; }
.danger-fill { background: var(--danger); }

/* Logoja aktuale në formular */
.photo-now img.logo-now { width: auto; max-width: 12rem; max-height: 3.5rem; padding: 0.4rem 0.6rem; background: #FFFFFF; }

/*
 * Faqja A5 me QR kod. Masat janë në milimetra, që ekrani dhe letra të dalin njësoj.
 * Ngjyra e lokalit vjen me --accent nga faqja.
 */
.sheet-wrap { overflow-x: auto; margin-top: 1.5rem; padding-bottom: 1rem; }
.sheet {
  display: flex;
  flex-direction: column;
  width: 148mm;
  height: 210mm;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #FFFFFF;
  color: #10231F;
  box-shadow: 0 8px 30px rgba(16, 35, 31, 0.12);
  font-size: 10.5pt;
  line-height: 1.3;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.sheet p { margin: 0; max-width: none; }
.sheet em { display: block; margin-top: 0.8mm; color: #55665F; font-size: 9.5pt; font-style: normal; font-weight: 400; }

.sheet-head { position: relative; padding: 10mm 12mm 8mm; background: var(--accent); color: var(--on-accent); }
.sheet-signal { position: absolute; top: 7mm; right: 11mm; width: 26mm; height: auto; }
.sheet-signal path { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; }
.sheet-signal circle { fill: currentColor; }
.sheet-title { font-size: 36pt; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.sheet-sub { margin-top: 2.5mm !important; font-size: 14pt; font-weight: 600; opacity: 0.85; }

.sheet-venue { padding: 7mm 12mm 0; }
.sheet-venue p { font-size: 21pt; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sheet-venue img { display: block; max-width: 64mm; max-height: 18mm; width: auto; height: auto; }

.sheet-main { display: flex; align-items: flex-start; gap: 8mm; padding: 7mm 12mm 5mm; }
.sheet-main .qr { flex: none; width: 64mm; height: 64mm; border: 1.2mm solid var(--accent); border-radius: 4mm; }
.sheet-steps { display: flex; flex-direction: column; gap: 4mm; min-width: 0; padding-top: 1mm; }
.sheet-step { display: flex; align-items: flex-start; gap: 3mm; }
.sheet-step .num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 8mm;
  height: 8mm;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12pt;
  font-weight: 800;
}
.sheet-step strong { display: block; padding-top: 0.6mm; font-size: 12.5pt; line-height: 1.2; }
.sheet-net { padding: 3mm 4mm; border-radius: 3mm; background: #EEF2F0; color: #55665F; font-size: 9pt; }
.sheet-net strong { color: #10231F; font-size: 13pt; overflow-wrap: anywhere; }
.sheet-net p + p { margin-top: 2mm; }

.sheet-alt {
  display: flex;
  align-items: center;
  gap: 6mm;
  margin: auto 12mm 10mm;
  padding-top: 5mm;
  border-top: 0.4mm solid #C9D3CF;
}
.sheet-alt .qr { flex: none; width: 30mm; height: 30mm; }
.sheet-url { font-size: 12.5pt; font-weight: 800; overflow-wrap: anywhere; }

@media print {
  body { background: #FFFFFF; }
  .shell { display: block; min-height: 0; }
  .side, .content > h1, .content > .flash, .no-print { display: none !important; }
  .content { padding: 0; }
  .sheet-wrap { overflow: visible; margin: 0; padding: 0; }
  .sheet { border: 0; border-radius: 0; box-shadow: none; }
}

/* Faqja me reklama: zgjedhja e mënyrës dhe lista e kartave */
.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.choices legend { margin-bottom: 0.5rem; padding: 0; font-weight: 600; }
.choices label.inline { align-items: flex-start; }
.choices input { margin-top: 0.25rem; }
.form .label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.blocks { list-style: none; margin: 0; padding: 0; max-width: 46rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.blocks li { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-top: 1px solid var(--line); }
.blocks li:first-child { border-top: 0; }
.blocks img, .blocks .no-photo { flex: none; width: 96px; height: 60px; border-radius: 6px; object-fit: cover; }
.blocks .no-photo { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); font-size: 0.8125rem; }
.block-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.block-text .tag { align-self: flex-start; }
.block-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.block-actions form { margin: 0; }
@media (max-width: 760px) {
  .blocks li { flex-wrap: wrap; }
  .block-actions { width: 100%; justify-content: flex-start; }
}
.form input[type="radio"] { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; padding: 0; accent-color: var(--accent); }
.choices label.inline { gap: 0.65rem; }

/* Në telefon menyja është një rresht që lëviz anash, që të mos e zërë gjysmën e ekranit. */
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: column; align-items: stretch; gap: 0.5rem; min-width: 0; }
  .side ul { min-width: 0; max-width: 100%; }
  .side .product { margin: 0; padding: 0.25rem 0.75rem 0; }
  .side ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
  .side ul::-webkit-scrollbar { display: none; }
  .side li { flex: none; }
  .side form { display: flex; align-items: center; justify-content: space-between; padding: 0 0.75rem; }
  .side form .who { margin: 0; }
  .side form .quiet { width: auto; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.howto { max-width: 46rem; margin: 0 0 1rem; padding-left: 1.3rem; }
.howto li { margin-bottom: 0.5rem; }

/* ---------------------------------------------------------- versioni 6 */
h3 { margin: 1.75rem 0 0.75rem; font-size: 1.0625rem; }
.tag.ok-tag { background: var(--accent-soft); color: #07473A; }
.tag.bad-tag { background: var(--danger-soft); color: var(--danger); }
.small.current { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.choices-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; margin: 0; padding: 0; border: 0; }
.choices-row legend { width: 100%; margin-bottom: 0.4rem; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.choices-row .hint { width: 100%; margin: 0.25rem 0 0; }
.time-range { display: inline-flex; align-items: center; gap: 0.4rem; }
.time-range label { margin: 0; font-weight: 500; white-space: nowrap; }
.time-range input { width: auto !important; }
.blocks li.off { opacity: 0.6; }
.block-stats { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.recovery { max-width: 46rem; margin: 0 0 1rem; padding: 1rem 1.25rem; border: 2px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); }
.recovery ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem 1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 1.0625rem; }
.totp-setup { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; align-items: start; max-width: 46rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.totp-qr .qr { width: 100%; height: auto; }
.star-bars { max-width: 30rem; margin: 0 0 1.5rem; }
.star-bars div { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: 0.75rem; align-items: center; margin: 0.25rem 0; font-size: 0.9375rem; }
.star-bars .bar { height: 0.7rem; border-radius: 99px; background: #E6EBE8; overflow: hidden; }
.star-bars .bar i { display: block; height: 100%; background: #E8A317; border-radius: 99px; }
.stars-cell { color: #E8A317; white-space: nowrap; letter-spacing: 0.05em; }
.stars-cell span { color: #D6DEDA; }
.inline-edit { display: inline-block; }
.inline-edit > summary { list-style: none; cursor: pointer; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit[open] > form { position: absolute; z-index: 5; right: 1rem; width: min(36rem, 92vw); margin-top: 0.4rem; box-shadow: 0 12px 32px rgba(16, 35, 31, 0.18); text-align: left; }
.form.compact { gap: 0.6rem 1rem; padding: 1rem; }
.vouchers-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }

/* Kartelat e vaucherëve (A4, 2 x 5) */
.print-vouchers { background: #FFFFFF; }
.voucher-grid { display: grid; grid-template-columns: repeat(2, 90mm); gap: 0; justify-content: center; padding: 1rem 0; }
.voucher-card { height: 54mm; padding: 4mm 5mm; border: 1px dashed #9FADA7; display: flex; flex-direction: column; gap: 2mm; break-inside: avoid; }
.vc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.5mm; border-bottom: 2px solid var(--accent, #0B6B53); }
.vc-head img { max-height: 9mm; max-width: 45mm; }
.vc-head strong { font-size: 13pt; }
.vc-head span { font-weight: 800; color: var(--accent, #0B6B53); }
.vc-body { display: grid; grid-template-columns: minmax(0, 1fr) 24mm; gap: 3mm; align-items: center; flex: 1; }
.vc-body .qr { width: 24mm; height: 24mm; }
.vc-label { margin: 0; font-size: 7pt; color: #55665F; text-transform: uppercase; letter-spacing: 0.04em; }
.vc-code { margin: 0.5mm 0 1mm; font: 800 17pt/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }
.vc-meta { margin: 0 0 1mm; font-size: 7.5pt; line-height: 1.3; }
.vc-meta em { color: #55665F; }
.vc-steps { margin: 0; padding-left: 4mm; font-size: 7pt; line-height: 1.35; }

/* Fatura, oferta, kontrata (A4) */
.doc-page { background: #E9EEEB; }
.doc { max-width: 190mm; margin: 1.5rem auto; padding: 14mm 16mm; background: #FFFFFF; color: #10231F; font-size: 10.5pt; line-height: 1.5; box-shadow: 0 6px 24px rgba(16, 35, 31, 0.12); }
.doc h1 { margin: 0; font-size: 20pt; }
.doc h2 { margin: 1.2rem 0 0.4rem; font-size: 11.5pt; }
.doc p { margin: 0 0 0.6rem; }
.doc-head { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 2px solid #10231F; }
.doc-company { font-size: 14pt; font-weight: 800; margin: 0 0 0.25rem !important; }
.doc-title { text-align: right; }
.doc-stamp { display: inline-block; margin-top: 0.4rem !important; padding: 0.15rem 0.6rem; border: 2px solid #0B6B53; color: #0B6B53; font-weight: 800; transform: rotate(-4deg); }
.doc-stamp.void { border-color: #A3271C; color: #A3271C; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1rem; }
.doc-label { margin: 0 !important; font-size: 8.5pt; color: #55665F; text-transform: uppercase; letter-spacing: 0.04em; }
.doc-table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.doc-table th, .doc-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #D6DEDA; text-align: left; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-table tfoot td { border-bottom: 0; border-top: 2px solid #10231F; font-weight: 600; }
.doc-list { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.doc-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.sign-line { margin-top: 3rem !important; padding-top: 0.4rem; border-top: 1px solid #10231F; }

/* Kartela "Na vlerëso" (A6) */
.rate-sheet-wrap { margin-top: 1rem; }
.rate-sheet { width: 105mm; min-height: 148mm; margin: 0 auto; padding: 9mm 8mm; background: #FFFFFF; border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2mm; }
.rs-logo { max-height: 16mm; max-width: 70mm; }
.rs-brand { margin: 0; font-size: 15pt; font-weight: 800; }
.rs-stars { margin: 3mm 0 0; font-size: 22pt; color: #E8A317; letter-spacing: 0.1em; }
.rs-title { margin: 0; font-size: 18pt; font-weight: 800; color: var(--accent, #0B6B53); }
.rs-sub { margin: 0 0 2mm; font-size: 11pt; color: #55665F; }
.rate-sheet .qr { width: 52mm; height: 52mm; }
.rs-hint { margin: 2mm 0 0; font-size: 9pt; line-height: 1.4; }

@media (max-width: 760px) {
  .totp-setup { grid-template-columns: 1fr; }
  .recovery ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: 1.25rem; }
  .doc-head, .doc-parties { flex-direction: column; grid-template-columns: 1fr; }
  .voucher-grid { grid-template-columns: 1fr; }
}
@media print {
  .doc-page, .print-vouchers { background: #FFFFFF; }
  .doc { margin: 0; padding: 0; max-width: none; box-shadow: none; }
  .voucher-grid { padding: 0; }
  .vouchers-bar { display: none; }
  .rate-sheet { border: 0; margin: 0; }
}
