/* ==========================================================================
   ev-portal.css  ·  Design system do Portal do Associado (link "ios")
   Carregar DEPOIS de bootstrap e style.css.  Mobile-first (360–430px).
   Tudo novo usa o prefixo .ev-*; a parte "Correções globais" ajusta o legado
   (style.css / bootstrap) sem renomear nada.
   ========================================================================== */

:root {
  /* Marca */
  --ev-primary: #2d3e8d;
  --ev-primary-600: #25347a;
  --ev-primary-700: #1c2862;
  --ev-primary-50: #eef1fb;
  --ev-primary-100: #dde3f6;
  --ev-accent: #e38439;
  --ev-accent-600: #c96d24;
  --ev-accent-50: #fdf1e7;
  --ev-accent-text: #9a4d10;          /* laranja legível em fundo claro (AA) */

  /* Estados */
  --ev-success: #157a46;  --ev-success-bg: #e3f5ea;
  --ev-danger:  #b42318;  --ev-danger-bg:  #fdeceb;
  --ev-warning: #8a5300;  --ev-warning-bg: #fff3d6;
  --ev-info:    #1f5fae;  --ev-info-bg:    #e7f0fb;
  --ev-whats:   #128c4a;

  /* Neutros */
  --ev-text: #1b2445;
  --ev-muted: #5c6782;                /* 5.6:1 em branco */
  --ev-subtle: #8a93a8;
  --ev-border: #e2e6ef;
  --ev-bg: #f3f5fa;
  --ev-surface: #ffffff;
  --ev-surface-2: #f7f8fc;

  /* Forma */
  --ev-radius-sm: 10px;
  --ev-radius: 14px;
  --ev-radius-lg: 20px;
  --ev-radius-pill: 999px;
  --ev-shadow-sm: 0 1px 2px rgba(20, 30, 70, .06);
  --ev-shadow: 0 1px 2px rgba(20, 30, 70, .05), 0 6px 18px rgba(20, 30, 70, .07);
  --ev-shadow-lg: 0 18px 40px rgba(20, 30, 70, .18);

  /* Espaço */
  --ev-s1: 4px; --ev-s2: 8px; --ev-s3: 12px; --ev-s4: 16px; --ev-s5: 20px; --ev-s6: 24px; --ev-s8: 32px;

  /* Tipografia */
  --ev-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ev-touch: 44px;

  /* Navegação */
  --ev-tabbar-h: 64px;
  --ev-safe-b: env(safe-area-inset-bottom, 0px);
  --ev-safe-t: env(safe-area-inset-top, 0px);
  --ev-focus: 0 0 0 3px rgba(227, 132, 57, .55);
}

/* ==========================================================================
   1. Correções globais do legado (style.css / bootstrap)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.ev-body,
body.ev-login {
  font-family: var(--ev-font);
  color: var(--ev-text);
  background-color: var(--ev-bg) !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(45, 62, 141, .12);
}

/* style.css pinta TODO <i> de branco; nos módulos novos o ícone herda a cor do texto */
.ev-body i, .ev-body .fa, .ev-body .bi,
.ev-login i, .ev-login .fa { color: inherit; }
.ev-body .ev-on-dark i, .ev-body .ev-on-dark .fa { color: inherit; }

/* style.css reduz todo <li> para .8em */
.ev-body li, .ev-login li { font-size: inherit; }

/* Botões: style.css/painel fixavam height:30px → o texto vazava do botão */
.ev-body .btn,
.ev-login .btn {
  height: auto;
  min-height: 42px;
  line-height: 1.25;
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: normal;
  text-align: center;
  background-color: var(--ev-primary);
  border: 1px solid transparent;
  color: #fff;
  transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.ev-body .btn:hover, .ev-login .btn:hover { background-color: var(--ev-primary-600); color: #fff; }
.ev-body .btn:active, .ev-login .btn:active { transform: translateY(1px); }
.ev-body .btn:disabled, .ev-login .btn:disabled { opacity: .6; }
.ev-body .btn-close { min-width: var(--ev-touch); min-height: var(--ev-touch); background-size: 14px; }

/* Campos: 16px evita o zoom automático do iPhone; altura confortável ao toque */
.ev-body .form-control, .ev-body .form-select,
.ev-login .form-control {
  min-height: 48px;
  height: auto;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #d5dbe8;
  padding: .65rem .85rem;
  color: var(--ev-text);
  background-color: #fff;
  box-shadow: none;
}
.ev-body textarea.form-control { min-height: 96px; }
.ev-body .form-control:focus, .ev-body .form-select:focus,
.ev-login .form-control:focus {
  border-color: var(--ev-primary);
  box-shadow: 0 0 0 3px rgba(45, 62, 141, .16);
  outline: 0;
}
.ev-body input[type=text], .ev-body input[type=date],
.ev-login input[type=text] { height: auto; }
.ev-body input[type=email], .ev-body input[type=password] { text-transform: none; }

/* Foco visível e consistente (teclado) */
.ev-body a:focus-visible, .ev-body button:focus-visible, .ev-body [tabindex]:focus-visible,
.ev-body label:focus-visible, .ev-body .btn:focus-visible,
.ev-login a:focus-visible, .ev-login button:focus-visible {
  outline: 0;
  box-shadow: var(--ev-focus);
  border-radius: 10px;
}

/* style.css girava a página inteira no celular deitado (quebrava position:fixed e a barra inferior) */
@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
  html { transform: none !important; width: auto !important; position: static !important; top: auto !important; overflow-x: hidden; }
}

/* Overlay de carregamento (#loading) */
.ev-body #loading, .ev-login #loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  background: rgba(17, 24, 52, .45) !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  color: #fff; font-weight: 600; font-size: 15px;
}
.ev-loader {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .3);
  border-top-color: var(--ev-accent);
  animation: ev-spin .8s linear infinite;
}
@keyframes ev-spin { to { transform: rotate(360deg); } }

/* Modais (Bootstrap 5 e 4) */
.ev-body .modal-content, .ev-login .modal-content {
  border: 0; border-radius: var(--ev-radius-lg); box-shadow: var(--ev-shadow-lg); overflow: hidden;
}
.ev-body .modal-header, .ev-login .modal-header {
  border-bottom: 1px solid var(--ev-border); padding: 14px 16px; gap: 10px; align-items: center;
}
.ev-body .modal-footer, .ev-login .modal-footer {
  border-top: 1px solid var(--ev-border); padding: 12px 16px calc(12px + var(--ev-safe-b)); gap: 8px;
}
.ev-body .modal-footer > *, .ev-login .modal-footer > * { margin: 0; }
.ev-modal-title { display: block; margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ev-text); flex: 1; min-width: 0; }
.ev-modal-title small { display: block; font-size: .8rem; font-weight: 500; color: var(--ev-muted); }
.ev-modal-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: var(--ev-surface-2); flex: 0 0 auto; }

@media (max-width: 575.98px) {
  /* Modais viram "bottom sheet" no celular */
  .ev-body .modal.ev-modal-sheet .modal-dialog,
  .ev-login .modal.ev-modal-sheet .modal-dialog {
    margin: 0; max-width: none; width: 100%;
    position: fixed; left: 0; right: 0; bottom: 0;
    min-height: 0; display: block;
  }
  .ev-body .modal.ev-modal-sheet .modal-content,
  .ev-login .modal.ev-modal-sheet .modal-content {
    border-radius: 22px 22px 0 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  }
  .ev-body .modal.ev-modal-sheet .modal-body,
  .ev-login .modal.ev-modal-sheet .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .ev-body .modal.ev-modal-sheet .modal-header::before,
  .ev-login .modal.ev-modal-sheet .modal-header::before {
    content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 4px; background: #d3d8e4;
  }
  .ev-body .modal.ev-modal-sheet .modal-header,
  .ev-login .modal.ev-modal-sheet .modal-header { position: relative; padding-top: 18px; }
  .ev-body .modal.ev-modal-sheet .modal-footer > .btn,
  .ev-login .modal.ev-modal-sheet .modal-footer > .btn { flex: 1 1 0; min-height: 48px; }
  .ev-body .modal.fade.ev-modal-sheet .modal-dialog { transform: translateY(40px); }
  .ev-body .modal.show.ev-modal-sheet .modal-dialog { transform: none; }
}

/* Mensagens de retorno (alertaM) */
.ev-body .retornoMensagemMysql .alert, .ev-login #mensagem .alert { border-radius: 12px; font-size: 15px; }

/* ==========================================================================
   2. Layout de página
   ========================================================================== */
.ev-container { max-width: 1040px; padding-left: 0; padding-right: 0; }
#conteudo.ev-conteudo { padding: 0; }

.ev-page {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--ev-s4) var(--ev-s4) var(--ev-s6);
  box-sizing: border-box;
}
.ev-page *, .ev-page *::before, .ev-page *::after { box-sizing: border-box; }
.ev-page img { max-width: 100%; }

.ev-pagehead {
  display: flex; align-items: center; gap: var(--ev-s3);
  margin: 0 0 var(--ev-s4);
}
.ev-pagehead-txt { flex: 1; min-width: 0; }
.ev-pagehead h1, .ev-pagehead h2, .ev-title {
  margin: 0; font-size: 1.3rem; line-height: 1.25; font-weight: 750; color: var(--ev-text); letter-spacing: -.01em;
  font-family: var(--ev-font);
}
.ev-pagehead p, .ev-subtitle { margin: 2px 0 0; color: var(--ev-muted); font-size: .9rem; }
.ev-back {
  flex: 0 0 auto;
  width: var(--ev-touch); height: var(--ev-touch);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--ev-border); background: var(--ev-surface); color: var(--ev-primary);
  font-size: 18px; cursor: pointer; box-shadow: var(--ev-shadow-sm); text-decoration: none;
}
.ev-back:hover { background: var(--ev-primary-50); color: var(--ev-primary); }
@media (min-width: 768px) { .ev-back { display: none; } .ev-pagehead h1, .ev-pagehead h2, .ev-title { font-size: 1.5rem; } }

.ev-section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: var(--ev-s6) 0 var(--ev-s3);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ev-muted);
}
.ev-section-title a { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--ev-primary); font-weight: 600; text-decoration: none; }

.ev-stack-v { display: grid; gap: var(--ev-s3); }
.ev-grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--ev-s3); }
@media (min-width: 640px) { .ev-grid-2 { grid-template-columns: 1fr 1fr; } }
.ev-muted { color: var(--ev-muted); }
.ev-small { font-size: .82rem; }
.ev-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 767.98px) { .ev-hide-mobile { display: none !important; } }
@media (min-width: 768px) { .ev-hide-desktop { display: none !important; } }

/* ==========================================================================
   3. Cartões
   ========================================================================== */
.ev-card {
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-lg);
  box-shadow: var(--ev-shadow);
  padding: var(--ev-s4);
  margin: 0;
  list-style: none;
  min-width: 0;
}
.ev-card + .ev-card { margin-top: var(--ev-s3); }
.ev-card-flush { padding: 0; overflow: hidden; }
.ev-card-hd {
  display: flex; align-items: center; gap: var(--ev-s3); justify-content: space-between;
  padding: var(--ev-s3) var(--ev-s4); border-bottom: 1px solid var(--ev-border);
}
.ev-card-bd { padding: var(--ev-s4); }
.ev-card-ft { padding: var(--ev-s3) var(--ev-s4) var(--ev-s4); display: grid; gap: var(--ev-s2); }
.ev-card-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ev-text); line-height: 1.3; word-break: break-word; }
.ev-card-sub { margin: 2px 0 0; font-size: .85rem; color: var(--ev-muted); }

/* Item de lista: ícone/thumb + texto + chip */
.ev-item { display: flex; align-items: flex-start; gap: var(--ev-s3); min-width: 0; }
.ev-item-main { flex: 1; min-width: 0; }
.ev-item-aside { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ev-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ev-primary-50); color: var(--ev-primary); font-size: 19px;
}
.ev-ico--accent { background: var(--ev-accent-50); color: var(--ev-accent-text); }
.ev-ico--success { background: var(--ev-success-bg); color: var(--ev-success); }
.ev-ico--danger { background: var(--ev-danger-bg); color: var(--ev-danger); }
.ev-ico--info { background: var(--ev-info-bg); color: var(--ev-info); }
.ev-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--ev-surface-2); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ev-border); flex: 0 0 auto; }

/* Lista de dados (rótulo/valor) */
.ev-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ev-s2); margin: 0; }
.ev-dl > div { background: var(--ev-surface-2); border-radius: var(--ev-radius-sm); padding: 8px 10px; min-width: 0; }
.ev-dl dt, .ev-dl .ev-dt { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-subtle); }
.ev-dl dd, .ev-dl .ev-dd { margin: 0; font-size: .92rem; font-weight: 600; color: var(--ev-text); word-break: break-word; }
.ev-dl .ev-full { grid-column: 1 / -1; }

.ev-money { font-size: 1.35rem; font-weight: 800; color: var(--ev-text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ev-divider { height: 1px; background: var(--ev-border); margin: var(--ev-s3) 0; border: 0; }

/* ==========================================================================
   4. Botões
   ========================================================================== */
.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--ev-touch); padding: 10px 16px;
  border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer; user-select: none;
  background: var(--ev-primary-50); color: var(--ev-primary);
  transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
  -webkit-appearance: none; appearance: none;
}
.ev-btn:hover { background: var(--ev-primary-100); color: var(--ev-primary); text-decoration: none; }
.ev-btn:active { transform: translateY(1px); }
.ev-btn:disabled, .ev-btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; transform: none; }
.ev-btn--primary { background: var(--ev-primary); color: #fff; box-shadow: 0 6px 16px rgba(45, 62, 141, .22); }
.ev-btn--primary:hover { background: var(--ev-primary-600); color: #fff; }
.ev-btn--accent { background: var(--ev-accent); color: #1d1405; }
.ev-btn--accent:hover { background: var(--ev-accent-600); color: #fff; }
.ev-btn--success { background: var(--ev-success); color: #fff; }
.ev-btn--success:hover { background: #10603a; color: #fff; }
.ev-btn--danger { background: var(--ev-danger-bg); color: var(--ev-danger); }
.ev-btn--ghost { background: transparent; border-color: var(--ev-border); color: var(--ev-primary); }
.ev-btn--ghost:hover { background: var(--ev-primary-50); }
.ev-btn--whats { background: #e5f6ec; color: var(--ev-whats); }
.ev-btn--block { display: flex; width: 100%; }
.ev-btn--lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.ev-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.ev-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.ev-btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; left: 50%; top: 50%; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ev-spin .7s linear infinite;
}
.ev-btn-row { display: grid; grid-template-columns: 1fr; gap: var(--ev-s2); }
@media (min-width: 520px) { .ev-btn-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

/* ==========================================================================
   5. Chips / badges de status
   ========================================================================== */
.ev-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; min-height: 26px;
  border-radius: var(--ev-radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; line-height: 1.2;
  background: var(--ev-surface-2); color: var(--ev-muted); border: 1px solid transparent;
}
.ev-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.ev-chip--plain::before { display: none; }
.ev-chip--success { background: var(--ev-success-bg); color: var(--ev-success); }
.ev-chip--danger { background: var(--ev-danger-bg); color: var(--ev-danger); }
.ev-chip--warning { background: var(--ev-warning-bg); color: var(--ev-warning); }
.ev-chip--info { background: var(--ev-info-bg); color: var(--ev-info); }
.ev-chip--primary { background: var(--ev-primary-50); color: var(--ev-primary); }
.ev-chip--on-dark { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .25); }
.ev-chip--on-dark.ev-chip--success { background: #d9f6e4; color: #0e5a33; border-color: transparent; }
.ev-chip--on-dark.ev-chip--danger { background: #ffe1de; color: #8f1a12; border-color: transparent; }

.ev-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--ev-danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}

/* ==========================================================================
   6. Formulários
   ========================================================================== */
.ev-form { display: grid; gap: var(--ev-s4); }
.ev-field { display: block; min-width: 0; margin: 0; }
.ev-label, .ev-field > label {
  display: block; margin: 0 0 6px;
  font-size: .82rem; font-weight: 650; color: var(--ev-text); text-transform: none; letter-spacing: 0;
}
.ev-help { display: block; margin-top: 6px; font-size: .8rem; color: var(--ev-muted); }
.ev-step {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-weight: 700; font-size: .95rem; color: var(--ev-text);
}
.ev-step-n {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ev-primary); color: #fff; font-size: .8rem; font-weight: 800;
}
.ev-input-group { position: relative; }
.ev-input-group .form-control { padding-right: 52px; }
.ev-input-group .ev-input-btn {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 44px; border: 0; background: transparent; color: var(--ev-muted);
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ev-form-grid { display: grid; grid-template-columns: 1fr; gap: var(--ev-s3); }
@media (min-width: 520px) {
  .ev-form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ev-form-grid > .ev-c2 { grid-column: span 2; }
  .ev-form-grid > .ev-c3 { grid-column: span 3; }
  .ev-form-grid > .ev-c4 { grid-column: span 4; }
  .ev-form-grid > .ev-c6 { grid-column: 1 / -1; }
}
.ev-form-grid > * { grid-column: 1 / -1; }

/* Tabelas legadas usadas só como layout de formulário → empilham */
table.ev-table-layout, table.ev-table-layout > tbody, table.ev-table-layout tr, table.ev-table-layout td { display: block; width: 100%; }
table.ev-table-layout td { text-align: left; font-weight: 400; font-size: inherit; padding: 0; }
table.ev-table-layout + table.ev-table-layout { margin-top: var(--ev-s4); }

/* ==========================================================================
   7. KPIs, ações rápidas, cartão do associado
   ========================================================================== */
.ev-hello { margin: 0 0 var(--ev-s3); }
.ev-hello h1 { margin: 0; font-size: 1.35rem; font-weight: 750; color: var(--ev-text); letter-spacing: -.01em; font-family: var(--ev-font); }
.ev-hello p { margin: 2px 0 0; color: var(--ev-muted); font-size: .9rem; }

.ev-member {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 18px;
  background: radial-gradient(120% 140% at 100% 0%, #4256b4 0%, var(--ev-primary) 45%, var(--ev-primary-700) 100%);
  color: #fff; box-shadow: 0 14px 32px rgba(28, 40, 98, .28);
}
.ev-member::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 132, 57, .55), rgba(227, 132, 57, 0) 70%); pointer-events: none;
}
.ev-member-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.ev-member-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, .85); background: #fff;
}
.ev-member-name { margin: 0; font-size: 1.08rem; font-weight: 750; line-height: 1.25; word-break: break-word; color: #fff; font-family: var(--ev-font); }
.ev-member-meta { margin: 4px 0 0; font-size: .82rem; opacity: .9; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ev-member-contact { position: relative; z-index: 1; margin-top: 14px; display: grid; gap: 4px; font-size: .86rem; opacity: .95; word-break: break-word; }
.ev-member-contact span { display: flex; align-items: center; gap: 8px; }
.ev-member-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ev-member-actions .ev-btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); font-size: 14px; padding: 10px 8px; }
.ev-member-actions .ev-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.ev-member-actions .ev-btn--accent { background: var(--ev-accent); color: #1d1405; border-color: transparent; }
.ev-member-actions .ev-btn--accent:hover { background: #ef9147; color: #1d1405; }

.ev-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--ev-radius); margin-bottom: var(--ev-s3);
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.ev-banner--success { background: var(--ev-success-bg); color: var(--ev-success); }
.ev-banner--danger { background: var(--ev-danger-bg); color: var(--ev-danger); }
.ev-banner--warning { background: var(--ev-warning-bg); color: var(--ev-warning); }
.ev-banner--info { background: var(--ev-info-bg); color: var(--ev-info); }
.ev-banner-main { flex: 1; min-width: 0; }
.ev-banner a { color: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; }

.ev-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .ev-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ev-qa {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 92px; padding: 12px 6px;
  background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 16px; box-shadow: var(--ev-shadow-sm);
  color: var(--ev-text); text-decoration: none; text-align: center; cursor: pointer;
  font-size: .8rem; font-weight: 650; line-height: 1.2;
  transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}
.ev-qa:hover { color: var(--ev-text); border-color: var(--ev-primary-100); box-shadow: var(--ev-shadow); text-decoration: none; }
.ev-qa:active { transform: scale(.98); }
.ev-qa .ev-ico { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }

.ev-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .ev-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ev-kpi {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px; min-height: 100px;
  background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 16px; box-shadow: var(--ev-shadow-sm);
  cursor: pointer; color: var(--ev-text); text-align: left;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.ev-kpi:hover { border-color: var(--ev-primary-100); box-shadow: var(--ev-shadow); }
.ev-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-kpi .ev-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.ev-kpi-val { font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ev-text); }
.ev-kpi-lbl { font-size: .82rem; color: var(--ev-muted); font-weight: 600; line-height: 1.25; }
.ev-kpi-go { color: var(--ev-subtle); font-size: 14px; }
.ev-kpi--alert .ev-kpi-val { color: var(--ev-danger); }
.ev-kpi--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }

/* ==========================================================================
   8. Carrossel de banners (scroll-snap, arrastável no dedo)
   ========================================================================== */
.ev-carousel { position: relative; }
.ev-carousel-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px;
  overscroll-behavior-x: contain;
}
.ev-carousel-track::-webkit-scrollbar { display: none; }
.ev-slide {
  flex: 0 0 88%; scroll-snap-align: center; min-width: 0;
  background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 18px; overflow: hidden; box-shadow: var(--ev-shadow-sm);
  display: flex; flex-direction: column;
}
.ev-carousel-track > .ev-slide:only-child { flex-basis: 100%; }
@media (min-width: 768px) { .ev-slide { flex-basis: calc(50% - 6px); } }
.ev-slide-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ev-surface-2); }
.ev-slide-body { padding: 12px 14px 14px; font-size: .9rem; color: var(--ev-text); line-height: 1.45; overflow-wrap: anywhere; }
.ev-slide-body p:last-child { margin-bottom: 0; }
.ev-slide-body img { max-width: 100%; height: auto; }
.ev-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ev-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #c9d0e0; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.ev-dot[aria-current=true] { width: 22px; background: var(--ev-primary); }
.ev-dots { padding: 6px 0; }

/* ==========================================================================
   9. Estado vazio, skeleton, toast
   ========================================================================== */
.ev-empty {
  text-align: center; padding: 36px 20px;
  background: var(--ev-surface); border: 1px dashed #cfd6e6; border-radius: var(--ev-radius-lg);
}
.ev-empty-ico {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ev-primary-50); color: var(--ev-primary); font-size: 28px;
}
.ev-empty--success .ev-empty-ico { background: var(--ev-success-bg); color: var(--ev-success); }
.ev-empty h2, .ev-empty h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; color: var(--ev-text); font-family: var(--ev-font); }
.ev-empty p { margin: 0 auto; max-width: 340px; color: var(--ev-muted); font-size: .92rem; }
.ev-empty .ev-btn { margin-top: 18px; }

.ev-skeleton {
  display: block; border-radius: 10px; min-height: 14px;
  background: linear-gradient(90deg, #e9edf5 25%, #f5f7fb 50%, #e9edf5 75%);
  background-size: 200% 100%; animation: ev-shimmer 1.2s ease-in-out infinite;
}
.ev-skeleton--line { height: 14px; margin: 8px 0; }
.ev-skeleton--title { height: 20px; width: 60%; }
.ev-skeleton--card { height: 96px; border-radius: var(--ev-radius); }
@keyframes ev-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.ev-toasts {
  position: fixed; left: 12px; right: 12px; z-index: 100001;
  bottom: calc(var(--ev-s4) + var(--ev-safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.ev-has-tabbar .ev-toasts { bottom: calc(var(--ev-tabbar-h) + 12px + var(--ev-safe-b)); }
@media (min-width: 768px) { .ev-has-tabbar .ev-toasts { bottom: 24px; } }
.ev-toast {
  pointer-events: auto; max-width: 440px; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: #1b2445; color: #fff; box-shadow: var(--ev-shadow-lg);
  font-size: .92rem; font-weight: 600;
  animation: ev-toast-in .2s ease-out;
}
.ev-toast--success { background: #10603a; }
.ev-toast--danger { background: #9b1c13; }
.ev-toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes ev-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   10. Tabelas → cartões empilhados no celular
   (ev-portal.js marca tabelas dentro de [data-ev-stack] com .ev-stack e data-label)
   ========================================================================== */
.ev-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ev-stack { width: 100% !important; border-collapse: separate; border-spacing: 0; margin-top: 12px !important; font-size: .92rem !important; }
table.ev-stack th { background: var(--ev-primary-50) !important; color: var(--ev-primary) !important; font-weight: 700; padding: 10px; font-size: .8rem; position: static !important; height: auto !important; }
table.ev-stack td { padding: 10px; border-color: var(--ev-border) !important; }
@media (max-width: 767.98px) {
  table.ev-stack, table.ev-stack tbody, table.ev-stack tr, table.ev-stack td { display: block; width: 100%; }
  table.ev-stack thead, table.ev-stack > tr:first-child:has(> th) { display: none; }
  table.ev-stack { border: 0 !important; }
  table.ev-stack tr {
    background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 16px; box-shadow: var(--ev-shadow-sm);
    padding: 6px 14px; margin-bottom: 12px;
  }
  table.ev-stack td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 0 !important; border-bottom: 1px solid var(--ev-border) !important; padding: 10px 0; text-align: right; min-height: 44px;
  }
  table.ev-stack td:last-child { border-bottom: 0 !important; }
  table.ev-stack td:empty { display: none; }
  table.ev-stack td::before {
    content: attr(data-label); flex: 0 0 auto; text-align: left;
    font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-subtle);
  }
  table.ev-stack td[data-label=""]::before, table.ev-stack td:not([data-label])::before { display: none; }
  table.ev-stack td .btn { width: 100%; }
  table.ev-stack td:has(> .btn) { display: block; }
  table.ev-stack td:has(> .btn)::before { display: none; }
}

/* ==========================================================================
   11. Barra superior (painel)
   ========================================================================== */
.ev-topbar {
  position: sticky; top: 0; z-index: 950;
  background: linear-gradient(180deg, var(--ev-primary) 0%, var(--ev-primary-600) 100%) !important;
  padding: calc(8px + var(--ev-safe-t)) 0 8px !important;
  box-shadow: 0 2px 10px rgba(20, 30, 70, .18);
  border: 0 !important;
}
.ev-topbar .container-fluid { max-width: 1200px; padding-left: 16px; padding-right: 16px; gap: 8px; flex-wrap: nowrap; }
.ev-brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  color: #fff !important; text-decoration: none; margin-right: auto; padding: 0;
  font-family: var(--ev-font) !important; font-size: 1rem !important; font-weight: 750 !important; line-height: 1.15;
}
.ev-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; flex: 0 0 auto; }
.ev-brand-txt { display: flex; flex-direction: column; min-width: 0; }
.ev-brand-txt b { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-brand-txt small { font-size: .72rem; font-weight: 500; opacity: .8; white-space: nowrap; }
.ev-topnav { display: none; }
.ev-topnav .nav-link {
  color: rgba(255, 255, 255, .86) !important; font-weight: 600; font-size: .92rem;
  padding: 8px 12px !important; border-radius: 10px; white-space: nowrap; cursor: pointer;
}
.ev-topnav .nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, .1); }
.ev-topnav .nav-link.is-active, .ev-topnav .nav-link[aria-current=page] { color: #fff !important; background: rgba(255, 255, 255, .16); }
.ev-topnav .dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--ev-shadow-lg); padding: 6px; }
.ev-topnav .dropdown-item { border-radius: 8px; padding: 10px 12px; font-size: .92rem; cursor: pointer; }
.ev-top-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ev-iconbtn {
  position: relative;
  width: var(--ev-touch); height: var(--ev-touch); border-radius: 12px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #fff !important; font-size: 19px; cursor: pointer; text-decoration: none;
}
.ev-iconbtn:hover { background: rgba(255, 255, 255, .12); }
.ev-iconbtn .ev-count { position: absolute; top: 4px; right: 2px; box-shadow: 0 0 0 2px var(--ev-primary); }
.ev-logout {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 10px; color: #fff !important; font-weight: 600; font-size: .9rem; cursor: pointer; margin: 0;
  border: 1px solid rgba(255, 255, 255, .25);
}
.ev-logout:hover { background: rgba(255, 255, 255, .12); }
.ev-user { color: rgba(255, 255, 255, .85); font-size: .85rem; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) {
  .ev-topnav { display: flex; align-items: center; gap: 2px; margin: 0 auto 0 16px; }
  .ev-topnav .navbar-nav { flex-direction: row; gap: 2px; }
  .ev-brand { margin-right: 0; }
}
@media (max-width: 767.98px) {
  .ev-has-tabbar .ev-logout { display: none; }
}

/* Rodapé legado (.footer fixo do style.css) */
.ev-body .footer.ev-footer {
  position: static; background: transparent; color: var(--ev-muted); padding: 16px; font-size: .8rem; text-align: center;
}
.ev-body .footer.ev-footer label { font-size: .8rem; margin: 0; }
@media (max-width: 767.98px) { .ev-has-tabbar .footer.ev-footer { display: none; } }

/* ==========================================================================
   12. Barra inferior (tab bar) + folha "Mais"
   ========================================================================== */
.ev-tabbar { display: none; }
@media (max-width: 767.98px) {
  .ev-has-tabbar { padding-bottom: calc(var(--ev-tabbar-h) + var(--ev-safe-b) + 8px); }
  .ev-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 960;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    height: calc(var(--ev-tabbar-h) + var(--ev-safe-b));
    padding: 6px 6px var(--ev-safe-b);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
    border-top: 1px solid var(--ev-border);
    box-shadow: 0 -6px 20px rgba(20, 30, 70, .07);
    margin: 0; list-style: none;
  }
}
.ev-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 52px; padding: 4px 2px; margin: 0;
  border: 0; border-radius: 12px; background: transparent;
  color: #6b7591 !important; text-decoration: none !important; cursor: pointer;
  font-family: var(--ev-font); font-size: 11px; font-weight: 600; line-height: 1.1;
}
.ev-tab i { font-size: 21px; line-height: 1; color: inherit; transition: transform .15s ease; }
.ev-tab span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-tab.is-active, .ev-tab[aria-current=page] { color: var(--ev-primary) !important; }
.ev-tab.is-active::before, .ev-tab[aria-current=page]::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 28px; height: 3px; margin-left: -14px;
  border-radius: 0 0 3px 3px; background: var(--ev-accent);
}
.ev-tab.is-active i, .ev-tab[aria-current=page] i { transform: translateY(-1px); }
.ev-tab:active i { transform: scale(.92); }
.ev-tab .ev-count { position: absolute; top: 2px; left: calc(50% + 6px); }

.ev-sheet-backdrop {
  position: fixed; inset: 0; z-index: 970; background: rgba(17, 24, 52, .45);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.ev-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 975;
  max-height: 85vh; max-height: 85dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--ev-surface); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(16px + var(--ev-safe-b));
  box-shadow: var(--ev-shadow-lg);
  transform: translateY(105%); visibility: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s;
}
@media (min-width: 768px) { .ev-sheet { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: 20px; } }
.ev-sheet.is-open { transform: none; visibility: visible; }
.ev-sheet.is-open + .ev-sheet-backdrop, .ev-sheet-backdrop.is-open { opacity: 1; visibility: visible; }
.ev-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: #d3d8e4; margin: 0 auto 10px; }
.ev-sheet-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ev-sheet-hd h2 { margin: 0; font-size: 1.05rem; font-weight: 750; color: var(--ev-text); font-family: var(--ev-font); }
.ev-sheet-close { width: var(--ev-touch); height: var(--ev-touch); border: 0; border-radius: 12px; background: var(--ev-surface-2); color: var(--ev-muted); font-size: 18px; cursor: pointer; }
.ev-sheet-user { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: var(--ev-surface-2); }
.ev-sheet-user b { display: block; font-size: .95rem; color: var(--ev-text); line-height: 1.25; word-break: break-word; }
.ev-sheet-user small { color: var(--ev-muted); font-size: .8rem; }
.ev-menu { list-style: none; margin: 0; padding: 0; }
.ev-menu li { margin: 0; font-size: inherit; }
.ev-menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 54px; padding: 8px 6px; margin: 0;
  background: transparent; border: 0; border-radius: 12px; text-align: left;
  color: var(--ev-text) !important; font-size: 1rem; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.ev-menu-item:hover { background: var(--ev-surface-2); }
.ev-menu-item .ev-ico { width: 40px; height: 40px; font-size: 17px; }
.ev-menu-item > span:not(.ev-ico):not(.ev-count) { flex: 1; min-width: 0; }
.ev-menu-item .ev-chev { color: var(--ev-subtle); font-size: 13px; }
.ev-menu-item--danger { color: var(--ev-danger) !important; }
.ev-menu-sep { height: 1px; background: var(--ev-border); margin: 6px 0; }
.ev-sheet-open { overflow: hidden; }

/* Faixa "Instalar o app" (pwa-instalar.js) acima da barra inferior e nas cores da marca */
html body .ev-pwa-bar { border-color: var(--ev-primary-100); }
html body .ev-pwa-bar .t { color: var(--ev-text); }
html body .ev-pwa-bar .ok { background: var(--ev-primary); min-height: 44px; }
html body .ev-pwa-bar .x { min-width: 44px; min-height: 44px; }
html body .ev-pwa-ios h3 { color: var(--ev-primary); }
html body .ev-pwa-ios button { background: var(--ev-primary); }
@media (max-width: 767.98px) {
  html body.ev-has-tabbar .ev-pwa-bar { bottom: calc(var(--ev-tabbar-h) + var(--ev-safe-b) + 10px); }
}

/* ==========================================================================
   13. Login (index.php)
   ========================================================================== */
.ev-login { min-height: 100vh; min-height: 100dvh; margin: 0; }
.ev-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.ev-auth-hero {
  position: relative; overflow: hidden;
  min-height: 210px; padding: calc(28px + var(--ev-safe-t)) 24px 72px;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background-color: var(--ev-primary-700);
  background-size: cover; background-position: center;
}
.ev-auth-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(45, 62, 141, .92) 0%, rgba(28, 40, 98, .88) 60%, rgba(227, 132, 57, .55) 140%);
}
.ev-auth-hero > * { position: relative; z-index: 1; }
.ev-auth-hero h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: #fff; font-family: var(--ev-font); }
.ev-auth-hero p { margin: 6px 0 0; opacity: .9; font-size: .95rem; max-width: 420px; }
.ev-auth-hero .ev-chip { align-self: flex-start; margin-bottom: 12px; }
.ev-auth-main { display: flex; justify-content: center; align-items: flex-start; padding: 0 16px calc(24px + var(--ev-safe-b)); margin-top: -52px; position: relative; z-index: 2; }
.ev-auth-card {
  width: 100%; max-width: 420px;
  background: var(--ev-surface); border-radius: 22px; box-shadow: var(--ev-shadow-lg);
  padding: 24px 20px;
}
.ev-auth-logo { display: block; width: 84px; height: 84px; object-fit: contain; border-radius: 20px; margin: -66px auto 12px; background: #fff; padding: 6px; box-shadow: var(--ev-shadow); }
.ev-auth-card h2 { margin: 0; text-align: center; font-size: 1.25rem; font-weight: 750; color: var(--ev-text); font-family: var(--ev-font); }
.ev-auth-card .ev-subtitle { text-align: center; margin-bottom: 20px; }
.ev-auth-links { display: flex; justify-content: center; margin-top: 6px; }
.ev-linkbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px;
  background: none; border: 0; color: var(--ev-primary); font-weight: 650; font-size: .95rem; cursor: pointer; text-decoration: none;
}
.ev-linkbtn:hover { text-decoration: underline; color: var(--ev-primary-600); }
.ev-auth-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ev-border); text-align: center; font-size: .85rem; color: var(--ev-muted); }
.ev-auth-help .ev-btn { margin-top: 10px; }
.ev-auth-foot { text-align: center; font-size: .78rem; color: var(--ev-subtle); margin-top: 18px; }
@media (min-width: 900px) {
  .ev-auth { grid-template-columns: 1.15fr 1fr; }
  .ev-auth-hero { min-height: 100vh; padding: 56px; justify-content: flex-end; }
  .ev-auth-hero h1 { font-size: 2.3rem; }
  .ev-auth-main { margin-top: 0; align-items: center; padding: 32px; }
  .ev-auth-logo { margin-top: 0; }
}

/* ==========================================================================
   14. Específicos por tela (só complementos; o resto usa os componentes acima)
   ========================================================================== */
/* Boletos: ícones via CSS para não mexer no texto que o JS troca */
.ev-body .btnGerarPix::before { font-family: FontAwesome; content: "\f029"; font-weight: 400; }
.ev-body .btnCopiarPix::before { font-family: FontAwesome; content: "\f0c5"; font-weight: 400; }
.mb-card .mb-qr { display: none; }
.ev-pix { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 600px) { .ev-pix { grid-template-columns: 220px 1fr; } }
.ev-pix-qr { text-align: center; }
.ev-pix-qr img { width: 220px; max-width: 100%; border-radius: 14px; border: 1px solid var(--ev-border); background: #fff; padding: 6px; }
.ev-pix textarea {
  width: 100%; min-height: 96px; resize: vertical;
  border: 1px solid var(--ev-border); border-radius: 12px; padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; text-transform: none; color: var(--ev-text); background: var(--ev-surface-2);
}

/* Reservas */
.ev-body .escondido { margin-top: var(--ev-s4); }
.retornoItensReservas:not(:empty) { margin-top: var(--ev-s4); }
.retornoItensReservas .badge { background: var(--ev-primary-50) !important; color: var(--ev-primary) !important; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; }
.retornoItensReservas .badge label { font-size: inherit !important; }

/* Dependentes (cada cartão é um <ul> porque o JS do painel usa closest("ul")) */
ul.ev-dep { padding: var(--ev-s4); margin-bottom: 0; }
ul.ev-dep > li { list-style: none; }
.ev-dep .ev-dep-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--ev-surface-2); flex: 0 0 auto; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ev-border); }
.ev-dep .dependente { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ev-text); line-height: 1.25; word-break: break-word; }

/* Convites / meus convidados: alinhamento à paleta do design system */
.conv-page .conv-hero { background: radial-gradient(120% 140% at 100% 0%, #4256b4 0%, var(--ev-primary) 45%, var(--ev-primary-700) 100%) !important; box-shadow: 0 14px 32px rgba(28, 40, 98, .24) !important; }
.conv-page .conv-box, .mc-page .mc-card, .mc-page .mc-stat, .mc-page .mc-tools, .mc-page .mc-empty, .conv-page .conv-rules { border-color: var(--ev-border) !important; box-shadow: var(--ev-shadow) !important; }
.conv-page .conv-btn-primary, .mc-page .mc-new, .mc-page .mc-chip.ativo { background: var(--ev-primary) !important; }
.conv-page .conv-btn, .mc-page .mc-btn { font-family: var(--ev-font); }
.conv-page .conv-sticky { bottom: 0 !important; }
@media (max-width: 767.98px) {
  .ev-has-tabbar .conv-page .conv-sticky { bottom: calc(var(--ev-tabbar-h) + var(--ev-safe-b)) !important; }
}
.conv-page, .mc-page { padding-top: var(--ev-s4) !important; font-family: var(--ev-font); }
.mc-page .mc-head h2 { color: var(--ev-text) !important; font-family: var(--ev-font); }
.mc-page .mc-badge.mc-ok { background: var(--ev-success-bg); color: var(--ev-success); }
.mc-page .mc-badge.mc-pend { background: var(--ev-warning-bg); color: var(--ev-warning); }
.mc-page .mc-badge.mc-exp { background: var(--ev-danger-bg); color: var(--ev-danger); }

/* Redefinir senha (página avulsa) */
.ev-reset { max-width: 440px; margin: 24px auto; padding: 0 16px; }

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

/* "Instalar o app" some quando já está aberto como app */
@media (display-mode: standalone) { .ev-only-browser { display: none !important; } }
a.ev-kpi, a.ev-kpi:hover, a.ev-qa, a.ev-banner { text-decoration: none; }
a.ev-kpi:hover { color: var(--ev-text); }
button.ev-kpi { font: inherit; width: 100%; -webkit-appearance: none; appearance: none; }
.ev-grid-2 > .ev-card, .ev-stack-v > .ev-card { margin-top: 0; }
.mc-page .mc-head .ev-back { margin-right: 4px; }
.mc-page .mc-head > div:first-of-type { flex: 1; min-width: 0; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; left: 50%; top: 50%; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ev-spin .7s linear infinite;
}
/* Bootstrap 4 (login) não usa .show no diálogo da mesma forma: sem deslocamento no "sheet" */
@media (max-width: 575.98px) { .ev-login .modal.ev-modal-sheet .modal-dialog { transform: none !important; } }
.ev-login .modal-header .close { min-width: 44px; min-height: 44px; }
.ev-sheet:focus { outline: 0; }
