/* Banco: verde insegna, piano del banco grigio-salvia, carta termica bianca, tasto incasso giallo. */
:root {
  --green: #f5c400; --on-green: #1f1a07; --green-ink: #6b4f00;
  --green-2: #d9a900;
  --ink: #17211c;
  --muted: #5d6a62;
  --counter: #e7ebe4;
  --paper: #ffffff;
  --line: #cfd6cd;
  --yellow: #d42a20;
  --yellow-ink: #ffffff;
  --red: #b3372a;
  --warn-bg: #fff3c9;
  --radius: 10px;
  --nav-h: 60px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--counter); }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ── Struttura ── */
#app { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  background: var(--green); color: var(--on-green); padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.topbar h1 { font-size: 1.05rem; font-weight: 650; letter-spacing: .01em; }
.topbar .who { font-size: .85rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice { padding: 9px 16px; font-size: .9rem; background: var(--warn-bg); border-bottom: 1px solid #e6d27a; }
.notice.demo { background: #dfe9f5; border-color: #b4c8e0; }
main { flex: 1; padding: 14px 16px calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); width: 100%; max-width: 1080px; margin: 0 auto; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 5;
}
.nav button { border: 0; background: none; font-size: .82rem; font-weight: 600; color: var(--muted); display: grid; place-items: center; gap: 2px; padding: 6px 2px; }
.nav button svg { width: 22px; height: 22px; }
.nav button[aria-current="page"] { color: var(--green-ink); box-shadow: inset 0 3px 0 var(--green-ink); }

/* ── Moduli ── */
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; line-height: 1.35; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); min-height: 48px;
}
input:focus, select:focus { border-color: var(--green-ink); outline: none; box-shadow: 0 0 0 3px rgba(217, 169, 0, .35); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: var(--radius); border: 1.5px solid var(--green-ink); background: var(--paper); color: var(--green-ink); font-weight: 650;
}
.btn.primary { background: var(--green); color: var(--on-green); }
.btn.pay { background: var(--yellow); border-color: #b3221a; color: var(--yellow-ink); font-size: 1.1rem; min-height: 58px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.plain { border-color: transparent; background: none; padding-inline: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 4px; }
.panel > p { margin-bottom: 12px; line-height: 1.45; }

/* ── Accesso e blocco ── */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; background: var(--green); }
.gate .card { background: var(--paper); border-radius: 14px; padding: 26px 22px; width: 100%; max-width: 400px; }
.gate h1 { font-size: 1.6rem; margin-bottom: 4px; }
.gate .card > p { margin-bottom: 18px; line-height: 1.45; }
.error { color: var(--red); font-size: .9rem; margin: -4px 0 12px; font-weight: 600; }

/* ── Cassa ── */
.till { display: grid; gap: 14px; }
@media (min-width: 860px) { .till { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.entry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.display {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  background: #0b2c21; color: #eaffe0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
}
.display .qty { font-size: .95rem; opacity: .8; }
.display .amount { font-size: 2.3rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.1; }
.vat { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vat button, .vat select {
  min-height: 42px; min-width: 56px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 650; padding: 0 12px;
}
.vat select { width: auto; flex: 1 1 150px; font-weight: 500; }
.vat [aria-pressed="true"] { background: var(--green); border-color: var(--green-ink); color: var(--on-green); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.keys button {
  min-height: 56px; border-radius: 8px; border: 1px solid var(--line); background: #f6f8f4; font-size: 1.35rem; font-weight: 600;
}
.keys button:active { background: var(--counter); }
.keys .fn { font-size: 1rem; background: var(--paper); }
.keys .add { grid-column: span 4; background: var(--green); border-color: var(--green-ink); color: var(--on-green); font-size: 1.05rem; }
.keys .add:disabled { opacity: .45; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 14px; }
.products button {
  text-align: left; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); min-height: 62px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
}
.products .name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.products .price { color: var(--muted); font-size: .9rem; }

/* Lo scontrino: l'unico elemento "di carattere" dell'interfaccia. */
.slip {
  background: var(--paper); padding: 18px 16px 22px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: .92rem;
  line-height: 1.45; position: relative; filter: drop-shadow(0 1px 2px rgba(23, 33, 28, .22));
  --tooth: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.slip .head { text-align: center; margin-bottom: 10px; }
.slip .head strong { display: block; font-size: 1rem; }
.slip hr { border: 0; border-top: 1px dashed #9aa59d; margin: 9px 0; }
.slip .l { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.slip .l .sub { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.slip .l + .l { margin-top: 5px; }
.slip .total { font-size: 1.25rem; font-weight: 700; }
.slip .empty { text-align: center; color: var(--muted); padding: 18px 0; font-family: system-ui, sans-serif; }
.slip .stamp { text-align: center; border: 2px solid var(--red); color: var(--red); font-weight: 700; padding: 6px; margin-bottom: 10px; font-family: system-ui, sans-serif; font-size: .85rem; }
.slip .x { border: 0; background: none; color: var(--red); font-family: system-ui, sans-serif; font-size: .8rem; text-decoration: underline; padding: 6px 0; min-height: 32px; }
.slip-actions { display: grid; gap: 8px; margin-top: 12px; }

/* ── Elenchi ── */
.list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list button.item { width: 100%; border: 0; background: none; text-align: left; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; min-height: 56px; }
.list .item .t { font-weight: 600; }
.list .item .a { font-weight: 650; text-align: right; }
.list .item .s { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; padding: 1px 7px; border-radius: 99px; background: var(--counter); margin-left: 6px; vertical-align: 1px; }
.tag.red { background: #f7dcd8; color: var(--red); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.figures div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.figures b { display: block; font-size: 1.25rem; }
.emptystate { text-align: center; padding: 34px 16px; color: var(--muted); line-height: 1.5; }

/* ── Foglio a comparsa ── */
.backdrop { position: fixed; inset: 0; background: rgba(11, 28, 22, .55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--counter); width: 100%; max-width: 520px; max-height: 94dvh; overflow: auto; border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .backdrop { align-items: center; } .sheet { border-radius: 16px; } }
.sheet > h2 { font-size: 1.2rem; margin-bottom: 12px; }
.sheet .due { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: 14px; }
.sheet .due b { font-size: 1.9rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.seg button { min-height: 52px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--paper); font-weight: 650; }
.seg [aria-pressed="true"] { background: var(--green); border-color: var(--green-ink); color: var(--on-green); }
details { margin-bottom: 14px; }
summary { font-weight: 600; padding: 8px 0; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: .92rem; max-width: min(92vw, 480px);
  z-index: 40; opacity: 0; pointer-events: none; transition: opacity .18s;
}
#toast.show { opacity: 1; }
.busy::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy::after { animation-duration: 2s; } #toast { transition: none; } }

/* ── Stampa: solo lo scontrino ── */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; margin: 0; }
  html, body { background: #fff; height: auto; }
  #print-area .slip { -webkit-mask: none; mask: none; filter: none; padding: 0 0 4mm; line-height: 1.3; color: #000; }
  #print-area .slip .sub, #print-area .slip .muted { color: #000; }
  #print-area .slip .x { display: none; }
  #print-area .slip .sub { font-size: .9em; }
  #print-area .slip .total { font-size: 1.35em; }
  #print-area .slip .head strong { font-size: 1.15em; }
  #print-area .slip .stamp { font-size: .9em; border-color: #000; color: #000; }
  #print-area .extra { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; font-size: 9pt; padding: 1mm 0 2mm; overflow-wrap: anywhere; }
}
}


/* ── Impaginazione a tre zone: menu a sinistra, articoli al centro, scontrino a destra ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shell { flex: 1; display: flex; min-height: 0; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chips button { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 650; }
.chips [aria-pressed="true"] { background: var(--green); border-color: var(--green-ink); color: var(--on-green); }
.chips .create { border-style: dashed; border-color: var(--green-2); color: var(--green-ink); margin-left: auto; }
.search { display: block; margin-bottom: 12px; }
.search input { border-radius: 99px; padding-left: 18px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tiles button {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: right;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 68px;
}
.tiles button:hover { border-color: var(--green-2); }
.tiles button:active { background: #f1f5ee; }
.tiles .badge { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.tiles .name { font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.tiles .price { font-size: .9rem; color: var(--muted); }

.totalbar { display: flex; justify-content: space-between; gap: 12px; background: var(--green); color: var(--on-green); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.totalbar span { display: block; font-size: .8rem; opacity: .85; }
.totalbar b { font-size: 1.7rem; line-height: 1.15; }
.totalbar .r { text-align: right; align-self: flex-end; }
.totalbar .r b { font-size: 1.05rem; }
.ticket .slip { min-height: 150px; }
.keys span { display: block; }

@media (min-width: 960px) {
  html, body, #app { height: 100%; }
  .shell .topbar, .shell + .nav { display: none; }
  .side {
    display: flex; flex-direction: column; flex: none; width: 216px; margin: 12px 0 12px 12px; border-radius: 12px;
    background: var(--green); color: var(--on-green); overflow: hidden;
  }
  .side .brand { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.15); }
  .side .brand img { border-radius: 8px; max-width: 100%; height: auto; }
  .side .brand strong { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
  .side .brand span { font-size: .8rem; opacity: .8; }
  .side nav { flex: 1; padding: 10px 0; display: grid; align-content: start; }
  .side nav button {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 18px; border: 0; background: none; color: var(--on-green);
    font-weight: 600; text-align: left; border-left: 4px solid transparent;
  }
  .side nav button svg { width: 20px; height: 20px; flex: none; }
  .side nav button:hover { background: rgba(0, 0, 0, 0.06); }
  .side nav button[aria-current="page"] { background: rgba(0, 0, 0, 0.1); border-left-color: var(--yellow); }
  .side .account { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(0, 0, 0, 0.15); font-size: .82rem; }
  .side .account span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .account button { border: 1px solid rgba(0, 0, 0, 0.35); background: none; color: var(--on-green); border-radius: 8px; padding: 6px 10px; font-weight: 600; }
  .content { overflow: auto; }
  .content main { max-width: none; padding: 16px 20px 24px; }
  .till { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 20px; }
  .ticket { position: sticky; top: 0; }
  .entry { max-width: 460px; }
  #toast { bottom: 24px; }
}
@media (min-width: 860px) and (max-width: 959px) { .till { grid-template-columns: minmax(0, 1fr) 360px; } }

.radios { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.radios legend { font-size: .875rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; min-height: 40px; }
.radios input { width: 20px; height: 20px; margin: 0; }
textarea { resize: vertical; }


/* ── Pagine di accesso: pannello illustrato a sinistra, modulo a destra ── */
.login { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--counter); }
.login-art { background: var(--green); color: var(--on-green); padding: 22px 22px 0; display: grid; gap: 18px; overflow: hidden; }
.login-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-green); text-decoration: none; font-weight: 700; font-size: 1.25rem; justify-self: start; }
.login-brand img { display: block; border-radius: 10px; max-width: 100%; height: auto; }
.login-art h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; max-width: 16ch; }
.login-art ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; opacity: .93; }
.login-art li { padding-left: 28px; position: relative; }
.login-art li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg); }
.demo-slip, .demo-cards { display: none; }
.login-form { display: grid; place-items: center; padding: 26px 18px 40px; }
.login-form .card { background: var(--paper); border-radius: 14px; padding: 28px 24px; width: 100%; max-width: 420px; border: 1px solid var(--line); }
.login-form h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-form .card > p.muted { margin-bottom: 18px; line-height: 1.45; }
.login-links { margin-top: 18px; font-size: .92rem; line-height: 1.7; color: var(--muted); }
.login-links a { color: var(--green-ink); font-weight: 650; }
@media (min-width: 900px) {
  .login { grid-template-columns: minmax(360px, 5fr) 6fr; }
  .login-art { padding: 34px 40px 0; grid-template-rows: auto 1fr auto; }
  .login-art > div:nth-child(2) { align-self: center; }
  .demo-slip {
    display: block; background: #fff; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5;
    padding: 20px 18px 34px; width: 270px; justify-self: end; transform: rotate(-3deg) translateY(14px); box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
  }
  .demo-slip .c { text-align: center; } .demo-slip hr { border: 0; border-top: 1px dashed #9aa59d; margin: 9px 0; }
  .demo-slip .l { display: flex; justify-content: space-between; } .demo-slip .t { font-size: 1.15rem; font-weight: 700; }
  .demo-cards { display: grid; gap: 8px; width: 290px; justify-self: end; transform: rotate(-2deg) translateY(10px); }
  .demo-cards div { background: #fff; color: var(--ink); border-radius: 10px 10px 0 0; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
  .demo-cards div:not(:last-child) { border-radius: 10px; }
  .demo-cards .state { font-size: .75rem; font-weight: 650; padding: 2px 9px; border-radius: 99px; }
  .demo-cards .state.active { background: #dcefe3; color: #17573c; } .demo-cards .state.expiring { background: var(--warn-bg); color: #6b5200; }
}

/* Rivenditore che segue il cliente */
.side .partner { display: grid; justify-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.15); font-size: .75rem; opacity: .95; }
.side .partner img { max-width: 100%; max-height: 56px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px 8px; }
.reseller-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--counter); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.reseller-box img { max-height: 48px; max-width: 150px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 6px; }
.steps { margin: 4px 0 12px; padding-left: 20px; } .steps li { margin: 3px 0; } .print-help { margin: 4px 0 12px; }
/* Aspetto dello scontrino */
.slip .head.lines span, .slip .head.lines strong { display: block; }
.slip .head .big { font-size: 1.3rem; line-height: 1.2; margin-bottom: 2px; }
.slip .head.logo img { display: block; max-width: 70%; max-height: 90px; margin: 0 auto 6px; filter: grayscale(1); }
.layout-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .layout-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .layout-grid > div:last-child { position: sticky; top: 12px; } }
.logo-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-pick img { max-height: 54px; max-width: 160px; border: 1px solid var(--line, #d9ddd6); border-radius: 6px; padding: 4px; background: #fff; }
fieldset.checks { border: 0; padding: 0; margin: 6px 0 14px; display: grid; gap: 4px; }
fieldset.checks legend { font-weight: 650; margin-bottom: 4px; }
#print-area .slip .head .big { font-size: 1.5em; }
#print-area .slip .head.logo img { filter: grayscale(1) contrast(1.4); }
.label { display: block; font-size: .875rem; font-weight: 600; margin: 0 0 6px; }
fieldset.checks legend { font-size: .875rem; font-weight: 600; }
fieldset.checks .check { padding: 4px 0; }
.radios.addr { flex-direction: column; gap: 0; }
.notice.assist { background: #241f6b; color: #fff; border-color: #241f6b; }
.notice.assist .btn { color: #fff; }
.pw { position: relative; }
.pw input { padding-right: 48px; width: 100%; }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted, #666); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.pw .eye[aria-pressed="true"] { color: var(--green, #0f3d2e); }
.slip .amt { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; font: inherit; color: inherit; cursor: pointer; border-radius: 6px; text-decoration: underline dotted; text-underline-offset: 3px; }
.slip .amt:hover, .slip .amt:focus-visible { background: #fff3c4; }
.slip .amt-edit { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.slip .amt-edit input { width: 96px; text-align: right; font: inherit; padding: 4px 8px; border: 2px solid var(--green, #0f3d2e); border-radius: 6px; }
.slip .amt-edit span { font-size: .85rem; white-space: nowrap; }
@media print { .slip .amt { text-decoration: none; } }

/* Guide */
.guide-list { display: grid; gap: 10px; }
.guide-list button { text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; font: inherit; cursor: pointer; }
.guide-list button:hover { border-color: var(--green-2); }
.guide-list button span { color: var(--muted); font-size: .9rem; }
.steps-check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.steps-check > li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--paper); }
.steps-check > li.ok { border-color: #8fc79a; background: #f2faf3; }
.steps-check > li.todo { border-color: var(--green-2); }
.steps-check .mark { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #fff; }
.steps-check li.ok .mark { background: #2e7d32; border-color: #2e7d32; }
.steps-check li.todo .mark { border-color: var(--green-2); }
.steps-check p { margin: 4px 0 8px; }
.steps-check .btn { min-height: 40px; }
.guide-text h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.guide-text p { margin: 0 0 10px; line-height: 1.55; }
.guide-text ul { margin: 0 0 10px; padding-left: 1.2em; line-height: 1.55; }
.guide-text li { margin-bottom: 6px; }
