/* =========================================================
   PH Barbearia — tema
   Papel creme e tinta grafite, como a logo gravada.
   O filete duplo do escudo é o único ornamento.
   ========================================================= */
:root {
  --paper: #F4E5D0;     /* fundo da logo */
  --card: #FBF4E9;
  --text: #262521;      /* tinta da logo */
  --ink: #262521;       /* preenchimentos (botões, seleção) */
  --on-ink: #F7EDDD;    /* texto sobre a tinta */
  --muted: #6D6355;
  --line: #DDCBB0;
  --soft: #EBDAC1;
  --accent: #8A5A2E;    /* couro: detalhes e foco */
  --wa: #2B6E45;
  --ok-bg: #E2EBD9; --ok-fg: #2E5530;
  --err-bg: #F2D9CF; --err-fg: #7E2B1E;
  --warn-bg: #F1E0BF; --warn-fg: #6E4D16;

  --display: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --tap: 44px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A17;
    --card: #25221E;
    --text: #EFE4D2;
    --ink: #EFE4D2;
    --on-ink: #1C1A17;
    --muted: #A89C8B;
    --line: #3A352E;
    --soft: #2E2A25;
    --accent: #C8955E;
    --wa: #3E9A62;
    --ok-bg: #22301F; --ok-fg: #B7D7A8;
    --err-bg: #3A221C; --err-fg: #F0B6A6;
    --warn-bg: #3A2F1C; --warn-fg: #E8CB95;
    color-scheme: dark;
  }
  .logo, .brand img { filter: invert(1) sepia(.15) brightness(1.05); }
}
*, *::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--body);
  color: var(--text);
  background: var(--paper);
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 .75rem; }
code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Filete duplo (contorno do escudo) ---------- */
.brand-rule {
  height: 9px;
  margin: 0 1.1rem;
  border-bottom: 3px solid var(--text);
  box-shadow: 0 4px 0 -2px var(--paper), 0 5px 0 -2px var(--text);
}

/* ---------- Tipografia ---------- */
.page-title, .num, .stat-num, .slot, .day-num, .service-price, .ticket-price, .cart-total strong, .appt-time strong, .qty, .step {
  font-family: var(--display);
  font-variant-numeric: lining-nums tabular-nums;
}
.page-title { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 700; line-height: 1.02; margin: 0 0 .75rem; letter-spacing: -.005em; }
.section-title { font: 600 1.05rem/1.3 var(--body); margin: 1.75rem 0 .75rem; }
.hint { color: var(--muted); font-size: .92rem; }
small { color: var(--muted); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap);
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--on-ink);
  font: 600 .95rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { min-height: 52px; font-size: 1.05rem; width: 100%; }
.btn.small { min-height: 36px; padding: .35rem .8rem; font-size: .88rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.dark { background: var(--accent); border-color: var(--accent); color: #FBF4E9; }
.btn.danger { background: var(--err-fg); border-color: var(--err-fg); color: #FBF4E9; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.link { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.link.quiet { color: var(--muted); }
.danger-text { color: var(--err-fg) !important; }

/* ---------- Formulários ---------- */
label { display: grid; gap: .3rem; font-weight: 500; font-size: .92rem; }
input, select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: .55rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text);
  font: 400 1rem/1.4 var(--body);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input[type=checkbox], input[type=radio] { width: 1.15rem; min-height: 0; height: 1.15rem; accent-color: var(--ink); }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .92rem; margin-bottom: .4rem; padding: 0; }
details > summary { cursor: pointer; font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.input-sm { max-width: 120px; text-align: right; }

.stack { display: grid; gap: 1rem; }
.grid2, .grid3 { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
}
.mt { margin-top: 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: .5rem 0 1rem; }
.inline-form input { flex: 1 1 160px; width: auto; }
.inline-form label { flex: 1 1 140px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; }
.narrow { max-width: 460px; margin: 0 auto; padding: 2rem 1.1rem 3rem; }
.narrow .logo { display: block; width: min(240px, 70%); height: auto; margin: 0 auto 1.25rem; }

/* ---------- Mensagens ---------- */
.flash { padding: .75rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: var(--ok-fg); }
.flash.erro { background: var(--err-bg); color: var(--err-fg); }

.chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip.s-pendente { background: var(--warn-bg); color: var(--warn-fg); }
.chip.s-confirmado { background: var(--ok-bg); color: var(--ok-fg); }
.chip.s-concluido { background: var(--soft); color: var(--text); }
.chip.s-cancelado, .chip.s-faltou { background: var(--err-bg); color: var(--err-fg); }

/* =========================================================
   Página pública
   ========================================================= */
.hero { max-width: 640px; margin: 0 auto; padding: 1.75rem 1.1rem 1rem; text-align: center; }
.hero .logo { display: block; width: min(320px, 82%); height: auto; margin: 0 auto; }
.hero-sub { color: var(--muted); margin: 1rem auto .4rem; font-size: 1.05rem; max-width: 34ch; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; margin: .5rem 0 1rem; font-size: .92rem; }

.booking { max-width: 640px; margin: 0 auto; padding: 0 1.1rem 3rem; }
.block { padding: 1.25rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.block h2 { display: flex; align-items: center; gap: .6rem; font: 600 1.15rem/1.2 var(--body); margin-bottom: 1rem; }
.step {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border: 1.5px solid var(--text);
  outline: 1px solid var(--text); outline-offset: 2px;
  border-radius: 50%;
  font-size: 1rem; font-weight: 700;
}

.services { display: grid; gap: .6rem; }
@media (min-width: 560px) { .services { grid-template-columns: 1fr 1fr; } }
.service {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; text-align: left;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--text);
  font: inherit; cursor: pointer;
}
.service-name { font-weight: 600; }
.service-desc { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: .88rem; }
.service-meta { color: var(--muted); font-size: .88rem; }
.service-price { grid-column: 2; grid-row: 1; font-size: 1.3rem; font-weight: 700; align-self: center; }
.service[aria-checked=true] { border-color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }

.days { display: flex; gap: .45rem; overflow-x: auto; padding: .15rem .1rem .6rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.day {
  flex: 0 0 auto; display: grid; justify-items: center; gap: .1rem;
  min-width: 58px; padding: .55rem .4rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--text); text-decoration: none;
  font: inherit; cursor: pointer; scroll-snap-align: start;
}
.day:disabled { opacity: .35; cursor: not-allowed; }
.day-week { font-size: .78rem; color: var(--muted); }
.day-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.day-month, .day-count { font-size: .75rem; color: var(--muted); min-height: 1em; }
.day.today .day-week { color: var(--accent); font-weight: 600; }
.day[aria-checked=true], .day[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.day[aria-checked=true] span, .day[aria-current] span { color: inherit; }
.days.compact { margin: 0 -.1rem; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45rem; }
.slot {
  min-height: var(--tap);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--text);
  font-size: 1.15rem; font-weight: 700;
  cursor: pointer;
}
.slot[aria-checked=true] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.summary { padding: .75rem 1rem; background: var(--soft); border-radius: var(--r-sm); }
.summary:empty { display: none; }

.ticket {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .9rem 1rem;
  border: 1.5px dashed var(--text); border-radius: var(--r-md);
  background: var(--card);
}
.ticket-main { flex: 1 1 auto; display: grid; }
.ticket-main span { color: var(--muted); }
.ticket-price { font-size: 1.5rem; font-weight: 700; }
.big-ticket { margin-bottom: 1rem; }
.big-ticket .ticket-main strong { font: 700 1.8rem/1.05 var(--display); }
.done { display: grid; gap: .9rem; }
.done .link { justify-self: start; }
.foot { text-align: center; padding: 1rem 1rem 2.5rem; font-size: .85rem; padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }

/* =========================================================
   Painel
   ========================================================= */
body.admin { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem 1.1rem;
  background: var(--paper);
  border-bottom: 4px double var(--text);
}
.brand { display: flex; align-items: center; gap: .6rem; font: 700 1.3rem/1 var(--display); text-decoration: none; }
.brand img { width: 34px; height: auto; }
.nav-desk { display: none; gap: .25rem; }
.nav-desk a { padding: .4rem .75rem; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-desk a[aria-current] { color: var(--on-ink); background: var(--ink); }
.wrap { max-width: 920px; margin: 0 auto; padding: 1.25rem 1.1rem 2rem; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar a {
  display: grid; justify-items: center; gap: .1rem;
  padding: .5rem 0 .45rem;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 500;
}
.tabbar a[aria-current] { color: var(--text); font-weight: 700; }
@media (min-width: 860px) {
  .nav-desk { display: flex; }
  .tabbar { display: none; }
  body.admin { padding-bottom: 0; }
}

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.page-head .page-title { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: .5rem 0 1.25rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stats > div { display: grid; gap: .1rem; padding: .8rem 1rem; background: var(--card); font-size: .85rem; color: var(--muted); }
.stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .stats > div:last-child:nth-child(odd) { grid-column: auto; } }
.stat-num { font-size: 1.55rem; font-weight: 700; line-height: 1.05; color: var(--text); }
.stat-num.alert { color: var(--err-fg); }

.tabs { display: flex; gap: .35rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: .2rem; }
.tabs a { flex: 0 0 auto; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--card); }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Agenda do dia */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.appt { position: relative; display: grid; grid-template-columns: 76px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.appt.menu-aberto { z-index: 25; }
.appt-time { display: grid; align-content: start; gap: .1rem; padding: .85rem .7rem; background: var(--soft); border-right: 3px solid var(--line); border-radius: var(--r-md) 0 0 var(--r-md); }
.appt-time strong { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.appt-time span { font-size: .8rem; color: var(--muted); }
.appt.s-pendente .appt-time { border-right-color: var(--accent); }
.appt.s-confirmado .appt-time { border-right-color: var(--wa); }
.appt.s-concluido { opacity: .75; }
.appt.s-cancelado, .appt.s-faltou { opacity: .55; }
.appt.s-cancelado .appt-name { text-decoration: line-through; }
.appt-body { padding: .75rem .9rem; display: grid; gap: .3rem; min-width: 0; }
.appt-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.appt-name { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-meta { font-size: .88rem; color: var(--muted); }
.appt-obs { font-size: .88rem; padding: .35rem .55rem; background: var(--soft); border-radius: var(--r-sm); }

.actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .3rem; }
.actions form { margin: 0; }
details.more { position: relative; }
details.more > summary { list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 10;
  min-width: 200px; display: grid;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(38, 37, 33, .16);
  overflow: hidden;
}
.more-menu.up { top: auto; bottom: calc(100% + 4px); }
.more-menu a, .more-menu button {
  display: block; width: 100%; padding: .7rem 1rem; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font: inherit; text-decoration: none; cursor: pointer;
}
.more-menu form:last-child button { border-bottom: 0; }
.more-menu a:hover, .more-menu button:hover { background: var(--soft); }

.empty { padding: 2rem 1rem; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.empty p { margin-bottom: 1rem; }

/* Listas */
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.row { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.off { opacity: .55; }
.row-main { flex: 1; min-width: 0; display: grid; text-decoration: none; }
.row-main strong { font-weight: 600; }
.row-main span { font-size: .86rem; color: var(--muted); }
.row form { margin: 0; }
.qty { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.qty.low, .qty.neg { color: var(--err-fg); }
.qty.pos { color: var(--wa); }

.menu-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; margin-bottom: 1rem; }
.menu-list a { display: grid; padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu-list a:last-child { border-bottom: 0; }
.menu-list span { font-size: .86rem; color: var(--muted); }

/* Autocompletar */
.autocomplete { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 15; list-style: none; margin: 4px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(38, 37, 33, .16); overflow: hidden; }
.ac-list button { width: 100%; padding: .65rem .9rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.ac-list li:last-child button { border-bottom: 0; }
.ac-list button:hover { background: var(--soft); }

/* Caixa */
.pdv { display: grid; gap: 1rem; }
@media (min-width: 860px) { .pdv { grid-template-columns: 1.2fr 1fr; align-items: start; } .cart { position: sticky; top: 80px; } }
.catalog { display: grid; gap: 1rem; max-height: 440px; overflow-y: auto; padding-right: .15rem; }
.cat-group { display: grid; gap: .5rem; }
.cat-title { display: flex; align-items: baseline; gap: .4rem; font: 600 .95rem/1.2 var(--body); padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .45rem; }
.cat-item {
  display: grid; gap: .15rem; text-align: left; padding: .6rem .75rem;
  border: 1.5px solid var(--line); border-left: 4px solid var(--text); border-radius: var(--r-sm);
  background: var(--card); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer;
}
.cat-item.produto { border-left-color: var(--accent); }
.cat-item:disabled { opacity: .4; cursor: not-allowed; }
.cart { display: grid; gap: .6rem; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cart-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.cart-name { display: grid; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.stepper button { width: 34px; height: 34px; border: 0; background: none; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 600; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .95rem; padding: .25rem 0; }
label.cart-line { font-weight: 400; display: flex; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: .5rem 0; border-top: 3px double var(--text); margin-top: .25rem; }
.cart-total strong { font-size: 2rem; font-weight: 700; }

.segmented { display: flex; flex-wrap: wrap; gap: .4rem; }
.segmented label { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); padding: .4rem .7rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer; font-weight: 500; }
.segmented label:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.segmented input { margin: 0; }

/* Horários da semana */
.week { display: grid; gap: .5rem; }
.week-head, .week-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.6fr; gap: .5rem; align-items: center; }
.week-head { font-size: .8rem; color: var(--muted); font-weight: 600; }
.week-row input[type=time] { padding: .4rem .5rem; }
.pause { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
@media (max-width: 600px) {
  .week-head { display: none; }
  .week-row { grid-template-columns: 1fr 1fr; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .week-row .check { grid-column: 1 / -1; }
  .week-row .pause { grid-column: 1 / -1; }
  .week-row .pause::before { content: 'Pausa'; grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
}

/* Relatórios */
.reports { margin-bottom: .5rem; }
.reports .section-title { margin-top: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bars li { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; align-items: center; gap: .75rem; font-size: .9rem; }
.bar { height: 12px; border-radius: 2px; background: var(--soft); position: relative; overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--text); border-radius: 2px; }
.bar-val { font-weight: 600; white-space: nowrap; }

.copy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.receipt { display: grid; gap: .2rem; }

/* Fila de confirmação */
.btn.disabled { opacity: .45; pointer-events: none; }
.fila-topo { display: grid; gap: .5rem; margin-bottom: 1rem; }
.fila-topo .hint { margin: 0; }
.fila { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fila-item { display: grid; grid-template-columns: 76px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.fila-hora { padding: .85rem .7rem; background: var(--soft); border-right: 3px solid var(--accent); border-radius: var(--r-md) 0 0 var(--r-md); font: 700 1.35rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.fila-item.enviado .fila-hora { border-right-color: var(--line); }
.fila-item[data-status="confirmado"] .fila-hora { border-right-color: var(--wa); }
.fila-corpo { padding: .75rem .9rem; display: grid; gap: .35rem; min-width: 0; }
.fila-enviado { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.fila-enviado:empty { display: none; }
.fila-acoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .2rem; }
.status-toggle { flex: 1 1 220px; flex-wrap: nowrap; }
.status-toggle label { min-height: 36px; padding: .25rem .6rem; font-size: .86rem; }
.status-toggle label:has(input[value="confirmado"]:checked) { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-fg); box-shadow: none; }
.appt-sent { font-size: .8rem; color: var(--muted); }
