/* ============================================================
   SDP shared components redesigned
   Scope: body.sdp-redesigned. CSS-only, no production logic changes.
   Covers reusable page headers, controls, forms, badges, modals and states.
   ============================================================ */

body.sdp-redesigned {
  --sdp-component-surface: var(--sdp-preview-panel, #FFFEFA);
  --sdp-component-surface-soft: rgba(255, 254, 250, 0.72);
  --sdp-component-ink: var(--sdp-preview-ink, #172033);
  --sdp-component-muted: var(--sdp-preview-muted, #697386);
  --sdp-component-line: var(--sdp-preview-line, rgba(31, 45, 74, 0.12));
  --sdp-component-navy: var(--sdp-preview-navy, #17243C);
  --sdp-component-teal: var(--sdp-preview-teal, #1D766F);
  --sdp-component-gold: var(--sdp-preview-gold, #B5904A);
  --sdp-component-danger: #A12B2B;
  --sdp-component-success: #1F7A4D;
  --sdp-component-warning: #94620E;

  /* Override de variáveis globais do modern-layout.css que são teal/verde:
     modern-layout.css define --text-secondary:#00695C e --text-light:#00897B
     (teal SEDUC). Forçamos cinza neutro + gold pra páginas no redesign. */
  --text-secondary: #5C677D !important;
  --text-light: #8A6A2C !important;
}

[data-theme="dark"] body.sdp-redesigned {
  --text-secondary: #94A3B8 !important;
  --text-light: #B5904A !important;
}

body.sdp-redesigned .breadcrumb-premium,
body.sdp-redesigned .reports-breadcrumb,
body.sdp-redesigned .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--sdp-component-surface-soft) !important;
  border: 1px solid rgba(31, 45, 74, 0.10) !important;
  box-shadow: 0 1px 2px rgba(31, 45, 74, 0.04);
  color: var(--sdp-component-muted) !important;
}

body.sdp-redesigned .breadcrumb-premium a,
body.sdp-redesigned .breadcrumb-premium .current,
body.sdp-redesigned .reports-breadcrumb a,
body.sdp-redesigned .reports-breadcrumb .current,
body.sdp-redesigned .breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--sdp-component-navy) !important;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

body.sdp-redesigned .breadcrumb-premium svg,
body.sdp-redesigned .reports-breadcrumb svg,
body.sdp-redesigned .breadcrumb svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2.25;
}

body.sdp-redesigned .separator {
  color: rgba(31, 45, 74, 0.38) !important;
}

body.sdp-redesigned .page-header-premium,
body.sdp-redesigned .management-section,
body.sdp-redesigned .search-container-premium,
body.sdp-redesigned .content-card,
body.sdp-redesigned .card {
  box-sizing: border-box;
  border-radius: 8px !important;
  background: var(--sdp-component-surface) !important;
  border: 1px solid rgba(31, 45, 74, 0.10) !important;
  box-shadow: 0 1px 1px rgba(31, 45, 74, 0.04), 0 12px 28px rgba(31, 45, 74, 0.08) !important;
}

body.sdp-redesigned .page-header-premium {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 24px 28px !important;
}

body.sdp-redesigned .page-header-premium::before,
body.sdp-redesigned .management-section::before,
body.sdp-redesigned .search-container-premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sdp-component-gold), rgba(181, 144, 74, 0.22));
}

body.sdp-redesigned .page-header-premium .header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.sdp-redesigned .page-header-premium .header-icon,
body.sdp-redesigned .section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #B5904A 0%, #8A6A2C 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(181, 144, 74, 0.28) !important;
}

body.sdp-redesigned .page-header-premium .header-icon svg,
body.sdp-redesigned .section-icon svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

body.sdp-redesigned .page-header-premium .header-icon svg,
body.sdp-redesigned .section-icon svg {
  width: 22px;
  height: 22px;
}

body.sdp-redesigned .page-header-premium h1,
body.sdp-redesigned .reports-section-title,
body.sdp-redesigned .section-title {
  margin: 0;
  color: var(--sdp-component-ink) !important;
  font-family: var(--font-family-base);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

body.sdp-redesigned .page-header-premium p,
body.sdp-redesigned .section-subtitle {
  margin: 5px 0 0;
  color: var(--sdp-component-muted) !important;
  font-size: 0.94rem;
  line-height: 1.5;
}

body.sdp-redesigned .management-section,
body.sdp-redesigned .search-container-premium {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px !important;
  padding: 20px !important;
}

body.sdp-redesigned .reports-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px !important;
}

body.sdp-redesigned .form-grid,
body.sdp-redesigned .search-row-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

body.sdp-redesigned .form-group,
body.sdp-redesigned .search-group-premium {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.sdp-redesigned label,
body.sdp-redesigned .form-label,
body.sdp-redesigned .search-group-premium label {
  color: var(--sdp-component-ink) !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

body.sdp-redesigned input:not([type="checkbox"]):not([type="radio"]),
body.sdp-redesigned select,
body.sdp-redesigned textarea,
body.sdp-redesigned .form-control,
body.sdp-redesigned .form-select,
body.sdp-redesigned .form-select-premium {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border-radius: 8px !important;
  border: 1px solid rgba(31, 45, 74, 0.16) !important;
  background: rgba(255, 254, 250, 0.88) !important;
  color: var(--sdp-component-ink) !important;
  font-family: var(--font-family-base);
  font-size: 0.94rem;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

body.sdp-redesigned textarea {
  min-height: 112px;
  resize: vertical;
}

body.sdp-redesigned input:focus,
body.sdp-redesigned select:focus,
body.sdp-redesigned textarea:focus,
body.sdp-redesigned .form-control:focus,
body.sdp-redesigned .form-select:focus,
body.sdp-redesigned .form-select-premium:focus {
  outline: none;
  border-color: rgba(181, 144, 74, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(181, 144, 74, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

body.sdp-redesigned .btn,
body.sdp-redesigned .btn-premium,
body.sdp-redesigned .btn-search-premium,
body.sdp-redesigned button[type="submit"],
body.sdp-redesigned button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px !important;
  border: 1px solid rgba(23, 36, 60, 0.16) !important;
  background: var(--sdp-component-navy) !important;
  color: #FFFFFF !important;
  font-family: var(--font-family-base);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 36, 60, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

body.sdp-redesigned .btn[disabled],
body.sdp-redesigned .btn:disabled,
body.sdp-redesigned button[disabled],
body.sdp-redesigned button:disabled {
  background: rgba(31, 45, 74, 0.08) !important;
  border-color: rgba(31, 45, 74, 0.10) !important;
  color: rgba(31, 45, 74, 0.42) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

body.sdp-redesigned .btn:hover,
body.sdp-redesigned .btn-premium:hover,
body.sdp-redesigned .btn-search-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(23, 36, 60, 0.20);
}

body.sdp-redesigned .btn:active,
body.sdp-redesigned .btn-premium:active,
body.sdp-redesigned .btn-search-premium:active {
  transform: translateY(0);
}

body.sdp-redesigned .btn svg,
body.sdp-redesigned .btn-premium svg,
body.sdp-redesigned .btn-search-premium svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.sdp-redesigned .btn-premium-outline,
body.sdp-redesigned .btn-outline,
body.sdp-redesigned .btn.secondary {
  background: rgba(255, 254, 250, 0.9) !important;
  color: var(--sdp-component-navy) !important;
  border-color: rgba(31, 45, 74, 0.16) !important;
  box-shadow: 0 1px 1px rgba(31, 45, 74, 0.04), 0 8px 18px rgba(31, 45, 74, 0.08);
}

body.sdp-redesigned .btn-info,
body.sdp-redesigned .btn-success {
  background: var(--sdp-component-teal) !important;
  border-color: rgba(29, 118, 111, 0.24) !important;
}

body.sdp-redesigned .btn-danger {
  background: var(--sdp-component-danger) !important;
  border-color: rgba(161, 43, 43, 0.28) !important;
}

body.sdp-redesigned .badge,
body.sdp-redesigned .status-badge,
body.sdp-redesigned [class*="badge-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 45, 74, 0.07) !important;
  color: var(--sdp-component-navy) !important;
  border: 1px solid rgba(31, 45, 74, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

body.sdp-redesigned .empty-state-premium,
body.sdp-redesigned .empty-state,
body.sdp-redesigned .loading-state,
body.sdp-redesigned .error-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  padding: 28px 18px;
  color: var(--sdp-component-muted) !important;
  text-align: center;
}

body.sdp-redesigned .empty-state-premium .empty-icon,
body.sdp-redesigned .empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(181, 144, 74, 0.14);
  color: #7A5F23;
}

body.sdp-redesigned .sdp-table-empty-success {
  padding: 22px !important;
  text-align: center !important;
  color: var(--sdp-component-success) !important;
  font-weight: 750;
  background: rgba(31, 122, 77, 0.06);
}

body.sdp-redesigned .quick-stats .stat-card > .stat-icon,
body.sdp-redesigned .reports-stats .reports-stat-card > .stat-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  margin: 0 !important;
}

body.sdp-redesigned .modal,
body.sdp-redesigned .modal-content,
body.sdp-redesigned .dialog {
  border-radius: 8px !important;
  background: var(--sdp-component-surface) !important;
  border: 1px solid rgba(31, 45, 74, 0.12) !important;
  box-shadow: 0 24px 64px rgba(23, 36, 60, 0.24) !important;
}

[data-theme="dark"] body.sdp-redesigned {
  --sdp-component-surface: var(--sdp-preview-panel, #121D2E);
  --sdp-component-surface-soft: rgba(18, 29, 46, 0.78);
  --sdp-component-line: var(--sdp-preview-line, rgba(226, 232, 240, 0.14));
}

[data-theme="dark"] body.sdp-redesigned .breadcrumb-premium,
[data-theme="dark"] body.sdp-redesigned .reports-breadcrumb,
[data-theme="dark"] body.sdp-redesigned .breadcrumb,
[data-theme="dark"] body.sdp-redesigned .page-header-premium,
[data-theme="dark"] body.sdp-redesigned .management-section,
[data-theme="dark"] body.sdp-redesigned .search-container-premium,
[data-theme="dark"] body.sdp-redesigned .content-card,
[data-theme="dark"] body.sdp-redesigned .card,
[data-theme="dark"] body.sdp-redesigned .modal,
[data-theme="dark"] body.sdp-redesigned .modal-content,
[data-theme="dark"] body.sdp-redesigned .dialog {
  border-color: var(--sdp-component-line) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] body.sdp-redesigned .breadcrumb-premium a,
[data-theme="dark"] body.sdp-redesigned .breadcrumb-premium .current,
[data-theme="dark"] body.sdp-redesigned .reports-breadcrumb a,
[data-theme="dark"] body.sdp-redesigned .reports-breadcrumb .current,
[data-theme="dark"] body.sdp-redesigned .breadcrumb a,
[data-theme="dark"] body.sdp-redesigned .page-header-premium .header-icon,
[data-theme="dark"] body.sdp-redesigned .section-icon,
[data-theme="dark"] body.sdp-redesigned .badge,
[data-theme="dark"] body.sdp-redesigned .status-badge,
[data-theme="dark"] body.sdp-redesigned [class*="badge-"] {
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.sdp-redesigned .page-header-premium .header-icon,
[data-theme="dark"] body.sdp-redesigned .section-icon,
[data-theme="dark"] body.sdp-redesigned .badge,
[data-theme="dark"] body.sdp-redesigned .status-badge,
[data-theme="dark"] body.sdp-redesigned [class*="badge-"] {
  background: rgba(181, 144, 74, 0.16) !important;
  border-color: rgba(181, 144, 74, 0.22) !important;
}

[data-theme="dark"] body.sdp-redesigned input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] body.sdp-redesigned select,
[data-theme="dark"] body.sdp-redesigned textarea,
[data-theme="dark"] body.sdp-redesigned .form-control,
[data-theme="dark"] body.sdp-redesigned .form-select,
[data-theme="dark"] body.sdp-redesigned .form-select-premium {
  background: rgba(15, 26, 46, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.16) !important;
  color: var(--sdp-component-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] body.sdp-redesigned input::placeholder,
[data-theme="dark"] body.sdp-redesigned textarea::placeholder {
  color: rgba(184, 195, 214, 0.72) !important;
}

[data-theme="dark"] body.sdp-redesigned .btn,
[data-theme="dark"] body.sdp-redesigned .btn-premium,
[data-theme="dark"] body.sdp-redesigned .btn-search-premium,
[data-theme="dark"] body.sdp-redesigned button[type="submit"],
[data-theme="dark"] body.sdp-redesigned button.primary {
  background: var(--sdp-component-gold) !important;
  border-color: rgba(181, 144, 74, 0.62) !important;
  color: #101827 !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] body.sdp-redesigned .btn[disabled],
[data-theme="dark"] body.sdp-redesigned .btn:disabled,
[data-theme="dark"] body.sdp-redesigned button[disabled],
[data-theme="dark"] body.sdp-redesigned button:disabled {
  background: rgba(226, 232, 240, 0.08) !important;
  border-color: rgba(226, 232, 240, 0.10) !important;
  color: rgba(226, 232, 240, 0.42) !important;
  box-shadow: none !important;
}

[data-theme="dark"] body.sdp-redesigned .btn-premium-outline,
[data-theme="dark"] body.sdp-redesigned .btn-outline,
[data-theme="dark"] body.sdp-redesigned .btn.secondary {
  background: rgba(18, 29, 46, 0.88) !important;
  color: var(--sdp-component-ink) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Dark coverage for Portal dos Pais and Admin Master pages that use their own shells. */
[data-theme="dark"] body.portal-pais.sdp-redesigned {
  --pp-bg-body: var(--sdp-preview-bg);
  --pp-bg-card: var(--sdp-preview-panel);
  --pp-text-primary: var(--sdp-preview-ink);
  --pp-text-secondary: var(--sdp-preview-muted);
  --pp-text-muted: #94A3B8;
  --pp-border: var(--sdp-preview-line);
  --pp-primary: #D4B47C;
  --pp-primary-soft: rgba(181, 144, 74, 0.18);
  --pp-success-soft: rgba(34, 197, 94, 0.14);
  --pp-danger-soft: rgba(248, 113, 113, 0.14);
  --pp-info-soft: rgba(45, 212, 191, 0.12);
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-page,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-main,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-content {
  background: transparent !important;
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-card,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-chart-card,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-comparison-item,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-media-card,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-freq-stat-item,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-month-item,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-medida-item,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-aviso-card,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-reg-section,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-nota-info,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-turma,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-dia,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-empty-state {
  background: var(--sdp-component-surface) !important;
  border-color: var(--sdp-component-line) !important;
  color: var(--sdp-component-ink) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-card-title,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-chart-title,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-comparison-value,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-nota-valor,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-medida-tipo,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-aviso-card h3,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-reg-section h3,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-turma-titulo,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-dia-titulo {
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-card p,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-comparison-title,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-comparison-avg,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-medida-data,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-medida-descricao,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-aviso-card p,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-aviso-card li,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-reg-section p,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-reg-section li {
  color: var(--sdp-component-muted) !important;
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-boletim-table,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-pontos-table,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-table {
  background: var(--sdp-component-surface) !important;
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-boletim-table th,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-pontos-table th,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-table th {
  background: #1D2B43 !important;
  color: var(--sdp-component-ink) !important;
  border-color: var(--sdp-component-line) !important;
}

[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-boletim-table td,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-pontos-table td,
[data-theme="dark"] body.portal-pais.sdp-redesigned .pp-horarios-table td {
  color: var(--sdp-component-ink) !important;
  border-color: rgba(226, 232, 240, 0.10) !important;
}

[data-theme="dark"] body.sdp-redesigned .admin-page {
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.sdp-redesigned .page-header h1,
[data-theme="dark"] body.sdp-redesigned .summary-card .sc-value,
[data-theme="dark"] body.sdp-redesigned .metric-cell .metric-main,
[data-theme="dark"] body.sdp-redesigned .escola-nome {
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.sdp-redesigned .page-header p,
[data-theme="dark"] body.sdp-redesigned .summary-card .sc-label,
[data-theme="dark"] body.sdp-redesigned .summary-card .sc-sub,
[data-theme="dark"] body.sdp-redesigned .metric-cell .metric-sub,
[data-theme="dark"] body.sdp-redesigned .escola-cidade,
[data-theme="dark"] body.sdp-redesigned #tableFooter {
  color: var(--sdp-component-muted) !important;
}

[data-theme="dark"] body.sdp-redesigned .summary-card,
[data-theme="dark"] body.sdp-redesigned .table-wrapper {
  background: var(--sdp-component-surface) !important;
  border-color: var(--sdp-component-line) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] body.sdp-redesigned .schools-table {
  background: transparent !important;
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.sdp-redesigned .schools-table thead th,
[data-theme="dark"] body.sdp-redesigned .schools-table tfoot td {
  background: #1D2B43 !important;
  color: var(--sdp-component-ink) !important;
  border-color: var(--sdp-component-line) !important;
}

[data-theme="dark"] body.sdp-redesigned .schools-table tbody td {
  color: var(--sdp-component-ink) !important;
  border-color: rgba(226, 232, 240, 0.10) !important;
}

[data-theme="dark"] body.sdp-redesigned .schools-table tbody tr:hover {
  background: rgba(181, 144, 74, 0.14) !important;
}

[data-theme="dark"] body.sdp-redesigned .filter-bar input[type="text"],
[data-theme="dark"] body.sdp-redesigned .filter-bar select {
  background: rgba(13, 21, 35, 0.78) !important;
  border-color: rgba(226, 232, 240, 0.14) !important;
  color: var(--sdp-component-ink) !important;
}

[data-theme="dark"] body.sdp-redesigned .toast-admin,
[data-theme="dark"] body.sdp-redesigned .toast,
[data-theme="dark"] body.sdp-redesigned .toast-content {
  background: #111827 !important;
  border: 1px solid var(--sdp-component-line) !important;
  color: var(--sdp-component-ink) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38) !important;
}

@media (max-width: 900px) {
  body.sdp-redesigned .form-grid,
  body.sdp-redesigned .search-row-premium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.sdp-redesigned .breadcrumb-premium,
  body.sdp-redesigned .reports-breadcrumb,
  body.sdp-redesigned .breadcrumb {
    margin-bottom: 14px !important;
  }

  body.sdp-redesigned .page-header-premium,
  body.sdp-redesigned .management-section,
  body.sdp-redesigned .search-container-premium {
    padding: 16px !important;
  }

  body.sdp-redesigned .page-header-premium .header-content {
    align-items: flex-start;
  }

  body.sdp-redesigned .page-header-premium h1 {
    font-size: 1.12rem;
  }

  body.sdp-redesigned .btn,
  body.sdp-redesigned .btn-premium,
  body.sdp-redesigned .btn-search-premium {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sdp-redesigned .btn,
  body.sdp-redesigned .btn-premium,
  body.sdp-redesigned .btn-search-premium {
    transition: none;
  }

  body.sdp-redesigned .btn:hover,
  body.sdp-redesigned .btn-premium:hover,
  body.sdp-redesigned .btn-search-premium:hover {
    transform: none;
  }
}

/* ============================================
   ÍCONES SVG INLINE (substituem emojis em botões/títulos/labels)
   Usado em páginas migradas que trocam emojis por <svg class="inline-icon">.
   !important necessário: fonts-reset.css força svg{display:block} em body.sdp-redesigned.
   ============================================ */
body.sdp-redesigned svg.inline-icon,
svg.inline-icon {
  display: inline-block !important;
  vertical-align: -3px;
  margin-right: 6px;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
svg.inline-icon.icon-sm { width: 14px; height: 14px; vertical-align: -2px; }
svg.inline-icon.icon-lg { width: 18px; height: 18px; vertical-align: -4px; }
svg.inline-icon.icon-xl { width: 20px; height: 20px; vertical-align: -5px; }

/* Quando o ícone está em container flex com gap, remove margin (gap cuida do espaçamento) */
.icon-text-row svg.inline-icon {
  margin-right: 0;
}
