/* ==========================================================================
   Ratio Legis — tema Ameixa (opt-in).

   Só é carregado quando o ambiente define `Ui__Tema=ameixa` (ver UiTheme.cs e
   Components/App.razor). Sem a chave este arquivo nem é requisitado, e a produção
   continua exatamente como está.

   COMO FUNCIONA: é um over-theme. Os CSS existentes (panel.css, landing.css, auth.css)
   já são escritos sobre tokens (`--gold-500`, `--chrome-900`, `--paper`...). Em vez de
   reescrevê-los, este arquivo REMAPEIA os tokens e corrige só o que está escrito com
   valor direto. Toda regra começa com `html[data-tema="ameixa"]`, o que dá precedência
   sobre os originais sem `!important` e impede qualquer vazamento para o tema padrão.

   Paleta (a das telas aprovadas): ameixa #2d1a47 / #43296a, âmbar #e0a526, fundo
   #f6f3f9, linhas #e6e0ee. Fontes: Newsreader (títulos) e Schibsted Grotesk (texto),
   hospedadas em /fonts (a CSP só aceita `font-src 'self'`). Ambas são OFL.

   Seções: 1 fontes · 2 tokens globais · 3 tokens do painel · 4 componentes do painel ·
   5 barra de abas do celular · 5b barra superior do desktop · 6 autenticação · 7 páginas públicas.
   ========================================================================== */

/* ==========================================================================
   1. Fontes (Newsreader 500/600 · Schibsted Grotesk 400/500/600/700)
   ========================================================================== */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/newsreader-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/newsreader-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Tokens globais (:root) — telas de autenticação e o que lê os tokens da landing
   ==========================================================================
   `auth.css` lê estes tokens de :root (fundo do login, dourado, marfim, linhas, fontes).
   O painel e a landing redefinem os seus em escopo próprio (seções 3 e 6). */

html[data-tema="ameixa"] {
  --ink-900: #2d1a47;
  --ink-800: #3a2360;
  --ink-700: #43296a;

  --line: rgba(224, 165, 38, 0.2);
  --line-strong: rgba(224, 165, 38, 0.38);

  /* a escala "dourado" vira o âmbar do Ameixa */
  --gold-700: #8a5a00;
  --gold-500: #e0a526;
  --gold-300: #f0bb48;
  --gold-100: #fbeccd;

  --ivory: #f6f3f9;
  --ivory-dim: #d6cde6;
  --ivory-mute: #bcaed4;

  --danger: #f0959b;
  --ok: #8fd0a8;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   3. Painel — tokens
   ==========================================================================
   Mesma disciplina do panel.css: os `--ink-*` do painel são TINTA (texto sobre superfície
   clara) e as superfícies escuras do chrome têm tokens próprios. Aqui só se trocam valores. */

html[data-tema="ameixa"] body:has(.sidebar) {
  --gold-700: #8a5a00;
  --gold-500: #e0a526;
  --gold-300: #f0bb48;
  --gold-100: #fbeccd;

  --paper: #f6f3f9;
  --surface: #ffffff;
  --surface-soft: #faf8fc;

  --ink-900: #150f24;
  --ink-800: #251a3a;
  --ink-700: #1d1630;
  --ink-500: #5a5170;
  --ink-300: #6c6283;

  --chrome-900: #2d1a47;
  --chrome-800: #43296a;
  --chrome-text: #f6f3f9;
  --chrome-text-dim: #d6cde6;
  --chrome-text-mute: #bcaed4;
  --chrome-line: rgba(246, 243, 249, 0.16);
  --chrome-line-gold: rgba(224, 165, 38, 0.22);

  --line: #e6e0ee;
  --line-soft: #eee9f4;
  --shadow-sm: 0 1px 2px rgba(45, 26, 71, 0.06);
  --shadow-md: 0 1px 2px rgba(45, 26, 71, 0.06), 0 10px 24px -14px rgba(45, 26, 71, 0.22);

  /* links em ameixa (no tema padrão são dourado envelhecido) */
  --link: #43296a;
  --link-hover: #2d1a47;

  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #1d7a4f;
  --success-soft: #e8f5ee;
  --info: #4b3a86;
  --info-soft: #efeafa;
  --neutral: #5a5170;
  --neutral-soft: #efecf4;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --bs-link-color: var(--link);
  --bs-link-hover-color: var(--link-hover);
  --bs-primary: #43296a;
  --bs-primary-rgb: 67, 41, 106;
}

/* ==========================================================================
   4. Painel — componentes cujo valor está escrito direto (sem token) no panel.css
   ========================================================================== */

/* Navegação */
html[data-tema="ameixa"] body:has(.sidebar) .panel-nav__link:hover {
  background-color: rgba(246, 243, 249, 0.08);
}

html[data-tema="ameixa"] body:has(.sidebar) .panel-nav__link.active {
  background-color: rgba(224, 165, 38, 0.16);
}

html[data-tema="ameixa"] body:has(.sidebar) .panel-sidebar__tagline,
html[data-tema="ameixa"] body:has(.sidebar) .panel-nav__label {
  letter-spacing: 0.1em;
}

html[data-tema="ameixa"] body:has(.sidebar) .panel-sidebar__name {
  font-weight: 600;
  letter-spacing: 0;
}

/* Ação primária: ameixa com texto branco (14,6:1). O âmbar fica para o destaque e para
   `.btn-warning`, como nas telas aprovadas. */
html[data-tema="ameixa"] body:has(.sidebar) .btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #43296a;
  --bs-btn-border-color: #43296a;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #2d1a47;
  --bs-btn-hover-border-color: #2d1a47;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #2d1a47;
  --bs-btn-active-border-color: #2d1a47;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #8e7fa8;
  --bs-btn-disabled-border-color: #8e7fa8;
  color: #ffffff;
  background-color: #43296a;
  border-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-primary:hover,
html[data-tema="ameixa"] body:has(.sidebar) .btn-primary:focus-visible {
  color: #ffffff;
  background-color: #2d1a47;
  border-color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-outline-primary {
  --bs-btn-color: #43296a;
  --bs-btn-border-color: #cfc6dd;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #43296a;
  --bs-btn-hover-border-color: #43296a;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #2d1a47;
  --bs-btn-active-border-color: #2d1a47;
  color: #43296a;
  border-color: #cfc6dd;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-outline-primary:hover,
html[data-tema="ameixa"] body:has(.sidebar) .btn-outline-primary:focus-visible {
  color: #ffffff;
  background-color: #43296a;
  border-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-outline-secondary:hover,
html[data-tema="ameixa"] body:has(.sidebar) .btn-outline-secondary:focus-visible {
  color: #2d1a47;
  border-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-warning {
  --bs-btn-color: #2d1a47;
  --bs-btn-bg: #e0a526;
  --bs-btn-border-color: #e0a526;
  --bs-btn-hover-color: #2d1a47;
  --bs-btn-hover-bg: #f0bb48;
  --bs-btn-hover-border-color: #f0bb48;
  --bs-btn-active-color: #2d1a47;
  --bs-btn-active-bg: #c98f12;
  --bs-btn-active-border-color: #c98f12;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-link {
  color: var(--link);
  text-decoration: underline;
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-link:hover {
  color: var(--link-hover);
}

html[data-tema="ameixa"] body:has(.sidebar) .btn-danger {
  --bs-btn-hover-bg: #8f1e17;
}

/* Foco de teclado: anel ameixa (no tema padrão é dourado) */
html[data-tema="ameixa"] body:has(.sidebar) .btn:focus-visible,
html[data-tema="ameixa"] body:has(.sidebar) .btn-link:focus-visible,
html[data-tema="ameixa"] body:has(.sidebar) .form-control:focus,
html[data-tema="ameixa"] body:has(.sidebar) .form-select:focus,
html[data-tema="ameixa"] body:has(.sidebar) .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(67, 41, 106, 0.28);
  border-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .form-select:focus,
html[data-tema="ameixa"] body:has(.sidebar) .form-control:focus {
  border-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .form-control::placeholder {
  color: #7d7394;
}

html[data-tema="ameixa"] body:has(.sidebar) .form-check-input {
  border-color: #b3a6cc;
}

html[data-tema="ameixa"] body:has(.sidebar) .form-check-input:checked {
  background-color: #43296a;
  border-color: #43296a;
}

/* Avisos */
html[data-tema="ameixa"] body:has(.sidebar) .alert-danger {
  border-color: #f3c9c4;
  color: #7a1a12;
}

html[data-tema="ameixa"] body:has(.sidebar) .alert-success {
  border-color: #c7e4d3;
  color: #14563a;
}

html[data-tema="ameixa"] body:has(.sidebar) .alert-warning {
  border-color: #f0dca0;
  border-left-color: #e0a526;
  background-color: #fdf0c9;
  color: #7a4b00;
}

html[data-tema="ameixa"] body:has(.sidebar) .alert-info {
  border-color: #d8d0ee;
  color: #3a2c6a;
}

html[data-tema="ameixa"] body:has(.sidebar) .badge.bg-warning {
  background-color: #fdf0c9 !important;
  color: #7a4b00;
}

html[data-tema="ameixa"] body:has(.sidebar) .table-warning > * {
  background-color: rgba(224, 165, 38, 0.14);
}

/* Abas, paginação, listas */
html[data-tema="ameixa"] body:has(.sidebar) .nav-tabs .nav-link.active {
  color: #2d1a47;
  border-bottom-color: #e0a526;
}

html[data-tema="ameixa"] body:has(.sidebar) .nav-pills .nav-link.active {
  background-color: #efeafa;
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .page-link {
  color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .page-link:hover {
  color: #2d1a47;
  border-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .page-item.active .page-link {
  background-color: #43296a;
  border-color: #43296a;
  color: #ffffff;
}

html[data-tema="ameixa"] body:has(.sidebar) .dropdown-item:hover {
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .list-group-item.active,
html[data-tema="ameixa"] body:has(.sidebar) .list-group-item-action.active {
  background-color: #efeafa;
  border-color: #43296a;
  box-shadow: inset 3px 0 0 #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) #blazor-error-ui {
  background: #fdf0c9;
  color: #7a4b00;
}

/* Cartões: sombra violeta e título em Newsreader, como nas telas aprovadas */
html[data-tema="ameixa"] body:has(.sidebar) .card {
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   5. Barra de abas do celular (markup em Components/Layout/AbasMobile.razor)
   ========================================================================== */

.tabbar-ameixa {
  display: none;
}

@media (max-width: 991.98px) {
  html[data-tema="ameixa"] body:has(.sidebar) .tabbar-ameixa {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1035;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(45, 26, 71, 0.35);
  }

  html[data-tema="ameixa"] body:has(.sidebar) .tabbar-ameixa__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 56px;
    padding: 0.4rem 0.15rem;
    border-top: 3px solid transparent;
    color: var(--ink-500);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  html[data-tema="ameixa"] body:has(.sidebar) .tabbar-ameixa__link:hover {
    color: var(--chrome-900);
    text-decoration: none;
  }

  html[data-tema="ameixa"] body:has(.sidebar) .tabbar-ameixa__link.active {
    border-top-color: var(--gold-500);
    color: var(--chrome-900);
  }

  html[data-tema="ameixa"] body:has(.sidebar) .tabbar-ameixa__link:focus-visible {
    outline: 2px solid var(--chrome-800);
    outline-offset: -4px;
  }

  html[data-tema="ameixa"] body:has(.sidebar) .tabbar-ameixa__icon {
    width: 22px;
    height: 22px;
  }

  /* O conteúdo não pode ficar escondido atrás da barra. */
  html[data-tema="ameixa"] body:has(.sidebar):has(.tabbar-ameixa) main {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   5b. Barra superior (desktop)
   ==========================================================================
   Markup em Components/Layout/MainLayout.razor (a barra) e em NavMenu.razor (`Superior`: os
   destinos). A partir de 992px a barra substitui a sidebar e a barra de cima do tema padrão —
   que seguem no DOM, escondidas: `body:has(.sidebar)` é o escopo do panel.css e, no celular, a
   sidebar é a gaveta. Abaixo de 992px a barra some e valem a gaveta e a barra de abas. */

html[data-tema="ameixa"] .topbar-ameixa {
  display: none;
}

@media (min-width: 992px) {
  html[data-tema="ameixa"] body:has(.sidebar) .page {
    display: block;
  }

  html[data-tema="ameixa"] body:has(.sidebar) .sidebar,
  html[data-tema="ameixa"] body:has(.sidebar) .top-row {
    display: none;
  }

  html[data-tema="ameixa"] .topbar-ameixa {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: block;
    background-color: #2d1a47;
    border-bottom: 1px solid rgba(224, 165, 38, 0.22);
  }
}

html[data-tema="ameixa"] .topbar-ameixa__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
  padding: 0 1.75rem;
}

html[data-tema="ameixa"] .topbar-ameixa__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
}

html[data-tema="ameixa"] .topbar-ameixa__brand:hover {
  color: #ffffff;
  text-decoration: none;
}

/* O logotipo oficial (escudo + nome) no lugar da balança provisória e do texto. */
html[data-tema="ameixa"] .topbar-ameixa__logo {
  display: block;
  width: auto;
  height: 40px;
}

html[data-tema="ameixa"] .topnav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

html[data-tema="ameixa"] .topnav__items {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-tema="ameixa"] .topnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: #d6cde6;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

html[data-tema="ameixa"] .topnav__link:hover {
  background-color: rgba(246, 243, 249, 0.08);
  color: #ffffff;
  text-decoration: none;
}

html[data-tema="ameixa"] .topnav__link.active {
  background-color: rgba(246, 243, 249, 0.1);
  box-shadow: inset 0 -2px 0 #e0a526;
  color: #ffffff;
}

html[data-tema="ameixa"] .topnav__badge {
  min-width: 1.3rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background-color: #e0a526;
  color: #2d1a47;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

html[data-tema="ameixa"] .topnav__badge--alert {
  background-color: #f3b6b0;
  color: #4a1a1a;
}

/* "Mais": um <details>, que abre e fecha sem JavaScript. */
html[data-tema="ameixa"] .topnav__more {
  position: relative;
}

html[data-tema="ameixa"] .topnav__more-summary {
  list-style: none;
}

html[data-tema="ameixa"] .topnav__more-summary::-webkit-details-marker {
  display: none;
}

html[data-tema="ameixa"] .topnav__more[open] > .topnav__more-summary {
  background-color: rgba(246, 243, 249, 0.1);
  color: #ffffff;
}

html[data-tema="ameixa"] .topnav__chevron {
  transition: transform 0.15s ease;
}

html[data-tema="ameixa"] .topnav__more[open] .topnav__chevron {
  transform: rotate(180deg);
}

html[data-tema="ameixa"] .topnav__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1050;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
  width: max-content;
  min-width: 18rem;
  max-width: min(44rem, calc(100vw - 3rem));
  max-height: 70vh;
  padding: 0.85rem;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #e6e0ee;
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(45, 26, 71, 0.45);
}

html[data-tema="ameixa"] .topnav__group-label {
  padding: 0 0.6rem 0.3rem;
  color: #6c6283;
  font-size: 0.78rem;
  font-weight: 600;
}

html[data-tema="ameixa"] .topnav__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-tema="ameixa"] .topnav__sublink {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: #1d1630;
  font-size: 0.92rem;
  text-decoration: none;
}

html[data-tema="ameixa"] .topnav__sublink:hover {
  background-color: #efeafa;
  color: #2d1a47;
  text-decoration: none;
}

html[data-tema="ameixa"] .topnav__sublink.active {
  background-color: #efeafa;
  box-shadow: inset 3px 0 0 #43296a;
  color: #2d1a47;
  font-weight: 600;
}

html[data-tema="ameixa"] .topbar-ameixa__user {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

html[data-tema="ameixa"] .topbar-ameixa__user form {
  margin: 0;
}

html[data-tema="ameixa"] .topbar-ameixa__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #d6cde6;
}

html[data-tema="ameixa"] .topbar-ameixa__icon-link:hover {
  background-color: rgba(246, 243, 249, 0.08);
  color: #ffffff;
  text-decoration: none;
}

html[data-tema="ameixa"] .topbar-ameixa__me {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f6f3f9;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

html[data-tema="ameixa"] .topbar-ameixa__me:hover {
  color: #ffffff;
  text-decoration: none;
}

html[data-tema="ameixa"] .topbar-ameixa__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #e0a526;
  color: #2d1a47;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

html[data-tema="ameixa"] .topbar-ameixa__user-name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-tema="ameixa"] .topbar-ameixa__logout {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border: 1px solid rgba(246, 243, 249, 0.3);
  border-radius: 10px;
  background: none;
  color: #d6cde6;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

html[data-tema="ameixa"] .topbar-ameixa__logout:hover {
  border-color: #e0a526;
  color: #ffffff;
  text-decoration: none;
}

html[data-tema="ameixa"] .topbar-ameixa a:focus-visible,
html[data-tema="ameixa"] .topbar-ameixa summary:focus-visible,
html[data-tema="ameixa"] .topbar-ameixa button:focus-visible {
  outline: 2px solid #f0bb48;
  outline-offset: 2px;
}

/* "Contratos e Propostas" tem rótulo longo e rótulo curto ("Contratos"): o NavMenu desenha os dois e o CSS
   escolhe. O nome completo só cabe em tela larga; abaixo de 1280px a barra mostra o curto (o aria-label do
   link segue com o nome completo, e a aba Propostas está na própria tela). */
html[data-tema="ameixa"] .topnav__label-short {
  display: none;
}

@media (max-width: 1279.98px) {
  html[data-tema="ameixa"] .topnav__label-full {
    display: none;
  }

  html[data-tema="ameixa"] .topnav__label-short {
    display: inline;
  }
}

/* Com o Timesheet sempre à mostra a barra tem oito destinos: abaixo de 1440px o respiro dos links encolhe
   para tudo caber sem encostar no usuário. */
@media (max-width: 1439.98px) {
  html[data-tema="ameixa"] .topnav__link {
    padding: 0.5rem 0.55rem;
    font-size: 0.9rem;
  }
}

/* Entre 992 e 1199px a barra aperta: tira o nome do usuário (o avatar fica) e encolhe o respiro. */
@media (max-width: 1199.98px) {
  html[data-tema="ameixa"] .topbar-ameixa__inner {
    gap: 1rem;
    padding: 0 1rem;
  }

  html[data-tema="ameixa"] .topbar-ameixa__user-name {
    display: none;
  }

  html[data-tema="ameixa"] .topnav__link {
    padding: 0.5rem 0.45rem;
    font-size: 0.88rem;
  }
}

/* Abaixo de 1100px (992 a 1099) a barra só cabe sem o atalho de busca
   (a busca continua no menu do celular e em /busca). */
@media (max-width: 1099.98px) {
  html[data-tema="ameixa"] .topbar-ameixa__inner {
    gap: 0.75rem;
  }

  html[data-tema="ameixa"] .topbar-ameixa__icon-link {
    display: none;
  }

  html[data-tema="ameixa"] .topnav__link {
    padding: 0.5rem 0.38rem;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-tema="ameixa"] .topnav__chevron {
    transition: none;
  }
}

/* ==========================================================================
   6. Telas de autenticação (login, primeiro acesso, 2FA, bloqueio)
   ========================================================================== */

html[data-tema="ameixa"] .auth-shell {
  --auth-surface: #ffffff;
  --auth-surface-soft: #faf8fc;
  --auth-ink: #1d1630;
  --auth-ink-soft: #6c6283;
  --auth-ink-mute: #5a5170;
  --auth-line: #e6e0ee;

  background-color: #2d1a47;
  background-image: radial-gradient(120% 80% at 85% -10%, rgba(224, 165, 38, 0.16), rgba(45, 26, 71, 0) 60%);
}

/* "← Voltar ao site" não tem cor própria no auth.css e herdava o azul do Bootstrap. */
html[data-tema="ameixa"] .auth__back {
  color: #43296a;
}

/* ==========================================================================
   7. Páginas públicas (landing, termos, privacidade, obrigado)
   ========================================================================== */

html[data-tema="ameixa"] .public-shell {
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Schibsted Grotesk', system-ui, sans-serif;

  background-color: #f6f3f9;
  color: #1d1630;
}

html[data-tema="ameixa"] .public-shell:has(.landing),
html[data-tema="ameixa"] .public-shell:has(.legal),
html[data-tema="ameixa"] .public-shell:has(.thanks) {
  --ink-900: #25143c;
  --ink-800: #2d1a47;
  --ink-700: #3a2360;
  --ivory-mute: #bcaed4;
  --danger: #f2a3a8;
  /* rótulo claro sobre o botão `.btn--navy`: 6,3:1 */
  --gold-700: #7a4b00;

  background-color: var(--ink-900);
  color: var(--ivory);
}

/* ==========================================================================
   8. Telas do painel — o desenho do protótipo sobre o markup que elas já têm
   ==========================================================================
   Em vez de reescrever página por página (e arriscar permissões, ids e fluxos que os testes cobrem),
   a área de conteúdo do painel (`.content`) ganha o desenho do protótipo "Ameixa detalhado": título
   grande em Newsreader com a linha de apoio, cartões com sombra violeta, tabelas com cabeçalho em
   lavanda, filtros dentro de um cartão, campos de 46 px, botões e selos do mesmo traço. O escopo é
   `.content`: a barra superior, a gaveta e as telas de autenticação não passam por aqui. Páginas que já
   renderizam o markup do protótipo (`.am`, como o painel) ficam de fora: o desenho delas é o `ameixa-ui.css`. */

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) {
  max-width: 1400px;
  margin-inline: auto;
  padding: 30px 28px 72px;
  color: #1d1630;
}

@media (max-width: 575.98px) {
  html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) {
    padding: 22px 16px 56px;
  }
}

/* Títulos */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) h1 {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) h2,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .h5 {
  font-size: 26px;
  line-height: 1.2;
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) h3,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .h6 {
  font-size: 20px;
  line-height: 1.25;
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) h1 + p,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) h1 + .text-muted {
  margin-top: 6px;
  font-size: 16px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .text-muted {
  color: #5a5170 !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .panel-eyebrow {
  display: none;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .panel-page-head {
  padding-bottom: 0;
  border-bottom: 0;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.list-group-item):not(.badge) {
  color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.list-group-item):not(.badge):hover {
  color: #2d1a47;
}

/* Cartões */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .card {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(45, 26, 71, 0.06), 0 10px 24px -14px rgba(45, 26, 71, 0.22);
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .card:not([class*="border-"]) {
  border-color: #cfc6dd;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .card-header {
  padding: 18px 22px 10px;
  border-bottom: 0;
  background-color: transparent;
  font-size: 22px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .card-body {
  padding: 16px 22px;
}

/* Filtros: a barra de campos de cima da lista vira um cartão, como no protótipo */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) > .row.align-items-end {
  margin-inline: 0;
  margin-bottom: 20px;
  padding: 16px 12px 8px;
  border: 1px solid #cfc6dd;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(45, 26, 71, 0.06), 0 10px 24px -14px rgba(45, 26, 71, 0.22);
}

/* Tabelas */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table-responsive {
  position: relative;
  padding: 0;
  border-color: #cfc6dd;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(45, 26, 71, 0.06), 0 10px 24px -14px rgba(45, 26, 71, 0.22);
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table {
  --bs-table-color: #1d1630;
  --bs-table-border-color: #e6e0ee;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > thead th,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > thead td {
  padding: 10px 12px;
  border-top: 0;
  border-bottom: 1px solid #cfc6dd;
  background-color: #f6f3f9;
  color: #5a5170;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > tbody > tr > td,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > tbody > tr > th {
  padding: 12px;
  border-color: #e6e0ee;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > :not(caption) > * > :first-child {
  padding-left: 22px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > :not(caption) > * > :last-child {
  padding-right: 22px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table-hover > tbody > tr:hover > * {
  background-color: #faf8fc;
}

/* Formulários */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-label {
  margin-bottom: 6px;
  color: #1d1630;
  font-size: 15px;
  font-weight: 600;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-control,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-select {
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #cfc6dd;
  border-radius: 10px;
  background-color: #faf8fc;
  color: #1d1630;
  font-size: 16px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) textarea.form-control {
  min-height: 96px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-control-sm,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-select-sm {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 15px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-control:focus,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-select:focus {
  border-color: #43296a;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(67, 41, 106, 0.28);
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-check-input:checked {
  border-color: #43296a;
  background-color: #43296a;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .form-check-input:focus {
  border-color: #43296a;
  box-shadow: 0 0 0 3px rgba(67, 41, 106, 0.28);
}

/* Botões */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn {
  --bs-btn-padding-x: 22px;
  --bs-btn-padding-y: 0;
  --bs-btn-font-size: 16px;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 10px;
  --bs-btn-border-width: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-sm {
  --bs-btn-padding-x: 14px;
  --bs-btn-font-size: 15px;
  min-height: 40px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-outline-secondary,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-outline-primary,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-outline-dark,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-light {
  --bs-btn-color: #43296a;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #cfc6dd;
  --bs-btn-hover-color: #2d1a47;
  --bs-btn-hover-bg: #ece6f4;
  --bs-btn-hover-border-color: #ece6f4;
  --bs-btn-active-color: #2d1a47;
  --bs-btn-active-bg: #e2d9ef;
  --bs-btn-active-border-color: #e2d9ef;
  --bs-btn-disabled-color: #8e7fa8;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #e6e0ee;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-outline-danger {
  --bs-btn-color: #b42318;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #e7b2ad;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #b42318;
  --bs-btn-hover-border-color: #b42318;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #8f1b12;
  --bs-btn-active-border-color: #8f1b12;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-danger {
  --bs-btn-bg: #b42318;
  --bs-btn-border-color: #b42318;
  --bs-btn-hover-bg: #8f1b12;
  --bs-btn-hover-border-color: #8f1b12;
  --bs-btn-active-bg: #8f1b12;
  --bs-btn-active-border-color: #8f1b12;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-link {
  --bs-btn-color: #43296a;
  --bs-btn-hover-color: #2d1a47;
  --bs-btn-padding-x: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Selos: sempre com texto, e a cor só reforça */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-success,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-success {
  background-color: #e8f5ee !important;
  color: #1d7a4f !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-danger,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-danger {
  background-color: #fdecea !important;
  color: #b42318 !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-warning,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-warning {
  background-color: #fdf0c9 !important;
  color: #7a4b00 !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-info,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-primary,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-info,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-primary {
  background-color: #efeafa !important;
  color: #4b3a86 !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-secondary,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-light,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-secondary,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-light {
  background-color: #f1ecf7 !important;
  color: #5a5170 !important;
}

/* Avisos */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .alert {
  padding: 12px 16px;
  border-width: 1px;
  border-radius: 12px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .alert-info {
  border-color: #d6cbea;
  background-color: #efeafa;
  color: #3a2c6a;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .alert-danger {
  border-color: #f0c3be;
  background-color: #fdecea;
  color: #7a1a12;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .alert-success {
  border-color: #b9e0c9;
  background-color: #e8f5ee;
  color: #14563a;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .alert-warning {
  border-color: #ecd08a;
  background-color: #fdf0c9;
  color: #7a4b00;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .alert-secondary {
  border-color: #e6e0ee;
  background-color: #f1ecf7;
  color: #5a5170;
}

/* Abas, filtros em pílula, paginação e trilha */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .tabs.d-flex .btn {
  border-radius: 999px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .nav-tabs {
  gap: 4px;
  border-bottom-color: #cfc6dd;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .nav-tabs .nav-link {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background-color: transparent;
  color: #5a5170;
  font-weight: 600;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .nav-tabs .nav-link.active {
  border-bottom-color: #e0a526;
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .nav-pills {
  gap: 8px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .nav-pills .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfc6dd;
  border-radius: 999px;
  color: #43296a;
  font-weight: 600;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .nav-pills .nav-link.active {
  border-color: #43296a;
  background-color: #43296a;
  color: #ffffff;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .pagination {
  gap: 8px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .page-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cfc6dd;
  border-radius: 10px !important;
  font-weight: 600;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .breadcrumb {
  margin-bottom: 14px;
  font-size: 15px;
  --bs-breadcrumb-divider-color: #8e7fa8;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .breadcrumb-item a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .breadcrumb-item.active {
  color: #5a5170;
}

@media (max-width: 991.98px) {
  html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-sm {
    min-height: 44px;
  }
}

/* Cabeçalho da página: título à esquerda e a ação principal alinhada à base, como no protótipo */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) > .d-flex:has(> div > h1) {
  align-items: flex-end !important;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

/* Sem zebra: a linha de baixo e o hover já separam as linhas */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table-striped {
  --bs-table-striped-bg: transparent;
  --bs-table-bg-type: transparent;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: transparent;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table-responsive + .d-flex {
  margin-top: 14px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-group {
  gap: 8px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-group > .btn {
  margin-left: 0 !important;
  border-radius: 10px !important;
}

/* Título de cada dia (Agenda): serifada de 24 px e sem a linha embaixo */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) h2.h6 {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  font-size: 24px;
}

/* Dados em lista de definição (detalhe do cliente, contrato, parcela): rótulo à esquerda, valor à direita, linha entre os pares */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) dl.row > dt,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) dl.row > dd {
  margin: 0;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e0ee;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) dl.row > dt {
  color: #5a5170;
  font-size: 15px;
  font-weight: 600;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) dl.row > dt:nth-last-child(-n + 2),
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) dl.row > dd:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* ==========================================================================
   9. Entrar — a tela dividida do protótipo (a partir de 992 px)
   ==========================================================================
   Metade ameixa com a marca, a frase e os três motivos; metade clara com o formulário. É só CSS sobre o
   markup do login (`.auth__brand-col` só existe nele): a marca da esquerda é desenhada por pseudo-elemento
   (a coluna é `aria-hidden`), então nada muda no HTML nem na ordem de leitura, em que o formulário vem
   primeiro. Abaixo de 992 px segue o cartão sobre a ameixa da seção 6. As demais telas de autenticação
   (primeiro acesso, 2FA, bloqueio) não têm a coluna e ficam como estão. */

@media (min-width: 992px) {
  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) {
    align-items: stretch;
    padding: 0;
    background-color: #f6f3f9;
    background-image: none;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    max-width: none;
    min-height: 100vh;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand {
    display: none;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__title {
    font-size: 44px;
    letter-spacing: -0.012em;
    color: #2d1a47;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__lead {
    margin-bottom: 28px;
    font-size: 16px;
    color: #5a5170;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-col {
    position: relative;
    order: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 112px 56px 56px;
    border-left: 0;
    background-color: #2d1a47;
    background-image: radial-gradient(120% 80% at 85% -10%, rgba(224, 165, 38, 0.16), rgba(45, 26, 71, 0) 60%);
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-col::before {
    content: "Ratio Legis";
    position: absolute;
    top: 48px;
    left: 56px;
    padding-left: 44px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none' stroke='%23f6f3f9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 5v21M10 27h12M5 9h22'/%3E%3Cpath d='M5 9l-3.5 8a3.5 3.5 0 0 0 7 0zM27 9l-3.5 8a3.5 3.5 0 0 0 7 0z'/%3E%3Ccircle cx='16' cy='5' r='1.4' fill='%23f6f3f9'/%3E%3C/svg%3E") no-repeat left center / 32px 32px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-logo {
    display: none;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-tagline {
    max-width: 14ch;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.012em;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-list {
    max-width: 460px;
    margin-top: 32px;
    border-top: 0;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-list li {
    padding: 7px 0 7px 30px;
    border-bottom: 0;
    color: #d6cde6;
    font-size: 16px;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__brand-list li::before {
    content: "\2713";
    top: 7px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #e0a526;
    font-weight: 700;
  }
}

@media (min-width: 992px) {
  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__submit {
    border-color: #43296a;
    border-radius: 10px;
    background-color: #43296a;
    color: #ffffff;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__submit:hover,
  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__submit:focus-visible {
    border-color: #2d1a47;
    background-color: #2d1a47;
    color: #ffffff;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__help a {
    color: #43296a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__help a:hover {
    color: #2d1a47;
  }

  html[data-tema="ameixa"] .auth-shell:has(.auth__brand-col) .auth__back {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
  }
}

/* ==========================================================================
   10. Detalhes das listas: iniciais, linha atrasada e selos com ícone
   ========================================================================== */

/* Iniciais do nome em círculo (lista de clientes) */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-nome {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e6dff1;
  color: #2d1a47;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

/* Linha atrasada: barra vermelha na ponta esquerda (a mesma pista do protótipo). O selo vermelho
   ("Vencida", "Atrasado há N dias") já diz o motivo em texto; a barra só ajuda a achar a linha. */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .table > tbody > tr:has(.badge.bg-danger) > :first-child {
  box-shadow: inset 4px 0 0 #b42318;
}

/* Selos com ícone: o ícone repete o que o texto diz (atraso, prazo próximo, data), nunca o substitui */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-danger::before,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-danger::before,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-warning::before,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-warning::before,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-info::before,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-info::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: var(--ameixa-icone) center / contain no-repeat;
  mask: var(--ameixa-icone) center / contain no-repeat;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-danger,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-danger {
  --ameixa-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 16H3zM12 10v4M12 17.5v.01'/%3E%3C/svg%3E");
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-warning,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-warning {
  --ameixa-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0'/%3E%3C/svg%3E");
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.bg-info,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .badge.text-bg-info {
  --ameixa-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v16H4zM4 10h16M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

/* ==========================================================================
   11. Cobrança: a prévia do celular e a ação principal em ameixa
   ========================================================================== */

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-fone {
  padding: 18px;
  border: 1px solid #cfc6dd;
  border-radius: 22px;
  background-color: #e9e3f1;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-fone__topo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #2d1a47;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-fone__topo .ameixa-avatar {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-fone__balao {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #cfc6dd;
  border-radius: 6px 18px 18px 18px;
  background-color: #faf8fc;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .ameixa-fone small {
  display: block;
  margin-top: 8px;
  color: #5a5170;
  font-size: 13.5px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-success {
  --bs-btn-bg: #43296a;
  --bs-btn-border-color: #43296a;
  --bs-btn-hover-bg: #2d1a47;
  --bs-btn-hover-border-color: #2d1a47;
  --bs-btn-active-bg: #2d1a47;
  --bs-btn-active-border-color: #2d1a47;
  --bs-btn-disabled-bg: #8e7fa8;
  --bs-btn-disabled-border-color: #8e7fa8;

  /* o panel.css pinta o fundo direto (sem passar pelas variáveis do Bootstrap) */
  border-color: #43296a;
  background-color: #43296a;
  color: #ffffff;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-success:hover,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-success:focus-visible {
  border-color: #2d1a47;
  background-color: #2d1a47;
  color: #ffffff;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-success:disabled,
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .btn-success.disabled {
  border-color: #8e7fa8;
  background-color: #8e7fa8;
}

/* ==========================================================================
   12. Agenda — a grade do mês no desenho do protótipo
   ========================================================================== */

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) > .d-flex:has(> .btn + strong + .btn) > strong {
  color: #2d1a47;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #cfc6dd;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(45, 26, 71, 0.06), 0 10px 24px -14px rgba(45, 26, 71, 0.22);
  overflow: hidden;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid > :not(caption) > * > * {
  border-width: 0 1px 1px 0;
  border-color: #e6e0ee;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid > :not(caption) > * > :last-child {
  border-right-width: 0;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid > tbody > tr:last-child > * {
  border-bottom-width: 0;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid th {
  padding: 10px 12px;
  background-color: #f6f3f9;
  color: #5a5170;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  text-transform: none;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid td {
  height: 132px;
  padding: 8px;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid .outside {
  background-color: #f6f3f9;
  opacity: 1;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid .day-number {
  margin-bottom: 6px;
  color: #2d1a47;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid .outside .day-number {
  color: #8e7fa8;
}

/* Hoje: o número vira uma pílula ameixa */
html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid .day-number.text-primary {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #2d1a47;
  color: #ffffff !important;
  line-height: 32px;
  text-align: center;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-item-chip {
  margin-bottom: 4px;
  padding: 4px 8px;
  border-left: 3px solid #8b6cc4;
  border-radius: 6px;
  background-color: #f1ecf7 !important;
  color: #2d1a47 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-item-chip.text-bg-danger {
  border-left-color: #b42318;
  background-color: #fdecea !important;
  color: #7a1a12 !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-item-chip.text-bg-warning {
  border-left-color: #e0a526;
  background-color: #fdf0c9 !important;
  color: #7a4b00 !important;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-item-chip.text-bg-info {
  border-left-color: #43296a;
  background-color: #efeafa !important;
  color: #2d1a47 !important;
}

@media (max-width: 768px) {
  html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .agenda-grid td {
    height: auto;
  }
}

/* ==========================================================================
   13. Criar conta — a tela dividida do protótipo
   ==========================================================================
   Metade ameixa com o texto de boas-vindas; metade clara com o formulário. É só CSS sobre o markup de
   Cadastro.razor, e a tela é reconhecida pelo campo `#organization_name` (só ela o tem). A ordem de leitura
   e o HTML não mudam. A partir de 992 px o cabeçalho público vira uma faixa transparente sobre as duas
   metades (marca à esquerda, "Entrar" à direita); abaixo disso ele segue como a barra ameixa de sempre e as
   duas metades se empilham. O estado pós-cadastro (`.thanks`) não passa por aqui. */

html[data-tema="ameixa"] .public-shell:has(#organization_name) {
  position: relative;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .public-main {
  display: flex;
  flex-direction: column;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .landing {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .landing > .section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact {
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  max-width: none;
  padding: 0;
}

/* --- metade ameixa --- */

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 24px 48px;
  background-color: #2d1a47;
  color: #d9cfe8;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro .hero__eyebrow {
  display: none;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro h1 {
  max-width: 14em;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro p {
  max-width: 30em;
  margin-top: 18px;
  color: #d9cfe8;
  font-size: 18px;
  line-height: 1.6;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro p strong {
  color: #ffffff;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro .contact__note {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
  color: #bcaed4;
  font-size: 14px;
  line-height: 1.6;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- metade clara --- */

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact-form {
  padding: 36px 24px 48px;
  border: 0;
  background-color: #f6f3f9;
  color: #1d1630;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact-form > * {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .field label {
  color: #2d1a47;
  font-size: 14px;
  font-weight: 600;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .field .req,
html[data-tema="ameixa"] .public-shell:has(#organization_name) .consent .req {
  color: #b42318;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .field input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfc6dd;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1d1630;
  font-size: 16px;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .field input::placeholder {
  color: #6b6180;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .field input:focus {
  outline: 2px solid #43296a;
  outline-offset: 2px;
  border-color: #43296a;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .field__hint {
  color: #5a5170;
  font-size: 14px;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .consent,
html[data-tema="ameixa"] .public-shell:has(#organization_name) .consent label {
  color: #5a5170;
  font-size: 14px;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .consent input {
  accent-color: #43296a;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .consent a {
  color: #43296a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .btn--primary {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  background-color: #43296a;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .btn--primary:hover,
html[data-tema="ameixa"] .public-shell:has(#organization_name) .btn--primary:focus-visible {
  background-color: #2d1a47;
  color: #ffffff;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .btn--primary:focus-visible {
  outline: 3px solid #e0a526;
  outline-offset: 2px;
}

html[data-tema="ameixa"] .public-shell:has(#organization_name) .alert {
  border-color: #f0b4ad;
  border-radius: 10px;
  background-color: #fdecea;
  color: #7a1a12;
}

@media (min-width: 992px) {
  html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro {
    padding: 140px 56px 72px;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact__intro > * {
    width: 100%;
    max-width: 480px;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .contact-form {
    justify-content: center;
    padding: 120px clamp(32px, 7vw, 100px) 72px;
  }

  /* o cabeçalho vira uma faixa transparente sobre as duas metades */
  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo {
    position: absolute;
    right: 0;
    left: 0;
    background-color: transparent;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo .am-tb {
    background-color: transparent;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo .am-tb .am-wrap {
    max-width: none;
    padding: 0 56px;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo .am-brand {
    margin-right: auto;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo .am-tb nav,
  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo .am-tb .am-btn:not(.am-ghost) {
    display: none;
  }

  html[data-tema="ameixa"] .public-shell:has(#organization_name) .am-topo .am-tb .am-btn.am-ghost {
    --btn-gh: #2d1a47;
    --btn-gh-bd: #cfc6dd;
    --btn-gh-hv: #ede7f5;
    --btn-gh-hvfg: #2d1a47;
  }
}

/* ==========================================================================
   14. Estados vazios — o desenho do protótipo (markup de EstadoVazio.razor sob o tema)
   ========================================================================== */

html[data-tema="ameixa"] .ameixa-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  border: 1px solid #e6e0ee;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(45, 26, 71, 0.06), 0 10px 24px -14px rgba(45, 26, 71, 0.22);
  text-align: center;
}

html[data-tema="ameixa"] .ameixa-vazio__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background-color: #ede7f5;
  color: #43296a;
}

html[data-tema="ameixa"] .ameixa-vazio__titulo {
  margin: 0 0 8px;
  color: #2d1a47;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

html[data-tema="ameixa"] .ameixa-vazio__texto {
  max-width: 34em;
  margin: 0 0 20px;
  color: #5a5170;
  font-size: 16px;
  line-height: 1.55;
}

/* Janelas de confirmação (o `modal` do Bootstrap, hoje só na Equipe): cartão arredondado, título em serifa. */

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .modal-content {
  border: 0;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 24px 60px -20px rgba(45, 26, 71, 0.55);
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .modal-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #e6e0ee;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .modal-title {
  color: #2d1a47;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .modal-body {
  padding: 18px 24px;
  color: #1d1630;
}

html[data-tema="ameixa"] body:has(.sidebar) .content:not(:has(.am)) .modal-footer {
  gap: 8px;
  padding: 14px 24px 20px;
  border-top: 1px solid #e6e0ee;
}

/* ==========================================================================
   15. O corpo do painel centralizado
   ==========================================================================
   O `.content` do panel.css tem largura máxima de 1400 px, mas sem margem automática: em tela larga
   (1881 px, por exemplo) o painel, que desenha seu próprio miolo (`.am-wrap`, 1240 px), ficava encostado
   à esquerda. As demais telas já se centralizam na seção 8; esta regra cobre as que usam o markup do
   protótipo. Só a margem: o resto do desenho do painel é do ameixa-ui.css. */

html[data-tema="ameixa"] body:has(.sidebar) main .content {
  margin-inline: auto;
}
