/* /recursos/css/remo-ui.css
   Camada visual "Remo UI" — identidade vermelho e branco do Clube do Remo.
   Carregada por último no <head> (depois do Bootswatch e do tema.css).
   Somente aparência: não altera comportamento, rotas ou formulários.
   Para desfazer o redesign basta remover o <link> deste arquivo nos cabeçalhos.

   Seções:
    1) Cor primária: substitui o azul do Bootswatch Materia pelo vermelho do clube
    2) Tokens       3) Base        4) Cartões      5) Botões
    6) Formulários  7) Tabelas     8) Alertas/badges/abas/paginação
    9) Modais      10) Rodapé     11) Barra superior
   12) Navegação inferior (celular)  13–14) Painel inicial
*/

/* ==========================================================================
   1) COR PRIMÁRIA — regras do Materia que usavam azul, agora em vermelho
   ========================================================================== */
a {
  color:#bc0404;
}
a:hover {
  color:#880303;
}
.table-primary,.table-primary>th,.table-primary>td {
  background-color:#f8c5c5;
}
.table-primary th,.table-primary td,.table-primary thead th,.table-primary tbody+tbody {
  border-color:#f29393;
}
.table-hover .table-primary:hover {
  background-color:#f5afaf;
}
.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th {
  background-color:#f5afaf;
}
.form-control:focus {
  border-color:#f3a1a1;
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.btn:focus,.btn.focus {
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.btn-primary {
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
  border-color:#bc0404;
}
.btn-primary:hover {
  background:#a20303 -webkit-gradient(linear, left top, left bottom, from(#be0404), to(#a20303)) repeat-x;
  background:#a20303 linear-gradient(180deg, #be0404, #a20303) repeat-x;
  border-color:#990303;
}
.btn-primary:focus,.btn-primary.focus {
  background:#a20303 -webkit-gradient(linear, left top, left bottom, from(#be0404), to(#a20303)) repeat-x;
  background:#a20303 linear-gradient(180deg, #be0404, #a20303) repeat-x;
  border-color:#990303;
  -webkit-box-shadow:0 0 0 0.2rem rgba(212, 4, 4, 0.5);
  box-shadow:0 0 0 0.2rem rgba(212, 4, 4, 0.5);
}
.btn-primary.disabled,.btn-primary:disabled {
  background-color:#bc0404;
  border-color:#bc0404;
}
.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle {
  background-color:#990303;
  border-color:#900303;
}
.btn-primary:not(:disabled):not(.disabled):active:focus,.btn-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-primary.dropdown-toggle:focus {
  -webkit-box-shadow:0 0 0 0.2rem rgba(212, 4, 4, 0.5);
  box-shadow:0 0 0 0.2rem rgba(212, 4, 4, 0.5);
}
.btn-outline-primary {
  color:#bc0404;
  border-color:#bc0404;
}
.btn-outline-primary:hover {
  background-color:#bc0404;
  border-color:#bc0404;
}
.btn-outline-primary:focus,.btn-outline-primary.focus {
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.5);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.5);
}
.btn-outline-primary.disabled,.btn-outline-primary:disabled {
  color:#bc0404;
}
.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle {
  background-color:#bc0404;
  border-color:#bc0404;
}
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-primary.dropdown-toggle:focus {
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.5);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.5);
}
.btn-link {
  color:#bc0404;
}
.btn-link:hover {
  color:#880303;
}
.dropdown-item.active,.dropdown-item:active {
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}
.custom-control-input:checked ~ .custom-control-label::before {
  border-color:#bc0404;
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
  border-color:#f3a1a1;
}
.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
  background-color:#f9cdcd;
  border-color:#f9cdcd;
}
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
  border-color:#bc0404;
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}
.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background:rgba(186, 4, 4, 0.5) -webkit-gradient(linear, left top, left bottom, from(rgba(238, 119, 119, 0.575)), to(rgba(186, 4, 4, 0.5))) repeat-x;
  background:rgba(186, 4, 4, 0.5) linear-gradient(180deg, rgba(238, 119, 119, 0.575), rgba(186, 4, 4, 0.5)) repeat-x;
}
.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {
  background:rgba(186, 4, 4, 0.5) -webkit-gradient(linear, left top, left bottom, from(rgba(238, 119, 119, 0.575)), to(rgba(186, 4, 4, 0.5))) repeat-x;
  background:rgba(186, 4, 4, 0.5) linear-gradient(180deg, rgba(238, 119, 119, 0.575), rgba(186, 4, 4, 0.5)) repeat-x;
}
.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background:rgba(186, 4, 4, 0.5) -webkit-gradient(linear, left top, left bottom, from(rgba(238, 119, 119, 0.575)), to(rgba(186, 4, 4, 0.5))) repeat-x;
  background:rgba(186, 4, 4, 0.5) linear-gradient(180deg, rgba(238, 119, 119, 0.575), rgba(186, 4, 4, 0.5)) repeat-x;
}
.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background:rgba(186, 4, 4, 0.5) -webkit-gradient(linear, left top, left bottom, from(rgba(238, 119, 119, 0.575)), to(rgba(186, 4, 4, 0.5))) repeat-x;
  background:rgba(186, 4, 4, 0.5) linear-gradient(180deg, rgba(238, 119, 119, 0.575), rgba(186, 4, 4, 0.5)) repeat-x;
}
.custom-select:focus {
  border-color:#f3a1a1;
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.custom-file-input:focus ~ .custom-file-label {
  border-color:#f3a1a1;
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.custom-range:focus::-webkit-slider-thumb {
  -webkit-box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(186, 4, 4, 0.25);
  box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.custom-range:focus::-moz-range-thumb {
  box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.custom-range:focus::-ms-thumb {
  box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.custom-range::-webkit-slider-thumb {
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}
.custom-range::-webkit-slider-thumb:active {
  background:#f9cdcd -webkit-gradient(linear, left top, left bottom, from(#fad5d5), to(#f9cdcd)) repeat-x;
  background:#f9cdcd linear-gradient(180deg, #fad5d5, #f9cdcd) repeat-x;
}
.custom-range::-moz-range-thumb {
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}
.custom-range::-moz-range-thumb:active {
  background:#f9cdcd linear-gradient(180deg, #fad5d5, #f9cdcd) repeat-x;
}
.custom-range::-ms-thumb {
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}
.custom-range::-ms-thumb:active {
  background:#f9cdcd linear-gradient(180deg, #fad5d5, #f9cdcd) repeat-x;
}
.nav-pills .nav-link.active,.nav-pills .show>.nav-link {
  background-color:#bc0404;
}
.page-link {
  color:#bc0404;
}
.page-link:hover {
  color:#880303;
}
.page-link:focus {
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.25);
}
.page-item.active .page-link {
  background-color:#bc0404;
  border-color:#bc0404;
}
.badge-primary {
  background-color:#bc0404;
}
a.badge-primary:hover,a.badge-primary:focus {
  background-color:#990303;
}
a.badge-primary:focus,a.badge-primary.focus {
  -webkit-box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.5);
  box-shadow:0 0 0 0.2rem rgba(186, 4, 4, 0.5);
}
.alert-primary {
  color:#610202;
  background:#fad6d6 -webkit-gradient(linear, left top, left bottom, from(#fbdcdc), to(#fad6d6)) repeat-x;
  background:#fad6d6 linear-gradient(180deg, #fbdcdc, #fad6d6) repeat-x;
  border-color:#f8c5c5;
}
.alert-primary hr {
  border-top-color:#f5afaf;
}
.alert-primary .alert-link {
  color:#3f0101;
}
.progress-bar {
  background-color:#bc0404;
}
.list-group-item.active {
  background-color:#bc0404;
  border-color:#bc0404;
}
.list-group-item-primary {
  color:#610202;
  background-color:#f8c5c5;
}
.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus {
  color:#610202;
  background-color:#f5afaf;
}
.list-group-item-primary.list-group-item-action.active {
  background-color:#610202;
  border-color:#610202;
}
.bg-primary {
  background-color:#bc0404 !important;
}
a.bg-primary:hover,a.bg-primary:focus,button.bg-primary:hover,button.bg-primary:focus {
  background-color:#990303 !important;
}
.bg-gradient-primary {
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x !important;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x !important;
}
.border-primary {
  border-color:#bc0404 !important;
}
.text-primary {
  color:#bc0404 !important;
}
a.text-primary:hover,a.text-primary:focus {
  color:#880303 !important;
}
.btn-primary:focus {
  background-color:#bc0404;
}
.btn-primary:hover,.btn-primary:active:hover {
  background-color:#a80303;
}
.btn-link {
  color:#bc0404;
}
.btn-link:hover,.btn-link:focus {
  color:#880303;
}
.thead-inverse th {
  background-color:#bc0404;
}
textarea:focus,textarea.form-control:focus,input.form-control:focus,input[type=text]:focus,input[type=password]:focus,input[type=email]:focus,input[type=number]:focus,[type=text].form-control:focus,[type=password].form-control:focus,[type=email].form-control:focus,[type=tel].form-control:focus,[contenteditable].form-control:focus {
  -webkit-box-shadow:inset 0 -2px 0 #bc0404;
  box-shadow:inset 0 -2px 0 #bc0404;
}
select:focus,select.form-control:focus {
  -webkit-box-shadow:inset 0 -2px 0 #bc0404;
  box-shadow:inset 0 -2px 0 #bc0404;
}
.custom-control-input:checked ~ .custom-control-label::before {
  border-color:#bc0404;
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
  background-color:#bc0404;
}
.custom-switch .custom-control-input:hover:checked:not(:disabled) ~ .custom-control-label::after {
  -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3),0 0 0 9px rgba(186, 4, 4, 0.05);
  box-shadow:0 1px 4px rgba(0,0,0,0.3),0 0 0 9px rgba(186, 4, 4, 0.05);
}
.custom-switch .custom-control-input:focus:checked:not(:disabled) ~ .custom-control-label::after {
  -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3),0 0 0 9px rgba(186, 4, 4, 0.09);
  box-shadow:0 1px 4px rgba(0,0,0,0.3),0 0 0 9px rgba(186, 4, 4, 0.09);
}
.custom-switch .custom-control-input:active:checked:not(:disabled) ~ .custom-control-label::after {
  -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3),0 0 0 9px rgba(186, 4, 4, 0.16);
  box-shadow:0 1px 4px rgba(0,0,0,0.3),0 0 0 9px rgba(186, 4, 4, 0.16);
}
.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus:hover {
  -webkit-box-shadow:inset 0 -2px 0 #bc0404;
  box-shadow:inset 0 -2px 0 #bc0404;
  color:#bc0404;
}
.nav-tabs .nav-link.active,.nav-tabs .nav-link.active:focus {
  -webkit-box-shadow:inset 0 -2px 0 #bc0404;
  box-shadow:inset 0 -2px 0 #bc0404;
  color:#bc0404;
}
.nav-tabs .nav-link.active:hover,.nav-tabs .nav-link.active:focus:hover {
  color:#bc0404;
}
.alert-primary {
  background:#bc0404 -webkit-gradient(linear, left top, left bottom, from(#d40404), to(#bc0404)) repeat-x;
  background:#bc0404 linear-gradient(180deg, #d40404, #bc0404) repeat-x;
}

/* ==========================================================================
   2) TOKENS DA IDENTIDADE VISUAL (vermelho e branco do Clube do Remo)
   ========================================================================== */
:root {
  --remo-red: #ba0404;
  --remo-red-600: #a30303;
  --remo-red-700: #8a0303;
  --remo-red-800: #6e0202;
  --remo-red-50: #fff5f5;
  --remo-red-100: #fde8e8;
  --remo-red-200: #f8c9c9;
  --remo-red-300: #f09a9a;
  --remo-ring: 0 0 0 .2rem rgba(186, 4, 4, .18);

  --remo-ink: #111827;
  --remo-text: #1f2937;
  --remo-muted: #6b7280;
  --remo-line: #e5e7eb;
  --remo-line-strong: #d1d5db;
  --remo-bg: #f3f4f6;
  --remo-surface: #ffffff;
  --remo-surface-2: #f9fafb;
  --remo-surface-3: #f3f4f6;

  --remo-radius-lg: 18px;
  --remo-radius: 14px;
  --remo-radius-sm: 10px;
  --remo-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --remo-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .06);
  --remo-shadow-md: 0 4px 10px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .08);
  --remo-shadow-lg: 0 24px 60px rgba(16, 24, 40, .22);

  --remo-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --remo-bottomnav-h: 64px;
}

body.tema-escuro {
  --remo-ink: #f3f4f6;
  --remo-text: #e5e7eb;
  --remo-muted: #9ca3af;
  --remo-line: #2a2f3a;
  --remo-line-strong: #374151;
  --remo-bg: #0c0e12;
  --remo-surface: #151820;
  --remo-surface-2: #1a1e27;
  --remo-surface-3: #20252f;
  --remo-red-50: rgba(239, 68, 68, .10);
  --remo-red-100: rgba(239, 68, 68, .16);
  --remo-red-200: rgba(239, 68, 68, .32);
  --remo-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --remo-shadow-md: 0 8px 28px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   3) BASE
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--remo-font);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.tema-escuro) {
  color: var(--remo-text);
  background-color: var(--remo-bg) !important;
  background-image:
    radial-gradient(900px 340px at 100% -120px, rgba(186, 4, 4, .07), transparent 70%),
    radial-gradient(700px 300px at 0% -140px, rgba(186, 4, 4, .05), transparent 70%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

body.tema-escuro {
  color: var(--remo-text);
  background: var(--remo-bg) !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--remo-ink);
  font-weight: 700;
  letter-spacing: -.01em;
}

a { color: var(--remo-red-600); }
a:hover { color: var(--remo-red-800); }
body.tema-escuro a:not(.btn):not(.remomenu-card):not(.remomenu-option):not(.menu-card-button):not(.menu-option-item):not(.remo-bottomnav__item) { color: #f87171; }

::selection { background: rgba(186, 4, 4, .18); }

.text-muted { color: var(--remo-muted) !important; }
hr { border-top-color: var(--remo-line); }

/* Largura útil: mobile igual, desktop aproveita melhor a tela */
.container-limitado {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 1200px) { .container-limitado { max-width: 1180px; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1600px) { .container-limitado { max-width: 1320px; } }

/* ==========================================================================
   4) CARTÕES E SUPERFÍCIES
   ========================================================================== */
.cartao {
  background: var(--remo-surface);
  border: 1px solid var(--remo-line);
  border-radius: var(--remo-radius-lg);
  box-shadow: var(--remo-shadow-md);
  padding: 18px;
  margin-top: 1.25rem !important;
}
@media (min-width: 768px) { .cartao { padding: 24px; } }
@media (min-width: 1200px) { .cartao { padding: 28px; } }

body.tema-escuro .cartao {
  background: var(--remo-surface);
  border-color: var(--remo-line);
  box-shadow: var(--remo-shadow-md);
}

.card {
  border: 1px solid var(--remo-line);
  border-radius: var(--remo-radius);
  box-shadow: var(--remo-shadow-sm);
  background-color: var(--remo-surface);
}
.card > .card-header:first-child { border-radius: calc(var(--remo-radius) - 1px) calc(var(--remo-radius) - 1px) 0 0; }
.card > .card-footer:last-child { border-radius: 0 0 calc(var(--remo-radius) - 1px) calc(var(--remo-radius) - 1px); }
.card-header {
  background: var(--remo-surface-2);
  border-bottom: 1px solid var(--remo-line);
  font-weight: 700;
}
.card-footer { background: var(--remo-surface-2); border-top: 1px solid var(--remo-line); }
body.tema-escuro .card,
body.tema-escuro .card-header,
body.tema-escuro .card-footer { color: var(--remo-text); border-color: var(--remo-line); }
body.tema-escuro .card { background: var(--remo-surface); }
body.tema-escuro .card-header,
body.tema-escuro .card-footer { background: var(--remo-surface-2); }

.lista-cards .card-registro { border-radius: var(--remo-radius); border-color: var(--remo-line); }

/* Título de página dentro do cartão: primeiro h1–h5 ganha um acento vermelho */
.cartao > h1:first-child,
.cartao > h2:first-child,
.cartao > h3:first-child,
.cartao > h4:first-child,
.cartao > h5:first-child {
  position: relative;
  padding-left: 14px;
}
.cartao > h1:first-child::before,
.cartao > h2:first-child::before,
.cartao > h3:first-child::before,
.cartao > h4:first-child::before,
.cartao > h5:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 4px;
  border-radius: 4px;
  background: var(--remo-red);
}

/* ==========================================================================
   5) BOTÕES
   ========================================================================== */
.btn {
  font-family: inherit;
  text-transform: none;
  letter-spacing: .01em;
  font-weight: 600;
  border-radius: var(--remo-radius-sm);
  border: 1px solid transparent;
  box-shadow: none;
  background-image: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus, .btn.focus { box-shadow: var(--remo-ring) !important; }
.btn-lg { border-radius: 12px; }
.btn-sm { border-radius: 8px; }

.btn.saad-btn-standard,
.btn.saad-btn-compact { border-radius: var(--remo-radius-sm) !important; font-weight: 600 !important; }

.btn-primary,
.btn-primary:focus {
  color: #fff !important;
  background-color: var(--remo-red) !important;
  border-color: var(--remo-red) !important;
  box-shadow: 0 1px 2px rgba(186, 4, 4, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: var(--remo-red-600) !important;
  border-color: var(--remo-red-600) !important;
}

.btn-success, .btn-success:focus { color: #fff; background-color: #15803d; border-color: #15803d; }
.btn-success:hover, .btn-success:not(:disabled):not(.disabled):active { color: #fff; background-color: #166534; border-color: #166534; }

.btn-danger, .btn-danger:focus { color: #fff; background-color: #991b1b; border-color: #991b1b; }
.btn-danger:hover, .btn-danger:not(:disabled):not(.disabled):active { color: #fff; background-color: #7f1d1d; border-color: #7f1d1d; }

.btn-info, .btn-info:focus { color: #fff; background-color: #0369a1; border-color: #0369a1; }
.btn-info:hover, .btn-info:not(:disabled):not(.disabled):active { color: #fff; background-color: #075985; border-color: #075985; }

.btn-warning, .btn-warning:focus { color: #fff; background-color: #b45309; border-color: #b45309; }
.btn-warning:hover, .btn-warning:not(:disabled):not(.disabled):active { color: #fff; background-color: #92400e; border-color: #92400e; }

.btn-dark, .btn-dark:focus { color: #fff; background-color: #1f2937; border-color: #1f2937; }
.btn-dark:hover { color: #fff; background-color: #111827; border-color: #111827; }

.btn-secondary, .btn-light, .btn-default { box-shadow: var(--remo-shadow-xs); }

/* outline em tom suave, sempre legível */
.btn-outline-primary { border-width: 1px; }

.btn-link { box-shadow: none !important; }

/* ==========================================================================
   6) FORMULÁRIOS
   ========================================================================== */
label { font-weight: 600; color: #374151; font-size: .9rem; margin-bottom: .35rem; }
body.tema-escuro label { color: #d1d5db; }
.form-text { color: var(--remo-muted); }

.form-control,
.custom-select,
textarea.form-control,
input.form-control,
select.form-control,
[type=text].form-control,
[type=password].form-control,
[type=email].form-control,
[type=tel].form-control,
[type=number].form-control,
[type=date].form-control,
[type=time].form-control,
[type=search].form-control {
  min-height: calc(1.5em + 1.2rem + 2px);
  padding: .55rem .85rem;
  color: var(--remo-ink);
  background-color: var(--remo-surface);
  border: 1px solid var(--remo-line-strong);
  border-radius: var(--remo-radius-sm);
  box-shadow: var(--remo-shadow-xs);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea.form-control { height: auto; }
.form-control-sm { min-height: calc(1.5em + .7rem + 2px); padding: .3rem .65rem; font-size: .875rem; border-radius: 8px; }
.form-control-lg { min-height: calc(1.5em + 1.4rem + 2px); }

select.form-control,
.custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .7rem center !important;
  background-size: 16px 16px !important;
}
select.form-control[multiple], select.form-control[size]:not([size="1"]) { background-image: none !important; padding-right: .85rem; }

.form-control:focus,
.custom-select:focus,
select.form-control:focus,
textarea.form-control:focus,
input.form-control:focus {
  color: var(--remo-ink);
  background-color: var(--remo-surface);
  border-color: var(--remo-red-300) !important;
  box-shadow: var(--remo-ring) !important;
  outline: 0;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--remo-surface-3);
  color: var(--remo-muted);
  border-style: solid;
  border-color: var(--remo-line);
  box-shadow: none;
}

body.tema-escuro .form-control,
body.tema-escuro .custom-select {
  color: var(--remo-ink);
  background-color: #0f1218;
  border-color: var(--remo-line-strong);
}
body.tema-escuro .form-control:disabled,
body.tema-escuro .form-control[readonly] { background-color: #1a1e27; color: #9ca3af; }

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-text {
  background: var(--remo-surface-2);
  border: 1px solid var(--remo-line-strong);
  border-radius: var(--remo-radius-sm);
  color: var(--remo-muted);
}
body.tema-escuro .input-group-text { background: var(--remo-surface-3); border-color: var(--remo-line-strong); color: #d1d5db; }

/* Checkbox, radio e switch na cor do clube */
.custom-control-label::before { border: 2px solid #9ca3af; background-color: var(--remo-surface); }
.custom-checkbox .custom-control-label::before { border-radius: 6px; }
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--remo-red) !important;
  background: var(--remo-red) !important;
}
.custom-radio .custom-control-input:checked ~ .custom-control-label::before { background: var(--remo-surface) !important; }
.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  background-image: none;
  background-color: var(--remo-red);
  border-radius: 50%;
  transform: scale(.5);
}
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: var(--remo-ring); }
.custom-switch .custom-control-label::before { border-radius: 1rem; }
.custom-switch .custom-control-input:checked ~ .custom-control-label::before { opacity: 1; }
.custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff !important; }

input[type=checkbox], input[type=radio] { accent-color: var(--remo-red); }

/* ==========================================================================
   7) TABELAS
   ========================================================================== */
.table { color: var(--remo-text); }
.table thead th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--remo-muted);
  background: var(--remo-surface-2);
  border-top: 0;
  border-bottom: 1px solid var(--remo-line);
  white-space: nowrap;
}
.table td, .table th { border-top-color: var(--remo-line); vertical-align: middle; }
.table-hover tbody tr:hover { background-color: var(--remo-red-50); }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(17, 24, 39, .025); }
.table-responsive {
  border-radius: var(--remo-radius);
  -webkit-overflow-scrolling: touch;
}
body.tema-escuro .table { color: var(--remo-text); }
body.tema-escuro .table thead th { background: var(--remo-surface-2); color: #9ca3af; border-color: var(--remo-line); }
body.tema-escuro .table td, body.tema-escuro .table th { border-color: var(--remo-line); }
body.tema-escuro .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, .025); }

/* ==========================================================================
   8) ALERTAS, BADGES, ABAS, PAGINAÇÃO, LISTAS, DROPDOWNS
   ========================================================================== */
.alert {
  border-radius: var(--remo-radius);
  border: 1px solid transparent;
  border-left-width: 4px;
  box-shadow: none;
}
.alert-primary   { color: var(--remo-red-800); background: var(--remo-red-50); border-color: var(--remo-red-200); border-left-color: var(--remo-red); }
.alert-success   { color: #14532d; background: #f0fdf4; border-color: #bbf7d0; border-left-color: #16a34a; }
.alert-info      { color: #0c4a6e; background: #f0f9ff; border-color: #bae6fd; border-left-color: #0284c7; }
.alert-warning   { color: #78350f; background: #fffbeb; border-color: #fde68a; border-left-color: #d97706; }
.alert-danger    { color: #7f1d1d; background: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; }
.alert-secondary,
.alert-light     { color: #374151; background: #f9fafb; border-color: var(--remo-line); border-left-color: #9ca3af; }
.alert-dark      { color: #f9fafb; background: #1f2937; border-color: #111827; }
.alert a, .alert .alert-link { color: inherit; font-weight: 700; text-decoration: underline; }
body.tema-escuro .alert-primary { color: #fecaca; background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .3); border-left-color: #ef4444; }
body.tema-escuro .alert-success { color: #bbf7d0; background: rgba(34, 197, 94, .10); border-color: rgba(34, 197, 94, .3); border-left-color: #22c55e; }
body.tema-escuro .alert-info    { color: #bae6fd; background: rgba(14, 165, 233, .10); border-color: rgba(14, 165, 233, .3); border-left-color: #0ea5e9; }
body.tema-escuro .alert-warning { color: #fde68a; background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .3); border-left-color: #f59e0b; }
body.tema-escuro .alert-danger  { color: #fecaca; background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .3); border-left-color: #ef4444; }
body.tema-escuro .alert-secondary,
body.tema-escuro .alert-light   { color: #e5e7eb; background: var(--remo-surface-2); border-color: var(--remo-line); border-left-color: #6b7280; }

.badge { font-weight: 700; border-radius: 999px; padding: .32em .62em; letter-spacing: .01em; }
.badge-primary { background-color: var(--remo-red); color: #fff; }
.badge-success { background-color: #16a34a; color: #fff; }
.badge-danger  { background-color: #dc2626; color: #fff; }
.badge-warning { background-color: #f59e0b; color: #111827; }
.badge-info    { background-color: #0284c7; color: #fff; }
.badge-secondary { background-color: #e5e7eb; color: #374151; }
.badge-light   { background-color: #f3f4f6; color: #374151; }
.badge-dark    { background-color: #1f2937; color: #fff; }

.nav-tabs { border-bottom: 1px solid var(--remo-line); }
.nav-tabs .nav-link { color: var(--remo-muted); font-weight: 600; border: 0; }
.nav-tabs .nav-link:hover { color: var(--remo-ink); box-shadow: inset 0 -2px 0 var(--remo-line-strong); }
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:focus,
.nav-tabs .nav-link.active:hover {
  color: var(--remo-red) !important;
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--remo-red) !important;
}
.nav-pills .nav-link { border-radius: 999px; font-weight: 600; color: var(--remo-muted); }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link { background: var(--remo-red) !important; color: #fff !important; }

.pagination { gap: 4px; }
.page-link {
  border-radius: 8px !important;
  border: 1px solid var(--remo-line);
  color: var(--remo-text);
  font-weight: 600;
  margin-left: 0 !important;
}
.page-link:hover { color: var(--remo-red); background: var(--remo-red-50); border-color: var(--remo-red-200); }
.page-item.active .page-link { background: var(--remo-red) !important; border-color: var(--remo-red) !important; color: #fff !important; }
body.tema-escuro .page-link { background: var(--remo-surface); border-color: var(--remo-line); color: var(--remo-text); }

.list-group-item { border-color: var(--remo-line); }
.list-group-item.active { background: var(--remo-red); border-color: var(--remo-red); }
.list-group-item-action:hover { background: var(--remo-red-50); }
body.tema-escuro .list-group-item { background: var(--remo-surface); color: var(--remo-text); }

.dropdown-menu {
  border: 1px solid var(--remo-line);
  border-radius: 12px;
  box-shadow: var(--remo-shadow-md);
  padding: .35rem;
}
.dropdown-item { border-radius: 8px; font-weight: 500; }
.dropdown-item.active, .dropdown-item:active { background: var(--remo-red); color: #fff; }

.progress { border-radius: 999px; background: var(--remo-surface-3); }
.progress-bar { background-color: var(--remo-red); }

.text-primary { color: var(--remo-red) !important; }
.bg-primary { background-color: var(--remo-red) !important; }
.border-primary { border-color: var(--remo-red) !important; }

/* ==========================================================================
   9) MODAIS
   ========================================================================== */
.modal-backdrop.show { opacity: .55; }
.modal-content {
  border: 0;
  border-radius: var(--remo-radius-lg);
  box-shadow: var(--remo-shadow-lg);
  overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--remo-line); padding: 1rem 1.25rem; align-items: center; }
.modal-footer { border-top: 1px solid var(--remo-line); padding: .85rem 1.25rem; }
.modal-title { font-weight: 700; color: var(--remo-ink); }
.modal-header .close {
  width: 36px; height: 36px; margin: -.25rem -.5rem -.25rem auto; padding: 0;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  opacity: .7; text-shadow: none;
}
.modal-header .close:hover { background: var(--remo-surface-3); opacity: 1; }
body.tema-escuro .modal-content { background: var(--remo-surface); color: var(--remo-text); border: 1px solid var(--remo-line); }
body.tema-escuro .modal-header, body.tema-escuro .modal-footer { border-color: var(--remo-line); }
body.tema-escuro .modal-header .close { color: #fff; }

/* ==========================================================================
   10) RODAPÉ
   ========================================================================== */
footer.remo-footer,
footer.remo-footer small,
footer.remo-footer .text-muted {
  color: var(--remo-muted) !important;
  opacity: 1 !important;
}
footer.remo-footer a { color: var(--remo-muted) !important; text-decoration: none !important; font-weight: 600; }
footer.remo-footer a:hover { color: var(--remo-red) !important; }
footer.remo-footer .remo-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--remo-text); }
footer.remo-footer .remo-footer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--remo-red); display: inline-block; }

/* ==========================================================================
   11) BARRA SUPERIOR (topbar_simples.php)
   ========================================================================== */
body nav.saad-topbar.remo-topbar,
body.tema-escuro nav.saad-topbar.remo-topbar {
  min-height: 60px;
  flex-wrap: nowrap !important;
  background: linear-gradient(100deg, var(--remo-red-700) 0%, var(--remo-red) 55%, #c81010 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 20px rgba(110, 2, 2, .22);
  padding-top: calc(.4rem + env(safe-area-inset-top));
  padding-bottom: .4rem;
  padding-left: max(.75rem, env(safe-area-inset-left));
  padding-right: max(.75rem, env(safe-area-inset-right));
}
.remo-topbar .remo-topbar__inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: .6rem;
  min-width: 0;
}
@media (min-width: 992px) {
  .remo-topbar .remo-topbar__inner { padding: 0 12px; }
}

.remo-topbar .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 !important;
  padding: 0;
  color: #fff !important;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.remo-topbar .topbar-brand .logo-brand { height: 34px !important; width: auto !important; }
.remo-topbar .remo-brand-text { display: none; line-height: 1.05; }
.remo-topbar .remo-brand-text strong { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: .01em; color: #fff; }
.remo-topbar .remo-brand-text small { display: block; font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .78); letter-spacing: .06em; text-transform: uppercase; }

.remo-topbar .remo-topbar__divider { display: none; width: 1px; height: 28px; background: rgba(255, 255, 255, .22); }

.remo-topbar .top-saudacao {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
  line-height: 1.1;
  white-space: nowrap;
}
.remo-topbar .top-greet { font-size: .74rem; font-weight: 600; color: rgba(255, 255, 255, .82); line-height: 1.1; }
.remo-topbar .top-name {
  margin-left: 0 !important;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.remo-topbar .top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }

.remo-topbar .top-icon-btn {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.remo-topbar .top-icon-btn:hover,
.remo-topbar .top-icon-btn:focus {
  background: rgba(255, 255, 255, .22) !important;
  border-color: rgba(255, 255, 255, .32) !important;
  color: #fff !important;
}
.remo-topbar .top-icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.remo-topbar .remo-btn-sair { width: auto !important; padding: 0 .85rem !important; gap: .45rem; font-weight: 700; font-size: .88rem; }
.remo-topbar .remo-btn-sair span { display: none; }

.remo-topbar .remo-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: #fff; color: var(--remo-red);
  font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
  flex: 0 0 38px;
}

.remo-topbar .top-notif-btn { position: relative; overflow: visible; }
.remo-topbar .top-notif-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #fbbf24; color: #111;
  border: 2px solid var(--remo-red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; line-height: 1;
}

/* Voltar no celular fica à esquerda da marca (posição natural do polegar e do iOS) */
.remo-topbar .remo-back-slot { display: none; }

@media (max-width: 767.98px) {
  .remo-topbar .remo-back-slot { display: inline-flex; }
  .remo-topbar .top-actions .remo-hide-mobile { display: none !important; }
  .remo-topbar .topbar-brand .logo-brand { height: 30px !important; }
}

@media (min-width: 768px) {
  body nav.saad-topbar.remo-topbar, body.tema-escuro nav.saad-topbar.remo-topbar { min-height: 68px; }
  .remo-topbar .remo-brand-text { display: block; }
  .remo-topbar .remo-topbar__divider { display: block; }
  .remo-topbar .remo-avatar { display: inline-flex; }
  .remo-topbar .top-actions { gap: 8px; }
  .remo-topbar .remo-btn-sair span { display: inline; }
  .remo-topbar .top-saudacao { order: 0; }
  .remo-topbar .remo-user { display: flex; align-items: center; gap: .6rem; margin-left: auto; padding-right: .4rem; min-width: 0; }
  .remo-topbar .top-actions { margin-left: .4rem; }
  .remo-topbar .top-name { max-width: 22vw; }
}

@media (max-width: 767.98px) {
  .remo-topbar .remo-user { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
}

@media (max-width: 360px) {
  .remo-topbar .top-greet { display: none; }
}

/* No painel inicial (celular) a saudação já aparece no destaque: a barra mostra a marca */
@media (max-width: 767.98px) {
  .remo-topbar.remo-topbar--home .remo-user { display: none; }
  .remo-topbar.remo-topbar--home .remo-brand-text { display: block; }
}

/* Ícone do tema alterna conforme o estado */
#icoTema .dark-mode { display: inline; } #icoTema .light-mode { display: none; }
#icoTema.is-dark .light-mode { display: inline; } #icoTema.is-dark .dark-mode { display: none; }

/* ==========================================================================
   12) NAVEGAÇÃO INFERIOR (somente celular)
   ========================================================================== */
.remo-bottomnav { display: none; }

@media screen and (max-width: 767.98px) {
  body.remo-has-bottomnav { padding-bottom: calc(var(--remo-bottomnav-h) + env(safe-area-inset-bottom) + 12px) !important; }

  .remo-bottomnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1035;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--remo-bottomnav-h) + env(safe-area-inset-bottom));
    padding: 6px max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--remo-line);
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .06);
  }
  body.tema-escuro .remo-bottomnav { background: rgba(21, 24, 32, .94); border-top-color: var(--remo-line); }

  .remo-bottomnav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #6b7280 !important;
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 12px;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }
  .remo-bottomnav__item svg { width: 22px; height: 22px; }
  .remo-bottomnav__item .remo-bottomnav__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 28px; border-radius: 999px;
    transition: background-color .15s ease;
    position: relative;
  }
  .remo-bottomnav__item.is-active { color: var(--remo-red) !important; }
  .remo-bottomnav__item.is-active .remo-bottomnav__ico { background: var(--remo-red-100); }
  .remo-bottomnav__item:active .remo-bottomnav__ico { background: var(--remo-surface-3); }
  body.tema-escuro .remo-bottomnav__item { color: #9ca3af !important; }
  body.tema-escuro .remo-bottomnav__item.is-active { color: #f87171 !important; }

  .remo-bottomnav__badge {
    position: absolute; top: -4px; right: 4px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: var(--remo-red); color: #fff;
    font-size: .64rem; font-weight: 800; line-height: 18px; text-align: center;
    border: 2px solid #fff;
  }
  body.tema-escuro .remo-bottomnav__badge { border-color: #151820; }
}

@media print {
  .remo-bottomnav, .saad-topbar, .remo-sidebar { display: none !important; }
  body.remo-has-bottomnav, body.remo-has-sidebar { padding-bottom: 0 !important; padding-left: 0 !important; }
}

/* ==========================================================================
   13) PAINEL INICIAL — cabeçalho de boas-vindas
   ========================================================================== */
.remo-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px 20px;
  margin-bottom: 18px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(135deg, var(--remo-red-700) 0%, var(--remo-red) 60%, #d11a1a 100%);
  box-shadow: 0 14px 34px rgba(138, 3, 3, .28);
}
.remo-hero__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 4px 10px;
}
.remo-hero__title { color: #fff !important; font-size: 1.55rem; font-weight: 800; margin: 12px 0 4px; letter-spacing: -.02em; }
.remo-hero__subtitle { color: rgba(255, 255, 255, .86); margin: 0; font-size: .95rem; max-width: 46ch; }
.remo-hero__mark {
  position: absolute; right: -18px; bottom: -26px;
  width: 150px; height: auto; opacity: .14; pointer-events: none;
}
.remo-hero__date { display: block; margin-top: 12px; font-size: .8rem; color: rgba(255, 255, 255, .78); font-weight: 600; }
.remo-hero__date::first-letter { text-transform: uppercase; }

@media (min-width: 768px) {
  .remo-hero { padding: 28px 32px; }
  .remo-hero__title { font-size: 1.9rem; }
  .remo-hero__mark { width: 200px; right: 10px; bottom: -36px; }
}

.remo-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--remo-muted); margin: 6px 2px 12px;
}
.remo-section-title::after { content: ""; flex: 1; height: 1px; background: var(--remo-line); }

/* ==========================================================================
   14) PAINEL INICIAL — cards do menu (admin e associado)
   ========================================================================== */
.remomenu-wrapper { margin-top: .25rem; padding-bottom: 1.5rem; }

.remomenu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 576px) { .remomenu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 992px) { .remomenu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { #menuAdmin .remomenu-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.remomenu-card {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 14px 14px;
  border: 1px solid var(--remo-line);
  border-radius: 18px;
  background: var(--remo-surface);
  color: var(--remo-ink);
  box-shadow: var(--remo-shadow-sm);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.remomenu-card:hover,
.remomenu-card:focus {
  color: var(--remo-ink);
  border-color: var(--remo-red-200);
  box-shadow: 0 10px 28px rgba(138, 3, 3, .12);
  transform: translateY(-2px);
  outline: none;
  text-decoration: none !important;
}
.remomenu-card:focus-visible { box-shadow: var(--remo-ring), 0 10px 28px rgba(138, 3, 3, .12); }
.remomenu-card:active { transform: scale(.985); }

.remomenu-card-icon-wrap,
.remomenu-modal-icon-wrap,
.remomenu-option-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--remo-red-50);
  border: 1px solid var(--remo-red-100);
  border-radius: 14px;
  transition: background-color .16s ease, border-color .16s ease;
}
.remomenu-card-icon-wrap { width: 48px; height: 48px; margin-bottom: 14px; }
.remomenu-modal-icon-wrap { width: 46px; height: 46px; }
.remomenu-option-icon-wrap { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; }

/* Ícones SVG (traço preto) recebem a cor do clube */
.remomenu-card-icon,
.remomenu-modal-icon,
.remomenu-option-icon,
#menuDepCards .menu-card-icon,
.menu-options-modal .menu-card-icon {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(6211%) hue-rotate(358deg) brightness(84%) contrast(116%);
}
.remomenu-card-icon { width: 26px; height: 26px; }
.remomenu-modal-icon { width: 26px; height: 26px; }
.remomenu-option-icon { width: 22px; height: 22px; }

.remomenu-card:hover .remomenu-card-icon-wrap,
.remomenu-card:focus .remomenu-card-icon-wrap { background: var(--remo-red); border-color: var(--remo-red); }
.remomenu-card:hover .remomenu-card-icon,
.remomenu-card:focus .remomenu-card-icon { filter: brightness(0) invert(1); }

.remomenu-card-body { display: block; padding-right: 22px; min-width: 0; }
.remomenu-card-title { display: block; font-weight: 700; font-size: .98rem; line-height: 1.2; color: var(--remo-ink); }
.remomenu-card small { display: block; margin-top: 4px; color: var(--remo-muted); font-size: .8rem; line-height: 1.3; }
.remomenu-card .badge { vertical-align: 2px; }

.remomenu-card-arrow {
  position: absolute; right: 12px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--remo-surface-3); color: var(--remo-muted);
  font-size: 1.1rem; line-height: 1; padding-bottom: 2px;
  transition: background-color .16s ease, color .16s ease;
}
.remomenu-card:hover .remomenu-card-arrow { background: var(--remo-red-100); color: var(--remo-red); }

.remomenu-header { display: none; }

/* Modal de subopções */
.remomenu-modal .modal-content { border-radius: 22px; }
.remomenu-modal .modal-header {
  background: linear-gradient(180deg, var(--remo-red-50), var(--remo-surface));
  border-bottom: 1px solid var(--remo-line);
  padding: 1.1rem 1.25rem;
}
.remomenu-modal .modal-title { font-size: 1.1rem; }
.remomenu-modal .modal-body { padding: 1rem 1.1rem 1.25rem; }

.remomenu-options-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.remomenu-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--remo-line);
  border-radius: 14px;
  background: var(--remo-surface);
  color: var(--remo-ink);
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
  position: relative;
}
.remomenu-option::after {
  content: "";
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 2px solid #9ca3af; border-top: 2px solid #9ca3af;
  transform: rotate(45deg);
  flex: 0 0 8px;
}
.remomenu-option:hover,
.remomenu-option:focus {
  color: var(--remo-ink);
  background: var(--remo-red-50);
  border-color: var(--remo-red-200);
  text-decoration: none !important;
}
.remomenu-option:hover::after { border-color: var(--remo-red); }
.remomenu-option-text { min-width: 0; }
.remomenu-option-title { display: block; font-weight: 700; line-height: 1.2; }
.remomenu-option small { display: block; color: var(--remo-muted); margin-top: 2px; }

.badge-menu-alert {
  height: 22px; padding: 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .03em;
  background: #dc2626; color: #fff; white-space: nowrap;
}

@media (max-width: 575.98px) {
  .remomenu-card { min-height: 124px; padding: 14px 12px 12px; border-radius: 16px; }
  .remomenu-card-icon-wrap { width: 44px; height: 44px; margin-bottom: 12px; }
  .remomenu-card-title { font-size: .93rem; }
  .remomenu-card small { font-size: .76rem; }
}

/* Modais de menu viram "gaveta" no celular */
@media (max-width: 575.98px) {
  .remomenu-modal .modal-dialog,
  .menu-options-modal .modal-dialog {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    margin: 0 !important;
    max-width: none;
  }
  .remomenu-modal .modal-content,
  .menu-options-modal .modal-content {
    width: 100%;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom);
    max-height: 88vh;
  }
  .remomenu-modal .modal-content::before,
  .menu-options-modal .modal-content::before {
    content: "";
    position: absolute; top: 8px; left: 50%;
    width: 42px; height: 5px; margin-left: -21px;
    border-radius: 3px; background: rgba(17, 24, 39, .18);
    z-index: 2;
  }
  .remomenu-modal .modal-body,
  .menu-options-modal .modal-body { overflow-y: auto; }
  .remomenu-modal.fade .modal-dialog,
  .menu-options-modal.fade .modal-dialog { transform: translate(0, 100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .remomenu-modal.show .modal-dialog,
  .menu-options-modal.show .modal-dialog { transform: none; }
}

/* Painel — tema escuro */
body.tema-escuro .remomenu-card,
body.tema-escuro .remomenu-option { background: var(--remo-surface); border-color: var(--remo-line); color: var(--remo-text); box-shadow: none; }
body.tema-escuro .remomenu-card-title,
body.tema-escuro .remomenu-option-title { color: #f3f4f6; }
body.tema-escuro .remomenu-card:hover,
body.tema-escuro .remomenu-option:hover { background: var(--remo-surface-2); border-color: rgba(239, 68, 68, .45); }
body.tema-escuro .remomenu-card-icon-wrap,
body.tema-escuro .remomenu-modal-icon-wrap,
body.tema-escuro .remomenu-option-icon-wrap { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .22); }
body.tema-escuro .remomenu-card-icon,
body.tema-escuro .remomenu-modal-icon,
body.tema-escuro .remomenu-option-icon,
body.tema-escuro #menuDepCards .menu-card-icon,
body.tema-escuro .menu-options-modal .menu-card-icon {
  filter: brightness(0) saturate(100%) invert(56%) sepia(64%) saturate(2350%) hue-rotate(327deg) brightness(101%) contrast(96%);
  opacity: 1;
}
body.tema-escuro .remomenu-card:hover .remomenu-card-icon { filter: brightness(0) invert(1); }
body.tema-escuro .remomenu-card-arrow { background: var(--remo-surface-3); }
body.tema-escuro .remomenu-modal .modal-header { background: var(--remo-surface-2); }
body.tema-escuro .remomenu-modal .modal-content::before { background: rgba(255, 255, 255, .2); }

/* ==========================================================================
   15) PAINEL INICIAL — menu do dependente (accordion_dependente.php)
   ========================================================================== */
#menuDepCards { margin-top: .25rem; padding-bottom: 1.5rem; }

#menuDepCards .menu-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 576px) { #menuDepCards .menu-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 992px) { #menuDepCards .menu-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

#menuDepCards .menu-card-button {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 14px 14px;
  border: 1px solid var(--remo-line);
  border-radius: 18px;
  background: var(--remo-surface);
  color: var(--remo-ink);
  box-shadow: var(--remo-shadow-sm);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
#menuDepCards .menu-card-button:hover,
#menuDepCards .menu-card-button:focus {
  color: var(--remo-ink);
  border-color: var(--remo-red-200);
  box-shadow: 0 10px 28px rgba(138, 3, 3, .12);
  transform: translateY(-2px);
  outline: none;
}
#menuDepCards .menu-card-button.menu-card-has-alert { border-color: #fca5a5; }

#menuDepCards .menu-card-main-icon {
  width: 48px; height: 48px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--remo-red-50);
  border: 1px solid var(--remo-red-100);
}
#menuDepCards .menu-card-main-icon .menu-card-icon { width: 26px; height: 26px; }
#menuDepCards .menu-card-button:hover .menu-card-main-icon { background: var(--remo-red); border-color: var(--remo-red); }
#menuDepCards .menu-card-button:hover .menu-card-icon { filter: brightness(0) invert(1); }

#menuDepCards .menu-card-content { display: block; padding-right: 22px; min-width: 0; }
#menuDepCards .menu-card-title { display: block; font-weight: 700; font-size: .98rem; line-height: 1.2; }
#menuDepCards .menu-card-desc { display: block; margin-top: 4px; color: var(--remo-muted); font-size: .8rem; line-height: 1.3; }

#menuDepCards .menu-card-action {
  position: absolute; right: 12px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--remo-surface-3); color: var(--remo-muted);
}
#menuDepCards .menu-card-action .bi { display: none; }
#menuDepCards .menu-card-action::after { content: "›"; font-size: 1.1rem; line-height: 1; padding-bottom: 2px; }
#menuDepCards .menu-card-button:hover .menu-card-action { background: var(--remo-red-100); color: var(--remo-red); }

.menu-card-icon { width: 24px; height: 24px; object-fit: contain; }

.menu-options-modal .menu-modal-content { border-radius: 22px; }
.menu-options-modal .modal-header {
  background: linear-gradient(180deg, var(--remo-red-50), var(--remo-surface));
  border-bottom: 1px solid var(--remo-line);
  padding: 1.1rem 1.25rem;
}
.menu-options-modal .modal-title { font-weight: 700; font-size: 1.1rem; }
.menu-options-modal .modal-title .menu-card-icon { width: 26px; height: 26px; margin-right: .6rem; }
.menu-options-modal .menu-option-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.menu-options-modal .menu-option-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--remo-line);
  border-radius: 14px;
  background: var(--remo-surface);
  color: var(--remo-ink);
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}
.menu-options-modal .menu-option-item:hover,
.menu-options-modal .menu-option-item:focus { background: var(--remo-red-50); border-color: var(--remo-red-200); color: var(--remo-ink); }
.menu-options-modal .menu-option-item.option-has-alert { border-color: #fca5a5; }
.menu-options-modal .menu-option-item > .menu-card-icon {
  width: 24px; height: 24px; flex: 0 0 24px; margin: 0 6px 0 4px;
}
.menu-options-modal .menu-option-item span { display: block; min-width: 0; }
.menu-options-modal .menu-option-item strong { display: block; font-weight: 700; line-height: 1.2; }
.menu-options-modal .menu-option-item small { display: block; color: var(--remo-muted); margin-top: 2px; }
.menu-options-modal .menu-option-item .bi { display: none; }
.menu-options-modal .menu-option-item::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; flex: 0 0 8px;
  border-right: 2px solid #9ca3af; border-top: 2px solid #9ca3af; transform: rotate(45deg);
}

body.tema-escuro #menuDepCards .menu-card-button,
body.tema-escuro .menu-options-modal .menu-option-item { background: var(--remo-surface); border-color: var(--remo-line); color: var(--remo-text); box-shadow: none; }
body.tema-escuro #menuDepCards .menu-card-button:hover,
body.tema-escuro .menu-options-modal .menu-option-item:hover { background: var(--remo-surface-2); border-color: rgba(239, 68, 68, .45); }
body.tema-escuro #menuDepCards .menu-card-main-icon { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .22); }
body.tema-escuro #menuDepCards .menu-card-action { background: var(--remo-surface-3); }
body.tema-escuro .menu-options-modal .modal-header { background: var(--remo-surface-2); }

@media (max-width: 575.98px) {
  #menuDepCards .menu-card-button { min-height: 124px; padding: 14px 12px 12px; border-radius: 16px; }
  #menuDepCards .menu-card-title { font-size: .93rem; }
  #menuDepCards .menu-card-desc { font-size: .76rem; }
}

/* ==========================================================================
   16) TELAS DE ACESSO (login, administração, troca e recuperação de senha)
   Mantém o cartão vermelho de cada tela; apenas refina fundo, cantos e campos.
   ========================================================================== */
html body:not(.tema-escuro):has(.login-page) {
  background-color: #f6f2f2 !important;
  background-image:
    radial-gradient(800px 420px at 50% -10%, rgba(186, 4, 4, .16), transparent 70%),
    radial-gradient(600px 360px at 100% 100%, rgba(186, 4, 4, .08), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(186, 4, 4, .06), transparent 70%) !important;
}

html body:not(.tema-escuro) .login-page .form-autenticacao.cartao {
  background:
    radial-gradient(380px 200px at 100% 0%, rgba(255, 255, 255, .14), transparent 70%),
    linear-gradient(160deg, #c50a0a 0%, var(--remo-red) 45%, var(--remo-red-700) 100%) !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(110, 2, 2, .30), 0 2px 6px rgba(110, 2, 2, .18) !important;
}
html body.tema-escuro .login-page .form-autenticacao.cartao { border-radius: 24px !important; }

.login-page .form-autenticacao { max-width: 400px; }
@media (min-width: 576px) {
  html body .login-page .form-autenticacao.cartao { padding: 28px 30px !important; }
}

.login-page .form-autenticacao .form-control {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, .0) !important;
  min-height: 48px;
  font-size: 1rem !important;
}
.login-page .form-autenticacao .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .45) !important;
  border-color: #fff !important;
}
.login-page .btn-acesso { border-radius: 12px !important; min-height: 48px; letter-spacing: .02em; }
.login-page .login-logo .logo-brand,
.login-page .logo-brand { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.login-page .login-titulo { letter-spacing: -.01em; }

/* ==========================================================================
   17) MENU LATERAL DA ADMINISTRAÇÃO (somente desktop ≥ 1200px)
   ========================================================================== */
.remo-sidebar { display: none; }

@media screen and (min-width: 1200px) {
  :root { --remo-sidebar-w: 268px; }

  body.remo-has-sidebar { padding-left: var(--remo-sidebar-w) !important; }

  .remo-sidebar {
    display: block;
    position: fixed;
    z-index: 1020;
    left: 0;
    top: var(--saad-topbar-height, 68px);
    bottom: 0;
    width: var(--remo-sidebar-w);
    background: var(--remo-surface);
    border-right: 1px solid var(--remo-line);
    box-shadow: 1px 0 0 rgba(16, 24, 40, .02);
  }
  .remo-sidebar__scroll {
    height: 100%;
    overflow-y: auto;
    padding: 16px 12px 24px;
    scrollbar-width: thin;
  }

  .remo-sidebar__label {
    margin: 16px 10px 8px;
    font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--remo-muted);
  }

  .remo-sidebar__link {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: var(--remo-text) !important;
    font-size: .9rem; font-weight: 600; line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    list-style: none;
    transition: background-color .12s ease, color .12s ease;
  }
  .remo-sidebar__link::-webkit-details-marker { display: none; }
  .remo-sidebar__link::marker { content: ""; }
  .remo-sidebar__link span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .remo-sidebar__link:hover { background: var(--remo-surface-3); }
  .remo-sidebar__link.is-active {
    background: var(--remo-red-50);
    color: var(--remo-red) !important;
    box-shadow: inset 3px 0 0 var(--remo-red);
  }
  .remo-sidebar__link.is-parent-active { color: var(--remo-red) !important; }

  .remo-sidebar__ico {
    width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain;
    filter: brightness(0) saturate(100%) invert(35%) sepia(9%) saturate(694%) hue-rotate(182deg) brightness(93%) contrast(88%);
  }
  .remo-sidebar__link.is-active .remo-sidebar__ico,
  .remo-sidebar__link.is-parent-active .remo-sidebar__ico,
  .remo-sidebar__link:hover .remo-sidebar__ico {
    filter: brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(6211%) hue-rotate(358deg) brightness(84%) contrast(116%);
  }
  .remo-sidebar__svg { width: 20px; height: 20px; flex: 0 0 20px; }

  .remo-sidebar__chev { width: 16px; height: 16px; flex: 0 0 16px; color: #9ca3af; transition: transform .15s ease; }
  .remo-sidebar__group[open] > summary .remo-sidebar__chev { transform: rotate(90deg); }

  .remo-sidebar__sub { padding: 2px 0 8px 40px; position: relative; }
  .remo-sidebar__sub::before {
    content: ""; position: absolute; left: 19px; top: 2px; bottom: 10px;
    width: 1px; background: var(--remo-line);
  }
  .remo-sidebar__sublink {
    display: block;
    padding: 7px 10px;
    margin-bottom: 1px;
    border-radius: 8px;
    color: var(--remo-muted) !important;
    font-size: .86rem; font-weight: 500;
    text-decoration: none !important;
  }
  .remo-sidebar__sublink:hover { background: var(--remo-surface-3); color: var(--remo-ink) !important; }
  .remo-sidebar__sublink.is-active { background: var(--remo-red-50); color: var(--remo-red) !important; font-weight: 700; }

  body.tema-escuro .remo-sidebar { background: #11141a; border-right-color: var(--remo-line); }
  body.tema-escuro .remo-sidebar__ico { filter: brightness(0) invert(.75); }
  body.tema-escuro .remo-sidebar__link.is-active .remo-sidebar__ico,
  body.tema-escuro .remo-sidebar__link.is-parent-active .remo-sidebar__ico,
  body.tema-escuro .remo-sidebar__link:hover .remo-sidebar__ico {
    filter: brightness(0) saturate(100%) invert(56%) sepia(64%) saturate(2350%) hue-rotate(327deg) brightness(101%) contrast(96%);
  }
  body.tema-escuro .remo-sidebar__link.is-active,
  body.tema-escuro .remo-sidebar__sublink.is-active { color: #f87171 !important; }
  body.tema-escuro .remo-sidebar__link.is-parent-active { color: #f87171 !important; }

  /* Com o menu lateral, o painel inicial usa 4 colunas */
  body.remo-has-sidebar #menuAdmin .remomenu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media screen and (min-width: 1600px) {
  body.remo-has-sidebar #menuAdmin .remomenu-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
