/* ==========================================================================
   Sem Trela – design tokens (BR1) e componentes
   Fontes: Titan One (títulos), Caveat (acentos), Montserrat (tudo o resto)
   ========================================================================== */

@font-face { font-family: "Titan One"; font-weight: 400; font-display: swap;
  src: url("../fonts/titan-one-latin-400-normal.3b731012ac76.woff2") format("woff2"); }
@font-face { font-family: "Titan One"; font-weight: 400; font-display: swap; unicode-range: U+0100-024F;
  src: url("../fonts/titan-one-latin-ext-400-normal.b6db2f199f8f.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap;
  src: url("../fonts/caveat-latin-500-normal.d3680fa7bf1c.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap;
  src: url("../fonts/caveat-latin-700-normal.40fdb9da34c2.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.74795056a235.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.3bfc3fd41ec5.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.5c43ef701a54.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.0c556945fe4b.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; unicode-range: U+0100-024F;
  src: url("../fonts/montserrat-latin-ext-400-normal.07f48cc5de8e.woff2") format("woff2"); }

:root {
  /* Marca (7.2) */
  --green: #184420;
  --green-700: #123419;
  --green-600: #1f5429;
  --blue: #173F5F;
  --orange: #E65E2E;
  --orange-600: #cc4f22;
  --yellow: #FFF3A1;
  --pink: #D98FAE;

  /* Neutros */
  --ink: #1b221d;
  --ink-2: #3f4a42;
  --muted: #6b766e;
  --line: #e3e6df;
  --line-2: #eef0ea;
  --paper: #fbfaf5;
  --card: #ffffff;
  --cream: #fffbe0;

  /* Capacidade (3.4): distintas das cores da marca */
  --cap-green: #1f9d55;
  --cap-green-bg: #e6f6ec;
  --cap-orange: #d98a00;
  --cap-orange-bg: #fff3d6;
  --cap-red: #cf3a3a;
  --cap-red-bg: #fde8e8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 4px 16px rgba(20, 40, 25, .06);
  --shadow-lg: 0 12px 40px rgba(20, 40, 25, .18);
  --font-display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sidebar: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg[aria-hidden="true"] { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
a { color: var(--orange-600); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; }
h1, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: .2px; }
h1 { font-size: 1.9rem; color: var(--green); }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
.script { font-family: var(--font-script); font-weight: 700; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout da app ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); background: var(--green); color: var(--yellow);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  padding: 22px 14px 16px;
}
.sidebar .brand { display: block; padding: 0 10px 18px; }
.sidebar .brand img { width: 150px; }
.nav-group { margin-top: 10px; }
.nav-label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 243, 161, .55);
  padding: 10px 12px 6px; font-weight: 600;
}
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #fdf8d0;
  font-weight: 500; font-size: .93rem; text-decoration: none;
}
.nav a svg { width: 19px; height: 19px; flex: 0 0 19px; opacity: .9; }
.nav a:hover { background: rgba(255, 255, 255, .07); }
.nav a.active { background: var(--yellow); color: var(--green); font-weight: 700; }
.nav a .count {
  margin-left: auto; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700;
  border-radius: 999px; padding: 1px 7px; min-width: 22px; text-align: center;
}
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 243, 161, .15); }
.sidebar-foot .who { font-size: .85rem; color: #fdf8d0; font-weight: 600; }
.sidebar-foot .role { font-size: .75rem; color: rgba(255, 243, 161, .6); }

.main { flex: 1; min-width: 0; }
.topbar {
  display: none; position: sticky; top: 0; z-index: 30; background: var(--green); color: var(--yellow);
  padding: 10px 16px; align-items: center; justify-content: space-between;
}
.topbar img { height: 34px; width: auto; }
.content { max-width: 1180px; margin: 0 auto; padding: 28px 32px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px;
  flex-wrap: wrap; }
.page-head .sub { font-family: var(--font-script); font-size: 1.45rem; color: var(--orange); margin-top: -4px;
  line-height: 1; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); font-weight: 500; }

.bottom-nav { display: none; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar { display: flex; }
  .content { padding: 18px 16px 96px; }
  h1 { font-size: 1.55rem; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff;
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem;
    color: var(--muted); font-weight: 600; padding: 4px 2px; text-decoration: none; position: relative;
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--green); }
  .bottom-nav a .dot { position: absolute; top: 2px; right: calc(50% - 18px); background: var(--orange); color: #fff;
    border-radius: 999px; font-size: .6rem; padding: 0 5px; }
}

/* Menu móvel (gaveta) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 14, .45); z-index: 60; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; z-index: 61; background: var(--green);
  padding: 20px 14px; overflow-y: auto; }
.icon-btn { background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; border-radius: 8px; }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Cartões e grelhas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.stack > * + * { margin-top: 16px; }
.grid > *, .split > *, .split-rev > * { margin-top: 0 !important; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }

/* Estatísticas */
.stat { padding: 18px 20px; }
.stat .label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-family: var(--font-display); font-size: 2rem; color: var(--green); line-height: 1.1; margin-top: 6px; }
.stat .hint { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.stat.accent { background: var(--green); border-color: var(--green); }
.stat.accent .label { color: rgba(255, 243, 161, .75); }
.stat.accent .value { color: var(--yellow); }
.stat.accent .hint { color: rgba(255, 243, 161, .75); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 10px 18px; font-family: var(--font-body); font-size: .92rem; font-weight: 700; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }
.btn-dark { background: var(--green); color: var(--yellow); }
.btn-dark:hover { background: var(--green-700); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: #fff; border-color: #f0c9c9; color: var(--cap-red); }
.btn-danger:hover { background: var(--cap-red-bg); }
.btn-success { background: var(--cap-green); color: #fff; }
.btn-success:hover { background: #188546; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--orange-600); font-weight: 600; cursor: pointer; padding: 0;
  font-family: inherit; font-size: inherit; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: .75rem;
  font-weight: 700; line-height: 1.6; white-space: nowrap; border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-pending { background: #fff4d9; color: #9a6200; }
.b-waitlist { background: #e3eef8; color: #1f5480; }
.b-confirmed { background: var(--cap-green-bg); color: #13703b; }
.b-completed { background: #e8efe9; color: var(--green); }
.b-no_show { background: var(--cap-red-bg); color: #a72b2b; }
.b-late_cancelled { background: #f9e4ec; color: #9b3c62; }
.b-cancelled { background: #eef0ee; color: #6b766e; }
.b-active { background: var(--cap-green-bg); color: #13703b; }
.b-scheduled { background: #e3eef8; color: #1f5480; }
.b-expired { background: #eef0ee; color: #6b766e; }
.b-paid { background: var(--cap-green-bg); color: #13703b; }
.b-inactive { background: #eef0ee; color: #6b766e; }
.tier { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: .74rem; font-weight: 700;
  letter-spacing: .02em; }
.tier-base { background: #eef0ee; color: var(--ink-2); }
.tier-matilha { background: var(--green); color: var(--yellow); }
.tier-founding { background: var(--blue); color: var(--yellow); }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: var(--line-2); color: var(--ink-2);
  border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 600; }
.chip svg { width: 14px; height: 14px; }
.chip-transport { background: #e8f0f6; color: var(--blue); }
.chip-system { background: var(--cream); color: #7a6200; }

/* ---------- Alertas e banners ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; display: flex; gap: 10px;
  align-items: flex-start; border: 1px solid; }
.alert svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.alert-info { background: #eef5fa; border-color: #d3e3ef; color: #19405f; }
.alert-success { background: var(--cap-green-bg); border-color: #c4e8d2; color: #13703b; }
.alert-warning { background: #fff7e3; border-color: #f4e0ac; color: #7a5200; }
.alert-error { background: var(--cap-red-bg); border-color: #f2caca; color: #a12a2a; }
.messages { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px;
  max-width: min(420px, calc(100vw - 32px)); }
.messages .alert { box-shadow: var(--shadow-lg); }

.banner {
  border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 16px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden;
}
.banner h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin: 0 0 2px; }
.banner p { margin: 0; font-size: .9rem; }
.banner-green { background: var(--green); color: var(--yellow); }
.banner-green p { color: #f6efc0; }
.banner-orange { background: var(--orange); color: #fff; }
.banner-orange h3 { color: var(--yellow); }
.banner-blue { background: var(--blue); color: var(--yellow); }
.banner-blue p { color: #e5ebf1; }
.banner-pink { background: var(--pink); color: var(--green); }
.banner-cream { background: var(--cream); color: var(--green); border: 1px solid #f2e7a6; }
.banner .btn-light { background: var(--yellow); color: var(--green); }
.banner .btn-light:hover { background: #fff7c4; }

/* ---------- Formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field .req { color: var(--orange); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
input[type=time], input[type=search], select, textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit;
  font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 68, 32, .12); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .errors { font-size: .82rem; color: var(--cap-red); margin-top: 4px; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--cap-red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; background: #fff; }
.choice input:checked + span { border-color: var(--green); background: var(--green); color: var(--yellow); }
.choice input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.phone-group { display: grid; grid-template-columns: 124px 1fr; gap: 8px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
fieldset { border: 0; padding: 0; margin: 0; }
.subform { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fcfcfa; }
.subform + .subform { margin-top: 10px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfcf9; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fafbf7; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  table.table.responsive thead { display: none; }
  table.table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border-bottom: 1px solid var(--line); padding: 10px 6px; }
  .table.responsive td { border: 0; padding: 4px 10px; }
  .table.responsive td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
}

/* Lista de definição */
.dl { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 8px 16px; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }

/* ---------- Cartões de cão ---------- */
.dog-card { display: flex; flex-direction: column; overflow: hidden; }
.dog-card .top { display: flex; gap: 14px; padding: 18px 18px 12px; align-items: center; }
.avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: var(--cream); flex: 0 0 auto;
  border: 3px solid var(--yellow); display: grid; place-items: center; font-family: var(--font-display);
  color: var(--green); font-size: 1.4rem; overflow: hidden; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar.sm { width: 36px; height: 36px; font-size: .9rem; border-width: 2px; }
.dog-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--green); margin: 0; }
.dog-card .meta { font-size: .82rem; color: var(--muted); }
.dog-card .plans { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.dog-card .foot { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex;
  justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.plan-line { background: #f7f8f3; border-radius: 10px; padding: 10px 12px; font-size: .85rem; }
.plan-line .name { font-weight: 700; }
.meter { height: 7px; background: #e4e8df; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* Secções da ficha */
.section-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.section-nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: .85rem; font-weight: 600; text-decoration: none; }
.section-nav a.done::after { content: " ✓"; color: var(--cap-green); }
.section-nav a.todo::after { content: " •"; color: var(--orange); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* ---------- Calendário ---------- */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .month { font-weight: 700; font-size: 1.05rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; padding-bottom: 4px; }
.cal-day {
  min-height: 70px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; padding: 6px 7px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; font-family: inherit;
  cursor: default; position: relative; color: var(--ink);
}
.cal-day .n { font-weight: 700; font-size: .95rem; }
.cal-day .s { font-size: .68rem; font-weight: 700; line-height: 1.15; }
.cal-day.empty { border: 0; background: transparent; }
.cal-day.selectable { cursor: pointer; }
.cal-day.selectable:hover { border-color: var(--green); }
.cal-day.green { background: var(--cap-green-bg); border-color: #bfe5cd; }
.cal-day.green .s { color: #13703b; }
.cal-day.orange { background: var(--cap-orange-bg); border-color: #f1d79a; }
.cal-day.orange .s { color: #8a5800; }
.cal-day.red { background: var(--cap-red-bg); border-color: #f0c2c2; }
.cal-day.red .s { color: #a12a2a; }
.cal-day.off { background: #f7f7f3; color: #b0b7b1; border-color: #efefe9; }
.cal-day.weekend { background: #f3f3ef; color: #a7aea8; border-color: #ececE6; }
.cal-day.holiday { background: #eef3f8; color: #5f7a91; border-color: #dbe5ee; }
.cal-day.closure { background: #f8eef2; color: #9b5571; border-color: #efd9e2; }
.cal-day.disabled { opacity: .55; }
.cal-day.booked { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-day.selected { background: var(--green) !important; border-color: var(--green) !important; color: var(--yellow) !important; }
.cal-day.selected .s { color: var(--yellow) !important; }
.cal-day.today .n::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); margin-left: 5px; vertical-align: middle; }
@media (max-width: 640px) {
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 54px; padding: 4px; border-radius: 8px; }
  .cal-day .n { font-size: .85rem; }
  .cal-day .s { font-size: .58rem; }
}
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .08); display: inline-block; }

/* Passos do fluxo */
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; counter-reset: step; }
.steps .step { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.steps .step::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--line-2); font-size: .75rem; color: var(--ink-2); }
.steps .step.current { border-color: var(--green); color: var(--green); }
.steps .step.current::before { background: var(--green); color: var(--yellow); }
.steps .step.done::before { content: "✓"; background: var(--cap-green); color: #fff; }

/* Seleção de cão */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pick label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
  cursor: pointer; background: #fff; }
.pick input { position: absolute; opacity: 0; }
.pick input:checked + label { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 68, 32, .12); background: #f6faf4; }
.pick input:disabled + label { opacity: .5; cursor: not-allowed; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 14, .5); z-index: 80; display: grid;
  place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  box-shadow: var(--shadow-lg); }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 18px 22px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 4px 22px 18px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px;
  flex-wrap: wrap; background: #fcfcf9; border-radius: 0 0 18px 18px; }

/* ---------- Estado vazio ---------- */
.empty { text-align: center; padding: 36px 20px; }
.empty img { width: 210px; margin: 0 auto 14px; border-radius: 16px; }
.empty h3 { font-family: var(--font-display); font-weight: 400; color: var(--green); font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 14px; }

/* ---------- Páginas de autenticação ---------- */
.auth { min-height: 100vh; background: var(--green); display: grid; grid-template-columns: 1fr 1fr; }
.auth-hero { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px;
  color: var(--yellow); text-align: center; position: relative; overflow: hidden; }
.auth-hero img.logo { width: min(360px, 80%); }
.auth-hero .phrase { font-family: var(--font-script); font-size: 2rem; color: var(--orange); margin-top: 18px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { background: #fff; border-radius: 22px; padding: 32px; width: min(460px, 100%); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); margin-bottom: 20px; }
.auth-mobile-logo { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { flex-direction: column; padding: 28px 16px 40px; }
  .auth-mobile-logo { display: block; width: 210px; margin: 0 auto 20px; }
  .auth-card { padding: 24px 20px; }
}
.pw-rules { list-style: none; padding: 0; margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--cap-green); }
.pw-rules li.ok::before { content: "✓ "; }

/* ---------- Diversos ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); border: 0; background: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font-family: inherit; }
.tabs a.active, .tabs button.active { color: var(--green); border-bottom-color: var(--orange); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 150px; }
.filters .field label { font-size: .75rem; }
.filters input, .filters select { padding: 8px 10px; font-size: .88rem; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.timeline li { padding: 6px 0 6px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--green); }
.kpi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpi { background: #f8f9f4; border-radius: 12px; padding: 12px 14px; }
.kpi .k { font-size: .76rem; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 1.25rem; font-weight: 700; color: var(--green); }
.chart-box { position: relative; height: 260px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid a, .photo-grid div { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4;
  background: #f5f5f0; display: block; position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .remove { position: absolute; top: 4px; right: 4px; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.week-col { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 180px; display: flex; flex-direction: column; }
.week-col.weekend { background: #f6f6f2; }
.week-col .wh { padding: 10px 12px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between;
  align-items: center; gap: 6px; }
.week-col .wh b { font-size: .9rem; }
.week-col .items { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.week-item { font-size: .8rem; border-radius: 8px; padding: 6px 8px; background: #f7f8f3; border-left: 3px solid var(--line);
  display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.week-item.confirmed { border-left-color: var(--cap-green); }
.week-item.pending { border-left-color: #e0a100; }
.week-item.waitlist { border-left-color: #2f6fa6; }
.week-item.completed { border-left-color: var(--green); }
.week-item.no_show, .week-item.late_cancelled { border-left-color: var(--cap-red); }
.week-item.cancelled { opacity: .55; text-decoration: line-through; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .week-col { min-height: 0; } }
.cap-pill { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.cap-pill.green { background: var(--cap-green-bg); color: #13703b; }
.cap-pill.orange { background: var(--cap-orange-bg); color: #8a5800; }
.cap-pill.red { background: var(--cap-red-bg); color: #a12a2a; }
.cap-pill.closed { background: #eee; color: #888; }
.notice-strip { background: var(--cream); border: 1px solid #f2e7a6; color: #6b5800; border-radius: 12px; padding: 10px 14px;
  font-size: .88rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.w-full { width: 100%; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pack-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pack-options label { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.pack-options input { position: absolute; opacity: 0; }
.pack-options input:checked + label { border-color: var(--green); background: #f4f9f2; box-shadow: 0 0 0 3px rgba(24, 68, 32, .1); }
.pack-options .pn { font-family: var(--font-display); color: var(--green); font-size: 1.15rem; }
.pack-options .pp { font-weight: 700; font-size: 1.1rem; }
@media print { .sidebar, .topbar, .bottom-nav, .page-head .actions, .filters { display: none !important; } .content { padding: 0; } }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
.split-rev { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 900px) { .split, .split-rev { grid-template-columns: 1fr; } .split aside.card { position: static !important; } }
@media (max-width: 640px) {
  .banner .btn, .banner form { white-space: normal; width: 100%; }
  .banner .row { width: 100%; }
  .page-head .actions { width: 100%; }
}
.table tr.row-new td { background: color-mix(in srgb, var(--yellow) 30%, transparent); }
input.no-spin::-webkit-outer-spin-button, input.no-spin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.no-spin { -moz-appearance: textfield; appearance: textfield; }
