/* ==========================================================================
   Lava-Rápido Brilho Total — Design System (fundação de frontend reutilizável)
   Fundação visual do modelo institucional: identidade azul-água profundo,
   ciano brilhante, branco e acento âmbar. Estética limpa "high-gloss".
   Reutilizada pelo site público e pelo painel administrativo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de design
   -------------------------------------------------------------------------- */
:root {
  --brand-950: #04222f;
  --brand-900: #062f43;
  --brand-800: #083a52;
  --brand-700: #0b4f6c;
  --brand-600: #0e6a8a;
  --brand-500: #0e7c99;
  --cyan-600: #00a3bd;
  --cyan-500: #00b8d4;
  --cyan-400: #22d3ee;
  --cyan-100: #d8f6fb;
  --cyan-050: #eefafd;
  --accent-600: #e69b00;
  --accent-500: #ffb300;
  --accent-400: #ffc94d;
  --accent-100: #fff3d6;

  --ink-900: #0a2540;
  --ink-700: #243b53;
  --ink-500: #486581;
  --ink-400: #627d98;
  --ink-300: #829ab1;

  --success-600: #1f9d6b;
  --success-100: #dff5ec;
  --info-600: #0e7c99;
  --info-100: #d8f6fb;
  --warn-600: #b7791f;
  --warn-100: #fdf1d6;
  --danger-600: #d64545;
  --danger-100: #fbe3e3;

  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #f8fbfd;
  --line: #e1ecf3;
  --line-strong: #c9dbe6;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-sm: 0 6px 16px -8px rgba(10, 37, 64, 0.18);
  --shadow: 0 18px 40px -22px rgba(10, 37, 64, 0.32);
  --shadow-lg: 0 34px 70px -32px rgba(10, 37, 64, 0.42);
  --ring: 0 0 0 4px rgba(0, 184, 212, 0.22);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --shell: 1200px;
  --header-h: 74px;
  --sidebar-w: 268px;
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); -webkit-text-size-adjust: 100%; }
section[id], #rodape { scroll-margin-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  font-weight: 750;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
code { font-family: var(--font-mono); font-size: 0.86em; }
small { font-size: 0.82rem; }
strong { font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.muted { color: var(--ink-400); }
.mono { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: -0.01em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.shell { width: min(var(--shell), 100% - 2.5rem); margin-inline: auto; }
.preview-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-600); background: var(--cyan-050);
  border: 1px dashed var(--cyan-400); border-radius: 999px; padding: 3px 10px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Botões e badges
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-700); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 0.9rem; line-height: 1;
  padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 10px 22px -12px rgba(11, 79, 108, 0.9);
}
.btn-accent {
  --btn-bg: linear-gradient(135deg, var(--accent-500), var(--accent-600)); --btn-fg: #302200;
  box-shadow: 0 12px 24px -12px rgba(255, 179, 0, 0.85);
}
.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bd: var(--brand-500); --btn-fg: var(--brand-700); background: var(--cyan-050); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-700); --btn-bd: transparent; }
.btn-ghost:hover { background: rgba(10, 37, 64, 0.06); --btn-fg: var(--ink-900); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #eaf7fb; --btn-bd: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #cfeaf3; --btn-bd: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); --btn-fg: #fff; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }
.btn-sm { padding: 9px 14px; font-size: 0.83rem; }
.btn-xs { padding: 6px 11px; font-size: 0.76rem; border-radius: 999px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn__spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  display: none; animation: pv-spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: 0.75; }
@keyframes pv-spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-500);
  cursor: pointer; transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--brand-700); border-color: var(--cyan-400); background: var(--cyan-050); }
.icon-btn--danger:hover { color: var(--danger-600); border-color: var(--danger-600); background: var(--danger-100); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--brand-700); color: #fff;
}
.badge--accent { background: var(--accent-500); color: #3a2a00; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-500); border: 1px solid var(--line);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--warn, .status--pendente { color: var(--warn-600); background: var(--warn-100); border-color: transparent; }
.status--info, .status--confirmado { color: var(--info-600); background: var(--info-100); border-color: transparent; }
.status--ok, .status--concluido { color: var(--success-600); background: var(--success-100); border-color: transparent; }
.status--danger, .status--cancelado { color: var(--danger-600); background: var(--danger-100); border-color: transparent; }

.price { font-weight: 750; color: var(--brand-700); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.price--lg { font-size: 1.7rem; }

.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 550;
}
.alert--danger { background: var(--danger-100); color: var(--danger-600); }
.alert--warn { background: var(--warn-100); color: var(--warn-600); }
.alert--info { background: var(--info-100); color: var(--info-600); }
.alert--success { background: var(--success-100); color: var(--success-600); }
.auth__notices { display: grid; gap: 10px; margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   4. Formulários
   -------------------------------------------------------------------------- */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--inline { flex-direction: row; align-items: center; gap: 9px; }
.field__label { font-size: 0.8rem; font-weight: 650; color: var(--ink-700); }
.field__label em { color: var(--accent-600); font-style: normal; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="url"], .field input[type="number"], .field input[type="date"],
.field input[type="time"], .field input[type="password"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.92rem; color: var(--ink-900);
  padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 68px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-500); box-shadow: var(--ring);
}
.field input:disabled { background: var(--surface-2); color: var(--ink-300); }
.field input[readonly] { background: var(--surface-2); color: var(--ink-400); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger-600); }
.field__error { color: var(--danger-600); font-size: 0.76rem; font-weight: 600; min-height: 1em; }
.field--inline input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--cyan-600); }
.fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0 0; }
.fieldset legend { font-size: 0.8rem; font-weight: 700; color: var(--ink-700); padding: 0 6px; }

.input-group { display: flex; position: relative; }
.input-group input { padding-right: 46px; }
.input-group__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--ink-400); cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
}
.input-group__btn:hover { color: var(--brand-700); background: var(--cyan-050); }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice > span {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); transition: all 0.15s ease;
}
.choice > span svg { color: var(--brand-500); }
.choice > span strong { font-size: 0.95rem; }
.choice > span small { color: var(--ink-400); }
.choice input:checked + span { border-color: var(--cyan-500); box-shadow: var(--ring); background: var(--cyan-050); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan-500); outline-offset: 2px; }

.color-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.color-field {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 0.78rem; font-weight: 600; color: var(--ink-700);
}
.color-field input[type="color"] { width: 30px; height: 30px; border: 0; border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.color-field code { color: var(--ink-400); font-size: 0.72rem; }

.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); transition: background 0.16s ease; position: relative; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform 0.16s ease; }
.switch input:checked + span { background: var(--cyan-500); }
.switch input:checked + span::after { transform: translateX(16px); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }

.mini-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; font-weight: 650; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.04em; }
.mini-field select, .mini-field input {
  font: inherit; font-size: 0.85rem; font-weight: 550; color: var(--ink-900); text-transform: none; letter-spacing: normal;
  padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--surface);
}
.search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-400); }
.search input { border: 0; background: transparent; font: inherit; font-size: 0.86rem; color: var(--ink-900); width: 100%; outline: none; }
.search--sm { max-width: 260px; }

.save-state { font-size: 0.8rem; font-weight: 650; color: var(--success-600); min-height: 1.2em; }

/* --------------------------------------------------------------------------
   5. Cartões e tabelas (base)
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs);
}
.card--form { padding: 24px; }
.card--muted { background: var(--surface-2); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head h2 { font-size: 1.05rem; margin: 0; }
.card-head p { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-400); }
.card-head--stack { flex-direction: column; gap: 12px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.security-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--cyan-050); border: 1px solid var(--cyan-400); }
.security-note svg { flex: none; color: var(--brand-600); margin-top: 2px; }
.security-note p { margin: 0; font-size: 0.82rem; color: var(--brand-700); }
.card-head .card-head, .card .card { box-shadow: none; }

.table-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.table-card > .card-head { padding: 22px 22px 0; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.price-table__wrap { margin-top: 28px; overflow-x: auto; }
.price-table__wrap .table { min-width: 560px; }
.price-table__title { margin: 0 0 14px; font-size: 1.05rem; font-weight: 750; color: var(--brand-900); }
.table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-400); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0;
}
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: var(--cyan-050); }
.table--compact th, .table--compact td { padding: 10px 12px; }
.table__name { display: inline-flex; align-items: center; gap: 8px; }
.table__name svg { color: var(--brand-500); }
.table__name + small, .table td > small.muted { display: block; margin-top: 2px; }
.row-total { font-weight: 750; background: var(--surface-2); }
.row-total td { border-top: 2px solid var(--line-strong); }
.actions-col { text-align: right; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.check-col { width: 42px; text-align: center; }
.check-col input { width: 16px; height: 16px; accent-color: var(--cyan-600); }
.handle-col { width: 36px; }
.drag-handle { color: var(--ink-300); cursor: grab; display: inline-flex; }

/* ==========================================================================
   SITE PÚBLICO
   ========================================================================== */
.site-page { background: var(--surface); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-900); flex: none; }
.brand:hover { color: var(--ink-900); }
.brand__mark { position: relative; display: inline-flex; filter: drop-shadow(0 6px 12px rgba(11, 79, 108, 0.22)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand__text small { font-size: 0.7rem; color: var(--ink-400); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 9px 12px; border-radius: 999px; font-size: 0.87rem; font-weight: 600; color: var(--ink-700); }
.site-nav a:hover { background: var(--cyan-050); color: var(--brand-700); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink-700); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--brand-950) 0%, var(--brand-800) 42%, var(--brand-600) 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 82% 8%, rgba(0, 184, 212, 0.4), transparent 60%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; padding: 72px 0 96px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__sub { font-size: 1.15rem; color: #cfeef7; max-width: 30ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9fe6f4; margin-bottom: 16px; }
.eyebrow--plain { color: var(--brand-600); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 5px rgba(255, 179, 0, 0.22); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero .btn-outline { --btn-fg: #eaf7fb; --btn-bd: rgba(255, 255, 255, 0.55); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.14); --btn-fg: #fff; }
.hero .btn-ghost { --btn-fg: #d8eef6; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); --btn-fg: #fff; }
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin: 0; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats dt { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero__stats dd { margin: 0; font-size: 0.76rem; color: #9fc3d2; }
.hero__art { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.18); background: #eaf3f8; }
.hero__art svg { display: block; width: 100%; height: auto; }
.hero__badge { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: var(--radius); background: rgba(4, 34, 47, 0.82); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); }
.hero__badge svg { color: var(--cyan-400); }
.hero__badge strong { display: block; font-size: 0.86rem; }
.hero__badge span { font-size: 0.72rem; color: #b8d3de; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: var(--surface); border-radius: 100% 100% 0 0 / 100% 100% 0 0; }

/* Seções */
.section { padding: 76px 0; }
.section--tint { background: var(--surface-2); }
.section--dark { background: linear-gradient(160deg, var(--brand-950), var(--brand-800)); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .section__head p { color: #a9cbda; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: 6px; }
.section__head p { margin: 0; color: var(--ink-400); }

.chips { display: flex; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 0.83rem; font-weight: 650; color: var(--ink-500); cursor: pointer; transition: all 0.15s ease; }
.chip:hover { border-color: var(--cyan-400); color: var(--brand-700); }
.chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.cards { display: grid; gap: 22px; }
.cards--servicos { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cards--combos { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards--diferenciais { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards--depoimentos { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cards--galeria { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.service-card { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan-400); }
.service-card__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--cyan-050); }
.service-card__media svg { width: 100%; height: 100%; display: block; }
.service-card__media .badge { position: absolute; top: 12px; right: 12px; }
.service-card__body { position: relative; padding: 24px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.service-card__icon { position: absolute; top: -22px; left: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.service-card h3 { margin: 6px 0 4px; font-size: 1.06rem; }
.service-card p { font-size: 0.86rem; color: var(--ink-400); flex: 1; }
.service-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; font-size: 0.78rem; color: var(--ink-500); }
.service-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.service-card__meta svg { color: var(--cyan-600); }
.service-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.service-card__actions { display: flex; gap: 8px; margin-left: auto; }

.combo-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-xs); overflow: hidden; }
.combo-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--cyan-500), var(--accent-500)); }
.combo-card__ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(38deg); background: var(--accent-500); color: #3a2a00; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 40px; }
.combo-card h3 { font-size: 1.3rem; }
.combo-card > header p { color: var(--ink-400); font-size: 0.88rem; }
.combo-card__itens { display: grid; gap: 9px; margin: 16px 0; }
.combo-card__itens li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; }
.combo-card__itens svg { color: var(--success-600); flex: none; }
.combo-card__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.combo-card__save { display: block; font-size: 0.76rem; font-weight: 700; color: var(--success-600); }
.combo-card__actions { display: flex; gap: 8px; }

.feature { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; transition: all 0.16s ease; }
.feature:hover { border-color: var(--cyan-400); box-shadow: var(--shadow-sm); }
.feature__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cyan-050); color: var(--brand-600); margin-bottom: 14px; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: 0.85rem; color: var(--ink-400); margin: 0; }

/* Galeria antes/depois */
.compare { margin: 0; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); padding: 14px; }
.compare__stage { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; background: #0b1f2e; user-select: none; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer svg { width: 100%; height: 100%; display: block; }
.compare__layer--antes { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare__tag { position: absolute; bottom: 12px; padding: 4px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.compare__tag--antes { left: 12px; background: rgba(255, 255, 255, 0.85); color: #444; }
.compare__tag--depois { right: 12px; background: var(--cyan-500); color: #04222f; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.compare__handle::before { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; color: var(--brand-700); font-size: 0.9rem; }
.compare__range { width: 100%; margin-top: 12px; accent-color: var(--cyan-500); }
.compare figcaption { margin-top: 10px; display: flex; flex-direction: column; }
.compare figcaption strong { color: #fff; font-size: 0.95rem; }
.compare figcaption span { color: #a9cbda; font-size: 0.82rem; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ampliação comparativa da galeria (abrir imagem / navegar antes-depois) */
.compare__stage[data-gallery-open] { cursor: zoom-in; }
.compare__stage[data-gallery-open]::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: background 0.18s ease, box-shadow 0.18s ease; }
.compare__stage[data-gallery-open]:hover::after { background: rgba(0, 184, 212, 0.1); box-shadow: inset 0 0 0 2px var(--cyan-400); }
.compare__expand { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(4, 34, 47, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease; }
.compare__expand svg { color: var(--cyan-400); }
.compare__expand:hover { background: var(--brand-700); border-color: var(--cyan-400); transform: translateY(-1px); }
.compare__expand:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }
.compare__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

.gallery-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity 0.18s ease; }
.gallery-modal[hidden] { display: none; }
.gallery-modal.is-open { opacity: 1; }
.gallery-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 15, 22, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery-modal__dialog { position: relative; width: min(960px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 18px; background: var(--brand-950); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transform: translateY(12px) scale(0.98); transition: transform 0.2s ease; }
.gallery-modal.is-open .gallery-modal__dialog { transform: translateY(0) scale(1); }
.gallery-modal__close { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: rgba(4, 34, 47, 0.85); color: #fff; cursor: pointer; transition: background 0.16s ease, border-color 0.16s ease; }
.gallery-modal__close:hover { background: var(--danger-600); border-color: var(--danger-600); }
.gallery-modal__close:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }
.compare--ampliado { border: 0; padding: 0; background: transparent; }
.compare--ampliado .compare__stage { aspect-ratio: 16 / 9; }
.compare--ampliado figcaption { margin-top: 14px; }
.compare--ampliado figcaption strong { font-size: 1.1rem; }
body.gallery-open { overflow: hidden; }

/* Mídia configurável (imagem da configuração central com placeholder em falha) */
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial__avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.brand__logo { position: absolute; inset: 0; display: block; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }

/* Estados de seção: carregando / vazio / erro */
.section-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink-400); grid-column: 1 / -1; }
.section-state__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cyan-050); color: var(--brand-600); }
.section-state h3 { margin: 4px 0 0; color: var(--ink-900); font-size: 1.02rem; }
.section-state p { margin: 0; max-width: 46ch; font-size: 0.86rem; }
.section-state .btn { margin-top: 8px; }
.section-state--dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); color: #a9cbda; }
.section-state--dark h3 { color: #fff; }
.section-state--dark .section-state__icon { background: rgba(255, 255, 255, 0.12); color: var(--cyan-400); }
.section-state--error { border-color: var(--danger-600); background: var(--danger-100); color: var(--danger-600); }
.section-state--error .section-state__icon { background: var(--danger-100); color: var(--danger-600); }
.spinner { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--brand-600); animation: pv-spin 0.8s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.table__empty { text-align: center; color: var(--ink-400); padding: 22px 12px; font-size: 0.86rem; }

/* Depoimentos / unidade / CTA / rodapé */
.testimonial { margin: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.testimonial p { font-size: 0.95rem; color: var(--ink-700); flex: 1; }
.testimonial p::before { content: "“"; color: var(--cyan-500); font-size: 2rem; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.testimonial footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.testimonial__avatar { position: relative; width: 46px; height: 46px; border-radius: 14px; overflow: hidden; flex: none; }
.testimonial__avatar svg { display: block; width: 100%; height: 100%; }
.testimonial__who { display: flex; flex-direction: column; }
.testimonial__who strong { font-size: 0.92rem; }
.stars { display: inline-flex; gap: 2px; color: var(--line-strong); }
.stars .is-on { color: var(--accent-500); }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--accent-100); color: var(--warn-600); font-size: 0.85rem; }
.rating-summary svg { color: var(--accent-500); }
.rating-summary span { color: var(--ink-400); }

.unidade__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: start; }
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); background: #eaf3f8; aspect-ratio: 16 / 11; }
.map-frame__fallback { position: absolute; inset: 0; z-index: 0; }
.map-frame__art { width: 100%; height: 100%; display: block; }
.map-frame__embed { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; display: block; background: #eaf3f8; }
.map-frame[data-state="indisponivel"] .map-frame__embed { display: none; }
.map-frame[data-state="pronto"] .map-frame__fallback { visibility: hidden; }
.map-frame[data-state="carregando"] .map-frame__note { color: var(--ink-400); }
.map-frame__card { position: absolute; z-index: 2; left: 16px; bottom: 16px; background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; max-width: 280px; }
.map-frame__card span { font-size: 0.82rem; color: var(--ink-500); }
.map-frame__card .btn { margin-top: 8px; }
.map-frame__note { position: absolute; z-index: 2; top: 12px; right: 12px; font-size: 0.68rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(255, 255, 255, 0.9); color: var(--ink-400); padding: 4px 10px; border-radius: 999px; }
.unidade__info { display: grid; gap: 16px; }
.info-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-card h3 { display: flex; align-items: center; gap: 9px; font-size: 0.98rem; }
.info-card h3 svg { color: var(--cyan-600); }
.info-card p { margin: 0 0 4px; font-size: 0.88rem; }
.info-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hours-list, .footer-hours { display: grid; gap: 7px; }
.hours-list li, .footer-hours li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child, .footer-hours li:last-child { border-bottom: 0; }
.is-closed { color: var(--ink-300); }
.channel-note { font-size: 0.8rem; color: var(--ink-400); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; margin-top: 10px; }
.hero__cta .channel-note, .cta-final__actions .channel-note { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); color: #eaf6fb; margin: 0; }
.site-footer__col .channel-note { color: #93b3c1; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.social-note { font-size: 0.8rem; color: #93b3c1; margin: 0; }

.cta-final { background: linear-gradient(140deg, var(--brand-900), var(--brand-700) 60%, var(--brand-600)); color: #fff; padding: 64px 0; }
.cta-final__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-final h2 { color: #fff; margin-bottom: 6px; }
.cta-final p { color: #cfeaf3; margin: 0; }
.cta-final__note { font-size: 0.8rem; color: #9fc3d2 !important; margin-top: 8px !important; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--brand-950); color: #b8d3de; padding: 56px 0 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.site-footer__brand strong { color: #fff; font-size: 1.05rem; }
.site-footer__brand p { font-size: 0.84rem; color: #93b3c1; margin: 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 9px; }
.site-footer__col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6f95a5; margin-bottom: 4px; }
.site-footer__col a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #cbe3ec; }
.site-footer__col a:hover { color: #fff; }
.site-footer__col svg { color: var(--cyan-400); }
.site-footer .footer-hours li { border-color: rgba(255, 255, 255, 0.1); color: #cbe3ec; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.78rem; color: #7fa1b0; }
.social-row { display: flex; gap: 10px; }
.social-row a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #cbe3ec; transition: all 0.15s ease; }
.social-row a:hover { background: var(--cyan-500); color: #04222f; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 16px 30px -10px rgba(37, 211, 102, 0.7); transition: transform 0.16s ease; }
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }

/* Páginas internas do site */
.page { padding: 40px 0 76px; }
.page--center { display: grid; place-items: center; min-height: 60vh; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-400); margin-bottom: 26px; }
.breadcrumb a { color: var(--brand-600); font-weight: 600; }
.breadcrumb span[aria-current] { color: var(--ink-700); font-weight: 650; }
.page__grid { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 30px; align-items: start; }

.form-panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-sm); }
.form-panel__head { margin-bottom: 24px; }
.form-panel__head p { color: var(--ink-400); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form__foot--bordered { border-top: 1px solid var(--line); }
.form__hint { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-400); margin: 0; }
.form__hint svg { color: var(--warn-600); flex: none; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-success { text-align: center; padding: 34px 20px; background: var(--success-100); border: 1.5px solid var(--success-600); border-radius: var(--radius-xl); }
.form-success__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--success-600); color: #fff; }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success h2 { margin-top: 14px; }
.form-success__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.form-error { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 16px 18px; background: var(--danger-100); border: 1.5px solid var(--danger-600); border-radius: var(--radius-lg); text-align: left; }
.form-error__icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--danger-600); color: #fff; }
.form-error__icon svg { width: 18px; height: 18px; }
.form-error strong { display: block; color: var(--danger-600); }
.form-error p { margin: 2px 0 0; font-size: 0.84rem; color: var(--ink-700); }
.form-error .btn { margin-left: auto; flex: none; }

.side-panel { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 18px); }
.side-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.side-card h3 svg { color: var(--cyan-600); }
.side-card p { font-size: 0.86rem; color: var(--ink-400); }
.steps { display: grid; gap: 14px; counter-reset: none; }
.steps li { display: flex; gap: 12px; font-size: 0.86rem; color: var(--ink-700); }
.steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; }
.steps--inline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.window-list { display: grid; gap: 10px; }
.window-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.window-list strong { font-size: 0.9rem; }
.window-list span { font-weight: 700; color: var(--brand-600); font-size: 0.85rem; }
.window-list small { grid-column: 1 / -1; color: var(--ink-400); font-size: 0.75rem; }
.side-card--contact .btn { margin-top: 8px; }

.confirm { max-width: 820px; margin: 0 auto; text-align: center; }
.confirm__icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--success-600); color: #fff; }
.confirm__icon svg { width: 34px; height: 34px; }
.confirm__lead { color: var(--ink-400); }
.confirm__protocol { display: inline-flex; flex-direction: column; gap: 2px; margin: 22px 0; padding: 18px 34px; border-radius: var(--radius-lg); background: var(--brand-700); color: #fff; }
.confirm__protocol span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fe6f4; }
.confirm__protocol strong { font-family: var(--font-mono); font-size: 1.4rem; }
.confirm__summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-align: left; margin: 24px 0; }
.confirm__summary div { background: var(--surface); padding: 14px 18px; }
.confirm__summary--full { grid-column: 1 / -1; }
.confirm__summary dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-400); }
.confirm__summary dd { margin: 2px 0 0; font-weight: 600; }
.confirm__next { margin: 30px 0; }
.confirm__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.notfound { text-align: center; max-width: 620px; }
.notfound__code { display: block; font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 850; line-height: 1; background: linear-gradient(135deg, var(--cyan-500), var(--brand-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ==========================================================================
   PAINEL ADMINISTRATIVO
   ========================================================================== */
.admin-page { background: var(--bg); }
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, var(--brand-950), var(--brand-900)); color: #c7dbe4; padding: 20px 16px; display: flex; flex-direction: column; gap: 22px; }
.app-sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; }
.app-sidebar__brand:hover { color: #fff; }
.app-sidebar__brand span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.app-sidebar__brand strong { font-size: 0.92rem; }
.app-sidebar__brand small { font-size: 0.68rem; color: #7fa1b0; }
.app-nav { display: grid; gap: 18px; }
.app-nav__label { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #6f95a5; padding: 0 10px; margin-bottom: 6px; }
.app-nav__item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: 0.87rem; font-weight: 550; color: #b6cfda; transition: all 0.14s ease; }
.app-nav__item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.app-nav__item.is-active { background: linear-gradient(135deg, var(--cyan-600), var(--brand-600)); color: #fff; box-shadow: 0 10px 20px -12px rgba(0, 184, 212, 0.9); }
.app-nav__icon { display: inline-flex; color: currentColor; opacity: 0.92; }
.app-nav__item--site { border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; padding-top: 14px; margin-top: 4px; }
.app-sidebar__foot { margin-top: auto; display: grid; gap: 12px; }
.app-backdrop { position: fixed; inset: 0; background: rgba(4, 34, 47, 0.5); z-index: 80; }

.app-body { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(244, 248, 251, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-topbar__toggle { display: none; }
.app-topbar__title { flex: 1; min-width: 0; }
.app-topbar__title h1 { font-size: 1.35rem; margin: 0; }
.app-topbar__title p { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-400); }
.app-topbar__actions { display: flex; align-items: center; gap: 14px; }
.env-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-600); background: var(--cyan-050); border: 1px solid var(--cyan-400); border-radius: 999px; padding: 5px 12px; }
.env-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.2); }
.app-user { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); }
.app-user__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--cyan-600), var(--brand-700)); }
.app-user__name { font-size: 0.84rem; font-weight: 600; }
.app-main { padding: 26px 28px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }

.app-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.app-filters__period { margin-left: auto; font-size: 0.78rem; color: var(--ink-400); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi-grid--5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi-card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-xs); overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 4px; border-radius: 0 0 4px 0; background: linear-gradient(90deg, var(--cyan-500), var(--brand-600)); }
.kpi-card__title { display: block; font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); }
.kpi-card__value { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 8px; color: var(--ink-900); }
.kpi-card--sm .kpi-card__value { font-size: 1.5rem; }
.kpi-card__delta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.76rem; font-weight: 650; }
.kpi-card__delta small { flex-basis: 100%; }
.kpi-card__delta small { color: var(--ink-300); font-weight: 500; }
.kpi-card__delta.is-up { color: var(--success-600); }
.kpi-card__delta.is-down { color: var(--danger-600); }
.kpi-card__delta.is-up svg { transform: rotate(-45deg); }
.kpi-card__delta.is-down svg { transform: rotate(45deg); }

.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel-grid--4 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.chart-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); min-width: 0; }
.chart-card--wide { grid-column: span 2; }
.chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-card__head h2 { font-size: 1rem; margin: 0; }
.chart-card__head p { margin: 2px 0 0; font-size: 0.78rem; color: var(--ink-400); }
.chart-card__tag { flex: none; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-600); background: var(--cyan-050); border-radius: 999px; padding: 4px 10px; }
.chart { width: 100%; min-height: 180px; }
.chart canvas { display: block; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.detail-grid--2 { grid-template-columns: 1.5fr 1fr; }
.side-stack { display: grid; gap: 18px; }
.table-card--wide { min-width: 0; }
.content-health { display: grid; gap: 10px; }
.content-health li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.content-health li span { font-size: 0.85rem; font-weight: 600; }
.content-health li strong { font-size: 1.2rem; color: var(--brand-700); }
.content-health li small { color: var(--ink-400); font-size: 0.75rem; }
.content-health li a { justify-self: end; grid-row: 1 / 3; font-size: 0.78rem; font-weight: 650; }
.checklist { display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--ink-500); }
.checklist li svg { color: var(--line-strong); }
.checklist li.is-ok { color: var(--ink-900); }
.checklist li.is-ok svg { color: var(--success-600); }

.two-col { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 20px; align-items: start; }
.text-sections { display: grid; gap: 18px; }
.sticky-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 18px; padding: 14px 18px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-drawer { margin-top: 4px; }
.empty-hint { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: 0.82rem; color: var(--ink-400); background: var(--surface-2); border-top: 1px dashed var(--line); }
.empty-hint svg { color: var(--cyan-500); }
.entity-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--cyan-050); color: var(--brand-600); }

.cards--admin { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards--admin-contents { display: contents; }
.entity-card { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs); }
.entity-card__head { display: flex; justify-content: space-between; gap: 12px; }
.entity-card__head h3 { margin: 0; }
.entity-card__head p { font-size: 0.83rem; color: var(--ink-400); margin: 2px 0 0; }
.entity-card__list { display: grid; gap: 8px; margin: 16px 0; }
.entity-card__list li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.entity-card__list svg { color: var(--success-600); flex: none; }
.entity-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.entity-card__who { display: flex; align-items: center; gap: 12px; }
.entity-card__who > div { display: flex; flex-direction: column; gap: 2px; }
.entity-card__who h3 { margin: 0; }
.entity-card__quote { margin: 16px 0; font-size: 0.9rem; color: var(--ink-500); flex: 1; }
.entity-card__quote::before { content: "“"; color: var(--cyan-500); font-size: 1.6rem; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.entity-card--new { align-items: center; justify-content: center; gap: 6px; border-style: dashed; background: var(--surface-2); color: var(--ink-500); cursor: pointer; text-align: center; min-height: 180px; }
.entity-card--new span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cyan-050); color: var(--brand-600); margin-bottom: 6px; }
.entity-card--new small { color: var(--ink-400); }

.brand-preview { display: grid; gap: 12px; }
.brand-preview__top { display: flex; align-items: center; gap: 11px; }
.brand-preview__top div { display: flex; flex-direction: column; }
.brand-preview__top small { color: var(--ink-400); }
.brand-preview p { font-size: 0.86rem; color: var(--ink-500); margin: 0; }
.brand-preview__swatches { display: flex; gap: 8px; }
.brand-preview__swatches span { width: 42px; height: 42px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.brand-preview__swatches .is-light { box-shadow: inset 0 0 0 1px var(--line-strong); }

.hours-editor { display: grid; gap: 10px; margin: 4px 0 18px; }
.hours-editor li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.hours-editor__day { width: 84px; font-weight: 650; font-size: 0.86rem; }
.hours-editor__sep { color: var(--ink-400); font-size: 0.82rem; }
.hours-editor input[type="time"], .window-editor input {
  font: inherit; font-size: 0.85rem; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--surface);
}
.window-editor { display: grid; gap: 10px; margin: 4px 0 18px; }
.window-editor li { display: grid; grid-template-columns: auto 1fr auto auto 74px auto; gap: 8px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.window-editor input[type="text"] { min-width: 0; }
.window-editor input[type="number"] { width: 100%; }

.social-editor { display: grid; gap: 12px; margin-bottom: 18px; }
.social-editor li { display: grid; grid-template-columns: auto auto 1fr 1.3fr auto; gap: 8px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.social-editor__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cyan-050); color: var(--brand-600); }
.social-editor__platform { font-size: 0.84rem; font-weight: 650; }
.social-editor input { font: inherit; font-size: 0.84rem; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--surface); min-width: 0; }

.upload-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 18px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-500); cursor: pointer; text-align: center; transition: all 0.15s ease; }
.dropzone:hover { border-color: var(--cyan-500); background: var(--cyan-050); color: var(--brand-700); }
.dropzone svg { color: var(--cyan-600); width: 26px; height: 26px; }
.dropzone small { color: var(--ink-400); }
.upload-fields { display: grid; gap: 12px; align-content: start; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-item { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.gallery-item__pair { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-item__side { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gallery-item__side svg { width: 100%; height: 100%; display: block; }
.gallery-item__side span { position: absolute; bottom: 8px; left: 8px; font-size: 0.66rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(255, 255, 255, 0.88); color: var(--ink-500); padding: 3px 8px; border-radius: 999px; }
.gallery-item__body { padding: 14px; display: grid; gap: 8px; }
.gallery-item__body input { font: inherit; font-size: 0.85rem; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--surface); }

/* Detalhe / timeline */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-head__id { display: flex; align-items: center; gap: 12px; }
.detail-head__id .mono { font-size: 1rem; font-weight: 700; color: var(--ink-900); }
.data-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-list > div { background: var(--surface); padding: 13px 16px; }
.data-list__full { grid-column: 1 / -1; }
.data-list--single { grid-template-columns: 1fr; }
.data-list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-400); }
.data-list dd { margin: 2px 0 0; font-weight: 600; }
.status-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 14px; }
.status-option { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 9px; cursor: pointer; transition: all 0.15s ease; }
.status-option:hover { border-color: var(--cyan-400); }
.status-option.is-active { border-color: var(--cyan-500); box-shadow: var(--ring); }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 6px; }
.timeline li { display: flex; gap: 12px; }
.timeline__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-500); margin-top: 5px; box-shadow: 0 0 0 4px var(--cyan-050); position: relative; }
.timeline li:not(:last-child) .timeline__dot::after { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 2px; height: 26px; background: var(--line-strong); }
.timeline strong { display: block; font-size: 0.9rem; }
.timeline small { color: var(--ink-400); font-size: 0.76rem; }

/* Solicitações / tabelas */
.table-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 0 22px 16px; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 22px; background: var(--cyan-050); border-top: 1px solid var(--cyan-400); border-bottom: 1px solid var(--cyan-400); font-size: 0.84rem; }
.bulk-bar > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 22px; font-size: 0.82rem; color: var(--ink-400); }
.pagination nav { display: flex; gap: 6px; }

/* Relatórios */
.report-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "meta meta"; align-items: center; gap: 12px 20px; }
.report-head__brand { grid-area: brand; display: flex; align-items: center; gap: 12px; }
.report-head__brand div { display: flex; flex-direction: column; }
.report-head__brand small { color: var(--ink-400); }
.report-head__meta { grid-area: meta; display: flex; flex-direction: column; text-align: left; min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.report-head__meta span { font-size: 0.82rem; font-weight: 650; }
.report-head__meta strong { font-size: 0.9rem; color: var(--brand-700); }
.report-head__meta small { color: var(--ink-400); }
.report-head__actions { grid-area: actions; display: flex; gap: 10px; }
.report-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.total-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); }
.total-card span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); font-weight: 650; }
.total-card strong { font-size: 1.7rem; font-weight: 800; color: var(--ink-900); }
.total-card--primary { background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); border-color: transparent; }
.total-card--primary span { color: #9fe6f4; }
.total-card--primary strong { color: #fff; }
.report-block__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.report-block .table-scroll + .table-scroll { margin-top: 16px; }

/* Autenticação */
.admin-auth { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(80% 60% at 50% 0%, var(--brand-800), var(--brand-950)); padding: 30px 18px; }
.auth { width: 100%; max-width: 440px; }
.auth__panel { display: grid; gap: 18px; }
.auth__brand { display: flex; align-items: center; gap: 12px; color: #fff; justify-content: center; }
.auth__brand div { display: flex; flex-direction: column; }
.auth__brand small { color: #9fc3d2; }
.auth__card { background: var(--surface); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); }
.auth__card header { margin-bottom: 20px; }
.auth__card h1 { font-size: 1.5rem; }
.auth__card header p { color: var(--ink-400); font-size: 0.88rem; margin: 0; }
.auth__card .field + .field { margin-top: 14px; }
.auth__card .btn { margin-top: 20px; }
.auth__hint { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cyan-050); font-size: 0.78rem; color: var(--brand-700); }
.auth__hint svg { flex: none; color: var(--brand-600); }
.auth__enter { margin-top: 12px; }
.auth__back { text-align: center; font-size: 0.82rem; color: #9fc3d2; }
.auth__back a { color: #9fe6f4; }

/* Toast */
.pv-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 200; background: var(--brand-900); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all 0.24s ease; }
.pv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pv-toast::before { content: "✓"; margin-right: 8px; color: var(--cyan-400); }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .panel-grid, .detail-grid, .detail-grid--2, .two-col { grid-template-columns: minmax(0, 1fr); }
  .report-block__grid { grid-template-columns: minmax(0, 1fr); }
  .report-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "actions" "meta"; text-align: left; }
  .chart-card--wide { grid-column: span 1; }
  .unidade__grid, .page__grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform 0.24s ease; }
  .app-shell.is-open .app-sidebar { transform: translateX(0); }
  .app-topbar__toggle { display: inline-flex; }
  .app-backdrop { display: none; }
  .app-shell.is-open .app-backdrop { display: block; }
  .upload-row { grid-template-columns: 1fr; }
  .window-editor li, .social-editor li { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1440px) {
  .site-header__actions .only-desktop span[data-cfg-text] { display: none; }
}

@media (max-width: 1240px) {
  .only-desktop { display: none; }
  .brand__text small { display: none; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform 0.26s ease; z-index: 55; }
  .site-header.is-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .site-header__actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 1000px) {
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform 0.26s ease; z-index: 55; }
  .site-header.is-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
  .site-header__actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; padding: 52px 0 74px; }
  .hero__art { order: -1; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .section { padding: 56px 0; }
  .form__grid { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr; }
  .confirm__summary, .data-list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .app-main { padding: 20px 16px 50px; }
  .app-topbar { padding: 14px 16px; }
  .app-user__name { display: none; }
  .app-filters__period { margin-left: 0; width: 100%; }
}

@media (max-width: 680px) {
  .panel-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .brand__text { display: none; }
  .hero__badge { display: none; }
  .hero__art { margin-top: 4px; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 1.75rem, 100%); }
  .hero__cta .btn, .cta-final__actions .btn { flex: 1 1 auto; }
  .form-panel, .auth__card { padding: 22px; }
  .kpi-card__value { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Sprint 9 — Operação de solicitações (lista e detalhe)
   -------------------------------------------------------------------------- */
.kpi-card--drill {
  font: inherit; width: 100%; text-align: left; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card--drill:hover { border-color: var(--cyan-400); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.table .sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.table .sortable:hover { color: var(--brand-700); }
.table .sortable::after { content: "\2195"; margin-left: 6px; font-size: 0.72em; opacity: 0.45; }
.table .sortable.is-sorted-asc::after { content: "\2191"; opacity: 1; color: var(--brand-600); }
.table .sortable.is-sorted-desc::after { content: "\2193"; opacity: 1; color: var(--brand-600); }

.pagination__pages { display: inline-flex; gap: 4px; }

.status-select {
  font: inherit; font-size: 0.78rem; font-weight: 600;
  padding: 5px 9px; max-width: 150px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-700); cursor: pointer;
}
.status-select:hover { border-color: var(--cyan-400); }
.status-select:disabled { opacity: 0.6; cursor: wait; }

.table-card > .section-state { margin: 0 22px 22px; }
.table-card > .alert { margin: 0 22px 16px; }
.card > .alert { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Sprint 10 — Analytics (dashboard e relatórios)
   -------------------------------------------------------------------------- */
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; width: fit-content; }
.view-tab { font: inherit; font-size: 0.82rem; font-weight: 650; color: var(--ink-500); background: transparent; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.view-tab:hover { color: var(--brand-700); }
.view-tab.is-active, .view-tab[aria-selected="true"] { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-xs); }

.kpi-card--drill.is-active { border-color: var(--cyan-400); box-shadow: 0 0 0 2px var(--cyan-050); }

.report-block__head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-head__actions { flex-wrap: wrap; }
.analytics-empty-inline { padding: 22px; text-align: center; color: var(--ink-400); font-size: 0.85rem; }

.mini-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--ink-600); align-self: center; cursor: pointer; }
.mini-toggle input { width: 16px; height: 16px; accent-color: var(--brand-600); }

[data-rel-conteudo], [data-dash-panel] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

/* --------------------------------------------------------------------------
   Impressão (relatórios)
   -------------------------------------------------------------------------- */
@media print {
  .app-sidebar, .app-topbar, .app-filters, .report-head__actions, .whatsapp-float, .site-header, .site-footer, .skip-link, .gallery-modal, .compare__expand, .view-tabs, .report-block__head-actions { display: none !important; }
  .app-shell { grid-template-columns: 1fr; }
  .app-main { padding: 0; }
  body, .admin-page { background: #fff; }
  .card, .chart-card, .total-card, .table-card { border-color: #ccc; box-shadow: none; page-break-inside: avoid; }
  .chart { display: none; }
  .report-head { display: block; border-bottom: 2px solid #000; padding-bottom: 12px; }
  .report-head__meta { border-top: 0; padding-top: 6px; }
  .report-block { page-break-inside: avoid; }
  .report-totals { margin: 12px 0; }
}
