/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  FOUP 2026 · Painel de Gestão — identidade da marca                   ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
:root {
  /* ─── FOUP · Brand oficial (extraído dos SVGs do manual) ───
     Orange  #FF8600 · Yellow #FFBD00 · Blue 1 #22B3D7
     Blue 2  #009FBF · Blue 3 #002C46 (navy) · Black #000000 */
  --orange: #FF8600;
  --orange-2: #E07700;
  --orange-3: #B85F00;
  --orange-soft: rgba(255, 134, 0, .14);
  --yellow: #FFBD00;
  --yellow-soft: rgba(255, 189, 0, .16);
  --cyan: #22B3D7;
  --cyan-soft: rgba(34, 179, 215, .12);
  --teal: #009FBF;
  --teal-2: #007A93;
  --teal-soft: rgba(0, 159, 191, .12);
  /* "Blue" mantido como alias do teal p/ não quebrar classes legadas */
  --blue: #009FBF;
  --blue-2: #007A93;
  --blue-soft: rgba(0, 159, 191, .10);
  --navy: #002C46;
  --navy-2: #001B2C;
  --navy-3: #0A4A6D;

  /* Neutros / superfícies */
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --surface-2: #F7FAFC;
  --line: #E2E8EF;
  --line-strong: #CAD3DE;
  --ink: #1F2A36;
  --ink-soft: #5C6877;
  --ink-mute: #98A2B0;

  /* Semânticos */
  --ok: #1F8A4D;
  --ok-soft: rgba(31, 138, 77, .12);
  --warn: #B86A00;
  --warn-soft: rgba(255, 134, 0, .16);
  --danger: #C0392B;
  --danger-soft: rgba(192, 57, 43, .10);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(20, 30, 50, .05), 0 4px 14px rgba(20, 30, 50, .06);
  --sh-2: 0 4px 12px rgba(20, 30, 50, .08), 0 18px 44px rgba(20, 30, 50, .10);
  --sh-3: 0 10px 28px rgba(20, 30, 50, .14), 0 30px 70px rgba(20, 30, 50, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --side-w: 248px;
  --ff: 'Poppins', 'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  outline: none;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3.5px var(--orange-soft); }
input[type="checkbox"] { width: auto; accent-color: var(--orange); }
::selection { background: var(--orange); color: #fff; }
::placeholder { color: var(--ink-mute); }

/* ── Logo / Brand marks ───────────────────────────────────────────────── */
/* Mantemos a tipografia "FOUP." como fallback textual em contextos onde o
   SVG não puder carregar, mas a marca principal é sempre o logo oficial. */
.logo-word { font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; display: block; }
.logo-word .dot { color: var(--orange); }
.logo-sub { display: block; font-weight: 500; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .62; margin-top: 4px; }
.brand-row { display: flex; align-items: center; gap: 11px; }
.brand-text { display: block; min-width: 0; }
.brand-mark { display: block; flex: 0 0 auto; width: 40px; height: 40px; }

/* Login: wordmark FOUP centralizado, ampliado p/ ler bem */
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 4px; }
.login-logo { display: block; height: 44px; width: auto; }
.login-tag {
  display: inline-block; font-weight: 600; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-pill);
}

/* Sidebar: wordmark branco horizontal */
.side-brand {
  background: none; border: none; text-align: left; width: 100%; cursor: pointer;
  padding: 4px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; gap: 6px;
}
.side-logo { display: block; height: 22px; width: auto; max-width: 90%; }
.side-sub {
  display: block; font-weight: 500; font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-left: 1px;
}

/* ── Botões ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 13.5px;
  letter-spacing: .01em; transition: all .2s var(--ease); white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.loading { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-xs { padding: 5px 11px; font-size: 11.5px; border-radius: var(--r-pill); font-weight: 700; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 4px 14px rgba(255, 134, 0, .32); }
.btn-accent:hover { background: var(--orange-2); border-color: var(--orange-2); box-shadow: 0 8px 22px rgba(255, 134, 0, .42); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-2); }
.btn-ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-ok:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink-mute); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
  font-size: 17px; color: inherit; transition: background .2s var(--ease);
}
.btn-icon:hover { background: rgba(255, 255, 255, .14); }

/* ── Login ────────────────────────────────────────────────────────────── */
/* Fundo oficial FOUP: navy profundo com auréolas teal/orange (paleta da marca). */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background-color: var(--navy-2); }
.login-bg {
  position: absolute; inset: 0;
  background-color: #001520;
  background-image:
    radial-gradient(1100px 720px at 86% 28%, rgba(255, 134, 0, .42), transparent 62%),
    radial-gradient(900px 620px at 8% 84%, rgba(0, 159, 191, .42), transparent 60%),
    radial-gradient(720px 540px at 70% 78%, rgba(34, 179, 215, .22), transparent 58%),
    repeating-linear-gradient(135deg, transparent 0 88px, rgba(255, 189, 0, .035) 88px 94px, transparent 94px 176px),
    linear-gradient(132deg, #001520 0%, #002C46 48%, #0A4A6D 100%);
}
.login-bg::after {
  content: ''; position: absolute; inset: -22% -12%; pointer-events: none;
  background: linear-gradient(118deg,
    transparent 42%,
    rgba(255, 134, 0, .35) 51%,
    rgba(255, 189, 0, .55) 57%,
    rgba(255, 134, 0, .35) 63%,
    transparent 73%);
  filter: blur(34px); transform: rotate(-2deg); mix-blend-mode: screen;
}
.login-bg::before {
  content: ''; position: absolute; inset: -22% -12%; pointer-events: none;
  background: linear-gradient(118deg,
    transparent 54%,
    rgba(0, 159, 191, .32) 61%,
    rgba(34, 179, 215, .48) 65%,
    transparent 75%);
  filter: blur(48px); mix-blend-mode: screen;
}
.login-mark-bg {
  position: absolute; right: -8%; bottom: -12%; width: 65vmin; height: 65vmin;
  opacity: .08; pointer-events: none; user-select: none;
  background: url('./assets/img/brand/foup-symbol-white.svg') center/contain no-repeat;
}
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 40px 36px 30px; display: grid; gap: 16px;
  box-shadow: 0 30px 80px rgba(0, 14, 24, .55), 0 8px 24px rgba(0, 14, 24, .35);
  border-top: 4px solid var(--orange);
  animation: card-rise .5s var(--ease) both;
}
@keyframes card-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.login-card .fld > span { color: var(--ink); font-weight: 700; }
.login-card .input,
.login-card input { min-height: 44px; padding: 12px 14px; font-size: 14px; }
.login-card .btn-primary { min-height: 46px; font-size: 14px; margin-top: 4px; }
.login-brand { color: var(--navy); margin-bottom: 6px; }
.login-brand .brand-mark { width: 44px; height: 44px; }
.login-lead { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; }
.login-card .btn-primary { background: var(--navy); border-color: var(--navy); }
.login-card .btn-primary:hover { background: var(--navy-3); border-color: var(--navy-3); }
.login-foot {
  margin: 6px 0 0; text-align: center; font-size: 11px;
  color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.fld .req { color: var(--orange); }
.form-error {
  margin: 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 600;
}

/* ── Shell ────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { padding: 4px 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 16px; }
.side-nav { display: grid; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 10px 12px; border-radius: var(--r-sm); color: rgba(255, 255, 255, .74);
  font-weight: 600; font-size: 13.5px; transition: all .18s var(--ease); position: relative;
}
.nav-item .nav-ico { width: 18px; text-align: center; opacity: .85; font-size: 13px; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.active { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(255, 134, 0, .38); }
.nav-item.active .nav-ico { opacity: 1; }
.nav-badge {
  margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: var(--r-pill); display: grid; place-items: center; padding: 0 5px;
}
.nav-item.active .nav-badge { background: rgba(255, 255, 255, .25); }
.side-cta { margin-top: 4px; }
.side-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px; background: rgba(255, 255, 255, .07); border-radius: var(--r-md);
}
.side-user-info { display: grid; min-width: 0; }
.side-user-name { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-role { font-size: 10.5px; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .08em; }
.side-user .btn-icon { margin-left: auto; flex: 0 0 auto; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.topbar-title::before {
  content: ""; display: inline-block; width: 3px; height: 18px;
  background: var(--orange); border-radius: var(--r-pill); margin-right: 12px; vertical-align: -3px;
}
.topbar .only-mobile { display: none; }
.only-mobile { display: none; }
.content { padding: 30px 32px 56px; max-width: 1380px; width: 100%; flex: 1; animation: route-in .35s var(--ease) both; }
@keyframes route-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Modo "hub": antes do admin escolher um fluxo, esconde a barra lateral, o topo e o rodapé. */
.shell--hub { grid-template-columns: 1fr; }
.shell--hub .side,
.shell--hub .topbar,
.shell--hub .dev-foot { display: none; }
.shell--hub .content { position: relative; max-width: 1100px; margin: 0 auto; padding: 64px 28px 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .shell--hub .content { padding: 28px 18px; } }

/* Sinalizadores ao lado do nome: * vermelho = restrição alimentar; * azul = intérprete */
.flag-mark { font-weight: 900; cursor: help; line-height: 1; user-select: none; }
.flag-food { color: #DC2626; margin-left: 3px; }
.flag-lang { color: #2563EB; margin-left: 2px; }

/* ── Hub (2 cartões na entrada) ─────────────────────────────────────────── */
.hub-topbar { position: absolute; top: 18px; right: 24px; display: flex; align-items: center; gap: 12px; }
.hub-topbar-user { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 760px) { .hub-topbar { position: static; justify-content: flex-end; margin-bottom: 8px; } }
.hub-head { margin-bottom: 22px; }
.hub-brand { display: flex; gap: 16px; align-items: center; }
.hub-mark { flex: 0 0 auto; height: 56px; width: auto; }
.hub-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.hub-title { margin: 2px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.hub-sub { margin: 0; color: var(--ink-soft); font-size: 14px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hub-card {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--r-lg); padding: 26px 26px 22px; color: #fff;
  box-shadow: var(--sh-2); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  display: flex; flex-direction: column; gap: 8px; min-height: 230px;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.hub-card--evt { background: linear-gradient(135deg, #001B2C 0%, #002C46 45%, #0A4A6D 100%); }
.hub-card--evt::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,159,191,.35), transparent 70%);
  pointer-events: none;
}
.hub-card--prj { background: linear-gradient(135deg, #2A1500 0%, #5C2F00 50%, #B85F00 110%); }
.hub-card--prj::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,189,0,.32), transparent 70%);
  pointer-events: none;
}
.hub-card-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hub-card-ico { position: absolute; right: 14px; top: 6px; font-size: 120px; line-height: 1; opacity: .1; pointer-events: none; }
.hub-card h2 { margin: 4px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.hub-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 42ch; }
.hub-card-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: auto; padding-top: 12px; }
.hub-card-stats b { color: #fff; font-weight: 800; font-size: 14px; }
.hub-card-stats .muted { color: rgba(255,255,255,.5); }
.hub-card-go { font-size: 13px; font-weight: 700; color: #fff; opacity: .9; }

/* Seção dentro do menu lateral */
.nav-section { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 12px 8px 4px; }

/* Eixos temáticos */
.eixo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.eixo-card { border: 1px solid var(--line); border-left: 4px solid #888; border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-2); cursor: default; transition: background .15s var(--ease); }
.eixo-card-top { display: flex; align-items: center; justify-content: space-between; }
.eixo-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.eixo-n { font-size: 20px; font-weight: 800; color: var(--navy); }
.eixo-name { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }

/* Abas do painel do projeto */
.proj-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1.5px solid var(--line); margin-bottom: 14px; }
.proj-tab { padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--ink-soft); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all .15s var(--ease); }
.proj-tab:hover { color: var(--ink); }
.proj-tab.active { color: var(--navy); border-bottom-color: var(--orange); }

@media (max-width: 880px) { .hub-grid { grid-template-columns: 1fr; } }

/* Acesso Desenvolvedor — área discreta no rodapé */
.dev-foot {
  margin-top: auto;
  padding: 14px 28px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.dev-foot-box { font-size: 11.5px; }
.dev-foot-box > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-mute); font-weight: 600; letter-spacing: .04em;
  padding: 4px 2px; user-select: none; transition: color .18s var(--ease);
}
.dev-foot-box > summary::-webkit-details-marker { display: none; }
.dev-foot-box > summary::before {
  content: '▸'; font-size: 9px; transition: transform .18s var(--ease); color: var(--ink-mute);
}
.dev-foot-box[open] > summary::before { transform: rotate(90deg); }
.dev-foot-box > summary:hover { color: var(--ink-soft); }
.dev-foot-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dev-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface-2); transition: all .18s var(--ease);
}
.dev-link:hover { color: var(--navy); border-color: var(--ink-mute); }
.dev-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.dev-link span { font-size: 11px; opacity: .8; }
@media (max-width: 760px) { .dev-foot { padding: 12px 16px 16px; } }

/* ── Cabeçalho de página ──────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.page-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head { margin: 30px 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

/* ── KPIs ─────────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-strong); }
.kpi.c-orange::before { background: var(--orange); }
.kpi.c-blue::before { background: var(--blue); }
.kpi.c-navy::before { background: var(--navy); }
.kpi.c-ok::before { background: var(--ok); }
.kpi.c-danger::before { background: var(--danger); }
.kpi.c-yellow::before { background: var(--yellow); }
.kpi.c-muted::before { background: var(--ink-soft); }
.kpi .v { font-size: 27px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); line-height: 1.1; }
.kpi .l { color: var(--ink-soft); font-size: 12px; margin-top: 4px; font-weight: 600; }
.kpi .x { color: var(--ink-mute); font-size: 11px; margin-top: 2px; }
.kpi.clickable { cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

/* Banner do evento */
.event-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: 22px; align-items: center;
  background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff;
  border-radius: var(--r-lg); padding: 18px 22px; box-shadow: var(--sh-2); margin-bottom: 18px;
}
.event-mark {
  position: absolute; right: -22px; bottom: -34px; width: 180px; height: 180px;
  opacity: .08; pointer-events: none; user-select: none;
}
.event-meta { position: relative; z-index: 1; }
.event-cap { position: relative; z-index: 1; }
.event-title-row { display: flex; align-items: center; gap: 12px; }
.event-mark-inline { flex: 0 0 auto; height: 36px; width: auto; }
.event-kicker {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin-bottom: 2px;
}
.event-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.event-sub { margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .78); align-items: center; }
.event-sub .tag { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.event-sub .tag.blue { background: var(--orange); border-color: transparent; }
.event-cap { background: rgba(255, 255, 255, .08); border-radius: var(--r-md); padding: 12px 14px; }
.cap-line { font-size: 12.5px; }
.cap-line b { font-size: 15px; font-weight: 800; color: var(--yellow); }
.cap-line .muted { color: rgba(255, 255, 255, .55); font-size: 11.5px; }
.cap-track { background: rgba(255, 255, 255, .14); border-radius: var(--r-pill); height: 12px; overflow: hidden; margin-top: 8px; }
.cap-fill { height: 100%; background: linear-gradient(90deg, var(--ok), #5fd99a); border-radius: var(--r-pill); transition: width .4s var(--ease); }
.cap-fill.warn { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.cap-fill.full { background: linear-gradient(90deg, var(--danger), #e57368); }
@media (max-width: 760px) { .event-banner { grid-template-columns: 1fr; } }

/* Atividade recente */
.recent-list { display: grid; gap: 2px; }
.recent-row {
  display: grid; grid-template-columns: 1.4fr 1fr auto auto auto; gap: 12px; align-items: center;
  padding: 9px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px;
}
.recent-row:hover { background: var(--surface-2); }
.recent-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-when { font-size: 11.5px; white-space: nowrap; text-align: right; }
@media (max-width: 760px) { .recent-row { grid-template-columns: 1fr auto; } .recent-row .recent-meta, .recent-row .recent-when { display: none; } }

/* Card de destaque (pendentes) */
.spotlight {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.spotlight .big { font-size: 40px; font-weight: 800; line-height: 1; color: var(--yellow); }
.spotlight .txt { flex: 1; min-width: 200px; }
.spotlight .txt b { font-size: 16px; }
.spotlight .txt p { margin: 4px 0 0; color: rgba(255, 255, 255, .7); font-size: 13px; }

/* ── Painéis / gráficos ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-1); }
.panel h3 { margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 52px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .lbl { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bar-track { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); height: 16px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: var(--r-pill); min-width: 3px; }
.bar-row .val { text-align: right; font-weight: 700; color: var(--navy); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 100px; }
.spark > div { flex: 1; background: linear-gradient(180deg, var(--blue), var(--navy)); border-radius: 3px 3px 0 0; min-height: 3px; transition: opacity .15s; }
.spark > div:hover { opacity: .75; }
.spark-x { display: flex; justify-content: space-between; color: var(--ink-mute); font-size: 11px; margin-top: 7px; font-weight: 600; }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 9px 16px; border-radius: var(--r-sm) var(--r-sm) 0 0; font-weight: 700; font-size: 13px;
  color: var(--ink-soft); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all .18s var(--ease);
}
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.tab .count { display: inline-block; margin-left: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); border-radius: var(--r-pill); padding: 0 7px; font-size: 11px; font-weight: 700; }
.tab.active .count { background: var(--orange-soft); border-color: transparent; color: var(--warn); }

/* ── Toolbar ──────────────────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 16px; }
.toolbar input[type="search"], .toolbar input[type="text"] { min-width: 230px; flex: 1; max-width: 360px; }
.toolbar select { min-width: 140px; max-width: 200px; }
.spacer { flex: 1; }

/* ── Tabela ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 12px 14px; background: var(--surface-2); color: var(--ink-soft);
  font-weight: 700; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  position: sticky; top: 0; border-bottom: 1px solid var(--line);
}
tbody td { padding: 11px 14px; border-top: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr.rowlink { cursor: pointer; }
tbody tr.rowlink:hover { background: var(--surface-2); }
tbody tr.dim td { color: var(--ink-mute); }
td.wrap, th.wrap { white-space: normal; }
td.actions, th.actions { white-space: nowrap; }
td.actions .btn-xs + .btn-xs { margin-left: 5px; }
.muted { color: var(--ink-mute); }
.strong { font-weight: 700; color: var(--navy); }
.cell-sub { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 1px; }

/* ── Pills de status ──────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.enviada { background: var(--warn-soft); color: var(--warn); }
.pill.confirmada { background: var(--ok-soft); color: var(--ok); }
.pill.cancelada { background: var(--danger-soft); color: var(--danger); }
.tag { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }
.tag.blue { background: var(--blue-soft); border-color: transparent; color: var(--blue-2); }

.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 14px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }

/* ── Tags de organização ──────────────────────────────────────────────────── */
.inline-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--orange-soft); border: 1px solid rgba(255, 134, 0, .32);
  color: var(--warn); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.tag-chip--rm { padding-right: 5px; }
.tag-chip-del {
  display: inline-grid; place-items: center; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(255, 134, 0, .22);
  color: var(--warn); font-size: 13px; font-weight: 800; line-height: 1;
  transition: background .15s;
}
.tag-chip-del:hover { background: var(--orange); color: #fff; }
.tag-chips-edit { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-top: 8px; }
.tag-input-row { display: flex; gap: 8px; align-items: center; }
.tag-input-row input { flex: 1; }

/* Tag cloud (rota Tags) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--line);
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
  transition: all .16s var(--ease);
}
.tag-cloud-item:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--warn); }
.tag-cloud-count {
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: var(--r-pill);
}

/* Admin notes text block */
.admin-notes-text {
  margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ── Credencial do participante ──────────────────────────────────────────── */
.cred-name-link {
  color: var(--blue); font-weight: 700; text-decoration: underline dotted;
  background: none; border: none; cursor: pointer; padding: 0; font: inherit;
  text-align: left;
}
.cred-name-link:hover { color: var(--blue-2); text-decoration: underline; }

.cred-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-2);
  margin: 16px 0;
}
.cred-card-header {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-3) 100%);
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cred-card-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(280px 200px at 90% 0%, rgba(255, 134, 0, .22), transparent 65%),
    radial-gradient(220px 160px at 0% 100%, rgba(0, 159, 191, .25), transparent 65%);
  pointer-events: none;
}
.cred-card-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--cyan), var(--teal));
}
.cred-card-header > * { position: relative; z-index: 1; }
.cred-logo { display: block; height: 26px; width: auto; }
.cred-card-evt  { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
.cred-card-body {
  background: var(--surface);
  padding: 20px 24px; display: flex; gap: 24px; align-items: flex-start;
}
.cred-card-info { flex: 1; min-width: 0; }
.cred-pill-ok {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ok-soft); color: var(--ok);
  border-radius: var(--r-pill); padding: 3px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.cred-card-name { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 2px; overflow-wrap: anywhere; }
.cred-card-fullname { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.cred-card-role { font-size: 14px; font-weight: 700; color: var(--orange-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.cred-card-cargo { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.cred-card-inst { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.cred-card-passport {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink-mute); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 5px 10px; display: inline-block; margin-top: 4px;
}
.cred-card-qr {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
}
.cred-card-qr canvas { display: block; }

/* ── Cards de aprovação ───────────────────────────────────────────────── */
.appr-list { display: grid; gap: 12px; }
.appr-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--sh-1);
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.appr-card .who b { font-size: 15px; color: var(--navy); }
.appr-card .who .meta { color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; display: flex; gap: 14px; flex-wrap: wrap; }
.appr-card .who .meta span::before { content: "•"; margin-right: 7px; color: var(--ink-mute); }
.appr-card .who .meta span:first-child::before { display: none; }
.appr-card .ops { display: flex; gap: 8px; align-items: center; }
.appr-card .lnk { font-size: 12px; font-weight: 700; color: var(--blue); cursor: pointer; }
.bulkbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: var(--r-md); margin-bottom: 14px; }
.bulkbar b { font-weight: 800; }
.bulkbar .spacer { flex: 1; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 60; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(15, 27, 51, .55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: 100%; max-width: 760px; max-height: 90vh; overflow: auto;
  background: var(--surface); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--sh-3);
}
.modal-card.wide { max-width: 880px; }
.modal-x { position: absolute; top: 12px; right: 16px; width: 32px; height: 32px; border-radius: var(--r-sm); font-size: 22px; color: var(--ink-mute); }
.modal-x:hover { background: var(--surface-2); color: var(--ink); }
.modal-title { margin: 0 0 2px; font-size: 19px; font-weight: 800; color: var(--navy); }
.modal-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; }

/* Detalhe */
.kv-section { margin-top: 20px; }
.kv-section > h4 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; }
.kv-grid .full { grid-column: 1 / -1; }
.kv { display: grid; gap: 1px; }
.kv .k { font-size: 11px; color: var(--ink-mute); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.kv .v2 { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.kv .v2.empty { color: var(--ink-mute); font-style: italic; }
.detail-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-bar .spacer { flex: 1; }

/* Formulário (cadastro manual) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .third { grid-column: span 1; }
.fg { display: grid; gap: 6px; }
.fg > label { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.fg .hint { font-size: 11.5px; color: var(--ink-mute); }
.fg.check { grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.fg.check > label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.form-sec-title { grid-column: 1 / -1; margin: 8px 0 -4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.phone-row { display: grid; grid-template-columns: 84px 1fr; gap: 6px; }

/* ── Toast / loadbar ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: var(--sh-3); z-index: 80; font-size: 13.5px; font-weight: 600; max-width: calc(100vw - 32px);
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.loadbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--orange), var(--yellow), transparent);
  background-size: 35% 100%; background-repeat: no-repeat; animation: lb 1s linear infinite;
}
@keyframes lb { 0% { background-position: -35% 0; } 100% { background-position: 135% 0; } }

.empty { text-align: center; color: var(--ink-mute); padding: 44px 16px; font-size: 13.5px; }
.empty.big { padding: 64px 16px; }
.empty b { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 4px; }
.loading { color: var(--ink-mute); padding: 28px 0; font-size: 13px; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kv-grid, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --side-w: 0px; }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 50;
    transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--sh-3);
  }
  .side.open { transform: translateX(0); }
  .topbar .only-mobile, .only-mobile { display: inline-flex; }
  .topbar { padding: 0 16px; justify-content: space-between; }
  .topbar-title { flex: 1; }
  .content { padding: 18px 16px 56px; }
  .appr-card { grid-template-columns: 1fr; }
  .appr-card .ops { justify-content: flex-start; }
}
/* ── Hospedagem ──────────────────────────────────────────────────────────── */
.hosp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
  margin-top: 6px;
}
.hosp-quartos { min-width: 0; }
.hosp-empty   { margin-top: 24px; }

/* Room grid */
.hosp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* Room card */
.hosp-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
  transition: box-shadow .2s var(--ease);
}
.hosp-card:hover { box-shadow: var(--sh-2); }
.hosp-card--full { border-color: var(--ok); background: var(--ok-soft); }
.hosp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.hosp-card-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
  min-width: 40px;
}
.hosp-card-meta {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.hosp-card-badges { display: flex; gap: 4px; }
.hosp-card-acts {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.hosp-card:hover .hosp-card-acts { opacity: 1; }
.hosp-card-obs {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}

/* Capacity bar */
.hosp-cap { margin-bottom: 12px; }
.hosp-cap-bar {
  height: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 4px;
}
.hosp-cap-fill {
  height: 100%;
  background: var(--ok);
  border-radius: var(--r-pill);
  transition: width .3s var(--ease);
  min-width: 3px;
}
.hosp-cap-fill.warn { background: var(--warn); }
.hosp-cap-fill.full { background: var(--ok); }
.hosp-cap-txt { font-size: 11px; font-weight: 600; color: var(--ink-soft); }

/* Occupants inside card */
.hosp-occupants {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hosp-occupant {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 8px;
  font-size: 12.5px;
}
.hosp-chip-name { font-weight: 700; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hosp-chip-inst {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
  border: 1px solid;
  white-space: nowrap;
  letter-spacing: .04em;
}
.hosp-badge {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.hosp-rm {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.hosp-occupant:hover .hosp-rm { opacity: 1; }
.hosp-rm:hover { background: var(--danger); color: #fff; }

/* Empty slot */
.hosp-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  transition: all .15s var(--ease);
  cursor: pointer;
}
.hosp-slot:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* Side panel — unhoused */
.hosp-panel {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: var(--sh-1);
}
.hosp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hosp-panel-empty { font-size: 13px; color: var(--ok); font-weight: 600; padding: 8px 0; }
.hosp-panel-empty.muted { color: var(--ink-soft); font-weight: 500; }
.hosp-panel-list  { display: flex; flex-direction: column; gap: 6px; }
/* Busca + filtro do painel lateral de alocação */
.hosp-panel-search,
.hosp-panel-filter {
  width: 100%;
  font-size: 12.5px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.hosp-panel-search:focus,
.hosp-panel-filter:focus { outline: none; border-color: var(--blue); }
/* Linha empilhada: nome em destaque na 1ª linha (até 2 linhas, sem corte),
   instituição/selos + ações no rodapé — facilita ler quem está a alocar. */
.hosp-panel-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: background .15s var(--ease);
}
.hosp-panel-row:hover { background: var(--surface); border-color: var(--line-strong); }
.hosp-panel-row-info { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow: hidden; }
.hosp-panel-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hosp-panel-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.hosp-panel-row-meta { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }

/* Pick list modal */
.hosp-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; margin-top: 6px; }
.hosp-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.hosp-pick-row:hover { border-color: var(--blue); background: var(--blue-soft); }

@media (max-width: 1080px) {
  .hosp-layout { grid-template-columns: 1fr; }
  .hosp-panel  { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .hosp-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── Check-in ────────────────────────────────────────────────────────────── */
.ci-date-input {
  font: 500 13px var(--font);
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.ci-date-input:focus { outline: none; border-color: var(--blue); }

.ci-cam-section { margin-bottom: 24px; }
.ci-cam-btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.ci-overlay {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}
.ci-video  { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-scan-frame {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 3px solid rgba(255,255,255,.8);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
  pointer-events: none;
}
.ci-scan-frame::before,
.ci-scan-frame::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-color: #2563eb;
  border-style: solid;
}
.ci-scan-frame::before { top: -3px; left: -3px; border-width: 4px 0 0 4px; border-radius: 4px 0 0 0; }
.ci-scan-frame::after  { bottom: -3px; right: -3px; border-width: 0 4px 4px 0; border-radius: 0 0 4px 0; }

/* Check-in green full-screen overlay */
.ci-green {
  position: fixed;
  inset: 0;
  background: #16a34a;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: ci-fade-in .25s var(--ease);
  cursor: pointer;
}
@keyframes ci-fade-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.ci-green-icon {
  width: 96px; height: 96px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: #fff;
  margin-bottom: 8px;
}
.ci-green-name  { font-size: 28px; font-weight: 800; color: #fff; text-align: center; max-width: 560px; }
.ci-green-sub   { font-size: 14px; color: rgba(255,255,255,.75); text-align: center; max-width: 480px; }
.ci-green-code  { font-family: 'Courier New', monospace; font-size: 18px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .1em; }
.ci-green-msg   { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.7); margin-top: 8px; }
.ci-green .flag-mark { color: #fff !important; }
.ci-green-alert { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 4px; }
.ci-green-alert span {
  background: rgba(255,255,255,.18); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: #fff;
}
.ci-green-alert-food { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }

/* Check-in list */
.ci-list-section { margin-top: 8px; }
.ci-list-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ci-list-title { font-size: 15px; font-weight: 700; color: var(--ink); }

/* Entrada manual */
.ci-manual-results { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; margin-top: 6px; }
.ci-manual-row {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 8px 11px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--surface-2); transition: all .15s var(--ease);
}
.ci-manual-row:hover { border-color: var(--navy); background: var(--surface); }
.ci-manual-row-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ci-manual-row-meta { font-size: 11.5px; }

@media (max-width: 640px) {
  .ci-overlay { max-width: 100%; }
  .ci-green-name { font-size: 22px; }
}

/* ── Sidebar: variante Projeto FOUP (âmbar oficial) ──────────────────────── */
.side--prj { background: linear-gradient(180deg, #1A0F00, #2E1A00 40%, #4D2C00); }
.side--prj .nav-item.active { background: var(--orange); box-shadow: 0 4px 14px rgba(255,134,0,.42); }
.side--prj .nav-item:hover { background: rgba(255, 189, 0, .12); }
.side--prj .side-brand { border-bottom-color: rgba(255, 189, 0, .22); }
.side--prj .side-cta .btn-accent { background: var(--orange); box-shadow: 0 3px 10px rgba(255,134,0,.42); }
.side--prj .side-cta .btn-accent:hover { background: var(--orange-2); }

/* Faixa de marca no topo do shell — sinaliza identidade FOUP em todas as páginas */
.shell::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 25%, var(--cyan) 55%, var(--teal) 80%, var(--navy) 100%);
  pointer-events: none;
}
.shell--hub::before { display: block; }

/* ── Hub cards — polish extra ─────────────────────────────────────────────── */
.hub-card { transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease); }
.hub-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 24px 56px rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.18); filter: brightness(1.06); }
.hub-card-go::after { content: '→'; margin-left: 6px; display: inline-block; transition: transform .2s var(--ease); }
.hub-card:hover .hub-card-go::after { transform: translateX(5px); }

/* ── Project sub-routes ──────────────────────────────────────────────────── */
.proj-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.table-actions { display: flex; gap: 4px; white-space: nowrap; }
.btn.danger, .btn-ghost.danger { color: var(--danger); }
.btn-ghost.danger:hover { background: var(--danger-soft); color: var(--danger); }
.eixo-cor-dot { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: middle; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════════
   POLISH PREMIUM — micro-interações, profundidade, ritmo visual
   ════════════════════════════════════════════════════════════════════════ */

/* Botões com brilho sutil ao hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .55s var(--ease); opacity: 0;
}
.btn-primary:hover::after, .btn-accent:hover::after, .btn-blue:hover::after, .btn-ok:hover::after { transform: translateX(120%); opacity: 1; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange-soft), 0 4px 14px rgba(255, 134, 0, .25); }
.btn-ghost:focus-visible { box-shadow: 0 0 0 3px rgba(0, 159, 191, .22); }
.btn-danger:focus-visible { box-shadow: 0 0 0 3px var(--danger-soft); }

/* Inputs com transição suave */
input, select, textarea {
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--line-strong); }

/* Tabelas — zebra stripe sutil + linha ao topo dos thead */
.table-wrap { transition: box-shadow .25s var(--ease); }
.table-wrap:hover { box-shadow: var(--sh-2); }
thead th { letter-spacing: .04em; }
tbody tr:nth-child(odd) td { background: rgba(247, 250, 252, .4); }
tbody tr:nth-child(odd):hover td { background: var(--surface-2); }
tbody tr.rowlink:hover { background: linear-gradient(90deg, var(--orange-soft), transparent 30%); }
tbody tr.rowlink:hover td:first-child { box-shadow: inset 3px 0 0 var(--orange); }

/* KPIs com hover de elevação + brilho na borda colorida */
.kpi { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kpi::before { transition: width .2s var(--ease); }
.kpi:hover::before { width: 5px; }

/* Pills mais elegantes */
.pill { transition: transform .15s var(--ease); letter-spacing: .04em; }
.pill:hover { transform: translateY(-1px); }
.tag { transition: all .15s var(--ease); }

/* Sidebar nav: indicador lateral animado ao ativo */
.nav-item { transition: background .2s var(--ease), color .2s var(--ease), padding-left .25s var(--ease); }
.nav-item:hover { padding-left: 14px; }
.nav-item.active { padding-left: 14px; }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; background: var(--yellow); border-radius: 0 var(--r-pill) var(--r-pill) 0;
}

/* Sidebar user com gradiente sutil */
.side-user { background: rgba(255, 255, 255, .07); transition: background .2s var(--ease); position: relative; }
.side-user::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255, 134, 0, .14), transparent 60%);
  opacity: 0; transition: opacity .2s var(--ease); pointer-events: none;
}
.side-user:hover::before { opacity: 1; }

/* Modal: animação de entrada + backdrop blur reforçado */
.modal { animation: modal-fade .2s var(--ease) both; }
.modal-back { background: rgba(0, 27, 44, .55); backdrop-filter: blur(6px) saturate(140%); -webkit-backdrop-filter: blur(6px) saturate(140%); }
.modal-card { animation: modal-rise .35s var(--ease) both; border: 1px solid var(--line); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Toast com slide-up */
.toast { animation: toast-rise .3s var(--ease) both; box-shadow: var(--sh-3); border: 1px solid rgba(255, 255, 255, .08); }
@keyframes toast-rise { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Loadbar mais elegante */
.loadbar { height: 2px; background: linear-gradient(90deg, transparent, var(--orange), var(--cyan), var(--yellow), transparent); }

/* Page-head com tag de seção */
.page-head { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.page-head h1 { font-size: 24px; letter-spacing: -.015em; }
.page-head p { font-size: 13.5px; }

/* Cabeçalho de seção com linha decorativa */
.section-head { position: relative; padding-left: 18px; }
.section-head::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft);
}

/* Hub cards: refinos premium */
.hub-card { position: relative; isolation: isolate; }
.hub-card-stats {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 14px; margin-top: 16px;
}
.hub-card-stats b { color: var(--yellow); font-size: 16px; }

/* Empty state mais sofisticado */
.empty {
  background: var(--surface);
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 56px 24px;
}
.empty b { color: var(--navy); font-weight: 700; }
.empty::before {
  content: "○"; display: block; font-size: 36px; color: var(--ink-mute);
  margin-bottom: 12px; opacity: .4; line-height: 1;
}

/* Loading com pulse */
.loading {
  text-align: center; padding: 40px 16px;
  position: relative; color: var(--ink-mute); font-size: 13px;
}
.loading::after {
  content: ""; display: inline-block; vertical-align: middle; margin-left: 8px;
  width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton placeholder utilitário (pode ser usado p/ loading rico) */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 0%, var(--surface-2) 50%, var(--bg) 100%);
  background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r-sm);
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Focus rings universais */
:focus-visible { outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft);
}
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px; border-radius: var(--r-sm);
}

/* Scroll bars sutis no admin */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
.side *::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-color: transparent; }
.side *::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .25); }

/* Brand bar interna mais visível em headers escuros */
.cred-card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); transition: all .25s var(--ease); }
.cred-card { transition: all .25s var(--ease); }

/* Filtros do projeto com agrupamento visual */
.proj-filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--sh-1); margin-bottom: 18px;
}
.proj-filters select, .proj-filters input { background: var(--surface-2); border-color: var(--line); }
.proj-filters select:focus, .proj-filters input:focus { background: var(--surface); }

/* Action buttons em tabelas: aparecem ao hover do row */
.table-actions { opacity: .55; transition: opacity .2s var(--ease); }
tbody tr:hover .table-actions { opacity: 1; }

/* Acesso desenvolvedor — visual de "área técnica" */
.dev-foot { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.dev-link { transition: all .2s var(--ease); }
.dev-link:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }

/* Eixo cards com hover + cor da fita lateral */
.eixo-card { transition: all .2s var(--ease); cursor: default; border-left-width: 4px; }
.eixo-card:hover { background: var(--surface); box-shadow: var(--sh-1); transform: translateX(2px); }

/* Hospedagem rooms cards: hover + drop shadow */
.hosp-card { transition: all .25s var(--ease); }
.hosp-card:hover { transform: translateY(-2px); }

/* Responsividade extra (telas pequenas) */
@media (max-width: 760px) {
  .content { padding: 18px 16px 56px; }
  .topbar { padding: 0 16px; }
  .topbar-title { font-size: 15px; }
  .topbar-title::before { height: 16px; }
  .page-head { margin-bottom: 20px; padding-bottom: 14px; }
  .page-head h1 { font-size: 20px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi .v { font-size: 22px; }
  .hub-card { min-height: 180px; padding: 22px 22px 18px; }
  .hub-card h2 { font-size: 19px; }
  .modal-card { padding: 20px; max-height: 92vh; }
  .form-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .toolbar input[type="search"], .toolbar input[type="text"] { min-width: 0; max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .table-actions .btn-xs { padding: 4px 8px; font-size: 11px; }
  .pill { font-size: 10px; padding: 2px 8px; }
  .topbar-title { font-size: 14px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Modo de impressão limpo para certificados/relatórios */
@media print {
  .side, .topbar, .dev-foot, .modal, .toast, .loadbar, .shell::before { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0; max-width: 100%; }
  .btn { display: none; }
  body { background: #fff; }
  .kpi, .panel, .table-wrap { box-shadow: none; border-color: #000; }
}


/* Reduce motion — respeita preferência do SO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Hospedagem — UX upgrade (aditivo, não modifica regras existentes)
   • Resumo por tipo de quarto (cards aglutinadores)
   • Toggle Cards / Expandida
   • Linhas expandidas (modo denso)
   ────────────────────────────────────────────────────────────────────────── */

.hosp-summary { margin: 0 0 16px; }
.hosp-summary-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.hosp-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.hosp-summary-card {
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
  padding: 12px 14px;
}
.hosp-summary-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.hosp-summary-label {
  font-family: var(--ff-display, inherit);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.hosp-summary-total {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hosp-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.hosp-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  border-radius: var(--r-sm, 6px);
  background: var(--bg-soft, #f4f7f8);
}
.hosp-summary-stat .v {
  font-family: var(--ff-numeric, var(--ff-display, inherit));
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: var(--ink);
}
.hosp-summary-stat .l {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.hosp-summary-stat.hs-free  .v { color: var(--ok,    #2A9D8F); }
.hosp-summary-stat.hs-part  .v { color: var(--warn,  #FB8500); }
.hosp-summary-stat.hs-full  .v { color: var(--ink-soft); }
.hosp-summary-stat.hs-vagas .v { color: var(--secondary, #219EBC); font-size: 14px; }

.hosp-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-soft, #f4f7f8);
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  margin: 0 0 14px;
}
.hosp-view-btn {
  font-family: var(--ff-body, inherit);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--r-pill, 999px);
  cursor: pointer;
  transition: all 0.2s var(--ease, ease);
}
.hosp-view-btn:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.hosp-view-btn.is-active {
  background: var(--ink, #0E2A38);
  color: var(--white, #fff);
}
.hosp-view-btn:focus-visible {
  outline: 2px solid var(--primary, #FB8500);
  outline-offset: 2px;
}

.hosp-expanded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hosp-exp-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
  padding: 12px 14px;
  transition: box-shadow 0.2s var(--ease, ease);
}
.hosp-exp-row:hover { box-shadow: var(--sh-1); }
.hosp-exp-row.is-full {
  border-color: var(--ok, #2A9D8F);
  background: var(--ok-soft, rgba(42, 157, 143, 0.06));
}
.hosp-exp-head { min-width: 0; }
.hosp-exp-num {
  font-family: var(--ff-display, inherit);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.hosp-exp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.hosp-exp-meta .muted { color: var(--ink-soft); font-size: 11px; }
.hosp-exp-mid { min-width: 0; }
.hosp-exp-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hosp-exp-cap-bar {
  flex: 1;
  height: 5px;
  background: var(--bg-soft, #f4f7f8);
  border-radius: 999px;
  overflow: hidden;
}
.hosp-exp-cap-fill {
  height: 100%;
  background: var(--secondary, #219EBC);
  border-radius: 999px;
  transition: width 0.3s var(--ease, ease);
}
.hosp-exp-cap-fill.warn { background: var(--warn, #FB8500); }
.hosp-exp-cap-fill.full { background: var(--ok, #2A9D8F); }
.hosp-exp-cap-txt {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.hosp-exp-occupants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hosp-exp-occupant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: var(--bg-soft, #f4f7f8);
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  font-size: 12px;
  color: var(--ink);
  max-width: 100%;
}
.hosp-exp-occupant strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.hosp-exp-rm {
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-mute, #9aaeb7);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.hosp-exp-rm:hover { color: var(--danger, #C0392B); background: rgba(192, 57, 43, 0.08); }
.hosp-exp-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hosp-exp-obs {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-soft, #f4f7f8);
  padding: 8px 10px;
  border-radius: var(--r-sm, 6px);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .hosp-summary-stats { grid-template-columns: repeat(2, 1fr); }
  .hosp-exp-row { grid-template-columns: 1fr; gap: 10px; }
  .hosp-exp-acts { justify-content: flex-end; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Cargo discreto ao lado de nomes — aplicado em todo lugar onde nameWF()
   é usado (listas, modais, cards, chips). Cor muted, fonte menor, prefixado
   por "·" para separar do nome. Trunca em narrow, mostra completo no title.
   ────────────────────────────────────────────────────────────────────────── */
.cargo-mark {
  font-family: var(--ff-body, inherit);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 6px;
  opacity: 0.78;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  display: inline-block;
}
.cargo-mark::before {
  content: '· ';
  margin-right: 1px;
}
/* Em contextos compactos (chips, células de tabela densa), encolhe ainda mais */
.hosp-occupant .cargo-mark,
.hosp-exp-occupant .cargo-mark,
.hosp-panel-row .cargo-mark { font-size: 10.5px; max-width: 140px; }

/* ──────────────────────────────────────────────────────────────────────────
   Responsividade — breakpoints adicionais para grids/painéis que ainda
   não tinham. Nada altera o design visual em larguras normais; só ajusta
   o comportamento abaixo do breakpoint.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hosp-layout { grid-template-columns: 1fr; gap: 16px; }
  .hosp-panel  { order: -1; }
}
@media (max-width: 760px) {
  .content { padding: 18px 14px 40px; }
  .modal-card { max-width: calc(100vw - 16px); margin: 8px; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar input[type="search"], .toolbar input[type="text"] { min-width: 100%; max-width: none; }
  .toolbar select { min-width: 0; flex: 1; }
  .detail-bar { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
  .content { padding: 14px 10px 36px; }
  .kpis { gap: 8px; }
  .kpi  { padding: 10px; }
  .kpi .v { font-size: 20px; }
  .cargo-mark { max-width: 120px; font-size: 10.5px; }
}
/* Wrapper genérico para tabelas largas (admin tem várias) — habilita scroll
   horizontal em telas estreitas sem cortar conteúdo. Aplica-se quando o pai
   tem a classe .table-wrap; tabelas que precisam disso recebem o wrapper. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Sistema → kill switch das inscrições */
.sistema-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 8px 0 20px;
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ok, #2A9D8F);
  border-radius: var(--r-sm, 6px);
  box-shadow: var(--sh-1, 0 1px 2px rgba(0,0,0,.04));
  flex-wrap: wrap;
}
.sistema-toggle-card--off { border-left-color: var(--danger, #DC2626); }
.sistema-toggle-info { flex: 1; min-width: 220px; }
.sistema-toggle-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}
.sistema-toggle-card--off .sistema-toggle-title { color: var(--danger, #DC2626); }
.sistema-toggle-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Hospedagem — botões empilhados em cada linha do painel lateral
   (suportar "Alocar" + "Sem alocação" lado a lado) */
.hosp-panel-row-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
/* Sub-head do painel "Dispensados" — usa o mesmo padrão visual do head
   principal mas com margem superior para destacar como seção separada */
.hosp-panel-head--sub { margin-top: 18px; }
/* Linhas de dispensados — visual atenuado para sinalizar estado "off" */
.hosp-panel-row--disp { opacity: 0.72; }
.hosp-panel-row--disp:hover { opacity: 1; }

/* ──────────────────────────────────────────────────────────────────────────
   E-mail Segmenter — painel inserido em renderCrm (scope=evento)
   Permite filtrar inscritos por múltiplos parâmetros, ver métricas em tempo
   real e exportar CSV. Reaproveita classes .panel, .crm-panel, .btn, .tag.
   ────────────────────────────────────────────────────────────────────────── */
.crm-seg-wrap { margin: 16px 0 24px; }
.crm-seg-panel { padding: 18px 20px; }
.crm-seg-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.crm-seg-group { display: flex; flex-direction: column; gap: 6px; }
.crm-seg-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crm-seg-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.crm-seg-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--bg-soft, #f4f7f8);
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s var(--ease, ease);
}
.crm-seg-check:hover { background: var(--white, #fff); }
.crm-seg-check input[type="checkbox"] { margin: 0; cursor: pointer; accent-color: var(--orange, #FB8500); }
.crm-seg-check input[type="checkbox"]:checked + span { color: var(--ink); font-weight: 600; }
.crm-seg-check:has(input[type="checkbox"]:checked) {
  background: rgba(251, 133, 0, 0.08);
  border-color: rgba(251, 133, 0, 0.4);
}
.crm-seg-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.crm-seg-field { display: flex; flex-direction: column; gap: 4px; }
.crm-seg-field--grow { grid-column: span 2; }
.crm-seg-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.crm-seg-field input, .crm-seg-field select {
  font-family: var(--ff-body, inherit);
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  background: var(--white, #fff);
  color: var(--ink);
  min-width: 0;
}
.crm-seg-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.crm-seg-result { padding-top: 4px; }
.crm-seg-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.crm-seg-big {
  font-family: var(--ff-display, inherit);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}
.crm-seg-lbl { font-size: 14px; color: var(--ink-soft); }
.crm-seg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.crm-seg-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-soft, #f4f7f8);
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.crm-seg-chip--ok { color: var(--ok, #2A9D8F); border-color: rgba(42, 157, 143, 0.3); background: rgba(42, 157, 143, 0.08); }
.crm-seg-chip--warn { color: var(--warn, #FB8500); border-color: rgba(251, 133, 0, 0.3); background: rgba(251, 133, 0, 0.08); }

.crm-seg-breakdown { margin-bottom: 14px; }
.crm-seg-breakdown-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.crm-seg-breakdown-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 14px;
}
.crm-seg-breakdown-item {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 90px 32px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.crm-seg-breakdown-label {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.crm-seg-breakdown-bar {
  display: block;
  height: 5px;
  background: var(--bg-soft, #f4f7f8);
  border-radius: 999px;
  overflow: hidden;
}
.crm-seg-breakdown-fill {
  display: block;
  height: 100%;
  background: var(--secondary, #219EBC);
  border-radius: 999px;
  transition: width 0.3s var(--ease, ease);
}
.crm-seg-breakdown-count {
  font-family: var(--ff-numeric, var(--ff-display, inherit));
  font-weight: 700;
  text-align: right;
  font-size: 12px;
  color: var(--ink);
}

.crm-seg-export-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.crm-seg-preview { margin-top: 12px; }
.crm-seg-preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  padding: 6px;
  background: var(--bg-soft, #f4f7f8);
}
.crm-seg-preview-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  background: var(--white, #fff);
  border-radius: var(--r-sm, 6px);
  font-size: 12.5px;
}
.crm-seg-preview-row:hover { background: rgba(251, 133, 0, 0.04); }
.crm-seg-preview-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-seg-preview-meta { display: flex; gap: 6px; align-items: center; }
.crm-seg-preview-email {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .crm-seg-row { grid-template-columns: 1fr; }
  .crm-seg-field--grow { grid-column: span 1; }
  .crm-seg-preview-row { grid-template-columns: 1fr; gap: 4px; }
  .crm-seg-preview-email { text-align: left; }
}

/* Checkbox row (form-grid full) — usado no modal de edição da inscrição */
.fg-checkbox .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  user-select: none;
}
.fg-checkbox .checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orange, #FB8500);
}
.fg-checkbox .checkbox-row > span:not(.hint) {
  font-weight: 600;
  color: var(--ink);
  font-size: 13.5px;
}
.fg-checkbox .checkbox-row .hint {
  flex-basis: 100%;
  margin-left: 24px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Seleção de colunas no modal de exportação CSV */
.export-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 18px;
  margin-bottom: 4px;
}
.export-col {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--ink);
}
.export-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orange, #FB8500);
}
@media (max-width: 560px) {
  .export-cols { grid-template-columns: 1fr; }
}

/* ── Campanhas de e-mail: ao vivo × concluídas + seletor de idioma ───────── */
.camp-live { border: 1px solid var(--orange); background: linear-gradient(180deg, rgba(255,134,0,.06), transparent 60%); }
.camp-live-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.camp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: campPulse 1.4s infinite; }
@keyframes campPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,134,0,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,134,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,134,0,0); }
}
.camp-live-row { padding: 9px 0; border-top: 1px solid var(--line); }
.camp-live-row:first-of-type { border-top: 0; }
.camp-live-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.camp-live-pct { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.camp-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; }
.camp-stat { flex: 1; min-width: 120px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; text-align: center; }
.camp-stat .v { display: block; font-size: 20px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.camp-stat .l { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.camp-done-list { display: flex; flex-direction: column; }
.camp-done-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.camp-done-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.camp-done-nums { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lang-toggle { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lang-btn { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: all .15s var(--ease); }
.lang-btn:hover { border-color: var(--line-strong); }
.lang-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Histórico de e-mails do inscrito (modal) + aba Análise ──────────────── */
.lead-email-hist { display: flex; flex-direction: column; gap: 6px; }
.lead-email-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.lead-email-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lead-email-main .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lead-email-badge { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.lead-email-badge.is-open { background: rgba(31,138,77,.1); border-color: rgba(31,138,77,.3); color: var(--ok); }
.ana-list { display: flex; flex-direction: column; }
.ana-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ana-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.ana-nums { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Hospedagem VIP ───────────────────────────────────────────────────────── */
.hosp-card--vip { border-color: #C9A227; background: linear-gradient(180deg, #FFFDF5, #FFF6DA); }
.hosp-card--vip .hosp-card-num { color: #8A6D1A; }
.hosp-vip-toggle { background: none; border: 0; cursor: pointer; opacity: .35; filter: grayscale(1); }
.hosp-vip-toggle.is-vip { opacity: 1; filter: none; color: #C9A227; }

/* ── Métricas visuais (2 cards grandes) da área de e-mail ──────────────────── */
.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 4px 0 18px; }
.metric-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 14px); padding: 18px 20px; box-shadow: var(--sh-1, 0 1px 2px rgba(0,0,0,.05)); overflow: hidden; }
.metric-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-strong); }
.metric-card.c-orange::before { background: var(--orange); }
.metric-card.c-blue::before { background: var(--blue); }
.metric-card-t { font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }
.metric-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.metric-card-n { font-size: 34px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric-card-pct { font-size: 18px; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.metric-card.c-blue .metric-card-pct { color: var(--blue); }
.metric-card-sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

/* Anexos do compositor (chips) */
.eh-anexo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.eh-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 280px; padding: 5px 6px 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 12.5px; }
.eh-chip-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; font-weight: 600; }
.eh-chip-x { border: 0; background: transparent; cursor: pointer; font-size: 17px; line-height: 1; color: var(--ink-mute); padding: 0 4px; border-radius: 999px; }
.eh-chip-x:hover { color: var(--danger); }
