/* SIPY FOOD TRUCK — design system (mobile-first) */
:root {
  --green: #153C36;
  --green-2: #1e5048;
  --ivory: #F5F3EE;
  --gold: #C5A46D;
  --gold-2: #b08e57;
  --white: #FFFFFF;
  --ink: #252525;
  --ok: #23865D;
  --bad: #C94A4A;
  --muted: #6b6a66;
  --line: #e6e1d7;
  --line-2: #efebe3;
  --warn-bg: #fbf3e4;
  --warn-ink: #8a5a12;
  --info-bg: #eaf1ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 60, 54, .05), 0 8px 24px rgba(21, 60, 54, .06);
  --shadow-lg: 0 12px 40px rgba(21, 60, 54, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ivory); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
[hidden] { display: none !important; }

/* Tipografia */
.h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.2; margin: 0 0 10px; color: var(--green); letter-spacing: -.01em; }
.h2 { font-size: clamp(21px, 4.6vw, 27px); line-height: 1.3; margin: 0 0 14px; color: var(--green); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h3 { font-size: 17px; margin: 0 0 12px; color: var(--green); display: flex; align-items: center; gap: 8px; }
.h4 { font-size: 15px; margin: 18px 0 8px; color: var(--green); }
.lead { font-size: 17px; color: #4a4a47; max-width: 56ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--gold-2); font-weight: 700; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--bad); }
.strike { text-decoration: line-through; }

/* Estrutura */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; }
.pad-y { padding: 24px 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.grid-2 { display: grid; gap: 16px; margin-bottom: 16px; }
.row-2, .row-3 { display: grid; gap: 0 14px; }
.site-main { padding: 20px 0 48px; min-height: 70vh; }

/* Topo */
.topbar { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand b { color: var(--gold); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--green); display: inline-grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: 0; }
.brand-mark.lg { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }
.brand-mark .ico { width: 26px; height: 26px; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.top-nav .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.lang-switch a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 13px; padding: 5px 11px; border-radius: 999px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.lang-switch a.on { background: #fff; color: var(--green); }
.inline { display: inline; margin: 0; }
.hide-sm { display: none; }

.site-foot { border-top: 1px solid var(--line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-in nav { display: flex; gap: 16px; }

/* Cartões */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .h3, .card-head .h2 { margin: 0; }
.card-accent { border-top: 3px solid var(--gold); }
.link-card { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.link-card span { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--green); font-style: normal; }
.chip .ico { width: 15px; height: 15px; }

/* Botões */
.btn { --bg: var(--white); --fg: var(--ink); --bd: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 12px; padding: 0 18px; min-height: 46px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { --bd: #cfc8ba; color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn-primary:hover { --bg: var(--green-2); --bd: var(--green-2); color: #fff; }
.btn-gold { --bg: var(--gold); --fg: var(--green); --bd: var(--gold); }
.btn-gold:hover { --bg: var(--gold-2); --bd: var(--gold-2); color: #fff; }
.btn-outline { --bg: transparent; --fg: var(--green); --bd: var(--green); }
.btn-outline:hover { --bg: var(--info-bg); }
.btn-ghost { --bg: transparent; --fg: var(--green); --bd: transparent; }
.btn-ghost:hover { --bg: var(--line-2); --bd: transparent; }
.btn-danger { --bg: var(--bad); --fg: #fff; --bd: var(--bad); }
.btn-danger-ghost { --bg: transparent; --fg: var(--bad); --bd: #ecc9c9; }
.btn-danger-ghost:hover { --bg: #fbefef; --bd: var(--bad); color: var(--bad); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 24px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.tight { gap: 4px; flex-wrap: nowrap; }
.btn-row form { margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--green); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--line-2); }

/* Formulários */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #3b3b38; margin: 0; min-width: 0; }
.field > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #d9d3c7; border-radius: 12px; padding: 11px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,60,54,.12); }
.field.is-ocr input { background: #fbf9f4; border-color: #e3d4b6; }
.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.req { color: var(--bad); font-style: normal; }
.opt { color: var(--muted); font-style: normal; font-weight: 400; font-size: 12px; }
.ocr-tag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-2); background: #f6efe1; border-radius: 6px; padding: 1px 6px; }
.ocr-tag.warn { color: var(--warn-ink); background: var(--warn-bg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.reveal { padding: 4px 0 0 34px; }
.loc-form { margin: 0; }
.loc-form select { min-width: 200px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--ivory); padding: 4px; border-radius: 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: #fff; box-shadow: var(--shadow); color: var(--green); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.wd-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wd-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.wd { cursor: pointer; }
.wd input { position: absolute; opacity: 0; }
.wd span { display: inline-grid; place-items: center; min-width: 46px; height: 42px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.wd input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.wd input:focus-visible + span { outline: 3px solid var(--gold); }

/* Upload */
.drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 18px; border: 2px dashed #d5cbb6; border-radius: var(--radius); background: #fbf9f4; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--gold); background: #f8f2e6; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--green); color: var(--gold); display: grid; place-items: center; margin-bottom: 6px; }
.drop-ico .ico { width: 30px; height: 30px; }
.drop-file { font-weight: 600; color: var(--green); font-size: 14px; word-break: break-all; }
.tips { margin: 0; padding-left: 18px; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 700; flex: none; font-size: 12px; }
.steps li.on { border-color: var(--green); color: var(--green); font-weight: 600; }
.steps li.on span { background: var(--green); color: #fff; }
.steps li.done span { background: var(--ok); color: #fff; }

/* Alertas e status */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-size: 14.5px; border: 1px solid transparent; }
.alert-success { background: #e8f4ee; color: #17603f; border-color: #c6e3d3; }
.alert-error { background: #fbecec; color: #8f2c2c; border-color: #efcaca; }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #f0dcb7; }
.alert-info { background: var(--info-bg); color: var(--green); border-color: #d1e2dd; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-approved { background: #e6f3ec; color: var(--ok); }
.status-pending { background: #fbf2df; color: #9a6714; }
.status-correction { background: #fdf0e3; color: #a1561a; }
.status-rejected, .status-suspended { background: #fbeaea; color: var(--bad); }
.status-expired { background: #efefed; color: #6a6a66; }
.status-neutral { background: #f0eee9; color: #6a6a66; }
.badge-n { margin-left: auto; background: var(--gold); color: var(--green); font-style: normal; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }

/* Hero */
.hero { padding: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .btn { flex: 1 1 220px; }

/* Calendário */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.month-nav strong { font-size: 17px; color: var(--green); }
.month-nav.slim { gap: 10px; margin: 0; }
.cal { display: grid; gap: 4px; }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-wd.sun { color: var(--bad); }
.cal-wd.sat { color: #2d6a9f; }
.cal-cell { position: relative; aspect-ratio: 1 / 1.05; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font: inherit; color: var(--ink); text-decoration: none; padding: 2px; }
.cal-cell.empty { border: 0; background: transparent; }
.cal-day { font-size: 13px; font-weight: 600; line-height: 1.2; }
.cal-sym { font-size: 17px; line-height: 1.1; font-weight: 700; }
.cal-cap { font-size: 9.5px; color: var(--muted); line-height: 1.1; }
.cal-cell.open { background: #eef7f2; border-color: #cfe8db; }
.cal-cell.open .cal-sym { color: var(--ok); }
.cal-cell.full { background: #fcf0f0; border-color: #f0d4d4; }
.cal-cell.full .cal-sym { color: var(--bad); }
.cal-cell.closed { background: #f4f3f0; }
.cal-cell.closed .cal-sym, .cal-cell.closed .cal-day { color: #a3a19b; }
.cal-cell.past { background: transparent; border-color: transparent; }
.cal-cell.past .cal-day { color: #c3c0b8; }
.cal-cell.mine { background: var(--green); border-color: var(--green); color: #fff; }
.cal-cell.mine .cal-sym { color: var(--gold); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--gold); }
button.cal-cell { cursor: pointer; transition: transform .08s, box-shadow .15s; }
button.cal-cell.open:hover { border-color: var(--ok); box-shadow: 0 4px 12px rgba(35,134,93,.18); }
button.cal-cell.selected { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.04); }
button.cal-cell.selected .cal-sym, button.cal-cell.selected .cal-cap { color: #fff; }
a.cal-cell:hover { border-color: var(--green); }
.cal-dot { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 13px; }
.lg { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.lg.open { color: var(--ok); } .lg.full { color: var(--bad); } .lg.closed { color: #8d8b85; } .lg.mine { color: var(--green); }

/* Barra de confirmação (mobile fixa) */
.confirm-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; animation: rise .2s ease-out; z-index: 20; }
.confirm-bar > div { display: grid; }
.confirm-bar strong { color: var(--green); font-size: 17px; }
.confirm-bar .btn { flex: 1 1 200px; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Programação pública */
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sched.compact { gap: 6px; font-size: 14px; }
.sched-date { font-weight: 700; color: var(--green); font-size: 14px; margin-bottom: 6px; }
.sched-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.sched-photo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.sched-photo.ph { display: grid; place-items: center; background: var(--ivory); color: var(--gold-2); }
li:target .sched-date { background: #f6efe1; border-radius: 8px; padding: 2px 8px; }

/* Autenticação */
.auth { display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 440px; padding: 28px 22px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 14px; }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; background: var(--ivory); color: var(--gold-2); display: grid; place-items: center; }
.empty-ico .ico { width: 30px; height: 30px; }
.empty-ico.ok { background: #e6f3ec; color: var(--ok); }

/* Painel do Food Truck */
.dash-head { padding: 6px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-head .eyebrow, .dash-head .h1 { flex-basis: 100%; margin-bottom: 2px; }
.stats-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat { display: grid; gap: 2px; padding: 16px; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 19px; color: var(--green); line-height: 1.3; }
.stat .ico { width: 15px; height: 15px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.action { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 112px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--green); font-weight: 700; font-size: 15.5px; line-height: 1.3; transition: transform .1s, box-shadow .15s, border-color .15s; }
.action .ico { width: 28px; height: 28px; padding: 0; color: var(--gold-2); }
.action:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); color: var(--green); transform: translateY(-1px); }
.action.primary { background: var(--green); color: #fff; border-color: var(--green); }
.action.primary .ico { color: var(--gold); }
.action.primary:hover { color: #fff; }
.action.disabled { opacity: .45; pointer-events: none; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; margin-bottom: 10px; font-weight: 600; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head .h2 { margin: 0; }
.res-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.res-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; }
.res-date { width: 62px; height: 66px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; }
.res-d { font-size: 24px; font-weight: 800; line-height: 1; }
.res-m { font-size: 11px; color: var(--gold); font-weight: 600; margin-top: 3px; }
.res-info { display: grid; gap: 3px; justify-items: start; }
.res-info .ico { width: 14px; height: 14px; }
.res-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.res-actions > *, .res-actions form .btn { flex: 1; width: 100%; }
.res-actions form { flex: 1; margin: 0; }
.res-item.focus-move .res-actions a, .res-item.focus-cancel .res-actions form .btn { box-shadow: 0 0 0 3px rgba(197,164,109,.45); }
.current-res { display: grid; gap: 2px; margin-bottom: 12px; border-left: 4px solid var(--gold); }
.current-res strong { font-size: 18px; color: var(--green); }
.past-box summary { cursor: pointer; font-weight: 600; color: var(--green); }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.photo-row { display: flex; align-items: flex-end; gap: 12px; }
.grow { flex: 1; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.thumb.lg { width: 140px; height: 105px; margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 4px 0 4px 6px; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -14px; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin-top: 4px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.timeline.compact { gap: 10px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.rules-list li { font-weight: 600; color: var(--green); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 8px 10px; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #faf8f3; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.tabs a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.tabs a.on { background: var(--green); color: #fff; }
.tabs a:not(.on):hover { border-color: var(--line); background: #fff; }
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 6px 0 14px; margin-bottom: 14px; color: var(--muted); }
.search-bar input { border: 0; box-shadow: none !important; padding-left: 4px; }
.search-bar.slim { margin: 0; min-width: 220px; }
.filters { display: grid; gap: 12px; margin-bottom: 14px; align-items: end; }

/* Painel administrativo */
.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--green); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; transform: translateX(-100%); transition: transform .22s ease; z-index: 50; overflow-y: auto; }
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar .brand { padding: 4px 8px 20px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.78); text-decoration: none; padding: 11px 12px; border-radius: 11px; font-weight: 500; font-size: 15px; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: rgba(197,164,109,.18); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a.active .ico { color: var(--gold); }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.side-foot form { margin: 0; }
.side-logout { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; color: rgba(255,255,255,.7); border: 0; font: inherit; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.side-logout:hover { background: rgba(255,255,255,.07); color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(15, 30, 27, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.sidebar.open ~ .scrim, .admin-shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
.admin-top { position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: rgba(245,243,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-top-title { font-weight: 700; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.admin-user { display: none; font-size: 13px; color: var(--muted); }
.admin-content { padding: 18px 14px 48px; max-width: 1280px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-grid.small { grid-template-columns: repeat(3, 1fr); }
.stat-card { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding: 16px; transition: border-color .15s, transform .1s; }
.stat-card:hover { border-color: var(--gold); color: var(--ink); }
.stat-card.warn { border-color: #efd8ae; background: #fffaf1; }
.stat-ico { color: var(--gold-2); }
.stat-n { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat-l { font-size: 13px; color: var(--muted); font-weight: 600; }
.notif-list, .recip-list, .day-res { list-style: none; margin: 0; padding: 0; display: grid; }
.notif-list li { display: grid; gap: 2px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; border-left: 3px solid transparent; }
.notif-list li.unread { border-left-color: var(--gold); }
.notif-list li a { text-decoration: none; color: var(--ink); }
.notif-list li a:hover { color: var(--green); text-decoration: underline; }
.recip-list li, .day-res li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.recip-list form, .day-res form { margin: 0; }
.day-res li.is-cancelled { opacity: .6; }
.doc-img { border-radius: 12px; border: 1px solid var(--line); width: 100%; height: auto; margin-bottom: 10px; background: #fafafa; }
.pdf-box { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 220px; border: 2px dashed var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.pdf-box .ico { width: 34px; height: 34px; }
.pop { position: relative; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: min(300px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 14px; }
.pop.right .pop-body { left: auto; right: 0; }
.pop-body .form { gap: 8px; }
.inline-form { margin-top: 10px; }

/* Responsivo */
@media (min-width: 560px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .action-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hide-sm { display: inline; }
  .res-item { grid-template-columns: auto 1fr auto; }
  .res-actions { grid-column: auto; flex-direction: column; min-width: 150px; }
  .cal-day { font-size: 14px; }
  .cal-sym { font-size: 19px; }
  .cal-cap { font-size: 10.5px; }
  .filters { grid-template-columns: repeat(4, 1fr) auto; }
  .auth-card { padding: 34px 32px; }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .grid-2.wide-left { grid-template-columns: 1.35fr 1fr; }
  .hero { padding: 34px 0 34px; }
  .sidebar { transform: none; }
  .admin-main { margin-left: 268px; }
  .admin-top [data-toggle] { display: none; }
  .admin-user { display: inline; }
  .admin-content { padding: 26px 32px 60px; }
  .scrim { display: none; }
  .confirm-bar { position: static; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .sidebar, .admin-top, .site-foot, .btn { display: none !important; } .admin-main { margin: 0; } body { background: #fff; } }

/* Ajustes para telas estreitas */
.lang-switch a { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar .brand > span:last-child { display: none; }
  .cal-cap { display: none; }
  .lang-switch a { padding: 5px 9px; }
}
