:root {
  color-scheme: light;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  color: #232820;
  background: #f4f3ed;
  --green: #224c37;
  --border: #dbdfd4;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  background: #172a20;
  color: #fdfbf4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px max(5vw, 16px);
}
a { color: inherit; }
header a { text-decoration: none; }
.brand { font-weight: 800; letter-spacing: .12em; }
.brand span { font-weight: 500; letter-spacing: 0; margin-left: 8px; color: #cedbd0; }
nav, .actions, .fields, .branches, .title {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
nav { align-items: center; }
nav a { font-size: .9rem; padding: 6px; }
main { max-width: 1280px; padding: 32px 20px 56px; margin: auto; }
h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.045em; }
h2 { margin: 8px 0 12px; }
.card {
  background: #fffefa;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 14px;
}
.kiosk { max-width: 460px; margin: auto; }
.kiosk h1, #live-clock { text-align: center; }
#live-clock { font-size: 2.1rem; font-weight: 650; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.branches { justify-content: center; margin-bottom: 14px; gap: 6px; }
.branch { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
.branch.selected { background: #dce8dd; color: #183c29; font-weight: 700; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
input, select, button { font: inherit; }
input, select { min-width: 0; background: white; border: 1px solid #aeb9ad; padding: 10px; border-radius: 8px; }
input[name=pin] { letter-spacing: .25em; }
button {
  background: var(--green);
  border: 1px solid transparent;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
}
button:hover { filter: brightness(1.15); }
.secondary, .key { background: #e8eee5; color: #193a29; border-color: var(--border); }
.danger { background: #f9ece9; color: #842b20; margin-top: 8px; }
.quiet { background: transparent; border-color: #718378; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.key { min-height: 53px; font-size: 1.08rem; }
.actions button { flex: 1; min-height: 50px; }
.fields button { margin-bottom: 12px; }
.title { justify-content: space-between; align-items: center; margin-bottom: 14px; }
.title h1 { margin: 0; }
.totals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.total strong { display: block; font-size: 1.65rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.notice { border-radius: 8px; padding: 12px; background: #e8f0e5; }
.error { background: #faeae4; color: #7b2519; }
summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: 14px; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fffefa; font-size: .88rem; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #e5ece2; }
td { font-variant-numeric: tabular-nums; }
@media print {
  header, .no-print, th:last-child, td:last-child { display: none !important; }
  body, .card, table { background: white; }
  main { padding: 0; }
  th, td { padding: 5px; }
  .totals { grid-template-columns: repeat(4, 1fr); }
  .table { overflow: visible; }
  tr { break-inside: avoid; }
}
