/* ========================================================================== 
   FBAF - Layout Global
   Padrão visual compartilhado entre as telas do sistema procedural.
   Compatível com Bootstrap 4.5.2 e Bootstrap Icons 1.7.1.
   ========================================================================== */

:root {
    --fbaf-navy-950: #031a3a;
    --fbaf-navy-900: #062b61;
    --fbaf-blue-800: #0b4c92;
    --fbaf-blue-700: #0e63b9;
    --fbaf-blue-600: #1676d2;
    --fbaf-blue-500: #2490ee;
    --fbaf-blue-100: #dbeafe;
    --fbaf-blue-50: #eff6ff;
    --fbaf-cyan-400: #38bdf8;
    --fbaf-green-600: #16a34a;
    --fbaf-green-500: #22c55e;
    --fbaf-green-100: #dcfce7;
    --fbaf-green-50: #f0fdf4;
    --fbaf-red-700: #b91c1c;
    --fbaf-red-600: #dc2626;
    --fbaf-red-100: #fee2e2;
    --fbaf-red-50: #fef2f2;
    --fbaf-amber-700: #b45309;
    --fbaf-amber-500: #f59e0b;
    --fbaf-amber-100: #fef3c7;
    --fbaf-amber-50: #fffbeb;
    --fbaf-slate-950: #0f172a;
    --fbaf-slate-900: #172033;
    --fbaf-slate-800: #1e293b;
    --fbaf-slate-700: #334155;
    --fbaf-slate-600: #475569;
    --fbaf-slate-500: #64748b;
    --fbaf-slate-400: #94a3b8;
    --fbaf-slate-300: #cbd5e1;
    --fbaf-slate-200: #e2e8f0;
    --fbaf-slate-100: #f1f5f9;
    --fbaf-slate-50: #f8fafc;
    --fbaf-white: #ffffff;

    --fbaf-header-height: 78px;
    --fbaf-radius-xs: 8px;
    --fbaf-radius-sm: 10px;
    --fbaf-radius-md: 14px;
    --fbaf-radius-lg: 18px;
    --fbaf-radius-xl: 24px;
    --fbaf-shadow-xs: 0 3px 12px rgba(15, 23, 42, 0.05);
    --fbaf-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
    --fbaf-shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
    --fbaf-shadow-lg: 0 26px 70px rgba(2, 20, 46, 0.20);
    --fbaf-transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.app-body {
    min-height: 100vh;
    margin: 0;
    padding: calc(var(--fbaf-header-height) + 28px) 0 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fbaf-slate-800);
    background:
        radial-gradient(circle at top right, rgba(22, 118, 210, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 52%, #eef3f9 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.app-body.sem-barra-superior {
    padding-top: 0;
}

::selection {
    color: var(--fbaf-navy-950);
    background: rgba(56, 189, 248, 0.28);
}

img,
svg {
    max-width: 100%;
}

a {
    transition:
        color var(--fbaf-transition),
        background-color var(--fbaf-transition),
        border-color var(--fbaf-transition),
        box-shadow var(--fbaf-transition),
        transform var(--fbaf-transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.35);
    outline-offset: 2px;
}

/* ========================================================================== 
   CABEÇALHO / NAVEGAÇÃO
   ========================================================================== */

.hero-section {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1035;
    min-height: var(--fbaf-header-height);
    color: var(--fbaf-white);
    background:
        radial-gradient(circle at 92% -70%, rgba(255, 255, 255, 0.20), transparent 16rem),
        radial-gradient(circle at 75% 140%, rgba(56, 189, 248, 0.18), transparent 18rem),
        linear-gradient(118deg, var(--fbaf-navy-950) 0%, var(--fbaf-navy-900) 48%, var(--fbaf-blue-800) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 34px rgba(2, 18, 42, 0.22);
}

.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fbaf-green-500), var(--fbaf-cyan-400), var(--fbaf-blue-600));
}

.app-navbar {
    min-height: var(--fbaf-header-height);
    padding: 0.72rem 1.35rem;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--fbaf-white);
    text-decoration: none !important;
    white-space: nowrap;
}

.brand-wrap:hover {
    color: var(--fbaf-white);
    transform: translateY(-1px);
}

.brand-symbol {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.brand-symbol i {
    font-size: 1.25rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-name {
    font-size: 1.23rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 0.22rem;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.105em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--fbaf-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.14);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.20);
}

.navbar-toggler i {
    font-size: 1.65rem;
    line-height: 1;
}

.navbar-nav {
    align-items: center;
    gap: 0.12rem;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 42px;
    padding: 0.58rem 0.72rem !important;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    font-size: 0.95rem;
    opacity: 0.86;
}

.navbar-nav .nav-item:hover > .nav-link,
.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .nav-link.active {
    color: var(--fbaf-white) !important;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-item.active > .nav-link::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--fbaf-green-500);
    transform: translateX(-50%);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.18rem;
    vertical-align: 0.1em;
    opacity: 0.72;
}

.account-link {
    margin-left: 0.12rem;
    padding-left: 0.62rem !important;
    padding-right: 0.62rem !important;
}

.account-avatar {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
}

.account-avatar i {
    font-size: 1.08rem !important;
    opacity: 1 !important;
}

.dropdown-menu {
    min-width: 218px;
    margin-top: 0.55rem !important;
    padding: 0.52rem !important;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    border-radius: 15px !important;
    background: rgba(3, 26, 58, 0.985) !important;
    box-shadow: var(--fbaf-shadow-lg) !important;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 52%);
}

.dropdown-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 40px;
    padding: 0.58rem 0.72rem !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    background: transparent !important;
    font-size: 0.82rem;
    font-weight: 500;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: rgba(125, 211, 252, 0.95);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
    color: var(--fbaf-white) !important;
    background: rgba(14, 99, 185, 0.62) !important;
    transform: translateX(2px);
}

.dropdown-divider {
    margin: 0.42rem 0 !important;
    border-top-color: rgba(148, 163, 184, 0.18) !important;
}

.dropdown-header-custom {
    position: relative;
    z-index: 1;
    padding: 0.42rem 0.72rem 0.52rem;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ========================================================================== 
   ESTRUTURA / CARDS / TÍTULOS
   ========================================================================== */

.app-main-shell {
    width: 100%;
    flex: 1 0 auto;
}

.app-main-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px 34px;
}

#main-content {
    min-width: 0;
}

.dashboard-div,
.dashboard-box,
.fbaf-panel,
.card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--fbaf-radius-lg);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--fbaf-shadow-sm);
}

.dashboard-div,
.fbaf-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.dashboard-box {
    min-height: 250px;
    max-height: 250px;
    margin-bottom: 24px;
    padding: 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fbaf-slate-300) transparent;
}

.dashboard-div,
.dashboard-box,
.card,
.fbaf-panel {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-div:hover,
.dashboard-box:hover,
.card.fbaf-hover:hover,
.fbaf-panel.fbaf-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 99, 185, 0.18);
    box-shadow: var(--fbaf-shadow-md);
}

.card {
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
    background: linear-gradient(180deg, #ffffff 0%, var(--fbaf-slate-50) 100%);
    color: var(--fbaf-slate-800);
    font-weight: 600;
}

.card-body {
    padding: 1.2rem;
}

.page-title,
h1.page-title,
h2.page-title {
    margin: 0;
    color: var(--fbaf-slate-950);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-subtitle {
    margin: 0.35rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: 0.9rem;
}

.fbaf-page-header {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.fbaf-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* ========================================================================== 
   FORMULÁRIOS
   ========================================================================== */

label,
.form-label {
    margin-bottom: 0.4rem;
    color: var(--fbaf-slate-700);
    font-size: 0.84rem;
    font-weight: 600;
}

.form-control,
.custom-select {
    min-height: 42px;
    border: 1px solid var(--fbaf-slate-300);
    border-radius: 10px;
    color: var(--fbaf-slate-800);
    background-color: var(--fbaf-white);
    box-shadow: none !important;
    transition: border-color var(--fbaf-transition), box-shadow var(--fbaf-transition), background-color var(--fbaf-transition);
}

.form-control:hover,
.custom-select:hover {
    border-color: var(--fbaf-slate-400);
}

.form-control:focus,
.custom-select:focus {
    border-color: rgba(14, 99, 185, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(14, 99, 185, 0.10) !important;
}

.form-control::placeholder {
    color: var(--fbaf-slate-400);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-control:disabled,
.form-control[readonly],
.custom-select:disabled {
    color: var(--fbaf-slate-500);
    background: var(--fbaf-slate-100);
    cursor: not-allowed;
}

.form-text,
.text-muted {
    color: var(--fbaf-slate-500) !important;
}

.input-group-text {
    border-color: var(--fbaf-slate-300);
    background: var(--fbaf-slate-50);
    color: var(--fbaf-slate-500);
}

.custom-control-label {
    cursor: pointer;
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--fbaf-blue-700);
    background-color: var(--fbaf-blue-700);
}

/* ========================================================================== 
   BOTÕES
   ========================================================================== */

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.52rem 0.92rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: none;
    transition:
        transform var(--fbaf-transition),
        box-shadow var(--fbaf-transition),
        background-color var(--fbaf-transition),
        border-color var(--fbaf-transition),
        color var(--fbaf-transition),
        opacity var(--fbaf-transition);
}

.btn:hover:not(:disabled):not(.disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled):not(.disabled) {
    transform: translateY(0);
}

.btn-primary {
    border-color: var(--fbaf-blue-700);
    background: linear-gradient(135deg, var(--fbaf-blue-700), var(--fbaf-blue-800));
    box-shadow: 0 7px 18px rgba(14, 99, 185, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--fbaf-navy-900);
    background: linear-gradient(135deg, var(--fbaf-blue-800), var(--fbaf-navy-900));
    box-shadow: 0 9px 22px rgba(14, 99, 185, 0.24);
}

.btn-success {
    border-color: var(--fbaf-green-600);
    background: linear-gradient(135deg, var(--fbaf-green-500), var(--fbaf-green-600));
}

.btn-danger {
    border-color: var(--fbaf-red-600);
    background: linear-gradient(135deg, #ef4444, var(--fbaf-red-600));
}

.btn-warning {
    color: #3d2b00;
    border-color: var(--fbaf-amber-500);
    background: linear-gradient(135deg, #fbbf24, var(--fbaf-amber-500));
}

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

.btn-outline-primary {
    color: var(--fbaf-blue-700);
    border-color: rgba(14, 99, 185, 0.38);
    background: var(--fbaf-white);
}

.btn-outline-primary:hover {
    color: var(--fbaf-white);
    border-color: var(--fbaf-blue-700);
    background: var(--fbaf-blue-700);
}

.btn-icon {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
}

.btn-sm {
    min-height: 34px;
    padding: 0.4rem 0.7rem;
    border-radius: 9px;
    font-size: 0.78rem;
}

.btn-lg {
    min-height: 46px;
    border-radius: 12px;
}

.btn.is-loading,
.fbaf-is-submitting .btn[type='submit'],
.fbaf-is-submitting button[type='submit'],
.fbaf-is-submitting input[type='submit'] {
    pointer-events: none;
    cursor: wait !important;
    opacity: 0.76;
}

.fbaf-loading-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.fbaf-spinner {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-block;
    flex: 0 0 0.95rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fbaf-spin 0.65s linear infinite;
}

@keyframes fbaf-spin {
    to { transform: rotate(360deg); }
}

/* ========================================================================== 
   TABELAS - PADRÃO PRINCIPAL
   ========================================================================== */

.table-responsive,
.fbaf-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 16px;
    background: var(--fbaf-white);
    box-shadow: var(--fbaf-shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--fbaf-slate-300) transparent;
}

.table-responsive::-webkit-scrollbar,
.fbaf-table-wrap::-webkit-scrollbar {
    height: 9px;
}

.table-responsive::-webkit-scrollbar-track,
.fbaf-table-wrap::-webkit-scrollbar-track {
    background: var(--fbaf-slate-50);
}

.table-responsive::-webkit-scrollbar-thumb,
.fbaf-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid var(--fbaf-slate-50);
    border-radius: 999px;
    background: var(--fbaf-slate-300);
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.fbaf-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--fbaf-slate-400);
}

.table-responsive > .table,
.fbaf-table-wrap > .table,
.table-responsive table,
.fbaf-table-wrap table {
    width: 100%;
    margin: 0;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--fbaf-slate-800);
    background: var(--fbaf-white);
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
}

.table thead th {
    position: relative;
    padding: 0.88rem 0.9rem;
    border-top: 0;
    border-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, var(--fbaf-navy-900) 0%, var(--fbaf-blue-800) 100%);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.table thead th + th::before {
    content: '';
    position: absolute;
    top: 23%;
    bottom: 23%;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.10);
}

.table thead th:first-child {
    border-top-left-radius: 14px;
}

.table thead th:last-child {
    border-top-right-radius: 14px;
}

.table tbody td,
.table tbody th {
    padding: 0.82rem 0.9rem;
    border-top: 1px solid var(--fbaf-slate-200);
    color: var(--fbaf-slate-700);
    background: var(--fbaf-white);
    vertical-align: middle;
    transition: background-color 150ms ease, color 150ms ease;
}

.table tbody tr:first-child td,
.table tbody tr:first-child th {
    border-top-color: rgba(226, 232, 240, 0.72);
}

.table tbody tr:last-child td:first-child,
.table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 14px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.table-striped tbody tr:nth-of-type(odd) td,
.table-striped tbody tr:nth-of-type(odd) th {
    background-color: #fbfdff;
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th,
.table tbody tr:hover td,
.table tbody tr:hover th {
    color: var(--fbaf-slate-900);
    background-color: rgba(219, 234, 254, 0.47);
}

.table tbody tr:hover td:first-child,
.table tbody tr:hover th:first-child {
    box-shadow: inset 3px 0 0 var(--fbaf-blue-600);
}

.table td strong,
.table th strong {
    color: var(--fbaf-slate-900);
    font-weight: 600;
}

.table td a:not(.btn) {
    color: var(--fbaf-blue-700);
    font-weight: 500;
}

.table td a:not(.btn):hover {
    color: var(--fbaf-navy-900);
    text-decoration: underline;
}

.table td .btn,
.table th .btn {
    margin-top: 0;
    margin-bottom: 0;
}

.table .col-acoes,
.table .acoes,
.table td:last-child.table-actions,
.table th:last-child.table-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.table-actions,
.action-buttons,
.acoes-tabela {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.table-sm thead th,
.table-sm tbody td,
.table-sm tbody th {
    padding: 0.62rem 0.72rem;
}

.table-bordered {
    border: 0;
}

.table-bordered th,
.table-bordered td {
    border-right: 0;
    border-left: 0;
}

.table-dark {
    color: var(--fbaf-white);
    background: var(--fbaf-navy-900);
}

.table caption {
    padding: 0.8rem 0.9rem;
    color: var(--fbaf-slate-500);
    font-size: 0.78rem;
    caption-side: bottom;
}

.fbaf-table-toolbar {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fbaf-table-title {
    margin: 0;
    color: var(--fbaf-slate-900);
    font-size: 1rem;
    font-weight: 700;
}

.fbaf-table-subtitle {
    margin: 0.15rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: 0.78rem;
}

.fbaf-table-empty {
    padding: 2.4rem 1rem !important;
    text-align: center;
    color: var(--fbaf-slate-500) !important;
    background: var(--fbaf-white) !important;
}

.fbaf-table-empty i {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--fbaf-slate-400);
    font-size: 1.65rem;
}

/* ========================================================================== 
   DATATABLES / PAGINAÇÃO
   ========================================================================== */

.dataTables_wrapper,
.dt-container {
    width: 100%;
    color: var(--fbaf-slate-700);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dt-container .dt-length,
.dt-container .dt-search,
.dt-container .dt-info,
.dt-container .dt-paging {
    margin: 0.65rem 0;
    color: var(--fbaf-slate-500);
    font-size: 0.79rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dt-container .dt-search input,
.dt-container .dt-length select {
    min-height: 38px;
    margin-left: 0.35rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--fbaf-slate-300) !important;
    border-radius: 9px;
    background: var(--fbaf-white) !important;
    color: var(--fbaf-slate-800) !important;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
.dt-container .dt-search input:focus,
.dt-container .dt-length select:focus {
    border-color: var(--fbaf-blue-700) !important;
    box-shadow: 0 0 0 0.18rem rgba(14, 99, 185, 0.09);
}

.page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dt-container .dt-paging .dt-paging-button {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 0.12rem;
    padding: 0.42rem 0.62rem !important;
    border: 1px solid var(--fbaf-slate-200) !important;
    border-radius: 9px !important;
    color: var(--fbaf-slate-600) !important;
    background: var(--fbaf-white) !important;
    box-shadow: none !important;
}

.page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dt-container .dt-paging .dt-paging-button.current {
    color: var(--fbaf-white) !important;
    border-color: var(--fbaf-blue-700) !important;
    background: linear-gradient(135deg, var(--fbaf-blue-700), var(--fbaf-blue-800)) !important;
}

.page-link:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dt-container .dt-paging .dt-paging-button:hover {
    color: var(--fbaf-blue-800) !important;
    border-color: rgba(14, 99, 185, 0.28) !important;
    background: var(--fbaf-blue-50) !important;
}

.page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dt-container .dt-paging .dt-paging-button.disabled {
    color: var(--fbaf-slate-400) !important;
    background: var(--fbaf-slate-50) !important;
    opacity: 0.7;
}

/* ========================================================================== 
   BADGES / STATUS
   ========================================================================== */

.badge,
.fbaf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.badge-success,
.fbaf-badge-success {
    color: #166534;
    background: var(--fbaf-green-100);
}

.badge-danger,
.fbaf-badge-danger {
    color: #991b1b;
    background: var(--fbaf-red-100);
}

.badge-warning,
.fbaf-badge-warning {
    color: #92400e;
    background: var(--fbaf-amber-100);
}

.badge-primary,
.badge-info,
.fbaf-badge-primary {
    color: #1e40af;
    background: var(--fbaf-blue-100);
}

.badge-secondary,
.fbaf-badge-secondary {
    color: var(--fbaf-slate-700);
    background: var(--fbaf-slate-200);
}

/* ========================================================================== 
   ALERTAS
   ========================================================================== */

.alert {
    position: relative;
    padding: 0.9rem 1rem;
    border-width: 1px;
    border-radius: 12px;
    font-size: 0.84rem;
    box-shadow: var(--fbaf-shadow-xs);
}

.alert-success {
    color: #166534;
    border-color: #bbf7d0;
    background: var(--fbaf-green-50);
}

.alert-danger {
    color: #991b1b;
    border-color: #fecaca;
    background: var(--fbaf-red-50);
}

.alert-warning {
    color: #92400e;
    border-color: #fde68a;
    background: var(--fbaf-amber-50);
}

.alert-info,
.alert-primary {
    color: #1e40af;
    border-color: #bfdbfe;
    background: var(--fbaf-blue-50);
}

/* ========================================================================== 
   MODAIS
   ========================================================================== */

.modal {
    z-index: 1080;
}

.modal-backdrop {
    z-index: 1070;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(2, 18, 42, 0.30);
}

.modal-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
    background: linear-gradient(180deg, #ffffff, var(--fbaf-slate-50));
}

.modal-title {
    color: var(--fbaf-slate-900);
    font-size: 1rem;
    font-weight: 700;
}

.modal-body {
    padding: 1.2rem;
}

.modal-footer {
    padding: 0.85rem 1.2rem;
    border-top: 1px solid var(--fbaf-slate-200);
    background: var(--fbaf-slate-50);
}

/* SweetAlert acima dos menus/modais legados. */
.swal2-container {
    z-index: 20000 !important;
}

.swal2-popup {
    border-radius: 18px !important;
}

/* ========================================================================== 
   UTILITÁRIOS GLOBAIS
   ========================================================================== */

.text-primary {
    color: var(--fbaf-blue-700) !important;
}

.text-success {
    color: var(--fbaf-green-600) !important;
}

.text-danger {
    color: var(--fbaf-red-600) !important;
}

.bg-light {
    background-color: var(--fbaf-slate-50) !important;
}

.fbaf-muted {
    color: var(--fbaf-slate-500);
}

.fbaf-nowrap {
    white-space: nowrap;
}

.fbaf-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbaf-divider {
    height: 1px;
    margin: 1rem 0;
    background: var(--fbaf-slate-200);
}

.fbaf-required::after {
    content: ' *';
    color: var(--fbaf-red-600);
}

/* ========================================================================== 
   RODAPÉ
   ========================================================================== */

.footer {
    flex-shrink: 0;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.62);
    background:
        radial-gradient(circle at 85% 160%, rgba(14, 99, 185, 0.28), transparent 18rem),
        linear-gradient(110deg, #071425 0%, #0b1d33 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1440px;
    min-height: 62px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.78rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fbaf-green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10);
}

.footer a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    color: #7dd3fc;
    text-decoration: none;
}

/* ========================================================================== 
   DESKTOP
   ========================================================================== */

@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar-nav .dropdown-menu {
        top: calc(100% - 2px) !important;
    }

    .navbar-nav .dropdown::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px;
    }
}

/* ========================================================================== 
   TABLET / MOBILE
   ========================================================================== */

@media (max-width: 1199.98px) {
    .app-navbar {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .navbar-nav .nav-link {
        padding-left: 0.58rem !important;
        padding-right: 0.58rem !important;
        font-size: 0.78rem;
    }

    .brand-subtitle {
        display: none;
    }
}

@media (max-width: 991.98px) {
    :root {
        --fbaf-header-height: 70px;
    }

    body.app-body {
        padding-top: calc(var(--fbaf-header-height) + 20px);
    }

    body.app-body.sem-barra-superior {
        padding-top: 0;
    }

    .app-navbar {
        min-height: var(--fbaf-header-height);
    }

    .brand-symbol {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1.12rem;
    }

    .navbar-collapse {
        max-height: calc(100vh - 92px);
        margin-top: 0.72rem;
        padding: 0.7rem;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        background: rgba(3, 26, 58, 0.985);
        box-shadow: 0 24px 60px rgba(2, 18, 42, 0.35);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 0.2rem;
    }

    .navbar-nav .nav-link {
        min-height: 44px;
        padding: 0.64rem 0.72rem !important;
        font-size: 0.86rem;
    }

    .navbar-nav .nav-item.active > .nav-link::after,
    .navbar-nav .nav-link.active::after {
        left: 8px;
        top: 50%;
        bottom: auto;
        width: 3px;
        height: 20px;
        transform: translateY(-50%);
    }

    .account-link {
        margin-left: 0;
    }

    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        min-width: 0;
        margin: 0.28rem 0 0.44rem !important;
        padding: 0.42rem !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.055) !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .dropdown-item {
        min-height: 42px;
        padding-left: 0.78rem !important;
        padding-right: 0.78rem !important;
    }

    .dropdown-menu-right {
        right: auto;
        left: auto;
    }

    .app-main-container {
        padding: 0 18px 26px;
    }

    .dashboard-div,
    .dashboard-box,
    .fbaf-panel {
        padding: 20px;
    }

    .fbaf-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .fbaf-page-actions {
        justify-content: flex-start;
    }

    .footer-inner {
        padding-left: 18px;
        padding-right: 18px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    body.app-body {
        font-size: 0.92rem;
    }

    .app-main-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-div,
    .dashboard-box,
    .fbaf-panel,
    .card {
        border-radius: 15px;
    }

    .dashboard-div:hover,
    .dashboard-box:hover {
        transform: none;
    }

    .table-responsive,
    .fbaf-table-wrap {
        border-radius: 13px;
    }

    .table {
        font-size: 0.81rem;
    }

    .table thead th {
        padding: 0.72rem 0.68rem;
        font-size: 0.67rem;
    }

    .table tbody td,
    .table tbody th {
        padding: 0.7rem 0.68rem;
        white-space: nowrap;
    }

    .table thead th:first-child {
        border-top-left-radius: 11px;
    }

    .table thead th:last-child {
        border-top-right-radius: 11px;
    }

    .table-actions,
    .action-buttons,
    .acoes-tabela {
        justify-content: flex-start;
    }

    .btn-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .btn-group > form {
        width: 100%;
        margin: 0 !important;
    }

    .btn-group > form > button {
        width: 100%;
        margin: 0 !important;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_paginate,
    .dt-container .dt-search,
    .dt-container .dt-length,
    .dt-container .dt-paging {
        float: none !important;
        width: 100%;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dt-container .dt-search input {
        width: min(100%, 280px);
    }
}

@media (max-width: 420px) {
    .brand-copy {
        max-width: 180px;
    }

    .brand-name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-main-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .btn:not(.btn-icon) {
        min-height: 39px;
    }
}

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

/* ========================================================================== 
   FBAF 2026 - CAMADA MOBILE-FIRST PARA TELAS ADMINISTRATIVAS
   ========================================================================== */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 1rem;
    padding: 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.18), transparent 13rem),
        radial-gradient(circle at 70% 120%, rgba(34, 197, 94, 0.14), transparent 16rem),
        linear-gradient(135deg, var(--fbaf-navy-950) 0%, var(--fbaf-navy-900) 52%, var(--fbaf-blue-800) 100%);
    box-shadow: var(--fbaf-shadow-md);
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 1.45rem;
    right: 1.45rem;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--fbaf-green-500), var(--fbaf-cyan-400), rgba(255,255,255,.08));
}

.page-hero__content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.page-hero h1 {
    margin: 0.4rem 0 0;
    color: #fff;
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.page-hero p {
    max-width: 760px;
    margin: 0.58rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.6;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(186, 230, 253, 0.95);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.page-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 31px;
    padding: 0.35rem 0.68rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.07);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-chip--success {
    border-color: rgba(74, 222, 128, .20);
    background: rgba(34, 197, 94, .12);
    color: #dcfce7;
}

.page-hero__mark {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px;
    background: rgba(255,255,255,.075);
    color: rgba(255,255,255,.90);
    font-size: 2.15rem;
    transform: rotate(3deg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.page-hero__summary {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-width: 132px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    text-align: center;
}

.page-hero__summary span {
    display: block;
    color: rgba(255,255,255,.60);
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-hero__summary strong {
    display: block;
    margin-top: .15rem;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}

.page-hero--dashboard {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
}

.page-hero--compact {
    min-height: 160px;
}

.dashboard-page,
.users-page,
.form-page {
    width: 100%;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 1rem 0;
}

.stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 17px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--fbaf-shadow-sm);
}

.stat-card__icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.08rem;
}

.stat-card--warning .stat-card__icon {
    color: #92400e;
    background: var(--fbaf-amber-100);
}

.stat-card--success .stat-card__icon {
    color: #166534;
    background: var(--fbaf-green-100);
}

.stat-card--info .stat-card__icon {
    color: #075985;
    background: #e0f2fe;
}

.stat-card__label {
    display: block;
    overflow: hidden;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.stat-card__value {
    display: block;
    margin-top: .12rem;
    color: var(--fbaf-slate-950);
    font-size: 1.4rem;
    line-height: 1.1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-panel,
.data-panel,
.filter-panel,
.form-panel {
    min-width: 0;
    margin-bottom: 1rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--fbaf-shadow-sm);
}

.dashboard-panel {
    overflow: hidden;
}

.panel-heading,
.data-panel__header,
.filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: 1rem 1.05rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.panel-heading__title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.panel-heading h2,
.data-panel__header h2,
.filter-panel__header h2 {
    margin: 0;
    color: var(--fbaf-slate-900);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.25;
}

.panel-heading p,
.data-panel__header p,
.filter-panel__header p {
    margin: .18rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: .72rem;
    line-height: 1.4;
}

.panel-icon,
.form-section-heading__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: .95rem;
}

.panel-icon--warning {
    color: #92400e;
    background: var(--fbaf-amber-100);
}

.panel-icon--success {
    color: #166534;
    background: var(--fbaf-green-100);
}

.panel-icon--info {
    color: #075985;
    background: #e0f2fe;
}

.dashboard-panel__body {
    padding: .8rem;
}

.dashboard-panel__body .fbaf-table-wrap,
.dashboard-panel__body .table-responsive {
    border-radius: 13px;
    box-shadow: none;
}

.table-primary-text {
    color: var(--fbaf-slate-900);
    font-weight: 600;
    line-height: 1.35;
}

.table-break-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-link-main {
    display: inline-block;
    color: var(--fbaf-blue-800) !important;
    font-weight: 600 !important;
    line-height: 1.35;
}

.table-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--fbaf-slate-600);
    white-space: nowrap;
}

.fbaf-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    min-height: 28px;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 600;
    line-height: 1.2;
}

.fbaf-status--success {
    color: #166534;
    background: var(--fbaf-green-100);
}

.fbaf-status--warning {
    color: #92400e;
    background: var(--fbaf-amber-100);
}

.fbaf-status--danger {
    color: #991b1b;
    background: var(--fbaf-red-100);
}

.fbaf-status--info {
    color: #075985;
    background: #e0f2fe;
}

.fbaf-status--neutral {
    color: var(--fbaf-slate-700);
    background: var(--fbaf-slate-100);
}

.fbaf-status__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .72;
}

.table-actions--center {
    justify-content: center;
}

.fbaf-table-empty {
    white-space: normal !important;
}

.fbaf-table-empty strong,
.fbaf-table-empty span {
    display: block;
}

.fbaf-table-empty strong {
    margin-top: .15rem;
    color: var(--fbaf-slate-700);
    font-size: .86rem;
}

.fbaf-table-empty span {
    margin-top: .2rem;
    color: var(--fbaf-slate-400);
    font-size: .72rem;
}

.filter-panel {
    padding: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.55fr) minmax(160px, .8fr) minmax(150px, .7fr) auto;
    gap: .75rem;
    align-items: end;
    padding: 1rem;
}

.filter-grid .form-group {
    margin-bottom: 0;
}

.filter-grid__submit .btn {
    min-width: 145px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap > i {
    position: absolute;
    top: 50%;
    left: .82rem;
    z-index: 2;
    color: var(--fbaf-slate-400);
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon-wrap .form-control {
    padding-left: 2.35rem;
}

.data-panel {
    overflow: hidden;
}

.data-panel__header .btn {
    flex: 0 0 auto;
}

.data-panel > .fbaf-table-wrap,
.data-panel > .table-responsive {
    border: 0;
    border-top: 1px solid var(--fbaf-slate-100);
    border-radius: 0;
    box-shadow: none;
}

.pagination-wrap {
    padding: .85rem 1rem 1rem;
    border-top: 1px solid var(--fbaf-slate-100);
    background: var(--fbaf-slate-50);
}

.page-action-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .9rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--fbaf-shadow-xs);
}

.form-panel {
    width: 100%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
    padding: 1.25rem;
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .9rem;
}

.form-section-heading__icon {
    color: #075985;
    background: #e0f2fe;
}

.form-section-heading__icon--green {
    color: #166534;
    background: var(--fbaf-green-100);
}

.form-section-heading__icon--amber {
    color: #92400e;
    background: var(--fbaf-amber-100);
}

.form-section-heading h2 {
    margin: 0;
    color: var(--fbaf-slate-900);
    font-size: .95rem;
    font-weight: 700;
}

.form-section-heading p {
    margin: .15rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: .72rem;
}

.form-section-divider {
    height: 1px;
    margin: 1.05rem 0;
    background: var(--fbaf-slate-200);
}

.form-grid {
    display: grid;
    gap: .75rem;
}

.form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid__full {
    grid-column: 1 / -1;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.required-mark {
    color: var(--fbaf-red-600);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fbaf-slate-200);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .35rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: var(--fbaf-slate-500);
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--fbaf-blue-800);
    background: var(--fbaf-blue-50);
}

.alert-with-icon {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}

.alert-with-icon > i {
    margin-top: .08rem;
    font-size: 1.05rem;
}

.alert-with-icon strong,
.alert-with-icon span {
    display: block;
}

.alert-with-icon span {
    margin-top: .1rem;
    font-size: .82rem;
}

.modal-eyebrow {
    display: block;
    margin-bottom: .15rem;
    color: var(--fbaf-blue-700);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.selected-user-card {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
    padding: .75rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 12px;
    background: var(--fbaf-slate-50);
}

.selected-user-card__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--fbaf-blue-800);
    background: var(--fbaf-blue-100);
}

.selected-user-card small,
.selected-user-card strong {
    display: block;
}

.selected-user-card small {
    color: var(--fbaf-slate-500);
    font-size: .67rem;
}

.selected-user-card strong {
    margin-top: .1rem;
    color: var(--fbaf-slate-900);
    font-size: .86rem;
}

.fbaf-swal-popup {
    border-radius: 20px !important;
}

.fbaf-swal-popup--form {
    width: min(92vw, 620px) !important;
}

.swal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .35rem;
}

.swal-form-group {
    min-width: 0;
    text-align: left;
}

.swal-form-group--full {
    grid-column: 1 / -1;
}

.swal-form-group label {
    display: block;
    margin-bottom: .35rem;
    color: var(--fbaf-slate-700);
    font-size: .76rem;
    font-weight: 600;
}

.swal-form-group small {
    display: block;
    margin-top: .25rem;
    color: var(--fbaf-slate-400);
    font-size: .66rem;
}

.swal-form-control {
    width: 100%;
    min-height: 42px;
    padding: .55rem .72rem;
    border: 1px solid var(--fbaf-slate-300);
    border-radius: 10px;
    color: var(--fbaf-slate-800);
    background: #fff;
    outline: none;
}

.swal-form-control:focus {
    border-color: var(--fbaf-blue-700);
    box-shadow: 0 0 0 .18rem rgba(14,99,185,.10);
}

.swal-detail-list {
    overflow: hidden;
    margin-top: .35rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 13px;
    background: #fff;
    text-align: left;
}

.swal-detail-row {
    display: grid;
    grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr);
    gap: .65rem;
    padding: .58rem .7rem;
    border-bottom: 1px solid var(--fbaf-slate-100);
}

.swal-detail-row:last-child {
    border-bottom: 0;
}

.swal-detail-row span {
    color: var(--fbaf-slate-500);
    font-size: .7rem;
}

.swal-detail-row strong {
    overflow-wrap: anywhere;
    color: var(--fbaf-slate-800);
    font-size: .72rem;
    font-weight: 600;
    text-align: right;
}

.swal-danger-note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin-top: .7rem;
    padding: .65rem .7rem;
    border: 1px solid var(--fbaf-red-100);
    border-radius: 11px;
    color: #991b1b;
    background: var(--fbaf-red-50);
    font-size: .72rem;
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    .stat-card,
    .dashboard-panel,
    .data-panel,
    .filter-panel,
    .form-panel {
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .stat-card:hover,
    .dashboard-panel:hover,
    .data-panel:hover,
    .filter-panel:hover,
    .form-panel:hover {
        border-color: rgba(14,99,185,.20);
        box-shadow: var(--fbaf-shadow-md);
    }

    .stat-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 991.98px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid__search {
        grid-column: 1 / -1;
    }

    .filter-grid__submit {
        display: flex;
        align-items: flex-end;
    }

    .filter-grid__submit .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        align-items: flex-start;
        min-height: 0;
        margin-bottom: .8rem;
        padding: 1.1rem 1rem 1.2rem;
        border-radius: 18px;
    }

    .page-hero::after {
        left: 1rem;
        right: 1rem;
    }

    .page-hero h1 {
        font-size: 1.42rem;
    }

    .page-hero p {
        margin-top: .45rem;
        font-size: .78rem;
    }

    .page-hero__mark {
        position: absolute;
        top: -18px;
        right: -16px;
        width: 92px;
        height: 92px;
        border-color: rgba(255,255,255,.07);
        background: rgba(255,255,255,.045);
        color: rgba(255,255,255,.10);
        font-size: 2.3rem;
        transform: rotate(10deg);
    }

    .page-hero__summary {
        min-width: 92px;
        padding: .68rem .72rem;
    }

    .page-hero__summary span {
        font-size: .57rem;
    }

    .page-hero__summary strong {
        font-size: 1.45rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: .55rem;
        margin: .75rem 0;
    }

    .stat-card {
        padding: .72rem .8rem;
        border-radius: 14px;
    }

    .stat-card__icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 11px;
    }

    .stat-card__label {
        font-size: .66rem;
    }

    .stat-card__value {
        font-size: 1.15rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard-panel,
    .filter-panel,
    .data-panel,
    .form-panel {
        border-radius: 15px;
    }

    .panel-heading,
    .data-panel__header,
    .filter-panel__header {
        padding: .82rem .85rem;
    }

    .panel-heading__title {
        gap: .55rem;
    }

    .panel-icon,
    .form-section-heading__icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        border-radius: 10px;
    }

    .panel-heading h2,
    .data-panel__header h2,
    .filter-panel__header h2 {
        font-size: .88rem;
    }

    .panel-heading p,
    .data-panel__header p,
    .filter-panel__header p {
        font-size: .66rem;
    }

    .dashboard-panel__body {
        padding: .62rem;
    }

    /* Tabelas em forma de cards no celular. */
    .table-mobile-cards {
        border-collapse: separate;
        border-spacing: 0 .55rem;
        padding: 0 .52rem .52rem;
        background: var(--fbaf-slate-50);
    }

    .table-mobile-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td,
    .table-mobile-cards th {
        display: block;
        width: 100%;
    }

    .table-mobile-cards tbody tr:not(.fbaf-empty-row) {
        overflow: hidden;
        margin: 0;
        border: 1px solid var(--fbaf-slate-200);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(15,23,42,.035);
    }

    .table-mobile-cards tbody tr + tr {
        margin-top: .55rem;
    }

    .table-mobile-cards tbody tr:hover td,
    .table-mobile-cards tbody tr:hover th {
        background: #fff;
    }

    .table-mobile-cards tbody tr:hover td:first-child,
    .table-mobile-cards tbody tr:hover th:first-child {
        box-shadow: none;
    }

    .table-mobile-cards tbody td,
    .table-mobile-cards tbody th {
        min-height: 43px;
        display: grid;
        grid-template-columns: minmax(92px, .72fr) minmax(0, 1.28fr);
        align-items: center;
        gap: .7rem;
        padding: .62rem .72rem;
        border-top: 1px solid var(--fbaf-slate-100) !important;
        border-radius: 0 !important;
        white-space: normal;
        font-size: .76rem;
        text-align: right !important;
    }

    .table-mobile-cards tbody td:first-child,
    .table-mobile-cards tbody th:first-child {
        border-top: 0 !important;
    }

    .table-mobile-cards tbody td::before,
    .table-mobile-cards tbody th::before {
        content: attr(data-label);
        color: var(--fbaf-slate-400);
        font-size: .61rem;
        font-weight: 700;
        letter-spacing: .045em;
        line-height: 1.25;
        text-align: left;
        text-transform: uppercase;
    }

    .table-mobile-cards .table-primary-text,
    .table-mobile-cards .table-link-main,
    .table-mobile-cards .table-meta-inline,
    .table-mobile-cards .fbaf-status {
        justify-self: end;
        text-align: right;
    }

    .table-mobile-cards .table-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .table-mobile-cards .fbaf-empty-row {
        display: block;
        margin: 0;
    }

    .table-mobile-cards .fbaf-empty-row td {
        display: block;
        padding: 1.8rem .9rem !important;
        border: 0 !important;
        text-align: center !important;
    }

    .table-mobile-cards .fbaf-empty-row td::before {
        display: none;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .82rem;
    }

    .filter-grid__search {
        grid-column: auto;
    }

    .filter-grid__submit .btn {
        min-width: 0;
    }

    .pagination-wrap {
        overflow-x: auto;
        padding: .72rem;
        -webkit-overflow-scrolling: touch;
    }

    .pagination {
        flex-wrap: nowrap !important;
        width: max-content;
        min-width: 100%;
    }

    .page-link-text {
        display: none;
    }

    .page-action-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
        padding: .7rem;
        border-radius: 14px;
    }

    .page-action-bar .btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding-right: .5rem;
        padding-left: .5rem;
        font-size: .72rem;
    }

    .form-panel {
        padding: .9rem .82rem;
    }

    .form-grid--2,
    .swal-form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid__full,
    .swal-form-group--full {
        grid-column: auto;
    }

    .form-section-heading {
        align-items: flex-start;
        margin-bottom: .75rem;
    }

    .form-actions--sticky-mobile {
        position: sticky;
        bottom: max(.55rem, env(safe-area-inset-bottom));
        z-index: 20;
        display: grid;
        grid-template-columns: .85fr 1.15fr;
        margin: 1rem -.35rem -.35rem;
        padding: .6rem;
        border: 1px solid rgba(148,163,184,.24);
        border-radius: 14px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 12px 35px rgba(15,23,42,.18);
        backdrop-filter: blur(12px);
    }

    .form-actions--sticky-mobile .btn {
        width: 100%;
        min-width: 0;
        padding-right: .5rem;
        padding-left: .5rem;
        font-size: .72rem;
    }

    .swal-detail-row {
        grid-template-columns: 1fr;
        gap: .16rem;
    }

    .swal-detail-row strong {
        text-align: left;
    }

    .modal-dialog {
        margin: .65rem;
    }
}

@media (max-width: 420px) {
    .page-hero__summary {
        min-width: 76px;
    }

    .page-hero__summary span {
        max-width: 68px;
        line-height: 1.15;
    }

    .page-action-bar {
        grid-template-columns: 1fr 1fr;
    }

    .table-mobile-cards tbody td,
    .table-mobile-cards tbody th {
        grid-template-columns: minmax(78px, .65fr) minmax(0, 1.35fr);
        padding: .58rem .62rem;
    }
}


/* ========================================================================== 
   DESIGN SYSTEM FBAF - BOTÕES DE AÇÃO SEMÂNTICOS
   ========================================================================== */

/*
 * PADRÃO OFICIAL
 * --------------------------------------------------------------------------
 * action-view      = visualizar / abrir
 * action-payment   = pagamentos / financeiro
 * action-edit      = editar
 * action-password  = senha / credencial
 * action-delete    = excluir / reprovar
 * action-success   = aprovar / confirmar
 * action-add       = novo / adicionar
 * action-save      = salvar
 * action-back      = voltar / cancelar
 * action-export    = exportar / baixar
 * action-import    = importar / enviar
 *
 * IMPORTANTE:
 * O bloco base vem primeiro e as paletas semânticas vêm depois.
 * Assim a cor específica da ação sempre vence o padrão neutro.
 */

/* --------------------------------------------------------------------------
   BASE - BOTÃO COMPACTO / ÍCONE
   -------------------------------------------------------------------------- */

.btn.btn-action {
    --action-bg: #f8fafc;
    --action-color: #334155;
    --action-border: #cbd5e1;
    --action-hover-bg: #475569;
    --action-hover-color: #ffffff;
    --action-hover-border: #475569;
    --action-focus: rgba(71, 85, 105, .22);
    --action-shadow: rgba(15, 23, 42, .10);

    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    flex: 0 0 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0;
    padding: 0;

    border: 1px solid var(--action-border);
    border-radius: 10px;

    background: var(--action-bg);
    color: var(--action-color);

    font-size: .96rem;
    line-height: 1;
    text-decoration: none !important;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 3px 8px var(--action-shadow);

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

.btn.btn-action i {
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.btn.btn-action:hover,
.btn.btn-action:focus {
    border-color: var(--action-hover-border);
    background: var(--action-hover-bg);
    color: var(--action-hover-color);

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px var(--action-shadow);
}

.btn.btn-action:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--action-focus),
        0 7px 16px var(--action-shadow);
}

.btn.btn-action:active:not(:disabled):not(.disabled) {
    transform: translateY(0) scale(.96);
}

.btn.btn-action:disabled,
.btn.btn-action.disabled,
.btn.btn-action[aria-disabled='true'] {
    opacity: .5;
    pointer-events: none;
    transform: none;
}

/* --------------------------------------------------------------------------
   BASE - BOTÃO COM TEXTO
   -------------------------------------------------------------------------- */

.btn.btn-system {
    --action-bg: #f8fafc;
    --action-color: #334155;
    --action-border: #cbd5e1;
    --action-hover-bg: #475569;
    --action-hover-color: #ffffff;
    --action-hover-border: #475569;
    --action-focus: rgba(71, 85, 105, .22);
    --action-shadow: rgba(15, 23, 42, .10);

    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .45rem;
    padding: .58rem 1rem;

    border: 1px solid var(--action-border);
    border-radius: 10px;

    background: var(--action-bg);
    color: var(--action-color);

    font-weight: 600;
    text-decoration: none !important;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 3px 8px var(--action-shadow);
}

.btn.btn-system i {
    color: currentColor;
}

.btn.btn-system:hover,
.btn.btn-system:focus {
    border-color: var(--action-hover-border);
    background: var(--action-hover-bg);
    color: var(--action-hover-color);

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px var(--action-shadow);
}

.btn.btn-system:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--action-focus),
        0 8px 18px var(--action-shadow);
}

/* --------------------------------------------------------------------------
   PALETAS SEMÂNTICAS

   A especificidade abaixo é proposital. Ela impede que .btn.btn-action ou
   .btn.btn-system sobrescrevam as variáveis da ação e deixem tudo cinza.
   -------------------------------------------------------------------------- */

.btn.btn-action.action-view,
.btn.btn-system.action-view {
    /* Visualizar: tema preto, mas com aparência clara como as demais ações. */
    --action-bg: #f8fafc;
    --action-color: #111827;
    --action-border: #cbd5e1;
    --action-hover-bg: #111827;
    --action-hover-color: #ffffff;
    --action-hover-border: #111827;
    --action-focus: rgba(17, 24, 39, .22);
    --action-shadow: rgba(15, 23, 42, .12);
}

/* Pagamentos / financeiro: amarelo claro no repouso e forte no hover */
.btn.btn-action.action-payment,
.btn.btn-system.action-payment {
    --action-bg: #fffbeb;
    --action-color: #a16207;
    --action-border: #fde68a;
    --action-hover-bg: #facc15;
    --action-hover-color: #422006;
    --action-hover-border: #eab308;
    --action-focus: rgba(234, 179, 8, .26);
    --action-shadow: rgba(202, 138, 4, .14);
}

.btn.btn-action.action-edit,
.btn.btn-system.action-edit {
    --action-bg: #eff6ff;
    --action-color: #1d4ed8;
    --action-border: #bfdbfe;
    --action-hover-bg: #2563eb;
    --action-hover-color: #ffffff;
    --action-hover-border: #2563eb;
    --action-focus: rgba(37, 99, 235, .24);
    --action-shadow: rgba(37, 99, 235, .16);
}

.btn.btn-action.action-password,
.btn.btn-system.action-password {
    --action-bg: #fffbeb;
    --action-color: #b45309;
    --action-border: #fde68a;
    --action-hover-bg: #d97706;
    --action-hover-color: #ffffff;
    --action-hover-border: #d97706;
    --action-focus: rgba(217, 119, 6, .24);
    --action-shadow: rgba(217, 119, 6, .16);
}

.btn.btn-action.action-delete,
.btn.btn-system.action-delete {
    --action-bg: #fef2f2;
    --action-color: #dc2626;
    --action-border: #fecaca;
    --action-hover-bg: #dc2626;
    --action-hover-color: #ffffff;
    --action-hover-border: #dc2626;
    --action-focus: rgba(220, 38, 38, .24);
    --action-shadow: rgba(220, 38, 38, .16);
}

.btn.btn-action.action-success,
.btn.btn-system.action-success {
    --action-bg: #ecfdf5;
    --action-color: #047857;
    --action-border: #a7f3d0;
    --action-hover-bg: #059669;
    --action-hover-color: #ffffff;
    --action-hover-border: #059669;
    --action-focus: rgba(5, 150, 105, .24);
    --action-shadow: rgba(5, 150, 105, .16);
}

.btn.btn-action.action-add,
.btn.btn-system.action-add {
    --action-bg: #eff6ff;
    --action-color: #1d4ed8;
    --action-border: #bfdbfe;
    --action-hover-bg: #1d4ed8;
    --action-hover-color: #ffffff;
    --action-hover-border: #1d4ed8;
    --action-focus: rgba(29, 78, 216, .24);
    --action-shadow: rgba(29, 78, 216, .16);
}

.btn.btn-action.action-save,
.btn.btn-system.action-save {
    --action-bg: #ecfdf5;
    --action-color: #047857;
    --action-border: #a7f3d0;
    --action-hover-bg: #047857;
    --action-hover-color: #ffffff;
    --action-hover-border: #047857;
    --action-focus: rgba(4, 120, 87, .24);
    --action-shadow: rgba(4, 120, 87, .16);
}

.btn.btn-action.action-back,
.btn.btn-system.action-back {
    --action-bg: #f8fafc;
    --action-color: #475569;
    --action-border: #cbd5e1;
    --action-hover-bg: #475569;
    --action-hover-color: #ffffff;
    --action-hover-border: #475569;
    --action-focus: rgba(71, 85, 105, .22);
    --action-shadow: rgba(71, 85, 105, .14);
}

.btn.btn-action.action-export,
.btn.btn-system.action-export {
    --action-bg: #ecfdf5;
    --action-color: #047857;
    --action-border: #a7f3d0;
    --action-hover-bg: #047857;
    --action-hover-color: #ffffff;
    --action-hover-border: #047857;
    --action-focus: rgba(4, 120, 87, .24);
    --action-shadow: rgba(4, 120, 87, .16);
}

.btn.btn-action.action-import,
.btn.btn-system.action-import {
    --action-bg: #faf5ff;
    --action-color: #7e22ce;
    --action-border: #e9d5ff;
    --action-hover-bg: #7e22ce;
    --action-hover-color: #ffffff;
    --action-hover-border: #7e22ce;
    --action-focus: rgba(126, 34, 206, .24);
    --action-shadow: rgba(126, 34, 206, .16);
}

/* --------------------------------------------------------------------------
   GRUPO DE AÇÕES
   -------------------------------------------------------------------------- */

.action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: .4rem;
}

.table-actions.action-group,
.table-actions--center.action-group {
    width: 100%;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   MOBILE - MAIS ÁREA DE TOQUE
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .btn.btn-action {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        flex-basis: 42px;
        border-radius: 11px;
        font-size: 1.02rem;
    }

    .btn.btn-action i {
        font-size: 1.04rem;
    }

    .action-group {
        gap: .44rem;
    }

    .btn.btn-system {
        min-height: 46px;
    }
}

/* ========================================================================== 
   COMPONENTES ADICIONAIS - CLUBES / EVENTOS
   ========================================================================== */

.table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: .28rem .62rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 999px;
    background: var(--fbaf-slate-50);
    color: var(--fbaf-slate-700);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.empty-state {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 1.4rem;
    text-align: center;
    color: var(--fbaf-slate-500);
}

.empty-state > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: .18rem;
    border-radius: 14px;
    background: var(--fbaf-slate-100);
    color: var(--fbaf-blue-700);
    font-size: 1.35rem;
}

.empty-state strong {
    color: var(--fbaf-slate-800);
    font-size: .92rem;
}

.empty-state span {
    max-width: 420px;
    font-size: .78rem;
}

.option-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.option-card {
    position: relative;
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .8rem;
    margin: 0;
    padding: .9rem 1rem .9rem 3rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 15px;
    background: var(--fbaf-white);
    cursor: pointer;
    transition:
        border-color var(--fbaf-transition),
        box-shadow var(--fbaf-transition),
        transform var(--fbaf-transition),
        background-color var(--fbaf-transition);
}

.option-card:hover {
    border-color: #bfdbfe;
    background: var(--fbaf-blue-50);
    box-shadow: var(--fbaf-shadow-xs);
    transform: translateY(-1px);
}

.option-card > input[type='checkbox'] {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: 0;
    transform: translateY(-50%);
}

.option-card__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--fbaf-blue-50);
    color: var(--fbaf-blue-700);
    font-size: 1rem;
}

.option-card__copy {
    display: flex;
    flex-direction: column;
    gap: .16rem;
}

.option-card__copy strong {
    color: var(--fbaf-slate-800);
    font-size: .84rem;
    line-height: 1.35;
}

.option-card__copy small {
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    line-height: 1.45;
}

.turnos-panel {
    margin: .2rem 0 1rem;
    padding: .9rem;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.turnos-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #dbeafe;
}

.turnos-panel__header > div {
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.turnos-panel__header strong {
    color: var(--fbaf-slate-800);
    font-size: .86rem;
}

.turnos-panel__header span {
    color: var(--fbaf-slate-500);
    font-size: .7rem;
}

.turnos-panel__header > i {
    color: var(--fbaf-blue-700);
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .option-card-grid {
        grid-template-columns: 1fr;
        gap: .6rem;
    }

    .option-card {
        min-height: 86px;
        padding: .8rem .8rem .8rem 2.8rem;
    }

    .option-card > input[type='checkbox'] {
        left: .85rem;
    }

    .turnos-panel {
        padding: .75rem;
    }
}
/* ==========================================================================
   FBAF 2026 - PADRÃO DEFINITIVO DAS TELAS DE CRIAÇÃO
   Hero, mensagens e formulário ocupam a MESMA largura da página.
   O limite de largura pertence ao .app-main-container (1440px), não ao form.
   ========================================================================== */

/*
 * IMPORTANTE:
 * Não reduzimos o hero para caber no formulário.
 * O formulário cresce e acompanha exatamente a largura útil do hero.
 */
.form-page {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.form-page > .page-hero,
.form-page > .alert,
.form-page > .form-panel {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.form-page > .page-hero {
    margin-bottom: 1rem;
}

.form-page > .form-panel {
    padding: 1.3rem;
}

/* Mesma altura do hero compacto usado no restante do sistema. */
.page-hero--form {
    min-height: 160px;
}

/* Ícones extras de seção para as novas telas. */
.form-section-heading__icon--purple {
    color: #6b21a8;
    background: #f3e8ff;
}

.form-section-heading__icon--red {
    color: #b91c1c;
    background: #fee2e2;
}

.form-section-heading__icon--slate {
    color: #334155;
    background: #f1f5f9;
}

/* Linha de ajuda / informação dentro de formulários. */
.form-hint-box {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .8rem;
    padding: .78rem .85rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #1e3a5f;
    background: #eff6ff;
    font-size: .75rem;
    line-height: 1.5;
}

.form-hint-box > i {
    flex: 0 0 auto;
    margin-top: .05rem;
    color: #2563eb;
}

/* Área de ações coerente em todas as telas de criação. */
.form-page .form-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fbaf-slate-200);
}

/*
 * Reforço final do design system.
 * Todos os botões de ação ficam CLAROS em repouso e fortes apenas no hover.
 */
.btn.btn-action.action-view,
.btn.btn-system.action-view {
    --action-bg: #f8fafc;
    --action-color: #111827;
    --action-border: #cbd5e1;
    --action-hover-bg: #111827;
    --action-hover-color: #ffffff;
    --action-hover-border: #111827;
    --action-focus: rgba(17, 24, 39, .22);
    --action-shadow: rgba(15, 23, 42, .11);
}

.btn.btn-action.action-payment,
.btn.btn-system.action-payment {
    --action-bg: #fffbeb;
    --action-color: #a16207;
    --action-border: #fde68a;
    --action-hover-bg: #facc15;
    --action-hover-color: #422006;
    --action-hover-border: #eab308;
    --action-focus: rgba(234, 179, 8, .26);
    --action-shadow: rgba(202, 138, 4, .14);
}

/* Em tabelas, grupos de ação mantêm alinhamento e ordem visual limpa. */
.action-group {
    isolation: isolate;
}

.action-group .btn-action {
    margin: 0 !important;
}

/* Uploads ficam com a mesma altura visual dos outros controles. */
input.form-control[type="file"] {
    height: auto;
    min-height: 44px;
    padding: .47rem .65rem;
}

/* Campos monetários / numéricos não estouram grids menores. */
.form-grid .form-control,
.form-grid .custom-select,
.form-grid select {
    min-width: 0;
}

/* Mobile-first: usa toda a área útil sem criar hero/card de larguras diferentes. */
@media (max-width: 767.98px) {
    .form-page {
        max-width: none;
    }

    .form-page > .page-hero {
        margin-bottom: .75rem;
    }

    .form-page > .form-panel {
        padding: .9rem .82rem;
    }

    .page-hero--form {
        min-height: 0;
    }

    .form-page .form-actions {
        margin-top: 1rem;
        padding-top: .8rem;
    }
}

/* Telas muito estreitas: ações grandes ocupam a largura disponível. */
@media (max-width: 479.98px) {
    .form-page .form-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .form-page .form-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   FBAF - PADRÃO FINAL DAS LISTAGENS
   Cabeçalho da lista + ação principal acima da tabela em todas as telas.
   ========================================================================== */

.data-panel__header > .btn,
.data-panel__header-actions .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .48rem .78rem;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.data-panel__header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.filter-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.table-actions--wrap {
    flex-wrap: wrap;
}

.btn.btn-system.btn-system--sm {
    min-height: 34px;
    padding: .4rem .62rem;
    border-radius: 9px;
    font-size: .72rem;
    line-height: 1.1;
}

.btn.btn-action.action-warning,
.btn.btn-system.action-warning {
    --action-bg: #fff7ed;
    --action-color: #c2410c;
    --action-border: #fed7aa;
    --action-hover-bg: #ea580c;
    --action-hover-color: #ffffff;
    --action-hover-border: #ea580c;
    --action-focus: rgba(234, 88, 12, .24);
    --action-shadow: rgba(234, 88, 12, .14);
}

@media (max-width: 767.98px) {
    .data-panel__header {
        align-items: center;
    }

    .data-panel__header > .btn,
    .data-panel__header-actions .btn {
        min-height: 40px;
        padding: .5rem .7rem;
        font-size: .74rem;
    }

    .table-actions--wrap {
        justify-content: flex-end;
    }
}

@media (max-width: 479.98px) {
    .data-panel__header {
        gap: .65rem;
    }

    .data-panel__header > .btn span {
        display: inline;
    }

    .data-panel__header-actions {
        width: auto;
    }
}


/* ==========================================================================
   FBAF - ELEIÇÃO
   Chapas, Conselho Fiscal e Resultados
   ========================================================================== */

.election-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.election-candidate-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--fbaf-shadow-sm);
}

.election-candidate-card__header {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.election-candidate-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #0f4c81;
    background: #e0f2fe;
    font-size: 1.05rem;
}

.election-candidate-card__title {
    min-width: 0;
}

.election-candidate-card__title > span {
    display: block;
    margin-bottom: .12rem;
    color: var(--fbaf-slate-500);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.election-candidate-card__title h3 {
    margin: 0;
    color: var(--fbaf-slate-950);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
}

.election-candidate-card__body {
    padding: 1rem;
}

.election-role-row {
    display: grid;
    gap: .18rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--fbaf-slate-100);
}

.election-role-row:first-child {
    padding-top: 0;
}

.election-role-row__label {
    color: var(--fbaf-slate-500);
    font-size: .69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.election-role-row strong {
    color: var(--fbaf-slate-900);
    font-size: .88rem;
}

.election-proposal {
    margin-top: .85rem;
    padding: .85rem;
    border-radius: 12px;
    background: var(--fbaf-slate-50);
}

.election-proposal > span {
    display: block;
    margin-bottom: .3rem;
    color: var(--fbaf-slate-500);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.election-proposal p {
    margin: 0;
    color: var(--fbaf-slate-700);
    font-size: .8rem;
    line-height: 1.55;
}

.election-proposal--empty p {
    color: var(--fbaf-slate-400);
    font-style: italic;
}

.election-candidate-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: .75rem 1rem;
    border-top: 1px solid var(--fbaf-slate-200);
    background: #fbfdff;
}

.election-empty-state {
    margin: 1rem;
}

.table-description {
    display: block;
    max-width: 720px;
    color: var(--fbaf-slate-700);
    font-size: .8rem;
    line-height: 1.5;
}

.page-hero__summary-date {
    font-size: 1rem !important;
    line-height: 1.1 !important;
}

.election-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.election-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.election-result-panel {
    overflow: hidden;
}

.election-result-panel__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #075985;
    background: #e0f2fe;
    font-size: .95rem;
}

.election-chart-wrap {
    position: relative;
    min-height: 270px;
    height: 270px;
    padding: 1rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
}

.election-result-list {
    display: grid;
    gap: .7rem;
    padding: 1rem;
}

.election-result-item {
    padding: .85rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 13px;
    background: #fff;
}

.election-result-item--winner {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.election-result-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}

.election-result-item__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    color: var(--fbaf-slate-950);
    font-size: .9rem;
    font-weight: 800;
}

.election-result-item__meta {
    margin-top: .35rem;
    color: var(--fbaf-slate-500);
    font-size: .72rem;
    line-height: 1.5;
}

.election-result-item__votes {
    flex: 0 0 auto;
    text-align: right;
}

.election-result-item__votes strong {
    display: block;
    color: var(--fbaf-slate-950);
    font-size: 1.18rem;
    line-height: 1;
}

.election-result-item__votes span {
    display: block;
    margin-top: .18rem;
    color: var(--fbaf-slate-500);
    font-size: .68rem;
}

.election-progress {
    height: 7px;
    overflow: hidden;
    margin-top: .75rem;
    border-radius: 999px;
    background: var(--fbaf-slate-100);
}

.election-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b4f8a 0%, #1782c4 100%);
}

.election-result-item--winner .election-progress > span {
    background: linear-gradient(90deg, #059669 0%, #22c55e 100%);
}

.election-results-actions {
    margin-top: 1rem;
}

.election-audit-note {
    margin: .8rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: .68rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .election-card-grid,
    .election-results-grid {
        grid-template-columns: 1fr;
    }

    .election-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .election-card-grid {
        gap: .75rem;
        padding: .75rem;
    }

    .election-candidate-card__header,
    .election-candidate-card__body {
        padding: .85rem;
    }

    .election-candidate-card__footer {
        padding: .7rem .85rem;
    }

    .election-stats {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .election-chart-wrap {
        min-height: 240px;
        height: 240px;
        padding: .75rem;
    }

    .election-result-list {
        gap: .6rem;
        padding: .75rem;
    }

    .election-result-item {
        padding: .75rem;
    }

    .election-result-item__top {
        gap: .6rem;
    }
}

@media print {
    .hero-section,
    .footer,
    .page-action-bar,
    .navbar,
    .election-results-actions {
        display: none !important;
    }

    body {
        padding: 0 !important;
        background: #fff !important;
    }

    .app-main-container,
    .management-page,
    .election-results-page {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-hero {
        color: #000 !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .page-hero * {
        color: #000 !important;
    }

    .data-panel,
    .stat-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* ========================================================================== 
   FBAF 2026 - ÚLTIMAS TELAS ADMINISTRATIVAS
   Edição, detalhes de evento e confirmação de pagamentos.
   ========================================================================== */

.edit-page,
.event-detail-page,
.payment-page {
    width: 100%;
}

/* Mantém hero e conteúdo sempre com a mesma largura útil. */
.edit-page > .page-hero,
.edit-page > .alert,
.edit-page > .form-panel,
.event-detail-page > .page-hero,
.event-detail-page > .data-panel,
.event-detail-page > .page-action-bar,
.payment-page > .page-hero,
.payment-page > .alert,
.payment-page > .dashboard-stats,
.payment-page > .data-panel,
.payment-page > .page-action-bar {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.edit-page .form-panel {
    padding: 1.3rem;
}

.entity-context {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .8rem;
    color: rgba(255,255,255,.82);
    font-size: .75rem;
    font-weight: 600;
}

.entity-context__pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 30px;
    padding: .35rem .62rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

/* --------------------------------------------------------------------------
   PREVIEW DE IMAGEM
   -------------------------------------------------------------------------- */

.image-preview-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 14px;
    background: var(--fbaf-slate-50);
}

.image-preview-card__image {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    overflow: hidden;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 14px;
    background: #fff;
}

.image-preview-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-preview-card__copy {
    min-width: 0;
}

.image-preview-card__copy strong {
    display: block;
    color: var(--fbaf-slate-800);
    font-size: .8rem;
}

.image-preview-card__copy span {
    display: block;
    margin-top: .18rem;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   DETALHES DE EVENTO
   -------------------------------------------------------------------------- */

.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    padding: 1rem;
}

.event-detail-item {
    min-width: 0;
    padding: .8rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 13px;
    background: var(--fbaf-slate-50);
}

.event-detail-item--wide {
    grid-column: span 2;
}

.event-detail-item__label {
    display: flex;
    align-items: center;
    gap: .38rem;
    color: var(--fbaf-slate-500);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-detail-item__value {
    display: block;
    margin-top: .3rem;
    overflow-wrap: anywhere;
    color: var(--fbaf-slate-900);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.45;
}

.event-description {
    margin: 0 1rem 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 14px;
    background: #fff;
    color: var(--fbaf-slate-700);
    font-size: .78rem;
    line-height: 1.65;
}

.event-description__toggle {
    display: inline-flex;
    margin-top: .5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fbaf-blue-700);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

.participant-days {
    display: grid;
    gap: .9rem;
    padding: 1rem;
}

.participant-day-card {
    overflow: hidden;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 15px;
    background: #fff;
}

.participant-day-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .78rem .9rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.participant-day-card__header strong {
    color: var(--fbaf-slate-900);
    font-size: .82rem;
}

.participant-day-card__header span {
    color: var(--fbaf-slate-500);
    font-size: .68rem;
}

.turn-session {
    padding: .85rem .9rem;
}

.turn-session + .turn-session {
    border-top: 1px solid var(--fbaf-slate-100);
}

.turn-session__title {
    display: flex;
    align-items: center;
    gap: .42rem;
    margin: 0 0 .6rem;
    color: var(--fbaf-slate-800);
    font-size: .78rem;
    font-weight: 800;
}

.participant-rows {
    display: grid;
    gap: .42rem;
}

.participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .62rem .72rem;
    border: 1px solid var(--fbaf-slate-100);
    border-radius: 11px;
    background: var(--fbaf-slate-50);
}

.participant-row__name {
    min-width: 0;
    color: var(--fbaf-slate-800);
    font-size: .75rem;
    font-weight: 700;
}

.participant-row__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .32rem;
}

.participant-more {
    width: 100%;
    margin-top: .45rem;
    padding: .45rem;
    border: 0;
    border-radius: 9px;
    background: var(--fbaf-blue-50);
    color: var(--fbaf-blue-700);
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
}

.participant-row.is-hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   PAGAMENTOS / INSCRIÇÕES
   -------------------------------------------------------------------------- */

.payment-table .payment-status-cell {
    min-width: 160px;
}

.payment-control {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.payment-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
}

.payment-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-switch__track {
    position: absolute;
    inset: 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e2e8f0;
    cursor: pointer;
    transition: .18s ease;
}

.payment-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.22);
    transition: .18s ease;
}

.payment-switch input:checked + .payment-switch__track {
    border-color: #86efac;
    background: #22c55e;
}

.payment-switch input:checked + .payment-switch__track::after {
    transform: translateX(18px);
}

.payment-switch input:focus-visible + .payment-switch__track {
    box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}

.payment-save-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    padding: .85rem 1rem 1rem;
    border-top: 1px solid var(--fbaf-slate-200);
}

/* Select2 dentro do SweetAlert, mantendo o padrão do sistema. */
.swal2-container .select2-container {
    width: 100% !important;
    z-index: 10000 !important;
}

.swal2-container .select2-container--default .select2-selection--single {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--fbaf-slate-300) !important;
    border-radius: 10px !important;
    background: #fff !important;
}

.swal2-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: .55rem 2.2rem .55rem .75rem !important;
    color: var(--fbaf-slate-800) !important;
    font-size: .82rem !important;
    line-height: 1.3 !important;
}

.swal2-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: .35rem !important;
}

.swal2-container .select2-dropdown {
    border: 1px solid var(--fbaf-slate-300) !important;
    border-radius: 10px !important;
    box-shadow: var(--fbaf-shadow-md) !important;
}

.swal2-container .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--fbaf-blue-700) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .event-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .edit-page .form-panel {
        padding: .9rem .82rem;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: .55rem;
        padding: .75rem;
    }

    .event-detail-item--wide {
        grid-column: auto;
    }

    .event-description {
        margin: 0 .75rem .75rem;
        padding: .8rem;
    }

    .participant-days {
        gap: .7rem;
        padding: .75rem;
    }

    .participant-day-card__header,
    .participant-row {
        align-items: flex-start;
    }

    .participant-row {
        flex-direction: column;
    }

    .participant-row__meta {
        justify-content: flex-start;
    }

    .payment-control {
        justify-content: flex-end;
    }

    .payment-save-bar {
        position: sticky;
        z-index: 8;
        bottom: 0;
        padding: .72rem .75rem;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(10px);
        box-shadow: 0 -8px 20px rgba(15,23,42,.08);
    }

    .payment-save-bar .btn {
        width: 100%;
    }
}


/* ========================================================================== 
   MODAIS OPERACIONAIS - RESULTADOS E INSCRIÇÕES
   Mesmo padrão visual do modal de alteração de senha.
   ========================================================================== */

.fbaf-modal-dialog--wide {
    width: auto;
    max-width: 760px;
}

.fbaf-modal-dialog--wide .modal-content {
    max-height: calc(100vh - 2rem);
}

.fbaf-modal-dialog--wide .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.selected-user-card__copy {
    min-width: 0;
}

.selected-user-card__meta {
    display: block;
    margin-top: .12rem;
    overflow: hidden;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-user-card--result .selected-user-card__icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.selected-user-card--event .selected-user-card__icon {
    color: #047857;
    background: #d1fae5;
}

.modal-inline-feedback {
    margin-bottom: .9rem;
    padding: .7rem .8rem;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #991b1b;
    background: #fef2f2;
    font-size: .78rem;
    line-height: 1.45;
}

.modal-form-section {
    padding: .95rem 0;
    border-top: 1px solid var(--fbaf-slate-200);
}

.modal-form-section:first-of-type {
    padding-top: .15rem;
    border-top: 0;
}

.modal-form-section:last-child {
    padding-bottom: .1rem;
}

.modal-form-section__heading {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .8rem;
}

.modal-form-section__heading h6 {
    margin: 0;
    color: var(--fbaf-slate-900);
    font-size: .88rem;
    font-weight: 700;
}

.modal-form-section__heading p {
    margin: .12rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    line-height: 1.4;
}

.modal-form-section__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--fbaf-blue-800);
    background: var(--fbaf-blue-100);
}

.modal-form-section__icon--green {
    color: #047857;
    background: #d1fae5;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem;
}

.modal-form-grid__full {
    grid-column: 1 / -1;
}

.modal-form-grid .form-group {
    min-width: 0;
    margin-bottom: 0;
}

.modal-form-grid label,
.fbaf-modal-dialog--wide .form-group > label {
    margin-bottom: .32rem;
    color: var(--fbaf-slate-700);
    font-size: .74rem;
    font-weight: 600;
}

.fbaf-modal-dialog--wide .form-control {
    min-height: 42px;
    border-radius: 10px;
    font-size: .82rem;
}

.fbaf-modal-dialog--wide input[readonly] {
    color: var(--fbaf-slate-600);
    background: var(--fbaf-slate-50);
}

.modal-score-card {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .8rem;
    padding: .78rem .85rem;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
}

.modal-score-card__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #1d4ed8;
    background: #dbeafe;
}

.modal-score-card small,
.modal-score-card strong {
    display: block;
}

.modal-score-card small {
    color: #64748b;
    font-size: .68rem;
}

.modal-score-card strong {
    margin-top: .05rem;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.1;
}

.modal-empty-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem;
    border: 1px solid #fde68a;
    border-radius: 11px;
    color: #92400e;
    background: #fffbeb;
}

.modal-empty-note > i {
    margin-top: .08rem;
}

.modal-empty-note strong,
.modal-empty-note span {
    display: block;
}

.modal-empty-note strong {
    font-size: .78rem;
}

.modal-empty-note span {
    margin-top: .12rem;
    font-size: .7rem;
    line-height: 1.4;
}

.modal-loading-state {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 116px;
    padding: 1rem;
    border: 1px dashed var(--fbaf-slate-300);
    border-radius: 12px;
    color: var(--fbaf-slate-600);
    background: var(--fbaf-slate-50);
}

.modal-loading-state__spinner {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 3px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 999px;
    animation: fbaf-modal-spin .75s linear infinite;
}

.modal-loading-state strong,
.modal-loading-state span {
    display: block;
}

.modal-loading-state strong {
    color: var(--fbaf-slate-800);
    font-size: .8rem;
}

.modal-loading-state span {
    margin-top: .12rem;
    font-size: .7rem;
}

@keyframes fbaf-modal-spin {
    to { transform: rotate(360deg); }
}

/* Select2 dentro de modal Bootstrap. */
.modal .select2-container {
    width: 100% !important;
}

.modal .select2-container--default .select2-selection--single {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--fbaf-slate-300) !important;
    border-radius: 10px !important;
    background: #fff !important;
}

.modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: .55rem 2.2rem .55rem .75rem !important;
    color: var(--fbaf-slate-800) !important;
    font-size: .82rem !important;
    line-height: 1.3 !important;
}

.modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: .35rem !important;
}

.modal .select2-container--open {
    z-index: 1095 !important;
}

.modal .select2-dropdown {
    border: 1px solid var(--fbaf-slate-300) !important;
    border-radius: 10px !important;
    box-shadow: var(--fbaf-shadow-md) !important;
}

.modal .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #fff !important;
    background: var(--fbaf-blue-700) !important;
}

@media (max-width: 767.98px) {
    .fbaf-modal-dialog--wide {
        width: auto;
        max-width: none;
        margin: .5rem;
    }

    .fbaf-modal-dialog--wide .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: 16px;
    }

    .fbaf-modal-dialog--wide .modal-header {
        padding: .85rem 1rem;
    }

    .fbaf-modal-dialog--wide .modal-body {
        padding: 1rem;
    }

    .fbaf-modal-dialog--wide .modal-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: .55rem;
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    }

    .fbaf-modal-dialog--wide .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
        white-space: normal;
    }

    .modal-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .65rem;
    }

    .modal-form-grid__full {
        grid-column: auto;
    }

    .selected-user-card {
        align-items: flex-start;
    }

    .selected-user-card__meta {
        white-space: normal;
    }

    .modal-form-section__heading p {
        max-width: 95%;
    }
}

/* ========================================================================== 
   PORTAL DO ATLETA
   ========================================================================== */

.athlete-page,
.athlete-edit-page,
.voting-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.athlete-page > .page-hero,
.athlete-edit-page > .page-hero,
.voting-page > .page-hero {
    width: 100%;
    max-width: none;
}

.athlete-profile-hero .page-hero__content {
    max-width: 760px;
}

.athlete-profile-hero__status {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
}

.athlete-viewing-badge,
.athlete-membership-badge {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-height: 30px;
    padding: .36rem .68rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(7px);
    font-size: .72rem;
    font-weight: 700;
}

.athlete-membership-badge--active {
    border-color: rgba(167,243,208,.36);
    color: #d1fae5;
    background: rgba(5,150,105,.20);
}

.athlete-membership-badge--pending {
    border-color: rgba(253,230,138,.40);
    color: #fef3c7;
    background: rgba(217,119,6,.20);
}

.athlete-membership-badge--inactive {
    border-color: rgba(254,202,202,.34);
    color: #fee2e2;
    background: rgba(220,38,38,.18);
}

.athlete-overview {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.7fr);
    gap: 1rem;
    margin-top: 1rem;
}

.athlete-profile-card,
.athlete-info-card,
.athlete-section,
.voting-panel {
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.06);
}

.athlete-profile-card {
    padding: 1.1rem;
}

.athlete-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.athlete-avatar {
    width: 154px;
    height: 154px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    border-radius: 999px;
    color: var(--fbaf-slate-500);
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    box-shadow: 0 0 0 2px var(--fbaf-blue-100), 0 16px 28px rgba(15,23,42,.12);
}

.athlete-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-avatar__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
}

.athlete-avatar__placeholder i {
    font-size: 2rem;
}

.athlete-profile-card__name {
    margin: .85rem 0 .15rem;
    color: var(--fbaf-slate-900);
    font-size: 1.02rem;
    font-weight: 800;
    text-align: center;
}

.athlete-profile-card__club {
    margin: 0;
    color: var(--fbaf-slate-500);
    font-size: .74rem;
    text-align: center;
}

.athlete-photo-form {
    width: 100%;
    margin-top: .95rem;
    padding-top: .9rem;
    border-top: 1px solid var(--fbaf-slate-200);
}

.athlete-photo-form label {
    display: block;
    margin-bottom: .35rem;
    color: var(--fbaf-slate-700);
    font-size: .72rem;
    font-weight: 700;
}

.athlete-photo-form .form-control-file {
    width: 100%;
    padding: .48rem;
    border: 1px dashed var(--fbaf-slate-300);
    border-radius: 10px;
    background: var(--fbaf-slate-50);
    font-size: .72rem;
}

.athlete-photo-form .btn {
    width: 100%;
    margin-top: .55rem;
}

.athlete-info-card {
    overflow: hidden;
}

.athlete-card-header,
.athlete-section__header,
.voting-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: 1rem 1.05rem;
    border-bottom: 1px solid var(--fbaf-slate-200);
}

.athlete-card-header__title,
.athlete-section__title,
.voting-panel__title {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.athlete-card-header__icon,
.athlete-section__icon,
.voting-panel__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--fbaf-blue-800);
    background: var(--fbaf-blue-100);
}

.athlete-card-header h2,
.athlete-section__header h2,
.voting-panel__header h2 {
    margin: 0;
    color: var(--fbaf-slate-900);
    font-size: .94rem;
    font-weight: 800;
}

.athlete-card-header p,
.athlete-section__header p,
.voting-panel__header p {
    margin: .08rem 0 0;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
}

.athlete-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: .25rem 1.05rem .75rem;
}

.athlete-data-item {
    min-width: 0;
    padding: .78rem .4rem;
    border-bottom: 1px solid var(--fbaf-slate-100);
}

.athlete-data-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.athlete-data-item small,
.athlete-data-item strong {
    display: block;
}

.athlete-data-item small {
    margin-bottom: .18rem;
    color: var(--fbaf-slate-500);
    font-size: .67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.athlete-data-item strong {
    overflow-wrap: anywhere;
    color: var(--fbaf-slate-800);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
}

.athlete-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.athlete-kpi {
    display: flex;
    align-items: center;
    gap: .72rem;
    padding: .82rem .9rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.04);
}

.athlete-kpi__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--fbaf-blue-700);
    background: var(--fbaf-blue-50);
}

.athlete-kpi--green .athlete-kpi__icon {
    color: #047857;
    background: #ecfdf5;
}

.athlete-kpi--amber .athlete-kpi__icon {
    color: #a16207;
    background: #fffbeb;
}

.athlete-kpi small,
.athlete-kpi strong {
    display: block;
}

.athlete-kpi small {
    color: var(--fbaf-slate-500);
    font-size: .66rem;
}

.athlete-kpi strong {
    margin-top: .05rem;
    color: var(--fbaf-slate-900);
    font-size: 1.02rem;
}

.athlete-section {
    overflow: hidden;
    margin-top: 1rem;
}

.athlete-section__body {
    padding: 0;
}

.athlete-section .table-responsive {
    margin: 0;
}

.athlete-event-main {
    min-width: 0;
}

.athlete-event-main strong {
    display: block;
    color: var(--fbaf-slate-900);
    font-size: .78rem;
    line-height: 1.35;
}

.athlete-event-main span {
    display: block;
    margin-top: .12rem;
    color: var(--fbaf-slate-500);
    font-size: .68rem;
}

.athlete-event-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .4rem;
}

.athlete-event-status {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .28rem .48rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 700;
    white-space: nowrap;
}

.athlete-event-status--confirmed {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.athlete-event-status--registered {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.athlete-event-status--soon {
    color: #475569;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.athlete-event-status--closed {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.athlete-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--fbaf-slate-500);
}

.athlete-empty i {
    display: block;
    margin-bottom: .5rem;
    color: var(--fbaf-slate-300);
    font-size: 2rem;
}

.athlete-empty strong,
.athlete-empty span {
    display: block;
}

.athlete-empty strong {
    color: var(--fbaf-slate-700);
    font-size: .82rem;
}

.athlete-empty span {
    margin-top: .18rem;
    font-size: .7rem;
}

/* Modais legados de inscrição passam a acompanhar o padrão global. */
.athlete-page .modal-dialog {
    max-width: 720px;
}

.athlete-page .modal-content {
    border-radius: 18px;
}

.athlete-page .modal-body {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.athlete-page .modal-body .row {
    margin-right: -.35rem;
    margin-left: -.35rem;
}

.athlete-page .modal-body [class*="col-"] {
    padding-right: .35rem;
    padding-left: .35rem;
}

/* ========================================================================== 
   VOTAÇÃO - PORTAL DO ATLETA
   ========================================================================== */

.voting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.voting-panel {
    overflow: hidden;
}

.voting-panel__body {
    padding: 1rem;
}

.voting-status {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    padding: .3rem .54rem;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: .66rem;
    font-weight: 800;
    white-space: nowrap;
}

.voting-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .8rem;
    padding: .7rem .75rem;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    color: #1e40af;
    background: #eff6ff;
    font-size: .72rem;
    line-height: 1.45;
}

.voting-list {
    display: grid;
    gap: .68rem;
}

.voting-choice {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.voting-choice:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.voting-choice__body {
    padding: .85rem;
}

.voting-choice__title {
    margin: 0;
    color: var(--fbaf-slate-900);
    font-size: .85rem;
    font-weight: 800;
}

.voting-choice__meta {
    margin: .28rem 0 0;
    color: var(--fbaf-slate-600);
    font-size: .7rem;
    line-height: 1.5;
}

.voting-choice__description {
    margin: .55rem 0 0;
    padding-top: .55rem;
    border-top: 1px solid var(--fbaf-slate-100);
    color: var(--fbaf-slate-500);
    font-size: .69rem;
    line-height: 1.5;
}

.voting-choice__footer {
    display: flex;
    justify-content: flex-end;
    padding: .65rem .85rem;
    border-top: 1px solid var(--fbaf-slate-100);
    background: var(--fbaf-slate-50);
}

.voting-check-card {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
    padding: .85rem;
    cursor: pointer;
}

.voting-check-card input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: .08rem;
    accent-color: var(--fbaf-blue-700);
}

.voting-check-card__copy {
    min-width: 0;
}

.voting-check-card__copy strong {
    display: block;
    color: var(--fbaf-slate-900);
    font-size: .8rem;
}

.voting-check-card__copy span {
    display: block;
    margin-top: .2rem;
    color: var(--fbaf-slate-500);
    font-size: .68rem;
    line-height: 1.45;
}

.voting-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .85rem;
    padding: .7rem .78rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 12px;
    background: var(--fbaf-slate-50);
}

.voting-counter span {
    color: var(--fbaf-slate-600);
    font-size: .7rem;
}

.voting-counter strong {
    color: var(--fbaf-blue-800);
    font-size: .8rem;
}

.voting-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: .85rem;
}

.voting-confirm-card {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .82rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 12px;
    background: var(--fbaf-slate-50);
}

.voting-confirm-card__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--fbaf-blue-800);
    background: var(--fbaf-blue-100);
}

.voting-confirm-card strong,
.voting-confirm-card span {
    display: block;
}

.voting-confirm-card strong {
    color: var(--fbaf-slate-900);
    font-size: .8rem;
}

.voting-confirm-card span {
    margin-top: .14rem;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    line-height: 1.45;
}

.voting-selected-list {
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
}

.voting-selected-list li {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--fbaf-slate-100);
    color: var(--fbaf-slate-700);
    font-size: .73rem;
}

.voting-selected-list li:last-child {
    border-bottom: 0;
}

.voting-selected-list i {
    color: #059669;
}

@media (max-width: 991.98px) {
    .athlete-overview,
    .voting-grid {
        grid-template-columns: 1fr;
    }

    .athlete-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .athlete-profile-hero__status {
        align-items: flex-start;
        margin-top: .7rem;
    }

    .athlete-overview {
        gap: .75rem;
        margin-top: .75rem;
    }

    .athlete-profile-card,
    .athlete-info-card,
    .athlete-section,
    .voting-panel {
        border-radius: 14px;
    }

    .athlete-avatar {
        width: 126px;
        height: 126px;
    }

    .athlete-data-grid {
        grid-template-columns: 1fr;
        padding: .25rem .9rem .65rem;
    }

    .athlete-data-item,
    .athlete-data-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--fbaf-slate-100);
    }

    .athlete-data-item:last-child {
        border-bottom: 0;
    }

    .athlete-kpis {
        grid-template-columns: 1fr;
        gap: .5rem;
        margin-top: .75rem;
    }

    .athlete-card-header,
    .athlete-section__header,
    .voting-panel__header {
        align-items: flex-start;
        padding: .88rem .9rem;
    }

    .athlete-section__header {
        flex-direction: column;
    }

    .athlete-section__header .btn {
        width: 100%;
    }

    .athlete-event-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .athlete-event-actions .btn {
        flex: 1 1 auto;
    }

    .athlete-page .modal-dialog,
    .voting-page .modal-dialog {
        width: auto;
        max-width: none;
        margin: .55rem;
    }

    .athlete-page .modal-content,
    .voting-page .modal-content {
        max-height: calc(100vh - 1.1rem);
        border-radius: 16px;
    }

    .athlete-page .modal-body,
    .voting-page .modal-body {
        max-height: calc(100vh - 150px);
        padding: .9rem;
    }

    .athlete-page .modal-body .row {
        display: block;
        margin: 0;
    }

    .athlete-page .modal-body [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .voting-panel__body {
        padding: .85rem;
    }

    .voting-choice__footer,
    .voting-actions {
        display: block;
    }

    .voting-choice__footer .btn,
    .voting-actions .btn {
        width: 100%;
    }
}

/* ========================================================================== 
   INSCRIÇÕES DO ATLETA - MODAIS RESPONSIVOS
   ========================================================================== */

.athlete-enrollment-modal .modal-dialog {
    width: auto;
    max-width: 760px;
}

.athlete-enrollment-modal .modal-content {
    max-height: calc(100vh - 2rem);
}

.athlete-enrollment-modal .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.enrollment-event-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .95rem;
    padding: .8rem .85rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 13px;
    background: var(--fbaf-slate-50);
}

.enrollment-event-card__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--fbaf-blue-800);
    background: var(--fbaf-blue-100);
    font-size: 1rem;
}

.enrollment-event-card small,
.enrollment-event-card strong,
.enrollment-event-card span {
    display: block;
}

.enrollment-event-card small {
    color: var(--fbaf-slate-500);
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.enrollment-event-card strong {
    margin-top: .1rem;
    color: var(--fbaf-slate-900);
    font-size: .9rem;
    line-height: 1.3;
}

.enrollment-event-card span {
    margin-top: .18rem;
    color: var(--fbaf-slate-500);
    font-size: .7rem;
    line-height: 1.35;
}

.enrollment-notice {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1rem;
    padding: .8rem .85rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
}

.enrollment-notice > i {
    margin-top: .08rem;
    font-size: 1rem;
}

.enrollment-notice strong,
.enrollment-notice span {
    display: block;
}

.enrollment-notice strong {
    font-size: .78rem;
}

.enrollment-notice span {
    margin-top: .15rem;
    font-size: .7rem;
    line-height: 1.45;
}

.enrollment-days-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.enrollment-day-card {
    position: relative;
    display: block;
    margin: 0;
    padding: .75rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.enrollment-day-card:has(.participar-checkbox:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .07);
}

.enrollment-day-card__choice {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    cursor: pointer;
}

.enrollment-day-card__choice input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: .05rem;
    accent-color: var(--fbaf-blue-700);
}

.enrollment-day-card__choice strong,
.enrollment-day-card__choice span {
    display: block;
}

.enrollment-day-card__choice strong {
    color: var(--fbaf-slate-800);
    font-size: .78rem;
}

.enrollment-day-card__choice span {
    margin-top: .12rem;
    color: var(--fbaf-slate-500);
    font-size: .68rem;
}

.enrollment-day-card .turno-select {
    margin: .65rem 0 0;
    padding-top: .65rem;
    border-top: 1px solid var(--fbaf-slate-200);
}

.enrollment-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
}

.enrollment-profile-item {
    min-width: 0;
    padding: .68rem .72rem;
    border: 1px solid var(--fbaf-slate-200);
    border-radius: 11px;
    background: var(--fbaf-slate-50);
}

.enrollment-profile-item small,
.enrollment-profile-item strong {
    display: block;
}

.enrollment-profile-item small {
    color: var(--fbaf-slate-500);
    font-size: .64rem;
    font-weight: 600;
    text-transform: uppercase;
}

.enrollment-profile-item strong {
    margin-top: .12rem;
    overflow: hidden;
    color: var(--fbaf-slate-800);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enrollment-empty {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem;
    border: 1px dashed var(--fbaf-slate-300);
    border-radius: 11px;
    color: var(--fbaf-slate-600);
    background: var(--fbaf-slate-50);
}

.enrollment-empty strong,
.enrollment-empty span {
    display: block;
}

.enrollment-empty strong {
    font-size: .78rem;
}

.enrollment-empty span {
    margin-top: .12rem;
    font-size: .7rem;
}

@media (max-width: 767.98px) {
    .athlete-enrollment-modal .modal-dialog {
        max-width: none;
        margin: .5rem;
    }

    .athlete-enrollment-modal .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: 16px;
    }

    .athlete-enrollment-modal .modal-header {
        padding: .85rem 1rem;
    }

    .athlete-enrollment-modal .modal-body {
        padding: .9rem 1rem;
    }

    .athlete-enrollment-modal .modal-footer {
        display: grid;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: .55rem;
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    }

    .athlete-enrollment-modal .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
        white-space: normal;
    }

    .enrollment-days-grid,
    .enrollment-profile-grid {
        grid-template-columns: 1fr;
    }

    .enrollment-profile-item strong {
        white-space: normal;
    }
}
