/* =========================================================
   Village La Coruña — Gestão Condominial
   Identidade Visual: comunicado-condominio
   - Paleta: navy escuro (#0f1b2d → #1a2d4a) + cinza claro (#f2f4f7)
   - Tipografia: Lato (300, 400, 500, 600, 700, 800, 900)
   - Cards brancos com cantos 12–16px e sombra sutil
   - Linha de acento azul (80×3px) sob títulos
   Mobile-first (9:16)
   ========================================================= */

/* ==================  SPLASH SCREEN  ================== */
.splash-screen {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1b2d 0%, #1a2d4a 100%);
  transition: opacity .4s ease;
}
.splash-screen.fade-out { opacity: 0; pointer-events: none; }

.splash-content {
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: scale(0.85) translateY(20px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.splash-screen.visible .splash-content {
  opacity: 1; transform: scale(1) translateY(0);
}

.splash-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-size: 26px; font-weight: 900;
  color: #fff; letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0; transform: scale(0.5);
  animation: splashMark .6s .2s cubic-bezier(.16,1,.3,1) forwards;
}
.splash-title {
  font-family: 'Lato', sans-serif; font-size: 28px; font-weight: 900;
  color: #fff; letter-spacing: 0.5px;
  opacity: 0; transform: translateY(15px);
  animation: splashFadeUp .6s .5s ease forwards;
}
.splash-line {
  width: 60px; height: 3px; border-radius: 2px;
  background: #4a9fe5; margin: 12px 0 10px;
  opacity: 0; transform: scaleX(0);
  animation: splashLine .5s .8s ease forwards;
}
.splash-subtitle {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.6); letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  animation: splashFadeUp .5s 1s ease forwards;
}

@keyframes splashMark {
  to { opacity: 1; transform: scale(1); }
}
@keyframes splashFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splashLine {
  to { opacity: 1; transform: scaleX(1); }
}

/* ==================  WELCOME SCREEN (pós-login)  ================== */
.welcome-screen {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: #f2f4f7;
  transition: opacity .4s ease;
}
.welcome-screen.fade-out { opacity: 0; pointer-events: none; }
.welcome-content {
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: scale(0.85) translateY(20px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.welcome-screen.visible .welcome-content {
  opacity: 1; transform: scale(1) translateY(0);
}
.welcome-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(15,27,45,.08); border: 2px solid rgba(15,27,45,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-size: 26px; font-weight: 900;
  color: #0f1b2d; letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0; transform: scale(0.5);
  animation: splashMark .6s .2s cubic-bezier(.16,1,.3,1) forwards;
}
.welcome-greeting {
  font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 400;
  color: #6b7b8d; letter-spacing: 1px; text-transform: uppercase;
  opacity: 0; transform: translateY(15px);
  animation: splashFadeUp .5s .4s ease forwards;
}
.welcome-name {
  font-family: 'Lato', sans-serif; font-size: 32px; font-weight: 900;
  color: #0f1b2d; letter-spacing: 0.5px; margin-top: 4px;
  opacity: 0; transform: translateY(15px);
  animation: splashFadeUp .6s .6s ease forwards;
}
.welcome-line {
  width: 60px; height: 3px; border-radius: 2px;
  background: #4a9fe5; margin: 14px 0 12px;
  opacity: 0; transform: scaleX(0);
  animation: splashLine .5s .9s ease forwards;
}
.welcome-role {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 600;
  color: #6b7b8d; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  animation: splashFadeUp .5s 1.1s ease forwards;
}
.welcome-menu {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 28px; width: 100%; max-width: 360px;
  opacity: 0; transform: translateY(15px);
  animation: splashFadeUp .6s 1.3s ease forwards;
}
.welcome-menu-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 12px; border: none; border-radius: 14px;
  background: rgba(15,27,45,.04); cursor: pointer;
  transition: all .2s ease; font-family: 'Lato', sans-serif;
}
.welcome-menu-btn:hover {
  background: rgba(15,27,45,.08); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,27,45,.08);
}
.welcome-menu-btn:active { transform: scale(.96); }
.welcome-menu-ico { font-size: 24px; line-height: 0; }
.welcome-menu-ico svg { width: 30px; height: 30px; display: block; }
.welcome-menu-label {
  font-size: 11px; font-weight: 700; color: #0f1b2d;
  letter-spacing: .3px;
}
/* 7 itens: 4+3, última fileira centralizada */
.welcome-menu-btn:nth-child(n+5) { }
@media (max-width: 380px) {
  .welcome-menu { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .welcome-menu-btn { padding: 12px 4px 10px; }
}

:root {
  /* Paleta — exata do skill comunicado-condominio */
  --navy-1: #0f1b2d;            /* NAVY1  rgb(15,27,45)   */
  --navy-2: #1a2d4a;            /* NAVY2  rgb(26,45,74)   */
  --navy-3: #1f3864;            /* variante média         */
  --bg:        #f2f4f7;         /* BG       rgb(242,244,247) */
  --text-1:    #1e2a3a;         /* TEXT_DARK  rgb(30,42,58)  */
  --text-2:    #3a4a5c;         /* TEXT_MED   rgb(58,74,92)  */
  --text-3:    #6b7b8d;         /* TEXT_LIGHT rgb(107,123,141) */
  --blue-accent: #4a9fe5;       /* BLUE_ACCENT rgb(74,159,229) */
  --white:     #ffffff;
  --green:     #16a34a;
  --green-bg:  #dcfce7;
  --red:       #dc2626;
  --red-bg:    #fee2e2;
  --amber:     #d97706;
  --amber-bg:  #fef3c7;
  --blue-soft-bg: #ebf5ff;      /* rgb(235,245,255) */
  --shadow-sm: 0 1px 3px rgba(15,27,45,0.08);
  --shadow-md: 0 4px 12px rgba(15,27,45,0.10);
  --radius:    12px;
  --radius-lg: 16px;
  --accent-line: 80px;          /* largura da linha de acento */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}
*:focus, *:focus-visible, *:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
  overscroll-behavior: none;          /* bloqueia pull-to-refresh nativo */
  -webkit-overflow-scrolling: touch;
}
/* Android: a área segura no topo/base mostrava o fundo claro como uma
   "linha branca". Pintamos o html de navy para casar com header e tab-bar. */
html { background: var(--navy-1); }
body { background: var(--bg); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ==================  HEADER (navy c/ linha de acento azul) ============ */
.app-header {
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 16px 20px 20px;
  padding-top: max(env(safe-area-inset-top, 16px), 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header::after {
  /* linha de acento azul do skill — 80px × 3px, à esquerda */
  content: '';
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: var(--accent-line);
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
}
.app-header .brand { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 1; }
.app-header .brand .title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;            /* Lato Black */
  font-size: 17px;
  letter-spacing: 0.3px;
}
.app-header .brand .subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 500;            /* Lato Medium */
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 3px;
}
.app-header .user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.app-header .user-chip .logout {
  color: var(--white); opacity: 0.7; padding: 0 4px;
  font-size: 14px;
}
.app-header .user-chip .logout:hover { opacity: 1; }

/* ==================  LOGIN  ================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 60%, #162d52 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,229,.1) 0%, transparent 65%);
  top: -200px; right: -150px;
  pointer-events: none;
  animation: loginGlow 6s ease-in-out infinite alternate;
}
.login-wrap::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,159,229,.06) 0%, transparent 65%);
  bottom: -150px; left: -120px;
  pointer-events: none;
  animation: loginGlow 6s ease-in-out 3s infinite alternate;
}
@keyframes loginGlow {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  color: var(--text-1);
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,.04);
  animation: loginCardIn .6s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes loginCardIn {
  0% { opacity: 0; transform: translateY(30px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 18px;
}
.login-logo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--blue-accent), #6bb5f0);
  border-radius: 2px;
}
.login-logo .mark {
  width: 64px; height: 64px;
  background: linear-gradient(145deg, var(--navy-1), var(--navy-3));
  color: var(--white);
  border-radius: 18px;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(15,27,45,0.35);
  position: relative;
}
.login-logo .mark::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 22px;
  border: 1.5px solid rgba(74,159,229,.2);
}
.login-logo .t1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--navy-1);
  letter-spacing: 0.3px;
}
.login-logo .t2 {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 6px;
}
.login-sign {
  margin-top: 24px;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-3) 100%);
  color: var(--white);
  text-align: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.login-sign::before {
  content: '';
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--blue-accent), #6bb5f0);
  border-radius: 2px;
}
.login-sign::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(74,159,229,.12) 0%, transparent 60%);
  pointer-events: none;
}
.login-sign .nome {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin-top: 8px;
  position: relative;
}
.login-sign .cargo {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  position: relative;
}
.login-step { margin-top: 14px; }
.login-step label { display: block; font-weight: 700; color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-btn {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .15s;
  color: var(--text-1);
  font-weight: 600;
}
.member-btn:hover, .member-btn.selected { border-color: var(--navy-3); background: var(--blue-soft-bg); }
.member-btn .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-1), var(--navy-3));
  color: var(--white);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.member-btn .role { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 1px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Role select grid (tela inicial de login) */
.role-select-label {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-align: center; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.role-select-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.role-select-grid .role-select-btn:nth-child(5) {
  grid-column: 1 / -1; max-width: 50%; justify-self: center;
}
.role-select-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 10px 16px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 16px; cursor: pointer;
  transition: all .25s ease;
  font-family: 'Lato', sans-serif;
  position: relative; overflow: hidden;
  animation: roleIn .5s cubic-bezier(.22,.61,.36,1) both;
}
.role-select-btn:nth-child(1) { animation-delay: .1s; }
.role-select-btn:nth-child(2) { animation-delay: .18s; }
.role-select-btn:nth-child(3) { animation-delay: .26s; }
.role-select-btn:nth-child(4) { animation-delay: .34s; }
@keyframes roleIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.role-select-btn:hover, .role-select-btn:active {
  border-color: var(--blue-accent);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(74,159,229,.12);
  transform: translateY(-2px);
}
.role-select-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(74,159,229,.1); }
.role-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-2);
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(15,27,45,.06);
  transition: all .25s;
}
.role-select-btn:hover .role-icon {
  color: var(--blue-accent);
  box-shadow: 0 4px 12px rgba(74,159,229,.15);
}
.role-icon svg { width: 100%; height: 100%; }
.role-name {
  font-size: 13px; font-weight: 800; color: var(--navy-1);
  text-align: center; line-height: 1.3; letter-spacing: .1px;
  position: relative;
}
.role-desc {
  font-size: 9px; font-weight: 600; color: var(--text-3);
  letter-spacing: .5px; text-transform: uppercase;
}

/* Unidade grid (proprietários/locatários) */
.unidade-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px;
}
.unidade-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 4px; background: var(--white);
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s;
  font-family: 'Lato', sans-serif;
}
.unidade-btn:hover { border-color: var(--navy-3); background: var(--blue-soft-bg); }
.unidade-num {
  font-size: 20px; font-weight: 900; color: var(--navy-2);
}
.unidade-label {
  font-size: 9px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .3px; margin-top: 2px;
}

.pin-input {
  width: 100%;
  padding: 14px 12px;
  border: 2px solid #e1e7ee;
  border-radius: var(--radius);
  font-size: 22px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
  color: var(--navy-2);
  background: var(--bg);
}
.pin-input:focus { outline: none; border-color: var(--navy-3); background: var(--white); }
.btn-primary {
  width: 100%;
  background: var(--navy-2);
  color: var(--white);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--navy-1); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--text-2);
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 8px;
}
#step-first-access .pin-input { margin-bottom: 10px; }
#step-new-pin { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
#step-new-pin.hidden { display: none; }

.alert {
  background: var(--red-bg);
  color: var(--red);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

/* ==================  APP SHELL  ================== */
.app-main {
  padding: 14px 14px 90px;
  max-width: 640px;
  margin: 0 auto;
}

/* ==================  TAB BAR  ================== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 100%);
  display: flex;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  /* Respeita as áreas seguras laterais do Android (cantos arredondados /
     navegação por gestos) para os ícones das pontas não serem cortados. */
  padding-top: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  padding-left: max(8px, env(safe-area-inset-left, 0px));
  padding-right: max(8px, env(safe-area-inset-right, 0px));
  z-index: 50;
  gap: 2px;
}
.tab-bar::before {
  content: '';
  position: absolute;
  top: 0; left: calc(50% - 40px);
  width: 80px; height: 2.5px;
  background: var(--blue-accent);
  border-radius: 0 0 2px 2px;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  /* Divide a largura igualmente entre as abas — todas cabem na tela sem
     overflow nem corte nas pontas, em qualquer largura de Android. */
  flex: 1 1 0;
  min-width: 0;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 5px;
  color: rgba(255,255,255,0.4);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color .2s, opacity .2s;
  position: relative;
  overflow: hidden;
}
.tab-btn .txt {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .tab-btn { padding: 7px 2px 4px; font-size: 8px; }
}
@media (max-width: 360px) {
  .tab-btn { font-size: 7.5px; letter-spacing: 0; }
}
.tab-btn.active { color: var(--white); }
.tab-btn .ico {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  opacity: 0.45;
  transition: opacity .2s;
}
.tab-btn.active .ico { opacity: 1; }
.tab-btn .ico svg {
  width: 22px; height: 22px;
  stroke-width: 1.7;
}
@media (max-width: 480px) {
  .tab-btn .ico svg { width: 20px; height: 20px; }
}
.tab-btn .txt { text-transform: uppercase; }
.tab-btn:focus,
.tab-btn:focus-visible,
.tab-btn:active,
.tab-btn:hover {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  border: none;
}
button:focus,
button:focus-visible {
  outline: none;
}

/* ==================  CARDS  ================== */
.card {
  background: var(--white);
  border-radius: var(--radius);     /* 12px — conforme skill */
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;                 /* Bold */
  font-size: 15px;
  color: var(--text-1);
  margin-bottom: 4px;
  line-height: 1.35;
}
.card-sub {
  font-family: 'Lato', sans-serif;
  font-weight: 500;                 /* Medium */
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.2px;
}

.section-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;                 /* Black */
  color: var(--navy-1);
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 22px 0 10px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--blue-accent), transparent);
  border-radius: 2px;
}

/* ==================  SECTION TOGGLE (collapsible)  ================== */
.section-toggle {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: var(--navy-1);
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 22px 0 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 10px;
  background: var(--bg);
  transition: background .2s;
  user-select: none;
  -webkit-user-select: none;
}
.section-toggle:hover { background: var(--border); }
.section-toggle::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--blue-accent), transparent);
  border-radius: 2px;
}
.section-toggle-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: var(--navy-3);
  transition: transform .2s;
}
.section-collapsible {
  animation: secExpand .25s ease;
}
@keyframes secExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================  STATUS BADGES  ================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.run { background: var(--amber-bg); color: var(--amber); }
.badge.off { background: var(--red-bg); color: var(--red); }
.badge.neutro { background: var(--blue-soft-bg); color: var(--navy-3); }

.status-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}

.obs {
  font-family: 'Lato', sans-serif;
  font-weight: 400;            /* Regular */
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e1e7ee;
  line-height: 1.45;
}

/* ==================  INLINE EDIT  ================== */
.editable {
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
  position: relative;
}
.editable:hover {
  background: var(--blue-soft-bg);
}
.editable:hover::after {
  content: '✎';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--navy-3);
  opacity: 0.6;
  pointer-events: none;
}
.obs-placeholder {
  color: var(--navy-3);
  font-style: italic;
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  overflow: hidden;
  transition: opacity 0.18s ease, max-height 0.18s ease, margin-top 0.18s ease, padding-top 0.18s ease;
  pointer-events: none;
}
.card:hover .obs-placeholder {
  opacity: 0.7;
  max-height: 40px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e1e7ee;
  pointer-events: auto;
}
/* Em telas touch (sem hover preciso), mostra os placeholders sempre
   para admins conseguirem clicar pelo celular. */
@media (hover: none) {
  .obs-placeholder {
    opacity: 0.7;
    max-height: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e1e7ee;
    pointer-events: auto;
  }
}
.card-title.editable { padding: 2px 22px 2px 4px; margin-left: -4px; }
.obs.editable { padding-right: 22px; }
.editable.editing { background: transparent; cursor: default; padding: 0; }
.editable.editing::after { display: none; }
.inline-edit {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--navy-3);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-1);
  background: var(--white);
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}
.inline-edit:focus { outline: none; border-color: var(--navy-2); }

/* ==================  BADGE CLICÁVEL (altera status)  ================== */
.badge-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  flex-shrink: 0;
}
.badge-btn:hover { transform: scale(1.05); box-shadow: 0 0 0 3px var(--blue-soft-bg); }
.badge-btn:active { transform: scale(0.96); }
.badge-btn .badge { cursor: pointer; }

/* ==================  STATUS PICKER (modal)  ================== */
.status-picker { display: flex; flex-direction: column; gap: 10px; }
.status-opt {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.status-opt.selected { border-color: var(--navy-3); box-shadow: 0 0 0 3px var(--blue-soft-bg); }
.status-opt:hover { transform: translateY(-1px); }
.status-opt:active { transform: scale(0.98); }

/* ==================  FILTERS  ================== */
.filter-bar {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 2px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid #e1e7ee;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-chip.active { background: var(--navy-2); color: var(--white); border-color: var(--navy-2); }

/* ==================  VOTAÇÃO  ================== */
.vote-card { padding-bottom: 10px; }

/* Dropdown do status da votação */
.vot-dropdown-wrap { position: relative; }
.vot-dropdown-toggle { cursor: pointer; user-select: none; }
.vot-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  min-width: 160px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.vot-dropdown-menu.open { display: block; }
.vot-dd-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-1);
  transition: background .15s;
}
.vot-dd-item:hover { background: var(--bg); }
.vot-dd-item:disabled { color: var(--text-3); cursor: default; background: var(--bg); }
.vot-dd-open:disabled { color: var(--navy-3); }
.vot-dd-close { color: var(--navy-2); }
.vot-dd-whatsapp { color: #25d366; }
.vot-dd-delete { color: var(--red); }
.vot-dd-item + .vot-dd-item { border-top: 1px solid var(--border); }

/* Resultado da votação encerrada */
.vote-resultado {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vote-result-label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.vote-result-label.winner {
  background: var(--navy-1);
  color: var(--white);
  border-color: var(--navy-1);
}
.vote-result-date {
  font-size: 12px;
  color: var(--text-3);
}
.vote-buttons {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  margin-top: 10px;
}
/* Botões de opção (fornecedores) — visual clean */
.vote-options { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.vote-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-weight: 600;
  font-size: 13px;
}
.vote-opt-btn:hover:not(:disabled) {
  border-color: var(--blue-accent);
  background: var(--blue-soft-bg);
  box-shadow: var(--shadow-sm);
}
.vote-opt-btn.selected {
  border-color: var(--navy-2);
  background: var(--blue-soft-bg);
  box-shadow: 0 0 0 1px var(--navy-2);
}
.vote-opt-btn.winner {
  border-color: var(--navy-1);
  background: var(--navy-1);
  color: var(--white);
}
.vote-opt-btn.winner .vote-opt-valor { color: rgba(255,255,255,.7); }
.vote-opt-btn.winner .vote-opt-count { background: rgba(255,255,255,.15); color: var(--white); }
.vote-opt-btn:disabled { cursor: default; opacity: 0.6; }
.vote-opt-btn:disabled.winner { opacity: 1; }
.vote-opt-name { flex: 1; }
.vote-opt-valor { font-size: 12px; font-weight: 400; color: var(--text-3); }
.vote-opt-count { font-size: 11px; font-weight: 700; background: var(--bg); color: var(--text-2); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }

/* Legacy vote-btn kept for compatibility */
.vote-btn {
  padding: 10px 4px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid transparent;
  text-align: center;
}
.vote-btn.sim { background: var(--green-bg); color: var(--green); }
.vote-btn.nao { background: var(--red-bg); color: var(--red); }
.vote-btn.abs { background: var(--amber-bg); color: var(--amber); }
.vote-btn.selected { border-color: currentColor; }
.vote-btn:disabled { opacity: 0.6; }

.vote-summary {
  display: flex; gap: 10px; font-size: 12px; margin-top: 10px;
  color: var(--text-2);
}
.vote-summary span strong { color: var(--text-1); }

.vote-details {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg);
  display: none;
}
.vote-details.open { display: block; }
.vote-details h4 { font-size: 12px; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; letter-spacing: 0.8px; }
.vote-details ul { list-style: none; font-size: 12px; color: var(--text-2); }
.vote-details li { padding: 3px 0; display: flex; justify-content: space-between; }

.btn-expand {
  width: 100%; padding: 8px; font-size: 12px; font-weight: 600;
  color: var(--navy-3); background: var(--bg); border-radius: 8px; margin-top: 10px;
}

/* ==================  COMENTÁRIOS ================== */
.comment-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  margin-top: 10px;
  background: var(--bg);
  color: var(--text-1);
}
.comment-input:focus { outline: none; border-color: var(--navy-3); background: var(--white); }
.comment-list { margin-top: 10px; }
.comment {
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 12px;
}
.comment .who { font-weight: 700; color: var(--navy-3); font-size: 11px; }
.comment .when { color: var(--text-3); font-size: 10px; margin-left: 6px; }
.comment .txt { margin-top: 4px; color: var(--text-1); }
.btn-small { padding: 8px 14px; font-size: 12px; font-weight: 700; border-radius: 8px; margin-top: 8px; background: var(--navy-3); color: var(--white); }
.btn-small:disabled { opacity: 0.5; }

/* ==================  MURAL  ================== */
.mural-form .comment-input { min-height: 80px; }
.mural-attach-row {
  display: flex; align-items: center; gap: 10px; margin: 8px 0;
}
.mural-attach-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--white);
  color: var(--navy-2); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.mural-attach-btn:hover { background: var(--blue-soft-bg); border-color: var(--blue-accent); }
.mural-attach-count { font-size: 12px; color: var(--text-3); font-weight: 600; }
.mural-preview {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px;
}
.mural-preview-item {
  position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.mural-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.mural-preview-item.mural-preview-file {
  width: auto; height: auto; padding: 6px 28px 6px 10px;
  display: flex; align-items: center; gap: 6px; background: var(--bg);
}
.mural-preview-file-icon { font-size: 18px; }
.mural-preview-file-name {
  font-size: 11px; font-weight: 600; color: var(--navy-2);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mural-preview-del {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Thread wrapper — agora é um card que contém post + replies */
.mural-thread {
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}
.mural-thread.card {
  padding: 0;
}
.mural-msg {
  padding: 14px 16px;
}
.mural-msg .who { font-weight: 700; font-size: 13px; color: var(--navy-3); }
.mural-msg .when { font-size: 11px; color: var(--text-3); }
.mural-msg-titulo {
  font-size: 16px; font-weight: 800; color: var(--navy-1);
  margin: 8px 0 2px; line-height: 1.3;
}
.mural-titulo-input {
  width: 100%; padding: 8px 12px; font-family: 'Lato', sans-serif;
  font-size: 15px; font-weight: 700; border: 1px solid rgba(15,27,45,0.12);
  border-radius: 8px; background: var(--bg); color: var(--text-1);
  margin-bottom: 6px;
}
.mural-titulo-input:focus { outline: none; border-color: var(--blue-accent); }
.mural-msg .txt { margin-top: 6px; color: var(--text-1); font-size: 14px; line-height: 1.5; }
.mural-btn-edit-titulo {
  background: none; border: none; font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
  color: var(--text-3);
}
.mural-btn-edit-titulo:hover { color: var(--blue-accent); }
.mural-msg-actions {
  display: flex; gap: 12px; margin-top: 10px;
}
.mural-btn-reply, .mural-btn-del {
  background: none; border: none; font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
}
.mural-btn-reply { color: var(--navy-3); }
.mural-btn-reply:hover { color: var(--blue-accent); }
.mural-btn-edit { color: var(--navy-3); opacity: .7; }
.mural-btn-edit:hover { color: var(--blue-accent); opacity: 1; }
.mural-btn-del { color: var(--red); opacity: .6; }
.mural-btn-del:hover { opacity: 1; }
.mural-btn-save, .mural-btn-cancel-edit {
  background: none; border: none; font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
}
.mural-btn-save { color: var(--blue-accent); }
.mural-btn-cancel-edit { color: var(--text-3); }
.mural-edited { font-size: 10px; color: var(--text-3); font-style: italic; }
.mural-papel-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 4px; margin-left: 4px;
  background: var(--blue-soft-bg); color: var(--blue-accent);
  text-transform: uppercase; letter-spacing: .3px; vertical-align: middle;
}
.mural-edit-area { font-size: 14px; margin-top: 6px; }

/* Replies DENTRO do card do post */
.mural-replies {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mural-reply {
  padding: 10px 16px 10px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.mural-reply:last-child { border-bottom: none; }
.mural-reply::before {
  content: '↳';
  position: absolute; left: 14px; top: 12px;
  font-size: 13px; color: var(--text-3); font-weight: 700;
}

/* Banner de reply */
.mural-reply-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-soft-bg); border: 1px solid var(--blue-accent);
  border-radius: 8px; padding: 6px 12px; margin-bottom: 8px;
  font-size: 12px; color: var(--navy-2); font-weight: 600;
}
.mural-reply-banner.hidden { display: none; }
#mural-reply-cancel {
  background: none; border: none; font-size: 16px;
  color: var(--text-3); cursor: pointer; padding: 0 0 0 8px;
}

/* === Anexos no mural === */
.mural-anexos { margin-top: 10px; }

/* Imagens — preview grande */
.mural-imgs-grid {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px;
}
.mural-img-preview {
  width: 100%; max-width: 320px; max-height: 240px;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
/* Múltiplas imagens: lado a lado */
.mural-imgs-grid .mural-img-preview:not(:only-child) {
  width: calc(50% - 4px); max-width: none; max-height: 180px;
}
.mural-img-preview:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* Vídeo inline */
.mural-video-wrap { margin-top: 6px; margin-bottom: 6px; }
.mural-video-player {
  width: 100%; max-width: 400px; max-height: 280px;
  border-radius: 10px; background: #000;
  border: 1px solid var(--border);
}
.mural-video-name {
  font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 600;
}

/* PDF card clicável */
.mural-pdf-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  text-decoration: none; color: var(--navy-2);
  margin-top: 6px; margin-bottom: 4px;
  transition: background .15s, border-color .15s;
}
.mural-pdf-card:hover { background: var(--blue-soft-bg); border-color: var(--blue-accent); }
.mural-pdf-icon { font-size: 22px; }
.mural-pdf-name {
  flex: 1; font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mural-pdf-action {
  font-size: 11px; font-weight: 700; color: var(--blue-accent);
  text-transform: uppercase; letter-spacing: .5px;
}

/* Foto Carousel overlay */
.foto-carousel-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.foto-carousel-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.85);
}
.foto-carousel-container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 95vw; max-height: 90vh;
}
.foto-carousel-close {
  position: absolute; top: -36px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; opacity: .8;
  transition: opacity .15s;
}
.foto-carousel-close:hover { opacity: 1; }
.foto-carousel-counter {
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
}
.foto-carousel-img-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  max-width: 95vw; max-height: 80vh;
}
.foto-carousel-img {
  max-width: 90vw; max-height: 78vh;
  border-radius: 10px; object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.foto-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 36px; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.foto-carousel-arrow:hover { background: rgba(255,255,255,.3); }
.foto-carousel-arrow.left { left: 10px; }
.foto-carousel-arrow.right { right: 10px; }

/* Slide animations */
.foto-carousel-img {
  transition: none;
}
.foto-carousel-img.slide-out-left {
  animation: slideOutLeft .2s ease-in forwards;
}
.foto-carousel-img.slide-out-right {
  animation: slideOutRight .2s ease-in forwards;
}
.foto-carousel-img.slide-in-left {
  animation: slideInLeft .25s ease-out forwards;
}
.foto-carousel-img.slide-in-right {
  animation: slideInRight .25s ease-out forwards;
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(60px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==================  RECLAMAÇÕES  ================== */
.recl-card { position: relative; }
.recl-footer {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  flex-wrap: wrap;
}
.recl-status-select {
  font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--navy-2); cursor: pointer;
}
/* --- Inline reply row (Mural + Reclamações) --- */
.mural-inline-reply,
.recl-reply-row {
  display: flex; gap: 8px; margin-top: 10px;
  border-top: 1px solid rgba(15,27,45,0.06); padding: 10px 16px 6px;
}
.mural-inline-input,
.recl-reply-input {
  flex: 1; font-family: 'Lato', sans-serif; font-size: 13px;
  padding: 9px 14px; border: 1px solid rgba(15,27,45,0.1);
  border-radius: 20px; background: var(--bg);
  color: var(--text-1); transition: border-color 0.15s, background 0.15s;
  resize: none; overflow-y: auto; max-height: 120px; line-height: 1.4;
}
.mural-inline-input:focus,
.recl-reply-input:focus { outline: none; border-color: var(--blue-accent); background: var(--white); }
.mural-inline-send,
.recl-reply-btn { white-space: nowrap; border-radius: 20px; padding: 8px 16px; align-self: flex-end; }

/* Inline reply layout com anexos */
.mural-inline-reply { flex-wrap: wrap; }
.mural-inline-reply-body { flex: 1; min-width: 0; }
.mural-inline-actions {
  display: flex; gap: 6px; align-items: flex-end;
}
.mural-inline-attach {
  font-size: 18px; cursor: pointer; padding: 6px 8px;
  border-radius: 50%; transition: background .15s;
}
.mural-inline-attach:hover { background: rgba(15,27,45,0.06); }
.mural-inline-preview {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
.mural-inline-thumb {
  position: relative; border-radius: 6px; overflow: hidden;
}
.mural-inline-thumb img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 6px;
}
.mural-inline-thumb-video {
  font-size: 11px; padding: 4px 8px; background: rgba(15,27,45,0.06);
  border-radius: 6px; color: var(--text-2);
}
.mural-inline-thumb-del {
  position: absolute; top: 0; right: 0; background: rgba(0,0,0,.6);
  color: #fff; border: none; font-size: 10px; cursor: pointer;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* --- Reações --- */
.mural-reacoes {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 2px;
}
.mural-reacao {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(15,27,45,0.08);
  background: rgba(15,27,45,0.03); cursor: pointer; font-size: 14px;
  transition: all .15s;
}
.mural-reacao span { font-size: 11px; font-weight: 700; color: var(--text-3); }
.mural-reacao:hover { background: rgba(15,27,45,0.06); }
.mural-reacao-mine {
  background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2);
}
.mural-reacao-mine span { color: var(--blue-accent); }
.mural-btn-react {
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: 2px 6px; opacity: .5; transition: opacity .15s;
}
.mural-btn-react:hover { opacity: 1; }
.mural-emoji-picker {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 6px;
  background: var(--bg-card, #fff); border: 1px solid rgba(15,27,45,0.1);
  border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  position: absolute; bottom: 100%; left: 0; z-index: 100;
  min-width: 200px;
}
.mural-emoji-opt {
  font-size: 22px; padding: 4px 6px; background: none; border: none;
  cursor: pointer; border-radius: 6px; transition: background .1s;
}
.mural-emoji-opt:hover { background: rgba(15,27,45,0.06); }
.mural-msg-actions { position: relative; }

/* --- Reclamações: anexos row + thumbnails --- */
.recl-anexos-row {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 4px;
}
.recl-anexo-count {
  font-size: 12px; color: var(--text-3); font-weight: 600;
}
.recl-anexo-preview {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 4px;
}
.recl-thumb-wrap {
  position: relative; width: 64px; height: 64px;
  border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.recl-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px;
}
.recl-thumb-video {
  background: var(--navy-1); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.recl-thumb-vid-icon {
  color: #fff; font-size: 18px;
}
.recl-thumb-vid-name {
  color: rgba(255,255,255,.7); font-size: 8px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 56px;
}

/* ==================  PROPAGANDAS / ANÚNCIOS  ================== */
.prop-titulo {
  font-size: 16px; font-weight: 900; color: var(--navy-2);
  margin-bottom: 4px;
}
.prop-card .prop-desc-text { color: var(--text-2); line-height: 1.5; white-space: pre-wrap; }

/* --- Imagem quadrada --- */
.prop-img-display {
  width: 100%; aspect-ratio: 1/1; border-radius: 12px;
  overflow: hidden; margin-bottom: 10px; position: relative;
  background: var(--bg);
}
.prop-img-square {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 12px;
}

/* --- Upload row no form --- */
.prop-img-upload-row {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 4px;
}
.prop-img-upload-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 8px;
  background: var(--bg); color: var(--navy-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px dashed var(--border);
  transition: background .2s;
}
.prop-img-upload-btn:hover { background: var(--border); }

.prop-img-preview-wrap {
  position: relative; width: 64px; height: 64px;
  border-radius: 10px; overflow: hidden;
  flex-shrink: 0;
}
.prop-img-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 10px;
}
.prop-img-remove {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 13px; line-height: 22px; text-align: center;
  border: none; cursor: pointer; padding: 0;
}

/* --- Edit mode --- */
.prop-edit-form { display: flex; flex-direction: column; }
.prop-edit-img-wrap {
  position: relative; width: 100%; aspect-ratio: 1/1;
  border-radius: 12px; overflow: hidden; margin-bottom: 8px;
  background: var(--bg);
}
.prop-edit-img-del {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 15px; line-height: 28px; text-align: center;
  border: none; cursor: pointer; padding: 0;
}
.prop-edit-upload-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 8px;
  background: var(--bg); color: var(--navy-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px dashed var(--border); align-self: flex-start;
  transition: background .2s;
}
.prop-edit-upload-label:hover { background: var(--border); }
.prop-edit-actions {
  display: flex; gap: 8px; margin-top: 8px;
}

/* ==================  FAB FORM WRAP (animation)  ================== */
.fab-form-wrap {
  animation: secExpand .3s ease;
}

/* ==================  ANÚNCIOS — CONTATOS  ================== */
.prop-contatos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0;
}
@media (max-width: 480px) {
  .prop-contatos-grid { grid-template-columns: 1fr; }
}
.prop-contato-field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
}
.prop-contato-ico {
  font-size: 15px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.prop-contato-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 4px;
  font-size: 13px;
  font-family: inherit;
  color: var(--navy-1);
  outline: none;
}
.prop-contato-field input::placeholder {
  color: var(--navy-3);
  opacity: .6;
}

/* Links bar on cards */
.prop-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.prop-link-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05);
}
.prop-link-ico:active {
  transform: scale(.95);
}
.prop-link-ico:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
}
.prop-link-ico svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: inherit;
}
.prop-link-ico span {
  white-space: nowrap;
}

/* Phone */
.prop-link-phone { color: var(--blue-accent); }
.prop-link-phone:hover { background: var(--blue-accent); color: #fff; }

/* WhatsApp */
.prop-link-wpp { color: #25d366; }
.prop-link-wpp:hover { background: #25d366; color: #fff; }

/* Email */
.prop-link-email { color: #ea4335; }
.prop-link-email:hover { background: #ea4335; color: #fff; }

/* Site */
.prop-link-site { color: var(--navy-2); }
.prop-link-site:hover { background: var(--navy-1); color: #fff; }

/* Instagram */
.prop-link-insta { color: #e1306c; }
.prop-link-insta:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

/* TikTok */
.prop-link-tiktok { color: #010101; }
.prop-link-tiktok:hover { background: #010101;
  color: #fff;
}

/* Autor bar (below contacts) */
.prop-autor-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--navy-3);
}
.prop-autor-bar .who {
  font-weight: 600;
  color: var(--navy-2);
}
.prop-autor-bar .when {
  color: var(--navy-3);
  opacity: .7;
}

/* ==================  LONG-PRESS GUARD (mobile)  ================== */
.lp-locked {
  position: relative;
  opacity: 0.65;
  transition: opacity .3s;
}
.lp-locked::after {
  content: '🔒';
  position: absolute;
  top: 50%; right: 4px;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
  opacity: 0.5;
}
/* Buttons/badges: icon inside is enough, skip ::after for small elements */
button.lp-locked::after,
.badge-btn.lp-locked::after,
.btn-nf-edit.lp-locked::after,
.btn-nf-del.lp-locked::after,
.btn-nf-link.lp-locked::after,
.btn-edit-forn.lp-locked::after,
.btn-del-type.lp-locked::after,
.btn-del-cat.lp-locked::after,
.vote-opt-btn.lp-locked::after {
  content: none;
}
/* Holding animation — fill effect */
.lp-holding {
  animation: lpFill 1.5s linear forwards;
}
@keyframes lpFill {
  0%   { box-shadow: inset 0 0 0 0 rgba(74,159,229,0); }
  100% { box-shadow: inset 0 0 0 50px rgba(74,159,229,0.15); }
}
/* Unlocked state */
.lp-unlocked {
  opacity: 1 !important;
  animation: lpPulse .4s ease;
}
@keyframes lpPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,159,229,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,159,229,0); }
  100% { box-shadow: none; }
}

/* ==================  ADMIN PANEL  ================== */
.admin-fab {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue-accent);
  color: var(--white);
  font-size: 28px;
  font-weight: 300;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74,159,229,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, box-shadow .15s;
}
.admin-fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(74,159,229,0.3);
}
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,27,45,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1100;   /* acima da tela de reunião (.reu-overlay = 1000) */
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;              /* Black — como o header do comunicado */
  color: var(--navy-1);
  font-size: 17px;
  letter-spacing: 0.3px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  position: relative;
}
.modal h3::after {
  /* linha de acento azul do skill */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--accent-line);
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
}
.modal label { display: block; font-size: 12px; color: var(--text-2); margin: 10px 0 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.modal input, .modal textarea, .modal select {
  width: 100%; padding: 10px 12px; border: 1px solid #e1e7ee; border-radius: 10px; background: var(--bg);
}

/* ==================  FORNECEDORES & NFs  ================== */
/* ==================  GRUPO DE FORNECEDORES POR TIPO  ================== */
.forn-group {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.forn-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--blue-soft-bg) 0%, transparent 60%);
  border-bottom: 1px solid #eef2f7;
}
.forn-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.forn-group-title .ico-sm {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.forn-group-title .txt {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--navy-1);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forn-group-title .count {
  background: var(--navy-2);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.btn-add-forn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-2);
  border: 1.5px solid var(--navy-2);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.btn-add-forn:hover {
  background: var(--navy-2);
  color: var(--white);
}
.btn-add-forn:active { transform: scale(0.92); }

.forn-group-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-del-type {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-3);
  border: 1.5px solid #d6dde5;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.forn-group:hover .btn-del-type,
.forn-group-header:focus-within .btn-del-type,
.btn-del-type:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.btn-del-type:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-del-type:active { transform: scale(0.92); }
@media (hover: none) {
  .btn-del-type { opacity: 1; pointer-events: auto; }
}

.forn-group-body {
  padding: 6px 14px 10px;
}
.forn-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eef2f7;
}
.forn-row:last-child { border-bottom: none; }
.forn-row .info { flex: 1; min-width: 0; }
.forn-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.forn-row .nome {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-1);
}
.forn-row .nome-empty {
  color: var(--text-3);
  font-weight: 500;
  font-style: italic;
}
.chip-mensal, .chip-espor {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 999px;
}
.chip-mensal { background: var(--green-bg); color: var(--green); }
.chip-espor  { background: var(--amber-bg); color: var(--amber); }
.btn-edit-forn {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy-2);
  border: 1px solid transparent;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.btn-edit-forn:hover {
  background: var(--blue-soft-bg);
  border-color: var(--navy-3);
  color: var(--navy-1);
}
.btn-edit-forn:active { transform: scale(0.94); }
.forn-row .tel {
  color: var(--navy-3);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 2px;
}
.forn-row .tel:hover { text-decoration: underline; }

/* ==================  FORNECEDOR ITEM (legado)  ================== */
.forn-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
}
.forn-item .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue-soft-bg); color: var(--navy-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}
.forn-item .info { flex: 1; min-width: 0; }
.forn-item .servico { font-weight: 700; font-size: 13px; }
.forn-item .nome { color: var(--text-2); font-size: 12px; }
.forn-item .tel {
  color: var(--navy-3); font-size: 12px; font-weight: 600;
  text-decoration: none; display: inline-block; margin-top: 2px;
}
.forn-item .tel:hover { text-decoration: underline; }

.nf-summary {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-3));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 14px;
}
.nf-summary .nf-summary-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2px;
}
.nf-summary .period {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px; opacity: 0.75;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.nf-summary .total {
  font-family: 'Lato', sans-serif;
  font-weight: 900; font-size: 30px;
  margin: 4px 0 12px; letter-spacing: -0.5px;
}
.nf-summary .subtitle { font-size: 12px; opacity: 0.85; }
.nf-summary .summary-breakdown {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nf-summary .sb-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
}
.nf-summary .sb-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  opacity: 0.95;
}
.nf-summary .sb-detail {
  font-size: 10.5px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.nf-summary .sb-val {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  opacity: 0.95;
  text-align: right;
}

.bar-chart { margin-top: 14px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.bar-row .label { flex: 0 0 40%; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-wrap { flex: 1; height: 16px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar-row .bar { height: 100%; background: linear-gradient(90deg, var(--blue-accent), var(--navy-3)); }
.bar-row .value { flex: 0 0 auto; color: var(--text-1); font-weight: 700; font-size: 11px; }

.empty {
  text-align: center; padding: 30px 20px; color: var(--text-3); font-size: 13px;
}

/* ==================  LOADING  ================== */
.loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-1);
  z-index: 9999;
}
.loading::after {
  content: '';
  display: block;
  width: 0; height: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.hidden { display: none !important; }

/* ==================  EDITAR FORNECEDOR (modal)  ================== */
.check-row {
  display: flex;
  align-items: center;
  margin: 14px 0 6px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px !important;
  color: var(--navy-1) !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  user-select: none;
}
.check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--navy-2);
  cursor: pointer;
  margin: 0;
}
.help {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
  margin-top: 4px;
}
.esp-row {
  display: grid;
  grid-template-columns: 130px 1fr 90px 30px;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}
.esp-row input {
  width: 100%;
  padding: 8px 10px !important;
  border: 1px solid #e1e7ee !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  background: var(--white) !important;
}
.esp-row .esp-del {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--red);
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
}
.esp-row .esp-del:hover { background: var(--red-bg); border-color: var(--red); }
.btn-esp-add {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy-2);
  border: 1.5px dashed #d7e2f0 !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-esp-add:hover {
  background: var(--blue-soft-bg) !important;
  border-color: var(--navy-3) !important;
}
.btn-danger {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
}
.btn-danger:hover {
  background: var(--red);
  color: var(--white);
}
.btn-danger:active { transform: scale(0.98); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

/* ==================  STATUS: CATEGORY HEADER (with delete btn)  ================== */
.cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
  padding: 0 4px;
}
.cat-header .section-title.cat-title {
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.cat-header .section-title.cat-title .count {
  background: var(--blue-soft-bg);
  color: var(--navy-2);
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.btn-del-cat {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-3);
  border: 1.5px solid #d6dde5;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.cat-header:hover .btn-del-cat,
.btn-del-cat:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.btn-del-cat:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-del-cat:active { transform: scale(0.92); }
@media (hover: none) {
  .btn-del-cat { opacity: 1; pointer-events: auto; }
}

/* ==================  NFs: AÇÕES (adicionar NF / relatório)  ================== */
.nf-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn-nf-add, .btn-nf-report {
  flex: 1 1 140px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-nf-add {
  background: var(--navy-2);
  color: var(--white);
  border: 1.5px solid var(--navy-2);
}
.btn-nf-add:hover { background: var(--navy-1); border-color: var(--navy-1); }
.btn-nf-add:active { transform: scale(0.97); }
.btn-nf-report {
  background: var(--white);
  color: var(--navy-2);
  border: 1.5px solid var(--navy-2);
}
.btn-nf-report:hover {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}
.btn-nf-report:active { transform: scale(0.97); }

/* ==================  RELATÓRIO — IDENTIDADE VISUAL CONDOMÍNIO  ================== */
.rel-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  padding: 0;
  font-family: 'Lato', sans-serif;
  touch-action: auto;
}
.rel-doc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100%;
  box-shadow: var(--shadow-md);
}
.rel-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid #e1e7ee;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.rel-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--navy-2);
  border: 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rel-close:hover { background: var(--red); color: var(--white); }
.rel-period-select {
  background: var(--white);
  border: 1.5px solid #d6dde5;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--navy-1);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.rel-period-label {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: var(--navy-1);
  font-size: 13px;
  letter-spacing: 1px;
}
.rel-print {
  margin-left: auto;
  background: var(--navy-2);
  color: var(--white);
  border: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rel-print:hover { background: var(--navy-1); }
.rel-print:active { transform: scale(0.97); }

.rel-header {
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: var(--white);
  padding: 36px 32px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.rel-header-mark {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -1px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.rel-header-text { line-height: 1.1; }
.rel-header-t1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.rel-header-t2 {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-top: 6px;
}
.rel-accent {
  height: 3px;
  width: 80px;
  background: var(--blue-accent);
  margin: 0 32px;
  border-radius: 2px;
}
.rel-period-block {
  padding: 20px 32px 8px;
}
.rel-period-month {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--navy-1);
  letter-spacing: -0.5px;
}
.rel-period-year {
  font-weight: 500;
  color: var(--navy-3);
  font-size: 22px;
}
.rel-period-code {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.rel-total-card {
  margin: 16px 32px 24px;
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
}
.rel-total-label {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.75;
}
.rel-total-value {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -1px;
  margin-top: 2px;
}
.rel-total-break {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rel-tb-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
}
.rel-tb-row > span:first-child { opacity: 0.9; font-weight: 500; }
.rel-tb-count {
  font-weight: 700;
  font-size: 11px;
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 999px;
}
.rel-tb-val {
  font-weight: 700;
  font-size: 14px;
  min-width: 90px;
  text-align: right;
}

.rel-section { padding: 8px 32px 24px; }
.rel-section-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--navy-1);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.rel-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-accent), transparent);
  border-radius: 2px;
}
.rel-empty {
  color: var(--text-3);
  font-style: italic;
  font-size: 13px;
  padding: 10px 0;
}
.rel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rel-nf-card {
  background: var(--white);
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rel-nf-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}
.rel-nf-num {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 11px;
  color: var(--blue-accent);
  letter-spacing: 1px;
}
.rel-nf-name {
  min-width: 0;
  overflow: hidden;
}
.rel-nf-fant {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--navy-1);
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-nf-razao {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  color: var(--text-2);
  font-size: 11.5px;
  margin-top: 2px;
}
.rel-nf-val {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--navy-1);
}
.rel-nf-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e7ecf2;
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
}
.rel-nf-meta strong {
  color: var(--navy-3);
  font-weight: 700;
}
.rel-nf-srv {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-1);
  line-height: 1.4;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.rel-forn-card {
  background: var(--white);
  border: 1px solid #e7ecf2;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.rel-forn-name { flex: 1; min-width: 0; }
.rel-forn-name strong {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--navy-1);
  font-size: 13px;
  display: block;
}
.rel-forn-srv {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11.5px;
}
.rel-forn-val {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: var(--navy-1);
  font-size: 13.5px;
}

.rel-footer {
  background: var(--bg);
  margin-top: 16px;
  padding: 22px 32px 30px;
  border-top: 1px solid #e1e7ee;
}
.rel-sign {
  border-top: 2px solid var(--navy-1);
  padding-top: 8px;
  max-width: 240px;
}
.rel-sign-name {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: var(--navy-1);
  font-size: 14px;
}
.rel-sign-role {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.rel-meta {
  margin-top: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.2px;
  line-height: 1.6;
}

/* Print styles — relatório fica como folha A4 limpa */
@media print {
  @page { size: A4; margin: 0; }
  body { background: white !important; }
  .app-header, .tab-bar, .admin-fab, .app-main, .modal-overlay { display: none !important; }
  .rel-overlay { position: static; background: white; padding: 0; }
  .rel-doc { max-width: none; box-shadow: none; margin: 0; }
  .rel-toolbar, .no-print { display: none !important; }
  .rel-total-card { break-inside: avoid; }
  .rel-nf-card, .rel-forn-card { break-inside: avoid; }
  .rel-section { break-inside: avoid-page; }
  .rel-footer { break-inside: avoid; }
}

/* ==================  HISTÓRICO  ================== */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.log-entry {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  font-family: 'Lato', sans-serif;
}
.log-entry:last-child { border-bottom: 0; }
.log-line-1 {
  font-size: 13px;
  color: var(--navy-1);
  font-weight: 500;
  line-height: 1.35;
}
.log-line-1 strong {
  font-weight: 900;
  color: var(--navy-1);
}
.log-verb {
  color: var(--blue-accent);
  font-weight: 700;
  margin: 0 3px;
}
.log-alvo {
  color: var(--navy-3);
  font-weight: 600;
}
.log-line-2 {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  line-height: 1.4;
  font-weight: 400;
}
.log-line-3 {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ---------- NF UPLOAD MODAL ---------- */
.nfu-file-field {
  margin-top: 6px;
  margin-bottom: 14px;
}
.nfu-file-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0.1px;
  height: 0.1px;
  overflow: hidden;
}
.nfu-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px 12px;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.nfu-file-drop:hover,
.nfu-file-drop.drag {
  border-color: var(--blue-accent);
  background: var(--blue-soft-bg, #eaf3fb);
}
.nfu-file-ico {
  font-size: 28px;
  line-height: 1;
}
.nfu-file-lead {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-2);
}
.nfu-file-sub {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.nfu-file-info {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  word-break: break-all;
}
.nfu-file-info strong {
  color: var(--navy-2);
  font-weight: 700;
}
.nfu-hint,
.nfu-warn {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.nfu-hint {
  background: var(--blue-soft-bg, #eaf3fb);
  color: var(--navy-2);
  border-left: 3px solid var(--blue-accent);
}
.nfu-hint code {
  background: rgba(74, 159, 229, 0.14);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.nfu-warn {
  background: #fff8e6;
  color: #8a6500;
  border-left: 3px solid var(--amber, #e5a44a);
}
.nfu-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}
.nfu-status code {
  background: rgba(15, 27, 45, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

/* --- Extração de dados --- */
.nfu-extracting {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy-3);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.nfu-extracting.nfu-extract-ok {
  background: #eaf7ee;
  color: #2a7f46;
}
.nfu-extracting.nfu-extract-warn {
  background: #fff8e6;
  color: #8a6500;
}
.nfu-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.nfu-field-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-3);
  margin-bottom: 2px;
  display: block;
}
.nfu-field-group input,
.nfu-field-group textarea {
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-1);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.nfu-field-group input:focus,
.nfu-field-group textarea:focus {
  border-color: var(--blue-accent);
  outline: none;
}
.nfu-field-row {
  display: flex;
  gap: 10px;
}

/* ---------- NF LIST (aba Fornecedores) ---------- */
.nf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.nf-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nf-item:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 2px 8px rgba(15, 27, 45, 0.06);
}
.nf-item-main {
  flex: 1;
  min-width: 0;
}
.nf-item-destaque {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.nf-item-nome {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--navy-1);
  word-break: break-word;
  line-height: 1.3;
}
.nf-item-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.nf-chip-disk,
.nf-chip-pdf {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 4px;
}
.nf-chip-disk {
  background: #eaf7ee;
  color: #2a7f46;
}
.nf-chip-pdf {
  background: var(--navy-1);
  color: var(--white);
}
.nf-item-meta {
  margin-top: 4px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.nf-item-val {
  color: var(--navy-2);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.nf-item-razao {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  word-break: break-word;
  margin-top: 2px;
}
.nf-chip-linked {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8f0fe;
  color: #1a56db;
}
.btn-nf-edit,
.btn-nf-link {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy-2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-nf-edit:hover {
  background: var(--bg);
  border-color: var(--navy-3);
  color: var(--navy-1);
}
.btn-nf-link:hover {
  background: #e8f0fe;
  border-color: #1a56db;
  color: #1a56db;
}
.nf-item-srv {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  font-style: italic;
}
.nf-item-path {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}
.nf-item-obs {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.nf-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.btn-nf-open,
.btn-nf-del {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-nf-open {
  background: var(--navy-2);
  color: var(--white);
  border-color: var(--navy-2);
}
.btn-nf-open:hover { background: var(--navy-1); border-color: var(--navy-1); }
.btn-nf-open:active { transform: scale(0.97); }
.btn-nf-del {
  background: transparent;
  color: var(--red);
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.nf-item:hover .btn-nf-del,
.nf-item:focus-within .btn-nf-del {
  opacity: 1;
  pointer-events: auto;
}
.btn-nf-del:hover { background: var(--red-bg); }
@media (hover: none) {
  .btn-nf-del { opacity: 1; pointer-events: auto; }
}

/* ---------- REPORT: Abrir PDF ---------- */
.rel-nf-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.rel-nf-open {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--blue-accent);
  color: var(--white);
  border: 1px solid var(--blue-accent);
  cursor: pointer;
  transition: all 0.15s ease;
}
.rel-nf-open:hover { filter: brightness(0.92); }
.rel-nf-open:active { transform: scale(0.97); }

/* ---------- NF Viewer overlay ---------- */
.nf-viewer-overlay {
  position: fixed; inset: 0;
  z-index: 400;
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  touch-action: auto;
}
.nf-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--navy-2);
  flex-shrink: 0;
}
.nf-viewer-close,
.nf-viewer-download {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.nf-viewer-close {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.nf-viewer-close:active { background: rgba(255,255,255,0.2); }
.nf-viewer-download {
  background: var(--blue-accent);
  color: var(--white);
}
.nf-viewer-pages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.nf-viewer-canvas {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nf-viewer-loading {
  color: #8899aa;
  font-size: 14px;
  padding: 60px 20px;
  text-align: center;
}

/* ---------- CÂMERAS (DVR Hikvision) ---------- */
.cam-container { padding: 16px 12px; }
.cam-container .section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cam-container .section-header h2 {
  font-size: 18px; font-weight: 800; color: var(--navy-1); margin: 0;
}
.cam-status {
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 12px; background: var(--bg);
}

/* Grid de câmeras — lista vertical mobile, 2-3 col desktop */
.cam-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px)  {
  .cam-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cam-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Landscape mobile: 2 colunas */
@media (max-width: 900px) and (orientation: landscape) {
  .cam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.cam-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cam-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.cam-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a2e;
  overflow: hidden;
}
.cam-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cam-img.cam-no-signal {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #556; background: #1a1a2e;
  object-fit: none;
}
/* Video wrapper inline (live view no grid) */
.cam-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a1a;
  overflow: hidden;
}
.cam-video-wrap iframe,
.cam-video-wrap canvas,
.cam-video-wrap video {
  width: 100% !important;
  height: 100% !important;
}
.cam-video-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #667; font-size: 12px; font-weight: 600;
  z-index: 1; pointer-events: none;
}
/* Label bar com botão fullscreen */
.cam-label-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
}
.cam-fullscreen-btn {
  width: 32px; height: 32px;
  border-radius: 8px; border: none;
  background: var(--bg); color: var(--text-2);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cam-fullscreen-btn:active { background: var(--border); }
.cam-live-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: cam-blink 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(239,68,68,0.6);
}
@keyframes cam-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.cam-label {
  padding: 10px 14px;
  font-size: 14px; font-weight: 700;
  color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Offline / erro */
.cam-offline {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}
.cam-offline-icon { font-size: 48px; margin-bottom: 12px; }
.cam-offline p { margin: 4px 0; }
.cam-offline-hint { font-size: 12px; color: var(--text-3); }
.cam-offline .btn-primary {
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--blue-accent); color: var(--white);
  border: none; border-radius: 8px; font-weight: 700;
  cursor: pointer;
}

/* Fullscreen overlay — vídeo ocupa 100% da tela */
.cam-fullscreen-overlay {
  position: fixed; inset: 0;
  z-index: 400;
  background: #000;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cam-fs-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
}
/* Fullscreen body + player — preenche TODA a tela */
.cam-fs-body {
  position: absolute; inset: 0;
  overflow: hidden;
}
#cam-player-container {
  width: 100% !important;
  height: 100% !important;
  position: absolute; inset: 0;
}
#cam-player-container iframe,
#cam-player-container canvas,
#cam-player-container video,
#cam-player-container > div {
  width: 100% !important;
  height: 100% !important;
}

/* Botão voltar sempre visível */
.cam-fs-close {
  z-index: 20;
  min-width: 80px;
  min-height: 44px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cam-fs-close:active { background: rgba(255,255,255,0.2); }

.cam-fs-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.5);
  z-index: 1; pointer-events: none;
}
.cam-fs-close {
  font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff;
}
.cam-fs-close:active { background: rgba(255,255,255,0.2); }
.cam-fs-title {
  font-size: 14px; font-weight: 700; color: #fff;
  flex: 1; text-align: center;
}
.cam-fs-live {
  font-size: 11px; font-weight: 700; color: #ef4444;
  animation: cam-blink 2s ease-in-out infinite;
}
.cam-fs-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cam-fs-img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.cam-fs-loading {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  transition: opacity 0.3s;
}

/* Botão engrenagem do síndico */
.cam-settings-btn {
  width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: var(--bg); color: var(--text-2);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cam-settings-btn:active { background: var(--border); }

/* Card desabilitado (síndico vê, moradores não) */
.cam-card-disabled { opacity: 0.5; }
.cam-disabled-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}

/* ── Painel de configuração de câmeras ── */
.cam-settings-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px; background: var(--bg);
}
.cam-settings-hint {
  font-size: 13px; color: var(--text-3);
  margin: 0 0 16px; text-align: center;
}
.cam-settings-save {
  font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 8px 20px; border-radius: 8px;
  border: none; cursor: pointer;
  background: #22c55e; color: #fff;
}
.cam-settings-save:active { background: #16a34a; }
.cam-settings-save:disabled { opacity: 0.5; }
.cam-settings-list {
  display: flex; flex-direction: column; gap: 10px;
}
.cam-settings-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex; gap: 12px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.cam-settings-preview {
  width: 100px; min-width: 100px; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden;
  background: #1a1a2e;
}
.cam-settings-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cam-settings-info {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  justify-content: center;
}
.cam-name-input {
  width: 100%; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--text-1);
}
.cam-name-input:focus {
  outline: none; border-color: var(--blue-accent);
}
.cam-ch-badge {
  font-size: 10px; color: var(--text-3); font-weight: 600;
}

/* Toggle switch */
.cam-settings-toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px; flex-shrink: 0;
}
.cam-toggle-input { opacity: 0; width: 0; height: 0; }
.cam-toggle-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 24px;
  transition: 0.25s;
}
.cam-toggle-slider::before {
  content: '';
  position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: 0.25s;
}
.cam-toggle-input:checked + .cam-toggle-slider {
  background: #22c55e;
}
.cam-toggle-input:checked + .cam-toggle-slider::before {
  transform: translateX(20px);
}

/* ---------- SWIPE-TO-DELETE (WhatsApp style) ---------- */
.swipe-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.swipe-container .card,
.swipe-container .rel-nf-card {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.swipe-container.swiping .card,
.swipe-container.swiping .rel-nf-card {
  transition: none;
}
.swipe-delete-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 90px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.swipe-container.show-delete .swipe-delete-bg {
  opacity: 1;
}
.swipe-delete-bg svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}
.swipe-delete-bg span {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.swipe-delete-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ===== ABA ÁGUA ===== */
.agua-container { max-width: 900px; margin: 0 auto; }
.agua-header {
  background: linear-gradient(135deg, #0e7490, #06b6d4);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.agua-title { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.agua-periodo { font-size: 13px; opacity: .85; margin-top: 4px; }
.agua-totais {
  display: flex; gap: 16px; margin-top: 14px;
  flex-wrap: wrap;
}
.agua-total-item {
  background: rgba(255,255,255,.15);
  border-radius: 10px; padding: 10px 16px;
  flex: 1; min-width: 140px;
}
.agua-total-label { display: block; font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.agua-total-val { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; }
.agua-proxima {
  margin-top: 10px; padding: 8px 14px;
  background: rgba(255,255,255,.12); border-radius: 8px;
  font-size: 13px; display: inline-block;
}
.agua-proxima-urgente { background: rgba(251,191,36,.25); }
.agua-proxima-atrasada { background: rgba(239,68,68,.25); }
.agua-rateio-aviso {
  font-size: 11px; opacity: .6; margin-top: 8px; font-style: italic;
}
.agua-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.btn-agua-add {
  background: #fff; color: #0e7490; border: none; border-radius: 10px;
  padding: 8px 18px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.btn-agua-add:hover { background: #ecfeff; }
.btn-agua-pdf {
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px; padding: 8px 18px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all .2s;
}
.btn-agua-pdf:hover { background: rgba(255,255,255,.3); }
.agua-select {
  background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
}
.agua-select option { background: #0e7490; color: #fff; }

.agua-empty {
  text-align: center; padding: 40px 20px; color: #94a3b8;
  font-size: 15px; line-height: 1.6;
}
.agua-empty-ico { font-size: 48px; margin-bottom: 10px; }

/* Tabela */
.agua-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.agua-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  font-size: 13px;
}
.agua-table thead th {
  background: #f0f9ff; color: #0e7490;
  padding: 10px 8px; text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap; border-bottom: 2px solid #e0f2fe;
}
.agua-table th.agua-num, .agua-table td.agua-num { text-align: right; }
.agua-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.agua-table tbody tr:hover { background: #f8fafc; }
.agua-table tbody td { padding: 9px 8px; white-space: nowrap; }
.agua-table tfoot td {
  padding: 10px 8px; background: #f0f9ff;
  border-top: 2px solid #e0f2fe;
}

.agua-casa { display: flex; align-items: center; gap: 8px; }
.agua-casa-num { font-weight: 700; color: #334155; font-size: 14px; }
.agua-minha-badge {
  background: #06b6d4; color: #fff; font-size: 9px;
  padding: 2px 6px; border-radius: 6px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
tr.agua-minha { background: #ecfeff !important; }
tr.agua-minha td { font-weight: 600; }

.agua-consumo-cell { min-width: 130px; }
.agua-consumo-bar-wrap { position: relative; display: flex; align-items: center; }
.agua-consumo-bar {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 20px; background: #cffafe; border-radius: 4px;
  transition: width .3s ease;
}
.agua-consumo-val { position: relative; z-index: 1; padding-left: 4px; }
.agua-alert { color: #dc2626; font-weight: 700; }
.agua-ok { color: #16a34a; font-weight: 700; }
.agua-total-col { background: rgba(6,182,212,.04); }
.agua-footer td { font-weight: 700; }

/* Info tarifária */
.agua-info {
  background: #f8fafc; border-radius: 12px; padding: 16px; margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.agua-info-title { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 10px; }
.agua-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agua-info-subtitle { font-weight: 700; color: #0e7490; margin-bottom: 6px; font-size: 13px; }
.agua-faixa { font-size: 12px; color: #64748b; padding: 2px 0; }
.agua-disclaimer { margin-top: 10px; font-size: 11px; color: #94a3b8; font-style: italic; }

/* Modal leitura */
.agua-form-grid { max-height: 380px; overflow-y: auto; margin-top: 10px; padding: 4px 0; }
.agua-form-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.agua-form-label { font-weight: 700; color: var(--text-1); min-width: 70px; font-size: 13px; margin: 0 !important; }
.agua-form-input { flex: 1; max-width: 160px; padding: 8px 10px !important; }

/* ---- Acesso Negado ---- */
.agua-denied {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 50vh; text-align: center;
  padding: 40px 20px;
}
.agua-denied-ico { font-size: 56px; margin-bottom: 16px; opacity: .7; }
.agua-denied-msg {
  font-size: 18px; font-weight: 700; color: var(--text-2, #cbd5e1);
  line-height: 1.6;
}

/* ---- Toggle Condomínio / Individual ---- */
.agua-mode-toggle {
  display: flex; gap: 4px; justify-content: center;
  background: rgba(0,0,0,.25); border-radius: 10px; padding: 3px;
  margin: 10px auto 8px; max-width: 280px;
}
.agua-mode-btn {
  flex: 1; padding: 8px 12px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.5);
  transition: all .25s ease; font-family: 'Lato', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.agua-mode-btn.agua-mode-active {
  background: rgba(6,182,212,.25); color: #22d3ee;
  box-shadow: 0 1px 4px rgba(6,182,212,.2);
}
.agua-mode-btn:hover:not(.agua-mode-active) { color: rgba(255,255,255,.8); }

/* ---- Visão Individual ---- */
.agua-individual { padding: 10px 0; }
.agua-ind-card {
  max-width: 420px; margin: 0 auto; text-align: center;
}
.agua-ind-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.agua-ind-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none;
  color: var(--text-1, #f1f5f9); font-size: 28px;
  cursor: pointer; transition: all .2s; display: flex;
  align-items: center; justify-content: center;
}
.agua-ind-arrow:hover { background: rgba(6,182,212,.2); color: #22d3ee; }
.agua-ind-arrow-disabled { opacity: .2; pointer-events: none; }
.agua-ind-center { flex: 1; }
.agua-ind-icon { font-size: 36px; margin-bottom: 4px; }
.agua-ind-counter {
  font-size: 13px; font-weight: 700; color: #06b6d4;
  letter-spacing: 1px; margin-bottom: 4px;
}
.agua-ind-counter span { color: var(--text-3, #64748b); font-weight: 400; }
.agua-ind-num {
  font-size: 80px; font-weight: 900; color: #22d3ee;
  line-height: 1; letter-spacing: -2px;
  filter: drop-shadow(0 0 20px rgba(6,182,212,.35));
}
.agua-ind-label {
  font-size: 13px; font-weight: 600; color: var(--text-3, #94a3b8);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 2px;
}

.agua-ind-reading {
  margin: 20px 0 16px;
}
.agua-ind-meter {
  background: rgba(255,255,255,.05); border-radius: 16px;
  padding: 18px 24px; border: 1px solid rgba(6,182,212,.15);
}
.agua-ind-meter-label {
  font-size: 11px; font-weight: 600; color: var(--text-3, #94a3b8);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.agua-ind-meter-val {
  font-size: 32px; font-weight: 800; color: var(--text-1, #f1f5f9);
  letter-spacing: 2px; font-variant-numeric: tabular-nums;
}

.agua-ind-stats { margin-top: 8px; }
.agua-ind-stat { margin-bottom: 16px; }
.agua-ind-stat-label {
  font-size: 11px; font-weight: 600; color: var(--text-3, #94a3b8);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px;
}
.agua-ind-consumo {
  font-size: 22px; font-weight: 800; color: #22d3ee; margin-bottom: 8px;
}
.agua-ind-bar-wrap {
  height: 6px; background: rgba(255,255,255,.08); border-radius: 3px;
  overflow: hidden; max-width: 280px; margin: 0 auto;
}
.agua-ind-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  transition: width .4s ease;
}

.agua-ind-costs {
  display: flex; flex-direction: column; gap: 6px;
  max-width: 300px; margin: 0 auto;
}
.agua-ind-cost {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.agua-ind-cost-ico { font-size: 16px; }
.agua-ind-cost-label {
  flex: 1; text-align: left; font-size: 13px;
  font-weight: 600; color: var(--text-2, #cbd5e1);
}
.agua-ind-cost-val {
  font-size: 15px; font-weight: 700; color: var(--text-1, #f1f5f9);
  font-variant-numeric: tabular-nums;
}
.agua-ind-cost-total {
  background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.2);
}
.agua-ind-cost-total .agua-ind-cost-val { color: #22d3ee; font-size: 17px; }

.agua-ind-no-data {
  padding: 24px; color: var(--text-3, #94a3b8); font-size: 14px;
  font-style: italic;
}

/* ---- Wizard Nova Leitura ---- */
.agua-wizard-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-card, #1e293b);
  display: flex; align-items: center; justify-content: center;
}
.agua-wizard {
  width: 100%; max-width: 420px; padding: 24px 20px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative; min-height: 100dvh;
  justify-content: center;
}
.agua-wizard-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-3, #94a3b8);
  font-size: 28px; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.agua-wizard-close:hover { color: var(--text-1, #f1f5f9); }
.agua-wizard-progress {
  width: 100%; height: 4px; background: rgba(255,255,255,.1);
  border-radius: 2px; position: absolute; top: 0; left: 0;
}
.agua-wizard-progress-bar {
  height: 100%; background: linear-gradient(90deg, #06b6d4, #22d3ee);
  border-radius: 2px; transition: width .3s ease;
}
.agua-wizard-icon { font-size: 48px; margin-bottom: 12px; }
.agua-wizard-title {
  font-size: 22px; font-weight: 800; color: var(--text-1, #f1f5f9);
  letter-spacing: .5px; margin-bottom: 6px;
}
.agua-wizard-subtitle {
  font-size: 14px; color: var(--text-3, #94a3b8); margin-bottom: 20px;
}
.agua-wizard-date {
  padding: 14px 18px; font-size: 18px; border-radius: 12px;
  border: 2px solid rgba(6,182,212,.3); background: rgba(255,255,255,.05);
  color: var(--text-1, #f1f5f9); text-align: center; width: 100%; max-width: 260px;
  margin-bottom: 24px;
}
.agua-wizard-date:focus { border-color: #06b6d4; outline: none; }
.agua-wizard-counter {
  font-size: 14px; font-weight: 700; color: #06b6d4;
  margin-bottom: 8px; letter-spacing: 1px;
}
.agua-wizard-counter span { color: var(--text-3, #64748b); font-weight: 400; }
.agua-wizard-casa-num {
  font-size: 96px; font-weight: 900; color: #22d3ee;
  line-height: 1; letter-spacing: -2px;
  filter: drop-shadow(0 0 24px rgba(6,182,212,.4));
}
.agua-wizard-casa-label {
  font-size: 14px; font-weight: 600; color: var(--text-3, #94a3b8);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}
.agua-wizard-input {
  width: 100%; max-width: 280px; padding: 16px 20px;
  font-size: 28px; font-weight: 700; text-align: center;
  border-radius: 16px; border: 2px solid rgba(6,182,212,.3);
  background: rgba(255,255,255,.05); color: var(--text-1, #f1f5f9);
  letter-spacing: 2px; margin-bottom: 28px;
}
.agua-wizard-input:focus {
  border-color: #06b6d4; outline: none;
  box-shadow: 0 0 0 4px rgba(6,182,212,.15);
}
.agua-wizard-input::placeholder { color: #475569; }
.agua-wizard-actions {
  display: flex; gap: 10px; width: 100%; max-width: 320px;
}
.agua-wizard-btn {
  flex: 1; padding: 14px 10px; border-radius: 12px; border: none;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all .2s ease;
}
.agua-wizard-btn-go {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff; font-size: 18px; max-width: 260px; width: 100%;
}
.agua-wizard-btn-go:hover { filter: brightness(1.1); }
.agua-wizard-btn-back {
  background: rgba(255,255,255,.08); color: var(--text-3, #94a3b8);
  flex: 0 0 auto; padding: 14px 16px;
}
.agua-wizard-btn-back:hover { background: rgba(255,255,255,.12); }
.agua-wizard-btn-skip {
  background: rgba(255,255,255,.08); color: var(--text-3, #94a3b8);
  flex: 0 0 auto; padding: 14px 16px;
}
.agua-wizard-btn-skip:hover { background: rgba(255,255,255,.12); }
.agua-wizard-btn-confirm {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 20px; flex: 1.5;
}
.agua-wizard-btn-confirm:hover { filter: brightness(1.1); }

/* Mobile */
@media (max-width: 699px) {
  .agua-header { border-radius: 12px; padding: 16px; }
  .agua-title { font-size: 17px; }
  .agua-total-val { font-size: 17px; }
  .agua-table { font-size: 11px; }
  .agua-table thead th { padding: 8px 5px; font-size: 10px; }
  .agua-table tbody td { padding: 7px 5px; }
  .agua-info-grid { grid-template-columns: 1fr; }
  .agua-consumo-cell { min-width: 100px; }
  .agua-wizard-casa-num { font-size: 120px; }
  .agua-wizard-input { font-size: 32px; padding: 18px 20px; }
  .agua-wizard-btn { padding: 16px 10px; }
  .agua-wizard-btn-confirm { font-size: 22px; }
}

@media (min-width: 700px) {
  .app-main { padding: 20px 20px 100px; }
}

/* ==================  NOTIFICAÇÕES  ================== */
.notif-container { padding: 0 4px; }

.notif-section-label {
  font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700;
  color: #f97316; text-transform: uppercase; letter-spacing: 1px;
  margin: 18px 0 8px 4px;
}
.notif-section-confirmed { color: #64748b; }

.notif-card {
  background: #fff; border-radius: 14px; padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15,27,45,.08);
  border-left: 4px solid #f97316;
  transition: opacity .3s;
}
.notif-confirmed {
  border-left-color: #10b981;
  opacity: .7;
}

.notif-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.notif-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff7ed; color: #c2410c; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  font-family: 'Lato', sans-serif;
}
.notif-confirmed .notif-cat-badge { background: #f0fdf4; color: #166534; }

.notif-casa-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eff6ff; color: #1e40af; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  font-family: 'Lato', sans-serif;
}

.notif-card-body { margin-bottom: 10px; }
.notif-msg {
  font-family: 'Lato', sans-serif; font-size: 15px; color: #1e293b;
  line-height: 1.5;
}

.notif-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.notif-meta {
  display: flex; flex-direction: column; gap: 2px;
}
.notif-autor {
  font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 600;
  color: #64748b;
}
.notif-data {
  font-family: 'Lato', sans-serif; font-size: 10px; color: #94a3b8;
}

.notif-actions { display: flex; align-items: center; gap: 8px; }

.notif-btn-positivo {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-family: 'Lato', sans-serif;
  font-size: 15px; font-weight: 800; cursor: pointer;
  letter-spacing: .5px;
  box-shadow: 0 3px 12px rgba(16,185,129,.3);
  transition: transform .15s, box-shadow .15s;
}
.notif-btn-positivo:active { transform: scale(.96); }

.notif-confirmed-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700;
  color: #059669;
}
.notif-confirmed-by {
  font-size: 10px; font-weight: 400; color: #64748b;
}

.notif-awaiting {
  font-family: 'Lato', sans-serif; font-size: 12px; color: #f59e0b;
  font-weight: 600;
}

.notif-btn-delete {
  background: none; border: none; cursor: pointer;
  font-size: 18px; padding: 4px; opacity: .5;
  transition: opacity .2s;
}
.notif-btn-delete:hover { opacity: 1; }

/* Form - modal nova notificação */
.notif-form { display: flex; flex-direction: column; gap: 12px; }
.notif-form-label {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: -4px;
}

.notif-cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.notif-cat-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px;
  padding: 12px 6px; cursor: pointer; transition: all .2s;
  font-family: 'Lato', sans-serif;
}
.notif-cat-opt:hover { border-color: #f97316; background: #fff7ed; }
.notif-cat-opt.active {
  border-color: #f97316; background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.notif-cat-opt-ico { font-size: 24px; }
.notif-cat-opt-label { font-size: 11px; font-weight: 600; color: #334155; }

.notif-select {
  width: 100%; padding: 12px; border: 2px solid #e2e8f0;
  border-radius: 10px; font-family: 'Lato', sans-serif; font-size: 14px;
  color: #1e293b; background: #f8fafc;
  appearance: auto;
}
.notif-select:focus { border-color: #f97316; outline: none; }

.notif-textarea {
  width: 100%; padding: 12px; border: 2px solid #e2e8f0;
  border-radius: 10px; font-family: 'Lato', sans-serif; font-size: 14px;
  color: #1e293b; background: #f8fafc; resize: vertical;
  min-height: 80px;
}
.notif-textarea:focus { border-color: #f97316; outline: none; }

/* 5 categorias: última centralizada */
@media (max-width: 400px) {
  .notif-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .notif-cat-grid .notif-cat-opt:nth-child(5) {
    grid-column: 1 / -1; max-width: 50%; justify-self: center;
  }
}

/* ===== Câmeras: públicas vs privadas ===== */
.cam-scope-bar {
  display: flex; gap: 8px; margin: 4px 0 14px;
}
.cam-scope-btn {
  flex: 1; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 12px;
  background: #fff; color: #475569; font-family: 'Lato', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.cam-scope-btn.active {
  border-color: #6366f1; background: #eef2ff; color: #4338ca;
}

/* ===== Central: sub-abas (Notificações / Sugestões / Reclamações) ===== */
.central-tabs {
  display: flex; gap: 6px; margin: 0 0 16px;
}
.central-tab {
  flex: 1; padding: 10px 6px; border: 2px solid #e2e8f0; border-radius: 12px;
  background: #fff; color: #475569; font-family: 'Lato', sans-serif;
  font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.central-tab.active {
  border-color: #f97316; background: #fff7ed; color: #c2410c;
}
.central-tab-badge {
  display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 9px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
}

/* ===== Ouvidoria (sugestões e reclamações) ===== */
.ouv-hint {
  font-size: 12.5px; color: #64748b; background: #f8fafc;
  border: 1px dashed #cbd5e1; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px; line-height: 1.5;
}
.ouv-resposta {
  margin-top: 10px; padding: 10px 12px; border-left: 3px solid #22c55e;
  background: #f0fdf4; border-radius: 0 10px 10px 0; font-size: 13.5px;
  color: #1e293b;
}
.ouv-resposta-label {
  font-size: 11.5px; font-weight: 800; color: #16a34a; margin-bottom: 4px;
}
.ouv-btn-responder {
  padding: 7px 12px; border: none; border-radius: 9px;
  background: #f97316; color: #fff; font-family: 'Lato', sans-serif;
  font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.ouv-btn-responder:active { transform: scale(.96); }

/* ===== Modal de logout ===== */
.logout-modal { text-align: center; padding: 6px 4px 2px; }
.logout-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fef2f2; color: #ef4444;
}
.logout-icon svg { width: 30px; height: 30px; }
.logout-title {
  margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--navy-1, #0f1b2d);
}
.logout-msg {
  margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: #64748b;
}
.logout-actions { gap: 10px; }
.logout-actions .btn-secondary { background: var(--bg, #f1f5f9); }
.btn-danger {
  flex: 1; padding: 12px 16px; border: none; border-radius: 12px;
  background: #ef4444; color: #fff; font-family: 'Lato', sans-serif;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn-danger:active { background: #dc2626; transform: scale(.97); }

/* Badge de arquivado (picker de status) */
.badge.arq { background: #f1f5f9; color: #475569; }

/* Modal de configuração de câmeras (compacto) */
.cam-cfg-hint {
  margin: 0 0 10px; font-size: 12px; color: var(--text-3);
}
.cam-cfg-group {
  margin: 14px 0 6px; font-size: 12.5px; font-weight: 800; color: var(--navy-1);
  text-transform: uppercase; letter-spacing: .4px;
}
.cam-cfg-group:first-of-type { margin-top: 6px; }
.cam-cfg-group-sub {
  font-size: 10.5px; font-weight: 600; color: var(--text-3);
  text-transform: none; letter-spacing: 0;
}
.cam-cfg-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
}
.modal .cam-cfg-row input.cam-name-input {
  flex: 1; min-width: 0; margin: 0; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; background: var(--bg);
}
.cam-cfg-row .cam-ch-badge {
  flex-shrink: 0; font-size: 10px; color: var(--text-3); font-weight: 700;
  white-space: nowrap;
}
.cam-cfg-empty {
  font-size: 12px; color: var(--text-3); padding: 4px 0 2px;
}

/* ============================================================
   MÓDULO REUNIÕES
   ============================================================ */
.reu-hint {
  font-size: 12.5px; color: #64748b; background: #f8fafc;
  border: 1px dashed #cbd5e1; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px; line-height: 1.5;
}
.reu-list { display: flex; flex-direction: column; gap: 10px; }
.reu-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; cursor: pointer; transition: box-shadow .15s, transform .1s;
}
.reu-card:active { transform: scale(.99); }
.reu-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.reu-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.reu-card-top-right { display: flex; align-items: center; gap: 8px; }
.reu-card-del {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  font-size: 17px; line-height: 1; padding: 9px 12px; cursor: pointer;
}
.reu-card-del:active { background: #fee2e2; }
/* Ações no cabeçalho da reunião aberta (editar + excluir) */
.reu-header-acoes { display: flex; gap: 8px; flex-shrink: 0; }
.reu-del-btn { background: rgba(239,68,68,.18); }
.reu-del-btn:active { background: rgba(239,68,68,.35); }
/* Botão pequeno de configuração das APIs, ao lado do FAB "+" */
.reu-cfg-fab {
  position: fixed;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  right: 82px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  font-size: 17px; cursor: pointer; z-index: 49;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.reu-cfg-fab:active { background: var(--bg); transform: scale(.95); }

/* Painel de status das APIs */
.cfg-ia-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px;
}
.cfg-ia-nome { font-size: 14px; font-weight: 800; color: var(--navy-1); }
.cfg-ia-desc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cfg-ia-status { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cfg-ia-status.ok { color: #16a34a; }
.cfg-ia-status.off { color: #dc2626; }
.cfg-ia-hint { font-size: 11.5px; color: var(--text-3); margin: 6px 0 0; line-height: 1.5; }
.cfg-ia-hint code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

/* Modal de confirmação estilizado (reuniões) */
.confirm-modal { text-align: center; padding: 6px 4px 2px; }
.confirm-icon {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #eff6ff; font-size: 28px;
}
.confirm-icon.danger { background: #fef2f2; }
.confirm-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--navy-1); }
.confirm-msg { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: #64748b; }
.confirm-actions { gap: 10px; }
.confirm-actions button { flex: 1; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.confirm-actions .btn-secondary { background: var(--bg); }
.reu-tipo-badge {
  font-size: 11px; font-weight: 800; color: #4338ca; background: #eef2ff;
  padding: 3px 9px; border-radius: 8px;
}
.reu-card-title { font-size: 15.5px; font-weight: 800; color: var(--navy-1); margin-bottom: 6px; }
.reu-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-3); font-weight: 600; }

/* Painel de detalhe (overlay full-screen) */
.reu-overlay {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg, #f1f5f9);
  display: flex; flex-direction: column;
}
.reu-detalhe-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--navy-1, #0f1b2d); color: #fff;
}
.reu-close, .reu-edit-btn {
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 10px; font-size: 17px; cursor: pointer;
  flex-shrink: 0;
}
.reu-close:active, .reu-edit-btn:active { background: rgba(255,255,255,.25); }
.reu-detalhe-titulo { flex: 1; min-width: 0; }
.reu-dt-tipo { font-size: 11px; opacity: .7; font-weight: 700; }
.reu-dt-nome { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reu-detalhe-tabs {
  display: flex; gap: 4px; padding: 8px 12px; background: #fff;
  border-bottom: 1px solid var(--border); overflow-x: auto;
}
.reu-dtab {
  flex-shrink: 0; padding: 8px 14px; border: none; border-radius: 9px;
  background: transparent; color: #64748b; font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.reu-dtab.active { background: #eef2ff; color: #4338ca; }
.reu-detalhe-body { flex: 1; overflow-y: auto; }
/* Conteúdo centralizado a 640px, como as demais páginas do app */
.reu-aba-pad, .reu-studio { max-width: 640px; margin-left: auto; margin-right: auto; padding: 16px; }
.reu-detalhe-tabs { justify-content: center; }
.reu-detalhe-header > .reu-detalhe-titulo { max-width: 600px; }

/* ===== Estúdio de gravação (ondas + terminal ao vivo) ===== */
.reu-studio { padding: 16px; }
.reu-aviso {
  font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.5;
}
.reu-info {
  font-size: 12.5px; color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.5;
}
.reu-studio-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: var(--navy-1);
}
.reu-studio-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reu-grav-dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.reu-grav-dot.rec { background: #ef4444; animation: reuPulse 1.2s infinite; box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
@keyframes reuPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.reu-grav-timer { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 800; color: #ef4444; }

/* Ondas de áudio — fundo transparente, só o brilho neon */
.reu-wave-wrap {
  background: transparent;
  padding: 6px 0; margin-bottom: 12px;
}
.reu-wave { width: 100%; height: 104px; display: block; }

/* Transcrição — caixa branca, texto escuro */
.reu-terminal {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.reu-terminal.rec { border-color: #22d3ee; box-shadow: 0 0 0 1px rgba(34,211,238,.35), 0 1px 5px rgba(0,0,0,.06); }
.reu-term-head {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: #f8fafc; border-bottom: 1px solid var(--border);
}
.reu-term-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.reu-term-dot.dr { background: #ff5f56; }
.reu-term-dot.dy { background: #ffbd2e; }
.reu-term-dot.dg { background: #27c93f; }
.reu-term-title {
  margin-left: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px;
  color: #94a3b8; font-family: 'SFMono-Regular', Consolas, 'Roboto Mono', monospace;
}
.reu-term-body {
  padding: 14px 16px; min-height: 200px; max-height: 42vh; overflow-y: auto;
  font-family: 'SFMono-Regular', Consolas, 'Roboto Mono', 'Courier New', monospace;
  font-size: 13.5px; line-height: 1.7; color: #1e293b;
  white-space: pre-wrap; word-break: break-word;
  -webkit-overflow-scrolling: touch;
}
.reu-term-final { color: #1e293b; }
.reu-term-interim { color: #94a3b8; }
.reu-term-cursor {
  display: inline-block; color: #6366f1; font-weight: 700;
  animation: reuBlink 1s step-end infinite;
}
@keyframes reuBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.reu-grav-controls { display: flex; gap: 10px; margin-top: 14px; }
.reu-btn-rec, .reu-btn-stop { width: 100%; padding: 14px; font-size: 15px; font-weight: 800; }
.reu-studio-actions { display: flex; gap: 10px; margin-top: 10px; }
.reu-studio-actions button { flex: 1; padding: 12px; font-size: 14px; font-weight: 800; }
.reu-btn-cancelar {
  width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px;
  background: transparent; border: none; color: #94a3b8;
  font-family: 'Lato', sans-serif; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.reu-btn-cancelar:active { color: #64748b; }
.reu-grav-hint { font-size: 11.5px; color: var(--text-3); margin-top: 10px; text-align: center; }

/* Seleção de presentes (nova reunião) */
.reu-presentes-box {
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
  max-height: 200px; overflow-y: auto; background: #fff;
}
.reu-presentes-acoes { display: flex; gap: 10px; margin-bottom: 6px; }
.reu-presentes-todos {
  font-size: 11.5px; font-weight: 700; color: #4338ca; background: none; border: none;
  cursor: pointer; padding: 2px 0;
}
.reu-presente-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  font-size: 13.5px; color: var(--navy-1); cursor: pointer;
}
.reu-presente-item input { width: auto; margin: 0; flex-shrink: 0; }
.reu-presentes-vazio { font-size: 12.5px; color: var(--text-3); padding: 4px 0; }

/* Assinaturas — progresso e linhas */
.reu-assin-progress {
  font-size: 12.5px; font-weight: 700; color: #4338ca; background: #eef2ff;
  border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; text-align: center;
}
.reu-assin-thumb-vazio {
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #94a3b8; border-right: 1px solid var(--border);
}
.reu-assin-btn {
  padding: 7px 14px; border: none; border-radius: 9px; background: #4a9fe5; color: #fff;
  font-family: 'Lato', sans-serif; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.reu-assin-btn:active { transform: scale(.96); }
.reu-assin-ok { color: #16a34a; font-weight: 800; font-size: 16px; }
.reu-assin-pend-tag { color: var(--text-3); }
.reu-assin-titulo { font-size: 16px; font-weight: 800; color: var(--navy-1); margin: 0 0 12px; }

/* Assinaturas empilhadas em largura total (fácil visualização) */
.reu-assin-stack-list { display: flex; flex-direction: column; gap: 12px; }
.reu-assin-card {
  border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden;
}
.reu-assin-card-img { padding: 10px 14px 0; }
.reu-assin-card-img img {
  width: 100%; height: 120px; object-fit: contain; display: block;
  border-bottom: 1.5px solid var(--navy-1);
}
.reu-assin-card-foot { display: flex; align-items: center; gap: 10px; padding: 9px 14px 11px; }
.reu-assin-card-foot .reu-assin-info { flex: 1; min-width: 0; }
.reu-assin-card-pend .reu-assin-card-foot { padding: 12px 14px; }
.reu-assin-card-pend { border-style: dashed; background: #fafbfc; }
.as-cpf-auto {
  padding: 11px 12px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0;
  font-size: 14px; font-weight: 700; color: #15803d;
}
.as-cpf-auto span { font-weight: 600; color: #16a34a; font-size: 12px; }
.ata-assin-cpf { font-size: 11px; color: #3a4a5c; }

/* Aba transcrição */
.reu-field-label { display: block; font-size: 12px; font-weight: 800; color: var(--text-2); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .4px; }
.reu-transc-area {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Lato', sans-serif; font-size: 14px; line-height: 1.6; color: var(--navy-1);
  background: #fff; resize: vertical;
}
.reu-chunks-info {
  font-size: 12.5px; color: #475569; background: #f1f5f9; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px; line-height: 1.5;
}
.reu-btn-whisper { margin-top: 8px; font-size: 12.5px; padding: 8px 12px; }

/* Aba ATA */
.reu-ata-empty { text-align: center; padding: 40px 16px; }
.reu-ata-empty-ico { font-size: 44px; margin-bottom: 10px; }
.reu-ata-empty p { color: var(--text-3); margin-bottom: 16px; }
/* ATA — identidade visual do comunicado-condominio (Lato, navy, cards) */
.reu-ata-doc {
  background: var(--bg, #f2f4f7); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; font-family: 'Lato', sans-serif; color: #1e2a3a;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ata-cab {
  text-align: center; padding: 26px 22px 22px;
  background: linear-gradient(135deg, #0f1b2d 0%, #1a2d4a 100%); color: #fff;
}
.ata-cab-cond { font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.ata-cab-tipo { font-size: 13px; font-weight: 700; margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; opacity: .95; }
.ata-cab-line { width: 80px; height: 3px; background: #4a9fe5; border-radius: 2px; margin: 12px auto 0; }
.ata-cab-meta { font-size: 12.5px; color: rgba(255,255,255,.8); margin-top: 10px; }
.ata-corpo { padding: 16px; }
.ata-sec {
  background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
}
.ata-sec h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px;
  color: #0f1b2d; font-weight: 800; margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid #eef1f5; position: relative;
}
.ata-sec h4::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 44px; height: 3px; background: #4a9fe5; border-radius: 2px;
}
.ata-sec ul, .ata-sec ol { margin: 0; padding-left: 20px; }
.ata-sec li { margin: 3px 0; font-size: 14px; }
.ata-delib { margin: 12px 0; padding-left: 12px; border-left: 3px solid #4a9fe5; }
.ata-delib:first-child { margin-top: 0; }
.ata-delib-topico { font-weight: 800; color: #0f1b2d; font-size: 14.5px; }
.ata-delib-disc { margin: 5px 0; font-size: 14px; color: #3a4a5c; }
.ata-delib-meta { font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; color: #3a4a5c; margin-top: 4px; }
.ata-acoes { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ata-acoes th { background: #f2f4f7; color: #0f1b2d; font-weight: 800; }
.ata-acoes th, .ata-acoes td { border: 1px solid #e2e8f0; padding: 7px 9px; text-align: left; }
.ata-assin-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.ata-assin-bloco img { width: 100%; height: 90px; object-fit: contain; border-bottom: 1.5px solid #0f1b2d; display: block; }
.ata-assin-nome { font-size: 12.5px; margin-top: 5px; font-weight: 700; }
.ata-rodape {
  text-align: center; padding: 18px; color: #fff;
  background: linear-gradient(135deg, #0f1b2d 0%, #1a2d4a 100%);
}
.ata-rodape-line { width: 80px; height: 3px; background: #4a9fe5; border-radius: 2px; margin: 0 auto 10px; }
.ata-rodape-nome { font-size: 15px; font-weight: 800; }
.ata-rodape-cargo { font-size: 12px; opacity: .8; margin-top: 2px; }
.reu-ata-actions { margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.reu-ata-actions button { flex: 1; min-width: 120px; }

/* Geração (spinner) */
.reu-gerando { text-align: center; padding: 20px 10px; }
.reu-spinner {
  width: 42px; height: 42px; border: 4px solid #e2e8f0; border-top-color: #4338ca;
  border-radius: 50%; margin: 0 auto 14px; animation: reuSpin .8s linear infinite;
}
@keyframes reuSpin { to { transform: rotate(360deg); } }
.reu-erro { color: #dc2626; font-weight: 700; }
.reu-erro-hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.reu-gerando-time { font-size: 26px; font-weight: 800; color: var(--navy-1); font-variant-numeric: tabular-nums; margin-top: 6px; }
.reu-gerando-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* Assinaturas */
.reu-pad-wrap { position: relative; }
.reu-pad {
  width: 100%; height: 160px; background: #fff; border: 2px dashed #cbd5e1;
  border-radius: 12px; touch-action: none; display: block;
}
.reu-pad-clear {
  position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 700;
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; cursor: pointer; color: #475569;
}
.reu-divider { height: 1px; background: var(--border); margin: 18px 0; }
.reu-assin-list { display: flex; flex-direction: column; gap: 8px; }
.reu-assin-row {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
}
.reu-assin-thumb { width: 90px; height: 44px; object-fit: contain; border-right: 1px solid var(--border); padding-right: 10px; }
.reu-assin-info { flex: 1; min-width: 0; }
.reu-assin-nome { font-size: 14px; font-weight: 700; color: var(--navy-1); }
.reu-assin-data { font-size: 11.5px; color: var(--text-3); }
.reu-assin-del { background: none; border: none; font-size: 16px; cursor: pointer; }
.reu-check-row { display: flex !important; align-items: center; gap: 8px; margin-top: 12px !important; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; color: var(--text-2) !important; }
.reu-check-row input { width: auto !important; margin: 0 !important; }

/* Toast */
.reu-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-1, #0f1b2d); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 13.5px; font-weight: 600; z-index: 2000; opacity: 0; transition: all .3s;
  pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.reu-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
