﻿/* ==========================| TOKENS/FONTES - Início |========================== */
:root {
  --sge-dark: #2F3E41;
  --sge-accent: #FF9E00;
  --sge-bg: #F3F5F7;
  --sge-border: #E6E8EB;
  --sge-dark-text: #f8f8f2;
  --sge-dark-subtext: #8be9fd;
  --sge-dark-menu-text: #DCDBDA;
  --sge-dark-success: #50fa7b;
  --sge-dark-warning: #f1fa8c;
  --sge-dark-danger: #ff5555;
  --sge-dark-surface: #282a36;
  --sge-dark-surface-alt: #21222c;
  --sge-surface-card-bg: #ffffff;
  --sge-surface-card-border: #E6E8EB;
  --sge-surface-card-radius: 14px;
  --sge-surface-card-shadow: none;
  --sge-table-head-bg: #F7F8FA;
  --sge-table-head-color: rgba(52, 73, 94, 0.84);
  --sge-table-row-border: rgba(0, 0, 0, 0.06);
  --sge-table-row-hover: rgba(255, 158, 0, 0.03);
  --sge-btn-primary-bg-solid: #ff9e00;
  --sge-btn-primary-color: #1f2937;
  --sge-btn-outline-border: #cbd5e1;
  --sge-btn-outline-color: #475569;
  --sge-field-bg: #fcfcfd;
  --sge-field-border: #e2e6ea;
  --sge-field-focus-border: #ff9e00;
  --sge-field-focus-ring: rgba(255, 158, 0, 0.15);
  --sge-dark-card-bg-custom: #282a36;
  --sge-dark-card-border-custom: rgba(139, 233, 253, 0.18);
  --sge-dark-field-bg-custom: #21222c;
  --sge-dark-field-border-custom: #3b3b3b;
  --sge-dark-field-focus-custom: #efaf43;
  --sge-dark-table-head-bg-custom: #232938;
  --sge-dark-table-row-hover-custom: rgba(139, 233, 253, 0.08);
}

/* ==========================| TOKENS/FONTES - Fim |========================== */

@font-face {
  font-family: 'PHDPrimary';
  src: url("/static/fonts/MontBook.63d024f20333.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PHDSecondary';
  src: url("/static/fonts/RaudaSlabSolid.8549535794e5.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* ==========================| BASE LAYOUT - Início |========================== */
body {
  font-family: 'PHDPrimary', sans-serif;
  margin: 0;
  padding: 0;
}

.sge-body {
  background: var(--sge-bg);
}

.sge-shell {
  display: flex;
  min-height: 100vh;
  padding-top: 59px;
  overflow-x: clip;
}

html,
body {
  overflow-x: hidden;
}

/* ==========================| BASE LAYOUT - DARK |========================== */
/* Tokens e variáveis globais do tema escuro */
.sge-body[data-theme="dark"] {
  --sge-app-bg: var(--sge-dark-surface-alt);
  --sge-text: var(--sge-dark-text);
  --sge-topbar-bg: var(--sge-dark-surface);
  --sge-topbar-border: rgba(248, 248, 242, 0.12);
  --sge-card-bg: var(--sge-dark-surface);
  --sge-card-border: rgba(139, 233, 253, 0.18);
  --sge-dropdown-bg: var(--sge-dark-surface);
  --sge-dropdown-border: rgba(189, 147, 249, 0.3);
  --sge-dropdown-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
  background: var(--sge-app-bg) !important;
}

.sge-body[data-theme="dark"] .sge-page-title,
.sge-body[data-theme="dark"] .sge-page-subtitle,
.sge-body[data-theme="dark"] .sge-content h1,
.sge-body[data-theme="dark"] .sge-content h2,
.sge-body[data-theme="dark"] .sge-content h3,
.sge-body[data-theme="dark"] .sge-content h4,
.sge-body[data-theme="dark"] .sge-content h5,
.sge-body[data-theme="dark"] .sge-content h6,
.sge-body[data-theme="dark"] .sge-content .card-title,
.sge-body[data-theme="dark"] .sge-content label,
.sge-body[data-theme="dark"] .sge-content .form-label {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-content p,
.sge-body[data-theme="dark"] .sge-content .text-muted,
.sge-body[data-theme="dark"] .sge-content small.text-muted,
.sge-body[data-theme="dark"] .sge-content .card-text {
  color: #DBDAD9 !important;
}

/* padrão_sge: fallback global para itens ainda não adaptados no dark */
.sge-body[data-theme="dark"] .sge-content .card-header.bg-white,
.sge-body[data-theme="dark"] .sge-content .card-footer.bg-white {
  background: #282a36 !important;
  border-color: #3b3b3b !important;
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-content .btn-outline-secondary {
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
  background: #21222c !important;
}

.sge-body[data-theme="dark"] .sge-content .btn-outline-secondary:hover {
  color: #f8f8f2 !important;
  border-color: #8be9fd !important;
  background: #282a36 !important;
}

.sge-body[data-theme="dark"] .sge-content .btn-outline-secondary i {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-content .btn-warning i {
  color: #ffffff !important;
}

.sge-body[data-theme="dark"] .sge-content .page-link {
  background: #21222c !important;
  border-color: #3b3b3b !important;
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-content .page-item.active .page-link {
  background: #8be9fd !important;
  border-color: #8be9fd !important;
  color: #1e1f29 !important;
}

/* padrão_sge: fallback global para páginas base (placeholders, blocos utilitários e dropdowns) */
.sge-body[data-theme="dark"] .sge-content .bg-white,
.sge-body[data-theme="dark"] .sge-content .rounded-3.bg-white {
  background: #282a36 !important;
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-content .border,
.sge-body[data-theme="dark"] .sge-content .border-top,
.sge-body[data-theme="dark"] .sge-content .border-bottom,
.sge-body[data-theme="dark"] .sge-content .border-start,
.sge-body[data-theme="dark"] .sge-content .border-end {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-content .text-dark,
.sge-body[data-theme="dark"] .sge-content .text-body,
.sge-body[data-theme="dark"] .sge-content .text-secondary,
.sge-body[data-theme="dark"] .sge-content .small {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-content .dropdown-menu {
  background: #282a36 !important;
  border-color: #3b3b3b !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48) !important;
}

.sge-body[data-theme="dark"] .sge-content .dropdown-item,
.sge-body[data-theme="dark"] .sge-content .dropdown-item-text,
.sge-body[data-theme="dark"] .sge-content .dropdown-header {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-content .dropdown-item:hover,
.sge-body[data-theme="dark"] .sge-content .dropdown-item:focus {
  background: rgba(139, 233, 253, 0.12) !important;
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-content .dropdown-divider {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-content .badge:not(.sge-badge-soft):not(.bg-warning):not(.bg-danger):not(.bg-success):not(.sge-color-chip) {
  background: #21222c !important;
  border: 1px solid #3b3b3b !important;
  color: #DBDAD9 !important;
}

/* ==========================| BASE LAYOUT - Fim |========================== */

/* ==========================| TOPBAR - Início |========================== */
.sge-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.sge-topbar-inner {
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sge-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sge-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.sge-brand-title {
  color: #2F3E41;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1.2px;
  font-family: 'PHDSecondary', sans-serif;
}

.sge-brand-subtitle {
  color: #FF9E00;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.sge-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-left: auto;
}

.sge-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 11px;
  background: #fff;
  color: #334155;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sge-mobile-menu-btn i {
  font-size: 20px;
  line-height: 1;
}

.sge-icon-menu,
.sge-user-menu {
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: none;

  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sge-notify-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #FF9E00;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
}

.sge-notification-menu {
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 12px;
}

.sge-icon-menu:hover,
.sge-user-menu:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.14);
}

.sge-icon-menu i {
  font-size: 18px;
  color: #34495E;
}

.sge-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(47, 62, 65, 0.12);
  color: #2F3E41;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.sge-avatar-photo {
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.sge-caret i {
  font-size: 12px;
  color: rgba(52, 73, 94, 0.75);
}

.sge-topbar-user-menu {
  min-width: 285px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.12);
}

.sge-topbar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.sge-topbar-item:hover {
  background: rgba(52, 73, 94, 0.08);
  color: #1f2937;
}

.sge-topbar-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 73, 94, 0.11);
  color: #34495E;
  flex-shrink: 0;
}

.sge-topbar-item.text-danger .sge-topbar-item-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.sge-topbar-account-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.sge-topbar-account-card-wrap {
  padding: 4px;
}

.sge-topbar-account-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.sge-topbar-account-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.sge-topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: #34495E;
}

/* ==========================| TOPBAR - DARK |========================== */
.sge-body[data-theme="dark"] .sge-brand-title {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-topbar .sge-brand-subtitle {
  color: #FF9E00 !important;
}

.sge-body[data-theme="dark"] .sge-logo-light {
  display: none !important;
}

.sge-body[data-theme="dark"] .sge-logo-dark {
  display: block !important;
}

.sge-body[data-theme="dark"] .sge-icon-menu i,
.sge-body[data-theme="dark"] .sge-caret i,
.sge-body[data-theme="dark"] .sge-topbar-item-icon i,
.sge-body[data-theme="dark"] .sge-notify-badge {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] .sge-icon-menu,
.sge-body[data-theme="dark"] .sge-user-menu {
  background: #21222c !important;
  border: none !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] .sge-topbar-user-menu .dropdown-item,
.sge-body[data-theme="dark"] .sge-notification-menu .dropdown-item,
.sge-body[data-theme="dark"] .sge-topbar-user-menu .dropdown-item-text,
.sge-body[data-theme="dark"] .sge-notification-menu .dropdown-item-text,
.sge-body[data-theme="dark"] .sge-topbar-user-menu .dropdown-header,
.sge-body[data-theme="dark"] .sge-notification-menu .dropdown-header {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-topbar-user-menu .dropdown-item:hover,
.sge-body[data-theme="dark"] .sge-notification-menu .dropdown-item:hover {
  background: rgba(139, 233, 253, 0.12) !important;
}

.sge-body[data-theme="dark"] .sge-topbar-item {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-topbar-item:hover {
  background: rgba(139, 233, 253, 0.12) !important;
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-topbar-account-name {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-topbar-account-meta {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] .sge-topbar-account-card {
  background: #21222c;
  border-color: rgba(139, 233, 253, 0.2);
}

.sge-body[data-theme="dark"] .sge-topbar-title {
  color: #8be9fd;
}

.sge-body[data-theme="dark"] .dropdown-divider {
  border-top-color: rgba(139, 233, 253, 0.18) !important;
}

.sge-body[data-theme="dark"] .sge-icon-menu i,
.sge-body[data-theme="dark"] .sge-topbar-item-icon i {
  color: #F59D15 !important;
}

.sge-body[data-theme="dark"] .sge-topbar,
.sge-body[data-theme="dark"] .sge-topbar-inner {
  background: #282a36 !important;
}

.sge-body[data-theme="dark"] .sge-topbar-user-menu,
.sge-body[data-theme="dark"] .sge-notification-menu {
  background: var(--sge-dropdown-bg) !important;
  border: none !important;
  border-color: transparent !important;
  --bs-dropdown-border-color: transparent !important;
  box-shadow: var(--sge-dropdown-shadow) !important;
}

/* ==========================| TOPBAR - Fim |========================== */

.sge-content {
  padding: 20px;
}

/* ==========================| CARDS/TABELAS - Início |========================== */
.sge-card {
  background: var(--sge-surface-card-bg);
  border: 1px solid var(--sge-surface-card-border, var(--sge-border));
  border-radius: var(--sge-surface-card-radius, 14px);
  box-shadow: var(--sge-surface-card-shadow, none);
}


.sge-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.sge-action-group form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.sge-action-group .sge-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.sge-icon-btn {
  background: transparent;
  border: 0;
  padding: 3px 5px;
  line-height: 1;
  border-radius: 8px;

  color: rgba(47, 62, 65, 0.65);

  font-size: 16px;

  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}

.sge-icon-btn:hover {
  background-color: rgba(52, 73, 94, 0.06);

  color: #34495E;
  transform: translateY(-1px);
}

.sge-icon-btn.is-duplicate:hover {
  background: rgba(52, 152, 219, 0.10);
  color: #3498db;
}

.sge-icon-btn:active {
  transform: translateY(0);
}

.sge-divider {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.08);
}

.sge-icon-btn.is-edit:hover {
  color: #34495E;
}

.sge-icon-btn.is-toggle:hover {
  color: #FF9E00;

}

.sge-icon-btn.is-danger:hover {
  color: #DC3545;

}

.sge-table {

  border-collapse: separate;
  border-spacing: 0;
}

.sge-thead th {
  background: var(--sge-table-head-bg, #F7F8FA);
  color: var(--sge-table-head-color, rgba(52, 73, 94, 0.84));
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;

  padding-top: 11px;
  padding-bottom: 11px;

  border-bottom: 1px solid var(--sge-table-row-border, rgba(0, 0, 0, 0.08));
  vertical-align: middle;
}

.sge-table tbody td {
  padding-top: 7px;
  padding-bottom: 7px;

  border-bottom: 1px solid var(--sge-table-row-border, rgba(0, 0, 0, 0.06));

  color: #2F3E41;
  font-size: 14px;
  line-height: 1.2;
  vertical-align: middle;
}

.sge-table tbody tr:last-child td {
  border-bottom: 0;
}

.sge-table tbody tr>* {
  transition: background-color .12s ease;
}

.sge-table tbody tr:hover>* {
  background-color: var(--sge-table-row-hover, rgba(255, 158, 0, 0.03));
}

.sge-table td .text-muted.small {
  line-height: 1.2;
}

.sge-col-actions {
  width: 148px;

  white-space: nowrap;

}

.sge-col-status {
  width: 132px;
}

.sge-col-order {
  width: 84px;
}

.sge-thead .sge-col-status,
.sge-thead .sge-col-order,
.sge-table .sge-col-status,
.sge-table .sge-col-order {
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

@media (max-width: 576px) {

  .sge-thead th,
  .sge-table tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .sge-col-actions {
    width: 136px;
  }
}

.sge-table .badge {
  border-radius: 999px;

  padding: 6px 10px;

  font-weight: 600;
  letter-spacing: .2px;
}

.sge-table-card {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.sge-table-card .card-body {
  overflow: hidden;
}

.sge-table-card .table-responsive {
  border-radius: inherit;
  overflow: hidden;
}

.sge-course-cell {
  min-width: 290px;
}

.sge-course-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sge-course-name {
  font-size: 13px;
  font-weight: 700;
  color: #223136;
  line-height: 1.2;
  letter-spacing: .1px;
  transition: color .15s ease, transform .15s ease;
}

.sge-period,
.sge-turno {
  color: rgba(52, 73, 94, 0.85);
}

.sge-shift-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sge-shift-tags--compact {
  gap: 2px;
}

.sge-shift-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1px;
  border: 1px solid transparent;
}

.sge-shift-tags--compact .sge-shift-tag {
  height: 16px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 600;
}

.sge-shift-tag.is-integral {
  color: #34546a;
  background: #eef4f8;
  border-color: #d8e6ef;
}

.sge-shift-tag.is-afternoon {
  color: #825602;
  background: #fff7e8;
  border-color: #ffe4b5;
}

.sge-shift-tag.is-night {
  color: #4a3f7f;
  background: #f1edff;
  border-color: #dcd2ff;
}

.sge-shift-tag.is-online {
  color: #0a5ea8;
  background: #eaf5ff;
  border-color: #b8ddfb;
}

.sge-shift-tag.is-presential,
.sge-table-card--courses .sge-shift-tag.is-presential {
  color: #825602;
  background: #fff7e8;
  border-color: #ffe4b5;
}

.sge-course-cover {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(34, 52, 71, 0.16);
  background: #f4f7fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 34px;
  color: #7e8ea1;
}

.sge-course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sge-invest-main {
  font-weight: 700;
  color: #243236;
  font-size: 13px;
  line-height: 1.15;
}

.sge-invest-promo {
  font-size: 11px;
  line-height: 1.15;
  color: rgba(52, 73, 94, 0.72);
}

.sge-table-control {
  height: 26px;
  font-size: 11px;
}

.sge-col-status .sge-status-inline,
.sge-col-order .sge-order-input {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sge-table .sge-action-group {
  opacity: .62;
  transition: opacity .15s ease;
}

.sge-table tbody tr:hover .sge-action-group {
  opacity: 1;
}

.sge-table tbody tr:hover .sge-course-name {
  color: #142126;
  transform: translateX(1px);
}

/* ==========================| MATRÍCULAS - PREMIUM |========================== */
/* Ajustes visuais dedicados do módulo de Matrículas para leitura e escaneabilidade */
.sge-table-card--enrollments .sge-enrollment-user-cell .sge-course-name {
  font-weight: 700;
  letter-spacing: 0.1px;
}

.sge-table-card--enrollments .sge-enrollment-target-name {
  font-weight: 600;
  color: #223136;
}

.sge-table-card--enrollments .sge-enrollment-payment-badge {
  min-width: 118px;
  justify-content: center;
}

.sge-table-card--enrollments .sge-invest-cell {
  min-width: 180px;
}

.sge-table-card--enrollments .sge-action-group {
  gap: 2px;
}

.sge-enrollment-fin-card .sge-enrollment-fin-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(47, 62, 65, 0.78);
  margin-top: 2px;
}

.sge-kpi-context {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(47, 62, 65, 0.72);
}

/* ==========================| MATRÍCULAS - PREMIUM - DARK |========================== */
.sge-body[data-theme="dark"] .sge-table-card--enrollments .sge-enrollment-target-name {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--enrollments .sge-enrollment-user-cell .sge-course-meta {
  color: #9A9C9E !important;
}

.sge-body[data-theme="dark"] .sge-table-card--enrollments .sge-enrollment-payment-badge {
  border-color: rgba(139, 233, 253, 0.3) !important;
}

.sge-body[data-theme="dark"] .sge-enrollment-fin-card .sge-enrollment-fin-sub {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-kpi-context {
  color: #DBDAD9 !important;
}

/* ==========================| EVENTOS - PREMIUM |========================== */
/* Ajustes visuais dedicados do módulo de Eventos */
.sge-table-card--events .sge-event-name {
  font-weight: 700;
  letter-spacing: 0.1px;
}

.sge-table-card--events .sge-event-category {
  font-weight: 600;
  color: #2f3e41;
}

.sge-table-card--events .sge-invest-cell {
  min-width: 160px;
}

.sge-table-card--events .sge-action-group {
  gap: 2px;
}

.sge-event-fin-card .sge-event-fin-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(47, 62, 65, 0.78);
  margin-top: 2px;
}

/* ==========================| EVENTOS - PREMIUM - DARK |========================== */
.sge-body[data-theme="dark"] .sge-table-card--events,
.sge-body[data-theme="dark"] .sge-table-card--events .table-responsive {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--events .sge-event-name,
.sge-body[data-theme="dark"] .sge-table-card--events .sge-event-category,
.sge-body[data-theme="dark"] .sge-table-card--events .sge-period,
.sge-body[data-theme="dark"] .sge-table-card--events .sge-invest-main,
.sge-body[data-theme="dark"] .sge-table-card--events .sge-invest-promo {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--events .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--events thead th {
  color: #eaf6ff !important;
}

.sge-body[data-theme="dark"] .sge-event-fin-card .sge-event-fin-sub {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--events .sge-shift-tag {
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.25) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--events .sge-shift-tag.is-integral {
  background: rgba(80, 250, 123, 0.14) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--events .sge-shift-tag.is-afternoon {
  background: rgba(255, 184, 108, 0.16) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--events .sge-shift-tag.is-night {
  background: rgba(189, 147, 249, 0.2) !important;
}

.sge-empty-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(52, 73, 94, 0.72);
}

.tooltip.sge-tooltip-nowrap .tooltip-inner,
.sge-tooltip-nowrap .tooltip-inner {
  max-width: none !important;
  white-space: nowrap !important;
}

.sge-empty-state i {
  color: rgba(52, 73, 94, 0.55);
}

/* ==========================| CARDS/TABELAS - DARK |========================== */
.sge-body[data-theme="dark"] .sge-main,
.sge-body[data-theme="dark"] .sge-content {
  background: transparent !important;
}

.sge-body[data-theme="dark"] .sge-card,
.sge-body[data-theme="dark"] .card,
.sge-body[data-theme="dark"] .table-responsive {
  background: var(--sge-dark-card-bg-custom, var(--sge-card-bg)) !important;
  border-color: var(--sge-dark-card-border-custom, var(--sge-card-border)) !important;
}

/* Fundo escuro consistente para toda a estrutura de tabela */
.sge-body[data-theme="dark"] .sge-table,
.sge-body[data-theme="dark"] .table,
.sge-body[data-theme="dark"] .table thead,
.sge-body[data-theme="dark"] .table tbody,
.sge-body[data-theme="dark"] .table tr,
.sge-body[data-theme="dark"] .table th,
.sge-body[data-theme="dark"] .table td,
.sge-body[data-theme="dark"] .sge-table thead,
.sge-body[data-theme="dark"] .sge-table tbody,
.sge-body[data-theme="dark"] .sge-table tr,
.sge-body[data-theme="dark"] .sge-table th,
.sge-body[data-theme="dark"] .sge-table td,
.sge-body[data-theme="dark"] .table>:not(caption)>*>* {
  background-color: #282a36 !important;
}

.sge-body[data-theme="dark"] .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table tbody tr:hover>* {
  background-color: var(--sge-dark-table-row-hover-custom, rgba(139, 233, 253, 0.08)) !important;
}

/* Tabelas internas (ex.: auditoria com table-sm) também no padrão dark */
.sge-body[data-theme="dark"] .table.table-sm,
.sge-body[data-theme="dark"] .table.table-sm thead,
.sge-body[data-theme="dark"] .table.table-sm tbody,
.sge-body[data-theme="dark"] .table.table-sm tr,
.sge-body[data-theme="dark"] .table.table-sm th,
.sge-body[data-theme="dark"] .table.table-sm td {
  background-color: #282a36 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses,
.sge-body[data-theme="dark"] .sge-table-card--courses .table-responsive {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-course-name,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-period,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-turno,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-invest-main,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-invest-promo,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-empty-state,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-empty-state i {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--courses thead th {
  color: #eaf6ff !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-shift-tag {
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.24) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-shift-tag.is-integral {
  background: rgba(139, 233, 253, 0.18) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-shift-tag.is-afternoon {
  background: rgba(241, 250, 140, 0.18) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-shift-tag.is-night {
  background: rgba(189, 147, 249, 0.18) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-shift-tag.is-online {
  background: rgba(96, 170, 232, 0.2) !important;
  border-color: rgba(96, 170, 232, 0.45) !important;
  color: #d9eeff !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-shift-tag.is-presential {
  background: rgba(255, 184, 108, 0.18) !important;
  border-color: rgba(255, 184, 108, 0.32) !important;
  color: #ffe1b5 !important;
}

.sge-body[data-theme="dark"] .sge-course-cover {
  background: rgba(26, 35, 48, 0.9);
  border-color: rgba(139, 233, 253, 0.28);
  color: #9fbad6;
}

.sge-body[data-theme="dark"] .alert-danger {
  background: rgba(255, 85, 85, 0.18);
  border-color: rgba(255, 85, 85, 0.36);
  color: #ff9a9a;
}

.sge-body[data-theme="dark"] .alert-warning {
  background: rgba(241, 250, 140, 0.18);
  border-color: rgba(241, 250, 140, 0.34);
  color: #f1fa8c;
}

.sge-body[data-theme="dark"] .sge-icon-btn:hover {
  background: rgba(139, 233, 253, 0.1);
  color: #8be9fd;
}

.sge-body[data-theme="dark"] .sge-icon-btn,
.sge-body[data-theme="dark"] .sge-icon-btn i,
.sge-body[data-theme="dark"] .sge-col-actions .sge-icon-btn,
.sge-body[data-theme="dark"] .sge-col-actions .sge-icon-btn i,
.sge-body[data-theme="dark"] .sge-page-title,
.sge-body[data-theme="dark"] .sge-page-title-icon {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .text-dark {
  color: #dfe7ef !important;
}

.sge-body[data-theme="dark"] .btn-success,
.sge-body[data-theme="dark"] .btn-warning,
.sge-body[data-theme="dark"] .btn-danger {
  box-shadow: none;
}

.sge-body[data-theme="dark"] .btn-success:hover,
.sge-body[data-theme="dark"] .btn-warning:hover,
.sge-body[data-theme="dark"] .btn-danger:hover {
  box-shadow: none;
  transform: none;
}

.sge-body[data-theme="dark"] .sge-table tbody td,
.sge-body[data-theme="dark"] .table td {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-table tbody tr:hover .sge-course-name {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-table a,
.sge-body[data-theme="dark"] .sge-table strong,
.sge-body[data-theme="dark"] .sge-table .text-dark,
.sge-body[data-theme="dark"] .sge-table .text-muted,
.sge-body[data-theme="dark"] .sge-table small,
.sge-body[data-theme="dark"] .sge-table .fw-semibold {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-order-input {
  background: #21222c !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline option {
  background: #282a36 !important;
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline.is-success {
  background: rgba(80, 250, 123, .16) !important;
  color: #afffcf !important;
  border-color: rgba(80, 250, 123, .34) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline.is-warning {
  background: rgba(255, 184, 108, .18) !important;
  color: #ffe0a8 !important;
  border-color: rgba(255, 184, 108, .36) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline.is-muted {
  background: #21222c !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline.is-danger {
  background: rgba(255, 85, 85, .16) !important;
  color: #ffc2c2 !important;
  border-color: rgba(255, 85, 85, .34) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-status-inline:focus,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-order-input:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22), 0 12px 24px rgba(0, 0, 0, .36) !important;
}

/* Bordas padrão de tabelas no tema escuro */
.sge-body[data-theme="dark"] .sge-table-card,
.sge-body[data-theme="dark"] .sge-table-card .table-responsive,
.sge-body[data-theme="dark"] .table-responsive,
.sge-body[data-theme="dark"] .sge-table {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table thead th,
.sge-body[data-theme="dark"] .sge-table tbody td,
.sge-body[data-theme="dark"] .sge-thead th {
  border-color: var(--sge-dark-field-border-custom, #3b3b3b) !important;
}

.sge-body[data-theme="dark"] .sge-table-card .card-footer,
.sge-body[data-theme="dark"] .sge-table-card .card-header {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .card-footer.bg-white,
.sge-body[data-theme="dark"] .sge-table-card--courses .card-footer {
  background: #282a36 !important;
  color: #DBDAD9 !important;
}

/* Categorias: tabela no tema escuro */
.sge-body[data-theme="dark"] .sge-table-card--categories,
.sge-body[data-theme="dark"] .sge-table-card--categories .table-responsive {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--categories .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--categories thead th {
  color: #eaf6ff !important;
}

.sge-body[data-theme="dark"] .sge-table-card--categories td,
.sge-body[data-theme="dark"] .sge-table-card--categories .fw-semibold,
.sge-body[data-theme="dark"] .sge-table-card--categories .text-muted,
.sge-body[data-theme="dark"] .sge-table-card--categories .sge-empty-state,
.sge-body[data-theme="dark"] .sge-table-card--categories .sge-empty-state i {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--categories .sge-badge-soft.is-muted {
  background: rgba(139, 233, 253, 0.12) !important;
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.24) !important;
}

.sge-body[data-theme="dark"] .sge-badge-soft.is-info {
  background: rgba(139, 233, 253, 0.16) !important;
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.28) !important;
}

/* Badges no dark (padrão_phd) */
.sge-body[data-theme="dark"] .sge-badge-soft,
.sge-body[data-theme="dark"] .sge-agenda-status {
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.24) !important;
}

.sge-body[data-theme="dark"] .sge-badge-soft.is-success,
.sge-body[data-theme="dark"] .sge-agenda-status.is-success {
  background: rgba(80, 250, 123, 0.16) !important;
  color: #f8f8f2 !important;
  border-color: rgba(80, 250, 123, 0.34) !important;
}

.sge-body[data-theme="dark"] .sge-badge-soft.is-warning,
.sge-body[data-theme="dark"] .sge-agenda-status.is-warning {
  background: rgba(241, 250, 140, 0.18) !important;
  color: #f8f8f2 !important;
  border-color: rgba(241, 250, 140, 0.38) !important;
}

.sge-body[data-theme="dark"] .sge-badge-soft.is-muted,
.sge-body[data-theme="dark"] .sge-agenda-status.is-muted {
  background: rgba(139, 233, 253, 0.12) !important;
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.24) !important;
}

.sge-body[data-theme="dark"] .sge-badge-soft.is-danger,
.sge-body[data-theme="dark"] .sge-agenda-status.is-danger {
  background: rgba(255, 85, 85, 0.16) !important;
  color: #f8f8f2 !important;
  border-color: rgba(255, 85, 85, 0.36) !important;
}

.sge-body[data-theme="dark"] .toast.text-bg-success,
.sge-body[data-theme="dark"] .toast.text-bg-danger,
.sge-body[data-theme="dark"] .toast.text-bg-warning,
.sge-body[data-theme="dark"] .toast.text-bg-info,
.sge-body[data-theme="dark"] .toast.text-bg-secondary {
  border: 1px solid rgba(248, 248, 242, 0.22) !important;
}

.sge-body[data-theme="dark"] .sge-chip,
.sge-body[data-theme="dark"] .sge-chip-clear {
  background: #21222c !important;
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-chip-x {
  color: #8be9fd !important;
}

/* ==========================| CARDS/TABELAS - Fim |========================== */

@media (max-width: 992px) {

  .sge-table th:nth-child(2),
  .sge-table td:nth-child(2),
  .sge-table th:nth-child(3),
  .sge-table td:nth-child(3) {
    display: none;
  }

  .sge-course-cell {
    min-width: 240px;
  }
}

.sge-logo {
  height: 48px;

  width: auto;
  object-fit: contain;
}

.sge-logo-dark {
  display: none;
}

.sge-logo-light {
  display: block;
}

/* ==========================| FORMULÁRIOS/FILTROS - Início |========================== */
.sge-toolbar-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 220px));

  gap: 12px;
  align-items: center;
  width: 100%;
}

.sge-toolbar {
  width: 100%;
}

.sge-toolbar-form--single {
  grid-template-columns: 1fr;
}

.sge-toolbar-form--coupons {
  grid-template-columns: minmax(260px, 1.2fr) repeat(4, max-content);
  justify-content: start;
}

.sge-toolbar-form--certificates {
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 220px) minmax(180px, 220px);
}

.sge-toolbar-form--sales {
  grid-template-columns: 1fr;
}

.sge-toolbar-form--sales .sge-sales-toolbar-row {
  display: grid;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.sge-toolbar-form--sales .sge-sales-toolbar-row--primary {
  grid-template-columns: minmax(170px, 190px) minmax(170px, 190px) minmax(260px, 1fr) minmax(260px, 1fr);
}

.sge-toolbar-form--sales .sge-sales-toolbar-row--secondary {
  grid-template-columns:
    minmax(170px, 0.85fr)
    minmax(180px, 0.95fr)
    minmax(180px, 0.95fr)
    minmax(190px, 1fr)
    minmax(240px, 1.25fr);
}

.sge-toolbar-form--sales .sge-search input,
.sge-toolbar-form--sales .sge-select,
.sge-toolbar-form--sales .form-control {
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.sge-toolbar-form--coupons .sge-select {
  min-width: 150px;
  width: auto;
  max-width: 240px;
}

.sge-toolbar-form--sales .form-control[disabled],
.sge-toolbar-form--sales .sge-select[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.sge-search {
  position: relative;
}

.sge-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(47, 62, 65, 0.45);
  font-size: 14px;
  pointer-events: none;
}

.sge-search input {
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 34px;

  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;

  font-size: 14px;
  color: #2F3E41;

  transition: border-color .15s ease, box-shadow .15s ease;
}

.sge-search input:focus {
  outline: none;
  border-color: rgba(255, 158, 0, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.12);
}

.sge-select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: 8px 12px;
  background: #fff;

  font-size: 14px;
  color: #2F3E41;
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.sge-select option {
  white-space: nowrap;
}

@media (max-width: 992px) {
  .sge-toolbar-form {
    grid-template-columns: 1fr 1fr;

  }

  .sge-toolbar-form--coupons {
    grid-template-columns: 1fr 1fr;
  }

  .sge-toolbar-form--certificates {
    grid-template-columns: 1fr 1fr;
  }

  .sge-toolbar-form--sales {
    grid-template-columns: 1fr;
  }

  .sge-toolbar-form--sales .sge-sales-toolbar-row--primary,
  .sge-toolbar-form--sales .sge-sales-toolbar-row--secondary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .sge-toolbar-form {
    grid-template-columns: 1fr;

  }

  .sge-toolbar-form--coupons {
    grid-template-columns: 1fr;
  }

  .sge-toolbar-form--certificates {
    grid-template-columns: 1fr;
  }

  .sge-toolbar-form--sales {
    grid-template-columns: 1fr;
  }

  .sge-toolbar-form--sales .sge-sales-toolbar-row--primary,
  .sge-toolbar-form--sales .sge-sales-toolbar-row--secondary {
    grid-template-columns: 1fr;
  }
}

.sge-table-coupons .sge-col-usage {
  width: 92px;
  min-width: 92px;
  text-align: center;
}

.sge-table-coupons .sge-col-status,
.sge-table-coupons .sge-col-period,
.sge-table-coupons .sge-col-discount {
  text-align: center;
}

.sge-table-coupons .sge-col-actions {
  width: 120px;
}

.sge-table-coupons .sge-action-group {
  justify-content: center;
}

.sge-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.sge-completion-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sge-completion-wrap small {
  color: #6b7a8a;
  font-size: 11px;
}

.sge-completion-bar {
  width: 88px;
  height: 5px;
  border-radius: 999px;
  background: rgba(47, 62, 65, .14);
  overflow: hidden;
}

.sge-completion-bar>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #efaf43 0%, #ffb84d 100%);
}

.sge-quick-preview-cover {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  border: 1px solid rgba(34, 52, 71, .12);
  background-color: #f3f5f7;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.sge-filters-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: opacity .14s ease, transform .14s ease;
}

.sge-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(52, 73, 94, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);

  color: #34495E;
  font-size: 13px;
  line-height: 1;
  transition: opacity .14s ease, transform .14s ease, background-color .12s ease;
}

.sge-chip strong {
  font-weight: 700;
}

.sge-chip-clear {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(52, 73, 94, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(52, 73, 94, 0.90);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease, color .15s ease;
}

.sge-chip-clear:hover {
  background: rgba(255, 158, 0, 0.10);

  border-color: rgba(255, 158, 0, 0.35);
  color: #34495E;
  transform: translateY(-1px);
}

.sge-chip-clear:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .sge-filters-active {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sge-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;
  margin-left: 6px;

  border-radius: 999px;
  text-decoration: none;

  color: rgba(52, 73, 94, 0.55);
  transition: background-color .15s ease, color .15s ease;
}

.sge-chip-x:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #34495E;
}

.sge-chip-x i {
  font-size: 12px;
}

.sge-chip.is-leaving {
  opacity: 0;
  transform: translateY(-1px);
}

.sge-filters-active.is-leaving {
  opacity: 0;
  transform: translateY(-2px);
}

/* ==========================| FORMULÁRIOS/FILTROS - DARK |========================== */
.sge-body[data-theme="dark"] input,
.sge-body[data-theme="dark"] textarea,
.sge-body[data-theme="dark"] select,
.sge-body[data-theme="dark"] .form-control,
.sge-body[data-theme="dark"] .form-select,
.sge-body[data-theme="dark"] .sge-select {
  background-color: var(--sge-dark-field-bg-custom, #21222c) !important;
  color: #f8f8f2 !important;
  border-color: var(--sge-dark-field-border-custom, #3b3b3b) !important;
}

.sge-body[data-theme="dark"] .sge-select {
  background-image: linear-gradient(180deg, rgba(33, 34, 44, .98) 0%, rgba(26, 28, 38, .98) 100%) !important;
}

.sge-body[data-theme="dark"] .sge-select:focus,
.sge-body[data-theme="dark"] .form-select:focus,
.sge-body[data-theme="dark"] .form-control:focus {
  border-color: var(--sge-dark-field-focus-custom, #efaf43) !important;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--sge-dark-field-focus-custom, #efaf43) 22%, transparent) !important;
}

.sge-body[data-theme="dark"] .sge-content select option,
.sge-body[data-theme="dark"] .sge-content .form-select option,
.sge-body[data-theme="dark"] .sge-content .sge-select option {
  background: #1f2937 !important;
  color: #eef4ff !important;
}

.sge-body[data-theme="dark"] .sge-content .sge-select option:checked,
.sge-body[data-theme="dark"] .sge-content .form-select option:checked {
  background: #efaf43 !important;
  color: #1f2937 !important;
}

.sge-body[data-theme="dark"] input::placeholder,
.sge-body[data-theme="dark"] textarea::placeholder,
.sge-body[data-theme="dark"] .form-control::placeholder,
.sge-body[data-theme="dark"] .sge-search input::placeholder {
  color: #ffffff !important;
  opacity: 0.9 !important;
}

.sge-body[data-theme="dark"] .sge-search i,
.sge-body[data-theme="dark"] .sge-input-icon-wrap i,
.sge-body[data-theme="dark"] .input-group-text i {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] .form-check-input {
  background-color: #1e1f29 !important;
  border-color: rgba(139, 233, 253, 0.4) !important;
}

.sge-body[data-theme="dark"] .form-check-input:hover {
  border-color: rgba(139, 233, 253, 0.62) !important;
}

.sge-body[data-theme="dark"] .form-check-input:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] .form-check-input:checked {
  background-color: #FF9E00 !important;
  border-color: #FF9E00 !important;
}

/* ==========================| FORMULÁRIOS/FILTROS - Fim |========================== */

/* ==========================| DASHBOARD (CARDS/ESTATÍSTICAS) - Início |========================== */

.sge-page-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 27px;
  color: #2F3E41;
}

.sge-page-title-icon {
  color: #34495E;
  font-size: 27px;
  line-height: 1;
}

.sge-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sge-teaching-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 251, 255, 0.94) 100%);
}

.sge-teaching-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.sge-teaching-summary-item small {
  font-size: 0.68rem;
  color: #72859a;
}

.sge-teaching-summary-item strong {
  font-size: 0.8rem;
  color: #223447;
  font-weight: 700;
}

.sge-top-bulk-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.95) 100%);
}

.sge-top-bulk-select {
  min-width: 212px;
}

.sge-top-bulk-apply {
  min-width: 90px;
}

.sge-body[data-theme="dark"] .sge-top-bulk-controls {
  border-color: rgba(139, 233, 253, 0.22);
  background: linear-gradient(180deg, rgba(22, 31, 45, 0.9) 0%, rgba(16, 24, 36, 0.9) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-summary-strip {
  border-color: rgba(139, 233, 253, 0.22);
  background: linear-gradient(180deg, rgba(22, 31, 45, 0.9) 0%, rgba(16, 24, 36, 0.9) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-summary-item small {
  color: #aabbd0;
}

.sge-body[data-theme="dark"] .sge-teaching-summary-item strong {
  color: #e7f0ff;
}

.sge-btn-action {
  border-radius: 12px;
  font-weight: 700;
  padding: 6px 14px;
}

@media (max-width: 576px) {
  .sge-btn-action {
    width: 100%;
    justify-content: center;
  }
}

.sge-order-input {
  width: 56px;
  text-align: center;

  padding: 3px 8px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;

  color: rgba(52, 73, 94, 0.92);
  background: rgba(52, 73, 94, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.10);

  outline: none;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}

.sge-order-input:focus {
  background: rgba(255, 158, 0, 0.10);
  border-color: rgba(255, 158, 0, 0.35);
  transform: translateY(-1px);
}

.sge-order-input::-webkit-outer-spin-button,
.sge-order-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sge-confirm .modal-dialog {
  max-width: 420px;
}

.sge-confirm .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.sge-confirm .modal-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #eef2f6;
  align-items: center;
}

.sge-confirm .btn-close {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.sge-confirm .btn-close:hover {
  opacity: 0.9;
}

.sge-confirm .sge-confirm-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sge-confirm .sge-confirm-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1rem;
  flex-shrink: 0;
  background: #fff4db;
  color: #b7791f;
}

.sge-confirm .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.sge-confirm .modal-body {
  padding: 1rem 1.25rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}

.sge-confirm .modal-footer {
  border-top: 0;
  padding: 0.9rem 1.25rem 1.25rem;
  gap: 0.5rem;
}

.sge-confirm .btn {
  min-width: 112px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: none !important;
  padding: 0.62rem 1rem;
}

.sge-confirm .btn-light {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #374151;
}

.sge-confirm .btn-light:hover {
  background: #eef2f7;
  border-color: #d8dee6;
  color: #1f2937;
}

.sge-confirm.sge-confirm--warning .sge-confirm-icon {
  background: #fff4db;
  color: #b7791f;
}

.sge-confirm.sge-confirm--warning .sge-confirm-ok {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.sge-confirm.sge-confirm--warning .sge-confirm-ok:hover {
  background: #d98d09;
  border-color: #d98d09;
}

.sge-confirm.sge-confirm--danger .sge-confirm-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.sge-confirm.sge-confirm--danger .sge-confirm-ok {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.sge-confirm.sge-confirm--danger .sge-confirm-ok:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.sge-confirm.sge-confirm--info .sge-confirm-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.sge-confirm.sge-confirm--info .sge-confirm-ok {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.sge-confirm.sge-confirm--info .sge-confirm-ok:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 576px) {
  .sge-confirm .modal-dialog {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .sge-confirm .modal-content {
    border-radius: 16px;
  }

  .sge-confirm .modal-footer {
    flex-wrap: wrap;
  }

  .sge-confirm .modal-footer .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.sge-edit-modal .modal-dialog {
  max-width: 700px;
  transform: translateY(10px);
  transition: all .25s ease;
}

.sge-edit-modal.show .modal-dialog {
  transform: translateY(0);
}

/* ==========================| DASHBOARD (CARDS/ESTATÍSTICAS) - DARK |========================== */

/* ==========================| DASHBOARD (CARDS/ESTATÍSTICAS) - Fim |========================== */

/* ==========================| MODAIS/PERMISSOES - Inicio |========================== */
.sge-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .15),
    0 2px 8px rgba(0, 0, 0, .05);
}

#modalNewUser .sge-modal,
#modalEditUser .sge-modal {
  overflow: visible;
}

#modalNewUser .sge-modal-body,
#modalEditUser .sge-modal-body,
#modalNewUser .sge-form-section,
#modalEditUser .sge-form-section {
  overflow: visible;
}

.sge-modal-header {
  background:
    linear-gradient(135deg, rgba(255, 158, 0, .15), rgba(255, 158, 0, .04));
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sge-modal-titlewrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
}

.sge-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9e00, #ffb84d);
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(255, 158, 0, .3);
}

.sge-modal-titles {
  display: flex;
  flex-direction: column;
}

.sge-modal-titles .modal-title {
  font-weight: 700;
  font-size: .95rem;
  color: #1a1f24;
}

.sge-modal-sub {
  font-size: .75rem;
  opacity: .75;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #393d3f;
}

.sge-modal-body {
  padding: 12px 12px;
  background: #f3f2f2;
}

.sge-form-section {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
  transition: all .2s ease;
}

.sge-form-section:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}

.sge-form-section-title {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #ff8c00;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Garante contraste consistente dos títulos de bloco no tema escuro. */
.sge-body[data-theme="dark"] .sge-form-section-title {
  color: #ffd089;
}

.sge-perm-builder {
  border: 1px solid rgba(47, 62, 65, .12);
  border-radius: 14px;
  background: #fbfcff;
  padding: 10px;
}

.sge-perm-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sge-perm-highlight-card {
  border: 1px solid rgba(47, 62, 65, .12);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.sge-perm-highlight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sge-perm-highlight-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 158, 0, .28);
  color: #d87f00;
  background: rgba(255, 158, 0, .08);
}

.sge-perm-highlight-list {
  display: grid;
  gap: 6px;
}

.sge-perm-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.sge-perm-highlight-item.is-on {
  color: #1f5636;
}

.sge-perm-highlight-item.is-off {
  color: rgba(47, 62, 65, .62);
}

.sge-perm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(47, 62, 65, .16);
}

.sge-perm-toolbar-actions {
  display: inline-flex;
  gap: 6px;
}

.sge-perm-toolbar-search {
  position: relative;
  min-width: 240px;
}

.sge-perm-toolbar-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(47, 62, 65, 0.5);
  pointer-events: none;
}

.sge-perm-toolbar-search .form-control-sm {
  height: 32px;
  padding-left: 30px;
}

.sge-perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sge-perm-card {
  border: 1px solid rgba(47, 62, 65, .12);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.sge-perm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom: 1px solid rgba(47, 62, 65, .1);
}

.sge-perm-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px 0;
}

.sge-perm-list {
  max-height: 210px;
  overflow: auto;
  padding: 8px 10px 10px;
}

.sge-perm-item {
  margin-bottom: 6px;
}

.sge-perm-item .form-check-label {
  font-size: 10px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .sge-perm-highlight-grid {
    grid-template-columns: 1fr;
  }

  .sge-perm-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .sge-perm-toolbar-search {
    min-width: 100%;
  }

  .sge-perm-grid {
    grid-template-columns: 1fr;
  }
}

.form-control-sm,
.form-select-sm {
  border-radius: 8px;
  border: 1px solid var(--sge-field-border, #e2e6ea);
  padding: .35rem .55rem;
  transition: all .18s ease;
  background: var(--sge-field-bg, #fcfcfd);
  font-size: .85rem;
}

.form-control-sm:focus,
.form-select-sm:focus {
  border-color: var(--sge-field-focus-border, #ff9e00);
  box-shadow: 0 0 0 2px var(--sge-field-focus-ring, rgba(255, 158, 0, .15));
  background: white;
}

.sge-modal select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23344A5F' stroke-width='2'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 7px;
  padding-right: 1.8rem;
}

.sge-multi-select {
  position: relative;
}

.sge-multi-select.is-open {
  z-index: 120;
}

.sge-multi-select-btn {
  width: 100%;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  background: #fcfcfd;
  min-height: 34px;
  padding: .35rem .55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  color: #2f3d4f;
  transition: all .18s ease;
  white-space: nowrap;
}

.sge-multi-select-btn:hover {
  background: #fff;
}

.sge-multi-select.is-open .sge-multi-select-btn,
.sge-multi-select-btn:focus {
  border-color: #ff9e00;
  box-shadow: 0 0 0 2px rgba(255, 158, 0, .15);
  background: #fff;
  outline: 0;
}

.sge-multi-select.is-invalid .sge-multi-select-btn {
  border-color: #dc3545;
}

.sge-multi-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 130;
  display: none;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 38, 63, .12);
  padding: .35rem;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: auto;
  width: max-content;
  min-width: 100%;
  max-width: min(560px, calc(100vw - 2rem));
}

.sge-multi-select-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .1rem .1rem .35rem;
  margin: -.2rem -.2rem .2rem;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
}

.sge-multi-select-search .form-control {
  min-height: 30px;
  font-size: .8rem;
  border-radius: 8px;
}

.sge-multi-select.is-open .sge-multi-select-menu {
  display: block;
}

.sge-multi-select-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .4rem;
  border-radius: 8px;
  font-size: .82rem;
  color: #344a5f;
  cursor: pointer;
  white-space: nowrap;
}

.sge-multi-select-item span {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.sge-multi-select-item:hover {
  background: #f6f8fb;
}

.sge-multi-select-item input {
  width: 14px;
  height: 14px;
}

.js-single-picker .sge-multi-select-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.js-single-picker .sge-multi-select-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .48rem .62rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #344a5f;
  font-size: .83rem;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.js-single-picker .sge-multi-select-item span {
  pointer-events: none;
}

.js-single-picker .sge-multi-select-item .sge-option-main {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.sge-option-icon {
  display: inline-flex;
  width: 14px;
  justify-content: center;
  color: #5f7388;
  flex: 0 0 14px;
}

.js-single-picker .sge-multi-select-item:hover {
  background: #f8fafc;
  border-color: rgba(34, 52, 71, .18);
}

.js-single-picker .sge-multi-select-item.is-selected {
  background: linear-gradient(180deg, rgba(255, 158, 0, .15) 0%, rgba(255, 158, 0, .08) 100%);
  border-color: rgba(255, 158, 0, 0.45);
  color: #223447;
  font-weight: 700;
}

.js-single-picker .sge-multi-select-item.is-selected::after {
  content: "\F26A";
  font-family: "bootstrap-icons";
  font-size: .86rem;
  color: #d07f00;
}

.sge-multi-select-item.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sge-coupon-form {
  border-radius: 14px;
}

.sge-coupon-form .card-body {
  padding: 1rem 1rem .75rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(239, 175, 67, .08) 0%, rgba(239, 175, 67, 0) 46%),
    linear-gradient(180deg, #fff 0%, #fdfefe 100%);
}

.sge-coupon-organizer {
  border: 1px solid rgba(34, 52, 71, .12);
  border-radius: 12px;
  padding: .8rem .85rem .9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(248, 251, 255, .95) 100%);
  box-shadow: 0 8px 20px -18px rgba(15, 23, 42, .45);
}

.sge-coupon-organizer .row {
  margin-top: .2rem;
}

.sge-coupon-form .card-footer {
  background: #fff;
}

.sge-coupon-save-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  color: #6c7e92;
}

#couponRestoreDraftBtn {
  margin-left: auto;
  min-height: 30px;
  border-radius: 8px;
  font-size: .72rem;
  padding: .22rem .6rem;
}

.sge-coupon-section-title {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .92rem;
  font-weight: 800;
  color: #24364a;
  background: rgba(239, 175, 67, .16);
  border: 1px solid rgba(239, 175, 67, .28);
  border-radius: 12px;
  padding: .28rem .62rem;
}

.sge-coupon-section-title i {
  color: #d38200;
}

.sge-coupon-form hr {
  border-top-color: rgba(34, 52, 71, .1);
}

.sge-body[data-theme="dark"] .js-single-picker .sge-multi-select-item:hover {
  background: rgba(139, 233, 253, 0.1);
  border-color: rgba(139, 233, 253, 0.25);
}

.sge-body[data-theme="dark"] .js-single-picker .sge-multi-select-item {
  background: #1f2937;
  color: #e5e7eb;
  border-color: transparent;
}

.sge-body[data-theme="dark"] .sge-multi-select-btn {
  background: #21222c;
  color: #f8f8f2;
  border-color: #3b3b3b;
}

.sge-body[data-theme="dark"] .sge-multi-select.is-open .sge-multi-select-btn,
.sge-body[data-theme="dark"] .sge-multi-select-btn:focus {
  border-color: #efaf43;
  box-shadow: 0 0 0 2px rgba(239, 175, 67, .2);
  background: #202330;
}

.sge-body[data-theme="dark"] .sge-multi-select-menu {
  background: #1f2937;
  border-color: #3b3b3b;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
}

.sge-body[data-theme="dark"] .sge-multi-select-item {
  color: #e5e7eb;
}

.sge-body[data-theme="dark"] .js-single-picker .sge-multi-select-item.is-selected {
  background: linear-gradient(180deg, rgba(255, 184, 77, .28) 0%, rgba(255, 184, 77, .17) 100%);
  border-color: rgba(255, 184, 77, 0.5);
  color: #f4ead8;
}

.sge-body[data-theme="dark"] .js-single-picker .sge-multi-select-item.is-selected::after {
  color: #ffd48e;
}

.sge-body[data-theme="dark"] .sge-multi-select-search {
  background: #282a36;
  border-bottom-color: rgba(139, 233, 253, .2);
}

.sge-body[data-theme="dark"] .sge-multi-select-search .form-control {
  background: #21222c;
  border-color: #3b3b3b;
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-coupon-form .card-body,
.sge-body[data-theme="dark"] .sge-coupon-form .card-footer {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 184, 77, .14) 0%, rgba(255, 184, 77, 0) 46%),
    linear-gradient(180deg, #282a36 0%, #21222c 100%);
}

.sge-body[data-theme="dark"] .sge-coupon-organizer {
  border-color: rgba(139, 233, 253, .25);
  background: linear-gradient(180deg, rgba(40, 42, 54, .94) 0%, rgba(33, 34, 44, .94) 100%);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .55);
}

.sge-body[data-theme="dark"] .sge-coupon-section-title {
  color: #f8f8f2;
  background: rgba(255, 184, 77, .2);
  border-color: rgba(255, 184, 77, .32);
}

.sge-body[data-theme="dark"] .sge-coupon-section-title i {
  color: #ffb84d;
}

.sge-body[data-theme="dark"] .sge-coupon-save-meta {
  color: #b9c8db;
}

.sge-body[data-theme="dark"] #couponRestoreDraftBtn {
  border-color: rgba(139, 233, 253, .28);
  color: #dbe5f3;
}

.sge-autocomplete {
  position: relative;
}

.sge-autocomplete-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.12);
  padding: 4px;
}

.sge-autocomplete-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #2f3e41;
}

.sge-autocomplete-item:hover {
  background: #f6f8fb;
}

.sge-autocomplete-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(47, 62, 65, 0.68);
}

.sge-status-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.sge-badge-soft {
  border-radius: 999px;
  padding: .32rem .65rem;
  font-weight: 700;
  font-size: .60rem;
  transition: all .25s ease;
}

.sge-badge-soft.is-success {
  background: rgba(25, 135, 84, .12);
  color: #0f5132;
}

.sge-badge-soft.is-warning {
  background: rgba(255, 193, 7, .18);
  color: #7a5a00;
}

.sge-badge-soft.is-muted {
  background: rgba(108, 117, 125, .14);
  color: #495057;
}

.sge-badge-soft.is-danger {
  background: rgba(220, 53, 69, .12);
  color: #842029;
}

.sge-badge-soft.is-info {
  background: rgba(13, 110, 253, .14);
  color: #084298;
}

.sge-status-inline {
  min-width: 106px;
  width: 106px;
  height: 26px;
  padding: .1rem 1.55rem .1rem .45rem;
  border-radius: .375rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-align-last: center;
  border: 1px solid var(--bs-border-color, #ced4da);
  background-color: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: var(--bs-form-select-bg-img);
  background-repeat: no-repeat;
  background-position: right .45rem center;
  background-size: 16px 12px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.sge-status-inline option {
  background: var(--bs-body-bg, #fff) !important;
  color: var(--bs-body-color, #212529) !important;
}

.sge-status-inline:hover {
  transform: none;
  box-shadow: none;
}

.sge-status-inline.is-success {
  background-color: rgba(25, 135, 84, .12);
  color: #0f5132;
  border-color: rgba(25, 135, 84, .34);
}

.sge-status-inline.is-warning {
  background-color: rgba(255, 193, 7, .18);
  color: #7a5a00;
  border-color: rgba(255, 193, 7, .42);
}

.sge-status-inline.is-muted {
  background-color: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border-color: var(--bs-border-color, #ced4da);
}

.sge-status-inline.is-danger {
  background-color: rgba(220, 53, 69, .12);
  color: #842029;
  border-color: rgba(220, 53, 69, .36);
}

.sge-status-inline:focus {
  outline: 0;
  transform: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .25);
}

.sge-modal-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, .05);
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-warning {
  background: linear-gradient(135deg, var(--sge-btn-primary-bg-solid, #ff9e00), color-mix(in srgb, var(--sge-btn-primary-bg-solid, #ff9e00) 72%, white));
  border: none;
  color: var(--sge-btn-primary-color, #1f2937);
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--sge-btn-primary-bg-solid, #ff9e00) 35%, transparent);
  transition: all .2s ease;
}

.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--sge-btn-primary-bg-solid, #ff9e00) 45%, transparent);
}

.btn-outline-secondary {
  border-radius: 8px;
  font-size: .85rem;
  border-color: var(--sge-btn-outline-border, #cbd5e1);
  color: var(--sge-btn-outline-color, #475569);
}

/* ==========================| MODAIS/PERMISSOES - DARK |========================== */
.sge-body[data-theme="dark"] .modal-content,
.sge-body[data-theme="dark"] .sge-modal {
  background: #282a36 !important;
  border-color: rgba(139, 233, 253, 0.24) !important;
  color: #f8f8f2 !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46) !important;
}

.sge-body[data-theme="dark"] .modal-backdrop.show {
  opacity: 0.68;
}

.sge-body[data-theme="dark"] .sge-modal-header,
.sge-body[data-theme="dark"] .modal-header,
.sge-body[data-theme="dark"] .sge-modal-footer,
.sge-body[data-theme="dark"] .modal-footer {
  background: #282a36 !important;
  border-color: rgba(139, 233, 253, 0.2) !important;
}

.sge-body[data-theme="dark"] .sge-modal-body,
.sge-body[data-theme="dark"] .modal-body {
  background: #21222c !important;
  color: #f8f8f2 !important;
}

/* Tema escuro: garante legibilidade de títulos e botão fechar em modais genéricos. */
.sge-body[data-theme="dark"] .modal-title,
.sge-body[data-theme="dark"] .sge-modal .modal-title {
  color: #f8fafc !important;
}

.sge-body[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.82;
}

.sge-body[data-theme="dark"] .btn-close:hover {
  opacity: 1;
}

/* Confirm modal (novo) - dark simples e consistente */
.sge-body[data-theme="dark"] .sge-confirm .modal-content {
  background: #1f2430 !important;
  border: 1px solid rgba(139, 233, 253, 0.22) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.58) !important;
}

.sge-body[data-theme="dark"] .sge-confirm .modal-header {
  background: #1f2430 !important;
  border-bottom-color: rgba(139, 233, 253, 0.18) !important;
}

.sge-body[data-theme="dark"] .sge-confirm .modal-title {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] #sgeConfirmTitle {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-confirm .modal-body {
  background: #1f2430 !important;
  color: #d6deea !important;
}

.sge-body[data-theme="dark"] .sge-confirm .modal-footer {
  background: #1f2430 !important;
}

.sge-body[data-theme="dark"] .sge-confirm .sge-confirm-cancel {
  background: #2a3140 !important;
  border-color: #3b465a !important;
  color: #e7edf7 !important;
}

.sge-body[data-theme="dark"] .sge-confirm .sge-confirm-cancel:hover {
  background: #313a4c !important;
  border-color: #4b5972 !important;
}

.sge-body[data-theme="dark"] .sge-perm-builder {
  background: #232734 !important;
  border-color: rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] .sge-perm-card {
  background: #1f2330 !important;
  border-color: rgba(139, 233, 253, 0.2) !important;
}

/* padrão_sge: qualquer modal de edição segue visual dark consistente */
.sge-body[data-theme="dark"] .sge-edit-modal .sge-modal-body {
  background: #21222c !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-form-section {
  background: #282a36 !important;
  border: 1px solid rgba(139, 233, 253, 0.18) !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-form-section:hover {
  transform: none;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-modal-titles .modal-title,
.sge-body[data-theme="dark"] .sge-edit-modal .sge-modal-sub,
.sge-body[data-theme="dark"] .sge-edit-modal .form-label,
.sge-body[data-theme="dark"] .sge-edit-modal .form-text,
.sge-body[data-theme="dark"] .sge-edit-modal .sge-mini {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-modal-icon i {
  color: #ffffff !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .form-control,
.sge-body[data-theme="dark"] .sge-edit-modal .form-select,
.sge-body[data-theme="dark"] .sge-edit-modal textarea,
.sge-body[data-theme="dark"] .sge-edit-modal select,
.sge-body[data-theme="dark"] .sge-edit-modal input {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .form-control:focus,
.sge-body[data-theme="dark"] .sge-edit-modal .form-select:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-multi-select-btn {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-multi-select-btn i {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-multi-select-menu {
  background: #282a36 !important;
  border-color: #3b3b3b !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55) !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-multi-select-item {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .sge-multi-select-item:hover {
  background: rgba(139, 233, 253, 0.12) !important;
}

.sge-body[data-theme="dark"] .sge-edit-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(1.25);
  opacity: 0.92;
}

/* Categorias (Nova/Editar): modal no tema escuro */
.sge-body[data-theme="dark"] #modalNewCategory .sge-modal-body,
.sge-body[data-theme="dark"] #modalEditCategory .sge-modal-body {
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .sge-form-section,
.sge-body[data-theme="dark"] #modalEditCategory .sge-form-section {
  background: #282a36 !important;
  border: 1px solid rgba(139, 233, 253, 0.18) !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .sge-modal-titles .modal-title,
.sge-body[data-theme="dark"] #modalEditCategory .sge-modal-titles .modal-title,
.sge-body[data-theme="dark"] #modalNewCategory .sge-modal-sub,
.sge-body[data-theme="dark"] #modalEditCategory .sge-modal-sub,
.sge-body[data-theme="dark"] #modalNewCategory .form-label,
.sge-body[data-theme="dark"] #modalEditCategory .form-label {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .sge-modal-icon i,
.sge-body[data-theme="dark"] #modalEditCategory .sge-modal-icon i {
  color: #ffffff !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .form-control,
.sge-body[data-theme="dark"] #modalEditCategory .form-control {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .form-control:focus,
.sge-body[data-theme="dark"] #modalEditCategory .form-control:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .btn-outline-secondary,
.sge-body[data-theme="dark"] #modalEditCategory .btn-outline-secondary {
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .btn-outline-secondary:hover,
.sge-body[data-theme="dark"] #modalEditCategory .btn-outline-secondary:hover {
  color: #f8f8f2 !important;
  border-color: #8be9fd !important;
  background: #282a36 !important;
}

.sge-body[data-theme="dark"] #modalNewCategory .btn-close,
.sge-body[data-theme="dark"] #modalEditCategory .btn-close {
  filter: invert(1) grayscale(100%) brightness(1.25);
  opacity: 0.92;
}

/* ==========================| MODAIS/PERMISSOES - Fim |========================== */

/* ==========================| DASHBOARD (PAINÉIS/AGENDA) - Início |========================== */
.sge-dashboard-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #2f3e41;
}

.sge-dashboard-panel {
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 28px rgba(0, 0, 0, 0.04);
}

.sge-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sge-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  min-height: 72px;
}

.sge-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 38, 63, .08);
  border-color: rgba(255, 158, 0, .35);
}

.sge-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 158, 0, .14);
  color: #8a5b00;
  font-size: 15px;
  flex: 0 0 auto;
}

.sge-quick-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sge-quick-title {
  font-size: 12px;
  font-weight: 700;
  color: #243236;
  line-height: 1.15;
}

.sge-quick-sub {
  font-size: 10px;
  color: rgba(47, 62, 65, .72);
  line-height: 1.15;
}

.sge-agenda-card {
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .03), 0 8px 18px rgba(18, 38, 63, .05);
}

.sge-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sge-agenda-label {
  font-size: 13px;
  font-weight: 700;
  color: #2f3e41;
}

.sge-agenda-link {
  font-size: 12px;
  font-weight: 600;
  color: #7a5a00;
  text-decoration: none;
}

.sge-agenda-link:hover {
  text-decoration: underline;
}

.sge-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sge-agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fbfcfe;
  border: 1px solid #eef1f6;
}

.sge-agenda-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #223136;
  line-height: 1.2;
}

.sge-agenda-item-sub {
  font-size: 11px;
  color: rgba(47, 62, 65, .7);
  line-height: 1.2;
}

.sge-agenda-item-date {
  font-size: 11px;
  font-weight: 700;
  color: #34495e;
  white-space: nowrap;
}

.sge-agenda-item-datewrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.sge-agenda-item-days {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(47, 62, 65, .62);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sge-agenda-item-days i {
  font-size: 9px;
  opacity: .7;
}

.sge-agenda-empty {
  font-size: 12px;
  color: rgba(47, 62, 65, .65);
  padding: 10px;
  border-radius: 10px;
  background: #f9fafc;
  border: 1px dashed #dbe3ea;
}

.sge-agenda-dot {
  margin: 0 5px;
  color: rgba(47, 62, 65, .45);
}

.sge-agenda-status {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1px;
  border: 1px solid transparent;
}

.sge-agenda-status.is-success {
  color: #0f5132;
  background: rgba(25, 135, 84, .12);
  border-color: rgba(25, 135, 84, .18);
}

.sge-agenda-status.is-warning {
  color: #7a5a00;
  background: rgba(255, 193, 7, .18);
  border-color: rgba(255, 193, 7, .26);
}

.sge-agenda-status.is-muted {
  color: #495057;
  background: rgba(108, 117, 125, .14);
  border-color: rgba(108, 117, 125, .22);
}

.sge-agenda-status.is-danger {
  color: #842029;
  background: rgba(220, 53, 69, .12);
  border-color: rgba(220, 53, 69, .2);
}

@keyframes phdDashIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sge-dash-reveal {
  opacity: 0;
  animation: phdDashIn .35s ease forwards;
}

.sge-dashboard-stats>div:nth-child(1) .sge-dash-reveal {
  animation-delay: .02s;
}

.sge-dashboard-stats>div:nth-child(2) .sge-dash-reveal {
  animation-delay: .06s;
}

.sge-dashboard-stats>div:nth-child(3) .sge-dash-reveal {
  animation-delay: .10s;
}

.sge-dashboard-stats>div:nth-child(4) .sge-dash-reveal {
  animation-delay: .14s;
}

.sge-dashboard-quick-grid>div:nth-child(1) .sge-dash-reveal {
  animation-delay: .18s;
}

.sge-dashboard-quick-grid>div:nth-child(2) .sge-dash-reveal {
  animation-delay: .22s;
}

.sge-dashboard-quick-grid>div:nth-child(3) .sge-dash-reveal {
  animation-delay: .26s;
}

.sge-dashboard-quick-grid>div:nth-child(4) .sge-dash-reveal {
  animation-delay: .30s;
}

.sge-dashboard-quick-grid>div:nth-child(5) .sge-dash-reveal {
  animation-delay: .34s;
}

.sge-dashboard-agenda-grid>div:nth-child(1) .sge-dash-reveal {
  animation-delay: .38s;
}

.sge-dashboard-agenda-grid>div:nth-child(2) .sge-dash-reveal {
  animation-delay: .42s;
}

@media (prefers-reduced-motion: reduce) {
  .sge-dash-reveal {
    opacity: 1;
    animation: none;
  }

  .sge-quick-card,
  .sge-agenda-card {
    transition: none;
  }

  .sge-quick-card:hover,
  .sge-status-hub-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ==========================| DASHBOARD (PAINÉIS/AGENDA) - DARK |========================== */
.sge-body[data-theme="dark"] .sge-dashboard-panel,
.sge-body[data-theme="dark"] .sge-agenda-card {
  background: #282A36 !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
}
.sge-body[data-theme="dark"] .sge-quick-card,
.sge-body[data-theme="dark"] .sge-agenda-card--events .sge-agenda-list .sge-agenda-item,
.sge-body[data-theme="dark"] .sge-agenda-card--events .sge-agenda-empty,
.sge-body[data-theme="dark"] .sge-agenda-empty {
  background: #21222C !important;
  border: none !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] .sge-dashboard-title,
.sge-body[data-theme="dark"] .sge-agenda-label,
.sge-body[data-theme="dark"] .sge-quick-title {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-dashboard-head i,
.sge-body[data-theme="dark"] .sge-quick-icon i {
  color: #F59D15 !important;
}

.sge-body[data-theme="dark"] .sge-quick-sub,
.sge-body[data-theme="dark"] .sge-agenda-item-sub,
.sge-body[data-theme="dark"] .sge-agenda-item-date,
.sge-body[data-theme="dark"] .sge-agenda-item-days {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-agenda-item-title {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-agenda-item {
  background: #21222C !important;
  border: none !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] .sge-agenda-empty {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-agenda-dot {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] .sge-agenda-link {
  color: #F59D15 !important;
}

.sge-body[data-theme="dark"] .sge-agenda-link:hover {
  color: #ffc36f !important;
  text-decoration: none;
}

.sge-body[data-theme="dark"] .sge-dashboard-panel:hover,
.sge-body[data-theme="dark"] .sge-agenda-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14) !important;
}

/* ==========================| DASHBOARD (PAINÉIS/AGENDA) - Fim |========================== */

/* ==========================| USUÁRIOS (LISTA/MODAIS) - Início |========================== */
.sge-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 290px;
}

.sge-user-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sge-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 158, 0, .16);
  color: #8b5200;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.sge-user-email {
  font-size: 11px;
  color: rgba(47, 62, 65, .68);
  line-height: 1.1;
}

.sge-user-meta-tags {
  font-size: 10px;
  line-height: 1.05;
}

.sge-user-meta-tags .sge-user-chip {
  min-height: 16px;
  padding: 1px 6px;
  font-size: 8px;
}

.sge-user-protected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  font-size: 8px;
  font-weight: 600;
  color: #8a5a12;
  opacity: 0.9;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: nowrap;
}

.sge-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #223136;
  line-height: 1.2;
  letter-spacing: .1px;
  transition: color .15s ease, transform .15s ease;
}

.sge-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1px;
  line-height: 1;
}

.sge-perm-total-badge {
  min-height: 30px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(25, 135, 84, .24);
  box-shadow: 0 4px 12px rgba(25, 135, 84, .12);
}

/* PESSOAS - PADRAO DE DISTRIBUICAO DAS TOOLBARS */
.sge-toolbar-form--people-2 {
  grid-template-columns: minmax(320px, 1.8fr) minmax(180px, 1fr);
}

.sge-toolbar-form--people-3 {
  grid-template-columns: minmax(320px, 1.8fr) repeat(2, minmax(180px, 1fr));
}

.sge-toolbar-form--people-4 {
  grid-template-columns: minmax(320px, 1.8fr) repeat(3, minmax(180px, 1fr));
}

.sge-toolbar-form--people-6 {
  grid-template-columns: repeat(2, minmax(240px, 1.2fr)) repeat(4, minmax(150px, 1fr));
}

/* Ajuste fino por tela - modulo Pessoas */
.sge-toolbar-form--users.sge-toolbar-form--people-4 {
  grid-template-columns: minmax(300px, 2fr) repeat(3, minmax(140px, 0.85fr));
}

.sge-toolbar-form--users.sge-toolbar-form--people-3 {
  grid-template-columns: minmax(360px, 2.2fr) repeat(2, minmax(180px, 1fr));
}

.sge-toolbar-form--users.sge-toolbar-form--people-2 {
  grid-template-columns: minmax(420px, 2.8fr) minmax(210px, 1fr);
}

.sge-toolbar-form--audit-users.sge-toolbar-form--people-6 {
  grid-template-columns: repeat(2, minmax(250px, 1.25fr)) repeat(4, minmax(145px, 1fr));
}

.sge-toolbar-form--audit-credits.sge-toolbar-form--people-4 {
  grid-template-columns: repeat(2, minmax(320px, 1.8fr)) repeat(2, minmax(170px, 1fr));
}

.sge-toolbar-form--users {
  grid-template-columns: minmax(320px, 1.8fr) repeat(3, minmax(180px, 1fr));
}

.sge-toolbar-form--audit-users {
  grid-template-columns: repeat(2, minmax(240px, 1.2fr)) repeat(4, minmax(150px, 1fr));
}

.sge-toolbar-form--audit-credits {
  grid-template-columns: minmax(320px, 1.6fr) minmax(320px, 1.6fr) repeat(2, minmax(160px, 1fr));
}

.sge-toolbar-form--enrollments-audit {
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(160px, 190px) minmax(170px, 190px) minmax(120px, 140px);
}

.sge-toolbar-form--enrollments-audit #per_page {
  white-space: nowrap;
}

.sge-settings-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.sge-settings-tab {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: #34495e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.sge-settings-tab:hover {
  background: rgba(52, 73, 94, 0.08);
  color: #1f2a30;
}

.sge-settings-tab.active {
  background: rgba(255, 158, 0, 0.16);
  border-color: rgba(255, 158, 0, 0.34);
  color: #7a4a00;
}

.sge-edu-settings-intro {
  font-size: 13px;
  color: rgba(52, 73, 94, 0.84);
}

.sge-edu-settings-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sge-edu-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 253, 0.92));
  padding: 12px;
}

.sge-edu-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #223136;
  margin-bottom: 4px;
}

.sge-edu-box-text {
  font-size: 13px;
  color: rgba(52, 73, 94, 0.82);
}

.sge-edu-scope-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sge-edu-scope-card.is-disabled {
  opacity: 0.78;
}

.sge-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================| PAGINACAO - Inicio |========================== */
/* Painel premium da pagina de paginacao global */
.sge-pagination-hero {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sge-pagination-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sge-pagination-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: #223136;
}

.sge-pagination-hero-sub {
  font-size: 13px;
  color: rgba(52, 73, 94, 0.78);
}

.sge-pagination-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sge-pagination-groups {
  display: grid;
  gap: 16px;
}

.sge-pagination-groups-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sge-pagination-groups-title {
  font-size: 14px;
  font-weight: 700;
  color: #223136;
}

.sge-pagination-groups-sub {
  font-size: 12px;
  color: rgba(52, 73, 94, 0.72);
}

.sge-pagination-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcff;
}

.sge-pagination-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sge-pagination-group-title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.sge-pagination-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #223136;
}

.sge-pagination-group-meta {
  font-size: 11px;
  font-weight: 700;
  color: rgba(52, 73, 94, 0.68);
}

.sge-pagination-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.sge-pagination-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 10px 11px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color .14s ease, background .14s ease;
}

.sge-pagination-item:hover {
  border-color: rgba(255, 158, 0, 0.32);
  background: #fffdf8;
}

.sge-pagination-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.sge-pagination-item-main {
  min-width: 0;
}

.sge-pagination-item-label {
  font-size: 13px;
  font-weight: 700;
  color: #223136;
}

.sge-pagination-item-note {
  display: block;
  font-size: 11px;
  color: rgba(52, 73, 94, 0.66);
}

.sge-pagination-item-control {
  width: 172px;
  flex: 0 0 172px;
}

@media (max-width: 768px) {
  .sge-pagination-item {
    flex-direction: column;
    align-items: stretch;
  }

  .sge-pagination-item-control {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* ==========================| PAGINACAO - DARK |========================== */
.sge-body[data-theme="dark"] .sge-pagination-hero,
.sge-body[data-theme="dark"] .sge-pagination-card,
.sge-body[data-theme="dark"] .sge-pagination-group,
.sge-body[data-theme="dark"] .sge-pagination-item {
  background: #282a36 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-pagination-hero-title,
.sge-body[data-theme="dark"] .sge-pagination-groups-title,
.sge-body[data-theme="dark"] .sge-pagination-group-title,
.sge-body[data-theme="dark"] .sge-pagination-item .form-label,
.sge-body[data-theme="dark"] .sge-pagination-item-label {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-pagination-hero-sub,
.sge-body[data-theme="dark"] .sge-pagination-groups-sub,
.sge-body[data-theme="dark"] .sge-pagination-group-meta,
.sge-body[data-theme="dark"] .sge-pagination-item-note {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-pagination-item:hover {
  border-color: rgba(255, 184, 108, 0.44) !important;
  background: #21222c !important;
}

/* ==========================| PAGINACAO - Fim |========================== */

.sge-th-link {
  color: inherit;
  text-decoration: none;
}

.sge-th-link:hover {
  color: #253342;
  text-decoration: underline;
}

.sge-user-photo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .08);
  flex: 0 0 auto;
}

.sge-user-photo-preview-wrap,
.sge-user-view-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sge-user-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sge-user-view-item {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fcfdff;
}

.sge-user-view-item-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(52, 73, 94, .72);
  text-transform: uppercase;
  letter-spacing: .25px;
}

.sge-password-page {
  margin-top: 2px;
}

.sge-password-card {
  overflow: hidden;
}

.sge-password-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}

.sge-password-tips {
  display: grid;
  gap: 8px;
}

.sge-password-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.sge-status-form-page {
  width: 100%;
}

.sge-user-view-item-value {
  font-size: 13px;
  font-weight: 600;
  color: #233137;
  line-height: 1.2;
  word-break: break-word;
}

.sge-actions-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sge-user-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .1);
}

.sge-user-photo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, .16);
  color: rgba(52, 73, 94, .75);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.sge-row-pending td {
  opacity: .55;
}

.sge-icon-btn.is-loading {
  pointer-events: none;
  opacity: .65;
}

.sge-icon-btn.is-loading i {
  animation: sge-spin .8s linear infinite;
}

@keyframes sge-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.js-dup-feedback {
  min-height: 16px;
}

.js-dup-feedback:not(:empty) {
  color: rgba(52, 73, 94, .72);
  font-size: 11px;
}

.sge-nav-toggle:focus-visible,
.sge-subitem:focus-visible,
.sge-nav-item:focus-visible,
.sge-sidebar-collapse-btn:focus-visible,
.sge-icon-btn:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(255, 158, 0, .9);
  outline-offset: 2px;
}

@media (max-width: 1200px) {

  .sge-toolbar-form--people-2,
  .sge-toolbar-form--people-3,
  .sge-toolbar-form--people-4,
  .sge-toolbar-form--people-6,
  .sge-toolbar-form--users,
  .sge-toolbar-form--audit-users {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .sge-toolbar-form--audit-credits,
  .sge-toolbar-form--enrollments-audit {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .sge-toolbar-form--people-2,
  .sge-toolbar-form--people-3,
  .sge-toolbar-form--people-4,
  .sge-toolbar-form--people-6,
  .sge-toolbar-form--users,
  .sge-toolbar-form--audit-users,
  .sge-toolbar-form--audit-credits,
  .sge-toolbar-form--enrollments-audit {
    grid-template-columns: 1fr;
  }

  .sge-user-view-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================| USUÁRIOS (LISTA/MODAIS) - DARK |========================== */
.sge-body[data-theme="dark"] .sge-table-card--users,
.sge-body[data-theme="dark"] .sge-table-card--users .table-responsive {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--users thead th {
  color: #eaf6ff !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .sge-user-name,
.sge-body[data-theme="dark"] .sge-table-card--users .sge-user-email,
.sge-body[data-theme="dark"] .sge-table-card--users .sge-user-meta-tags,
.sge-body[data-theme="dark"] .sge-table-card--users td,
.sge-body[data-theme="dark"] .sge-table-card--users .text-muted {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .sge-th-link {
  color: #eaf6ff !important;
  text-decoration: none !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .sge-th-link:hover {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .card-footer.bg-white,
.sge-body[data-theme="dark"] .sge-table-card--users .card-footer {
  background: #282a36 !important;
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .sge-user-photo-fallback,
.sge-body[data-theme="dark"] .sge-table-card--users .sge-user-avatar {
  background: rgba(139, 233, 253, 0.16) !important;
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.28) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--users .sge-user-protected {
  color: #f3c36b;
}

.sge-body[data-theme="dark"] .sge-settings-tabs {
  background: #282a36 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-settings-tab {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-settings-tab:hover {
  background: rgba(139, 233, 253, 0.1) !important;
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-settings-tab.active {
  background: rgba(139, 233, 253, 0.18) !important;
  border-color: rgba(139, 233, 253, 0.34) !important;
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-edu-settings-intro {
  color: #cbd5e1 !important;
}

.sge-body[data-theme="dark"] .sge-edu-settings-panel,
.sge-body[data-theme="dark"] .sge-edu-scope-card,
.sge-body[data-theme="dark"] .sge-edu-box {
  background: #282a36 !important;
  border-color: rgba(139, 233, 253, 0.2) !important;
}

.sge-body[data-theme="dark"] .sge-edu-box-title {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-edu-box-text {
  color: #cbd5e1 !important;
}

.sge-body[data-theme="dark"] .sge-status-module-card {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(139, 233, 253, 0.12), transparent 52%),
    linear-gradient(180deg, #2a2c38, #242632) !important;
  border-color: rgba(139, 233, 253, 0.24) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

.sge-body[data-theme="dark"] .sge-status-module-card:hover {
  border-color: rgba(255, 184, 108, 0.5) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38) !important;
}

.sge-body[data-theme="dark"] .sge-status-module-card .text-muted {
  color: #cbd5e1 !important;
}

.sge-body[data-theme="dark"] .sge-password-badge {
  color: #f8f8f2 !important;
  background: rgba(245, 157, 21, 0.2) !important;
  border-color: rgba(245, 157, 21, 0.36) !important;
}

.sge-body[data-theme="dark"] .sge-password-tip {
  color: #cbd5e1 !important;
}

/* Usuários (Novo/Editar): modais no tema escuro */
.sge-body[data-theme="dark"] #modalNewUser .sge-modal-body,
.sge-body[data-theme="dark"] #modalEditUser .sge-modal-body {
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-form-section,
.sge-body[data-theme="dark"] #modalEditUser .sge-form-section {
  background: #282a36 !important;
  border: 1px solid rgba(139, 233, 253, 0.18) !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-form-section:hover,
.sge-body[data-theme="dark"] #modalEditUser .sge-form-section:hover {
  transform: none;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-modal-titles .modal-title,
.sge-body[data-theme="dark"] #modalEditUser .sge-modal-titles .modal-title,
.sge-body[data-theme="dark"] #modalNewUser .sge-modal-sub,
.sge-body[data-theme="dark"] #modalEditUser .sge-modal-sub,
.sge-body[data-theme="dark"] #modalNewUser .form-label,
.sge-body[data-theme="dark"] #modalEditUser .form-label {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-modal-icon i,
.sge-body[data-theme="dark"] #modalEditUser .sge-modal-icon i {
  color: #ffffff !important;
}

.sge-body[data-theme="dark"] #modalNewUser .form-control,
.sge-body[data-theme="dark"] #modalEditUser .form-control,
.sge-body[data-theme="dark"] #modalNewUser .form-select,
.sge-body[data-theme="dark"] #modalEditUser .form-select {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #modalNewUser .form-control:focus,
.sge-body[data-theme="dark"] #modalEditUser .form-control:focus,
.sge-body[data-theme="dark"] #modalNewUser .form-select:focus,
.sge-body[data-theme="dark"] #modalEditUser .form-select:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-multi-select-btn,
.sge-body[data-theme="dark"] #modalEditUser .sge-multi-select-btn {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-multi-select-btn i,
.sge-body[data-theme="dark"] #modalEditUser .sge-multi-select-btn i {
  color: #8be9fd !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-multi-select-menu,
.sge-body[data-theme="dark"] #modalEditUser .sge-multi-select-menu {
  background: #282a36 !important;
  border-color: #3b3b3b !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55) !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-multi-select-item,
.sge-body[data-theme="dark"] #modalEditUser .sge-multi-select-item {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-multi-select-item:hover,
.sge-body[data-theme="dark"] #modalEditUser .sge-multi-select-item:hover {
  background: rgba(139, 233, 253, 0.12) !important;
}

.sge-body[data-theme="dark"] #modalNewUser .form-text,
.sge-body[data-theme="dark"] #modalEditUser .form-text {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] #modalNewUser .sge-user-photo-fallback,
.sge-body[data-theme="dark"] #modalEditUser .sge-user-photo-fallback {
  background: #1e1f29 !important;
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #modalNewUser .btn-outline-secondary,
.sge-body[data-theme="dark"] #modalEditUser .btn-outline-secondary {
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #modalNewUser .btn-outline-secondary:hover,
.sge-body[data-theme="dark"] #modalEditUser .btn-outline-secondary:hover {
  color: #f8f8f2 !important;
  border-color: #8be9fd !important;
  background: #282a36 !important;
}

.sge-body[data-theme="dark"] #modalNewUser .btn-warning i,
.sge-body[data-theme="dark"] #modalEditUser .btn-warning i {
  color: #ffffff !important;
}

.sge-body[data-theme="dark"] #modalNewUser .btn-close,
.sge-body[data-theme="dark"] #modalEditUser .btn-close {
  filter: invert(1) grayscale(100%) brightness(1.25);
  opacity: 0.92;
}

/* Tags/Créditos/Perfis/Auditorias/Configurações: cobertura completa no dark */
.sge-body[data-theme="dark"] .sge-table-card--tags .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--credits .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--credits-audit .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--profiles .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--audit .sge-thead th,
.sge-body[data-theme="dark"] .sge-table-card--statuses .sge-thead th {
  color: #eaf6ff !important;
}

.sge-body[data-theme="dark"] .sge-table-card--tags,
.sge-body[data-theme="dark"] .sge-table-card--credits,
.sge-body[data-theme="dark"] .sge-table-card--credits-audit,
.sge-body[data-theme="dark"] .sge-table-card--profiles,
.sge-body[data-theme="dark"] .sge-table-card--audit,
.sge-body[data-theme="dark"] .sge-table-card--statuses {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-table-card--tags td,
.sge-body[data-theme="dark"] .sge-table-card--credits td,
.sge-body[data-theme="dark"] .sge-table-card--credits-audit td,
.sge-body[data-theme="dark"] .sge-table-card--profiles td,
.sge-body[data-theme="dark"] .sge-table-card--audit td,
.sge-body[data-theme="dark"] .sge-table-card--statuses td {
  color: #DBDAD9 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--tags .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--credits .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--credits-audit .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--profiles .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--audit .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--statuses .table-hover>tbody>tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--tags tbody tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--credits tbody tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--credits-audit tbody tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--profiles tbody tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--audit tbody tr:hover>*,
.sge-body[data-theme="dark"] .sge-table-card--statuses tbody tr:hover>* {
  background-color: rgba(139, 233, 253, 0.08) !important;
}

.sge-body[data-theme="dark"] .sge-table-card--tags .card-footer,
.sge-body[data-theme="dark"] .sge-table-card--credits .card-footer,
.sge-body[data-theme="dark"] .sge-table-card--credits-audit .card-footer,
.sge-body[data-theme="dark"] .sge-table-card--profiles .card-footer,
.sge-body[data-theme="dark"] .sge-table-card--audit .card-footer,
.sge-body[data-theme="dark"] .sge-table-card--statuses .card-footer {
  background: #282a36 !important;
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
}

/* Créditos: coluna usuário no dark */
.sge-body[data-theme="dark"] .sge-table-card--credits .sge-user-name {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--credits .sge-user-email {
  color: #9A9C9E !important;
}

/* Perfis e edição de permissões */
.sge-body[data-theme="dark"] .sge-perm-builder,
.sge-body[data-theme="dark"] .sge-perm-card,
.sge-body[data-theme="dark"] .sge-perm-toolbar,
.sge-body[data-theme="dark"] .sge-perm-list,
.sge-body[data-theme="dark"] .sge-perm-highlight-card {
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-perm-card-head strong,
.sge-body[data-theme="dark"] .sge-form-section h6,
.sge-body[data-theme="dark"] .sge-perm-item .form-check-label,
.sge-body[data-theme="dark"] .sge-perm-highlight-head strong {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-perm-highlight-item.is-off {
  color: #9A9C9E !important;
}

.sge-body[data-theme="dark"] .sge-perm-highlight-item.is-on {
  color: #8FE3A5 !important;
}

.sge-body[data-theme="dark"] .sge-perm-highlight-icon {
  border-color: rgba(255, 158, 0, .35) !important;
  background: rgba(255, 158, 0, .14) !important;
  color: #FFC66D !important;
}

.sge-body[data-theme="dark"] .sge-perm-card-head {
  background: #21222c !important;
  border-bottom: 1px solid #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-perm-card-head strong {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-perm-card-head .js-perm-count {
  background: rgba(139, 233, 253, 0.16) !important;
  color: #f8f8f2 !important;
  border-color: rgba(139, 233, 253, 0.28) !important;
}

.sge-body[data-theme="dark"] .sge-perm-total-badge {
  border-color: rgba(80, 250, 123, 0.4) !important;
  background: rgba(80, 250, 123, 0.16) !important;
  color: #f8f8f2 !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.sge-body[data-theme="dark"] .sge-perm-toolbar small {
  color: #DBDAD9 !important;
}

/* Perfis: Novo perfil (modal) no tema escuro */
.sge-body[data-theme="dark"] #modalNewProfile .sge-modal-body {
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .sge-form-section {
  background: #282a36 !important;
  border: 1px solid rgba(139, 233, 253, 0.18) !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .sge-form-section h6,
.sge-body[data-theme="dark"] #modalNewProfile .sge-modal-titles .modal-title,
.sge-body[data-theme="dark"] #modalNewProfile .sge-modal-sub,
.sge-body[data-theme="dark"] #modalNewProfile .form-label,
.sge-body[data-theme="dark"] #modalNewProfile .form-check-label,
.sge-body[data-theme="dark"] #modalNewProfile .sge-perm-item .form-check-label,
.sge-body[data-theme="dark"] #modalNewProfile .sge-perm-card-head strong,
.sge-body[data-theme="dark"] #modalNewProfile .sge-perm-toolbar small {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .form-control,
.sge-body[data-theme="dark"] #modalNewProfile .form-select {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .form-control:focus,
.sge-body[data-theme="dark"] #modalNewProfile .form-select:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .sge-perm-builder,
.sge-body[data-theme="dark"] #modalNewProfile .sge-perm-card,
.sge-body[data-theme="dark"] #modalNewProfile .sge-perm-list {
  background: #21222c !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .btn-outline-secondary {
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .btn-outline-secondary:hover {
  color: #f8f8f2 !important;
  border-color: #8be9fd !important;
  background: #282a36 !important;
}

.sge-body[data-theme="dark"] #modalNewProfile .btn-close {
  filter: invert(1) grayscale(100%) brightness(1.25);
  opacity: 0.92;
}

/* Perfis: Editar perfil (página de permissões) no tema escuro */
.sge-body[data-theme="dark"] #profilePermissionsForm .sge-form-section {
  background: #282a36 !important;
  border: 1px solid rgba(139, 233, 253, 0.18) !important;
  box-shadow: none !important;
}

.sge-body[data-theme="dark"] #profilePermissionsForm .sge-form-section h6,
.sge-body[data-theme="dark"] #profilePermissionsForm .form-label,
.sge-body[data-theme="dark"] #profilePermissionsForm .form-check-label,
.sge-body[data-theme="dark"] #profilePermissionsForm .sge-perm-item .form-check-label,
.sge-body[data-theme="dark"] #profilePermissionsForm .sge-perm-card-head strong {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] #profilePermissionsForm .form-control,
.sge-body[data-theme="dark"] #profilePermissionsForm .form-select {
  background: #1e1f29 !important;
  color: #f8f8f2 !important;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] #profilePermissionsForm .form-control:focus,
.sge-body[data-theme="dark"] #profilePermissionsForm .form-select:focus {
  border-color: #8be9fd !important;
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.22) !important;
}

.sge-body[data-theme="dark"] #profilePermissionsForm .btn-outline-secondary {
  color: #DBDAD9 !important;
  border-color: #3b3b3b !important;
  background: #21222c !important;
}

.sge-body[data-theme="dark"] #profilePermissionsForm .btn-outline-secondary:hover {
  color: #f8f8f2 !important;
  border-color: #8be9fd !important;
  background: #282a36 !important;
}

/* ==========================| USUÁRIOS (LISTA/MODAIS) - Fim |========================== */

/* ==========================| SIDEBAR - Início |========================== */
/* Estrutura principal da barra lateral */
.sge-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 312px;
  min-width: 0;
}

.sge-nav-dashboard-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sge-nav-dashboard-row .sge-nav-item {
  flex: 1 1 auto;
}

.sge-nav-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sge-nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sge-chevron {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.8;
  transition: transform .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sge-chevron i {
  font-size: 12px;
  line-height: 1;
}

.sge-nav-group.open .sge-chevron {
  transform: rotate(180deg);
}

.sge-nav-group.open .sge-submenu {
  display: block;
}

.sge-submenu .sge-subitem+.sge-subitem {
  border-top: 0;
}

.sge-sidebar a {
  text-decoration: none !important;
}

@media (max-width: 992px) {
  .sge-topbar {
    padding: 0 12px;
  }

  .sge-topbar-inner {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 6px;
  }

  .sge-mobile-menu-btn {
    display: inline-flex;
    justify-self: start;
    z-index: 1225;
  }

  .sge-brand {
    justify-self: center;
    max-width: 100%;
  }

  .sge-brand-text {
    display: none;
  }

  .sge-topbar-actions {
    display: none;
  }

  .sge-sidebar {
    position: fixed;
    top: 59px;
    left: 0;
    transform: translateX(-108%);
    width: 312px;
    height: calc(100vh - 59px);
    overflow-y: auto;
    z-index: 1215;
    transition: transform 0.2s ease;
  }

  .sge-main {
    margin-left: 0 !important;
  }

  .sge-body.sge-mobile-sidebar-open .sge-sidebar {
    transform: translateX(0);
  }

  .sge-mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    top: 59px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1210;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .sge-body.sge-mobile-sidebar-open .sge-mobile-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.sge-sidebar-mobile-actions {
  display: none;
}

@media (max-width: 992px) {
  .sge-sidebar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 10px;
    padding: 6px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sge-sidebar-mobile-actions .dropdown {
    flex: 1 1 0;
  }

  .sge-sidebar-mobile-actions .sge-icon-menu,
  .sge-sidebar-mobile-actions .sge-user-menu {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .sge-status-hub-grid,
  .sge-teaching-status-hub,
  .sge-teaching-status-hub--form,
  .sge-enrollments-stats-primary,
  .sge-kpi-context,
  .sge-enrollments-kpi-context {
    display: none !important;
  }

  .sge-toolbar-form,
  .sge-toolbar-form--sales .sge-sales-toolbar-row--primary,
  .sge-toolbar-form--sales .sge-sales-toolbar-row--secondary,
  .sge-toolbar-form--enrollments .sge-enrollments-toolbar-row,
  .sge-toolbar-form--users,
  .sge-toolbar-form--audit-users,
  .sge-toolbar-form--audit-credits {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .sge-toolbar .sge-search,
  .sge-toolbar .sge-select,
  .sge-toolbar .form-control {
    width: 100%;
    min-width: 0;
  }

  .sge-table-card .table-responsive,
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .sge-table-card .sge-table,
  .sge-table {
    min-width: 920px;
  }
}

/* ==========================| SIDEBAR - COMPORTAMENTO (COLLAPSED) |========================== */
.sge-sidebar-collapse-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.sge-sidebar-collapse-btn:hover {
  background: linear-gradient(180deg, rgba(255, 158, 0, 0.38), rgba(255, 158, 0, 0.2));
  border-color: rgba(255, 158, 0, 0.72);
  box-shadow: 0 10px 20px rgba(255, 158, 0, 0.28);
  transform: translateY(-1px);
}

.sge-subitem-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  flex: 0 0 auto;
}

.sge-subitem.active .sge-subitem-icon {
  background: rgba(255, 158, 0, 0.2);
  color: #ffd182;
}

.sge-subitem-text {
  display: inline-block;
}

.sge-shell.sidebar-collapsed .sge-sidebar {
  width: 92px;
  padding-left: 8px;
  padding-right: 8px;
}

.sge-shell.sidebar-collapsed .sge-main {
  margin-left: 92px;
}

.sge-shell.sidebar-collapsed .sge-nav-label,
.sge-shell.sidebar-collapsed .sge-nav-toggle-label span:last-child,
.sge-shell.sidebar-collapsed .sge-subitem-text,
.sge-shell.sidebar-collapsed .sge-chevron {
  display: none;
}

.sge-shell.sidebar-collapsed .sge-sidebar-welcome {
  display: none;
}

.sge-shell.sidebar-collapsed .sge-sidebar-collapse-btn {
  width: 36px;
  height: 36px;
}

.sge-shell.sidebar-collapsed .sge-nav-item,
.sge-shell.sidebar-collapsed .sge-nav-toggle {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sge-shell.sidebar-collapsed .sge-nav-dashboard-row {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sge-shell.sidebar-collapsed .sge-nav-dashboard-row .sge-nav-item {
  flex: 0 0 auto;
  width: 40px;
}

.sge-shell.sidebar-collapsed .sge-nav-dashboard-row .sge-sidebar-collapse-btn {
  order: -1;
}

.sge-shell.sidebar-collapsed .sge-nav-item-icon {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.sge-shell.sidebar-collapsed .sge-submenu,
.sge-shell.sidebar-collapsed .sge-nav-group.open .sge-submenu {
  display: none !important;
}

@media (max-width: 992px) {
  .sge-shell.sidebar-collapsed .sge-main {
    margin-left: 0;
  }
}

/* ==========================| SIDEBAR - DARK |========================== */

.sge-body[data-theme="dark"] .sge-sidebar-collapse-btn {
  border-color: rgba(139, 233, 253, 0.28);
  background: linear-gradient(180deg, rgba(139, 233, 253, 0.2), rgba(139, 233, 253, 0.06));
  color: #8be9fd;
}

.sge-body[data-theme="dark"] .sge-sidebar-collapse-btn:hover {
  border-color: rgba(255, 184, 108, 0.58);
  background: linear-gradient(180deg, rgba(255, 184, 108, 0.34), rgba(255, 184, 108, 0.16));
  color: #ffd6a1;
}

.sge-body[data-theme="dark"] .sge-nav-item,
.sge-body[data-theme="dark"] .sge-nav-toggle,
.sge-body[data-theme="dark"] .sge-subitem,
.sge-body[data-theme="dark"] .sge-nav-label,
.sge-body[data-theme="dark"] .sge-nav-toggle-label span:last-child {
  color: #dbe4ee;
}

.sge-body[data-theme="dark"] .sge-nav-item:hover,
.sge-body[data-theme="dark"] .sge-nav-toggle:hover,
.sge-body[data-theme="dark"] .sge-subitem:hover {
  background: rgba(255, 184, 108, 0.08);
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-nav-item.active {
  background: linear-gradient(180deg, rgba(255, 184, 108, 0.22), rgba(255, 184, 108, 0.08));
  border-color: rgba(255, 184, 108, 0.28);
}

.sge-body[data-theme="dark"] .sge-submenu::before {
  background: linear-gradient(180deg, rgba(255, 184, 108, 0.32), rgba(255, 255, 255, 0.02));
}

.sge-body[data-theme="dark"] .sge-nav-item-icon,
.sge-body[data-theme="dark"] .sge-subitem-icon {
  background: linear-gradient(180deg, rgba(255, 184, 108, 0.14), rgba(255, 184, 108, 0.04));
  color: #fed7aa;
}

.sge-body[data-theme="dark"] .sge-sidebar-footer {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

/* ==========================| DARK - CONFIG/PERFIL/AUDITORIA/PAGINACAO |========================== */
/* Padrao dark para telas operacionais que misturam cards, tabelas e formularios. */
.sge-body[data-theme="dark"] .sge-pagination-hero-title,
.sge-body[data-theme="dark"] .sge-pagination-group-title,
.sge-body[data-theme="dark"] .sge-pagination-item-label,
.sge-body[data-theme="dark"] .sge-perm-card-head,
.sge-body[data-theme="dark"] .sge-perm-card-title,
.sge-body[data-theme="dark"] .sge-audit-title,
.sge-body[data-theme="dark"] .sge-audit-table th {
  color: #f8f8f2 !important;
}

.sge-body[data-theme="dark"] .sge-pagination-hero-sub,
.sge-body[data-theme="dark"] .sge-pagination-group-meta,
.sge-body[data-theme="dark"] .sge-pagination-item-note,
.sge-body[data-theme="dark"] .sge-audit-table td,
.sge-body[data-theme="dark"] .sge-audit-table .text-muted {
  color: #bdc3c7 !important;
}

.sge-body[data-theme="dark"] .sge-pagination-item,
.sge-body[data-theme="dark"] .sge-perm-card,
.sge-body[data-theme="dark"] .sge-audit-table-wrap,
.sge-body[data-theme="dark"] .sge-settings-panel {
  background: #21222c;
  border-color: #3b3b3b !important;
}

.sge-body[data-theme="dark"] .sge-content .form-control,
.sge-body[data-theme="dark"] .sge-content .form-select,
.sge-body[data-theme="dark"] .sge-content textarea {
  background: #1f2230;
  border-color: #3b3b3b;
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-content .form-control::placeholder,
.sge-body[data-theme="dark"] .sge-content textarea::placeholder {
  color: #f8f8f2;
  opacity: 0.72;
}

.sge-body[data-theme="dark"] .sge-content .form-control:focus,
.sge-body[data-theme="dark"] .sge-content .form-select:focus,
.sge-body[data-theme="dark"] .sge-content textarea:focus {
  border-color: #8be9fd;
  box-shadow: 0 0 0 0.2rem rgba(139, 233, 253, 0.18);
}

/* ==========================| SIDEBAR - Fim |========================== */

/* ==========================| RELATORIOS - ABAS DE VISUALIZACAO |========================== */
.sge-report-tabs {
  --sge-tab-text: #5b6670;
  --sge-tab-text-hover: #2f3e41;
  --sge-tab-bg: rgba(244, 247, 249, 0.68);
  --sge-tab-border: rgba(47, 62, 65, 0.16);
  --sge-tab-active-bg: rgba(255, 255, 255, 0.78);
  --sge-tab-active-border: rgba(47, 62, 65, 0.22);
  --sge-tab-active-text: #2f3e41;
  border: 1px solid var(--sge-tab-border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, var(--sge-tab-bg) 100%);
  border-radius: 16px;
  padding: 7px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 30px -24px rgba(23, 42, 58, 0.58);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.sge-report-tabs .nav-item {
  margin: 0;
}

.sge-report-tab {
  border: 1px solid transparent;
  color: var(--sge-tab-text);
  font-weight: 700;
  border-radius: 11px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  background: transparent;
  text-decoration: none;
  transition: all 0.18s ease;
}

.sge-report-tab:hover {
  color: var(--sge-tab-text-hover);
  background: rgba(255, 255, 255, 0.44);
  border-color: var(--sge-tab-border);
  transform: translateY(-1px) scale(1.01);
}

.sge-report-tab.is-active {
  color: var(--sge-tab-active-text);
  background: var(--sge-tab-active-bg);
  border-color: var(--sge-tab-active-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 22px -15px rgba(23, 42, 58, 0.75);
}

.sge-report-tabs .nav-link {
  border: 1px solid transparent !important;
  color: var(--sge-tab-text);
  font-weight: 600;
  border-radius: 11px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.18s ease;
}

.sge-report-tabs .nav-link:hover {
  color: var(--sge-tab-text-hover);
  background: rgba(255, 255, 255, 0.44);
  border-color: var(--sge-tab-border) !important;
  transform: translateY(-1px) scale(1.01);
}

.sge-report-tabs .nav-link.active {
  color: var(--sge-tab-active-text) !important;
  background: var(--sge-tab-active-bg);
  border-color: var(--sge-tab-active-border) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 22px -15px rgba(23, 42, 58, 0.75);
}

.sge-body[data-theme="dark"] .sge-report-tabs {
  --sge-tab-text: #8be9fd;
  --sge-tab-text-hover: #f8f8f2;
  --sge-tab-bg: rgba(36, 38, 49, 0.72);
  --sge-tab-border: rgba(139, 233, 253, 0.22);
  --sge-tab-active-bg: rgba(40, 42, 54, 0.84);
  --sge-tab-active-border: rgba(139, 233, 253, 0.34);
  --sge-tab-active-text: #f8f8f2;
  background:
    linear-gradient(160deg, rgba(68, 71, 90, 0.62) 0%, rgba(36, 38, 49, 0.76) 100%);
  box-shadow:
    inset 0 1px 0 rgba(248, 248, 242, 0.09),
    0 20px 34px -26px rgba(0, 0, 0, 0.92);
}

.sge-body[data-theme="dark"] .sge-report-tabs .nav-link {
  color: var(--sge-tab-text);
}

.sge-body[data-theme="dark"] .sge-report-tab {
  color: var(--sge-tab-text);
}

.sge-body[data-theme="dark"] .sge-report-tab:hover {
  color: var(--sge-tab-text-hover);
  background: rgba(139, 233, 253, 0.11);
  border-color: var(--sge-tab-border);
}

.sge-body[data-theme="dark"] .sge-report-tab.is-active {
  color: var(--sge-tab-active-text);
  background: var(--sge-tab-active-bg);
  border-color: var(--sge-tab-active-border);
  box-shadow:
    inset 0 1px 0 rgba(248, 248, 242, 0.16),
    0 12px 24px -16px rgba(139, 233, 253, 0.42);
}

.sge-body[data-theme="dark"] .sge-report-tabs .nav-link:hover {
  color: var(--sge-tab-text-hover);
  background: rgba(139, 233, 253, 0.11);
  border-color: var(--sge-tab-border) !important;
}

.sge-body[data-theme="dark"] .sge-report-tabs .nav-link.active {
  color: var(--sge-tab-active-text) !important;
  background: var(--sge-tab-active-bg);
  border-color: var(--sge-tab-active-border) !important;
  box-shadow:
    inset 0 1px 0 rgba(248, 248, 242, 0.16),
    0 12px 24px -16px rgba(139, 233, 253, 0.42);
}

@media (max-width: 768px) {
  .sge-report-tabs {
    width: 100%;
    display: flex;
  }

  .sge-report-tabs .nav-item {
    flex: 1;
  }

  .sge-report-tabs .nav-link {
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
  }

  .sge-report-tab {
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ==========================| LOGIN - Início |========================== */
/* Estrutura geral da tela de login */
.sge-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 520px at -8% -16%, rgba(255, 158, 0, 0.20), transparent 52%),
    radial-gradient(980px 420px at 112% 118%, rgba(47, 62, 65, 0.16), transparent 56%),
    #f3f5f7;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
}

.sge-login-shell {
  width: min(1120px, 100%);
  min-height: min(680px, calc(100vh - 40px));
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 34px 80px -42px rgba(15, 23, 42, 0.50);
  animation: phdLoginFadeIn 420ms ease-out;
}

.sge-login-bg-orb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.sge-login-bg-orb.is-one {
  width: 340px;
  height: 340px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 158, 0, 0.22) 0%, rgba(255, 158, 0, 0) 70%);
}

.sge-login-bg-orb.is-two {
  width: 300px;
  height: 300px;
  bottom: -160px;
  left: 46%;
  background: radial-gradient(circle, rgba(52, 73, 94, 0.20) 0%, rgba(52, 73, 94, 0) 72%);
}

/* Painel de destaque */
.sge-login-hero {
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #34495E 0%, #2B3F53 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.sge-login-hero-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-size: 12px;
  font-weight: 600;
}

.sge-login-hero-title {
  margin: 4px 0 0;
  font-family: 'PHDSecondary', sans-serif;
  letter-spacing: 1.6px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1;
}

.sge-login-hero-subtitle {
  margin: -2px 0 0;
  color: #ffb341;
  letter-spacing: 0.8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.sge-login-hero-text {
  margin: 8px 0 0;
  color: rgba(248, 250, 252, 0.84);
  max-width: 48ch;
  line-height: 1.55;
}

.sge-login-hero-metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sge-login-metric {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: grid;
  gap: 2px;
}

.sge-login-metric-number {
  font-weight: 800;
  font-size: 15px;
}

.sge-login-metric-label {
  color: rgba(248, 250, 252, 0.78);
  font-size: 12px;
}

/* Painel do formulário */
.sge-login-panel {
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sge-login-panel-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  color: #1f2937;
}

.sge-login-panel-head p {
  margin: 8px 0 0;
  color: #667085;
}

.sge-login-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  animation: phdLoginSlideUp 360ms ease-out 80ms both;
}

.sge-login-field .form-label {
  margin-bottom: 7px;
  font-weight: 600;
  color: #334155;
}

.sge-login-input-wrap {
  position: relative;
}

.sge-login-input-wrap>i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
}

.sge-login-input-wrap .form-control {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d6dbe2;
  padding-left: 38px;
  padding-right: 40px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.sge-login-input-wrap .form-control:focus {
  border-color: rgba(255, 158, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.16);
}

.sge-login-toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sge-login-toggle-pass:hover {
  background: #f1f5f9;
  color: #334155;
}

.sge-login-feedback {
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(254, 226, 226, 0.7);
  color: #b91c1c;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.sge-login-submit {
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.sge-login-submit-content,
.sge-login-submit-loading {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  grid-area: 1/1;
  transition: opacity .16s ease, transform .16s ease;
}

.sge-login-submit-loading {
  opacity: 0;
  transform: translateY(4px);
}

.sge-login-submit.is-loading .sge-login-submit-content {
  opacity: 0;
  transform: translateY(-4px);
}

.sge-login-submit.is-loading .sge-login-submit-loading {
  opacity: 1;
  transform: translateY(0);
}

.sge-login-submit.is-loading {
  pointer-events: none;
  filter: saturate(0.9);
}

.sge-login-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s ease;
}

.sge-login-theme-toggle:hover {
  background: #fff;
  border-color: rgba(255, 158, 0, 0.55);
  color: #1e293b;
}

@keyframes phdLoginFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phdLoginSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade login */
@media (max-width: 992px) {
  .sge-login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sge-login-hero {
    min-height: 300px;
  }

  .sge-login-hero-metrics {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .sge-login-body {
    padding: 10px;
  }

  .sge-login-shell {
    border-radius: 16px;
  }

  .sge-login-hero {
    padding: 18px;
  }

  .sge-login-panel {
    padding: 18px;
  }

  .sge-login-theme-toggle span {
    display: none;
  }
}

/* ==========================| LOGIN - DARK |========================== */
/* Ajustes do login para tema escuro */
.sge-body[data-theme="dark"].sge-login-body {
  background:
    radial-gradient(1300px 580px at -8% -16%, rgba(189, 147, 249, 0.20), transparent 52%),
    radial-gradient(980px 440px at 112% 118%, rgba(80, 250, 123, 0.12), transparent 56%),
    #1b1d27;
}

.sge-body[data-theme="dark"] .sge-login-shell {
  background: rgba(33, 34, 44, 0.95);
  border-color: rgba(139, 233, 253, 0.16);
  box-shadow: 0 34px 86px -44px rgba(0, 0, 0, 0.82);
}

.sge-body[data-theme="dark"] .sge-login-bg-orb.is-one {
  background: radial-gradient(circle, rgba(189, 147, 249, 0.22) 0%, rgba(189, 147, 249, 0) 70%);
}

.sge-body[data-theme="dark"] .sge-login-bg-orb.is-two {
  background: radial-gradient(circle, rgba(139, 233, 253, 0.18) 0%, rgba(139, 233, 253, 0) 72%);
}

.sge-body[data-theme="dark"] .sge-login-hero {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #282a36 0%, #21222c 100%);
}

.sge-body[data-theme="dark"] .sge-login-panel {
  background: #21222c;
}

.sge-body[data-theme="dark"] .sge-login-panel-head h2,
.sge-body[data-theme="dark"] .sge-login-field .form-label {
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-login-panel-head p {
  color: #9aa0b3;
}

.sge-body[data-theme="dark"] .sge-login-input-wrap>i,
.sge-body[data-theme="dark"] .sge-login-toggle-pass {
  color: #8be9fd;
}

.sge-body[data-theme="dark"] .sge-login-toggle-pass:hover {
  background: rgba(139, 233, 253, 0.10);
  color: #c9f4ff;
}

.sge-body[data-theme="dark"] .sge-login-input-wrap .form-control {
  background: #282a36;
  border-color: #3b3b3b;
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-login-input-wrap .form-control::placeholder {
  color: #9ca3af;
}

.sge-body[data-theme="dark"] .sge-login-input-wrap .form-control:focus {
  border-color: rgba(139, 233, 253, 0.72);
  box-shadow: 0 0 0 3px rgba(139, 233, 253, 0.22);
}

.sge-body[data-theme="dark"] .sge-login-feedback {
  background: rgba(255, 85, 85, 0.16);
  border-color: rgba(255, 85, 85, 0.34);
  color: #ffd0d0;
}

.sge-body[data-theme="dark"] .sge-login-theme-toggle {
  background: rgba(40, 42, 54, 0.88);
  border-color: rgba(139, 233, 253, 0.32);
  color: #8be9fd;
}

.sge-body[data-theme="dark"] .sge-login-theme-toggle:hover {
  background: rgba(40, 42, 54, 0.98);
  border-color: rgba(255, 184, 108, 0.72);
  color: #ffb86c;
}

/* ==========================| LOGIN - Fim |========================== */
/* ==========================| EDUCACAO MODULO - Inicio |========================== */
/* Navegacao interna premium do modulo Educacao. */
.sge-edu-tabs {
  padding: 10px;
  border-radius: 14px;
}

.sge-edu-tabs .sge-report-tab {
  min-width: 148px;
}

/* Painel central da tela de configuracoes da Educacao. */
.sge-education-settings-hero .sge-education-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sge-education-settings-links .sge-education-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.sge-education-settings-links .sge-education-link-item.is-disabled {
  opacity: 0.76;
}

.sge-education-link-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  flex: 0 0 auto;
}

.sge-education-link-title {
  font-weight: 700;
  color: #1f2937;
}

.sge-education-link-sub {
  font-size: 12px;
  color: #6b7280;
}

.sge-education-link-content {
  min-width: 0;
  flex: 1 1 auto;
}

.sge-body[data-theme="dark"] .sge-education-settings-links .sge-education-link-item {
  background: #21222c;
  border-color: #3b3b3b;
}

.sge-body[data-theme="dark"] .sge-education-link-icon {
  background: rgba(139, 233, 253, 0.14);
  color: #8be9fd;
}

.sge-body[data-theme="dark"] .sge-education-link-title {
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-education-link-sub {
  color: #bdc2d0;
}

@media (max-width: 768px) {
  .sge-education-settings-hero .sge-education-settings-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sge-edu-tabs .sge-report-tab {
    min-width: 132px;
  }
}

/* ==========================| EDUCACAO MODULO - Fim |========================== */

/* ==========================| STATUS HUB - INICIO (PREMIUM) |========================== */
/* Mantém a estrutura/funcionalidade; melhora estética (profundidade, highlights, microinterações, acessibilidade) */

.sge-status-hub-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  /* +respiro */
}

/* Base: tokens locais (sem depender de variáveis globais) */
.sge-status-hub-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;

  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 16px;
  min-height: 172px;

  /* “Premium depth”: sombra em camadas */
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);

  /* Interação suave */
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background-color .16s ease,
    background-image .16s ease;
  position: relative;
  overflow: hidden;
  outline: none;
}

/* Sheen sutil (sem mudar layout) */
.sge-status-hub-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
  background:
    radial-gradient(600px 200px at 20% 0%,
      rgba(255, 158, 0, 0.18) 0%,
      rgba(255, 158, 0, 0.00) 60%),
    radial-gradient(420px 220px at 100% 20%,
      rgba(56, 189, 248, 0.12) 0%,
      rgba(56, 189, 248, 0.00) 55%);
}

.sge-status-hub-card:hover,
.sge-status-hub-card:focus-visible {
  text-decoration: none !important;
  color: inherit !important;

  border-color: rgba(255, 158, 0, 0.46);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.12),
    0 6px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.sge-status-hub-card:hover::before,
.sge-status-hub-card:focus-visible::before {
  opacity: 1;
}

/* Estado ativo mais “caro”: borda + fundo com leve gradiente */
.sge-status-hub-card.is-active {
  border-color: rgba(255, 158, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 158, 0, 0.10) 0%, rgba(255, 158, 0, 0.04) 100%);
}

/* Barra de destaque no topo quando ativo (sutil e premium) */
.sge-status-hub-card.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(255, 158, 0, 0.95),
      rgba(255, 200, 120, 0.80),
      rgba(56, 189, 248, 0.55));
  opacity: .9;
  pointer-events: none;
}

.sge-status-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sge-status-hub-title {
  margin: 0;
  font-size: 24px;
  /* levemente mais equilibrado */
  font-weight: 750;
  /* aparência mais “premium” quando disponível */
  color: #1f2f3a;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

/* Ícone com “glass” e borda leve */
.sge-status-hub-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(52, 73, 94, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(52, 73, 94, 0.92);
  flex: 0 0 auto;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.sge-status-hub-card:hover .sge-status-hub-icon,
.sge-status-hub-card:focus-visible .sge-status-hub-icon {
  transform: translateY(-1px) scale(1.02);
  background: rgba(255, 158, 0, 0.10);
  border-color: rgba(255, 158, 0, 0.22);
}

.sge-status-hub-icon i {
  font-size: 15px;
}

.sge-status-hub-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  /* mais legível */
  color: rgba(52, 73, 94, 0.84);
  min-height: 52px;
}

/* Chips com leve brilho e microinteração */
.sge-status-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sge-status-hub-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;

  border: 0;
  background: transparent;
  font-size: 11px;
  color: rgba(52, 73, 94, 0.88);
  white-space: nowrap;

  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}

.sge-status-hub-card:hover .sge-status-hub-chip {
  border-color: rgba(255, 158, 0, 0.18);
}

.sge-status-hub-chip:hover {
  transform: translateY(-1px);
}

/* ==========================| STATUS HUB COMPACTO PADRÃO |========================== */

/* ==========================================================================
   ETAPA 4 - Classes utilitárias extraídas de estilos inline recorrentes
   ========================================================================== */

.sge-toast-stack {
  z-index: 2000;
}

.sge-bulk-action-select {
  width: 190px;
}

.sge-check-col {
  width: 42px;
}

.sge-report-picker-shell {
  min-width: 520px;
  max-width: 760px;
}

.sge-report-picker-list {
  z-index: 1050;
  max-height: 220px;
  overflow-y: auto;
}

.sge-progress-bar-zero {
  width: 0%;
}
.sge-status-hub-grid--compact .sge-status-hub-card,
.sge-status-hub-card--compact {
  padding: 10px 12px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.sge-status-hub-grid--compact .sge-status-hub-head,
.sge-status-hub-card--compact .sge-status-hub-head {
  margin-bottom: 6px;
}

.sge-status-hub-grid--compact .sge-status-hub-title,
.sge-status-hub-card--compact .sge-status-hub-title {
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0;
}

.sge-status-hub-grid--compact .sge-status-hub-icon,
.sge-status-hub-card--compact .sge-status-hub-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.sge-status-hub-grid--compact .sge-status-hub-icon i,
.sge-status-hub-card--compact .sge-status-hub-icon i {
  font-size: 13px;
}

.sge-status-hub-grid--compact .sge-status-hub-chips,
.sge-status-hub-card--compact .sge-status-hub-chips {
  gap: 6px;
  margin-top: auto;
  justify-content: flex-start;
}

.sge-status-hub-grid--compact .sge-status-hub-chip,
.sge-status-hub-card--compact .sge-status-hub-chip {
  height: 20px;
  padding: 0 8px;
  font-size: 20px;
  font-weight: 800;
}

/* Responsivo */
@media (max-width: 1400px) {
  .sge-status-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .sge-status-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sge-status-hub-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion reduce (acessibilidade) */
@media (prefers-reduced-motion: reduce) {

  .sge-status-hub-card,
  .sge-status-hub-icon,
  .sge-status-hub-chip {
    transition: none !important;
    transform: none !important;
  }
}

/* ========================== DARK THEME ========================== */
.sge-body[data-theme="dark"] .sge-status-hub-card {
  border-color: rgba(139, 233, 253, 0.20);
  background: linear-gradient(180deg, rgba(40, 42, 54, 1) 0%, rgba(34, 36, 48, 1) 100%);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.40),
    0 6px 16px rgba(0, 0, 0, 0.22);
}

.sge-body[data-theme="dark"] .sge-status-hub-card::before {
  background:
    radial-gradient(700px 240px at 15% 0%,
      rgba(245, 157, 21, 0.22) 0%,
      rgba(245, 157, 21, 0.00) 60%),
    radial-gradient(520px 260px at 100% 18%,
      rgba(139, 233, 253, 0.18) 0%,
      rgba(139, 233, 253, 0.00) 55%);
}

.sge-body[data-theme="dark"] .sge-status-hub-card:hover,
.sge-body[data-theme="dark"] .sge-status-hub-card:focus-visible {
  border-color: rgba(255, 184, 108, 0.52);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.52),
    0 10px 26px rgba(0, 0, 0, 0.28);
}

.sge-body[data-theme="dark"] .sge-status-hub-card.is-active {
  border-color: rgba(245, 157, 21, 0.58);
  background: linear-gradient(180deg, rgba(245, 157, 21, 0.18) 0%, rgba(40, 42, 54, 1) 80%);
}

.sge-body[data-theme="dark"] .sge-status-hub-title {
  color: #f8f8f2;
}

.sge-body[data-theme="dark"] .sge-status-hub-desc {
  color: rgba(210, 220, 235, 0.92);
}

.sge-body[data-theme="dark"] .sge-status-hub-icon {
  background: rgba(139, 233, 253, 0.12);
  border-color: rgba(139, 233, 253, 0.18);
  color: #8be9fd;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.sge-body[data-theme="dark"] .sge-status-hub-card:hover .sge-status-hub-icon,
.sge-body[data-theme="dark"] .sge-status-hub-card:focus-visible .sge-status-hub-icon {
  background: rgba(245, 157, 21, 0.14);
  border-color: rgba(245, 157, 21, 0.26);
}

.sge-body[data-theme="dark"] .sge-status-hub-chip {
  border-color: rgba(139, 233, 253, 0.22);
  background: transparent;
  color: #e9f4ff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* ==========================| STATUS HUB - FIM (PREMIUM) |========================== */




/* ==========================================================================
   ENSINO > CADASTRAR ENSINO (premium form page)
   ========================================================================== */
.sge-teaching-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.4rem 1.5rem;
  border: 1px solid #e5edf5;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 84, 140, 0.10), transparent 40%),
    linear-gradient(90deg, rgba(239, 175, 67, 0.08), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f7fafd 58%, #eef4f9 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.sge-teaching-hero-copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.sge-teaching-hero-title {
  margin: 0;
  color: #203548;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.8rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.sge-teaching-hero-text {
  max-width: 64ch;
  color: #5b6c7d;
  font-size: 0.95rem;
  line-height: 1.65;
}

.sge-teaching-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.sge-teaching-hero-side {
  display: grid;
  gap: 0.9rem;
  align-content: center;
  justify-items: end;
}

.sge-teaching-hero-total {
  min-width: 190px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 175, 67, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.sge-teaching-hero-total small {
  display: block;
  color: #6b7b8c;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sge-teaching-hero-total strong {
  display: block;
  color: #203548;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sge-teaching-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.sge-teaching-overview-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.78rem 0.82rem 0.72rem;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.sge-teaching-overview-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.sge-teaching-overview-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff6e7;
  color: #c78212;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.sge-teaching-overview-card small {
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.sge-teaching-overview-card strong {
  color: #223447;
  font-size: 0.92rem;
  line-height: 1.35;
}

.sge-teaching-create-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(240, 174, 42, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(240, 174, 42, 0.14) 0%, rgba(240, 174, 42, 0) 55%),
    linear-gradient(140deg, #ffffff 0%, #fffaf2 100%);
}

.sge-teaching-create-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(240, 174, 42, 0.15);
  color: #7a4f00;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sge-teaching-create-title {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1b2a3a;
}

.sge-teaching-create-subtitle {
  margin: 0;
  max-width: 70ch;
  color: #526171;
  font-size: 0.9rem;
  line-height: 1.45;
}

.sge-teaching-create-section {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  overflow: visible;
  box-shadow: 0 10px 26px -20px rgba(15, 23, 42, 0.3);
}

.sge-teaching-tab-panel,
.sge-teaching-tab-panel .card-body,
.sge-teaching-tabs-shell {
  overflow: visible;
}

.sge-teaching-create-section-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(240, 174, 42, 0.1) 0%, rgba(240, 174, 42, 0.03) 100%);
  color: #1f2d3b;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.sge-teaching-create-section-head i {
  color: #d38200;
}

.sge-teaching-create-form .form-label {
  font-weight: 700;
  color: #324252;
}

.sge-field-rule-hint {
  font-size: 0.72rem;
  color: #b36b00;
  font-weight: 600;
  line-height: 1;
}

.sge-teaching-create-form .form-control,
.sge-teaching-create-form .form-select {
  border-radius: 10px;
}

.sge-teaching-create-form .form-control:focus,
.sge-teaching-create-form .form-select:focus {
  border-color: rgba(240, 174, 42, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(240, 174, 42, 0.16);
}

.sge-teaching-create-form .form-control:disabled,
.sge-teaching-create-form .form-select:disabled {
  background: repeating-linear-gradient(-45deg,
      #f4f6f8 0,
      #f4f6f8 6px,
      #edf1f5 6px,
      #edf1f5 12px);
  border-color: #d3dbe4;
  border-style: dashed;
  color: #6b7d90;
  cursor: not-allowed;
  opacity: 1;
}

.sge-teaching-create-form .sge-multi-select.is-disabled .sge-multi-select-btn {
  background: repeating-linear-gradient(-45deg,
      #f4f6f8 0,
      #f4f6f8 6px,
      #edf1f5 6px,
      #edf1f5 12px);
  border-color: #d3dbe4;
  border-style: dashed;
  color: #6b7d90;
  cursor: not-allowed;
}

.sge-teaching-create-form .sge-multi-select.is-disabled .sge-multi-select-btn i {
  opacity: 0.5;
}

.sge-teaching-tab-panel .card-body {
  border-radius: inherit;
  /* background:
    radial-gradient(140% 120% at 100% 0%, rgba(239, 175, 67, 0.08) 0%, rgba(239, 175, 67, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%); */
  /* box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06); */
}

.sge-tab-grid>[class*="col-"] {
  position: relative;
}

.sge-tab-grid .form-label {
  font-size: 0.84rem;
  margin-bottom: 0.42rem;
  color: #25384c;
}

.sge-tab-grid .form-control-sm,
.sge-tab-grid .form-select-sm {
  min-height: 36px;
  border-radius: 10px;
}

.sge-tab-grid .form-text {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #60748a;
}

.sge-investment-grid .form-label {
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.sge-investment-grid .form-control-sm,
.sge-investment-grid .form-select-sm {
  min-height: 36px;
}

.sge-investment-grid .form-text {
  font-size: 0.75rem;
  line-height: 1.35;
}

.sge-payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  margin-top: 0.2rem;
}

.sge-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
  min-height: 56px;
}

.sge-payment-option .form-check-input {
  margin-top: 0;
  flex: 0 0 auto;
}

.sge-payment-option .form-check-label {
  font-size: 0.82rem;
  color: #304254;
  line-height: 1.35;
  white-space: normal;
}

.sge-payment-option:hover {
  border-color: rgba(239, 175, 67, 0.55);
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.45);
}

.sge-investment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #fffdf8;
}

.sge-description-grid #teachingPreviewTextBtn,
.sge-description-grid #teachingDescriptionTemplateBtn {
  min-height: 34px;
  border-radius: 9px;
}

.sge-description-grid .sge-desc-align-col .form-label {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
}

.sge-description-grid .sge-desc-align-col .form-control-sm,
.sge-description-grid .sge-desc-align-col .sge-multi-select-btn {
  min-height: 38px;
}

.sge-description-grid .sge-desc-align-col .form-text {
  min-height: 18px;
}

/* Ensino: limitar o dropdown do select à largura do campo evita corte na aba. */
.sge-teaching-tab-panel .sge-multi-select-menu {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sge-teaching-tab-panel .sge-multi-select-item {
  white-space: normal;
  align-items: flex-start;
}

/* Ensino: abas seguem a mesma linguagem de superfície aplicada no detalhe da demanda. */
.sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card),
.sge-form-block,
.sge-resource-block {
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card) .card-body,
.sge-form-block,
.sge-resource-block {
  padding: 0.95rem;
}

.sge-form-block-title,
.sge-resource-block-title,
.sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card) .card-body > .fw-semibold {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #203548;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sge-form-block-title i,
.sge-resource-block-title i,
.sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card) .card-body > .fw-semibold i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff6e7;
  color: #c78212;
  font-size: 0.88rem;
  flex: 0 0 auto;
}

.sge-responsible-grid .form-control-sm,
.sge-resources-grid .form-control-sm,
.sge-design-grid .form-control-sm,
.sge-seo-grid .form-control-sm {
  background-color: #fbfdff;
}

.sge-resource-check-grid .form-check {
  margin: 0;
  min-height: 1.6rem;
}

.sge-resource-check-grid .form-check-label {
  font-size: 0.86rem;
  color: #304759;
}

.sge-resource-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  background: #e8f8ee;
  color: #1b7f48;
  border: 1px solid #b8e8ca;
}

.sge-resource-badge.is-pending {
  background: #fff4e6;
  color: #a96400;
  border-color: #ffd39f;
}

.sge-investment-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sge-investment-summary-item small {
  color: #6b7d90;
  font-size: 0.74rem;
}

.sge-investment-summary-item strong {
  color: #223447;
  font-size: 0.9rem;
}

.sge-teaching-create-actions {
  position: sticky;
  bottom: 0.4rem;
  z-index: 5;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.sge-body[data-theme="dark"] .sge-teaching-create-intro {
  border-color: rgba(255, 184, 77, 0.28);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 184, 77, 0.2) 0%, rgba(255, 184, 77, 0) 55%),
    linear-gradient(140deg, rgba(27, 36, 49, 0.96) 0%, rgba(20, 27, 38, 0.98) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-hero,
.sge-body[data-theme="dark"] .sge-teaching-overview-card {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 38%),
    linear-gradient(90deg, rgba(239, 175, 67, 0.10), transparent 22%),
    linear-gradient(135deg, #0f172a 0%, #0f1a2a 58%, #132033 100%);
}


.sge-body[data-theme="dark"] .sge-teaching-hero-total {
  border-color: rgba(239, 175, 67, 0.18);
  background: rgba(15, 23, 42, 0.7);
}

.sge-body[data-theme="dark"] .sge-teaching-hero-title,
.sge-body[data-theme="dark"] .sge-teaching-hero-total strong,
.sge-body[data-theme="dark"] .sge-teaching-overview-card strong {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-teaching-hero-text,
.sge-body[data-theme="dark"] .sge-teaching-hero-total small,
.sge-body[data-theme="dark"] .sge-teaching-overview-card small {
  color: #94a3b8;
}

.sge-body[data-theme="dark"] .sge-teaching-overview-icon {
  background: rgba(239, 175, 67, 0.14);
  color: #ffd089;
}

.sge-body[data-theme="dark"] .sge-teaching-create-kicker {
  background: rgba(255, 184, 77, 0.2);
  color: #ffd48e;
}

.sge-body[data-theme="dark"] .sge-teaching-create-title {
  color: #f6f7fb;
}

.sge-body[data-theme="dark"] .sge-teaching-create-subtitle {
  color: rgba(213, 223, 240, 0.92);
}

.sge-body[data-theme="dark"] .sge-teaching-create-section {
  border-color: rgba(139, 233, 253, 0.22);
  background: rgba(17, 24, 36, 0.94);
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.65);
}

.sge-body[data-theme="dark"] .sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card),
.sge-body[data-theme="dark"] .sge-resource-block {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #0f172a 0%, #111c30 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card) .card-body > .fw-semibold,
.sge-body[data-theme="dark"] .sge-form-block-title,
.sge-body[data-theme="dark"] .sge-resource-block-title {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-teaching-tab-panel .card.sge-card:not(.sge-teaching-create-section):not(.sge-teaching-preview-card) .card-body > .fw-semibold i,
.sge-body[data-theme="dark"] .sge-form-block-title i,
.sge-body[data-theme="dark"] .sge-resource-block-title i {
  background: rgba(239, 175, 67, 0.14);
  color: #ffd089;
}

.sge-body[data-theme="dark"] .sge-resource-check-grid .form-check-label {
  color: #d3e1f3;
}

.sge-body[data-theme="dark"] .sge-resource-badge {
  background: rgba(27, 127, 72, 0.22);
  border-color: rgba(92, 201, 138, 0.4);
  color: #9be3bd;
}

.sge-body[data-theme="dark"] .sge-resource-badge.is-pending {
  background: rgba(169, 100, 0, 0.2);
  border-color: rgba(255, 191, 103, 0.45);
  color: #ffd7a0;
}

.sge-body[data-theme="dark"] .sge-teaching-tab-panel .card-body {
  border-radius: inherit;
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(255, 184, 77, 0.14) 0%, rgba(255, 184, 77, 0) 42%),
    linear-gradient(180deg, rgba(17, 24, 36, 0.96) 0%, rgba(14, 20, 31, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(139, 233, 253, 0.12);
}

.sge-body[data-theme="dark"] .sge-teaching-create-section-head {
  border-bottom-color: rgba(139, 233, 253, 0.2);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.2) 0%, rgba(255, 184, 77, 0.05) 100%);
  color: #f3f6fb;
}

.sge-body[data-theme="dark"] .sge-teaching-create-form .form-label {
  color: #dbe5f3;
}

.sge-body[data-theme="dark"] .sge-tab-grid .form-text {
  color: #9fb1c7;
}

.sge-body[data-theme="dark"] .sge-field-rule-hint {
  color: #ffd48e;
}

.sge-body[data-theme="dark"] .sge-teaching-create-form .form-control:disabled,
.sge-body[data-theme="dark"] .sge-teaching-create-form .form-select:disabled {
  background: repeating-linear-gradient(-45deg,
      rgba(41, 55, 74, 0.9) 0,
      rgba(41, 55, 74, 0.9) 6px,
      rgba(33, 45, 61, 0.95) 6px,
      rgba(33, 45, 61, 0.95) 12px);
  border-color: rgba(139, 233, 253, 0.28);
  color: #9cb0c8;
}

.sge-body[data-theme="dark"] .sge-teaching-create-form .sge-multi-select.is-disabled .sge-multi-select-btn {
  background: repeating-linear-gradient(-45deg,
      rgba(41, 55, 74, 0.9) 0,
      rgba(41, 55, 74, 0.9) 6px,
      rgba(33, 45, 61, 0.95) 6px,
      rgba(33, 45, 61, 0.95) 12px);
  border-color: rgba(139, 233, 253, 0.28);
  color: #9cb0c8;
}

.sge-body[data-theme="dark"] .sge-teaching-create-actions {
  border-color: rgba(139, 233, 253, 0.22);
  background: rgba(16, 22, 34, 0.88);
}

.sge-body[data-theme="dark"] .sge-investment-summary {
  background: rgba(24, 34, 48, 0.82);
  border-color: rgba(139, 233, 253, 0.22);
}

.sge-body[data-theme="dark"] .sge-investment-summary-item small {
  color: #9cb0c8;
}

.sge-body[data-theme="dark"] .sge-investment-summary-item strong {
  color: #eaf2ff;
}

.sge-body[data-theme="dark"] .sge-payment-option {
  background: linear-gradient(180deg, rgba(26, 36, 51, 0.95) 0%, rgba(21, 30, 44, 0.95) 100%);
  border-color: rgba(139, 233, 253, 0.22);
}

.sge-body[data-theme="dark"] .sge-payment-option .form-check-label {
  color: #dbe5f3;
}

.sge-body[data-theme="dark"] .sge-payment-option:hover {
  border-color: rgba(255, 184, 77, 0.5);
}

.sge-body[data-theme="dark"] .sge-responsible-grid .form-control-sm,
.sge-body[data-theme="dark"] .sge-resources-grid .form-control-sm,
.sge-body[data-theme="dark"] .sge-design-grid .form-control-sm,
.sge-body[data-theme="dark"] .sge-seo-grid .form-control-sm {
  background-color: rgba(24, 34, 48, 0.92);
}

@media (max-width: 991.98px) {
  .sge-teaching-hero {
    grid-template-columns: 1fr;
  }

  .sge-teaching-hero-side {
    justify-items: stretch;
  }

  .sge-teaching-hero-total {
    text-align: left;
  }

  .sge-teaching-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-teaching-create-intro {
    flex-direction: column;
  }

  .sge-payment-options {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .sge-investment-summary {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ENSINO > CADASTRAR ENSINO (wizard premium)
   ========================================================================== */
.sge-teaching-template-bar {
  border-radius: 12px;
}

.sge-teaching-template-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.1;
}

.sge-teaching-template-form>[class*="col-"] {
  display: flex;
  align-items: center;
}

.sge-teaching-template-form .form-control,
.sge-teaching-template-form .form-select {
  margin-bottom: 0 !important;
}

.sge-form-required-legend {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: #5a6c7f;
}

.sge-required-star {
  color: #d38200;
  font-weight: 800;
}

.sge-field-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .18rem;
}

.sge-char-count {
  font-size: .72rem;
  color: #6e7f93;
  display: inline-block;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.sge-help-btn {
  border: 0;
  background: transparent;
  color: #6f7f92;
  padding: 0;
  line-height: 1;
}

.sge-help-btn:hover {
  color: #d38200;
}

.sge-inline-clear-btn {
  padding: .12rem .5rem;
  font-size: .68rem;
  line-height: 1.2;
  border-radius: 999px;
  opacity: .88;
}

.sge-inline-clear-btn:hover {
  opacity: 1;
}

.sge-desc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .6rem;
}

.sge-desc-toolbar-left {
  flex: 1 1 320px;
  min-width: 260px;
}

.sge-desc-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.sge-chip-input-wrap {
  border: 1px solid #dbe2e9;
  border-radius: 10px;
  padding: .38rem .4rem;
  background: #fff;
}

.sge-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .35rem;
}

.sge-tag-chip {
  border: 1px solid rgba(211, 130, 0, .35);
  background: rgba(255, 158, 0, .1);
  color: #3c4f63;
  border-radius: 999px;
  padding: .16rem .45rem;
  font-size: .74rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.sge-chip-placeholder {
  font-size: .74rem;
  color: #6f8194;
}

.sge-tag-chip i {
  font-size: .66rem;
}

.sge-chip-input {
  border: 0 !important;
  box-shadow: none !important;
  padding: .2rem .25rem !important;
}

.sge-chip-input-wrap.is-invalid {
  border-color: #dc3545;
}

.sge-empty-hint {
  border: 1px dashed rgba(34, 52, 71, .25);
  border-radius: 10px;
  padding: .55rem .65rem;
  color: #5a6e83;
  font-size: .78rem;
  background: rgba(34, 52, 71, .03);
  margin-bottom: .45rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.sge-save-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .74rem;
  color: #6c7e92;
  align-items: center;
}

#teachingRestoreDraftBtn {
  margin-left: auto;
  min-height: 30px;
  border-radius: 8px;
  font-size: .72rem;
  padding: .22rem .6rem;
}

.sge-lot-row {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: .5rem;
}

.sge-lot-actions-bar {
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 253, 0.92) 100%);
}

.sge-lot-row.is-active-lot {
  border-color: rgba(239, 175, 67, 0.62);
  background: rgba(239, 175, 67, 0.08);
}

.sge-edit-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .6rem;
  border: 1px solid rgba(239, 175, 67, 0.35);
  border-radius: 999px;
  background: rgba(239, 175, 67, 0.08);
}

.sge-edit-mode-kicker {
  font-size: .72rem;
  font-weight: 700;
  color: #8d5b00;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.sge-edit-mode-name {
  font-size: .78rem;
  color: #223447;
}

.sge-teaching-create-section[data-step="description"] .form-label {
  margin-bottom: .24rem;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  font-size: .83rem;
  font-weight: 700;
  color: #223447;
}

/* Ensino > Descrição: organizadores em cards visíveis e separados. */
.sge-teaching-create-section[data-step="description"] .sge-form-block {
  padding: 0.8rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.30);
}

.sge-teaching-create-section[data-step="description"] .sge-form-block:hover {
  transform: none;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.30);
}

.sge-teaching-create-section[data-step="description"] .sge-form-block-title {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: .75rem;
  padding: .42rem .82rem;
  border: 1px solid rgba(239, 175, 67, .30);
  border-radius: 14px;
  background: rgba(239, 175, 67, .16);
  color: #223447;
  font-size: .92rem;
  font-weight: 800;
  gap: .42rem;
}

.sge-teaching-create-section[data-step="description"] .sge-form-block-title i {
  color: #d38200;
}

/* Ensino > Investimento: mesmo conceito visual da aba Descrição. */
.sge-teaching-create-section[data-step="investment"] .sge-form-block {
  padding: 0.8rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.30);
}

.sge-teaching-create-section[data-step="investment"] .sge-form-block:hover {
  transform: none;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.30);
}

.sge-teaching-create-section[data-step="investment"] .sge-form-block-title {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: .75rem;
  padding: .42rem .82rem;
  border: 1px solid rgba(239, 175, 67, .30);
  border-radius: 14px;
  background: rgba(239, 175, 67, .16);
  color: #223447;
  font-size: .92rem;
  font-weight: 800;
  gap: .42rem;
}

.sge-teaching-create-section[data-step="investment"] .sge-form-block-title i {
  color: #d38200;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card,
.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card:hover {
  transform: none;
  box-shadow: none;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card > .card-body {
  padding: 0.72rem 0.78rem !important;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar {
  overflow: visible;
}

/* Desktop: toolbar compacta (ocupa apenas o espaço necessário dos itens). */
.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-1 .sge-rich-group,
.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 .sge-rich-group {
  width: auto;
  max-width: 100%;
  justify-self: start;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 .sge-rich-group--insert {
  width: max-content;
  max-width: 100%;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 .sge-rich-group--style {
  min-width: 420px;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-group-title {
  white-space: nowrap;
}

.sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-group-controls {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) !important;
}

/* Telas menores: empilha para evitar quebra e vazamento. */
@media (max-width: 1200px) {
  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar {
    overflow: hidden;
  }

  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-1,
  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-group--mode,
  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-group--text,
  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-group--table,
  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-group--insert,
  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-group--style {
    grid-area: auto;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .sge-teaching-create-section[data-step="description"] .sge-teaching-desc-card .sge-rich-toolbar-line-2 .sge-rich-group--insert .sge-rich-group-controls {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.sge-teaching-create-section[data-step="description"] {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sge-teaching-create-section[data-step="description"] .card-body {
  background: transparent;
}

.sge-form-block {
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.96) 100%);
  background-clip: padding-box;
  padding: 0.72rem 0.78rem;
  position: relative;
  overflow: visible;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 8px 22px -18px rgba(15, 23, 42, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sge-form-block::before {
  content: none;
}

.sge-form-block:hover {
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.14),
    0 14px 28px -22px rgba(15, 23, 42, 0.42);
  transform: translateY(-1px);
}

.sge-form-block-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #223447;
  margin-bottom: 0.5rem;
  background: #f6f8fb;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
}

.sge-teaching-create-section[data-step="description"] .form-text {
  margin-top: .32rem;
  min-height: 18px;
  font-size: .75rem;
  color: #60748a;
}

.sge-teaching-create-section[data-step="description"] .sge-field-meta-row {
  margin-bottom: .26rem;
}

.sge-teaching-create-section[data-step="description"] .form-control.form-control-sm {
  min-height: 37px;
  border-radius: 10px;
}

.sge-teaching-create-section[data-step="description"] .sge-multi-select-btn {
  min-height: 37px;
  border-radius: 10px;
}

.sge-teaching-create-section[data-step="description"] textarea.form-control.form-control-sm {
  min-height: 84px;
  line-height: 1.45;
}

.sge-teaching-create-section[data-step="description"] .sge-empty-hint {
  margin-top: .18rem;
  padding: .48rem .58rem;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #60748a;
  font-size: .75rem;
}

.sge-teaching-create-section[data-step="description"] #teachingPreviewTextBtn,
.sge-teaching-create-section[data-step="description"] #teachingDescriptionTemplateBtn {
  min-height: 34px;
  padding: .34rem .68rem;
  border-radius: 9px;
}

.sge-teaching-create-section[data-step="description"] #teachingDescriptionTemplateBtn {
  border-color: rgba(15, 23, 42, 0.12);
  color: #34495e;
  background: #fff;
}

.sge-teaching-create-section[data-step="description"] .row.g-3>[class*="col-"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sge-teaching-create-section[data-step="investment"] .form-label {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  margin-bottom: .34rem;
  font-size: .83rem;
  font-weight: 700;
  color: #223447;
}

.sge-teaching-create-section[data-step="investment"] .form-control.form-control-sm,
.sge-teaching-create-section[data-step="investment"] .form-select.form-select-sm,
.sge-teaching-create-section[data-step="investment"] .sge-multi-select-btn {
  min-height: 37px;
  border-radius: 10px;
}

.sge-teaching-create-section[data-step="investment"] .form-text {
  margin-top: .32rem;
  min-height: 18px;
  font-size: .75rem;
  color: #60748a;
}

.sge-teaching-create-section[data-step="investment"] .row.g-3>[class*="col-"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sge-teaching-create-section[data-step="investment"] .sge-payment-options {
  gap: .72rem;
  margin-top: .28rem;
}

.sge-teaching-create-section[data-step="investment"] .sge-payment-option {
  min-height: 52px;
  padding: .65rem .78rem;
}

.sge-teaching-create-section[data-step="investment"] .sge-investment-summary {
  margin-top: .15rem;
  padding: .62rem .72rem;
}

.sge-slug-status {
  font-weight: 600;
}

#teachingSlugInput[readonly] {
  background: #f8f4ec;
  border-style: dashed;
}

.sge-preview-rich-text {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 10px;
  padding: .65rem;
  min-height: 120px;
  background: #fff;
}

.sge-teaching-wizard-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.sge-teaching-tabs-shell {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.98) 100%);
  box-shadow: 0 14px 34px -28px rgba(15, 23, 42, 0.36);
}

.sge-teaching-tabs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sge-teaching-tabs-head .text-muted {
  max-width: 72ch;
}

.sge-teaching-step-btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #36485a;
  border-radius: 14px;
  padding: 0.72rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  text-align: left;
  transition: all 0.18s ease;
}

.sge-teaching-step-btn i {
  font-size: 1rem;
  line-height: 1;
}

.sge-step-state {
  margin-left: auto;
  line-height: 1;
  color: #93a5b8;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.sge-step-state i {
  font-size: .86rem;
}

.sge-step-dirty-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #efaf43;
  margin-left: auto;
  flex: 0 0 auto;
}

.sge-teaching-step-btn.is-dirty:not(.is-active) {
  border-color: rgba(239, 175, 67, 0.56);
}

.sge-teaching-step-btn.is-complete {
  border-color: rgba(25, 135, 84, 0.28);
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.2);
}

.sge-teaching-step-btn.is-complete::after {
  content: "?";
  font-size: .7rem;
  font-weight: 800;
  color: #198754;
  margin-left: .25rem;
}

.sge-teaching-step-btn.is-invalid {
  border-color: rgba(220, 53, 69, 0.45);
}

.sge-teaching-step-btn.is-invalid .sge-step-state {
  color: #dc3545;
}

.sge-teaching-step-btn.is-complete .sge-step-state {
  color: #198754;
}

.sge-teaching-audit-mini {
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: .5rem .6rem;
  background: rgba(15, 23, 42, 0.02);
}

.sge-teaching-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .72rem;
  color: #60748a;
}

.sge-teaching-step-btn:hover,
.sge-teaching-step-btn:focus-visible {
  border-color: rgba(240, 174, 42, 0.46);
  box-shadow: 0 10px 22px -16px rgba(15, 23, 42, 0.36), 0 0 0 0.18rem rgba(240, 174, 42, 0.12);
}

.sge-teaching-step-btn.is-active {
  border-color: rgba(240, 174, 42, 0.62);
  background: linear-gradient(160deg, rgba(240, 174, 42, 0.18) 0%, rgba(240, 174, 42, 0.05) 100%);
  color: #2b3950;
  box-shadow: 0 14px 30px -20px rgba(239, 175, 67, 0.48);
}

.sge-teaching-preview-card {
  position: sticky;
  top: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.38);
}

.sge-teaching-preview-cover {
  width: 100%;
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(240, 174, 42, 0.2) 0%, rgba(240, 174, 42, 0.05) 100%);
  background-size: cover;
  background-position: center;
  margin-bottom: 0.95rem;
}

.sge-teaching-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7a4f00;
  background: rgba(240, 174, 42, 0.16);
  margin-bottom: 0.35rem;
}

.sge-teaching-preview-title {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.sge-teaching-preview-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #56667a;
}

.sge-teaching-preview-prices {
  margin-top: 0.55rem;
}

.sge-teaching-preview-prices>span {
  font-size: 1rem;
  font-weight: 800;
  color: #1f2f40;
}

.sge-teaching-preview-prices>small {
  display: block;
  color: #b75b00;
  font-size: 0.8rem;
}

.sge-teaching-preview-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.sge-teaching-preview-quick>div {
  border: 1px solid rgba(34, 52, 71, 0.12);
  border-radius: 12px;
  padding: 0.48rem 0.58rem;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.sge-teaching-preview-quick>div.is-full {
  grid-column: 1 / -1;
}

.sge-teaching-preview-quick small {
  font-size: 0.69rem;
  color: #6a7d91;
}

.sge-teaching-preview-quick strong {
  font-size: 0.8rem;
  color: #223447;
}

.sge-teaching-action-bar {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.96) 100%);
  box-shadow: 0 12px 26px -22px rgba(15, 23, 42, 0.34);
}

.sge-teaching-seo-checklist {
  list-style: none;
  padding-left: 0;
}

.sge-teaching-seo-checklist li {
  position: relative;
  font-size: 0.8rem;
  color: #6a7889;
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
}

.sge-teaching-seo-checklist li::before {
  content: "\F62A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: #98a8ba;
}

.sge-teaching-seo-checklist li.is-ok {
  color: #1f6a32;
  font-weight: 700;
}

.sge-teaching-seo-checklist li.is-ok::before {
  content: "\F26A";
  color: #2aa54c;
}

@media (max-width: 1199.98px) {
  .sge-teaching-preview-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .sge-teaching-overview {
    grid-template-columns: 1fr;
  }

  .sge-teaching-wizard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-teaching-summary-strip {
    grid-template-columns: 1fr;
    gap: .4rem;
    padding: .45rem .5rem;
  }

  .sge-teaching-step-btn {
    font-size: 0.78rem;
    padding: .42rem .55rem;
  }

  .sge-save-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }

  #teachingRestoreDraftBtn {
    margin-left: 0;
  }

  .sge-teaching-create-section[data-step="description"] .form-control.form-control-sm,
  .sge-teaching-create-section[data-step="description"] .sge-multi-select-btn,
  .sge-teaching-create-section[data-step="investment"] .form-control.form-control-sm,
  .sge-teaching-create-section[data-step="investment"] .form-select.form-select-sm,
  .sge-teaching-create-section[data-step="investment"] .sge-multi-select-btn {
    min-height: 35px;
  }

  .sge-teaching-create-section[data-step="description"] .form-label,
  .sge-teaching-create-section[data-step="investment"] .form-label {
    font-size: .83rem;
    margin-bottom: .22rem;
  }

  .sge-teaching-create-section[data-step="description"] .form-text,
  .sge-teaching-create-section[data-step="investment"] .form-text {
    font-size: .71rem;
    margin-top: .24rem;
  }
}

.sge-body[data-theme="dark"] .sge-teaching-template-bar,
.sge-body[data-theme="dark"] .sge-teaching-step-btn,
.sge-body[data-theme="dark"] .sge-teaching-preview-card {
  border-color: rgba(139, 233, 253, 0.22);
}

.sge-body[data-theme="dark"] .sge-teaching-step-btn {
  background: rgba(20, 27, 38, 0.9);
  color: #d8e2f0;
}

.sge-body[data-theme="dark"] .sge-teaching-tabs-shell,
.sge-body[data-theme="dark"] .sge-teaching-action-bar,
.sge-body[data-theme="dark"] .sge-teaching-preview-card {
  border-color: rgba(139, 233, 253, 0.22);
  background: linear-gradient(180deg, rgba(17, 24, 36, 0.96) 0%, rgba(14, 20, 31, 0.98) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-tabs-head {
  border-bottom-color: rgba(139, 233, 253, 0.18);
}

.sge-body[data-theme="dark"] .sge-char-count,
.sge-body[data-theme="dark"] .sge-save-meta,
.sge-body[data-theme="dark"] .sge-form-required-legend,
.sge-body[data-theme="dark"] .sge-chip-placeholder {
  color: #b9c8db;
}

.sge-body[data-theme="dark"] #teachingRestoreDraftBtn {
  border-color: rgba(139, 233, 253, 0.28);
  color: #dbe5f3;
}

.sge-body[data-theme="dark"] .sge-edit-mode-badge {
  border-color: rgba(255, 190, 94, 0.4);
  background: rgba(255, 190, 94, 0.14);
}

.sge-body[data-theme="dark"] .sge-edit-mode-kicker {
  color: #ffd48e;
}

.sge-body[data-theme="dark"] .sge-edit-mode-name {
  color: #f6f7fb;
}

.sge-body[data-theme="dark"] .sge-lot-row {
  border-color: rgba(139, 233, 253, 0.2);
  background: rgba(20, 28, 40, 0.55);
}

.sge-body[data-theme="dark"] .sge-lot-actions-bar {
  border-color: rgba(139, 233, 253, 0.2);
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.88) 0%, rgba(18, 27, 40, 0.88) 100%);
}

.sge-body[data-theme="dark"] .sge-lot-row.is-active-lot {
  border-color: rgba(255, 190, 94, 0.58);
  background: rgba(255, 190, 94, 0.12);
}

.sge-body[data-theme="dark"] .sge-help-btn {
  color: #b9c8db;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .form-label {
  color: #dce8f8;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .form-text {
  color: #b7c6d8;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .sge-form-block {
  background: transparent;
  box-shadow: none;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .sge-form-block-title {
  color: #dce8f8;
  background: transparent;
  border: 0;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="investment"] .sge-form-block {
  background: transparent;
  border-color: rgba(139, 233, 253, 0.20);
  box-shadow: none;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="investment"] .sge-form-block-title {
  color: #dce8f8;
  background: transparent;
  border-color: rgba(139, 233, 253, 0.18);
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .sge-empty-hint {
  border-color: rgba(139, 233, 253, 0.18);
  background: rgba(20, 28, 40, 0.62);
  color: #b7c6d8;
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] #teachingDescriptionTemplateBtn {
  border-color: rgba(139, 233, 253, 0.22);
  color: #dce8f8;
  background: rgba(16, 23, 35, 0.9);
}

.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .form-control.form-control-sm,
.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .form-select.form-select-sm,
.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="description"] .sge-multi-select-btn,
.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="investment"] .form-control.form-control-sm,
.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="investment"] .form-select.form-select-sm,
.sge-body[data-theme="dark"] .sge-teaching-create-section[data-step="investment"] .sge-multi-select-btn {
  border-color: rgba(139, 233, 253, 0.24);
  color: #dce8f8;
}

.sge-body[data-theme="dark"] .sge-form-block {
  background: linear-gradient(180deg, rgba(22, 31, 45, 0.85) 0%, rgba(16, 24, 36, 0.9) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(139, 233, 253, 0.2),
    0 8px 22px -18px rgba(0, 0, 0, 0.5);
}

.sge-body[data-theme="dark"] .sge-form-block-title {
  color: #dbe5f3;
  background: rgba(20, 28, 40, 0.88);
  border-color: rgba(139, 233, 253, 0.16);
}

.sge-body[data-theme="dark"] .sge-form-block:hover {
  box-shadow:
    inset 0 0 0 1px rgba(139, 233, 253, 0.28),
    0 18px 30px -24px rgba(0, 0, 0, 0.62);
}

.sge-body[data-theme="dark"] .sge-step-state {
  background: rgba(148, 163, 184, 0.14);
  color: #b9c8db;
}

.sge-body[data-theme="dark"] .sge-teaching-step-btn.is-active {
  box-shadow: 0 16px 30px -24px rgba(255, 184, 77, 0.48);
}

.sge-body[data-theme="dark"] .sge-teaching-preview-cover {
  box-shadow: inset 0 0 0 1px rgba(139, 233, 253, 0.14);
}

.sge-body[data-theme="dark"] .sge-teaching-preview-quick > div {
  border-color: rgba(139, 233, 253, 0.16);
  background: rgba(18, 27, 40, 0.86);
}

.sge-body[data-theme="dark"] .sge-chip-input-wrap {
  background: rgba(20, 27, 38, .9);
  border-color: rgba(139, 233, 253, .25);
}

.sge-body[data-theme="dark"] .sge-empty-hint {
  border-color: rgba(139, 233, 253, .35);
  background: rgba(139, 233, 253, .08);
  color: #d8e4f5;
}

.sge-body[data-theme="dark"] .sge-tag-chip {
  background: rgba(255, 184, 77, .2);
  border-color: rgba(255, 184, 77, .45);
  color: #f6ead7;
}

.sge-body[data-theme="dark"] .sge-preview-rich-text {
  background: rgba(20, 27, 38, .95);
  border-color: rgba(139, 233, 253, .25);
  color: #dce8f8;
}

.sge-body[data-theme="dark"] .sge-teaching-step-btn.is-active {
  background: linear-gradient(160deg, rgba(255, 184, 77, 0.2) 0%, rgba(255, 184, 77, 0.07) 100%);
  color: #fff1d8;
}

.sge-body[data-theme="dark"] .sge-teaching-preview-cover {
  background: linear-gradient(145deg, rgba(255, 184, 77, 0.26) 0%, rgba(255, 184, 77, 0.08) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-preview-meta,
.sge-body[data-theme="dark"] .sge-teaching-seo-checklist li {
  color: rgba(214, 224, 241, 0.88);
}

.sge-body[data-theme="dark"] .sge-teaching-preview-prices>span {
  color: #f7f7fb;
}

.sge-body[data-theme="dark"] .sge-teaching-preview-quick>div {
  background: rgba(20, 27, 38, 0.9);
  border-color: rgba(139, 233, 253, 0.2);
}

.sge-body[data-theme="dark"] .sge-teaching-preview-quick small {
  color: #aabbd0;
}

.sge-body[data-theme="dark"] .sge-teaching-preview-quick strong {
  color: #e7f0ff;
}

/* Abas integradas ao conteúdo - Cadastrar ensino */
.sge-teaching-tabs-shell {
  border-radius: 18px;
  overflow: visible;
}

.sge-teaching-tabs-nav-integrated {
  margin-bottom: 0;
  padding: 0.18rem;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: rgba(248, 250, 253, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow-x: visible;
  white-space: normal;
}

.sge-teaching-tabs-nav-integrated .sge-teaching-step-btn {
  min-height: 52px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #223447;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.74rem 0.9rem;
  line-height: 1.1;
  position: relative;
  flex: 1 1 150px;
}

.sge-teaching-tabs-nav-integrated .sge-teaching-step-btn:hover,
.sge-teaching-tabs-nav-integrated .sge-teaching-step-btn:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #fef7ea 100%);
}

.sge-teaching-tabs-nav-integrated .sge-teaching-step-btn.is-active {
  color: #223447;
  background: linear-gradient(160deg, rgba(240, 174, 42, 0.18) 0%, rgba(240, 174, 42, 0.05) 100%);
  font-weight: 700;
  border-color: rgba(240, 174, 42, 0.46);
}

.sge-teaching-tab-panel {
  border-left: 1px solid rgba(15, 23, 42, 0.09);
  border-right: 1px solid rgba(15, 23, 42, 0.09);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.sge-teaching-tab-panel .card-header {
  border-top: 0;
}

.sge-teaching-tab-panel .card-body {
  padding-top: 1rem !important;
}

/* Ensino: os dropdowns customizados precisam abrir dentro do próprio grid sem clipping. */
.sge-teaching-tab-panel .row,
.sge-teaching-tab-panel [class^="col-"],
.sge-teaching-tab-panel [class*=" col-"] {
  overflow: visible;
}

.sge-body[data-theme="dark"] .sge-teaching-tabs-shell {
  border-color: rgba(139, 233, 253, 0.22);
  background: linear-gradient(180deg, rgba(17, 24, 36, 0.96) 0%, rgba(14, 20, 31, 0.98) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-tabs-nav-integrated {
  background: rgba(12, 18, 29, 0.95);
  border-color: rgba(139, 233, 253, 0.22);
}

.sge-body[data-theme="dark"] .sge-teaching-tabs-nav-integrated .sge-teaching-step-btn {
  color: #ffbe5e;
  background: rgba(24, 33, 48, 0.92);
}

.sge-body[data-theme="dark"] .sge-step-dirty-dot {
  background: #ffbe5e;
}

.sge-body[data-theme="dark"] .sge-teaching-step-btn.is-complete {
  box-shadow: inset 0 0 0 1px rgba(81, 207, 102, 0.45);
}

.sge-body[data-theme="dark"] .sge-teaching-step-btn.is-complete::after {
  color: #51cf66;
}

.sge-body[data-theme="dark"] .sge-teaching-audit-mini {
  border-color: rgba(139, 233, 253, 0.24);
  background: rgba(20, 28, 40, 0.45);
}

.sge-body[data-theme="dark"] .sge-teaching-audit-row {
  color: #b9c8db;
}

.sge-body[data-theme="dark"] .sge-teaching-tabs-nav-integrated .sge-teaching-step-btn.is-active {
  color: #f6f7fb;
  border-color: rgba(139, 233, 253, 0.3);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.16) 0%, rgba(17, 24, 36, 0.96) 100%);
}

.sge-body[data-theme="dark"] .sge-teaching-tab-panel {
  border-left-color: rgba(139, 233, 253, 0.22);
  border-right-color: rgba(139, 233, 253, 0.22);
  border-bottom-color: rgba(139, 233, 253, 0.22);
  border-top-color: rgba(139, 233, 253, 0.22);
  background: linear-gradient(180deg, rgba(18, 25, 38, 0.98) 0%, rgba(15, 22, 34, 0.98) 100%);
}

/* Duplicar ensino: autocomplete customizado */
.sge-template-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}

.sge-template-suggest {
  position: absolute !important;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid #d8dde5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.45);
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.2rem 0;
}

.sge-template-suggest-item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.72rem;
  color: #243548;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
}

.sge-template-suggest-item:hover,
.sge-template-suggest-item:focus-visible {
  background: #f3f5f7;
}

.sge-template-suggest-empty {
  padding: 0.55rem 0.7rem;
  color: #6a7889;
  font-size: 0.86rem;
}

.sge-template-suggest.d-none {
  display: none !important;
}

.sge-body[data-theme="dark"] .sge-template-suggest {
  border-color: rgba(139, 233, 253, 0.26);
  background: rgba(16, 23, 35, 0.98);
}

.sge-body[data-theme="dark"] .sge-template-suggest-item {
  color: #e4ecf8;
}

.sge-body[data-theme="dark"] .sge-template-suggest-item:hover,
.sge-body[data-theme="dark"] .sge-template-suggest-item:focus-visible {
  background: rgba(139, 233, 253, 0.16);
}

/* Rich editor */
.sge-rich-editor {
  border: 1px solid #d8dde5;
  border-radius: 10px;
  background: #fff;
  overflow: visible;
}

.sge-rich-toolbar {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 0.45rem;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: visible;
  position: relative;
  z-index: 3;
}

.sge-rich-group {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  padding: .34rem .36rem;
  border: 0.75px solid #dce3eb;
  border-radius: 10px;
  background: #fff;
  grid-column: span 4;
}

.sge-rich-toolbar-line {
  display: grid;
  gap: .55rem;
}

.sge-rich-toolbar-line-1 {
  grid-template-columns: max-content max-content minmax(0, 1fr);
  grid-template-areas: "mode text table";
}

.sge-rich-toolbar-line-2 {
  grid-template-columns: max-content minmax(520px, 1fr);
  grid-template-areas: "insert style";
  width: 100%;
}

.sge-rich-toolbar-line-1 .sge-rich-group {
  width: auto;
  max-width: 100%;
  justify-self: stretch;
}

.sge-rich-toolbar-line-1 .sge-rich-group--mode {
  grid-area: mode;
}

.sge-rich-toolbar-line-1 .sge-rich-group--text {
  grid-area: text;
}

.sge-rich-toolbar-line-1 .sge-rich-group--table {
  grid-area: table;
}

.sge-rich-toolbar-line-2 .sge-rich-group {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  align-self: stretch;
}

.sge-rich-toolbar-line-2 .sge-rich-group-controls {
  width: 100%;
  flex-wrap: wrap;
}

/* Inserções: ocupar largura total sem quebrar e sem vazar do bloco */
.sge-rich-toolbar-line-2 .sge-rich-group--insert .sge-rich-group-controls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  gap: .1rem;
  padding-inline: .04rem;
  overflow: hidden;
}

.sge-rich-toolbar-line-2 .sge-rich-group--insert .sge-rich-btn {
  min-width: 30px;
  min-height: 32px;
  padding: .22rem .36rem;
  font-size: .7rem;
  flex: 0 1 auto;
}

.sge-rich-toolbar-line-2 .sge-rich-group--insert {
  grid-area: insert;
  width: auto;
  max-width: max-content;
  justify-self: start;
}

.sge-rich-toolbar-line-2 .sge-rich-group--style {
  grid-area: style;
}

.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-select {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  min-height: 40px;
  font-size: 1.02rem;
  font-weight: 500;
  padding: .3rem .72rem;
  line-height: 1.2;
  color: #223447;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background-color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  appearance: auto;
}

.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-select:focus,
.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-select:focus-visible {
  border-color: #9cb2c8;
  box-shadow: 0 0 0 .14rem rgba(99, 131, 163, .16);
  outline: 0;
}

.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-select-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: initial !important;
}

.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-select option {
  font-size: .9rem;
  font-weight: 500;
  color: #223447;
}

.sge-rich-group-title {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #5a6f85;
  display: block;
}

.sge-rich-group--style .sge-rich-group-title {
  white-space: nowrap;
}

.sge-rich-group-controls {
  display: inline-flex;
  align-items: flex-end;
  gap: .2rem;
  flex-wrap: wrap;
}

/* Linha 1 sem quebra */
.sge-rich-toolbar-line-1 .sge-rich-group-controls {
  flex-wrap: nowrap;
  justify-content: center;
  gap: .38rem;
}

.sge-rich-toolbar-line-1 .sge-rich-btn {
  min-width: 30px;
  min-height: 30px;
  padding: .18rem .34rem;
  font-size: .68rem;
}

.sge-rich-toolbar-line-1 .sge-rich-color {
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: 0 0 30px;
}

/* Estilo e fonte: sempre em linha única */
.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-group-controls {
  display: grid !important;
  grid-template-columns: calc((100% - .64rem) * 0.46) calc((100% - .64rem) * 0.32) calc((100% - .64rem) * 0.22) !important;
  align-items: stretch;
  width: 100% !important;
  gap: .32rem;
  min-width: 0;
  justify-items: stretch;
}

/* Se o select nativo do editor estiver marcado como oculto, mantém oculto
   mesmo com regras visuais fortes aplicadas ao .sge-rich-select. */
.sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-select.d-none {
  display: none !important;
}

.sge-rich-btn {
  border: 1px solid #d4dbe4;
  background: #fff;
  color: #2c3e52;
  border-radius: 6px;
  min-height: 28px;
  min-width: 28px;
  padding: 0.2rem 0.36rem;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  white-space: nowrap;
}

.sge-rich-select-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  min-width: 0;
}

.sge-rich-control-label {
  font-size: .58rem;
  color: #667b90;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: none;
}

.sge-rich-select {
  border: 1px solid #d4dbe4;
  background: #fff;
  color: #2c3e52;
  border-radius: 6px;
  min-height: 28px;
  padding: 0.1rem 0.36rem;
  font-size: 0.68rem;
  font-weight: 600;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
}

.sge-rich-color {
  width: 28px;
  height: 28px;
  border: 1px solid #d4dbe4;
  border-radius: 6px;
  padding: 0;
  background: #fff;
}

.sge-rich-btn:hover,
.sge-rich-btn:focus-visible {
  border-color: rgba(240, 174, 42, 0.56);
  box-shadow: 0 0 0 0.15rem rgba(240, 174, 42, 0.18);
}

.sge-rich-btn.is-active {
  border-color: rgba(240, 174, 42, 0.62);
  background: linear-gradient(160deg, rgba(240, 174, 42, 0.2) 0%, rgba(240, 174, 42, 0.08) 100%);
  color: #2b3950;
}

.sge-rich-sep {
  width: 1px;
  height: 22px;
  margin: 0 0.1rem;
  background: #d9e0e8;
  align-self: center;
}

@media (max-width: 768px) {
  .sge-rich-toolbar {
    padding: .35rem;
    gap: .3rem;
  }

  .sge-rich-toolbar-line-1,
  .sge-rich-toolbar-line-2 {
    grid-template-columns: 1fr;
  }

  .sge-rich-btn span {
    display: none;
  }

  .sge-rich-select {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
  }

  .sge-rich-group {
    width: 100%;
  }

  .sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-group-controls {
    grid-template-columns: 1fr !important;
  }

  .sge-rich-toolbar-line-2 .sge-rich-group--insert .sge-rich-group-controls {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .sge-rich-toolbar-line-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-rich-toolbar-line-2 {
    grid-template-columns: max-content minmax(440px, 1fr);
  }

  .sge-rich-toolbar-line-2 .sge-rich-group--style .sge-rich-group-controls {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

.sge-rich-area {
  min-height: 220px;
  padding: 0.7rem 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #233649;
  resize: vertical;
  overflow: auto;
}

.sge-rich-area .sge-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.35rem 0;
}

.sge-rich-area .sge-checklist li {
  margin: 0.22rem 0;
}

.sge-rich-area .sge-checklist label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.sge-rich-area:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(240, 174, 42, 0.2);
}

.sge-rich-area[data-code="1"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
}

.sge-rich-editor.is-fullscreen {
  position: fixed;
  inset: 1rem;
  z-index: 2000;
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5);
}

.sge-rich-editor.is-fullscreen .sge-rich-area {
  min-height: calc(100vh - 140px);
}

.sge-body[data-theme="dark"] .sge-rich-editor {
  border-color: rgba(139, 233, 253, 0.24);
  background: rgba(16, 23, 35, 0.95);
}

.sge-body[data-theme="dark"] .sge-rich-toolbar {
  background: rgba(12, 18, 29, 0.95);
}

.sge-body[data-theme="dark"] .sge-rich-group {
  border-color: rgba(139, 233, 253, .22);
  background: rgba(20, 29, 43, .72);
}

.sge-body[data-theme="dark"] .sge-rich-group-title,
.sge-body[data-theme="dark"] .sge-rich-control-label {
  color: #b8c9dd;
}

.sge-body[data-theme="dark"] .sge-rich-btn {
  border-color: rgba(139, 233, 253, 0.26);
  background: rgba(20, 29, 43, 0.96);
  color: #e5edf8;
}

.sge-body[data-theme="dark"] .sge-rich-select,
.sge-body[data-theme="dark"] .sge-rich-color {
  border-color: rgba(139, 233, 253, 0.26);
  background: rgba(20, 29, 43, 0.96);
  color: #e5edf8;
}

.sge-body[data-theme="dark"] .sge-rich-sep {
  background: rgba(139, 233, 253, 0.22);
}

.sge-body[data-theme="dark"] .sge-rich-btn.is-active {
  background: linear-gradient(160deg, rgba(255, 184, 77, .22) 0%, rgba(255, 184, 77, .1) 100%);
  border-color: rgba(255, 184, 77, .45);
  color: #ffe8c5;
}

.sge-body[data-theme="dark"] .sge-rich-area {
  color: #e6eefb;
}

.sge-body[data-theme="dark"] .sge-table-card,
.sge-body[data-theme="dark"] .sge-table-card .table-responsive,
.sge-body[data-theme="dark"] .sge-table-card .card-body {
  background: #1d2431 !important;
  border-color: #3b4655 !important;
}

.sge-body[data-theme="dark"] .sge-thead th {
  background: #253043 !important;
  color: #dbe5f3 !important;
  border-bottom-color: #3b4655 !important;
}

.sge-body[data-theme="dark"] .sge-table tbody td {
  color: #e6edf8 !important;
  border-bottom-color: #344253 !important;
  background: transparent !important;
}

.sge-body[data-theme="dark"] .sge-table tbody tr:hover>* {
  background-color: rgba(239, 175, 67, 0.1) !important;
}

.sge-body[data-theme="dark"] .sge-table-coupons .progress {
  background: #2a3444;
}

.sge-body[data-theme="dark"] .sge-completion-wrap small {
  color: #b2c3d9;
}

.sge-body[data-theme="dark"] .sge-completion-bar {
  background: rgba(187, 206, 231, .2);
}

.sge-body[data-theme="dark"] .offcanvas {
  background: #1d2431;
  color: #e6edf8;
}

.sge-body[data-theme="dark"] .sge-quick-preview-cover {
  border-color: #3b4655;
  background-color: #273244;
}

.js-single-picker .sge-multi-select-item {
  font-size: 0.80rem;
}
/* ==============================================================
   DATE FIELD - GLOBAL PREMIUM
   ============================================================== */
input[type="date"].form-control,
input[type="date"].form-control-sm,
input[type="date"].sge-select,
.form-control[type="datetime-local"],
.form-control-sm[type="datetime-local"],
input[type="datetime-local"].sge-select,
input[type="datetime-local"].form-control,
input[type="datetime-local"].form-control-sm,
.form-control[type="date"],
.form-control-sm[type="date"],
.sge-select[type="date"],
.sge-select[type="datetime-local"] {
  border-radius: 12px;
  border: 1px solid #cfd8e3;
  background-color: #f9fbfe;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 247, 252, 0.96) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='3' width='12' height='11' rx='2' stroke='%23EF9F1A' stroke-width='1.2'/%3E%3Cpath d='M5 2V5M11 2V5M2 6.5H14' stroke='%23EF9F1A' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, calc(100% - 12px) 50%;
  background-size: auto, 18px 18px;
  padding-right: 2.2rem;
  color: #223447;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

input[type="date"].form-control:hover,
input[type="date"].form-control-sm:hover,
input[type="date"].sge-select:hover,
input[type="datetime-local"].form-control:hover,
input[type="datetime-local"].form-control-sm:hover,
input[type="datetime-local"].sge-select:hover,
.form-control[type="datetime-local"]:hover,
.form-control-sm[type="datetime-local"]:hover,
.form-control[type="date"]:hover,
.form-control-sm[type="date"]:hover,
.sge-select[type="date"]:hover,
.sge-select[type="datetime-local"]:hover {
  border-color: #c8d2df;
}

input[type="date"].form-control:focus,
input[type="date"].form-control-sm:focus,
input[type="date"].sge-select:focus,
input[type="datetime-local"].form-control:focus,
input[type="datetime-local"].form-control-sm:focus,
input[type="datetime-local"].sge-select:focus,
.form-control[type="datetime-local"]:focus,
.form-control-sm[type="datetime-local"]:focus,
.form-control[type="date"]:focus,
.form-control-sm[type="date"]:focus,
.sge-select[type="date"]:focus,
.sge-select[type="datetime-local"]:focus {
  border-color: #efaf43;
  box-shadow: 0 0 0 0.22rem rgba(239, 175, 67, 0.2), 0 10px 22px rgba(17, 24, 39, 0.08);
  background-color: #fff;
  transform: translateY(-1px);
}

/* Área de texto do date no WebKit */
input[type="date"]::-webkit-datetime-edit {
  color: #223447;
  letter-spacing: 0.01em;
}

/* Ícone do calendário */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: -0.1rem;
  filter: none;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

input[type="date"]:focus::-webkit-calendar-picker-indicator {
  transform: scale(1.06);
}

/* Tema escuro */
.sge-body[data-theme="dark"] input[type="date"].form-control,
.sge-body[data-theme="dark"] input[type="date"].form-control-sm,
.sge-body[data-theme="dark"] input[type="date"].sge-select,
.sge-body[data-theme="dark"] input[type="datetime-local"].form-control,
.sge-body[data-theme="dark"] input[type="datetime-local"].form-control-sm,
.sge-body[data-theme="dark"] input[type="datetime-local"].sge-select,
.sge-body[data-theme="dark"] .form-control[type="datetime-local"],
.sge-body[data-theme="dark"] .form-control-sm[type="datetime-local"],
.sge-body[data-theme="dark"] .form-control[type="date"],
.sge-body[data-theme="dark"] .form-control-sm[type="date"],
.sge-body[data-theme="dark"] .sge-select[type="date"],
.sge-body[data-theme="dark"] .sge-select[type="datetime-local"] {
  background-color: #111827;
  background-image:
    linear-gradient(180deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='3' width='12' height='11' rx='2' stroke='%23F4B547' stroke-width='1.2'/%3E%3Cpath d='M5 2V5M11 2V5M2 6.5H14' stroke='%23F4B547' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, calc(100% - 12px) 50%;
  background-size: auto, 18px 18px;
  border-color: #374151;
  color: #e5e7eb;
}

.sge-body[data-theme="dark"] input[type="date"].form-control:hover,
.sge-body[data-theme="dark"] input[type="date"].form-control-sm:hover,
.sge-body[data-theme="dark"] input[type="date"].sge-select:hover,
.sge-body[data-theme="dark"] input[type="datetime-local"].form-control:hover,
.sge-body[data-theme="dark"] input[type="datetime-local"].form-control-sm:hover,
.sge-body[data-theme="dark"] input[type="datetime-local"].sge-select:hover,
.sge-body[data-theme="dark"] .form-control[type="datetime-local"]:hover,
.sge-body[data-theme="dark"] .form-control-sm[type="datetime-local"]:hover,
.sge-body[data-theme="dark"] .form-control[type="date"]:hover,
.sge-body[data-theme="dark"] .form-control-sm[type="date"]:hover,
.sge-body[data-theme="dark"] .sge-select[type="date"]:hover,
.sge-body[data-theme="dark"] .sge-select[type="datetime-local"]:hover {
  border-color: #4b5563;
}

.sge-body[data-theme="dark"] input[type="date"].form-control:focus,
.sge-body[data-theme="dark"] input[type="date"].form-control-sm:focus,
.sge-body[data-theme="dark"] input[type="date"].sge-select:focus,
.sge-body[data-theme="dark"] input[type="datetime-local"].form-control:focus,
.sge-body[data-theme="dark"] input[type="datetime-local"].form-control-sm:focus,
.sge-body[data-theme="dark"] input[type="datetime-local"].sge-select:focus,
.sge-body[data-theme="dark"] .form-control[type="datetime-local"]:focus,
.sge-body[data-theme="dark"] .form-control-sm[type="datetime-local"]:focus,
.sge-body[data-theme="dark"] .form-control[type="date"]:focus,
.sge-body[data-theme="dark"] .form-control-sm[type="date"]:focus,
.sge-body[data-theme="dark"] .sge-select[type="date"]:focus,
.sge-body[data-theme="dark"] .sge-select[type="datetime-local"]:focus {
  border-color: #efaf43;
  box-shadow: 0 0 0 0.22rem rgba(239, 175, 67, 0.24), 0 10px 20px rgba(0, 0, 0, 0.28);
  background-color: #0f172a;
}

.sge-body[data-theme="dark"] input[type="date"]::-webkit-datetime-edit {
  color: #e5e7eb;
}

.sge-body[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  filter: none;
}

/* ==============================================================
   DATE POPUP PREMIUM (GLOBAL)
   ============================================================== */
.sge-date-popup {
  position: absolute;
  z-index: 1075;
  width: 296px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 38px rgba(34, 52, 71, 0.14);
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.sge-date-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sge-date-popup.is-datetime {
  width: 420px;
}

.sge-date-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.sge-date-popup-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.sge-date-popup.is-datetime .sge-date-popup-main {
  grid-template-columns: minmax(0, 1fr) 102px;
}

.sge-date-calendar-col {
  min-width: 0;
}

.sge-date-time-col {
  border-left: 1px solid #e3ebf4;
  padding-left: 0.5rem;
}

.sge-time-title {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sge-time-list {
  max-height: 228px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 0.1rem;
}

.sge-time-item {
  height: 1.9rem;
  border: 1px solid #e6d8bf;
  border-radius: 8px;
  background: #fff;
  color: #223447;
  font-size: 0.82rem;
  text-align: center;
}

.sge-time-item:hover {
  border-color: #efaf43;
  background: #fff1d8;
}

.sge-time-item.is-selected {
  background: #efaf43;
  border-color: #efaf43;
  color: #223447;
  font-weight: 700;
}

.sge-time-item.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sge-date-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #223447;
  text-transform: capitalize;
}

.sge-date-nav {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  border: 1px solid #e6d8bf;
  background: #fff;
  color: #223447;
  line-height: 1;
}

.sge-date-nav:hover {
  border-color: #efaf43;
  color: #d28f1a;
}

.sge-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.3rem;
}

.sge-date-weekdays span {
  font-size: 0.68rem;
  text-align: center;
  color: #6b7280;
  font-weight: 600;
}

.sge-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.22rem;
}

.sge-date-cell {
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #223447;
  font-size: 0.84rem;
}

.sge-date-cell:hover {
  background: #fff8ea;
}

.sge-date-cell.is-muted {
  color: #9ca3af;
}

.sge-date-cell.is-today {
  box-shadow: inset 0 0 0 1px #efaf43;
}

.sge-date-cell.is-selected {
  background: #efaf43;
  color: #223447;
  font-weight: 700;
}

.sge-date-cell.is-cursor:not(.is-selected) {
  box-shadow: inset 0 0 0 1px #223447;
}

.sge-date-cell.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sge-date-popup-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid #e3ebf4;
}

.sge-date-btn {
  border: 1px solid #d8e1ec;
  background: #fff;
  color: #223447;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 0.26rem 0.5rem;
}

.sge-date-btn:hover {
  border-color: #efaf43;
  color: #ef9f1a;
}

.sge-body[data-theme="dark"] .sge-date-popup {
  background: linear-gradient(180deg, #1a2536 0%, #151f2f 100%);
  border-color: #40516a;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52);
}

.sge-body[data-theme="dark"] .sge-date-time-col {
  border-left-color: #3b4655;
}

.sge-body[data-theme="dark"] .sge-time-title {
  color: #93a4bd;
}

.sge-body[data-theme="dark"] .sge-date-title {
  color: #e5e7eb;
}

.sge-body[data-theme="dark"] .sge-date-nav,
.sge-body[data-theme="dark"] .sge-date-btn,
.sge-body[data-theme="dark"] .sge-date-cell,
.sge-body[data-theme="dark"] .sge-time-item {
  background: #0f172a;
  border-color: #3b4655;
  color: #e5e7eb;
}

.sge-body[data-theme="dark"] .sge-date-cell:hover {
  background: #1f2937;
}

.sge-body[data-theme="dark"] .sge-date-cell.is-muted {
  color: #94a3b8;
}

.sge-body[data-theme="dark"] .sge-date-cell.is-selected {
  background: #efaf43;
  color: #111827;
}

.sge-body[data-theme="dark"] .sge-time-item:hover {
  border-color: #efaf43;
  background: #1f2937;
}

.sge-body[data-theme="dark"] .sge-time-item.is-selected {
  background: #efaf43;
  border-color: #efaf43;
  color: #111827;
}

.sge-body[data-theme="dark"] .sge-date-cell.is-cursor:not(.is-selected) {
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.sge-certificate-tabs {
  border-bottom-color: var(--sge-border-soft);
}

.sge-certificate-tabs .nav-link {
  color: #223447;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  font-weight: 500;
}

.sge-certificate-tabs .nav-link.active {
  color: var(--sge-ink-strong);
  font-weight: 600;
  background: #fff;
  border-color: var(--sge-border-soft);
  border-bottom-color: #fff;
}

.sge-body[data-theme="dark"] .sge-certificate-tabs .nav-link {
  color: #d7e3ef;
}

.sge-body[data-theme="dark"] .sge-certificate-tabs .nav-link.active {
  color: #f8fafc;
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.35);
  border-bottom-color: #0f172a;
}

.sge-icon-btn.is-copy {
  color: #2563eb;
}

.sge-icon-btn.is-copy:hover {
  background: rgba(37, 99, 235, 0.12);
}

.sge-cert-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.5rem;
}

.sge-cert-preset-item {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  padding: 0.4rem;
  text-align: left;
}

.sge-cert-preset-item.is-active {
  border-color: #efaf43;
  box-shadow: 0 0 0 1px rgba(239, 175, 67, 0.28);
}

.sge-cert-preset-preview {
  display: block;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.25rem;
}

.sge-cert-preset-preview.is-none { background: #fff; }
.sge-cert-preset-preview.is-light { background: linear-gradient(135deg, #ffffff, #f8fafc); }
.sge-cert-preset-preview.is-gold { background: linear-gradient(135deg, #fff6e2, #fef3c7); }
.sge-cert-preset-preview.is-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.sge-cert-preset-preview.is-gray { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }

.sge-cert-preset-label {
  font-size: 0.78rem;
  color: #334155;
}

.sge-cert-preview-pages {
  display: grid;
  gap: 1rem;
}

.sge-cert-sheet {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
}

.sge-cert-sheet.is-landscape {
  max-width: 980px;
}

.sge-cert-sheet.is-portrait {
  max-width: 760px;
}

.sge-cert-sheet-head {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.sge-cert-sheet-body {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  min-height: 52vh;
  max-height: 52vh;
  overflow: auto;
  padding: 1rem;
}

.sge-cert-sheet--fit {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.sge-cert-sheet-body--fit {
  min-height: auto;
  max-height: none;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sge-cert-overflow-warning {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #b45309;
}

.sge-cert-versions-list {
  display: grid;
  gap: 0.6rem;
}

.sge-cert-version-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.sge-body[data-theme="dark"] .sge-cert-preset-item,
.sge-body[data-theme="dark"] .sge-cert-sheet,
.sge-body[data-theme="dark"] .sge-cert-version-item {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.25);
}

.sge-body[data-theme="dark"] .sge-cert-preset-label {
  color: #dbe3ee;
}

.sge-body[data-theme="dark"] .sge-cert-sheet-body {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.35);
}

.sge-cert-limit-warning {
  color: #b45309;
  font-weight: 600;
}

.sge-cert-builder-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.sge-cert-builder-sidebar,
.sge-cert-side-card {
  display: grid;
  gap: 0.85rem;
}

.sge-cert-builder-block,
.sge-cert-side-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
}

.sge-cert-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sge-cert-builder-head h6 {
  margin: 0;
  font-size: 0.95rem;
}

.sge-cert-builder-head small {
  color: #64748b;
}

.sge-cert-variable-list {
  display: grid;
  gap: 0.45rem;
}

.sge-cert-variable-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.55rem 0.7rem;
  color: #223447;
  font-size: 0.85rem;
  text-align: left;
  cursor: grab;
}

.sge-cert-rule-box {
  border: 1px dashed #d6dee8;
  border-radius: 10px;
  padding: 0.7rem;
  background: #fafcff;
}

.sge-cert-builder-stage-wrap {
  display: grid;
  gap: 0.75rem;
}

.sge-cert-builder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.sge-cert-builder-toolbar-main {
  display: grid;
  gap: 0.15rem;
}

.sge-cert-builder-label {
  font-weight: 700;
  color: #223447;
}

.sge-cert-builder-helper {
  color: #64748b;
  font-size: 0.82rem;
}

.sge-cert-stage-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px dashed #d6dee8;
  border-radius: 12px;
  background: #fffaf0;
  color: #8a5a0c;
  font-size: 0.84rem;
  font-weight: 600;
}

.sge-cert-builder-stage,
.sge-cert-stage-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.sge-cert-builder-stage.is-drop-target {
  border-color: rgba(239, 175, 67, 0.65);
}

.sge-cert-builder-stage.is-drop-hover {
  box-shadow: inset 0 0 0 2px rgba(239, 175, 67, 0.25);
}

.sge-cert-builder-stage.is-landscape,
.sge-cert-stage-preview.is-landscape {
  aspect-ratio: 1.414 / 1;
  max-width: 100%;
}

.sge-cert-builder-stage.is-portrait,
.sge-cert-stage-preview.is-portrait {
  aspect-ratio: 1 / 1.414;
  width: min(100%, 620px);
  margin: 0 auto;
}

.sge-cert-builder-stage[data-preset="light"],
.sge-cert-stage-preview[data-preset="light"] {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.sge-cert-builder-stage[data-preset="gold"],
.sge-cert-stage-preview[data-preset="gold"] {
  background: linear-gradient(135deg, #fff5df, #fde68a);
}

.sge-cert-builder-stage[data-preset="blue"],
.sge-cert-stage-preview[data-preset="blue"] {
  background: linear-gradient(135deg, #eff6ff, #bfdbfe);
}

.sge-cert-builder-stage[data-preset="gray"],
.sge-cert-stage-preview[data-preset="gray"] {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.sge-cert-builder-overlay,
.sge-cert-stage-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sge-cert-builder-empty {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  border: 1px dashed #d9e2ec;
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  color: #64748b;
  text-align: center;
}

.sge-cert-layout-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #efaf43;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.96);
  padding: 0.45rem 0.65rem;
  color: #8a5a0c;
  font-size: 0.82rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
  cursor: grab;
  user-select: none;
  min-width: 120px;
  max-width: 320px;
  white-space: nowrap;
}

.sge-cert-layout-item i {
  font-size: 0.72rem;
}

.sge-cert-layout-item.is-preview {
  cursor: default;
  background: rgba(255, 255, 255, 0.92);
  color: #223447;
  border-color: #dbe4ee;
}

.sge-cert-layout-item.is-output {
  cursor: default;
  border: 0;
  background: transparent;
  color: #223447;
  padding: 0;
  gap: 0;
  min-width: 0;
  max-width: none;
}

.sge-cert-layout-item.is-output i {
  display: none;
}

.sge-cert-layout-item.is-active {
  box-shadow: 0 0 0 2px rgba(239, 175, 67, 0.24);
  background: rgba(255, 251, 235, 0.98);
}

.sge-cert-preset-meta {
  display: grid;
  gap: 0.1rem;
}

.sge-cert-preset-meta strong {
  font-size: 0.8rem;
  color: #223447;
}

.sge-cert-preset-meta small {
  color: #b45309;
  font-weight: 700;
}

.sge-cert-preset-item.is-default {
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.22);
}

.sge-cert-side-list {
  margin: 0;
  padding-left: 1rem;
  color: #475569;
}

.sge-cert-side-card .form-label {
  font-size: 0.76rem;
  margin-bottom: 0.2rem;
  color: #64748b;
}

.sge-cert-stage-preview {
  width: min(100%, 1000px);
  margin: 0 auto;
}

.sge-cert-preview-header h5 {
  color: #223447;
}

.sge-body[data-theme="dark"] .sge-cert-builder-block,
.sge-body[data-theme="dark"] .sge-cert-side-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

.sge-body[data-theme="dark"] .sge-cert-variable-btn,
.sge-body[data-theme="dark"] .sge-cert-rule-box,
.sge-body[data-theme="dark"] .sge-cert-builder-empty {
  background: #111c30;
  border-color: rgba(148, 163, 184, 0.24);
  color: #dbe3ee;
}

.sge-body[data-theme="dark"] .sge-cert-builder-label,
.sge-body[data-theme="dark"] .sge-cert-preset-meta strong,
.sge-body[data-theme="dark"] .sge-cert-preview-header h5 {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-cert-builder-helper {
  color: #94a3b8;
}

.sge-body[data-theme="dark"] .sge-cert-stage-tip {
  background: rgba(180, 83, 9, 0.14);
  border-color: rgba(239, 175, 67, 0.28);
  color: #f8fafc;
}

/* Accordions no tema escuro: padroniza contraste, borda e estado aberto. */
.sge-body[data-theme="dark"] .accordion-item {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}

.sge-body[data-theme="dark"] .accordion-button {
  background: #111c30;
  color: #f8fafc;
  box-shadow: none;
}

.sge-body[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: #172336;
  color: #ffd089;
}

.sge-body[data-theme="dark"] .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(88%) sepia(7%) saturate(1090%) hue-rotate(182deg) brightness(97%) contrast(91%);
}

.sge-body[data-theme="dark"] .accordion-body {
  background: #0f172a;
  color: #dbe3ee;
}

@media (max-width: 991px) {
  .sge-cert-builder-shell {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   EVOLUCAO DO SISTEMA
   Bloco visual dedicado ao modulo de rastreabilidade tecnica.
   ========================================================= */
.sge-evo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: var(--sge-evo-hero-padding-y, 1.4rem) var(--sge-evo-hero-padding-x, 1.5rem);
  border: 1px solid var(--sge-evo-hero-border-color, #e5edf5);
  border-radius: var(--sge-evo-hero-radius, 22px);
  background:
    radial-gradient(circle at top left, rgba(239, 175, 67, 0.16), transparent 42%),
    linear-gradient(135deg, var(--sge-evo-hero-bg-solid, #ffffff) 0%, #fbfdff 58%, #f7fafc 100%);
  box-shadow: var(--sge-evo-hero-shadow, 0 18px 40px rgba(15, 23, 42, 0.05));
}

.sge-evo-hero--compact {
  padding: calc(var(--sge-evo-hero-padding-y, 1.4rem) - 0.2rem) calc(var(--sge-evo-hero-padding-x, 1.5rem) - 0.15rem);
}

.sge-evo-hero--detail {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sge-evo-hero-copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.sge-evo-hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: var(--sge-evo-hero-kicker-bg, rgba(239, 175, 67, 0.14));
  color: var(--sge-evo-hero-kicker-color, #a35f00);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sge-evo-hero-title {
  margin: 0;
  color: var(--sge-evo-hero-title-color, #203548);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.sge-evo-hero-text {
  max-width: none;
  color: var(--sge-evo-hero-text-color, #5b6c7d);
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsividade do hero em telas intermediárias. */
@media (max-width: 1199px) {
  .sge-evo-hero-text {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.sge-evo-hero-side {
  display: flex;
  width: fit-content;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.sge-evo-hero-side:empty {
  display: none;
}

.sge-evo-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.sge-evo-hero--detail .sge-evo-hero-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
}

.sge-evo-hero-total {
  min-width: 160px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 175, 67, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.sge-evo-hero-total small {
  display: block;
  color: #6b7b8c;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sge-evo-hero-total strong {
  display: block;
  color: #203548;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sge-evo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: stretch;
  gap: 0.85rem;
}

.sge-evo-stat-card {
  position: relative;
  min-width: 0;
  padding: 0.78rem 0.82rem;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.sge-evo-stat-card.is-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sge-evo-stat-card.is-link:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 175, 67, 0.32);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.sge-evo-stat-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  border-radius: 10px;
  background: #fff6e7;
  color: #c78212;
  font-size: 0.88rem;
}

.sge-evo-stat-card small {
  display: block;
  color: #6a7b8d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.sge-evo-stat-card strong {
  display: block;
  margin-top: 0.22rem;
  color: #203548;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sge-toolbar-form--system-evolution {
  grid-template-columns: minmax(240px, 1.8fr) repeat(4, minmax(150px, 1fr)) minmax(170px, 0.95fr) minmax(170px, 0.95fr);
}

.sge-toolbar-form--system-evolution input[type="date"].sge-select {
  min-width: 170px;
}

.sge-evo-filter-card {
  border-radius: var(--sge-surface-card-radius, 22px);
  overflow: visible;
  box-shadow: var(--sge-surface-card-shadow, none);
}

.sge-evo-filter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sge-evo-filter-head h6 {
  color: #203548;
}

.sge-evo-table-card {
  border-radius: var(--sge-surface-card-radius, 22px);
  box-shadow: var(--sge-surface-card-shadow, none);
}

.sge-evo-form-card .form-control[readonly] {
  background: #f8fafc;
}

.sge-evo-form-card {
  border-radius: var(--sge-surface-card-radius, 22px);
  overflow: visible;
  box-shadow: var(--sge-surface-card-shadow, none);
}

.sge-evo-form-section {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--sge-surface-card-border, #edf2f7);
  border-radius: calc(var(--sge-surface-card-radius, 18px) - 4px);
  background: linear-gradient(180deg, var(--sge-surface-card-bg, #ffffff) 0%, color-mix(in srgb, var(--sge-surface-card-bg, #ffffff) 88%, #fbfdff) 100%);
}

.sge-evo-detail-surface,
.sge-evo-side-panel {
  border-radius: var(--sge-surface-card-radius, 22px);
  overflow: visible;
  box-shadow: var(--sge-surface-card-shadow, none);
}

.sge-evo-filter-card .card-body,
.sge-evo-form-card .card-body,
.sge-evo-side-panel .card-body {
  overflow: visible;
}

.sge-evo-recent-card,
.sge-evo-release-row {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--sge-surface-card-border, #e8eef5);
  border-radius: calc(var(--sge-surface-card-radius, 18px) + 4px);
  background: linear-gradient(180deg, var(--sge-surface-card-bg, #ffffff) 0%, color-mix(in srgb, var(--sge-surface-card-bg, #ffffff) 88%, #fbfdff) 100%);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sge-evo-recent-card strong,
.sge-evo-release-row strong,
.sge-evo-release-row h6 {
  color: #203548;
}

.sge-evo-recent-card:hover,
.sge-evo-release-row:hover {
  border-color: rgba(239, 175, 67, 0.38);
  box-shadow: var(--sge-surface-card-shadow, 0 12px 24px rgba(15, 23, 42, 0.05));
  transform: translateY(-1px);
}

.sge-evo-progress-strip {
  display: grid;
  gap: 0.45rem;
}

.sge-evo-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.sge-evo-progress-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.sge-evo-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #efaf43 0%, #f59e0b 100%);
}

.sge-evo-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sge-evo-overview-card {
  gap: 0.35rem;
  box-shadow: var(--sge-surface-card-shadow, 0 12px 26px rgba(15, 23, 42, 0.035));
}

.sge-evo-title-block {
  display: grid;
  gap: 0.35rem;
}

.sge-evo-meta-card,
.sge-evo-note-box {
  border: 1px solid var(--sge-surface-card-border, #e5edf5);
  border-radius: var(--sge-surface-card-radius, 14px);
  background: linear-gradient(180deg, var(--sge-surface-card-bg, #ffffff) 0%, color-mix(in srgb, var(--sge-surface-card-bg, #ffffff) 88%, #fbfdff) 100%);
  padding: 0.78rem 0.9rem 0.72rem;
  box-shadow: var(--sge-surface-card-shadow, none);
}

.sge-evo-meta-card {
  height: 100%;
  display: grid;
  gap: 0.4rem;
  padding: 0.72rem 0.82rem 0.68rem;
}

.sge-evo-meta-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.sge-evo-meta-card-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border-radius: 10px;
  background: #fff6e7;
  color: #c78212;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.sge-evo-meta-card small,
.sge-evo-note-box small {
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.sge-evo-meta-card strong,
.sge-evo-note-box div {
  color: #223447;
  font-size: 0.88rem;
  line-height: 1.35;
}

.sge-evo-note-box--timeline {
  display: grid;
  gap: 0.35rem;
  height: auto;
  min-height: 0;
  border-style: dashed;
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.sge-evo-side-panel {
  position: relative;
  z-index: 3;
}

.sge-evo-side-panel .form-select,
.sge-evo-side-panel .form-control {
  position: relative;
  z-index: 2;
}

.sge-evo-checklist-builder {
  padding: 0.75rem;
  border: 1px solid var(--sge-surface-card-border, #e5edf5);
  border-radius: calc(var(--sge-surface-card-radius, 16px) + 2px);
  background: linear-gradient(180deg, var(--sge-surface-card-bg, #ffffff) 0%, color-mix(in srgb, var(--sge-surface-card-bg, #ffffff) 88%, #fbfdff) 100%);
}

.sge-evo-checklist-list {
  display: grid;
  gap: 0.55rem;
}

.sge-evo-checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--sge-surface-card-border, #edf2f7);
  border-radius: calc(var(--sge-surface-card-radius, 12px) - 2px);
  background: var(--sge-surface-card-bg, #fff);
}

.sge-evo-checklist-text {
  color: #223447;
  font-size: 0.9rem;
  line-height: 1.35;
}

.sge-evo-checklist-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sge-evo-checklist-view {
  display: grid;
  gap: 0.4rem;
}

.sge-evo-checklist-view-item {
  display: flex;
  align-items: start;
  gap: 0.55rem;
  color: #475569;
  font-size: 0.88rem;
}

.sge-evo-checklist-view-item i {
  margin-top: 0.15rem;
  color: #94a3b8;
}

.sge-evo-checklist-view-item.is-done {
  color: #1f2937;
}

.sge-evo-checklist-view-item.is-done i {
  color: #16a34a;
}

.sge-evo-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.sge-evo-timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.58rem;
  width: 1px;
  background: linear-gradient(180deg, #ffd089 0%, #dbe4ee 100%);
}

.sge-evo-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1rem;
}

.sge-evo-timeline-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 0.45rem;
  border: 3px solid #fff4db;
  border-radius: 999px;
  background: #efaf43;
  box-shadow: 0 0 0 1px rgba(239, 175, 67, 0.16);
}

.sge-evo-timeline-card {
  border: 1px solid var(--sge-surface-card-border, #e5edf5);
  border-radius: calc(var(--sge-surface-card-radius, 16px) + 2px);
  background: var(--sge-surface-card-bg, #fff);
  padding: 1rem 1rem 0.95rem;
  box-shadow: var(--sge-surface-card-shadow, 0 10px 24px rgba(15, 23, 42, 0.04));
}

.sge-evo-timeline-card strong {
  color: #203548;
}

.sge-evo-timeline-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff6e7;
  color: #c78212;
  font-size: 0.88rem;
}

.sge-evo-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sge-evo-side-block {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid var(--sge-surface-card-border, #e5edf5);
  border-radius: calc(var(--sge-surface-card-radius, 18px) + 4px);
  background: linear-gradient(180deg, var(--sge-surface-card-bg, #ffffff) 0%, color-mix(in srgb, var(--sge-surface-card-bg, #ffffff) 88%, #fbfdff) 100%);
  box-shadow: var(--sge-surface-card-shadow, none);
}

.sge-evo-lock-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 175, 67, 0.3);
  border-radius: 18px;
  background: #fff8ea;
  color: #7c5608;
}

.sge-evo-lock-notice i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(239, 175, 67, 0.16);
  color: #b7791f;
}

.sge-evo-lock-notice strong {
  display: block;
  font-size: 0.94rem;
  color: #6f4d09;
}

.sge-evo-lock-notice p {
  color: #8b6a2e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.sge-evo-side-panel fieldset[disabled] {
  opacity: 0.68;
}

.sge-evo-side-block-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.sge-evo-side-block-head strong {
  display: block;
  color: #203548;
  font-size: 0.95rem;
}

.sge-evo-side-block-head p {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.sge-evo-side-block-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff6e7;
  color: #c78212;
  font-size: 1rem;
}

.sge-evo-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sge-evo-confirm-card {
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.sge-evo-confirm-card input {
  margin: 0;
}

.sge-evo-confirm-copy {
  display: grid;
  gap: 0.15rem;
}

.sge-evo-confirm-copy strong {
  color: #223447;
  font-size: 0.92rem;
}

.sge-evo-confirm-copy small {
  color: #64748b;
  font-size: 0.78rem;
}

.sge-evo-confirm-card.is-done {
  border-color: rgba(34, 197, 94, 0.32);
  background: #f0fdf4;
}

.sge-evo-timeline--compact {
  gap: 0.8rem;
}

.sge-evo-timeline--compact .sge-evo-timeline-card {
  padding: 0.85rem 0.95rem;
}

.sge-body[data-theme="dark"] .sge-evo-meta-card,
.sge-body[data-theme="dark"] .sge-evo-note-box,
.sge-body[data-theme="dark"] .sge-evo-timeline-card,
.sge-body[data-theme="dark"] .sge-evo-stat-card,
.sge-body[data-theme="dark"] .sge-evo-overview-card,
.sge-body[data-theme="dark"] .sge-evo-form-section,
.sge-body[data-theme="dark"] .sge-evo-filter-card,
.sge-body[data-theme="dark"] .sge-evo-recent-card,
.sge-body[data-theme="dark"] .sge-evo-release-row,
.sge-body[data-theme="dark"] .sge-evo-checklist-builder,
.sge-body[data-theme="dark"] .sge-evo-checklist-item,
.sge-body[data-theme="dark"] .sge-evo-side-block,
.sge-body[data-theme="dark"] .sge-evo-confirm-card {
  border-color: var(--sge-dark-card-border-custom, rgba(148, 163, 184, 0.2));
  background: linear-gradient(180deg, var(--sge-dark-card-bg-custom, #0f172a) 0%, color-mix(in srgb, var(--sge-dark-card-bg-custom, #0f172a) 84%, #111c30) 100%);
}

.sge-body[data-theme="dark"] .sge-evo-hero {
  border-color: var(--sge-evo-hero-border-color, rgba(148, 163, 184, 0.2));
  background:
    radial-gradient(circle at top left, rgba(239, 175, 67, 0.16), transparent 42%),
    linear-gradient(135deg, var(--sge-evo-hero-bg-solid, #0f172a) 0%, color-mix(in srgb, var(--sge-evo-hero-bg-solid, #0f172a) 82%, #111827) 58%, color-mix(in srgb, var(--sge-evo-hero-bg-solid, #0f172a) 75%, #101b2d) 100%);
}

.sge-body[data-theme="dark"] .sge-evo-hero-total {
  border-color: rgba(239, 175, 67, 0.18);
  background: rgba(15, 23, 42, 0.7);
}

.sge-body[data-theme="dark"] .sge-evo-hero-title,
.sge-body[data-theme="dark"] .sge-evo-hero-total strong,
.sge-body[data-theme="dark"] .sge-evo-stat-card strong,
.sge-body[data-theme="dark"] .sge-evo-meta-card strong,
.sge-body[data-theme="dark"] .sge-evo-timeline-card strong,
.sge-body[data-theme="dark"] .sge-evo-recent-card strong,
.sge-body[data-theme="dark"] .sge-evo-release-row strong,
.sge-body[data-theme="dark"] .sge-evo-release-row h6,
.sge-body[data-theme="dark"] .sge-evo-note-box div,
.sge-body[data-theme="dark"] .sge-evo-checklist-text,
.sge-body[data-theme="dark"] .sge-evo-side-block-head strong,
.sge-body[data-theme="dark"] .sge-evo-confirm-copy strong,
.sge-body[data-theme="dark"] .sge-evo-filter-head h6,
.sge-body[data-theme="dark"] .sge-evo-title-block h5 {
  color: var(--sge-evo-hero-title-color, #f8fafc);
}

.sge-body[data-theme="dark"] .sge-evo-hero-text,
.sge-body[data-theme="dark"] .sge-evo-hero-total small,
.sge-body[data-theme="dark"] .sge-evo-stat-card small,
.sge-body[data-theme="dark"] .sge-evo-meta-card small,
.sge-body[data-theme="dark"] .sge-evo-note-box small,
.sge-body[data-theme="dark"] .sge-evo-recent-card .text-muted,
.sge-body[data-theme="dark"] .sge-evo-release-row .text-muted,
.sge-body[data-theme="dark"] .sge-evo-title-block p,
.sge-body[data-theme="dark"] .sge-evo-side-block-head p,
.sge-body[data-theme="dark"] .sge-evo-confirm-copy small,
.sge-body[data-theme="dark"] .sge-evo-timeline-card .text-muted,
.sge-body[data-theme="dark"] .sge-evo-filter-head .text-muted,
.sge-body[data-theme="dark"] .sge-evo-checklist-view-item,
.sge-body[data-theme="dark"] .sge-evo-form-card .form-control[readonly] {
  color: var(--sge-evo-hero-text-color, #94a3b8) !important;
}

.sge-body[data-theme="dark"] .sge-evo-hero-kicker {
  background: rgba(255, 184, 77, 0.14);
  border: 1px solid rgba(255, 184, 77, 0.22);
  color: #ffd48e;
}

.sge-body[data-theme="dark"] .sge-evo-stat-icon,
.sge-body[data-theme="dark"] .sge-evo-meta-card-icon,
.sge-body[data-theme="dark"] .sge-evo-timeline-icon,
.sge-body[data-theme="dark"] .sge-evo-side-block-icon {
  background: rgba(239, 175, 67, 0.14);
  color: #ffd089;
}

.sge-body[data-theme="dark"] .sge-evo-confirm-card.is-done {
  border-color: rgba(34, 197, 94, 0.32);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.18) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.sge-body[data-theme="dark"] .sge-evo-note-box--timeline {
  border-color: rgba(239, 175, 67, 0.18);
  background: linear-gradient(180deg, rgba(239, 175, 67, 0.08) 0%, rgba(15, 23, 42, 0.96) 100%);
}

/* Educação: shell visual alinhado ao padrão aplicado em Demandas. */
.sge-education-page {
  display: grid;
  gap: 1rem;
}

.sge-education-page .sge-toolbar,
.sge-education-page .sge-coupon-organizer,
.sge-education-page .sge-edu-settings-intro,
.sge-education-page .sge-settings-tabs,
.sge-education-page .sge-edu-settings-panel,
.sge-education-page .sge-edu-box,
.sge-education-page .sge-status-hub-card,
.sge-education-page .sge-table-card,
.sge-education-page .sge-coupon-form,
.sge-education-page .cert-v2-shell {
  border: 1px solid var(--sge-surface-card-border, #e5edf5);
  border-radius: calc(var(--sge-surface-card-radius, 14px) + 4px);
  background: var(--sge-surface-card-bg, #fff);
  box-shadow: var(--sge-surface-card-shadow, 0 10px 24px rgba(15, 23, 42, 0.04));
}

.sge-education-page .sge-toolbar,
.sge-education-page .sge-coupon-organizer,
.sge-education-page .sge-edu-settings-intro,
.sge-education-page .sge-settings-tabs,
.sge-education-page .sge-edu-settings-panel,
.sge-education-page .sge-status-hub-card,
.sge-education-page .sge-coupon-form .card-body,
.sge-education-page .cert-v2-shell .card-body {
  padding: 0.8rem;
}

.sge-education-page .sge-toolbar {
  margin-bottom: 0;
}

.sge-education-page .sge-status-hub-grid,
.sge-education-page .row.g-3.mb-3 {
  margin-bottom: 0 !important;
}

.sge-education-page .sge-status-hub-card {
  overflow: hidden;
}

.sge-teaching-hero-side {
  width: fit-content;
}

.sge-teaching-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
}

.sge-evo-hero--detail .sge-teaching-hero-actions {
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.sge-teaching-hero-text {
  max-width: none;
}

.sge-teaching-status-hub {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sge-teaching-status-hub--form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-table-card--courses .sge-action-group {
  display: inline-flex;
  opacity: 1;
  visibility: visible;
}

.sge-table-card--courses .sge-col-status {
  text-align: center;
}

.sge-table-card--courses .sge-course-status-form {
  display: flex;
  justify-content: center;
}

.sge-table-card--courses .sge-status-inline {
  min-width: 122px;
  width: 122px;
  padding-left: 0.55rem;
  padding-right: 1.75rem;
  font-weight: 700;
}

.sge-table-card--courses .sge-icon-btn,
.sge-table-card--courses .sge-icon-btn i {
  color: rgba(47, 62, 65, 0.82);
  opacity: 1;
}

.sge-table-card--courses .sge-col-actions {
  width: 172px;
}

.sge-table-card--courses .sge-action-group--teaching {
  gap: 0.12rem;
}

.sge-table-card--courses .sge-action-group--teaching .sge-icon-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.sge-table-card--courses .sge-icon-btn:hover,
.sge-table-card--courses .sge-icon-btn:hover i {
  color: #34495e;
}

.sge-table-card--courses .sge-icon-btn.is-edit {
  color: #1d4ed8;
}

.sge-table-card--courses .sge-icon-btn.is-message {
  color: #0f766e;
}

.sge-table-card--courses .sge-icon-btn.is-schedule {
  color: #c2410c;
}

.sge-table-card--courses .sge-icon-btn.is-copy {
  color: #7c3aed;
}

.sge-table-card--courses .sge-icon-btn.is-edit:hover {
  background: rgba(37, 99, 235, 0.10);
}

.sge-table-card--courses .sge-icon-btn.is-message:hover {
  background: rgba(13, 148, 136, 0.10);
}

.sge-table-card--courses .sge-icon-btn.is-schedule:hover {
  background: rgba(234, 88, 12, 0.10);
}

.sge-table-card--courses .sge-icon-btn.is-copy:hover {
  background: rgba(124, 58, 237, 0.10);
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-icon-btn,
.sge-body[data-theme="dark"] .sge-table-card--courses .sge-icon-btn i {
  color: #e5edf5 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-action-group--teaching .sge-icon-btn {
  background: transparent;
  box-shadow: none;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-icon-btn.is-edit {
  color: #93c5fd !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-icon-btn.is-message {
  color: #99f6e4 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-icon-btn.is-schedule {
  color: #fdba74 !important;
}

.sge-body[data-theme="dark"] .sge-table-card--courses .sge-icon-btn.is-copy {
  color: #c4b5fd !important;
}

/* Ajustes responsivos de colunas operacionais para tablet e mobile. */
@media (max-width: 991px) {
  .sge-table-card--courses .sge-col-status {
    width: 118px;
  }

  .sge-table-card--courses .sge-status-inline {
    min-width: 110px;
    width: 110px;
  }

  .sge-table-card--courses .sge-col-actions {
    width: 150px;
  }
}

@media (max-width: 767px) {
  .sge-col-actions {
    width: 118px;
    white-space: normal;
  }

  .sge-col-status {
    width: 112px;
  }

  .sge-table-card--courses .sge-col-actions {
    width: 132px;
  }

  .sge-table-card--courses .sge-action-group {
    gap: 0.08rem;
  }

  .sge-table-card--courses .sge-status-inline {
    min-width: 102px;
    width: 102px;
    font-size: 10px;
  }
}

/* ==========================| SIDEBAR - REDESIGN MINIMAL |========================== */
.sge-sidebar {
  padding: 14px 10px 12px;
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(245, 158, 11, 0.08), transparent 72%),
    linear-gradient(180deg, #141a23 0%, #0d1219 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top-width: 3px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sge-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sge-sidebar-welcome {
  margin: 0 6px 12px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sge-sidebar-welcome-label {
  font-size: 10px;
  letter-spacing: 1.1px;
  color: rgba(248, 250, 252, 0.52);
}

.sge-sidebar-welcome-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sge-nav {
  gap: 6px;
}

.sge-nav-group {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sge-nav-item,
.sge-nav-toggle {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 10px;
  gap: 9px;
  color: rgba(226, 232, 240, 0.88);
}

.sge-nav-item:hover,
.sge-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: none;
}

.sge-nav-item.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.18);
  color: #fff;
  box-shadow: 0 10px 18px rgba(245, 158, 17, 0.1);
}

.sge-nav-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.92);
  font-size: 11px;
  box-shadow: none;
}

.sge-nav-item.active .sge-nav-item-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sge-nav-label {
  font-size: 13px;
}

.sge-nav-group.open .sge-nav-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}

.sge-submenu {
  margin: 4px 0;
  padding: 2px 0 2px 14px;
}

.sge-submenu::before {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.02));
}

.sge-subitem {
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.76);
}

.sge-subitem:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sge-subitem.active {
  color: #fdba74;
  background: rgba(245, 158, 11, 0.08);
}


.sge-body[data-theme="dark"] .sge-sidebar {
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(255, 184, 108, 0.08), transparent 72%),
    linear-gradient(180deg, #10151d 0%, #0b1118 100%);
}

.sge-education-page .sge-coupon-organizer {
  margin-bottom: 0;
}

.sge-education-page .sge-settings-tabs {
  gap: 0.75rem;
}

.sge-education-page .sge-settings-tab {
  border-radius: 14px;
}

.sge-education-page .sge-edu-settings-intro,
.sge-education-page .sge-edu-settings-panel,
.sge-education-page .sge-edu-box {
  margin-bottom: 0;
}

.sge-education-page .sge-coupon-section-title,
.sge-education-page .sge-status-hub-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  color: #203548;
  font-size: 0.95rem;
  font-weight: 700;
}

.sge-education-page .sge-coupon-section-title i,
.sge-education-page .sge-status-hub-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sge-btn-primary-bg-solid, #ff9e00) 14%, white);
  color: color-mix(in srgb, var(--sge-btn-primary-bg-solid, #ff9e00) 72%, #7c4a00);
  flex: 0 0 auto;
}

.sge-education-page .sge-status-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sge-education-page .sge-status-hub-chip {
  color: #223447;
  font-size: 1rem;
  font-weight: 800;
}

.sge-education-page .sge-coupon-form .card-footer {
  border-top: 1px solid #e5edf5;
  background: transparent;
}

/* Certificados: ritmo vertical alinhado ao shell executivo do modulo. */
.sge-education-page--certificates {
  gap: 1rem;
}

.sge-education-page--certificates .sge-certificates-hero,
.sge-education-page--certificates .sge-certificates-stats,
.sge-education-page--certificates .sge-certificates-toolbar,
.sge-education-page--certificates .sge-table-card,
.sge-education-page--certificates .sge-certificates-pagination {
  margin: 0;
}

.sge-education-page--certificates .sge-certificates-stats {
  gap: 0.85rem;
}

.sge-education-page--certificates .sge-certificates-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sge-education-page--certificates .sge-certificates-hero-side {
  width: fit-content;
  min-width: 0;
  justify-self: end;
  gap: 0;
}

.sge-education-page--certificates .sge-certificates-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.sge-education-page--certificates .sge-certificates-hero-text {
  max-width: none;
  white-space: nowrap;
}

.sge-education-page--certificates .sge-certificates-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sge-education-page--certificates .sge-certificates-toolbar {
  padding: 1rem 1.1rem;
}

.sge-education-page--certificates .sge-certificates-filters-active {
  margin-top: -0.55rem;
}

.sge-education-page--certificates .sge-certificates-table-card {
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 12px 28px -32px rgba(15, 23, 42, 0.14);
}

.sge-education-page--certificates .sge-certificates-table-card .sge-thead th {
  color: #425a78;
  letter-spacing: 0.02em;
}

.sge-education-page--certificates .sge-action-group--certificates {
  gap: 0.25rem;
  justify-content: center;
}

.sge-education-page--certificates .sge-action-group--certificates .sge-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.sge-education-page--certificates .sge-certificates-pagination {
  display: flex;
  justify-content: flex-end;
}

/* Ensino: mesmo ritmo vertical de Certificados, sem utilitários soltos no template. */
.sge-education-page--teaching .sge-teaching-hero,
.sge-education-page--teaching .sge-teaching-stats,
.sge-education-page--teaching .sge-teaching-toolbar,
.sge-education-page--teaching .sge-table-card--courses {
  margin: 0;
}

.sge-education-page--teaching .sge-teaching-stats {
  gap: 0.85rem;
}

.sge-education-page--teaching .sge-teaching-toolbar {
  padding: 1rem 1.1rem;
}

.sge-education-page--teaching .sge-teaching-filters-active {
  margin-top: -0.55rem;
}

.sge-education-page--teaching-form {
  gap: 1rem;
}

.sge-education-page--teaching-form .sge-teaching-form-hero,
.sge-education-page--teaching-form .sge-teaching-form-stats,
.sge-education-page--teaching-form .sge-teaching-template-bar,
.sge-education-page--teaching-form .sge-teaching-tabs-shell {
  margin: 0;
}

/* Cadastro de ensino no mesmo padrão visual aplicado em Novo cupom:
   remove o shell externo das abas e mantém apenas os blocos internos. */
.sge-education-page--teaching-form .sge-teaching-tabs-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.sge-education-page--teaching-form .sge-teaching-tabs-head {
  border: 0;
  padding-bottom: 0;
}

.sge-education-page--teaching-form .sge-teaching-tabs-nav-integrated {
  background: transparent;
  border: 0;
  padding: 0;
}

.sge-education-page--teaching-form .sge-teaching-tab-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sge-education-page--teaching-form .sge-teaching-tab-panel .card-body {
  padding: 0 !important;
}

/* Cadastro de ensino: remove qualquer borda residual no painel das abas. */
.sge-education-page--teaching-form .sge-teaching-create-section.sge-teaching-tab-panel {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: 0 !important;
}

.sge-education-page--teaching-form .sge-teaching-create-section.sge-teaching-tab-panel::before,
.sge-education-page--teaching-form .sge-teaching-create-section.sge-teaching-tab-panel::after {
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Matriculas: shell com ritmo vertical padronizado e sem abas inativas. */
.sge-education-page--enrollments {
  gap: 1rem;
}

.sge-education-page--enrollments .sge-enrollments-hero,
.sge-education-page--enrollments .sge-enrollments-stats-primary,
.sge-education-page--enrollments .sge-enrollments-toolbar,
.sge-education-page--enrollments .sge-enrollments-filters-active,
.sge-education-page--enrollments .sge-table-card {
  margin: 0;
}

.sge-education-page--enrollments .sge-enrollments-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sge-education-page--enrollments .sge-enrollments-hero-side {
  width: fit-content;
  min-width: 0;
  justify-self: end;
  gap: 0;
}

.sge-education-page--enrollments .sge-enrollments-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
}

.sge-education-page--enrollments .sge-enrollments-hero-actions .btn {
  justify-content: center;
}

.sge-education-page--enrollments .sge-enrollments-stats-primary {
  gap: 0.85rem;
}

.sge-education-page--enrollments .sge-enrollments-stats-primary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sge-education-page--enrollments-audit {
  gap: 1rem;
}

.sge-education-page--enrollments-audit .sge-enrollments-audit-hero,
.sge-education-page--enrollments-audit .sge-enrollments-audit-stats,
.sge-education-page--enrollments-audit .sge-toolbar,
.sge-education-page--enrollments-audit .sge-filters-active,
.sge-education-page--enrollments-audit .sge-table-card {
  margin: 0;
}

.sge-education-page--enrollments-audit .sge-enrollments-audit-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sge-education-page--enrollments-audit .sge-enrollments-audit-hero-side {
  width: fit-content;
  min-width: 0;
  justify-self: end;
}

.sge-education-page--enrollments-audit .sge-enrollments-audit-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
}

.sge-education-page--enrollments-audit .sge-enrollments-audit-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1200px) {
  .sge-education-page--enrollments-audit .sge-enrollments-audit-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sge-education-page--enrollments-audit .sge-enrollments-audit-stats {
    grid-template-columns: 1fr;
  }
}

.sge-education-page--enrollments .sge-enrollments-stats-primary .sge-status-hub-card {
  border-color: rgba(15, 23, 42, 0.09);
  background: #ffffff;
  box-shadow: 0 10px 24px -30px rgba(15, 23, 42, 0.14);
}

.sge-education-page--enrollments .sge-enrollments-stats-primary .sge-status-hub-title {
  color: #18324b;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sge-education-page--enrollments .sge-enrollments-stats-primary .sge-status-hub-chip {
  font-size: 1.08rem;
  font-weight: 800;
}

.sge-education-page--enrollments .sge-enrollments-stats-primary .sge-status-hub-icon {
  background: rgba(255, 158, 0, 0.09);
  color: #b86f00;
}

.sge-education-page--enrollments .sge-enrollments-toolbar,
.sge-education-page--enrollments .sge-table-card--enrollments .card-footer {
  padding: 1rem 1.1rem;
}

.sge-education-page--enrollments .sge-enrollments-toolbar {
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #ffffff;
  box-shadow: 0 10px 24px -30px rgba(15, 23, 42, 0.14);
}

.sge-education-page--enrollments .sge-search input,
.sge-education-page--enrollments .sge-select {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fbfcfe;
}

.sge-education-page--enrollments .sge-search input:focus,
.sge-education-page--enrollments .sge-select:focus {
  background: #ffffff;
}

@media (max-width: 1400px) {
  .sge-education-page--enrollments .sge-enrollments-stats-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .sge-education-page--enrollments .sge-enrollments-stats-primary {
    grid-template-columns: 1fr;
  }

  .sge-education-page--enrollments .sge-enrollments-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sge-toolbar-form--enrollments .sge-enrollments-toolbar-row {
    flex-direction: column;
  }

  .sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--date,
  .sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--status {
    flex: 1 1 auto;
    width: 100%;
  }
}

.sge-toolbar-form--enrollments {
  display: block;
  width: 100%;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-row--single {
  justify-content: space-between;
}

.sge-toolbar-form--enrollments .sge-search,
.sge-toolbar-form--enrollments .sge-select {
  width: 100%;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot {
  min-width: 0;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--student,
.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--teaching {
  flex: 1 1 0;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--date {
  flex: 0 0 11.5rem;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--source {
  flex: 0 0 16.5ch;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--status {
  flex: 0 0 9.5ch;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--payment-state {
  flex: 0 0 13ch;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--pricing-source {
  flex: 0 0 14ch;
}

.sge-toolbar-form--enrollments .sge-enrollments-toolbar-slot--per-page {
  flex: 0 0 12.5ch;
}

.sge-toolbar-form--enrollments #date_from,
.sge-toolbar-form--enrollments #date_to,
.sge-toolbar-form--enrollments #source,
.sge-toolbar-form--enrollments #pricing_source,
.sge-toolbar-form--enrollments #payment_state,
.sge-toolbar-form--enrollments #status {
  text-align: center;
  text-align-last: center;
}

.sge-toolbar-form--enrollments .sge-search input,
.sge-toolbar-form--enrollments .sge-select {
  min-width: 0;
}

.sge-toolbar-form--enrollments input[type="date"].sge-select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
}

.sge-toolbar-form--enrollments #source {
  min-width: 16.5ch;
}

.sge-toolbar-form--enrollments #pricing_source {
  min-width: 14ch;
}

.sge-toolbar-form--enrollments #status {
  min-width: 9.5ch;
}

.sge-toolbar-form--enrollments #payment_state {
  min-width: 13ch;
}

.sge-toolbar-form--enrollments #per_page {
  min-width: 12.5ch;
  text-align: center;
  text-align-last: center;
}

.sge-education-page--enrollments .sge-enrollments-filters-active {
  margin-top: -0.55rem;
}

.sge-education-page--enrollments .sge-enrollments-filters-active .sge-filter-chips {
  padding: 0.15rem 0.1rem 0;
}

.sge-education-page--enrollments .sge-enrollments-filters-active .sge-chip,
.sge-education-page--enrollments .sge-enrollments-filters-active .sge-chip-clear {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px -20px rgba(15, 23, 42, 0.16);
}

.sge-education-page--enrollments .sge-enrollment-user-cell .sge-course-name,
.sge-education-page--enrollments .sge-enrollment-target-name,
.sge-education-page--enrollments .sge-invest-main {
  color: #18324b;
  font-weight: 700;
}

.sge-education-page--enrollments .sge-enrollment-target-cell {
  vertical-align: middle;
  text-align: left;
  min-width: 320px;
  width: 34%;
}

.sge-education-page--enrollments .sge-enrollment-target-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}

.sge-education-page--enrollments .sge-enrollment-target-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  min-width: 0;
}

.sge-education-page--enrollments .sge-enrollment-target-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.sge-education-page--enrollments .sge-enrollment-target-badge {
  font-size: 0.56rem;
  flex: 0 0 auto;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.9;
  line-height: 1.02;
}

.sge-education-page--enrollments .sge-enrollment-target-name {
  display: block;
  flex: 0 1 100%;
  min-width: 0;
  max-width: 42ch;
  color: #1a3550;
  font-size: 0.72rem;
  line-height: 1.08;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sge-education-page--enrollments .sge-enrollment-target-badge--category {
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sge-education-page--enrollments .sge-progress-cell {
  min-width: 118px;
  max-width: 132px;
}

.sge-education-page--enrollments .sge-col-start-date,
.sge-education-page--enrollments .sge-col-progress,
.sge-education-page--enrollments .sge-col-enrolled,
.sge-education-page--enrollments .sge-col-receipt,
.sge-education-page--enrollments .sge-col-status,
.sge-education-page--enrollments .sge-col-actions {
  width: 1%;
  white-space: nowrap;
}

.sge-education-page--enrollments .sge-col-ref {
  min-width: 108px;
  white-space: nowrap;
}

.sge-education-page--enrollments .sge-col-start-date {
  min-width: 108px;
  padding-left: 0.52rem !important;
  padding-right: 0.52rem !important;
}

.sge-education-page--enrollments .sge-col-progress {
  min-width: 102px;
  padding-left: 0.52rem !important;
  padding-right: 0.52rem !important;
}

.sge-education-page--enrollments .sge-col-enrolled {
  min-width: 110px;
  padding-left: 0.52rem !important;
  padding-right: 0.52rem !important;
}

.sge-education-page--enrollments .sge-col-receipt {
  min-width: 118px;
  padding-left: 0.52rem !important;
  padding-right: 0.52rem !important;
}

.sge-education-page--enrollments .sge-enrollment-progress {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.sge-education-page--enrollments .sge-enrollment-progress-track {
  position: relative;
  flex: 0 0 76px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.sge-education-page--enrollments .sge-enrollment-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.sge-education-page--enrollments .sge-enrollment-progress-text {
  min-width: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6d84;
  text-align: right;
}

.sge-education-page--enrollments .sge-col-status {
  min-width: 98px;
  padding-left: 0.46rem !important;
  padding-right: 0.46rem !important;
}

.sge-education-page--enrollments .sge-col-actions {
  min-width: 58px;
  padding-left: 0.36rem !important;
  padding-right: 0.36rem !important;
}

.sge-education-page--enrollments .sge-action-group--enrollments {
  gap: 0.08rem;
  justify-content: flex-end;
}

.sge-education-page--enrollments .sge-enrollment-user-cell .sge-course-meta,
.sge-education-page--enrollments .sge-invest-promo {
  color: #7a8aa0;
}

.sge-education-page--enrollments .sge-enrollment-user-cell .sge-course-meta {
  font-size: 0.76rem;
  line-height: 1.15;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge {
  border-width: 1px;
  font-weight: 700;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--pricing {
  margin-top: 0.2rem;
  min-width: 118px;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--pricing.is-pricing-normal,
.sge-education-page--sales .sge-sales-pricing-badge.is-pricing-normal,
.sge-education-page--sales-dashboard .sge-sales-pricing-badge.is-pricing-normal {
  border-color: rgba(100, 116, 139, 0.16);
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--pricing.is-pricing-promo,
.sge-education-page--sales .sge-sales-pricing-badge.is-pricing-promo,
.sge-education-page--sales-dashboard .sge-sales-pricing-badge.is-pricing-promo {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(147, 197, 253, 0.16);
  color: #1d4ed8;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--pricing.is-pricing-lot,
.sge-education-page--sales .sge-sales-pricing-badge.is-pricing-lot,
.sge-education-page--sales-dashboard .sge-sales-pricing-badge.is-pricing-lot {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(251, 191, 36, 0.16);
  color: #9a5b00;
}

.sge-education-page--sales .sge-sales-pricing-badge,
.sge-education-page--sales-dashboard .sge-sales-pricing-badge {
  margin-left: 0.38rem;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.sge-enrollment-overdue-badge {
  margin-top: 0.18rem;
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(251, 191, 36, 0.22);
  color: #8a4b0f;
  font-size: 0.6rem;
  font-weight: 700;
}

.sge-body[data-theme="dark"] .sge-enrollment-overdue-badge {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(180, 83, 9, 0.32);
  color: #fde68a;
}

.sge-education-page--enrollments .sge-col-enrolled .sge-course-meta {
  margin-top: 0.12rem;
  font-size: 0.66rem;
  text-align: center;
  color: #7a8aa0;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-manual {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(96, 165, 250, 0.18);
  color: #1f4f93;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-sale {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(52, 211, 153, 0.2);
  color: #0f6f52;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-batch {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(251, 191, 36, 0.2);
  color: #8a4b0f;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-social {
  border-color: rgba(147, 51, 234, 0.2);
  background: rgba(196, 181, 253, 0.24);
  color: #6d28d9;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge.is-cash {
  border-color: rgba(180, 83, 9, 0.14);
  background: rgba(245, 158, 11, 0.14);
  color: #9a5b00;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge.is-pix {
  border-color: rgba(13, 148, 136, 0.14);
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge.is-debit_card,
.sge-education-page--enrollments .sge-enrollment-payment-badge.is-credit_card {
  border-color: rgba(59, 130, 246, 0.14);
  background: rgba(96, 165, 250, 0.14);
  color: #2459a6;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge.is-scholarship {
  border-color: rgba(124, 58, 237, 0.14);
  background: rgba(167, 139, 250, 0.14);
  color: #6d28d9;
}

.sge-education-page--enrollments .sge-enrollment-payment-badge.is-phd_credit {
  border-color: rgba(15, 118, 110, 0.12);
  background: rgba(45, 212, 191, 0.16);
  color: #0f766e;
}

.sge-education-page--enrollments .sge-status-inline {
  min-width: 124px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  text-align: center;
  text-align-last: center;
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 16px -16px rgba(15, 23, 42, 0.18);
  font-weight: 700;
  border-radius: 10px;
  color: #223447;
}

.sge-education-page--enrollments .sge-status-inline option {
  text-align: center;
}

.sge-education-page--enrollments .sge-enrollment-status-form .sge-single-picker-auto {
  width: 100px;
  margin-left: auto;
  margin-right: auto;
}

.sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-btn {
  min-height: 25px;
  border-radius: 10px;
  padding: 0.15rem 0.42rem 0.15rem 0.54rem;
  justify-content: space-between;
  gap: 0.22rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #223447;
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 16px -16px rgba(15, 23, 42, 0.18);
}

.sge-education-page--enrollments .sge-status-inline.is-success + .sge-single-picker-auto .sge-multi-select-btn {
  background-color: rgba(25, 135, 84, .12);
  color: #0f5132;
  border-color: rgba(25, 135, 84, .34);
}

.sge-education-page--enrollments .sge-status-inline.is-muted + .sge-single-picker-auto .sge-multi-select-btn {
  background-color: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border-color: var(--bs-border-color, #ced4da);
}

.sge-education-page--enrollments .sge-status-inline.is-warning + .sge-single-picker-auto .sge-multi-select-btn {
  background-color: rgba(255, 193, 7, .18);
  color: #7a5a00;
  border-color: rgba(255, 193, 7, .42);
}

.sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-btn .js-single-label {
  flex: 1 1 auto;
  text-align: center;
}

.sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-menu {
  min-width: 100px;
  width: 100px;
  max-width: 100px;
}

.sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-item {
  justify-content: center;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
}

.sge-education-page--enrollments .sge-enrollment-status-form {
  display: flex;
  justify-content: center;
}

.sge-education-page--enrollments .sge-action-group {
  gap: 0.25rem;
}

.sge-education-page--enrollments .sge-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.sge-education-page--enrollments .sge-icon-btn.is-edit {
  color: #345f98;
}

.sge-education-page--enrollments .sge-icon-btn.is-danger {
  color: #b24949;
}

.sge-education-page--enrollments .sge-icon-btn.is-edit:hover {
  background: rgba(52, 95, 152, 0.08);
}

.sge-education-page--enrollments .sge-icon-btn.is-danger:hover {
  background: rgba(178, 73, 73, 0.08);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-search input,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-select,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-status-inline {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.84) !important;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-btn {
  color: #eef4ff;
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-menu {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-status-form .sge-multi-select-item {
  color: #e5e7eb;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-status-inline.is-success + .sge-single-picker-auto .sge-multi-select-btn {
  background-color: rgba(25, 135, 84, .18);
  color: #b7f7d3;
  border-color: rgba(25, 135, 84, .38);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-status-inline.is-muted + .sge-single-picker-auto .sge-multi-select-btn {
  background-color: rgba(30, 41, 59, 0.92);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.18);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-status-inline.is-warning + .sge-single-picker-auto .sge-multi-select-btn {
  background-color: rgba(255, 193, 7, .18);
  color: #fde68a;
  border-color: rgba(255, 193, 7, .34);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollments-filters-active .sge-chip,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollments-filters-active .sge-chip-clear {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: none;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollments-stats-primary .sge-status-hub-card,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollments-toolbar,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-table-card--enrollments {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 16px 34px -34px rgba(2, 6, 23, 0.56);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-user-cell .sge-course-name,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-target-name,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-invest-main {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-user-cell .sge-course-meta,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-invest-promo {
  color: #94a3b8;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-progress-track {
  background: rgba(71, 85, 105, 0.55);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-progress-text {
  color: #b8c7da;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge {
  color: #e6edf7;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--pricing.is-pricing-normal,
.sge-body[data-theme="dark"] .sge-education-page--sales .sge-sales-pricing-badge.is-pricing-normal,
.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-pricing-badge.is-pricing-normal {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(71, 85, 105, 0.22);
  color: #e2e8f0;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--pricing.is-pricing-promo,
.sge-body[data-theme="dark"] .sge-education-page--sales .sge-sales-pricing-badge.is-pricing-promo,
.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-pricing-badge.is-pricing-promo {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(30, 64, 175, 0.22);
  color: #dbeafe;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--pricing.is-pricing-lot,
.sge-body[data-theme="dark"] .sge-education-page--sales .sge-sales-pricing-badge.is-pricing-lot,
.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-pricing-badge.is-pricing-lot {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(180, 83, 9, 0.22);
  color: #fde68a;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-manual {
  border-color: rgba(59, 130, 246, 0.26);
  background: rgba(29, 78, 216, 0.24);
  color: #dbeafe;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-sale {
  border-color: rgba(16, 185, 129, 0.26);
  background: rgba(5, 150, 105, 0.24);
  color: #d1fae5;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-batch {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(180, 83, 9, 0.24);
  color: #fde68a;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge--source.is-source-social {
  border-color: rgba(147, 51, 234, 0.26);
  background: rgba(107, 33, 168, 0.24);
  color: #ede9fe;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-status-inline {
  color: #eef4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge.is-cash {
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(180, 83, 9, 0.22);
  color: #ffd59a;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge.is-pix {
  border-color: rgba(20, 184, 166, 0.16);
  background: rgba(15, 118, 110, 0.22);
  color: #9cf3ea;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge.is-debit_card,
.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge.is-credit_card {
  border-color: rgba(96, 165, 250, 0.16);
  background: rgba(37, 99, 235, 0.22);
  color: #d7e7ff;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge.is-scholarship {
  border-color: rgba(167, 139, 250, 0.16);
  background: rgba(109, 40, 217, 0.22);
  color: #e7dbff;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollment-payment-badge.is-phd_credit {
  border-color: rgba(45, 212, 191, 0.16);
  background: rgba(15, 118, 110, 0.22);
  color: #b3fff2;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollments .sge-enrollments-stats-primary .sge-status-hub-icon {
  background: rgba(239, 175, 67, 0.12);
  color: #f4c56b;
}

.sge-education-page--settings {
  gap: 1rem;
}

.sge-education-page--settings .sge-education-settings-stats,
.sge-education-page--settings .sge-education-settings-toolbar,
.sge-education-page--settings .sge-education-settings-hero-shell,
.sge-education-page--settings .sge-education-settings-tabs-shell,
.sge-education-page--settings .sge-education-settings-panel-shell,
.sge-education-page--settings .sge-education-settings-card-shell,
.sge-education-page--settings .sge-education-settings-table-card {
  margin: 0;
}

.sge-education-page--settings .sge-education-settings-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.sge-education-page--settings .sge-education-settings-toolbar {
  padding: 1rem 1.1rem;
}

.sge-education-page--sales-dashboard {
  gap: 1rem;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-hero-shell,
.sge-education-page--sales-dashboard .sge-sales-dashboard-stats,
.sge-education-page--sales-dashboard .sge-sales-dashboard-grid-shell {
  margin: 0;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-hero-shell {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-hero-side {
  width: fit-content;
  min-width: 0;
  justify-self: end;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-grid-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.sge-education-page--sales-dashboard .sge-sales-dashboard-card--wide {
  grid-column: 1 / -1;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-card {
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 12px 28px -32px rgba(15, 23, 42, 0.14);
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-card-title {
  margin: 0;
  color: #203548;
  font-size: 1rem;
  font-weight: 700;
}

.sge-education-page--sales-dashboard .sge-sales-dashboard-card-meta {
  color: #6b7c8f;
  font-size: 0.82rem;
  font-weight: 600;
}

.sge-education-page--sales-settings {
  gap: 1.25rem;
}

.sge-education-page--sales {
  gap: 1.25rem;
}

.sge-education-page--sales-coupons {
  gap: 1.25rem;
}

.sge-education-page--coupon-form {
  gap: 1.25rem;
}

.sge-education-page--sales .sge-sales-hero-shell,
.sge-education-page--sales .sge-sales-stats,
.sge-education-page--sales .sge-sales-toolbar,
.sge-education-page--sales .sge-sales-table-card {
  margin: 0;
}

.sge-education-page--sales-coupons .sge-sales-coupons-hero-shell,
.sge-education-page--sales-coupons .sge-sales-coupons-stats,
.sge-education-page--sales-coupons .sge-sales-coupons-toolbar,
.sge-education-page--sales-coupons .sge-sales-coupons-table-card {
  margin: 0;
}

.sge-education-page--coupon-form .sge-sales-coupon-form-hero-shell,
.sge-education-page--coupon-form .sge-sales-coupon-form-stats,
.sge-education-page--coupon-form .sge-sales-coupon-form-toolbar,
.sge-education-page--coupon-form .sge-sales-coupon-form-shell {
  margin: 0;
}

.sge-education-page--sales .sge-sales-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-education-page--sales-coupons .sge-sales-coupons-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-education-page--coupon-form .sge-sales-coupon-form-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-education-page--sales .sge-sales-toolbar,
.sge-education-page--sales .sge-sales-table-card .card-body {
  padding: 1rem 1.1rem;
}

.sge-education-page--sales-coupons .sge-sales-coupons-toolbar,
.sge-education-page--sales-coupons .sge-sales-coupons-table-card .card-body {
  padding: 1rem 1.1rem;
}

.sge-education-page--coupon-form .sge-sales-coupon-form-toolbar,
.sge-education-page--coupon-form .sge-sales-coupon-form-shell .card-body,
.sge-education-page--coupon-form .sge-sales-coupon-form-shell .card-footer {
  padding: 1rem 1.1rem;
}

.sge-education-page--coupon-form .sge-sales-coupon-form-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sge-education-page--coupon-form .sge-sales-coupon-form-shell .card-body {
  background: transparent;
  padding: 0;
}

.sge-education-page--coupon-form .sge-sales-coupon-form-shell .card-footer {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.sge-sales-coupon-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .sge-education-page.sge-education-page--coupon-form .sge-coupon-form.sge-sales-coupon-form-shell .card-body,
  .sge-education-page.sge-education-page--coupon-form .sge-coupon-form.sge-sales-coupon-form-shell .card-footer {
    padding: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .sge-sales-coupon-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sge-sales-coupon-form-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sge-sales-coupon-form-section + .sge-sales-coupon-form-section {
  margin-top: 1rem;
}

.sge-education-page--sales-coupons .sge-progress-mini {
  height: 5px;
}

.sge-education-page--sales-settings .sge-sales-settings-hero-shell,
.sge-education-page--sales-settings .sge-sales-settings-stats,
.sge-education-page--sales-settings .sge-sales-settings-toolbar,
.sge-education-page--sales-settings .sge-sales-settings-tabs-shell,
.sge-education-page--sales-settings .sge-sales-settings-table-card {
  margin: 0;
}

.sge-education-page--sales-settings .sge-sales-settings-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-education-page--sales-settings .sge-sales-settings-toolbar,
.sge-education-page--sales-settings .sge-sales-settings-tabs-shell,
.sge-education-page--sales-settings .sge-sales-settings-table-card .card-body {
  padding: 1rem 1.1rem;
}

.sge-education-page--settings .sge-education-settings-tabs-shell,
.sge-education-page--settings .sge-education-settings-panel-shell .card-body,
.sge-education-page--settings .sge-education-settings-card-shell .card-body,
.sge-education-page--settings .sge-education-settings-table-card .card-body {
  padding: 1rem 1.1rem;
}

.sge-education-page--settings .sge-education-settings-card-shell .card-header {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid #e5edf5;
  background: transparent;
}

.sge-education-page--settings .sge-education-settings-panel-shell .card-body > h5,
.sge-education-page--settings .sge-education-settings-card-shell .card-header strong {
  color: #203548;
}

/* Tokens visuais base do sistema para campos e estados globais. */
.sge-content .form-control,
.sge-content .form-select,
.sge-content .sge-select {
  background: var(--sge-field-bg, #fcfcfd);
  border-color: var(--sge-field-border, #e2e6ea);
}

.sge-content .form-control:focus,
.sge-content .form-select:focus,
.sge-content .sge-select:focus {
  border-color: var(--sge-field-focus-border, #ff9e00);
  box-shadow: 0 0 0 2px var(--sge-field-focus-ring, rgba(255, 158, 0, 0.15));
}

.sge-body[data-theme="dark"] .sge-content .form-control,
.sge-body[data-theme="dark"] .sge-content .form-select,
.sge-body[data-theme="dark"] .sge-content .sge-select {
  background: var(--sge-dark-field-bg-custom, #21222c) !important;
  border-color: var(--sge-dark-field-border-custom, #3b3b3b) !important;
}

.sge-body[data-theme="dark"] .sge-content .form-control:focus,
.sge-body[data-theme="dark"] .sge-content .form-select:focus,
.sge-body[data-theme="dark"] .sge-content .sge-select:focus {
  border-color: var(--sge-dark-field-focus-custom, #efaf43) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sge-dark-field-focus-custom, #efaf43) 22%, transparent) !important;
}

/* Matrículas: evita corte de texto nos options/selects da página de formulário */
.sge-education-page--enrollment-form #id_user,
.sge-education-page--enrollment-form #id_course,
.sge-education-page--enrollment-form #id_status,
.sge-education-page--enrollment-form #id_payment_method,
.sge-education-page--enrollment-form #id_payment_method_secondary {
  width: 100%;
  min-width: 22rem;
}

.sge-education-page--enrollment-form #id_user option,
.sge-education-page--enrollment-form #id_course option,
.sge-education-page--enrollment-form #id_status option,
.sge-education-page--enrollment-form #id_payment_method option,
.sge-education-page--enrollment-form #id_payment_method_secondary option {
  white-space: normal;
  text-overflow: initial;
}

@media (max-width: 1200px) {
  .sge-education-page--enrollment-form #id_user,
  .sge-education-page--enrollment-form #id_course,
  .sge-education-page--enrollment-form #id_status,
  .sge-education-page--enrollment-form #id_payment_method,
  .sge-education-page--enrollment-form #id_payment_method_secondary {
    min-width: 0;
  }
}

/* Matrículas: organizadores no padrão da aba Recursos + combobox */
.sge-education-page--enrollment-form .sge-enrollment-organizer {
  padding: 0.72rem 0.78rem;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox {
  position: relative;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 240px;
  overflow: auto;
  background: var(--sge-surface, #fff);
  border: 1px solid var(--sge-border, #d7dee8);
  border-radius: 10px;
  box-shadow: 0 18px 38px -28px rgba(15, 23, 42, .45);
  padding: 6px;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .86rem;
  color: var(--sge-text-main, #1e293b);
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-item mark {
  background: rgba(245, 158, 11, .2);
  color: inherit;
  border-radius: 4px;
  padding: 0 .18rem;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-label {
  display: inline-block;
  font-weight: 600;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-sub {
  display: block;
  margin-top: .1rem;
  color: #64748b;
  font-size: .74rem;
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-item:hover {
  background: color-mix(in srgb, var(--sge-accent, #f59e0b) 10%, #ffffff);
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-item.is-active {
  background: color-mix(in srgb, var(--sge-accent, #f59e0b) 13%, #ffffff);
}

.sge-education-page--enrollment-form .sge-enrollment-combobox-item.is-empty {
  cursor: default;
  opacity: .7;
}

.sge-education-page--enrollment-form .sge-enrollment-capacity-badge {
  border-radius: 999px;
  padding: .12rem .52rem;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.sge-education-page--enrollment-form .sge-enrollment-capacity-badge.is-ok {
  color: #166534;
  background: rgba(34, 197, 94, .16);
}

.sge-education-page--enrollment-form .sge-enrollment-capacity-badge.is-warning {
  color: #9a3412;
  background: rgba(251, 146, 60, .2);
}

.sge-education-page--enrollment-form .sge-enrollment-capacity-badge.is-full {
  color: #991b1b;
  background: rgba(239, 68, 68, .2);
}

.sge-education-page--enrollment-form #enrollmentTeachingVacancies.sge-enrollment-capacity--ok {
  border-color: rgba(34, 197, 94, .55);
  color: #166534;
}

.sge-education-page--enrollment-form #enrollmentTeachingVacancies.sge-enrollment-capacity--warning {
  border-color: rgba(251, 146, 60, .55);
  color: #9a3412;
}

.sge-education-page--enrollment-form #enrollmentTeachingVacancies.sge-enrollment-capacity--full {
  border-color: rgba(239, 68, 68, .62);
  color: #991b1b;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-combobox-menu {
  background: #0f172a;
  border-color: rgba(148, 163, 184, .26);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-combobox-item {
  color: #e2e8f0;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-combobox-item:hover {
  background: rgba(56, 189, 248, .14);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-combobox-item.is-active {
  background: rgba(56, 189, 248, .22);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-combobox-sub {
  color: #94a3b8;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-capacity-badge.is-ok {
  color: #86efac;
  background: rgba(34, 197, 94, .24);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-capacity-badge.is-warning {
  color: #fdba74;
  background: rgba(249, 115, 22, .24);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form .sge-enrollment-capacity-badge.is-full {
  color: #fda4af;
  background: rgba(244, 63, 94, .24);
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form #enrollmentTeachingVacancies.sge-enrollment-capacity--ok {
  border-color: rgba(34, 197, 94, .55);
  color: #86efac;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form #enrollmentTeachingVacancies.sge-enrollment-capacity--warning {
  border-color: rgba(251, 146, 60, .55);
  color: #fdba74;
}

.sge-body[data-theme="dark"] .sge-education-page--enrollment-form #enrollmentTeachingVacancies.sge-enrollment-capacity--full {
  border-color: rgba(244, 63, 94, .62);
  color: #fda4af;
}

.sge-education-page--enrollment-form .sge-enrollment-pay-advanced.d-none {
  display: none !important;
}

.sge-body[data-theme="dark"] .sge-thead th {
  background: var(--sge-dark-table-head-bg-custom, #253043) !important;
  border-bottom-color: var(--sge-dark-field-border-custom, #3b4655) !important;
}

.sge-body[data-theme="dark"] .sge-table tbody td {
  border-bottom-color: var(--sge-dark-field-border-custom, #344253) !important;
}

.sge-body[data-theme="dark"] .sge-education-page--settings .sge-education-settings-card-shell .card-header {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.sge-body[data-theme="dark"] .sge-education-page--settings .sge-education-settings-panel-shell .card-body > h5,
.sge-body[data-theme="dark"] .sge-education-page--settings .sge-education-settings-card-shell .card-header strong {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-dashboard-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 16px 34px -34px rgba(2, 6, 23, 0.56);
}

.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-dashboard-card-head {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-dashboard-card-title {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-education-page--sales-dashboard .sge-sales-dashboard-card-meta {
  color: #94a3b8;
}


.sge-body[data-theme="dark"] .sge-education-page .sge-toolbar,
.sge-body[data-theme="dark"] .sge-education-page .sge-coupon-organizer,
.sge-body[data-theme="dark"] .sge-education-page .sge-settings-tabs,
.sge-body[data-theme="dark"] .sge-education-page .sge-edu-settings-panel,
.sge-body[data-theme="dark"] .sge-education-page .sge-edu-box,
.sge-body[data-theme="dark"] .sge-education-page .sge-status-hub-card,
.sge-body[data-theme="dark"] .sge-education-page .sge-table-card,
.sge-body[data-theme="dark"] .sge-education-page .sge-coupon-form,
.sge-body[data-theme="dark"] .sge-education-page .cert-v2-shell {
  border-color: var(--sge-dark-card-border-custom, rgba(148, 163, 184, 0.2));
  background: linear-gradient(180deg, var(--sge-dark-card-bg-custom, #0f172a) 0%, color-mix(in srgb, var(--sge-dark-card-bg-custom, #0f172a) 84%, #111c30) 100%);
}

.sge-body[data-theme="dark"] .sge-education-page .sge-coupon-section-title,
.sge-body[data-theme="dark"] .sge-education-page .sge-status-hub-title,
.sge-body[data-theme="dark"] .sge-education-page .sge-status-hub-chip {
  color: #f8fafc;
}

.sge-body[data-theme="dark"] .sge-teaching-hero-text {
  color: var(--sge-evo-hero-text-color, #94a3b8);
}

.sge-body[data-theme="dark"] .sge-education-page .sge-coupon-section-title i,
.sge-body[data-theme="dark"] .sge-education-page .sge-status-hub-icon {
  background: color-mix(in srgb, var(--sge-dark-field-focus-custom, #efaf43) 16%, transparent);
  color: color-mix(in srgb, var(--sge-dark-field-focus-custom, #efaf43) 72%, white);
}

/* PPL: relatorios (visualizacao e configuracoes). */
.sge-education-page--reports-visualization,
.sge-education-page--reports-detail,
.sge-education-page--reports-settings {
  gap: 1rem;
}

.sge-education-page--reports-visualization .sge-reports-visualization-hero,
.sge-education-page--reports-visualization > .sge-page-actions,
.sge-education-page--reports-visualization > .sge-status-hub-grid,
.sge-education-page--reports-visualization > .sge-toolbar,
.sge-education-page--reports-visualization > .sge-filters-active,
.sge-education-page--reports-visualization > .sge-table-card,
.sge-education-page--reports-detail .sge-reports-detail-hero,
.sge-education-page--reports-detail .sge-reports-detail-stats,
.sge-education-page--reports-detail .sge-reports-detail-toolbar,
.sge-education-page--reports-detail .sge-table-card,
.sge-education-page--reports-settings .sge-reports-settings-hero,
.sge-education-page--reports-settings .sge-reports-settings-stats,
.sge-education-page--reports-settings .sge-reports-settings-toolbar,
.sge-education-page--reports-settings .sge-reports-settings-card {
  margin: 0;
}

.sge-education-page--reports-detail .sge-reports-detail-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sge-education-page--reports-settings .sge-reports-settings-stats,
.sge-education-page--reports-settings .sge-reports-retention-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-education-page--reports-settings .sge-reports-retention-stats {
  margin-bottom: 1rem;
}

.sge-education-page--reports-visualization .sge-status-hub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sge-education-page--reports-visualization .sge-page-actions {
  width: 100%;
}

.sge-education-page--reports-visualization .sge-page-actions form {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 0.55rem;
  width: 100%;
  align-items: center;
}

.sge-education-page--reports-visualization .sge-page-actions form > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sge-education-page--reports-visualization .sge-page-actions .sge-report-picker-shell {
  width: 100%;
}

.sge-education-page--reports-visualization .sge-toolbar-form {
  grid-template-columns: minmax(280px, 1fr);
}

.sge-education-page--reports-visualization .sge-table-card .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.sge-education-page--reports-visualization .sge-table-card .sge-table {
  min-width: 920px;
  width: max-content;
}

@media (max-width: 991.98px) {
  .sge-education-page--reports-visualization .sge-status-hub-grid,
  .sge-education-page--reports-detail .sge-reports-detail-stats,
  .sge-education-page--reports-settings .sge-reports-settings-stats,
  .sge-education-page--reports-settings .sge-reports-retention-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-education-page--reports-visualization .sge-evo-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .sge-education-page--reports-visualization .sge-page-actions form {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sge-education-page--reports-visualization .sge-page-actions form .btn {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sge-education-page--reports-visualization > .sge-toolbar {
    padding: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .sge-education-page--reports-visualization .sge-status-hub-grid,
  .sge-education-page--reports-detail .sge-reports-detail-stats,
  .sge-education-page--reports-settings .sge-reports-settings-stats,
  .sge-education-page--reports-settings .sge-reports-retention-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .sge-education-page--reports-visualization > .sge-status-hub-grid {
    display: none;
  }

  .sge-education-page--reports-visualization .sge-report-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .sge-education-page--reports-visualization .sge-report-tab {
    width: 100%;
    justify-content: flex-start;
  }
}

.sge-body[data-theme="dark"] .sge-education-page .text-muted,
.sge-body[data-theme="dark"] .sge-education-page .small.text-muted {
  color: #94a3b8 !important;
}

.sge-body[data-theme="dark"] .sge-evo-lock-notice {
  border-color: rgba(239, 175, 67, 0.24);
  background: linear-gradient(180deg, rgba(239, 175, 67, 0.12) 0%, rgba(15, 23, 42, 0.96) 100%);
  color: #f6d38d;
}

.sge-body[data-theme="dark"] .sge-evo-lock-notice strong,
.sge-body[data-theme="dark"] .sge-evo-lock-notice p {
  color: #f3d8a0;
}

.sge-body[data-theme="dark"] .sge-evo-lock-notice i {
  background: rgba(239, 175, 67, 0.16);
  color: #ffd089;
}

.sge-body[data-theme="dark"] .sge-evo-progress-meta {
  color: #94a3b8;
}

.sge-body[data-theme="dark"] .sge-evo-progress-bar {
  background: rgba(148, 163, 184, 0.16);
}

.sge-body[data-theme="dark"] .sge-evo-form-card .form-control[readonly] {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 1399px) {
  .sge-evo-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sge-toolbar-form--system-evolution {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }

}

@media (max-width: 991px) {
  .sge-education-page--certificates .sge-certificates-hero-text {
    white-space: normal;
  }

  .sge-education-page--certificates .sge-certificates-hero-side {
    justify-self: start;
  }

  .sge-education-page--enrollments .sge-enrollments-hero-side {
    justify-self: start;
  }

  .sge-evo-hero,
  .sge-evo-hero--detail {
    grid-template-columns: 1fr;
  }

  .sge-evo-hero-side {
    justify-content: flex-start;
    width: 100%;
  }

  .sge-evo-hero-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .sge-teaching-status-hub,
  .sge-teaching-status-hub--form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-toolbar-form--system-evolution {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-evo-overview {
    grid-template-columns: 1fr;
  }

  .sge-evo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sge-evo-hero-actions,
  .sge-teaching-hero-actions {
    width: 100%;
  }

  .sge-teaching-status-hub,
  .sge-teaching-status-hub--form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .sge-education-page--sales .sge-sales-stats,
  .sge-education-page--sales-coupons .sge-sales-coupons-stats,
  .sge-education-page--coupon-form .sge-sales-coupon-form-stats,
  .sge-education-page--settings .sge-education-settings-stats {
    grid-template-columns: 1fr;
  }

  .sge-education-page--sales-dashboard .sge-sales-dashboard-stats,
  .sge-education-page--sales-dashboard .sge-sales-dashboard-grid-shell {
    grid-template-columns: 1fr;
  }

  .sge-education-page--sales-settings .sge-sales-settings-stats {
    grid-template-columns: 1fr;
  }

  .sge-education-page--settings .sge-education-settings-tabs-shell,
  .sge-education-page--settings .sge-education-settings-panel-shell .card-body,
  .sge-education-page--settings .sge-education-settings-card-shell .card-body,
  .sge-education-page--settings .sge-education-settings-card-shell .card-header,
  .sge-education-page--sales .sge-sales-toolbar,
  .sge-education-page--sales .sge-sales-table-card .card-body,
  .sge-education-page--sales-coupons .sge-sales-coupons-toolbar,
  .sge-education-page--sales-coupons .sge-sales-coupons-table-card .card-body,
  .sge-education-page--coupon-form .sge-sales-coupon-form-toolbar,
  .sge-education-page--coupon-form .sge-sales-coupon-form-shell .card-body,
  .sge-education-page--coupon-form .sge-sales-coupon-form-shell .card-footer,
  .sge-education-page--settings .sge-education-settings-toolbar,
  .sge-education-page--settings .sge-education-settings-table-card .card-body,
  .sge-education-page--sales-dashboard .sge-sales-dashboard-card-head,
  .sge-education-page--sales-settings .sge-sales-settings-toolbar,
  .sge-education-page--sales-settings .sge-sales-settings-tabs-shell,
  .sge-education-page--sales-settings .sge-sales-settings-table-card .card-body {
    padding: 0.9rem;
  }

  .sge-education-page--enrollments .sge-enrollments-toolbar {
    padding: 0.9rem;
  }

  .sge-education-page--enrollments .sge-enrollments-filters-active {
    margin-top: -0.35rem;
  }

  .sge-education-page--certificates .sge-certificates-toolbar {
    padding: 0.9rem;
  }

  .sge-education-page--certificates .sge-certificates-filters-active {
    margin-top: -0.35rem;
  }

  .sge-education-page--teaching .sge-teaching-toolbar {
    padding: 0.9rem;
  }

  .sge-education-page--teaching .sge-teaching-filters-active {
    margin-top: -0.35rem;
  }

  .sge-evo-hero,
  .sge-evo-hero--compact {
    padding: 1.1rem;
  }

  .sge-toolbar-form--system-evolution {
    grid-template-columns: 1fr;
  }

  .sge-evo-timeline-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .sge-evo-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .sge-evo-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================| SIDEBAR - CORRECAO FINAL |========================== */
/* Consolida o shell lateral em um unico comportamento visual estavel. */
.sge-sidebar {
  position: fixed;
  top: 59px;
  left: 0;
  bottom: 0;
  width: 312px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 10px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(245, 158, 11, 0.08), transparent 72%),
    linear-gradient(180deg, #141a23 0%, #0d1219 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1030;
}

.sge-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sge-main {
  margin-left: 312px;
  min-width: 0;
  width: calc(100% - 312px);
  transition: margin-left 0.16s ease, width 0.16s ease;
}

.sge-content {
  padding: 18px 22px 22px;
}

.sge-sidebar-welcome {
  flex: 0 0 auto;
  margin: 0 6px 14px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sge-sidebar-welcome-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.5);
}

.sge-sidebar-welcome-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sge-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.sge-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
}

.sge-nav-dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.sge-nav-item,
.sge-nav-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sge-nav-toggle {
  justify-content: space-between;
  text-align: left;
}

.sge-nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sge-nav-item:hover,
.sge-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sge-nav-item.active,
.sge-nav-group.open > .sge-nav-toggle {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.2);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(245, 158, 17, 0.08);
}

.sge-nav-item-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.92);
  font-size: 11px;
}

.sge-nav-label,
.sge-nav-toggle-label span:last-child {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sge-chevron {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.78;
  transition: transform 0.16s ease;
}

.sge-chevron i {
  font-size: 12px;
  line-height: 1;
}

.sge-nav-group.open .sge-chevron {
  transform: rotate(180deg);
}

.sge-submenu {
  display: none;
  position: relative;
  margin: 2px 0 4px;
  padding: 2px 0 2px 15px;
}

.sge-nav-group.open .sge-submenu {
  display: block;
}

.sge-submenu::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.02));
}

.sge-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 8px;
  color: rgba(203, 213, 225, 0.78);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.sge-subitem + .sge-subitem {
  margin-top: 2px;
}

.sge-subitem:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.sge-subitem.active {
  background: rgba(245, 158, 11, 0.08);
  color: #fdba74;
}

.sge-subitem-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.sge-subitem.active .sge-subitem-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd182;
}

.sge-subitem-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sge-sidebar-collapse-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sge-sidebar-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.42);
  color: #ffffff;
  transform: none;
}

.sge-shell.sidebar-collapsed .sge-sidebar {
  width: 92px;
  padding-left: 8px;
  padding-right: 8px;
}

.sge-shell.sidebar-collapsed .sge-main {
  margin-left: 92px;
  width: calc(100% - 92px);
}

.sge-shell.sidebar-collapsed .sge-sidebar-welcome,
.sge-shell.sidebar-collapsed .sge-nav-label,
.sge-shell.sidebar-collapsed .sge-nav-toggle-label span:last-child,
.sge-shell.sidebar-collapsed .sge-subitem-text,
.sge-shell.sidebar-collapsed .sge-chevron {
  display: none;
}

.sge-shell.sidebar-collapsed .sge-nav-dashboard-row {
  grid-template-columns: 1fr;
  justify-items: center;
}

.sge-shell.sidebar-collapsed .sge-nav-item,
.sge-shell.sidebar-collapsed .sge-nav-toggle {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sge-shell.sidebar-collapsed .sge-nav-item-icon {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.sge-shell.sidebar-collapsed .sge-submenu,
.sge-shell.sidebar-collapsed .sge-nav-group.open .sge-submenu {
  display: none !important;
}

.sge-body[data-theme="dark"] .sge-sidebar {
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(255, 184, 108, 0.08), transparent 72%),
    linear-gradient(180deg, #10151d 0%, #0b1118 100%);
}

@media (max-width: 992px) {
  .sge-sidebar {
    left: -312px;
    width: 312px;
  }

  .sge-main,
  .sge-shell.sidebar-collapsed .sge-main {
    margin-left: 0 !important;
    width: 100%;
  }

  .sge-body.sge-mobile-sidebar-open .sge-sidebar {
    left: 0;
  }

  .sge-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Override final mobile: evita backdrop cobrir a sidebar por regras legadas anteriores. */
@media (max-width: 992px) {
  .sge-sidebar {
    left: 0 !important;
    transform: translateX(-108%) !important;
    z-index: 1220 !important;
  }

  .sge-body.sge-mobile-sidebar-open .sge-sidebar {
    transform: translateX(0) !important;
  }

  .sge-mobile-sidebar-backdrop {
    z-index: 1210 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .sge-body.sge-mobile-sidebar-open .sge-mobile-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}







/* ==============================================================
   PESSOAS > USUARIOS > FORMULARIO (NOVO/EDITAR) - UPGRADE UI
   ============================================================== */
.sge-user-form-page {
  display: grid;
  gap: 10px;
}

.sge-user-form-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sge-user-form-footer .btn {
  min-height: 36px;
  padding: 0.52rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 11px;
}

.sge-user-form-shell {
  display: grid;
  gap: 8px;
  overflow: visible;
}

.sge-user-form-section {
  border: 1px solid var(--sge-border, #d9dce1);
  border-radius: 14px;
  background: var(--sge-surface, #fff);
  padding: 10px;
  position: relative;
  overflow: visible;
}

.sge-user-form-page .sge-form-section:hover,
.sge-user-identity-shell:hover {
  transform: none !important;
  box-shadow: none !important;
}

.sge-user-identity-shell {
  border: 1px solid var(--sge-border, #d9dce1);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.7);
  padding: 10px;
}

.sge-user-form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sge-user-form-required-tip {
  font-size: 0.73rem;
  color: #68768a;
}

.sge-user-live-summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.95));
}

.sge-user-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sge-user-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--sge-border, #d9dce1);
  border-radius: 10px;
  font-size: 0.76rem;
  color: #3c4a5f;
  background: #fff;
}

.sge-user-summary-item em {
  font-style: normal;
  font-weight: 700;
  color: #1d3557;
}

.sge-user-form-page .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.sge-user-form-page .js-copy-field {
  color: #6b7a90;
  text-decoration: none;
}

.sge-user-form-page .js-copy-field:hover {
  color: #1d4ed8;
}

.sge-user-form-page .form-control.form-control-sm,
.sge-user-form-page .form-select.form-select-sm,
.sge-user-form-page .sge-multi-select-btn {
  min-height: 34px;
  height: 34px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: 0.82rem;
}

.sge-user-form-page .sge-multi-select-btn {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.sge-user-form-page .form-text {
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

.sge-user-form-page .row.g-3 {
  --bs-gutter-y: 0.55rem;
  --bs-gutter-x: 0.75rem;
}

.sge-user-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sge-user-form-footer .btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.sge-birth-select-row {
  display: grid;
  grid-template-columns: 98px 152px 118px;
  gap: 8px;
}

.sge-birth-select-row .sge-birth-select {
  min-width: 0;
}

.sge-user-photo-uploader {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
}

.sge-user-photo-preview-wrap {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(156, 163, 175, 0.65);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  display: grid;
  place-items: center;
}

.sge-user-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sge-user-photo-placeholder {
  color: #718096;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  gap: 6px;
  place-items: center;
}

.sge-user-photo-placeholder i {
  font-size: 1.15rem;
}

.sge-user-photo-actions {
  display: flex;
  gap: 8px;
}

.sge-user-photo-controls-col {
  display: grid;
  gap: 6px;
  align-content: start;
}

.sge-user-photo-file .form-control.form-control-sm {
  width: 100%;
}

.sge-user-form-page select[name="status"].is-status-active {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.06);
}

.sge-user-form-page select[name="status"].is-status-inactive {
  border-color: rgba(100, 116, 139, 0.45);
  background: rgba(100, 116, 139, 0.08);
}

.sge-user-form-page select[name="status"].is-status-blocked {
  border-color: rgba(202, 138, 4, 0.52);
  background: rgba(250, 204, 21, 0.1);
}

.sge-user-photo-dropzone {
  cursor: copy;
}

.sge-user-photo-dropzone.is-dragover {
  border-color: rgba(255, 158, 0, 0.72);
  background: #fff7ea;
  box-shadow: 0 0 0 2px rgba(255, 158, 0, 0.12) inset;
}

.sge-education-page--people-credits .sge-page-actions .btn,
.sge-education-page--people-profiles .sge-page-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.sge-education-page--people-credits .sge-page-actions .sge-bulk-action-select,
.sge-education-page--people-profiles .sge-page-actions .sge-bulk-action-select {
  min-height: 32px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 11px;
}

.sge-education-page--people-credits .sge-toolbar .sge-search input,
.sge-education-page--people-credits .sge-toolbar .sge-select,
.sge-education-page--people-profiles .sge-toolbar .sge-search input,
.sge-education-page--people-profiles .sge-toolbar .sge-select {
  height: 34px;
  font-size: 12px;
  border-radius: 10px;
}

.sge-education-page--people-credits .sge-toolbar .sge-select,
.sge-education-page--people-profiles .sge-toolbar .sge-select {
  font-size: 11px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.sge-user-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.sge-body[data-theme="dark"] .sge-user-form-required-tip {
  color: #adc0d6;
}

.sge-body[data-theme="dark"] .sge-user-form-section {
  border-color: #2b394a;
  background: rgba(19, 31, 45, 0.82);
}

.sge-body[data-theme="dark"] .sge-user-summary-item {
  border-color: #2b394a;
  background: rgba(15, 25, 37, 0.88);
  color: #c6d7ea;
}

.sge-body[data-theme="dark"] .sge-user-summary-item em {
  color: #f8c26e;
}

.sge-body[data-theme="dark"] .sge-user-identity-shell {
  border-color: #2b394a;
  background: rgba(15, 25, 37, 0.82);
}

.sge-body[data-theme="dark"] .sge-user-photo-preview-wrap {
  background: rgba(20, 30, 43, 0.88);
  border-color: rgba(86, 102, 124, 0.55);
}

.sge-body[data-theme="dark"] .sge-user-photo-placeholder {
  color: #a8bdd5;
}

.sge-body[data-theme="dark"] .sge-user-photo-dropzone.is-dragover {
  background: rgba(52, 38, 11, 0.44);
  border-color: rgba(255, 184, 108, 0.72);
}

@media (max-width: 767.98px) {
  .sge-user-form-hero-actions,
  .sge-user-form-footer {
    width: 100%;
  }

  .sge-user-form-hero-actions .btn,
  .sge-user-form-footer .btn {
    flex: 1 1 auto;
  }

  .sge-birth-select-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sge-user-identity-shell {
    padding: 9px;
  }

  .sge-user-photo-uploader {
    grid-template-columns: 1fr;
  }

  .sge-user-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================| PESSOAS > USUÁRIOS (LAYOUT FINAL) |========================== */
.sge-education-page--people-users {
  gap: 1rem;
}

.sge-education-page--people-users,
.sge-education-page--people-users * {
  min-width: 0;
}

.sge-education-page--people-users .sge-people-users-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
}

.sge-education-page--people-users .sge-users-hero-side {
  width: auto;
  max-width: 100%;
  justify-self: end;
}

.sge-education-page--people-users .sge-users-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  max-width: 100%;
}

.sge-education-page--people-users .sge-users-hero-actions > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sge-education-page--people-users .sge-users-hero-actions .btn,
.sge-education-page--people-users .sge-users-hero-actions .sge-bulk-action-select {
  min-height: 36px;
}

.sge-education-page--people-users .sge-people-users-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sge-education-page--people-users .sge-people-users-toolbar {
  max-width: 100%;
}

.sge-education-page--people-users .sge-toolbar-form--users {
  grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: 0.7rem;
  width: 100%;
}

.sge-education-page--people-users .sge-toolbar-form--users > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sge-education-page--people-users .sge-table-card--users {
  max-width: 100%;
  overflow: hidden;
}

.sge-education-page--people-users .sge-table-card--users .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.sge-education-page--people-users .sge-table-card--users .sge-table {
  min-width: 980px;
  width: 100%;
}

@media (max-width: 1199.98px) {
  .sge-education-page--people-users .sge-people-users-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .sge-education-page--people-users .sge-users-hero-side {
    justify-self: stretch;
    width: 100%;
  }

  .sge-education-page--people-users .sge-users-hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .sge-education-page--people-users .sge-toolbar-form--users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sge-education-page--people-users .sge-toolbar-form--users .sge-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .sge-education-page--people-users .sge-people-users-stats {
    display: none;
  }

  .sge-education-page--people-users .sge-users-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sge-education-page--people-users .sge-users-hero-actions .btn,
  .sge-education-page--people-users .sge-users-hero-actions .sge-bulk-action-select {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sge-education-page--people-users .sge-people-users-toolbar {
    padding: 0.75rem;
  }

  .sge-education-page--people-users .sge-toolbar-form--users {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sge-education-page--people-users .sge-table-card--users .sge-table {
    min-width: 940px;
    width: max-content;
  }
}

/* ==========================| PESSOAS > SUBMENUS (PADRAO RESPONSIVO) |========================== */
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) {
  gap: 1rem;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users),
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) * {
  min-width: 0;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-evo-hero,
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions,
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-toolbar,
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-table-card {
  margin: 0;
  max-width: 100%;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions .d-flex {
  align-items: center;
  gap: 0.55rem;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-actions-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 100%;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions .btn,
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions .sge-bulk-action-select,
.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions button[type="submit"] {
  min-height: 36px;
  max-width: 100%;
  box-sizing: border-box;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-table-card .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-table-card .sge-table {
  min-width: 920px;
  width: 100%;
}

@media (max-width: 1199.98px) {
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-evo-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-toolbar-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-toolbar-form .sge-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) > .sge-status-hub-grid,
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) > .row.g-3,
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) > .row.g-3.mb-3 {
    display: none;
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions .d-flex,
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-actions-compact,
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-actions-compact.ms-auto {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    margin-left: 0 !important;
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions .btn,
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions .sge-bulk-action-select,
  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-page-actions button[type="submit"] {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-toolbar {
    padding: 0.75rem;
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-toolbar-form {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sge-education-page[class*="sge-education-page--people-"]:not(.sge-education-page--people-users) .sge-table-card .sge-table {
    min-width: 900px;
    width: max-content;
  }
}
