/* Rolovio Reserve - Gosto theme: Portuguese flag green, red and armillary gold on white.
   Tablet-first: 44px+ tap targets, readable at arm's length. */
:root {
  --verde: #046a38;
  --verde-dark: #03502a;
  --verde-soft: #e2f1e8;
  --verde-line: #a9d3b9;
  --vermelho: #da291c;
  --vermelho-dark: #b31f14;
  --vermelho-soft: #fde8e6;
  --ouro: #ffc72c;
  --ouro-soft: #fff5d6;
  --ouro-ink: #6b4e00;
  --page: #f2f5f1;
  --surface: #ffffff;
  --ink: #13211a;
  --muted: #5d6b63;
  --line: #dde4df;
  --radius: 12px;
  --tap: 46px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
body.noscroll { overflow: hidden; }
a { color: var(--verde); }
h1, h2, h3 { font-family: var(--font-cond); letter-spacing: .005em; line-height: 1.15; }
h1 { font-size: 1.9rem; font-weight: 800; margin: 0 0 .25rem; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; }
code { background: var(--verde-soft); padding: 0 .3em; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.grow { flex: 1 1 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

/* ---------- Top bar + flag stripe ---------- */
.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .5rem 1rem; background: var(--verde); color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ouro); color: var(--verde-dark);
  font-family: var(--font-cond); font-weight: 800; font-size: 1.2rem;
}
.brand-name { font-family: var(--font-cond); font-weight: 800; font-size: 1.35rem; }
.brand-town { opacity: .8; }
.nav { display: flex; gap: .2rem; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: .45rem .9rem; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a.on { background: #fff; color: var(--verde); }
.who { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.who-name { opacity: .9; }
.flagline { display: flex; height: 5px; }
.flagline span:first-child { flex: 2; background: var(--verde-dark); }
.flagline span:last-child { flex: 3; background: var(--vermelho); }
.chip {
  font: inherit; font-size: .85rem; cursor: pointer; min-height: 34px;
  border: 0; background: var(--ouro); color: var(--ouro-ink); border-radius: 999px; padding: .3rem .8rem; font-weight: 600;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.wrap.wide { max-width: 1500px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.card.narrow { max-width: 640px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.grid2 > .card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.inline { display: inline; margin: 0; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .93rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  min-height: var(--tap); padding: .5rem .7rem; width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-soft); }
label.check { flex-direction: row; align-items: center; gap: .6rem; font-weight: 500; }
label.check input { width: 22px; height: 22px; min-height: 22px; accent-color: var(--verde); }
label.check.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: var(--tap); padding: .5rem 1.05rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--verde); color: var(--verde); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.primary { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn.primary:hover { background: var(--verde-dark); color: #fff; }
.btn.red { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.btn.red:hover { background: var(--vermelho-dark); color: #fff; }
.btn.go { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn.out { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.go:hover, .btn.out:hover { color: #fff; filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--vermelho); }
.btn.danger:hover { border-color: var(--vermelho); }
.btn.small { min-height: 38px; padding: .3rem .8rem; font-size: .92rem; }
.btn.block { width: 100%; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.on-dark:hover { background: #fff; color: var(--verde); }
.icon-btn {
  font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.icon-btn:hover { border-color: var(--verde); color: var(--verde); }

/* ---------- Messages ---------- */
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: .8rem; border-left: 5px solid; background: #fff; }
.flash-ok    { border-color: var(--verde); background: var(--verde-soft); }
.flash-error { border-color: var(--vermelho); background: var(--vermelho-soft); }
.flash-info  { border-color: var(--ouro); background: var(--ouro-soft); }
.notice { background: var(--ouro-soft); border-left: 5px solid var(--ouro); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.form-error { color: var(--vermelho-dark); font-weight: 600; margin: .2rem 0 0; }
.need { color: var(--vermelho-dark); font-weight: 600; }

.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; vertical-align: middle; }
.badge.ok  { background: var(--verde-soft); color: var(--verde); }
.badge.bad { background: var(--vermelho-soft); color: var(--vermelho-dark); }
.badge.st-booked { background: var(--ouro-soft); color: var(--ouro-ink); }
.badge.st-seated { background: var(--vermelho); color: #fff; }
.badge.st-left, .badge.st-cancelled { background: var(--line); color: var(--muted); }
.badge.st-no_show { background: var(--vermelho-soft); color: var(--vermelho-dark); }

/* ---------- Admin lists ---------- */
.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; padding: .5rem; border-bottom: 1.5px solid var(--line); }
.list td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr.inactive td { opacity: .55; }
.list select, .list input { min-height: 38px; padding: .25rem .5rem; }
.list select { width: auto; }
.actions { white-space: nowrap; text-align: right; }
@media (max-width: 760px) {
  .list thead { display: none; }
  .list tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .list td { display: block; border: 0; padding: .2rem .25rem; }
  .actions { text-align: left; }
}
details.manage summary { list-style: none; }
details.manage summary::-webkit-details-marker { display: none; }
.manage-body { display: flex; flex-direction: column; gap: .5rem; padding-top: .5rem; min-width: 260px; }
.inline-form { display: flex; gap: .4rem; flex-wrap: wrap; }
.inline-form > input { width: auto; flex: 1 1 140px; min-height: 38px; }
.inline-form > label { flex: 0 1 auto; }
.inline-form > label input, .inline-form > label select { min-width: 110px; }
.inline-form label.check { white-space: nowrap; }

/* ---------- Login / install ---------- */
.auth-card {
  max-width: 420px; margin: 7vh auto 0; background: var(--surface);
  border-top: 6px solid var(--verde); border-radius: 14px; padding: 2rem 1.6rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(4, 106, 56, .35);
}
.auth-card.wide { max-width: 620px; }
.auth-card h2 { margin-top: 1.4rem; }
.auth-brand { text-align: center; margin-bottom: 1.3rem; }
.auth-brand h1 { font-size: 2.4rem; margin-top: .7rem; }
.auth-logo {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--verde); color: var(--ouro); font-family: var(--font-cond); font-weight: 800; font-size: 2rem;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--vermelho);
}
.brand-mark.big { width: 64px; height: 64px; font-size: 2rem; }
.powered { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding: .25rem 0; }
.checklist .ok { color: var(--verde); }
.checklist .bad { color: var(--vermelho-dark); font-weight: 600; }
.empty-state { max-width: 520px; margin: 10vh auto; text-align: center; }

/* =====================================================================
   Day view
   ===================================================================== */
.day-bar { display: flex; align-items: center; gap: .9rem 1.2rem; flex-wrap: wrap; margin-bottom: .8rem; }
.date-nav { display: flex; align-items: center; gap: .45rem; }
.date-pick { position: relative; flex-direction: row; cursor: pointer; }
.date-label {
  font-family: var(--font-cond); font-weight: 800; font-size: 1.7rem; line-height: 1;
  padding: .3rem .3rem; border-bottom: 3px solid var(--vermelho); white-space: nowrap;
}
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; padding: 0; }
.date-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.day-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .35rem;
  border-radius: 999px; background: var(--line); color: var(--muted); font-size: .8rem; font-weight: 700;
}
.count.has { background: var(--ouro); color: var(--ouro-ink); }

.seg { display: inline-flex; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; background: transparent; color: var(--muted);
  min-height: 40px; padding: .3rem 1.1rem; border-radius: 999px;
}
.seg button.on { background: var(--verde); color: #fff; }

.day-note {
  display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--ouro-soft); border: 0; border-left: 5px solid var(--ouro);
  border-radius: 10px; padding: .65rem 1rem; margin-bottom: .7rem; font-weight: 600; color: var(--ouro-ink);
}
.day-note.empty { background: transparent; border-left-color: var(--line); color: var(--muted); font-weight: 400; }
.stats { margin: 0 0 1rem; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .2rem; }
.stats .sep { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--verde-line); margin: 0 .55rem; }

.day-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 980px) {
  .day-cols { grid-template-columns: 1fr; }
  .floor { order: -1; position: static !important; }
}
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.col-head h2 { margin: 0; }

/* Booking list */
.slot-head { display: flex; align-items: baseline; gap: .8rem; margin: 1.1rem 0 .4rem; }
.slot-head:first-child { margin-top: .2rem; }
.slot-time { font-family: var(--font-cond); font-weight: 800; font-size: 1.45rem; color: var(--verde); }
.bk {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: .2rem 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--ouro);
  border-radius: 10px; padding: .6rem .8rem .6rem .7rem; margin-bottom: .45rem; cursor: pointer;
}
.bk:hover { border-color: var(--verde-line); border-left-color: inherit; }
.bk.st-booked { border-left-color: var(--ouro); }
.bk.st-seated { border-left-color: var(--vermelho); }
.bk.st-left { border-left-color: var(--line); opacity: .65; }
.bk.st-no_show { border-left-color: var(--vermelho-dark); opacity: .7; }
.bk.st-cancelled { border-left-color: var(--line); opacity: .5; }
.bk.st-cancelled .bk-name { text-decoration: line-through; }
.bk-pax {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--verde-soft); color: var(--verde-dark);
  font-family: var(--font-cond); font-weight: 800; font-size: 1.4rem;
}
.bk-name { font-weight: 700; font-size: 1.08rem; }
.bk-sub { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .92rem; }
.bk-notes { font-size: .92rem; margin-top: .15rem; }
.bk-guest { display: inline-block; font-size: .88rem; font-weight: 600; color: var(--vermelho-dark); margin-top: .15rem; }
.bk-tables { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; max-width: 210px; }
.bk-act { min-width: 84px; text-align: right; }
@media (max-width: 640px) {
  .bk { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .bk-tables { grid-column: 2 / 4; justify-content: flex-start; max-width: none; }
  .bk-act { grid-column: 3; grid-row: 1; }
}
.tchip {
  display: inline-grid; place-items: center; min-width: 36px; height: 32px; padding: 0 .5rem;
  border-radius: 8px; background: var(--verde); color: #fff;
  font-family: var(--font-cond); font-weight: 800; font-size: 1.05rem;
}
.tchip.need { background: transparent; color: var(--vermelho-dark); border: 1.5px dashed var(--vermelho); font-family: var(--font); font-size: .85rem; font-weight: 700; }
.lock {
  display: inline-block; font-size: .75rem; font-weight: 700; vertical-align: middle;
  background: var(--vermelho-soft); color: var(--vermelho-dark); padding: .1rem .5rem; border-radius: 999px;
}
.lock.walk { background: var(--verde-soft); color: var(--verde-dark); }
.tag { font-size: .88rem; color: var(--muted); font-weight: 600; }
.tag.bad { color: var(--vermelho-dark); }
.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.empty p { margin: 0 0 .8rem; color: var(--muted); }

/* Table board */
.floor { position: sticky; top: 76px; background: var(--surface); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.legend { display: flex; gap: .7rem; font-size: .85rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.lg.free::before { background: var(--verde); }
.lg.reserved::before { background: var(--ouro); }
.lg.seated::before { background: var(--vermelho); }
.floor-grid, .pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; }
.floor-hint { margin: .8rem 0 0; }
.tile {
  font: inherit; cursor: pointer; text-align: left; position: relative;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  min-height: 84px; padding: .4rem .5rem .45rem; border-radius: 10px; border: 0; overflow: hidden;
  color: #fff; background: var(--verde);
}
.tile.s-free { background: var(--verde); }
.tile.s-reserved { background: var(--ouro); color: var(--ink); }
.tile.s-seated { background: var(--vermelho); }
.tile:hover { filter: brightness(1.08); }
.t-num { font-family: var(--font-cond); font-weight: 800; font-size: 2rem; line-height: 1; }
.tile.long .t-num { font-size: 1.25rem; padding-top: .3rem; }
.t-seats { font-size: .78rem; opacity: .85; }
.t-who { font-size: .8rem; font-weight: 700; line-height: 1.2; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-next { font-size: .72rem; opacity: .9; }

/* Picker inside the form: smaller, selection ring */
.pick-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); padding: 3px; }
.pick-grid .t-next { display: none; }
.pick-grid .tile { min-height: 64px; }
.pick-grid .t-num { font-size: 1.5rem; }
.pick-grid .tile.long .t-num { font-size: .92rem; overflow-wrap: anywhere; }
.pick-grid .tile:not(.selected) { opacity: .78; }
.pick-grid .tile.s-free:not(.selected) { background: var(--verde-soft); color: var(--verde-dark); opacity: 1; }
.tile.selected { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); }
.tile.selected::after {
  content: "✓"; position: absolute; top: 4px; right: 6px; font-weight: 800; font-size: 1rem;
}

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 50; background: rgba(19, 33, 26, .55);
  display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto;
}
.modal-back[hidden] { display: none; }
.modal {
  width: min(760px, 100%); background: var(--surface); border-radius: 16px;
  border-top: 6px solid var(--verde); padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.modal-head h2 { font-size: 1.6rem; margin: 0; }
.modal-head p { margin: .2rem 0 0; }
.x {
  font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; flex: none;
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--page); color: var(--ink);
}
.x:hover { background: var(--vermelho-soft); color: var(--vermelho); }
.modal-foot { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .modal-back:not([hidden]) .modal { animation: rise .16s ease-out; }
  @keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.bform { display: flex; flex-direction: column; gap: .95rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.flabel { font-weight: 600; font-size: .93rem; }
.pax, .times, .who-chips { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.pax input { width: 90px; }
.pchip, .tchip-btn, .who-chip {
  font: inherit; cursor: pointer; min-height: 44px; min-width: 46px; padding: .3rem .7rem;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700;
}
.pchip, .tchip-btn { font-family: var(--font-cond); font-size: 1.15rem; }
.pchip.on, .tchip-btn.on, .who-chip.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.other-time { flex-direction: row; align-items: center; gap: .4rem; font-weight: 600; padding-left: .3rem; }
.other-time input { width: 130px; }
.other-time.on input { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-soft); }
.guest-info { background: var(--verde-soft); border-radius: 10px; padding: .55rem .8rem; font-size: .95rem; }
.warns p { margin: .35rem 0 0; color: var(--vermelho-dark); font-weight: 600; font-size: .93rem; }
.warns p::before { content: "! "; font-weight: 800; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--verde); padding: .2rem 0; }
details.more input { margin-top: .4rem; }
.signoff { display: flex; flex-direction: column; gap: .45rem; background: var(--page); border-radius: 12px; padding: .8rem; }
.pin-wrap { flex-direction: row; align-items: center; gap: .6rem; }
.pin-wrap[hidden] { display: none; }
.pin-wrap input { width: 140px; font-size: 1.4rem; letter-spacing: .3em; text-align: center; }

/* Detail */
.facts { display: grid; grid-template-columns: 120px 1fr; gap: .5rem 1rem; margin: 0 0 1rem; align-items: baseline; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.facts .big { font-family: var(--font-cond); font-size: 1.5rem; }
.facts .tchip { margin-right: .25rem; }
.detail-acts { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--line); }
.sub-form { margin-top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
details.history { margin-top: 1rem; }
details.history summary { cursor: pointer; font-weight: 600; color: var(--verde); }
.hist { padding-left: 1.2rem; margin: .6rem 0 0; }
.hist li { margin-bottom: .45rem; }
.hist ul { margin: .2rem 0 0; padding-left: 1rem; font-size: .92rem; }

/* Waiting list */
.wl { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.wl-item { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.wl-add { border-top: 1.5px solid var(--line); padding-top: 1rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 60;
  max-width: min(640px, calc(100% - 2rem)); padding: .8rem 1.1rem; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
}
.toast.warn { background: var(--ouro); color: var(--ink); }
.toast.bad { background: var(--vermelho); }
.toast[hidden] { display: none; }

/* =====================================================================
   Settings
   ===================================================================== */
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.tabs a:hover { border-color: var(--verde); color: var(--verde); }
.set-section { scroll-margin-top: 90px; }
.ttable td.lbl input { font-family: var(--font-cond); font-weight: 800; font-size: 1.15rem; max-width: 120px; }
.ttable td.num input { max-width: 80px; }
.ttable .move { display: inline-flex; gap: .2rem; }
.ttable .move button { min-width: 38px; padding: 0; }
.days { display: flex; gap: .3rem; flex-wrap: wrap; }
.days label { flex-direction: row; align-items: center; gap: .25rem; font-weight: 500; font-size: .9rem; }
.days input { width: 18px; height: 18px; min-height: 0; accent-color: var(--verde); }
.svc-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: .6rem; align-items: end; }
@media (max-width: 700px) { .svc-row { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Print sheet
   ===================================================================== */
.print-sheet h1 { font-size: 1.6rem; }
.print-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.print-table th { text-align: left; border-bottom: 2px solid var(--ink); padding: .35rem .4rem; font-size: .85rem; }
.print-table td { border-bottom: 1px solid #bbb; padding: .4rem; vertical-align: top; }
.print-table tr.slot td { background: #eee; font-weight: 800; font-family: var(--font-cond); font-size: 1.1rem; }
.print-table tr.off td { color: #888; text-decoration: line-through; }
.print-actions { margin-bottom: 1rem; display: flex; gap: .5rem; }
@media print {
  .topbar, .flagline, .print-actions, .flash { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .print-table { font-size: 10.5pt; }
}
