/* ══════════════════════════════════════════════════════════════════
   ADM-SIND — Design System
   30 temas: 26 claros + 4 escuros
   Aplicado via classe  body.theme-X
   ══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   LAYOUT BASE
   ────────────────────────────────────────────────────────────────── */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--t-body-bg, #f1f5f9);
    color: var(--text-color, #0f172a);
    transition: background-color 0.3s;
}

.conciliacao-page .form-section-title {
    margin-bottom: 1.25rem;
}

.conciliacao-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.conciliacao-summary-card {
    min-height: 108px;
}

.conciliacao-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.03) 100%);
}

.conciliacao-bulk-title {
    display: block;
    color: var(--t-contrast-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.conciliacao-bulk-copy {
    display: block;
    margin-top: 0.2rem;
    color: var(--t-muted-text);
    font-size: 0.82rem;
}

.conciliacao-origin {
    display: inline-flex;
    margin-top: 0.45rem;
    color: var(--t-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.conciliacao-row--pendente {
    box-shadow: inset 3px 0 0 rgba(217, 119, 6, 0.45);
}

.conciliacao-row--conciliada {
    opacity: 0.96;
}

.conciliacao-table .ui-selection-column {
    width: 3rem;
}

body[class*="theme-dark-"] .conciliacao-bulk-toolbar {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

@media (max-width: 768px) {
    .conciliacao-bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .conciliacao-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   MODULO DE SUPORTE
   ======================================================================== */

.support-sidebar-panel.ui-sidebar {
    width: min(100vw, 42rem) !important;
    border: none !important;
    background: transparent !important;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
}

.support-sidebar-panel.ui-sidebar .ui-sidebar-content {
    height: 100%;
    padding: 0 !important;
    background:
        radial-gradient(circle at top left, rgba(var(--t-accent-rgb, 51, 65, 85), 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
    color: var(--text-color, #0f172a);
}

.support-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.support-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.4rem 1.2rem;
    border-bottom: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12));
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(14px);
}

.support-drawer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
}

.support-drawer-brand-icon,
.support-empty-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    color: var(--t-accent, #334155);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.16);
    flex-shrink: 0;
}

.support-drawer-brand-copy,
.support-page-hero-copy,
.support-filter-panel-copy,
.support-compose-intro,
.support-thread-header-copy,
.support-admin-thread-copy {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.support-drawer-eyebrow,
.support-mini-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-accent, #334155);
}

.support-drawer-title,
.support-page-hero h1,
.support-filter-panel h3,
.support-compose-intro h4,
.support-thread-header-copy h4,
.support-admin-thread-copy h3,
.support-empty-state h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-color, #0f172a);
}

.support-drawer-copy,
.support-page-hero p,
.support-filter-panel p,
.support-compose-intro p,
.support-empty-state p,
.support-ticket-id,
.support-thread-meta,
.support-page-metric-label,
.support-section-meta {
    color: var(--text-color-secondary, #64748b);
}

.support-drawer-close.ui-button,
.support-thread-back.ui-button,
.support-row-action.ui-button {
    border-radius: 16px !important;
    border: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12)) !important;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06) !important;
    color: var(--t-accent, #334155) !important;
    box-shadow: none !important;
}

.support-drawer-close.ui-button:hover,
.support-thread-back.ui-button:hover,
.support-row-action.ui-button:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.20) !important;
}

.support-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.4rem;
}

.support-drawer-hero,
.support-page-hero,
.support-filter-panel,
.support-table-shell,
.support-compose-card,
.support-admin-thread-shell {
    background:
        linear-gradient(145deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.06), rgba(255, 255, 255, 0.88));
    border: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12));
    border-radius: 28px;
    box-shadow: var(--t-card-shadow, 0 18px 48px rgba(15, 23, 42, 0.08));
}

.support-drawer-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    margin-bottom: 1.15rem;
}

.support-drawer-hero-copy h4 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--text-color, #0f172a);
}

.support-drawer-hero-copy p,
.support-thread-meta,
.support-admin-thread-meta,
.support-ticket-date,
.support-page-metric-label {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.support-primary-action.ui-button,
.support-send-button.ui-button {
    border-radius: 18px !important;
    border: none !important;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    color: var(--t-accent-contrast, #ffffff) !important;
    box-shadow: 0 18px 30px rgba(var(--t-accent-rgb, 51, 65, 85), 0.24) !important;
}

.support-primary-action.ui-button:hover,
.support-send-button.ui-button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.support-primary-action--full.ui-button {
    width: 100%;
}

.support-secondary-action.ui-button,
.support-upload-trigger.ui-button {
    border-radius: 18px !important;
    border: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12)) !important;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
    color: var(--t-accent, #334155) !important;
    box-shadow: none !important;
}

.support-secondary-action.ui-button:hover,
.support-upload-trigger.ui-button:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.20) !important;
}

.support-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.support-section-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-color, #0f172a);
}

.support-ticket-list .ui-datalist-content,
.support-ticket-list .ui-datalist-data,
.support-ticket-list .ui-datalist-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.support-ticket-link {
    display: block;
    text-decoration: none;
    margin-bottom: 0.8rem;
}

.support-ticket-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: var(--t-card, #ffffff);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-ticket-link:hover .support-ticket-card {
    transform: translateY(-1px);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.support-ticket-card-top,
.support-ticket-card-bottom,
.support-page-metrics,
.support-admin-thread-actions,
.support-composer-main,
.support-composer,
.support-composer-toolbar,
.support-composer-actions,
.support-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.support-ticket-title,
.support-table-tenant,
.support-table-subject,
.support-table-user {
    color: var(--text-color, #0f172a);
}

.support-ticket-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.support-ticket-arrow {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
    color: var(--t-accent, #334155);
}

.support-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.4rem;
    text-align: center;
    border-radius: 24px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    border: 1px dashed rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
}

.support-empty-state--thread {
    min-height: 14rem;
    justify-content: center;
}

.support-thread-shell,
.support-admin-thread-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-thread-header,
.support-admin-thread-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.support-thread-header {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12));
}

.support-thread-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-accent, #334155);
}

.support-thread-meta,
.support-admin-thread-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.support-thread-meta-dot {
    opacity: 0.6;
}

.support-compose-card {
    padding: 1.2rem;
}

.support-compose-form .field {
    margin-bottom: 1rem;
}

.support-compose-form label,
.support-filter-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-color, #0f172a);
}

.support-thread,
.support-admin-thread-body {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.04);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
}

.support-admin-thread-body {
    min-height: 32rem;
    max-height: 36rem;
    overflow-y: auto;
}

.support-message-row {
    display: flex;
}

.support-message-row.is-mine {
    justify-content: flex-end;
}

.support-message-row.is-support {
    justify-content: flex-start;
}

.support-message-card {
    width: min(100%, 32rem);
    padding: 0.95rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.support-message-card.is-support {
    background: var(--t-card, #ffffff);
    color: var(--text-color, #0f172a);
}

.support-message-card.is-mine {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
    color: var(--t-accent-contrast, #ffffff);
    border-color: transparent;
}

.support-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.support-message-author {
    font-size: 0.82rem;
    font-weight: 800;
}

.support-message-time {
    font-size: 0.76rem;
    opacity: 0.72;
}

.support-message-text {
    white-space: pre-wrap;
    line-height: 1.65;
    font-size: 0.95rem;
}

.support-attachment-link {
    display: block;
    text-decoration: none;
}

.support-attachment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.8rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
}

.support-attachment-card.is-support {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06);
    color: var(--text-color, #0f172a);
}

.support-attachment-card.is-mine {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.support-attachment-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.support-attachment-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    color: var(--t-accent, #334155);
    flex-shrink: 0;
}

.support-attachment-card.is-mine .support-attachment-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.support-attachment-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 700;
}

.support-attachment-action {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
}

.support-resolution-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.10);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.18);
    font-weight: 700;
}

.support-composer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12));
}

.support-composer--admin {
    margin: 0;
    padding: 1.15rem 1.35rem 1.35rem;
    border-top: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12));
}

.support-drawer > .support-composer {
    margin: 0;
    padding: 1rem 1.4rem 1.35rem;
}

.support-composer-main {
    align-items: stretch;
}

.support-composer-toolbar {
    align-items: stretch;
}

.support-composer-field {
    flex: 1;
    min-width: 0;
}

.support-composer .ui-inputfield,
.support-compose-form .ui-inputfield,
.support-filter-panel .ui-selectonemenu,
.support-filter-panel .ui-inputfield {
    border-radius: 18px !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
    box-shadow: none !important;
}

.support-composer .ui-inputfield:focus,
.support-compose-form .ui-inputfield:focus,
.support-filter-panel .ui-inputfield:focus,
.support-filter-panel .ui-selectonemenu.ui-state-focus {
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.26) !important;
    box-shadow: 0 0 0 3px rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) !important;
}

.support-composer-input {
    min-height: 6.25rem !important;
}

.support-upload-panel {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.9rem 1rem;
    align-items: center;
}

.support-upload-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    flex: 1 1 auto;
}

.support-upload-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
}

.support-upload-selected {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--text-color-secondary, #64748b);
}

.support-upload-button-wrap {
    flex: 0 0 auto;
}

.support-upload-trigger.ui-button {
    min-width: 10.5rem;
    justify-content: center;
}

.support-send-button--with-label.ui-button {
    flex: 0 0 auto;
    min-width: 8.75rem;
    align-self: stretch;
}

.support-page--backoffice.card-moderno {
    padding: 1.5rem;
}

.support-page {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.support-page-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--t-section-bg, rgba(0, 0, 0, 0.04));
}

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

.support-page-metrics {
    align-items: stretch;
    flex-wrap: wrap;
}

.support-page-metrics--compact {
    justify-content: flex-end;
}

.support-page-metric {
    min-width: 11rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: var(--t-section-toggle-bg, rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
}

.support-page-metric-value {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
}

.support-list-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-filter-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
}

.support-filter-panel--standard,
.support-table-shell--standard,
.support-admin-thread-shell--standard {
    background: transparent;
    box-shadow: none;
    border-radius: 0 14px 14px 0;
}

.support-filter-panel--standard .form-section-title {
    margin-bottom: 1rem;
}

.support-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 17rem) auto;
    gap: 0.9rem;
    align-items: end;
    flex: 1;
}

.support-filter-field {
    min-width: 0;
}

.support-filter-field--wide {
    min-width: 0;
}

.support-table-shell {
    padding: 1.2rem 1.3rem;
}

.support-section-heading--table {
    margin-bottom: 1rem;
}

.support-backoffice-table.ui-datatable {
    border-radius: 24px;
    overflow: hidden;
}

.support-table-id {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
    color: var(--t-accent, #334155);
    font-weight: 800;
}

.support-table-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.support-table-tenant {
    font-size: 0.96rem;
    font-weight: 800;
}

.support-table-subject {
    font-size: 0.88rem;
    color: var(--text-color-secondary, #64748b);
}

.support-table-user,
.support-table-date {
    font-weight: 600;
}

.support-status-tag.ui-tag {
    border-radius: 999px;
    padding-inline: 0.2rem;
}

.support-status-tag--header.ui-tag {
    box-shadow: none;
}

.support-row-action.ui-button {
    width: 2.6rem;
    height: 2.6rem;
    justify-content: center;
}

.support-admin-thread-shell {
    padding: 1.25rem 1.35rem 0;
}

.support-admin-thread-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--t-panel-border, rgba(51, 65, 85, 0.12));
}

.support-admin-thread-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.support-admin-thread-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.support-admin-thread-copy h3 {
    font-size: 1.35rem;
}

body[class*="theme-dark-"] .support-sidebar-panel.ui-sidebar .ui-sidebar-content,
body[class*="theme-dark-"] .support-drawer-hero,
body[class*="theme-dark-"] .support-page-hero,
body[class*="theme-dark-"] .support-filter-panel,
body[class*="theme-dark-"] .support-table-shell,
body[class*="theme-dark-"] .support-compose-card,
body[class*="theme-dark-"] .support-admin-thread-shell {
    background:
        linear-gradient(145deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.14), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
}

body[class*="theme-dark-"] .support-drawer-header,
body[class*="theme-dark-"] .support-thread,
body[class*="theme-dark-"] .support-admin-thread-body {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .support-ticket-card,
body[class*="theme-dark-"] .support-message-card.is-support {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .support-empty-state,
body[class*="theme-dark-"] .support-page-metric,
body[class*="theme-dark-"] .support-attachment-card.is-support {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
}

body[class*="theme-dark-"] .support-drawer-title,
body[class*="theme-dark-"] .support-page-hero h1,
body[class*="theme-dark-"] .support-filter-panel h3,
body[class*="theme-dark-"] .support-compose-intro h4,
body[class*="theme-dark-"] .support-thread-header-copy h4,
body[class*="theme-dark-"] .support-admin-thread-copy h3,
body[class*="theme-dark-"] .support-empty-state h4,
body[class*="theme-dark-"] .support-ticket-title,
body[class*="theme-dark-"] .support-table-tenant,
body[class*="theme-dark-"] .support-table-user,
body[class*="theme-dark-"] .support-page-metric-value {
    color: #f8fafc !important;
}

body[class*="theme-dark-"] .support-drawer-copy,
body[class*="theme-dark-"] .support-page-hero p,
body[class*="theme-dark-"] .support-filter-panel p,
body[class*="theme-dark-"] .support-compose-intro p,
body[class*="theme-dark-"] .support-empty-state p,
body[class*="theme-dark-"] .support-thread-meta,
body[class*="theme-dark-"] .support-admin-thread-meta,
body[class*="theme-dark-"] .support-ticket-id,
body[class*="theme-dark-"] .support-ticket-date,
body[class*="theme-dark-"] .support-table-subject,
body[class*="theme-dark-"] .support-page-metric-label,
body[class*="theme-dark-"] .support-section-meta,
body[class*="theme-dark-"] .support-filter-label {
    color: rgba(241, 245, 249, 0.72) !important;
}

body[class*="theme-dark-"] .support-upload-title {
    color: #f8fafc !important;
}

body[class*="theme-dark-"] .support-upload-selected {
    color: rgba(241, 245, 249, 0.72) !important;
}

body[class*="theme-dark-"] .support-page-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[class*="theme-dark-"] .support-drawer-close.ui-button,
body[class*="theme-dark-"] .support-thread-back.ui-button,
body[class*="theme-dark-"] .support-row-action.ui-button,
body[class*="theme-dark-"] .support-secondary-action.ui-button,
body[class*="theme-dark-"] .support-upload-trigger.ui-button {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: #f8fafc !important;
}

body[class*="theme-dark-"] .support-attachment-icon,
body[class*="theme-dark-"] .support-empty-icon,
body[class*="theme-dark-"] .support-drawer-brand-icon,
body[class*="theme-dark-"] .support-ticket-arrow,
body[class*="theme-dark-"] .support-table-id {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: #f8fafc !important;
}

@media (max-width: 991px) {
    .support-page-header,
    .support-filter-panel,
    .support-admin-thread-header {
        flex-direction: column;
        align-items: stretch;
    }

    .support-filter-grid {
        grid-template-columns: 1fr;
    }

    .support-filter-actions,
    .support-page-metrics,
    .support-admin-thread-actions {
        width: 100%;
    }

    .support-composer-actions,
    .support-composer-toolbar,
    .support-composer-main {
        width: 100%;
    }

    .support-composer-toolbar,
    .support-composer-main {
        flex-direction: column;
    }

    .support-upload-trigger.ui-button,
    .support-send-button--with-label.ui-button {
        width: 100%;
    }

    .support-admin-thread-body {
        min-height: 24rem;
    }
}

@media (max-width: 768px) {
    .support-sidebar-panel.ui-sidebar {
        width: 100vw !important;
    }

    .support-drawer-header,
    .support-drawer-body,
    .support-page-header,
    .support-filter-panel,
    .support-table-shell,
    .support-admin-thread-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .support-ticket-card,
    .support-message-card {
        width: 100%;
    }

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

.preload * { transition: none !important; }

@media (min-width: 769px) {
    html[data-sidebar-collapsed="true"] #sidebar.sidebar.expanded,
    html[data-portal-sidebar-collapsed="true"] #sidebar.sidebar.expanded {
        width: 6.5rem;
    }

    html[data-sidebar-collapsed="true"] #content.layout-content.expanded-content,
    html[data-portal-sidebar-collapsed="true"] #content.layout-content.expanded-content {
        margin-left: 8rem;
    }

    html[data-sidebar-collapsed="true"] #sidebar .menu-text,
    html[data-portal-sidebar-collapsed="true"] #sidebar .menu-text {
        opacity: 0;
        width: 0;
        min-width: 0;
        overflow: hidden;
    }

    html[data-sidebar-collapsed="true"] #sidebar .icon-arrow,
    html[data-portal-sidebar-collapsed="true"] #sidebar .icon-arrow {
        display: none;
    }

    html[data-sidebar-scroll-pending] #sidebar .sidebar-menu,
    html[data-portal-sidebar-scroll-pending] #sidebar .sidebar-menu {
        visibility: hidden;
    }

    html[data-sidebar-active-category="sub-cadastros"] #sub-cadastros,
    html[data-sidebar-active-category="sub-sistema"] #sub-sistema,
    html[data-sidebar-active-category="sub-financeiro"] #sub-financeiro,
    html[data-sidebar-active-category="sub-homologacoes"] #sub-homologacoes,
    html[data-sidebar-active-category="sub-mais"] #sub-mais {
        display: flex;
    }

    html[data-portal-sidebar-active-category="sub-agendamentos"] #sub-agendamentos,
    html[data-portal-sidebar-active-category="sub-filiados"] #sub-filiados,
    html[data-portal-sidebar-active-category="sub-config"] #sub-config {
        display: flex;
    }

    html[data-sidebar-active-category="sub-cadastros"] [data-submenu-trigger="sub-cadastros"],
    html[data-sidebar-active-category="sub-sistema"] [data-submenu-trigger="sub-sistema"],
    html[data-sidebar-active-category="sub-financeiro"] [data-submenu-trigger="sub-financeiro"],
    html[data-sidebar-active-category="sub-homologacoes"] [data-submenu-trigger="sub-homologacoes"],
    html[data-sidebar-active-category="sub-mais"] [data-submenu-trigger="sub-mais"],
    html[data-portal-sidebar-active-category="sub-agendamentos"] [data-submenu-trigger="sub-agendamentos"],
    html[data-portal-sidebar-active-category="sub-filiados"] [data-submenu-trigger="sub-filiados"],
    html[data-portal-sidebar-active-category="sub-config"] [data-submenu-trigger="sub-config"] {
        background: rgba(255, 255, 255, 0.10);
    }

    html[data-sidebar-active-category="sub-cadastros"] #arrow-cadastros,
    html[data-sidebar-active-category="sub-sistema"] #arrow-sistema,
    html[data-sidebar-active-category="sub-financeiro"] #arrow-financeiro,
    html[data-sidebar-active-category="sub-homologacoes"] #arrow-homologacoes,
    html[data-sidebar-active-category="sub-mais"] #arrow-mais,
    html[data-portal-sidebar-active-category="sub-agendamentos"] #arrow-agendamentos,
    html[data-portal-sidebar-active-category="sub-filiados"] #arrow-filiados,
    html[data-portal-sidebar-active-category="sub-config"] #arrow-config {
        transform: rotate(180deg);
    }
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ──────────────────────────────────────────────────────────────────
   SIDEBAR
   ────────────────────────────────────────────────────────────────── */

.sidebar {
    width: 92px;
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.expanded {
    width: 320px;
}

.sidebar-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
        var(--t-sidebar-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.sidebar-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 42%);
    pointer-events: none;
}

.sidebar-shell > * {
    position: relative;
    z-index: 1;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.85rem;
    min-height: 3.5rem;
    padding: 0.45rem 0.55rem 0.45rem 0.45rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-toggle {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.sidebar-toggle-icon--collapsed {
    display: none;
}

.sidebar:not(.expanded) .sidebar-toggle-icon--expanded {
    display: none;
}

.sidebar:not(.expanded) .sidebar-toggle-icon--collapsed {
    display: inline-flex;
}

.sidebar-logo {
    min-width: 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
    color: var(--t-accent-contrast);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 28px rgba(var(--t-accent-rgb, 51, 65, 85), 0.28);
    flex-shrink: 0;
}

.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.logo-text {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.logo-image {
    height: 2.8rem;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1); /* Deixa o SVG branco */
    opacity: 0.96;
}

.sidebar-brand-row--centered {
    justify-content: space-between;
    width: 100%;
}

.sidebar-support-trigger {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--t-sidebar-text) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%),
        rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.sidebar-support-trigger:hover,
.sidebar-support-trigger:focus-visible {
    color: var(--t-sidebar-hover-text) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%),
        rgba(var(--t-accent-rgb, 51, 65, 85), 0.16);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 24px rgba(15, 23, 42, 0.14);
    transform: scale(1.06);
}

.sidebar-support-trigger-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.sidebar-support-trigger-badge {
    position: absolute;
    top: 0.12rem;
    right: 0.1rem;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.62rem !important;
    line-height: 1rem !important;
    box-shadow: 0 0 0 2px var(--t-sidebar-bg);
}

.logo-wrapper--centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sindicato-badge,
.sidebar-profile-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    border-radius: 22px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.sindicato-badge {
    min-height: 4rem;
    padding: 0.95rem;
    background: linear-gradient(135deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.24) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sindicato-badge-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
    flex-shrink: 0;
}

.sindicato-badge-logo {
    padding: 0.15rem;
    overflow: hidden;
}

.sindicato-badge-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.sindicato-badge-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.sindicato-badge-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.sindicato-badge-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu,
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.sidebar-menu {
    flex: 1;
    min-height: 0;
    padding-right: 0.15rem;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-group-label {
    display: none !important;
}

.sidebar-item,
.submenu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--t-sidebar-text) !important;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-item {
    min-height: 3.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 20px;
}

.sidebar-item--utility {
    min-height: 3.3rem;
}

.submenu-item {
    min-height: 3rem;
    padding: 0.45rem 0.5rem;
    border-radius: 16px;
}

.sidebar-item:hover,
.sidebar-item.active-menu,
.sidebar-item.is-open,
.submenu-item:hover,
.submenu-item.active-menu {
    background: rgba(255, 255, 255, 0.10);
    color: var(--t-sidebar-hover-text) !important;
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateX(1px);
}

.sidebar-item.active-menu {
    background: linear-gradient(135deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.9) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.62) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.submenu-item.active-menu {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.24);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
    box-shadow: none;
}

.sidebar-item .icon-main,
.submenu-item .icon-main {
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sidebar-item:hover .icon-main,
.sidebar-item.active-menu .icon-main,
.sidebar-item.is-open .icon-main,
.submenu-item:hover .icon-main,
.submenu-item.active-menu .icon-main {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.14);
}

.submenu-item .icon-main {
    width: 2.2rem;
    height: 2.2rem;
    flex-basis: 2.2rem;
    border-radius: 14px;
}

.sidebar-item-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sidebar-item-title {
    font-size: 0.92rem;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-item-subtitle {
    font-size: 0.72rem;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.58);
}

.submenu-item .menu-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.sidebar-item:hover .sidebar-item-subtitle,
.sidebar-item.active-menu .sidebar-item-subtitle,
.sidebar-item.is-open .sidebar-item-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.icon-arrow {
    margin-left: auto;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    margin-left: 0.35rem;
    padding: 0.55rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.submenu.open {
    display: flex;
}

.submenu-sheet-header {
    display: none;
}

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex;
}

.submenu-section-label {
    display: none !important;
}

.mobile-more-form {
    display: contents;
}

.submenu-item--danger {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.16);
}

.submenu-item--danger .icon-main {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.18);
    color: #dc2626;
}

.submenu-item--danger .menu-text {
    color: #991b1b;
}

.submenu-group-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.4rem;
    border-radius: 20px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
}

.submenu-group-card--danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.12);
}

.submenu-group-header {
    display: none;
}

.submenu-group-card .submenu-section-label {
    margin: 0;
}

.submenu-group-copy {
    display: none;
}

.submenu-sheet-kicker {
    display: none !important;
}

.settings-popover-panel.ui-overlaypanel {
    padding: 0 !important;
    border: none !important;
    border-radius: 28px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.settings-popover-panel.ui-overlaypanel:before,
.settings-popover-panel.ui-overlaypanel:after {
    display: none !important;
}

.settings-popover-panel .ui-overlaypanel-content {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 28px !important;
}

.settings-popover {
    width: min(24rem, calc(100vw - 2rem));
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.97) 100%);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.14);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.settings-popover-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.15rem 0.25rem;
}

.settings-popover-copy-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-popover-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.68rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    color: var(--t-accent, #334155);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-popover-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
    line-height: 1.1;
}

.settings-popover-copy {
    max-width: 15rem;
    color: var(--text-color-secondary, #64748b);
    font-size: 0.84rem;
    line-height: 1.45;
}

.settings-popover-badge {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 8.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.settings-popover-badge-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-color-secondary, #64748b);
}

.settings-popover-badge-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
}

.settings-popover-group {
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem;
    border-radius: 22px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
}

.settings-popover-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    color: var(--t-accent, #334155);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.settings-popover-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.35rem;
    padding: 0.6rem 0.65rem;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-popover-item:hover {
    transform: translateY(-1px);
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.settings-popover-icon {
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    color: var(--t-accent, #334155);
}

.settings-popover-item-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.settings-popover-item-title {
    color: var(--text-color, #0f172a);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.settings-popover-item-subtitle {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.78rem;
    line-height: 1.35;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(10px);
    transition: opacity 0.24s ease;
    z-index: 998;
}

body.mobile-sidebar-open {
    overflow: hidden;
}

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

.mobile-sidebar-trigger {
    display: none;
}

.menu-text {
    opacity: 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.sidebar.expanded .menu-text {
    opacity: 1;
    width: auto;
}

.sidebar:not(.expanded) .sidebar-item,
.sidebar:not(.expanded) .submenu-item,
.sidebar:not(.expanded) .sidebar-profile-card,
.sidebar:not(.expanded) .sindicato-badge {
    justify-content: center;
}

.sidebar:not(.expanded) .sidebar-brand-row {
    flex-direction: column;
    align-items: stretch;
}

.sidebar:not(.expanded) .sidebar-toggle {
    align-self: center;
}

.sidebar:not(.expanded) .sidebar-item,
.sidebar:not(.expanded) .submenu-item {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.sidebar:not(.expanded) .sidebar-group {
    position: relative;
}

.sidebar:not(.expanded) .sidebar-group-label {
    display: none;
}

.sidebar:not(.expanded) .sidebar-menu {
    overflow: visible;
    padding-right: 0;
}

.sidebar:not(.expanded) .sidebar-item {
    min-height: 3.35rem;
}

.sidebar:not(.expanded) .sidebar-item .icon-main,
.sidebar:not(.expanded) .sidebar-profile-card .avatar.ui-avatar {
    margin: 0;
}

.sidebar:not(.expanded) .submenu {
    position: absolute;
    top: -0.15rem;
    left: calc(100% + 1rem);
    width: min(20rem, calc(100vw - 9rem));
    margin-left: 0;
    padding: 0.85rem;
    align-items: stretch;
    gap: 0.55rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.14);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    z-index: 30;
}

.sidebar:not(.expanded) .icon-arrow {
    display: none;
}

.sidebar:not(.expanded) .submenu:not(.open) {
    display: none;
}

.sidebar:not(.expanded) .submenu.open {
    display: flex;
}

.sidebar:not(.expanded) .submenu-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0.1rem 0.75rem;
    border-bottom: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
}

.sidebar:not(.expanded) .submenu-sheet-intro {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.sidebar:not(.expanded) .submenu-sheet-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-accent, #334155);
}

.sidebar:not(.expanded) .submenu-sheet-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
}

.sidebar:not(.expanded) .submenu-sheet-copy {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.8rem;
    line-height: 1.45;
}

.sidebar:not(.expanded) .submenu-sheet-close {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
    color: var(--text-color, #0f172a);
    cursor: pointer;
}

.sidebar:not(.expanded) .submenu-item {
    justify-content: flex-start;
}

.sidebar:not(.expanded) .submenu .menu-text {
    opacity: 1;
    width: auto;
    overflow: visible;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 0.2rem;
}

.sidebar-footer .avatar.ui-avatar,
.sidebar-footer .p-avatar.avatar {
    width: 2.9rem !important;
    height: 2.9rem !important;
    min-width: 2.9rem;
    font-size: 1rem !important;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    color: var(--t-accent-contrast) !important;
    box-shadow: 0 14px 24px rgba(var(--t-accent-rgb, 51, 65, 85), 0.28);
    overflow: hidden;
    border-radius: 50%;
}

.sidebar-footer .p-avatar.avatar .p-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-profile-copy {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    min-width: 0;
}

.sidebar-profile-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-role {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-utility-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.18);
    color: #ffffff !important;
}

.btn-logout .icon-main {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.22);
}

.btn-logout .sidebar-item-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.26);
    color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────
   ÁREA DE CONTEÚDO
   ────────────────────────────────────────────────────────────────── */

.layout-content {
    margin-left: 7.75rem;
    flex-grow: 1;
    padding: 1.75rem 2.25rem 2.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-content.expanded-content {
    margin-left: 22rem;
}

@media (min-width: 769px) {
    .sidebar.expanded {
        width: 19.25rem;
    }

    .sidebar-shell {
        gap: 0.8rem;
        padding: 1rem 0.9rem;
        border-radius: 32px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
            var(--t-sidebar-bg);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    }

    .sidebar-shell::before {
        display: none;
    }

    .logo-wrapper {
        min-height: auto;
        padding: 0.3rem 0.15rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .logo-text {
        font-size: 1.45rem;
        font-weight: 900;
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--t-sidebar-hover-text);
    }

    .sindicato-badge,
    .sidebar-profile-card {
        padding: 0.35rem 0.15rem;
        border-radius: 20px;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .sindicato-badge {
        min-height: auto;
        gap: 0.55rem;
    }

    .sindicato-badge-icon {
        width: 2.15rem;
        height: 2.15rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.10);
        color: var(--t-sidebar-hover-text);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .sindicato-badge-label,
    .sidebar-profile-role {
        display: none;
    }

    .sindicato-badge-name,
    .sidebar-profile-name {
        color: var(--t-sidebar-text);
        font-size: 0.8rem;
        font-weight: 500;
    }

    .sidebar-menu {
        gap: 0.65rem;
    }

    .sidebar-group {
        gap: 0.22rem;
    }

    .sidebar-group-label {
        padding: 0 0.4rem 0.22rem;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: none;
        color: var(--t-sidebar-text);
    }

    .sidebar-item,
    .submenu-item {
        min-height: 3rem;
        padding: 0.45rem 0.7rem;
        border-radius: 18px;
        border: none;
        box-shadow: none;
        color: var(--t-sidebar-text) !important;
        transform: none !important;
    }

    .sidebar-item--utility {
        min-height: 3rem;
    }

    .sidebar-item-copy {
        gap: 0;
    }

    .sidebar-item-title {
        font-size: 1rem;
        font-weight: 600;
        color: inherit;
    }

    .sidebar-item-subtitle,
    .submenu-group-copy {
        display: none;
    }

    .sidebar-item .icon-main,
    .submenu-item .icon-main {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
        border-radius: 0;
        background: transparent;
        border: none;
        color: inherit;
    }

    .sidebar-item:hover,
    .sidebar-item.is-open,
    .submenu-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border: none;
        box-shadow: none;
    }

    .sidebar-item.active-menu {
        background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
        box-shadow: 0 14px 26px rgba(var(--t-accent-rgb, 51, 65, 85), 0.26);
    }

    .sidebar-item.active-menu .sidebar-item-title,
    .sidebar-item.active-menu .sidebar-item-subtitle,
    .sidebar-item.active-menu .icon-main {
        color: var(--t-accent-contrast) !important;
    }

    .sidebar.expanded .submenu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.15rem 0 0.1rem 0.2rem;
        margin-left: 0.25rem;
        gap: 0.2rem;
    }

    .sidebar.expanded .submenu-item {
        min-height: 2.7rem;
        padding: 0.42rem 0.6rem;
        justify-content: flex-start;
    }

    .sidebar.expanded .submenu-item.active-menu {
        background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) !important;
        border: none !important;
    }

    .sidebar.expanded .submenu-item .menu-text {
        font-size: 0.96rem;
        font-weight: 500;
        color: inherit;
    }

    .sidebar.expanded .submenu-group-card {
        gap: 0.2rem;
        padding: 0.15rem 0 0;
        background: transparent !important;
        border: none !important;
    }

    .sidebar.expanded .submenu-group-header {
        display: none;
    }

    .sidebar.expanded .submenu-section-label {
        padding: 0;
        margin: 0;
        background: transparent;
        color: var(--t-sidebar-text);
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: none;
    }

    .sidebar.expanded .submenu-sheet-header {
        display: none;
    }

    .sidebar-footer {
        gap: 0.55rem;
    }

    .sidebar-utility-list {
        gap: 0.42rem;
    }

    .btn-logout {
        background: rgba(255, 255, 255, 0.06);
        border: none;
        color: var(--t-sidebar-hover-text) !important;
    }

    .btn-logout:hover {
        background: rgba(239, 68, 68, 0.18) !important;
        border: none;
    }

    .sidebar:not(.expanded) .sidebar-shell {
        padding: 1rem 0.7rem;
    }

    .sidebar:not(.expanded) .logo-wrapper {
        justify-content: center;
        padding: 0.1rem 0;
    }

    .sidebar:not(.expanded) .sidebar-logo {
        min-width: 3.05rem;
        width: 3.05rem;
        height: 3.05rem;
    }

    .sidebar:not(.expanded) .sindicato-badge,
    .sidebar:not(.expanded) .sidebar-profile-card {
        padding: 0.35rem;
        background: transparent;
        border: none;
    }

    .sidebar:not(.expanded) .sidebar-item {
        min-height: 3.25rem;
        border-radius: 18px;
    }

    .sidebar:not(.expanded) .sidebar-item.active-menu {
        box-shadow: 0 14px 24px rgba(var(--t-accent-rgb, 51, 65, 85), 0.22);
    }

    .sidebar:not(.expanded) .submenu {
        top: -0.1rem;
        left: calc(100% + 0.9rem);
        width: 18.5rem;
    }

    .sidebar:not(.expanded) .submenu-group-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    body[class*="theme-dark-"] .sidebar-shell {
        background: var(--t-sidebar-bg) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28) !important;
    }

    body[class*="theme-dark-"] .logo-text,
    body[class*="theme-dark-"] .sidebar-item-title,
    body[class*="theme-dark-"] .sidebar.expanded .submenu-item .menu-text {
        color: rgba(255, 255, 255, 0.94) !important;
    }

    body[class*="theme-dark-"] .sindicato-badge-name,
    body[class*="theme-dark-"] .sidebar-profile-name,
    body[class*="theme-dark-"] .sidebar-group-label,
    body[class*="theme-dark-"] .sidebar.expanded .submenu-section-label {
        color: rgba(255, 255, 255, 0.58) !important;
    }

    body[class*="theme-dark-"] .sindicato-badge-icon,
    body[class*="theme-dark-"] .sidebar-item .icon-main,
    body[class*="theme-dark-"] .submenu-item .icon-main {
        color: rgba(255, 255, 255, 0.92) !important;
        background: transparent !important;
    }

    body[class*="theme-dark-"] .sidebar-item:hover,
    body[class*="theme-dark-"] .sidebar-item.is-open,
    body[class*="theme-dark-"] .submenu-item:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    body[class*="theme-dark-"] .sidebar-item.active-menu {
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.20) !important;
    }

    body[class*="theme-dark-"] .sidebar-item.active-menu .sidebar-item-title,
    body[class*="theme-dark-"] .sidebar-item.active-menu .sidebar-item-subtitle,
    body[class*="theme-dark-"] .sidebar-item.active-menu .icon-main {
        color: #18181b !important;
    }

    body[class*="theme-dark-"] .sidebar.expanded .submenu-item.active-menu {
        background: rgba(255, 255, 255, 0.10) !important;
    }

    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu {
        background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(17, 17, 17, 0.96) 100%) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44) !important;
    }

    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-sheet-title,
    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-sheet-copy,
    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-sheet-kicker {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    body[class*="theme-dark-"] .btn-logout {
        background: rgba(255, 255, 255, 0.06) !important;
        color: rgba(255, 255, 255, 0.92) !important;
    }
}

/* ──────────────────────────────────────────────────────────────────
   CARD PRINCIPAL
   ────────────────────────────────────────────────────────────────── */

/* ------------------------------------------------------------------
   SIDEBAR WORKSPACE REFINEMENT
------------------------------------------------------------------- */
@media (min-width: 769px) {
    html[data-sidebar-collapsed="true"] #sidebar.sidebar.expanded,
    html[data-portal-sidebar-collapsed="true"] #sidebar.sidebar.expanded {
        width: 5.75rem;
    }

    html[data-sidebar-collapsed="true"] #content.layout-content.expanded-content,
    html[data-portal-sidebar-collapsed="true"] #content.layout-content.expanded-content {
        margin-left: 5.75rem;
    }

    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: 5.75rem;
    }

    .sidebar.expanded {
        width: 18.75rem;
    }

    .sidebar-shell,
    .settings-popover {
        font-family: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
    }

    .sidebar-shell {
        gap: 0.8rem;
        padding: 1rem 0.8rem;
        border-radius: 0 2rem 2rem 0;
        box-shadow: 18px 0 44px rgba(15, 23, 42, 0.14);
    }

    .sidebar-header {
        gap: 0.65rem;
        padding-bottom: 0.15rem;
    }

    .sidebar-brand-row {
        gap: 0.55rem;
    }

    .logo-wrapper {
        min-height: auto;
        padding: 0.15rem 0.1rem;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .sidebar-logo {
        min-width: 2.65rem;
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 0.95rem;
        font-size: 0.92rem;
        letter-spacing: 0.02em;
        box-shadow: 0 12px 24px rgba(var(--t-accent-rgb, 51, 65, 85), 0.22);
    }

    .logo-text {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        text-transform: none;
    }

    .sidebar-toggle {
        width: 2.55rem;
        height: 2.55rem;
        border-radius: 1rem;
        box-shadow: none;
    }

    .sidebar-profile-card {
        padding: 0.78rem 0.82rem;
        border-radius: 1.15rem;
        background: linear-gradient(135deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.24) 0%, rgba(255, 255, 255, 0.12) 100%);
        border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.22);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .sidebar-footer .sidebar-profile-card {
        display: none !important;
    }

    .sidebar-footer .sidebar-item--utility .sidebar-item-title {
        font-size: 0.82rem;
    }

    .sidebar-footer .sidebar-item--utility .sidebar-item-subtitle {
        display: none;
    }

    .sidebar-footer {
        gap: 0.55rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sidebar-profile-name {
        font-size: 0.86rem;
        font-weight: 700;
        color: var(--t-sidebar-hover-text);
    }

    .sidebar-profile-role {
        display: block;
        font-size: 0.72rem;
        color: var(--t-sidebar-text);
    }

    .sindicato-badge {
        min-height: auto;
        gap: 0.55rem;
        padding: 0.15rem 0.1rem 0.05rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .sindicato-badge-icon {
        width: 1.95rem;
        height: 1.95rem;
        border-radius: 0.85rem;
    }

    .sindicato-badge-label {
        display: none;
    }

    .sindicato-badge-name {
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--t-sidebar-text);
    }

    .sidebar-menu,
    .sidebar-footer,
    .sidebar-utility-list {
        gap: 0.45rem;
    }

    .sidebar-menu {
        padding: 0 0.05rem 0.5rem 0;
    }

    .sidebar-group {
        gap: 0.14rem;
    }

    .sidebar-group--dashboard { order: 1; }
    .sidebar-group--homologacoes { order: 2; }
    .sidebar-group--financeiro { order: 3; }
    .sidebar-group--execucao { order: 4; }
    .sidebar-group--cadastros { order: 5; }
    .sidebar-group--filiados,
    .sidebar-group--perfil { order: 3; }
    .sidebar-group--sistema { order: 6; }
    .sidebar-group--mais { order: 99; }

    .sidebar-item {
        min-height: 2.8rem;
        padding: 0.48rem 0.58rem;
        gap: 0.68rem;
        border-radius: 0.95rem;
    }

    .sidebar-item .icon-main,
    .submenu-item .icon-main {
        width: 1.75rem;
        height: 1.75rem;
        flex: 0 0 1.75rem;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .sidebar-item-title {
        font-size: 0.87rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .sidebar-item-subtitle {
        display: none;
    }

    .sidebar-item:hover,
    .sidebar-item.is-open {
        background: rgba(255, 255, 255, 0.08);
        transform: none !important;
    }

    .sidebar-item.active-menu {
        background: rgba(255, 255, 255, 0.96);
        color: #111827 !important;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    }

    .sidebar-item.active-menu .sidebar-item-title,
    .sidebar-item.active-menu .sidebar-item-subtitle,
    .sidebar-item.active-menu .icon-main {
        color: #111827 !important;
    }

    .icon-arrow {
        font-size: 0.72rem;
        color: var(--t-sidebar-text);
    }

    .sidebar.expanded .submenu {
        margin-left: 2.05rem;
        padding: 0.08rem 0 0.16rem;
        gap: 0.04rem;
    }

    .sidebar.expanded .submenu-item {
        min-height: 2.15rem;
        padding: 0.32rem 0.4rem 0.32rem 0.92rem;
        position: relative;
        border-radius: 0.7rem;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .sidebar.expanded .submenu-item::before {
        content: "";
        position: absolute;
        left: 0.2rem;
        top: 50%;
        width: 0.38rem;
        height: 0.38rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.32);
        transform: translateY(-50%);
    }

    .sidebar.expanded .submenu-item .icon-main {
        display: none;
    }

    .sidebar.expanded .submenu-item .menu-text {
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--t-sidebar-text);
    }

    .sidebar.expanded .submenu-item:hover {
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .sidebar.expanded .submenu-item.active-menu {
        background: transparent !important;
    }

    .sidebar.expanded .submenu-item.active-menu::before {
        background: var(--t-sidebar-hover-text);
    }

    .sidebar.expanded .submenu-item.active-menu .menu-text {
        color: var(--t-sidebar-hover-text) !important;
        font-weight: 700;
    }

    .sidebar.expanded .submenu-group-card {
        padding: 0;
        gap: 0.04rem;
        background: transparent !important;
        border: none !important;
    }

    .sidebar:not(.expanded) .sidebar-shell {
        padding: 1rem 0.55rem;
    }

    .sidebar:not(.expanded) .logo-wrapper {
        justify-content: center;
        padding: 0;
    }

    .sidebar:not(.expanded) .sindicato-badge {
        justify-content: center;
        padding-top: 0.15rem;
    }

    .sidebar:not(.expanded) .sindicato-badge-copy,
    .sidebar:not(.expanded) .sidebar-profile-copy {
        display: none;
    }

    .sidebar:not(.expanded) .sidebar-profile-card {
        justify-content: center;
        padding: 0.55rem;
    }

    .sidebar:not(.expanded) .sidebar-item {
        min-height: 3.15rem;
        justify-content: center;
        border-radius: 1rem;
    }

    .sidebar:not(.expanded) .submenu {
        top: -0.05rem;
        left: calc(100% + 0.85rem);
        width: 16.75rem;
        padding: 0.72rem;
        gap: 0.25rem;
        border-radius: 1.25rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(247, 248, 252, 0.97) 100%);
        border: 1px solid rgba(148, 163, 184, 0.18);
        box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
    }

    .sidebar:not(.expanded) .submenu-sheet-header {
        padding: 0.1rem 0.15rem 0.55rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .sidebar:not(.expanded) .submenu-sheet-kicker,
    .sidebar:not(.expanded) .submenu-sheet-copy,
    .sidebar:not(.expanded) .submenu-sheet-close {
        display: none !important;
    }

    .sidebar:not(.expanded) .submenu-sheet-title {
        font-size: 0.86rem;
        font-weight: 700;
        color: #111827;
    }

    .sidebar:not(.expanded) .submenu-item {
        min-height: 2.65rem;
        padding: 0.42rem 0.15rem 0.42rem 0.2rem;
        border-radius: 0.85rem;
        background: transparent !important;
        border: 1px solid transparent !important;
        position: relative;
        transform: none !important;
        box-shadow: none !important;
    }

    .sidebar:not(.expanded) .submenu-item::after,
    .settings-popover-item::after {
        content: "\203A";
        margin-left: auto;
        color: #94a3b8;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
    }

    .sidebar:not(.expanded) .submenu-item .icon-main {
        width: 1.65rem;
        height: 1.65rem;
        flex-basis: 1.65rem;
        color: #64748b;
    }

    .sidebar:not(.expanded) .submenu-item .menu-text {
        color: #0f172a;
        font-size: 0.83rem;
        font-weight: 600;
    }

    .sidebar:not(.expanded) .submenu-item:hover,
    .sidebar:not(.expanded) .submenu-item.active-menu {
        background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
        border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
    }

    .sidebar:not(.expanded) .submenu-group-card {
        padding: 0;
        gap: 0.2rem;
        background: transparent;
        border: none;
    }

    .layout-content {
        margin-left: 5.75rem;
        padding: 1.75rem 2rem 2rem;
    }

    .layout-content.expanded-content {
        margin-left: 18.75rem;
    }

    .settings-popover {
        width: 17rem;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 1.25rem;
        box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
    }

    .settings-popover-header {
        padding: 0.1rem 0.15rem 0.4rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .settings-popover-eyebrow,
    .settings-popover-copy,
    .settings-popover-badge,
    .settings-popover-label,
    .settings-popover-item-subtitle {
        display: none !important;
    }

    .settings-popover-title {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .settings-popover-group {
        gap: 0.2rem;
        padding: 0.12rem 0;
        background: transparent;
        border: none;
    }

    .settings-popover-item {
        min-height: 2.72rem;
        padding: 0.45rem 0.18rem;
        gap: 0.65rem;
        border-radius: 0.85rem;
        background: transparent;
        border: 1px solid transparent;
        box-shadow: none;
        transform: none !important;
    }

    .settings-popover-item:hover {
        background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
        border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14);
        box-shadow: none;
    }

    .settings-popover-icon {
        width: 1.65rem;
        height: 1.65rem;
        flex: 0 0 1.65rem;
        border-radius: 0;
        background: transparent;
        border: none;
        color: #64748b;
    }

    .settings-popover-item-title {
        font-size: 0.83rem;
        font-weight: 600;
        color: #111827;
    }

    .btn-logout {
        background: transparent;
        border: 1px solid transparent;
        color: var(--t-sidebar-text) !important;
    }

    .btn-logout .icon-main {
        background: transparent !important;
        border: none !important;
        color: inherit !important;
    }

    .btn-logout:hover {
        background: rgba(239, 68, 68, 0.14) !important;
        border-color: rgba(248, 113, 113, 0.18) !important;
        color: var(--t-sidebar-hover-text) !important;
    }

    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu,
    body[class*="theme-dark-"] .settings-popover {
        background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(22, 22, 26, 0.96) 100%);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
    }

    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-sheet-header,
    body[class*="theme-dark-"] .settings-popover-header {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-sheet-title,
    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-item .menu-text,
    body[class*="theme-dark-"] .settings-popover-title,
    body[class*="theme-dark-"] .settings-popover-item-title {
        color: rgba(255, 255, 255, 0.94);
    }

    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-item .icon-main,
    body[class*="theme-dark-"] .settings-popover-icon,
    body[class*="theme-dark-"] .sidebar:not(.expanded) .submenu-item::after,
    body[class*="theme-dark-"] .settings-popover-item::after {
        color: rgba(255, 255, 255, 0.48);
    }

    body[class*="theme-dark-"] .sidebar.expanded .submenu-item.active-menu {
        background: transparent !important;
    }

    body[class*="theme-dark-"] .btn-logout {
        background: transparent !important;
        color: var(--t-sidebar-text) !important;
    }
}

.card-moderno {
    background: var(--t-card, #ffffff);
    color: var(--text-color, #0f172a);
    border-radius: 24px !important;
    padding: 2.5rem !important;
    box-shadow: var(--t-card-shadow, 0 10px 40px rgba(0,0,0,0.05)) !important;
    border: none !important;
}

body[class*="theme-"] {
    --t-panel-border: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    --t-panel-soft: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06);
    --t-panel-soft-strong: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    --t-input-bg: var(--surface-card, #ffffff);
    --t-input-hover-border: rgba(var(--t-accent-rgb, 51, 65, 85), 0.22);
    --t-table-head-bg: rgba(var(--t-accent-rgb, 51, 65, 85), 0.07);
    --t-table-row-alt-bg: rgba(var(--t-accent-rgb, 51, 65, 85), 0.025);
    --t-table-row-hover-bg: rgba(var(--t-accent-rgb, 51, 65, 85), 0.055);
    --t-overlay-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    --t-field-height: 3.25rem;
    --t-trigger-size: 3rem;
    --t-contrast-text: var(--text-color, #0f172a);
    --t-muted-text: var(--text-color-secondary, #64748b);
    --t-accent-contrast: #ffffff;
}

body[class*="theme-dark-"] {
    --t-panel-border: rgba(255, 255, 255, 0.10);
    --t-panel-soft: rgba(255, 255, 255, 0.04);
    --t-panel-soft-strong: rgba(255, 255, 255, 0.08);
    --t-input-bg: rgba(255, 255, 255, 0.03);
    --t-table-head-bg: rgba(255, 255, 255, 0.06);
    --t-table-row-alt-bg: rgba(255, 255, 255, 0.025);
    --t-table-row-hover-bg: rgba(255, 255, 255, 0.05);
    --t-overlay-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ──────────────────────────────────────────────────────────────────
   BOTÕES PRIMÁRIOS — gradiente Bold SaaS
   ────────────────────────────────────────────────────────────────── */

/* Botões que devem ter gradiente (evita afetar flat/outlined/danger/etc) */
.ui-button-primary:not(.ui-button-outlined):not(.ui-button-text):not(.ui-button-flat),
.ui-button:not(.ui-button-outlined):not(.ui-button-text):not(.ui-button-flat)
    :not(.ui-button-secondary):not(.ui-button-success):not(.ui-button-info)
    :not(.ui-button-warning):not(.ui-button-danger):not(.ui-button-help) {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    border-color: transparent !important;
}

/* Dark-black: texto escuro no botão gradiente prata */
body.theme-dark-black .ui-button-primary:not(.ui-button-outlined):not(.ui-button-text):not(.ui-button-flat) {
    color: #0a0a0a !important;
}

/* ──────────────────────────────────────────────────────────────────
   FLOAT LABEL — p:selectOneMenu e p:autoComplete sempre elevados
   ────────────────────────────────────────────────────────────────── */

.ui-button {
    border-radius: 999px !important;
    font-weight: 700 !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}

.ui-button:not(.ui-button-icon-only) {
    padding: 0.85rem 1.35rem !important;
}

.ui-button.ui-button-primary:not(.ui-button-outlined):not(.ui-button-text):not(.ui-button-flat) {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(var(--t-accent-rgb, 51, 65, 85), 0.22) !important;
}

.ui-button.ui-button-primary:not(.ui-button-outlined):not(.ui-button-text):not(.ui-button-flat):hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(var(--t-accent-rgb, 51, 65, 85), 0.26) !important;
}

.ui-button.ui-button-outlined:not(.ui-button-danger):not(.ui-button-success):not(.ui-button-warning):not(.ui-button-info):not(.ui-button-help),
.section-action-button.ui-button {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05) !important;
    color: var(--t-accent) !important;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
    box-shadow: none !important;
}

.ui-button.ui-button-outlined:not(.ui-button-danger):not(.ui-button-success):not(.ui-button-warning):not(.ui-button-info):not(.ui-button-help):hover,
.section-action-button.ui-button:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.28) !important;
}

.section-action-button.ui-button {
    padding: 0.55rem 1rem !important;
    border-radius: 16px !important;
    font-size: 0.85rem !important;
}

.ui-button.ui-button-flat:not(.ui-button-danger):not(.ui-button-success):not(.ui-button-warning):not(.ui-button-info):not(.ui-button-help) {
    color: var(--t-accent) !important;
}

.ui-button.ui-button-flat:not(.ui-button-danger):not(.ui-button-success):not(.ui-button-warning):not(.ui-button-info):not(.ui-button-help):hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
}

.ui-button.ui-button-danger,
.ui-button.ui-button-success,
.ui-button.ui-button-warning,
.ui-button.ui-button-info,
.ui-button.ui-button-help {
    box-shadow: none !important;
}

.rounded-button.ui-button {
    width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
}

body.theme-dark-black .ui-button.ui-button-primary:not(.ui-button-outlined):not(.ui-button-text):not(.ui-button-flat) {
    color: #0a0a0a !important;
}

.ui-float-label .ui-selectonemenu ~ label,
.ui-float-label .ui-autocomplete ~ label {
    top: -0.75rem;
    font-size: 12px;
    left: 0.5rem;
    padding: 0 0.25rem;
    background: var(--surface-card);
}

/* ──────────────────────────────────────────────────────────────────
   GROWL
   ────────────────────────────────────────────────────────────────── */

.ui-growl {
    top: 20px !important;
    right: 0 !important;
    left: 0 !important;
    margin: 0 auto !important;
}

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVIDADE
   ────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVIDADE (MODO PORTÁTIL — RECONSTRUÍDO)
   ────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Gatilho da Sidebar (Top Bar Mobile) */
    .mobile-sidebar-trigger {
        position: fixed;
        top: 0.9rem;
        left: 1rem;
        right: 1rem;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.9rem;
        min-height: 3rem;
        padding: 0.5rem 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 1.35rem;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%),
            var(--t-sidebar-bg);
        color: var(--t-sidebar-hover-text);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(18px);
    }

    .mobile-sidebar-trigger-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .mobile-sidebar-trigger .logo-image {
        height: 2.2rem;
    }

    body.mobile-sidebar-open .mobile-sidebar-trigger {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.4rem);
    }

    /* Conteúdo da Página */
    .layout-content,
    .layout-content.expanded-content {
        margin-left: 0;
        padding: 5.35rem 1rem 1rem;
    }

    /* Sidebar Mobile (Exatamente como Desktop, mas Off-canvas) */
    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: min(20rem, calc(100vw - 1.5rem));
        transform: translateX(calc(-100% - 1rem));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
        z-index: 1001;
    }

    body.mobile-sidebar-open .sidebar {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-shell {
        height: 100%;
        padding: 1.2rem 1rem;
        border-radius: 0 2rem 2rem 0;
        box-shadow: 20px 0 50px rgba(0,0,0,0.2);
    }

    /* Reset de forçamentos antigos para herdar o Accordion do Desktop */
    .sidebar-menu {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    .menu-text {
        opacity: 1 !important;
        width: auto !important;
        visibility: visible !important;
    }

    .sidebar-item {
        justify-content: flex-start !important;
        padding: 0.6rem 0.8rem !important;
        border-radius: 16px !important;
    }

    .sidebar-item-copy {
        display: flex !important;
    }

    /* Submenus (Herdando Accordion) */
    .submenu {
        position: static !important;
        display: none;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.2rem 0 0.5rem 0.5rem !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .submenu.open {
        display: flex !important;
    }

    .submenu-item {
        padding-left: 2.8rem !important;
        min-height: 2.8rem !important;
        background: transparent !important;
    }

    .submenu-item .icon-main {
        display: none !important; /* Mantendo padrão desktop de não ter ícone no submenu */
    }

    /* Rodapé Mobile */
    .sidebar-footer {
        margin-top: auto;
        padding-top: 1.2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .sindicato-badge, 
    .sidebar-profile-card {
        width: 100% !important;
        padding: 0.8rem !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 20px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.85rem !important;
    }

    .sidebar-profile-main {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.85rem !important;
        flex: 1;
        min-width: 0;
    }

    .sidebar-footer .avatar.ui-avatar,
    .sidebar-footer .p-avatar.avatar {
        width: 2.9rem !important;
        height: 2.9rem !important;
        min-width: 2.9rem !important;
        flex: 0 0 2.9rem !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .sidebar-footer .p-avatar.avatar .p-avatar-img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   DESIGN DE FORMULÁRIOS — Bold SaaS
   ══════════════════════════════════════════════════════════════════ */

/* Cabeçalho do formulário */
.form-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--t-section-bg, rgba(0,0,0,0.04));
}
.form-header .form-subtitle {
    color: var(--t-accent);
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    display: block;
    letter-spacing: 0.2px;
}

/* Seção padrão — borda esquerda accent */
.form-section {
    border-left: 3px solid var(--t-accent);
    background: var(--t-section-bg, rgba(0,0,0,0.03));
    border-radius: 0 14px 14px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 14px;
}

.form-section--danger {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

/* Seção de toggle/checkbox — fundo levemente tintado */
.form-section-toggle {
    border-left: 3px solid var(--t-accent);
    background: var(--t-section-toggle-bg, rgba(0,0,0,0.05));
    border-radius: 0 14px 14px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 14px;
}

/* Título de seção — uppercase accent */
.form-section-title {
    color: var(--t-accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title .pi {
    font-size: 13px;
}

.form-section--danger .form-section-title,
.form-section--danger .theme-danger-text {
    color: #dc2626 !important;
}

.detail-summary-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--t-panel-border);
    background: linear-gradient(180deg, var(--t-panel-soft) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.03) 100%);
}

.detail-summary-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--t-muted-text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-summary-value {
    display: block;
    color: var(--t-contrast-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.detail-field-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--t-muted-text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-field-value {
    display: block;
    color: var(--t-contrast-text);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Float labels — sempre elevados, cor do tema, maiúsculas
   Alinha com o design Bold SaaS (label acima do input)          */
.ui-float-label label {
    top: -0.75rem !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--t-accent) !important;
    background: var(--surface-card) !important;
    padding: 0 4px !important;
    left: 8px !important;
    line-height: 1 !important;
}

.ui-inputfield,
.ui-inputtextarea,
.ui-selectonemenu,
.ui-password input,
.ui-selectcheckboxmenu,
.ui-autocomplete .ui-autocomplete-input {
    border: 2px solid var(--surface-border, #e2e8f0) !important;
    border-radius: 16px !important;
    background: var(--t-input-bg) !important;
    color: var(--text-color, #0f172a) !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.ui-inputfield,
.ui-inputtextarea,
.ui-password input,
.ui-autocomplete .ui-autocomplete-input {
    padding: 0.95rem 1rem !important;
    min-height: var(--t-field-height, 3.25rem) !important;
}

.ui-inputfield:not(.ui-inputtextarea),
.ui-password input,
.ui-autocomplete .ui-autocomplete-input {
    height: var(--t-field-height, 3.25rem) !important;
}

.ui-inputtextarea {
    display: block;
    width: 100% !important;
    min-height: 7.5rem !important;
    height: auto !important;
    line-height: 1.55;
    resize: vertical;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.ui-inputfield:enabled:hover,
.ui-inputtextarea:enabled:hover,
.ui-password input:enabled:hover,
.ui-selectonemenu:not(.ui-state-disabled):hover,
.ui-autocomplete .ui-autocomplete-input:enabled:hover {
    border-color: var(--t-input-hover-border) !important;
}

.ui-inputfield:enabled:focus,
.ui-inputtextarea:enabled:focus,
.ui-password input:enabled:focus,
.ui-inputfield.ui-state-focus,
.ui-inputtextarea.ui-state-focus,
.ui-selectonemenu.ui-state-focus,
.ui-autocomplete .ui-autocomplete-input.ui-state-focus,
.ui-autocomplete-input:focus {
    border-color: var(--t-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
    background: var(--surface-card, #ffffff) !important;
}

.ui-inputfield.ui-state-disabled,
.ui-selectonemenu.ui-state-disabled,
.ui-password.ui-state-disabled input {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) !important;
    opacity: 1 !important;
}

.ui-inputfield::placeholder,
.ui-inputtextarea::placeholder {
    color: var(--text-color-secondary, #64748b);
}

.ui-input-icon-left {
    position: relative !important;
    display: flex !important;
    align-items: center;
    max-width: 100%;
    min-width: 0;
}

.ui-input-icon-left > i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1rem !important;
    color: var(--text-color-secondary, #64748b) !important;
    pointer-events: none;
    z-index: 2;
}

.ui-input-icon-left > .ui-inputfield {
    width: 100% !important;
    padding-left: 2.75rem !important;
}

.ui-password {
    width: 100% !important;
}

.ui-calendar {
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    height: var(--t-field-height, 3.25rem) !important;
    box-sizing: border-box !important;
}

.ui-calendar .ui-inputfield {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0 !important;
    height: 100% !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ui-selectonemenu {
    height: var(--t-field-height, 3.25rem) !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ui-selectonemenu .ui-selectonemenu-label {
    background: transparent !important;
    color: var(--t-contrast-text) !important;
    padding: 0.95rem 1rem !important;
    min-height: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ui-selectonemenu .ui-selectonemenu-trigger,
.ui-autocomplete .ui-autocomplete-dropdown,
.ui-datepicker-trigger {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06) !important;
    color: var(--t-accent) !important;
    border: none !important;
    border-left: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
    width: var(--t-trigger-size, 3rem) !important;
}

.ui-selectonemenu .ui-selectonemenu-trigger,
.ui-autocomplete .ui-autocomplete-dropdown,
.ui-datepicker-trigger {
    border-radius: 0 14px 14px 0 !important;
}

.ui-autocomplete {
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    height: var(--t-field-height, 3.25rem) !important;
    box-sizing: border-box !important;
}

.ui-autocomplete .ui-autocomplete-input {
    width: 100% !important;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0 !important;
    height: 100% !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ui-selectonemenu .ui-selectonemenu-trigger {
    flex: 0 0 var(--t-trigger-size, 3rem);
    min-width: var(--t-trigger-size, 3rem) !important;
    width: var(--t-trigger-size, 3rem) !important;
    min-height: 0 !important;
    height: 100% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: stretch !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.ui-autocomplete .ui-autocomplete-dropdown,
.ui-calendar .ui-datepicker-trigger {
    flex: 0 0 var(--t-trigger-size, 3rem);
    min-width: var(--t-trigger-size, 3rem) !important;
    width: var(--t-trigger-size, 3rem) !important;
    min-height: 0 !important;
    height: 100% !important;
    margin-left: -1px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: stretch !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.ui-selectonemenu .ui-selectonemenu-trigger .ui-icon,
.ui-selectonemenu .ui-selectonemenu-trigger .ui-icon.ui-icon-triangle-1-s,
.ui-autocomplete .ui-autocomplete-dropdown .ui-button-icon-left,
.ui-autocomplete .ui-autocomplete-dropdown .ui-icon,
.ui-calendar .ui-datepicker-trigger .ui-button-icon-left,
.ui-calendar .ui-datepicker-trigger .ui-icon {
    position: static !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ui-datepicker .ui-datepicker-header,
.ui-selectonemenu-panel .ui-selectonemenu-items-wrapper,
.ui-autocomplete-panel,
.ui-datepicker,
.ui-menu.ui-menu-dynamic {
    background: var(--surface-card, #ffffff) !important;
    color: var(--text-color, #0f172a) !important;
}

.ui-selectonemenu-panel,
.ui-autocomplete-panel,
.ui-datepicker,
.ui-menu.ui-menu-dynamic {
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
    border-radius: 18px !important;
    box-shadow: var(--t-overlay-shadow) !important;
    overflow: hidden;
}

.ui-selectonemenu-panel .ui-selectonemenu-filter-container {
    position: relative;
    padding: 0.75rem 0.75rem 0.35rem !important;
    background: transparent !important;
}

.ui-selectonemenu-panel .ui-selectonemenu-filter-container .ui-icon,
.ui-selectonemenu-panel .ui-selectonemenu-filter-container .pi {
    position: absolute;
    left: 1.3rem;
    top: 1.35rem;
    transform: translateY(-50%);
    color: var(--t-muted-text);
    pointer-events: none;
    z-index: 1;
}

.ui-selectonemenu-panel .ui-selectonemenu-filter {
    width: 100% !important;
    padding-left: 2.5rem !important;
    border-radius: 14px !important;
}

.ui-selectonemenu-panel .ui-selectonemenu-item,
.ui-autocomplete-panel .ui-autocomplete-item,
.ui-menu.ui-menu-dynamic .ui-menuitem-link {
    border-radius: 12px !important;
    margin: 0.2rem 0.35rem !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.ui-selectonemenu-panel .ui-selectonemenu-item.ui-state-highlight,
.ui-selectonemenu-panel .ui-selectonemenu-item.ui-state-hover,
.ui-autocomplete-panel .ui-autocomplete-item.ui-state-highlight,
.ui-autocomplete-panel .ui-autocomplete-item:hover,
.ui-menu.ui-menu-dynamic .ui-menuitem-link:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) !important;
    color: var(--t-accent) !important;
}

.ui-datepicker {
    padding: 0.75rem !important;
}

.ui-datepicker .ui-datepicker-header {
    border: none !important;
}

.ui-datepicker .ui-datepicker-calendar td > span,
.ui-datepicker .ui-datepicker-calendar td > a {
    border-radius: 12px !important;
}

.ui-datepicker .ui-datepicker-calendar td > a.ui-state-active,
.ui-datepicker .ui-datepicker-calendar td > span.ui-state-active {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    color: var(--primary-text-color, #ffffff) !important;
}

.ui-datepicker:not(.ui-state-disabled) table td a:not(.ui-state-active):hover,
.ui-datepicker:not(.ui-state-disabled) table td span:not(.ui-state-active):hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
}

.ui-chkbox .ui-chkbox-box {
    border: 2px solid var(--surface-border, #e2e8f0) !important;
    border-radius: 10px !important;
    background: var(--surface-card, #ffffff) !important;
    box-shadow: none !important;
}

.ui-chkbox .ui-chkbox-box.ui-state-active {
    background: var(--t-accent) !important;
    border-color: var(--t-accent) !important;
}

.ui-toggleswitch {
    height: 1.9rem !important;
}

.ui-toggleswitch .ui-toggleswitch-slider {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
}

.ui-toggleswitch.ui-toggleswitch-checked .ui-toggleswitch-slider {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
}

.ui-datatable {
    border: 1px solid var(--t-panel-border) !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: var(--surface-card, #ffffff) !important;
}

.ui-datatable .ui-datatable-header,
.ui-datatable .ui-datatable-footer {
    border: none !important;
    background: transparent !important;
}

.ui-datatable .ui-datatable-tablewrapper > table .ui-datatable-thead > tr > th,
.ui-datatable table thead th {
    background: linear-gradient(180deg, var(--t-table-head-bg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.10)) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) 100%) !important;
    color: var(--text-color, #0f172a) !important;
    border: none !important;
    border-bottom: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
    padding: 1rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ui-datatable .ui-sortable-column .ui-sortable-column-icon,
.ui-datatable table thead th .ui-sortable-column-icon {
    color: var(--t-muted-text) !important;
}

.ui-datatable .ui-datatable-tbody > tr {
    background: transparent !important;
}

.ui-datatable .ui-datatable-tbody > tr:nth-child(even) {
    background: var(--t-table-row-alt-bg) !important;
}

.ui-datatable .ui-datatable-tbody > tr:hover {
    background: var(--t-table-row-hover-bg) !important;
}

.ui-datatable .ui-datatable-tbody > tr > td {
    border: none !important;
    border-top: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.06) !important;
    padding: 1rem !important;
    vertical-align: middle;
}

.ui-datatable .ui-paginator {
    border: none !important;
    border-top: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
    background: transparent !important;
    padding: 0.9rem 1rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ui-datatable .ui-paginator .ui-paginator-pages {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ui-paginator .ui-paginator-page,
.ui-paginator .ui-paginator-prev,
.ui-paginator .ui-paginator-next,
.ui-paginator .ui-paginator-first,
.ui-paginator .ui-paginator-last,
.ui-paginator .ui-paginator-rpp-options {
    border-radius: 999px !important;
    min-width: 2.35rem !important;
    height: 2.35rem !important;
    padding: 0 0.85rem !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: var(--t-contrast-text) !important;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) !important;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
}

.ui-paginator .ui-paginator-page,
.ui-paginator .ui-paginator-page > span,
.ui-paginator .ui-paginator-page > a,
.ui-paginator .ui-paginator-prev,
.ui-paginator .ui-paginator-prev > span,
.ui-paginator .ui-paginator-next,
.ui-paginator .ui-paginator-next > span,
.ui-paginator .ui-paginator-first,
.ui-paginator .ui-paginator-first > span,
.ui-paginator .ui-paginator-last,
.ui-paginator .ui-paginator-last > span {
    color: var(--t-contrast-text) !important;
}

.ui-paginator .ui-paginator-prev .ui-icon,
.ui-paginator .ui-paginator-next .ui-icon,
.ui-paginator .ui-paginator-first .ui-icon,
.ui-paginator .ui-paginator-last .ui-icon {
    position: static !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ui-paginator .ui-paginator-page.ui-state-active {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    border-color: transparent !important;
    color: var(--t-accent-contrast) !important;
    box-shadow: 0 10px 22px rgba(var(--t-accent-rgb, 51, 65, 85), 0.24) !important;
    opacity: 1 !important;
}

.ui-paginator .ui-paginator-page.ui-state-active,
.ui-paginator .ui-paginator-page.ui-state-active > span,
.ui-paginator .ui-paginator-page.ui-state-active > a {
    color: var(--t-accent-contrast) !important;
    -webkit-text-fill-color: var(--t-accent-contrast) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.14);
}

.ui-paginator .ui-paginator-current,
.ui-paginator .ui-paginator-rpp-options .ui-selectonemenu-label {
    color: var(--t-contrast-text) !important;
}

.ui-paginator .ui-paginator-page:not(.ui-state-active):hover,
.ui-paginator .ui-paginator-prev:hover,
.ui-paginator .ui-paginator-next:hover,
.ui-paginator .ui-paginator-first:hover,
.ui-paginator .ui-paginator-last:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
}

body[class*="theme-dark-"] .ui-datatable,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper,
body[class*="theme-dark-"] .ui-datatable table,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-data,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > thead,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > tbody,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > tfoot,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > thead > tr,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > tbody > tr,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > tfoot > tr {
    background-color: var(--surface-card, #111111) !important;
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr {
    background: transparent !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr:nth-child(even) {
    background: var(--t-table-row-alt-bg) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr:hover {
    background: var(--t-table-row-hover-bg) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr > td,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-empty-message,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-header,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-footer,
body[class*="theme-dark-"] .ui-datatable .ui-paginator {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr > td {
    background: transparent !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > thead > tr > th,
body[class*="theme-dark-"] .ui-datatable table thead th,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > tbody > tr > td,
body[class*="theme-dark-"] .ui-datatable table tbody td,
body[class*="theme-dark-"] .ui-datatable table tbody tr,
body[class*="theme-dark-"] .ui-datatable table tbody,
body[class*="theme-dark-"] .ui-datatable .ui-widget-content {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper > table > thead > tr > th,
body[class*="theme-dark-"] .ui-datatable table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper {
    background: var(--surface-card, #111111) !important;
}

body[class*="theme-dark-"] .ui-paginator .ui-paginator-page,
body[class*="theme-dark-"] .ui-paginator .ui-paginator-prev,
body[class*="theme-dark-"] .ui-paginator .ui-paginator-next,
body[class*="theme-dark-"] .ui-paginator .ui-paginator-first,
body[class*="theme-dark-"] .ui-paginator .ui-paginator-last,
body[class*="theme-dark-"] .ui-paginator .ui-paginator-rpp-options {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .ui-selectonemenu-panel,
body[class*="theme-dark-"] .ui-autocomplete-panel,
body[class*="theme-dark-"] .ui-datepicker,
body[class*="theme-dark-"] .ui-menu.ui-menu-dynamic,
body[class*="theme-dark-"] .ui-selectcheckboxmenu-panel,
body[class*="theme-dark-"] .ui-dialog,
body[class*="theme-dark-"] .ui-confirm-dialog {
    background: var(--surface-card, #111111) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

body[class*="theme-dark-"] .ui-selectonemenu-panel .ui-selectonemenu-item,
body[class*="theme-dark-"] .ui-autocomplete-panel .ui-autocomplete-item,
body[class*="theme-dark-"] .ui-menu.ui-menu-dynamic .ui-menuitem-link,
body[class*="theme-dark-"] .ui-datepicker table td > span,
body[class*="theme-dark-"] .ui-datepicker table td > a,
body[class*="theme-dark-"] .ui-datepicker .ui-datepicker-header,
body[class*="theme-dark-"] .ui-selectcheckboxmenu-panel .ui-selectcheckboxmenu-item,
body[class*="theme-dark-"] .ui-dialog .ui-dialog-content,
body[class*="theme-dark-"] .ui-dialog .ui-dialog-titlebar,
body[class*="theme-dark-"] .ui-confirm-dialog .ui-dialog-content,
body[class*="theme-dark-"] .ui-confirm-dialog .ui-dialog-titlebar {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .ui-dialog .ui-dialog-titlebar,
body[class*="theme-dark-"] .ui-confirm-dialog .ui-dialog-titlebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

body[class*="theme-dark-"] .theme-panel,
body[class*="theme-dark-"] .theme-upload-panel,
body[class*="theme-dark-"] .theme-upload-item,
body[class*="theme-dark-"] .theme-day-card,
body[class*="theme-dark-"] .theme-slot-card,
body[class*="theme-dark-"] .detail-summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .theme-empty-state,
body[class*="theme-dark-"] .theme-panel-title,
body[class*="theme-dark-"] .detail-field-value,
body[class*="theme-dark-"] .detail-summary-value {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .dashboard-chip,
body[class*="theme-dark-"] .dashboard-glance-card,
body[class*="theme-dark-"] .dashboard-kpi-card,
body[class*="theme-dark-"] .dashboard-mini-metric,
body[class*="theme-dark-"] .dashboard-stat-box,
body[class*="theme-dark-"] .dashboard-inline-note,
body[class*="theme-dark-"] .dashboard-alert,
body[class*="theme-dark-"] .dashboard-balance-item,
body[class*="theme-dark-"] .dashboard-ranking-item,
body[class*="theme-dark-"] .dashboard-list-item,
body[class*="theme-dark-"] .dashboard-subpanel,
body[class*="theme-dark-"] .dashboard-progress-card,
body[class*="theme-dark-"] .dashboard-empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24) !important;
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .dashboard-alert--danger {
    background: rgba(239, 68, 68, 0.10) !important;
}

body[class*="theme-dark-"] .dashboard-alert--warning {
    background: rgba(245, 158, 11, 0.10) !important;
}

body[class*="theme-dark-"] .dashboard-alert--success {
    background: rgba(34, 197, 94, 0.10) !important;
}

body[class*="theme-dark-"] .dashboard-alert--info {
    background: rgba(var(--t-accent-rgb), 0.10) !important;
}

body[class*="theme-dark-"] .dashboard-alert-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

body[class*="theme-dark-"] .dashboard-progress-track {
    background: rgba(255, 255, 255, 0.08) !important;
}

body[class*="theme-dark-"] .dashboard-ranking-index {
    background: rgba(255, 255, 255, 0.10) !important;
}

.ui-tag {
    border-radius: 999px !important;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.ui-tag.ui-tag-primary,
.theme-tag--accent {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
    color: var(--t-accent) !important;
}

.ui-tag.ui-tag-success,
.theme-tag--success {
    background: rgba(22, 163, 74, 0.14) !important;
    border-color: rgba(22, 163, 74, 0.20) !important;
    color: #16a34a !important;
}

.ui-tag.ui-tag-info,
.theme-tag--info {
    background: rgba(14, 116, 144, 0.14) !important;
    border-color: rgba(14, 116, 144, 0.22) !important;
    color: #0e7490 !important;
}

.ui-tag.ui-tag-warning,
.theme-tag--warning {
    background: rgba(217, 119, 6, 0.14) !important;
    border-color: rgba(217, 119, 6, 0.20) !important;
    color: #d97706 !important;
}

.ui-tag.ui-tag-danger,
.theme-tag--danger {
    background: rgba(220, 38, 38, 0.14) !important;
    border-color: rgba(220, 38, 38, 0.20) !important;
    color: #dc2626 !important;
}

.ui-tag.ui-tag-secondary,
.theme-tag--muted {
    background: rgba(100, 116, 139, 0.14) !important;
    border-color: rgba(100, 116, 139, 0.18) !important;
    color: #64748b !important;
}

.ui-tag.ui-tag-contrast {
    background: rgba(15, 23, 42, 0.14) !important;
    border-color: rgba(15, 23, 42, 0.20) !important;
    color: #0f172a !important;
}

body.theme-dark-violet .ui-tag.ui-tag-contrast,
body.theme-dark-teal .ui-tag.ui-tag-contrast,
body.theme-dark-black .ui-tag.ui-tag-contrast,
body.theme-dark-ember .ui-tag.ui-tag-contrast {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #fafafa !important;
}

.ui-dialog,
.ui-confirm-dialog {
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    background: var(--t-card, #ffffff) !important;
    box-shadow: var(--t-overlay-shadow) !important;
}

.ui-dialog .ui-dialog-titlebar,
.ui-confirm-dialog .ui-dialog-titlebar {
    border: none !important;
    padding: 1.2rem 1.5rem !important;
    background: linear-gradient(135deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) 100%) !important;
    color: var(--text-color, #0f172a) !important;
}

.ui-dialog .ui-dialog-title,
.ui-confirm-dialog .ui-dialog-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.ui-dialog .ui-dialog-content,
.ui-confirm-dialog .ui-dialog-content {
    border: none !important;
    background: var(--t-card, #ffffff) !important;
    color: var(--text-color, #0f172a) !important;
    padding: 1.5rem !important;
}

.ui-dialog .ui-dialog-titlebar-icon,
.ui-confirm-dialog .ui-dialog-titlebar-icon {
    border-radius: 999px !important;
    color: var(--t-accent) !important;
}

.ui-dialog .ui-dialog-titlebar-icon:hover,
.ui-confirm-dialog .ui-dialog-titlebar-icon:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) !important;
}

.ui-widget-overlay,
.ui-dialog-mask {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(6px);
}

.theme-accent-text { color: var(--t-accent) !important; }
.theme-success-text { color: #16a34a !important; }
.theme-warning-text { color: #d97706 !important; }
.theme-danger-text { color: #dc2626 !important; }
.theme-muted-text { color: var(--text-color-secondary, #64748b) !important; }

.theme-avatar.ui-avatar {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
    color: var(--t-accent) !important;
}

.theme-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    color: var(--t-accent);
}

.theme-icon-box--sm {
    min-width: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.theme-icon-box--lg {
    min-width: 3rem;
    width: 3rem;
    height: 3rem;
}

.theme-icon-box--success {
    background: rgba(22, 163, 74, 0.14);
    color: #16a34a;
}

.theme-icon-box--info {
    background: rgba(14, 116, 144, 0.14);
    color: #0e7490;
}

.theme-icon-box--warning {
    background: rgba(217, 119, 6, 0.14);
    color: #d97706;
}

.theme-icon-box--danger {
    background: rgba(220, 38, 38, 0.14);
    color: #dc2626;
}

.theme-panel {
    border: 1px solid var(--t-panel-border);
    border-radius: 22px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, var(--t-panel-soft) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.02) 100%);
}

.theme-panel--danger {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.16);
}

.theme-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color, #0f172a);
    font-size: 1.15rem;
    font-weight: 800;
}

.theme-empty-state {
    text-align: center;
    padding: 1.5rem;
}

.theme-empty-state .pi,
.theme-empty-icon {
    color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.45);
}

.theme-upload-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(var(--t-accent-rgb, 51, 65, 85), 0.22);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.05) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.02) 100%);
}

.importacao-extrato-page {
    position: relative;
    overflow: hidden;
}

.importacao-extrato-page::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: min(26rem, 45%);
    height: 20rem;
    background: radial-gradient(circle at top left, rgba(var(--t-accent-rgb, 51, 65, 85), 0.14), transparent 70%);
    pointer-events: none;
}

.importacao-extrato-hero,
.importacao-extrato-layout,
.importacao-empty-panel,
.importacao-preview-shell {
    position: relative;
    z-index: 1;
}

.importacao-extrato-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.6rem;
    border-radius: 28px;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    background:
        linear-gradient(135deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.08) 0%, rgba(255, 255, 255, 0.92) 52%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) 100%);
}

.importacao-extrato-hero-copy {
    max-width: 52rem;
}

.importacao-extrato-eyebrow,
.importacao-upload-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    color: var(--t-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.importacao-extrato-lead {
    display: block;
    max-width: 46rem;
    color: var(--t-muted-text);
    font-size: 1rem;
    line-height: 1.65;
}

.importacao-extrato-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.importacao-chip-row,
.importacao-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.importacao-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.14);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-color, #0f172a);
    font-size: 0.78rem;
    font-weight: 700;
}

.importacao-chip--soft {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
    color: var(--t-accent);
}

.importacao-extrato-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr);
    gap: 1.25rem;
}

.importacao-extrato-sidebar,
.importacao-extrato-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.importacao-context-panel,
.importacao-rules-panel,
.importacao-upload-shell,
.importacao-preview-shell,
.importacao-empty-panel {
    margin-bottom: 0;
}

.importacao-context-copy {
    margin-top: 1rem;
    color: var(--t-muted-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.importacao-rule-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.importacao-rule-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.045);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
}

.importacao-rule-title {
    color: var(--text-color, #0f172a);
    font-size: 0.88rem;
    font-weight: 700;
}

.importacao-rule-copy {
    color: var(--t-muted-text);
    font-size: 0.83rem;
    line-height: 1.55;
}

.importacao-upload-shell {
    padding: 1.5rem;
}

.importacao-upload-header {
    margin-bottom: 1.1rem;
}

.importacao-upload-panel {
    min-height: 7rem;
    margin-bottom: 1rem;
}

.importacao-upload-hint {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    color: var(--t-muted-text);
    font-size: 0.88rem;
}

.importacao-upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.importacao-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.importacao-preview-meta-text {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.04);
    color: var(--t-muted-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.importacao-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.importacao-summary-card {
    min-height: 8.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.importacao-balance-panel {
    margin-bottom: 1rem;
}

.importacao-preview-table .ui-datatable-data > tr > td {
    vertical-align: middle;
}

body[class*="theme-dark-"] .importacao-extrato-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(var(--t-accent-rgb, 255, 255, 255), 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

body[class*="theme-dark-"] .importacao-chip,
body[class*="theme-dark-"] .importacao-preview-meta-text,
body[class*="theme-dark-"] .importacao-rule-item,
body[class*="theme-dark-"] .importacao-upload-hint {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

body[class*="theme-dark-"] .importacao-chip {
    color: var(--text-color, #f8fafc);
}

@media (max-width: 992px) {
    .importacao-extrato-hero,
    .importacao-preview-header {
        flex-direction: column;
    }

    .importacao-extrato-hero-actions,
    .importacao-upload-actions {
        justify-content: flex-start;
    }

    .importacao-extrato-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .importacao-extrato-hero {
        padding: 1.2rem 1.15rem;
    }

    .importacao-upload-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .importacao-upload-actions {
        flex-direction: column;
    }

    .importacao-upload-actions .ui-button {
        width: 100%;
    }
}

.theme-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    border-radius: 18px;
    background: var(--surface-card, #ffffff);
}

.sindicato-logo-panel {
    margin-bottom: 0;
}

.sindicato-api-panel {
    margin-bottom: 0;
}

.sindicato-logo-preview {
    width: 4.75rem;
    height: 4.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.sindicato-logo-preview-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.api-key-meta-grid .theme-upload-item {
    height: 100%;
}

.api-key-meta-card {
    min-height: 5.75rem;
}

.api-key-secret-card {
    align-items: flex-start;
}

.api-key-secret-input {
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0.02em;
}

.api-key-secret-input.ui-inputfield,
.api-key-secret-input .ui-inputfield,
.api-key-secret-input textarea,
textarea.api-key-secret-input {
    font-family: "Consolas", "Courier New", monospace;
    line-height: 1.55;
}

.sindicato-api-empty-state {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.theme-day-card {
    text-align: center;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    margin-bottom: 0.75rem;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
}

.theme-day-card-title {
    color: var(--t-contrast-text);
}

.theme-day-card-date {
    color: var(--t-muted-text);
}

.theme-day-card--today {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
    border-color: transparent;
}

.theme-day-card--today,
.theme-day-card--today .theme-day-card-title,
.theme-day-card--today .theme-day-card-date {
    color: var(--t-accent-contrast) !important;
}

.theme-slot-card {
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface-card, #ffffff);
}

.theme-slot-card--scheduled {
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.16);
}

.theme-slot-card--blocked {
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.14);
}

.theme-log-item {
    border-left: 3px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.55);
    border-radius: 0 14px 14px 0;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    padding: 0.7rem 0.85rem;
}

.theme-log-item--success {
    border-left-color: rgba(22, 163, 74, 0.7);
    background: rgba(22, 163, 74, 0.08);
}

.theme-log-item--danger {
    border-left-color: rgba(220, 38, 38, 0.7);
    background: rgba(220, 38, 38, 0.08);
}

.theme-metric-card {
    height: 100%;
}

.theme-highlight-card {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
}

.theme-highlight-card,
.theme-highlight-card .text-white,
.theme-highlight-card .text-white-alpha-80 {
    color: #ffffff !important;
}

body.theme-dark-black .theme-highlight-card,
body.theme-dark-black .theme-highlight-card .text-white,
body.theme-dark-black .theme-highlight-card .text-white-alpha-80 {
    color: #111111 !important;
}

body.theme-dark-violet .text-900,
body.theme-dark-violet .text-800,
body.theme-dark-violet .text-700,
body.theme-dark-violet .text-600,
body.theme-dark-teal .text-900,
body.theme-dark-teal .text-800,
body.theme-dark-teal .text-700,
body.theme-dark-teal .text-600,
body.theme-dark-black .text-900,
body.theme-dark-black .text-800,
body.theme-dark-black .text-700,
body.theme-dark-black .text-600,
body.theme-dark-ember .text-900,
body.theme-dark-ember .text-800,
body.theme-dark-ember .text-700,
body.theme-dark-ember .text-600 {
    color: var(--text-color) !important;
}

body.theme-dark-violet .text-500,
body.theme-dark-violet .text-400,
body.theme-dark-teal .text-500,
body.theme-dark-teal .text-400,
body.theme-dark-black .text-500,
body.theme-dark-black .text-400,
body.theme-dark-ember .text-500,
body.theme-dark-ember .text-400 {
    color: var(--text-color-secondary) !important;
}

/* ══════════════════════════════════════════════════════════════════
   PALETAS DE TEMAS
   Cada tema define variáveis  --t-*  (controle próprio do layout)
   e sobrescreve variáveis PrimeFaces/PrimeFlex  --surface-*, --primary-*
   ══════════════════════════════════════════════════════════════════ */

/* ── 1. SLATE — Corporativo (padrão) ───────────────────────────── */
body.theme-slate {
    --t-accent:           #334155;
    --t-accent-rgb:       51, 65, 85;
    --t-accent-end:       #1e293b;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #f1f5f9;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(51,65,85,0.07);
    --t-sidebar-bg:       #0f172a;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    /* PrimeFaces */
    --primary-color:         #334155;
    --primary-dark-color:    #1e293b;
    --primary-darker-color:  #0f172a;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(51,65,85,0.25);
    --highlight-bg: rgba(51,65,85,0.12);
    --t-section-bg:        rgba(51,65,85,0.04);
    --t-section-toggle-bg: rgba(51,65,85,0.07);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* ── 2. INDIGO ──────────────────────────────────────────────────── */
body.theme-indigo {
    --t-accent:           #4f46e5;
    --t-accent-rgb:       79, 70, 229;
    --t-accent-end:       #7c3aed;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #f5f3ff;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(79,70,229,0.07);
    --t-sidebar-bg:       #1e1b4b;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    /* PrimeFaces */
    --primary-color:         #4f46e5;
    --primary-dark-color:    #4338ca;
    --primary-darker-color:  #3730a3;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(79,70,229,0.25);
    --highlight-bg: rgba(79,70,229,0.12);
    --t-section-bg:        rgba(79,70,229,0.05);
    --t-section-toggle-bg: rgba(79,70,229,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* ── 3. EMERALD ─────────────────────────────────────────────────── */
body.theme-emerald {
    --t-accent:           #059669;
    --t-accent-rgb:       5, 150, 105;
    --t-accent-end:       #0d9488;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #ecfdf5;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(5,150,105,0.07);
    --t-sidebar-bg:       #064e3b;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    /* PrimeFaces */
    --primary-color:         #059669;
    --primary-dark-color:    #047857;
    --primary-darker-color:  #065f46;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(5,150,105,0.25);
    --highlight-bg: rgba(5,150,105,0.12);
    --t-section-bg:        rgba(5,150,105,0.05);
    --t-section-toggle-bg: rgba(5,150,105,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* ── 4. ROSE ────────────────────────────────────────────────────── */
body.theme-rose {
    --t-accent:           #e11d48;
    --t-accent-rgb:       225, 29, 72;
    --t-accent-end:       #be185d;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fff1f2;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(225,29,72,0.07);
    --t-sidebar-bg:       #881337;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    /* PrimeFaces */
    --primary-color:         #e11d48;
    --primary-dark-color:    #be123c;
    --primary-darker-color:  #9f1239;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(225,29,72,0.25);
    --highlight-bg: rgba(225,29,72,0.12);
    --t-section-bg:        rgba(225,29,72,0.05);
    --t-section-toggle-bg: rgba(225,29,72,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* ── 5. AMBER ───────────────────────────────────────────────────── */
body.theme-amber {
    --t-accent:           #b45309;
    --t-accent-rgb:       180, 83, 9;
    --t-accent-end:       #c2410c;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fffbeb;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(180,83,9,0.07);
    --t-sidebar-bg:       #78350f;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    /* PrimeFaces */
    --primary-color:         #b45309;
    --primary-dark-color:    #92400e;
    --primary-darker-color:  #78350f;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(180,83,9,0.25);
    --highlight-bg: rgba(180,83,9,0.12);
    --t-section-bg:        rgba(180,83,9,0.05);
    --t-section-toggle-bg: rgba(180,83,9,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* ── 6. CYAN ────────────────────────────────────────────────────── */
body.theme-cyan {
    --t-accent:           #0891b2;
    --t-accent-rgb:       8, 145, 178;
    --t-accent-end:       #1d4ed8;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #ecfeff;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(8,145,178,0.07);
    --t-sidebar-bg:       #164e63;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    /* PrimeFaces */
    --primary-color:         #0891b2;
    --primary-dark-color:    #0e7490;
    --primary-darker-color:  #155e75;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(8,145,178,0.25);
    --highlight-bg: rgba(8,145,178,0.12);
    --t-section-bg:        rgba(8,145,178,0.05);
    --t-section-toggle-bg: rgba(8,145,178,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 7. VIOLET ------------------------------------------------------------ */
body.theme-violet {
    --t-accent:           #7c3aed;
    --t-accent-rgb:       124, 58, 237;
    --t-accent-end:       #a855f7;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #faf5ff;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(124,58,237,0.08);
    --t-sidebar-bg:       #3b0764;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #7c3aed;
    --primary-dark-color:    #6d28d9;
    --primary-darker-color:  #5b21b6;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(124,58,237,0.24);
    --highlight-bg: rgba(124,58,237,0.12);
    --t-section-bg:        rgba(124,58,237,0.05);
    --t-section-toggle-bg: rgba(124,58,237,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 8. TEAL -------------------------------------------------------------- */
body.theme-teal {
    --t-accent:           #0f766e;
    --t-accent-rgb:       15, 118, 110;
    --t-accent-end:       #14b8a6;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #f0fdfa;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(15,118,110,0.08);
    --t-sidebar-bg:       #042f2e;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #0f766e;
    --primary-dark-color:    #115e59;
    --primary-darker-color:  #134e4a;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(15,118,110,0.24);
    --highlight-bg: rgba(15,118,110,0.12);
    --t-section-bg:        rgba(15,118,110,0.05);
    --t-section-toggle-bg: rgba(15,118,110,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 9. CORAL ------------------------------------------------------------- */
body.theme-coral {
    --t-accent:           #f97316;
    --t-accent-rgb:       249, 115, 22;
    --t-accent-end:       #ef4444;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fff7ed;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(249,115,22,0.08);
    --t-sidebar-bg:       #7c2d12;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #f97316;
    --primary-dark-color:    #ea580c;
    --primary-darker-color:  #c2410c;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(249,115,22,0.24);
    --highlight-bg: rgba(249,115,22,0.12);
    --t-section-bg:        rgba(249,115,22,0.05);
    --t-section-toggle-bg: rgba(249,115,22,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 10. SUNSET ----------------------------------------------------------- */
body.theme-sunset {
    --t-accent:           #dc2626;
    --t-accent-rgb:       220, 38, 38;
    --t-accent-end:       #f59e0b;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fff7ed;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(220,38,38,0.08);
    --t-sidebar-bg:       #7f1d1d;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #dc2626;
    --primary-dark-color:    #b91c1c;
    --primary-darker-color:  #991b1b;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(220,38,38,0.24);
    --highlight-bg: rgba(220,38,38,0.12);
    --t-section-bg:        rgba(220,38,38,0.05);
    --t-section-toggle-bg: rgba(220,38,38,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 11. LIME ------------------------------------------------------------- */
body.theme-lime {
    --t-accent:           #65a30d;
    --t-accent-rgb:       101, 163, 13;
    --t-accent-end:       #16a34a;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #f7fee7;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(101,163,13,0.08);
    --t-sidebar-bg:       #365314;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #65a30d;
    --primary-dark-color:    #4d7c0f;
    --primary-darker-color:  #3f6212;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(101,163,13,0.24);
    --highlight-bg: rgba(101,163,13,0.12);
    --t-section-bg:        rgba(101,163,13,0.05);
    --t-section-toggle-bg: rgba(101,163,13,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 12. ORCHID ----------------------------------------------------------- */
body.theme-orchid {
    --t-accent:           #c026d3;
    --t-accent-rgb:       192, 38, 211;
    --t-accent-end:       #9333ea;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fdf4ff;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(192,38,211,0.08);
    --t-sidebar-bg:       #581c87;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #c026d3;
    --primary-dark-color:    #a21caf;
    --primary-darker-color:  #86198f;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(192,38,211,0.24);
    --highlight-bg: rgba(192,38,211,0.12);
    --t-section-bg:        rgba(192,38,211,0.05);
    --t-section-toggle-bg: rgba(192,38,211,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 14. OCEAN ------------------------------------------------------------ */
body.theme-ocean {
    --t-accent:           #0369a1;
    --t-accent-rgb:       3, 105, 161;
    --t-accent-end:       #2563eb;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #eff6ff;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(3,105,161,0.08);
    --t-sidebar-bg:       #082f49;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #0369a1;
    --primary-dark-color:    #075985;
    --primary-darker-color:  #0c4a6e;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(3,105,161,0.24);
    --highlight-bg: rgba(3,105,161,0.12);
    --t-section-bg:        rgba(3,105,161,0.05);
    --t-section-toggle-bg: rgba(3,105,161,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 16. MOCHA ------------------------------------------------------------ */
body.theme-mocha {
    --t-accent:           #92400e;
    --t-accent-rgb:       146, 64, 14;
    --t-accent-end:       #b45309;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fef7ed;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(146,64,14,0.08);
    --t-sidebar-bg:       #431407;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #92400e;
    --primary-dark-color:    #7c2d12;
    --primary-darker-color:  #6b210a;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(146,64,14,0.24);
    --highlight-bg: rgba(146,64,14,0.12);
    --t-section-bg:        rgba(146,64,14,0.05);
    --t-section-toggle-bg: rgba(146,64,14,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 19. SAGE ------------------------------------------------------------ */
body.theme-sage {
    --t-accent:           #6b8f71;
    --t-accent-rgb:       107, 143, 113;
    --t-accent-end:       #84cc16;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #f7faf7;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(107,143,113,0.08);
    --t-sidebar-bg:       #334155;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #6b8f71;
    --primary-dark-color:    #5f7f65;
    --primary-darker-color:  #4b6350;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(107,143,113,0.24);
    --highlight-bg: rgba(107,143,113,0.12);
    --t-section-bg:        rgba(107,143,113,0.05);
    --t-section-toggle-bg: rgba(107,143,113,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 25. GRAPHITE -------------------------------------------------------- */
body.theme-graphite {
    --t-accent:           #3f3f46;
    --t-accent-rgb:       63, 63, 70;
    --t-accent-end:       #52525b;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fafaf9;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(63,63,70,0.08);
    --t-sidebar-bg:       #18181b;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #3f3f46;
    --primary-dark-color:    #27272a;
    --primary-darker-color:  #18181b;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(63,63,70,0.22);
    --highlight-bg: rgba(63,63,70,0.10);
    --t-section-bg:        rgba(63,63,70,0.04);
    --t-section-toggle-bg: rgba(63,63,70,0.08);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 26. BLUSH ----------------------------------------------------------- */
body.theme-blush {
    --t-accent:           #ec4899;
    --t-accent-rgb:       236, 72, 153;
    --t-accent-end:       #f9a8d4;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #fdf2f8;
    --t-card:             #ffffff;
    --t-card-shadow:      0 10px 40px rgba(236,72,153,0.08);
    --t-sidebar-bg:       #831843;
    --t-sidebar-text:     rgba(255,255,255,0.60);
    --t-sidebar-hover:    rgba(255,255,255,0.10);
    --t-sidebar-hover-text: #ffffff;
    --primary-color:         #ec4899;
    --primary-dark-color:    #db2777;
    --primary-darker-color:  #be185d;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(236,72,153,0.24);
    --highlight-bg: rgba(236,72,153,0.12);
    --t-section-bg:        rgba(236,72,153,0.05);
    --t-section-toggle-bg: rgba(236,72,153,0.09);
    --text-color:          #0f172a;
    --text-color-secondary:#64748b;
}

/* -- 27. DARK VIOLET ---------------------------------------------------- */
body.theme-dark-violet {
    --t-accent:           #a78bfa;
    --t-accent-rgb:       167, 139, 250;
    --t-accent-end:       #818cf8;
    --t-accent-contrast:  #1e1b4b;
    --t-body-bg:          #0d0920;
    --t-card:             #160f30;
    --t-card-shadow:      0 10px 40px rgba(0,0,0,0.55);
    --t-sidebar-bg:       #090616;
    --t-sidebar-text:     rgba(167,139,250,0.65);
    --t-sidebar-hover:    rgba(167,139,250,0.12);
    --t-sidebar-hover-text: #ede9fe;
    /* PrimeFaces */
    --primary-color:         #a78bfa;
    --primary-dark-color:    #8b5cf6;
    --primary-darker-color:  #7c3aed;
    --primary-text-color:    #1e1b4b;
    --focus-ring: 0 0 0 0.2rem rgba(167,139,250,0.3);
    --highlight-bg: rgba(167,139,250,0.15);
    --t-section-bg:        rgba(167,139,250,0.07);
    --t-section-toggle-bg: rgba(167,139,250,0.12);
    /* Superfícies escuras — PrimeFlex text-N e surface-* adaptam */
    --surface-0:    #0d0920;
    --surface-50:   #160f30;
    --surface-100:  #1e1645;
    --surface-200:  #2e1f5e;
    --surface-300:  #3d2c7a;
    --surface-400:  #6d5aab;
    --surface-500:  #9d8cd4;
    --surface-600:  #c4b9f0;
    --surface-700:  #ddd6fe;
    --surface-800:  #ede9fe;
    --surface-900:  #f5f3ff;
    --surface-card: #160f30;
    --surface-border: #2e1f5e;
    --surface-ground: #0d0920;
    --text-color:           #ede9fe;
    --text-color-secondary: #c4b9f0;
}

/* -- 28. DARK TEAL ------------------------------------------------------ */
body.theme-dark-teal {
    --t-accent:           #2dd4bf;
    --t-accent-rgb:       45, 212, 191;
    --t-accent-end:       #06b6d4;
    --t-accent-contrast:  #042f2e;
    --t-body-bg:          #030d0c;
    --t-card:             #071918;
    --t-card-shadow:      0 10px 40px rgba(0,0,0,0.55);
    --t-sidebar-bg:       #020a09;
    --t-sidebar-text:     rgba(45,212,191,0.65);
    --t-sidebar-hover:    rgba(45,212,191,0.10);
    --t-sidebar-hover-text: #f0fdfa;
    /* PrimeFaces */
    --primary-color:         #2dd4bf;
    --primary-dark-color:    #14b8a6;
    --primary-darker-color:  #0d9488;
    --primary-text-color:    #042f2e;
    --focus-ring: 0 0 0 0.2rem rgba(45,212,191,0.25);
    --highlight-bg: rgba(45,212,191,0.12);
    --t-section-bg:        rgba(45,212,191,0.06);
    --t-section-toggle-bg: rgba(45,212,191,0.10);
    /* Superfícies escuras */
    --surface-0:    #030d0c;
    --surface-50:   #071918;
    --surface-100:  #0a2422;
    --surface-200:  #0f3d3a;
    --surface-300:  #155955;
    --surface-400:  #2a8a84;
    --surface-500:  #6bbbb4;
    --surface-600:  #99d6d1;
    --surface-700:  #ccfbf1;
    --surface-800:  #e0faf5;
    --surface-900:  #f0fdfa;
    --surface-card: #071918;
    --surface-border: #0f3d3a;
    --surface-ground: #030d0c;
    --text-color:           #f0fdfa;
    --text-color-secondary: #99d6d1;
}

/* -- 29. DARK BLACK ----------------------------------------------------- */
body.theme-dark-black {
    --t-accent:           #d4d4d8;
    --t-accent-rgb:       212, 212, 216;
    --t-accent-end:       #a1a1aa;
    --t-accent-contrast:  #0a0a0a;
    --t-body-bg:          #000000;
    --t-card:             #111111;
    --t-card-shadow:      0 10px 40px rgba(0,0,0,0.8);
    --t-sidebar-bg:       #080808;
    --t-sidebar-text:     rgba(212,212,216,0.55);
    --t-sidebar-hover:    rgba(255,255,255,0.07);
    --t-sidebar-hover-text: #fafafa;
    /* PrimeFaces */
    --primary-color:         #d4d4d8;
    --primary-dark-color:    #a1a1aa;
    --primary-darker-color:  #71717a;
    --primary-text-color:    #0a0a0a;
    --focus-ring: 0 0 0 0.2rem rgba(255,255,255,0.10);
    --highlight-bg: rgba(255,255,255,0.07);
    --t-section-bg:        rgba(255,255,255,0.025);
    --t-section-toggle-bg: rgba(255,255,255,0.04);
    /* Superfícies escuras */
    --surface-0:    #000000;
    --surface-50:   #0a0a0a;
    --surface-100:  #111111;
    --surface-200:  #1a1a1a;
    --surface-300:  #222222;
    --surface-400:  #333333;
    --surface-500:  #52525b;
    --surface-600:  #71717a;
    --surface-700:  #a1a1aa;
    --surface-800:  #d4d4d8;
    --surface-900:  #fafafa;
    --surface-card: #111111;
    --surface-border: #222222;
    --surface-ground: #000000;
    --text-color:           #fafafa;
    --text-color-secondary: #a1a1aa;
}

/* -- 31. DARK EMBER ----------------------------------------------------- */
body.theme-dark-ember {
    --t-accent:           #f97316;
    --t-accent-rgb:       249, 115, 22;
    --t-accent-end:       #ef4444;
    --t-accent-contrast:  #ffffff;
    --t-body-bg:          #120806;
    --t-card:             #1b0f0b;
    --t-card-shadow:      0 10px 40px rgba(0,0,0,0.62);
    --t-sidebar-bg:       #0e0605;
    --t-sidebar-text:     rgba(251,146,60,0.68);
    --t-sidebar-hover:    rgba(249,115,22,0.12);
    --t-sidebar-hover-text: #fff7ed;
    --primary-color:         #f97316;
    --primary-dark-color:    #ea580c;
    --primary-darker-color:  #c2410c;
    --primary-text-color:    #ffffff;
    --focus-ring: 0 0 0 0.2rem rgba(249,115,22,0.28);
    --highlight-bg: rgba(249,115,22,0.14);
    --t-section-bg:        rgba(249,115,22,0.07);
    --t-section-toggle-bg: rgba(249,115,22,0.11);
    --surface-0:    #120806;
    --surface-50:   #1b0f0b;
    --surface-100:  #261510;
    --surface-200:  #3b2018;
    --surface-300:  #5a3126;
    --surface-400:  #8b513f;
    --surface-500:  #c77d5f;
    --surface-600:  #e4ab8e;
    --surface-700:  #fed7aa;
    --surface-800:  #ffedd5;
    --surface-900:  #fff7ed;
    --surface-card: #1b0f0b;
    --surface-border: #3b2018;
    --surface-ground: #120806;
    --text-color:           #fff7ed;
    --text-color-secondary: #fdba74;
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINAS DE LOGIN / RECUPERAÇÃO DE SENHA
   ══════════════════════════════════════════════════════════════════ */

body.login-page {
    background-color: var(--t-body-bg, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: var(--t-card, #ffffff);
    border-radius: 24px;
    box-shadow: var(--t-card-shadow, 0 20px 40px rgba(0,0,0,0.08));
    overflow: hidden;
}

.login-image-side {
    flex: 1;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}
/* dark-black: texto escuro no side colorido (cinza claro) */
body.theme-dark-black .login-image-side { color: #111111; }

.login-image-side i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.login-form-side {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--t-card, #ffffff);
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}
.input-icon-wrapper i.left-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-secondary, #94a3b8);
    z-index: 2;
}

.ui-inputfield.login-input {
    padding: 1rem 1rem 1rem 2.8rem !important;
    border-radius: 10px !important;
    border: 1px solid var(--surface-border, #e2e8f0) !important;
    width: 100% !important;
    background-color: var(--surface-ground, #f8fafc) !important;
    color: var(--text-color, #334155) !important;
    box-shadow: none !important;
    transition: all 0.3s !important;
}
.ui-inputfield.login-input:focus {
    border-color: var(--t-accent) !important;
    background-color: var(--surface-card, #ffffff) !important;
    box-shadow: var(--focus-ring) !important;
}
.ui-password { width: 100% !important; }

.btn-login {
    padding: 1rem !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
    transition: box-shadow 0.2s, transform 0.15s !important;
}
body.theme-dark-black .btn-login { color: #0a0a0a !important; }
.btn-login:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.28) !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        margin: 1.5rem;
        border-radius: 16px;
    }
    .login-image-side { padding: 2.5rem 1.5rem; }
    .login-form-side  { padding: 2.5rem 1.5rem; }
}

body.login-page {
    position: relative;
    overflow-x: hidden;
}

.auth-shell {
    position: relative;
    width: min(1180px, 100%);
    padding: clamp(1rem, 2vw, 2rem);
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.65;
}

.auth-shell::before {
    top: 1rem;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(var(--t-accent-rgb), 0.24);
}

.auth-shell::after {
    right: 0;
    bottom: 0;
    width: 18rem;
    height: 18rem;
    background: rgba(var(--t-accent-rgb), 0.14);
}

.auth-card {
    position: relative;
    max-width: none;
    min-height: 42rem;
    border-radius: 32px;
    border: 1px solid rgba(var(--t-accent-rgb), 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.86) 100%);
    box-shadow: 0 34px 100px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 36%);
    pointer-events: none;
}

.auth-stage,
.auth-form-panel {
    position: relative;
    z-index: 1;
}

.auth-stage {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: clamp(2.4rem, 4vw, 4rem);
    overflow: hidden;
}

.auth-stage--minimal {
    justify-content: center;
}

.auth-stage::before,
.auth-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.auth-stage::before {
    inset: 1.4rem auto auto 1.4rem;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-stage::after {
    right: -3.5rem;
    bottom: -4rem;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.auth-stage > * {
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.44rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-kicker--soft {
    background: rgba(var(--t-accent-rgb), 0.10);
    border-color: rgba(var(--t-accent-rgb), 0.14);
    color: var(--t-accent, #334155);
}

.auth-stage-mark {
    width: 4.8rem;
    height: 4.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.45rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    color: #ffffff;
    font-size: 1.75rem;
}

.auth-stage .auth-stage-mark i,
.auth-stage .auth-chip i,
.auth-stage .auth-feature-icon i {
    margin: 0;
    opacity: 1;
}

.auth-stage .auth-stage-mark i {
    font-size: 1.75rem;
}

.auth-stage .auth-chip i {
    font-size: 0.92rem;
}

.auth-stage .auth-feature-icon i {
    font-size: 1.05rem;
}

.auth-stage-title {
    margin: 1.5rem 0 0.85rem;
    color: #ffffff;
    font-size: clamp(2.35rem, 4vw, 3.5rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.auth-stage-copy {
    margin: 0 0 1.5rem;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.75;
}

.auth-stage--minimal .auth-stage-copy {
    max-width: 24rem;
}

.auth-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.88rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-feature-list {
    display: grid;
    gap: 0.9rem;
    width: 100%;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-feature-icon {
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.auth-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.auth-feature-copy strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.auth-feature-copy span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.83rem;
    line-height: 1.55;
}

.auth-form-panel {
    padding: clamp(2.4rem, 4vw, 4rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.90) 100%);
}

.auth-form-header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.auth-form-title {
    margin: 0;
    color: var(--text-color, #0f172a);
    font-size: clamp(1.95rem, 2.5vw, 2.65rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.auth-form-copy {
    margin: 0;
    max-width: 32rem;
    color: var(--text-color-secondary, #64748b);
    line-height: 1.65;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.auth-field {
    display: grid;
    gap: 0.15rem;
}

.auth-form-panel .ui-growl {
    position: static;
    width: 100%;
    margin: 0 0 0.35rem;
}

.auth-form-panel .ui-growl-item-container {
    border-radius: 18px;
}

.auth-form-panel .ui-password,
.auth-form-panel .ui-password input {
    width: 100% !important;
}

.auth-form-panel .ui-password .ui-password-icon {
    right: 1rem;
    color: var(--text-color-secondary, #64748b);
}

.auth-form-panel .ui-inputfield.login-input {
    min-height: 3.65rem;
    border-radius: 16px !important;
    border-color: rgba(var(--t-accent-rgb), 0.12) !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

.auth-form-panel .ui-inputfield.login-input:hover {
    border-color: rgba(var(--t-accent-rgb), 0.18) !important;
}

.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-inline-note {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-inline-link {
    color: var(--t-accent, #334155);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-inline-link--muted {
    color: var(--text-color-secondary, #64748b);
    pointer-events: none;
    text-decoration: none;
}

.auth-submit {
    min-height: 3.7rem;
    margin-top: 0.25rem;
    border-radius: 18px !important;
    font-size: 0.98rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider {
    position: relative;
    margin: 0.8rem 0 0.1rem;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(var(--t-accent-rgb), 0.12);
}

.auth-divider span {
    position: relative;
    padding: 0 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.90) 100%);
    color: var(--text-color-secondary, #64748b);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-switch-links {
    display: grid;
    gap: 0.8rem;
}

.auth-switch-link {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    text-decoration: none;
    background: rgba(var(--t-accent-rgb), 0.05);
    border: 1px solid rgba(var(--t-accent-rgb), 0.10);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-switch-link:hover {
    transform: translateY(-1px);
    background: rgba(var(--t-accent-rgb), 0.08);
    border-color: rgba(var(--t-accent-rgb), 0.16);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.auth-switch-link--secondary {
    background: rgba(15, 23, 42, 0.03);
}

.auth-switch-link i {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(var(--t-accent-rgb), 0.10);
    color: var(--t-accent, #334155);
}

.auth-switch-link span {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.auth-switch-link strong {
    color: var(--text-color, #0f172a);
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-switch-link small {
    color: var(--text-color-secondary, #64748b);
    line-height: 1.5;
}

.auth-form .text-center .auth-inline-link {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 960px) {
    .auth-card {
        min-height: auto;
        flex-direction: column;
    }

    .auth-stage,
    .auth-form-panel {
        padding: 2rem 1.7rem;
    }

    .auth-stage-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 0.9rem;
    }

    .auth-stage,
    .auth-form-panel {
        padding: 1.45rem;
    }

    .auth-feature-item,
    .auth-switch-link {
        padding: 0.9rem;
    }

    .auth-chip-row,
    .auth-link-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-stage-title {
        font-size: 2.15rem;
    }
}

/* ══════════════════════════════════════════════════════════════════
   DIALOG DE SELEÇÃO DE TEMA
   ══════════════════════════════════════════════════════════════════ */

.dialog-tema .ui-dialog-content {
    padding-top: 0.75rem;
}

.tema-header-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(var(--t-accent-rgb), 0.10), rgba(var(--t-accent-rgb), 0.03));
    border: 1px solid rgba(var(--t-accent-rgb), 0.12);
}

.tema-header-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-accent, #334155);
    background: rgba(var(--t-accent-rgb), 0.10);
}

.tema-header-title {
    margin: 0.85rem 0 0.4rem;
    font-size: 1.3rem;
    line-height: 1.15;
    color: var(--text-color, #0f172a);
}

.tema-header-copy {
    margin: 0;
    max-width: 38rem;
    color: var(--text-color-secondary, #64748b);
    line-height: 1.55;
}

.tema-current-badge {
    min-width: 10rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(var(--t-accent-rgb), 0.10);
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.tema-current-label,
.tema-current-name {
    display: block;
}

.tema-current-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-color-secondary, #64748b);
    margin-bottom: 0.3rem;
}

.tema-current-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
    text-transform: capitalize;
}

.tema-grid {
    display: grid;
    gap: 0.9rem;
}

.tema-grid--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tema-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 100%;
    padding: 0.95rem;
    text-decoration: none;
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,0.22);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 14px 32px rgba(15,23,42,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tema-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15,23,42,0.10);
    border-color: rgba(var(--t-accent-rgb), 0.24);
}

.tema-card.ativo {
    border-color: rgba(var(--t-accent-rgb), 0.45);
    box-shadow:
        0 0 0 3px rgba(var(--t-accent-rgb), 0.12),
        0 18px 38px rgba(15,23,42,0.10);
}

.tema-card-preview {
    position: relative;
    min-height: 5.4rem;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tema-a), var(--tema-b));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.tema-card-preview::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 0.7rem;
    width: 58%;
    height: calc(100% - 1.4rem);
    border-radius: 12px;
    background: var(--tema-surface);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.58),
        0 10px 20px rgba(15,23,42,0.10);
}

.tema-card-chip,
.tema-card-line,
.tema-card-orb {
    position: absolute;
    z-index: 1;
}

.tema-card-chip {
    top: 1rem;
    left: 1rem;
    width: 2.4rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tema-a), var(--tema-b));
}

.tema-card-line {
    left: 1rem;
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.14);
}

.tema-card-line--strong {
    top: 2rem;
    width: 56%;
    background: rgba(15,23,42,0.22);
}

.tema-card-line:not(.tema-card-line--strong):not(.tema-card-line--short) {
    top: 2.85rem;
    width: 48%;
}

.tema-card-line--short {
    top: 3.65rem;
    width: 34%;
}

.tema-card-orb {
    right: 0.95rem;
    bottom: 0.95rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(255,255,255,0.38);
    backdrop-filter: blur(10px);
}

.tema-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.tema-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-color, #0f172a);
}

.tema-card-subtitle {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-accent, #334155);
}

.tema-card-description {
    color: var(--text-color-secondary, #64748b);
    line-height: 1.45;
    font-size: 0.86rem;
}

.tema-card-check {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--t-accent, #334155);
    color: var(--t-accent-contrast, #ffffff);
    box-shadow: 0 8px 20px rgba(var(--t-accent-rgb), 0.28);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tema-card.ativo .tema-card-check {
    opacity: 1;
    transform: scale(1);
}

.appearance-page .card-moderno {
    height: 100%;
}

.appearance-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.appearance-hero::before {
    content: "";
    position: absolute;
    inset: -18% auto auto 52%;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 68%);
    pointer-events: none;
}

.appearance-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
}

.appearance-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.05;
    color: #ffffff;
}

.appearance-copy {
    margin: 0;
    max-width: 34rem;
    line-height: 1.65;
    font-size: 1rem;
}

.appearance-feature-list {
    display: grid;
    gap: 0.95rem;
}

.appearance-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
}

.appearance-feature .theme-icon-box {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.18);
}

.appearance-feature-title,
.appearance-feature-copy {
    display: block;
}

.appearance-feature-title {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.appearance-feature-copy {
    color: rgba(255,255,255,0.76);
    line-height: 1.5;
}

.appearance-current-panel {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
}

.appearance-current-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
}

.appearance-current-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: capitalize;
}

.appearance-hero-actions {
    margin-top: auto;
}

.appearance-gallery-card {
    padding: 1.5rem;
}

.appearance-gallery-header {
    margin-bottom: 1.1rem;
}

.appearance-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.appearance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb), 0.07);
    border: 1px solid rgba(var(--t-accent-rgb), 0.12);
    color: var(--text-color, #0f172a);
    font-size: 0.82rem;
    font-weight: 700;
}

.appearance-header-panel {
    margin-bottom: 1.4rem;
}

.tema-grid--page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .tema-grid--cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tema-header-panel {
        flex-direction: column;
    }

    .tema-current-badge {
        width: 100%;
        min-width: 0;
    }

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

    .appearance-hero {
        padding: 1.5rem;
    }
}

@media (max-width: 520px) {
    .tema-grid--cards {
        grid-template-columns: 1fr;
    }

    .appearance-gallery-card {
        padding: 1.1rem;
    }

    .appearance-feature {
        grid-template-columns: 1fr;
    }
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(var(--t-accent-rgb), 0.18), transparent 36%),
        linear-gradient(135deg, rgba(var(--t-accent-rgb), 0.08), rgba(255, 255, 255, 0.92));
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: auto -3rem -7rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--t-accent-rgb), 0.18), transparent 68%);
    pointer-events: none;
}

.dashboard-hero-copy,
.dashboard-hero-side {
    position: relative;
    z-index: 1;
}

.dashboard-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-eyebrow,
.dashboard-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb), 0.1);
    color: var(--t-accent, #334155);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-hero-title,
.dashboard-panel-title {
    margin: 0;
    color: var(--text-color, #0f172a);
}

.dashboard-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.dashboard-hero-subtitle {
    margin: 0;
    max-width: 48rem;
    color: var(--text-color-secondary, #64748b);
    font-size: 1.02rem;
    line-height: 1.7;
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(var(--t-accent-rgb), 0.12);
    color: var(--text-color, #0f172a);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

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

.dashboard-glance-card,
.dashboard-kpi-card,
.dashboard-mini-metric,
.dashboard-stat-box {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--t-accent-rgb), 0.1);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.dashboard-glance-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
}

.dashboard-glance-label,
.dashboard-kpi-label,
.dashboard-mini-label,
.dashboard-stat-box span {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-glance-card strong,
.dashboard-stat-box strong {
    color: var(--text-color, #0f172a);
    font-size: 1.5rem;
    line-height: 1.1;
}

.dashboard-inline-note {
    font-size: 0.95rem;
    line-height: 1.65;
}

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

.dashboard-kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.35rem;
    min-height: 12.4rem;
}

.dashboard-kpi-icon {
    align-self: flex-start;
}

.dashboard-kpi-value {
    color: var(--text-color, #0f172a);
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.05;
}

.dashboard-kpi-meta,
.dashboard-caption,
.dashboard-progress-copy,
.dashboard-list-copy span,
.dashboard-list-copy small,
.dashboard-list-value small,
.dashboard-stat-box small,
.dashboard-balance-item span,
.dashboard-ranking-copy small,
.dashboard-empty-state {
    color: var(--text-color-secondary, #64748b);
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.45rem;
    height: 100%;
}

.dashboard-panel-stack {
    height: auto;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-panel-title {
    font-size: 1.45rem;
    line-height: 1.1;
}

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

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

.dashboard-mini-metric,
.dashboard-stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
}

.dashboard-mini-metric strong {
    color: var(--text-color, #0f172a);
    font-size: 1.15rem;
}

.dashboard-chart-shell {
    position: relative;
    min-height: 21rem;
}

.dashboard-alert-list,
.dashboard-balance-list,
.dashboard-distribution-list,
.dashboard-ranking-list,
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-alert {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--t-accent-rgb), 0.12);
    background: rgba(var(--t-accent-rgb), 0.06);
}

.dashboard-alert strong,
.dashboard-balance-item strong,
.dashboard-list-copy strong,
.dashboard-list-value strong,
.dashboard-ranking-copy strong,
.dashboard-subpanel-title,
.dashboard-distribution-head strong {
    color: var(--text-color, #0f172a);
}

.dashboard-alert span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-color-secondary, #64748b);
    line-height: 1.55;
}

.dashboard-alert-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-alert--danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
}

.dashboard-alert--warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.18);
}

.dashboard-alert--success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.18);
}

.dashboard-alert--info {
    background: rgba(var(--t-accent-rgb), 0.08);
}

.dashboard-balance-item,
.dashboard-ranking-item,
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--t-accent-rgb), 0.1);
    background: rgba(var(--t-accent-rgb), 0.04);
}

.dashboard-list-item {
    justify-content: flex-start;
}

.dashboard-list-item--compact {
    padding: 0.85rem 0.95rem;
}

.dashboard-avatar,
.dashboard-list-avatar {
    flex-shrink: 0;
}

.dashboard-list-avatar {
    width: 2.75rem;
    height: 2.75rem;
}

.dashboard-list-copy,
.dashboard-ranking-copy,
.dashboard-list-value {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.dashboard-list-copy {
    min-width: 0;
    flex: 1;
}

.dashboard-list-value {
    align-items: flex-end;
    text-align: right;
}

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

.dashboard-subpanel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(var(--t-accent-rgb), 0.04);
    border: 1px solid rgba(var(--t-accent-rgb), 0.1);
}

.dashboard-subpanel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-juridico-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

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

.dashboard-juridico-progress,
.dashboard-juridico-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(var(--t-accent-rgb), 0.12);
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb), 0.08) 0%, rgba(var(--t-accent-rgb), 0.03) 100%);
}

.dashboard-juridico-metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-color-secondary, #64748b);
}

.dashboard-juridico-metric-value {
    color: var(--text-color, #0f172a);
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
}

.dashboard-juridico-metric small,
.dashboard-juridico-progress small,
.dashboard-juridico-chip {
    color: var(--text-color-secondary, #64748b);
}

.dashboard-juridico-chip-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dashboard-juridico-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-juridico-chip--success {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.12);
}

.dashboard-juridico-chip--warning {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.14);
}

.dashboard-progress-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(var(--t-accent-rgb), 0.05);
    border: 1px solid rgba(var(--t-accent-rgb), 0.1);
}

.dashboard-progress-head,
.dashboard-distribution-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.dashboard-progress-head strong,
.dashboard-distribution-head span,
.dashboard-ranking-total {
    color: var(--text-color, #0f172a);
    font-weight: 800;
}

.dashboard-progress-track {
    width: 100%;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb), 0.1);
    overflow: hidden;
}

.dashboard-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
}

.dashboard-donut-shell {
    position: relative;
    min-height: 16rem;
}

.dashboard-ranking-index {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(var(--t-accent-rgb), 0.12);
    color: var(--t-accent, #334155);
    font-weight: 800;
    flex-shrink: 0;
}

.dashboard-empty-state {
    padding: 1.1rem;
    border-radius: 18px;
    border: 1px dashed rgba(var(--t-accent-rgb), 0.18);
    background: rgba(var(--t-accent-rgb), 0.03);
    text-align: center;
    line-height: 1.6;
}

.dashboard-empty-state--compact {
    padding: 0.9rem;
    font-size: 0.92rem;
}

@media (max-width: 1280px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 920px) {
    .dashboard-mini-grid,
    .dashboard-stat-grid,
    .dashboard-dual-columns,
    .dashboard-hero-glance {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-header {
        flex-direction: column;
    }

    .dashboard-chart-shell,
    .dashboard-donut-shell {
        min-height: 14rem;
    }
}

@media (max-width: 640px) {
    .dashboard-hero,
    .dashboard-panel,
    .dashboard-kpi-card {
        padding: 1.2rem;
    }

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

    .dashboard-chip-row,
    .dashboard-hero-actions {
        flex-direction: column;
    }

    .dashboard-list-item,
    .dashboard-balance-item,
    .dashboard-ranking-item {
        align-items: flex-start;
    }

    .dashboard-list-value {
        align-items: flex-start;
        text-align: left;
    }
}

/* ------------------------------------------------------------------
   DARK THEME HARDENING
   Final compatibility pass for PrimeFaces surfaces and dashboard cards
   ------------------------------------------------------------------ */

body[class*="theme-dark-"] .ui-datatable,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tablewrapper,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-scrollable-header,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-scrollable-body,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-scrollable-footer,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-scrollable-header-box,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-scrollable-body table,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-scrollable-footer-box,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-data,
body[class*="theme-dark-"] .ui-datatable table,
body[class*="theme-dark-"] .ui-datatable table.ui-widget-content,
body[class*="theme-dark-"] .ui-datatable tbody.ui-widget-content,
body[class*="theme-dark-"] .ui-datatable .ui-widget-content {
    background: var(--surface-card, #111111) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

body[class*="theme-dark-"] .ui-datatable .ui-datatable-header,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-footer,
body[class*="theme-dark-"] .ui-datatable .ui-paginator {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) 100%) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .ui-datatable thead th,
body[class*="theme-dark-"] .ui-datatable thead th.ui-state-default,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-thead > tr > th,
body[class*="theme-dark-"] .ui-datatable .ui-widget-header {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.07) 100%) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
}

body[class*="theme-dark-"] .ui-datatable tbody > tr,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr,
body[class*="theme-dark-"] .ui-datatable tbody > tr.ui-widget-content {
    background: transparent !important;
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .ui-datatable tbody > tr:nth-child(even),
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr:nth-child(even) {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06) !important;
}

body[class*="theme-dark-"] .ui-datatable tbody > tr:hover,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr:hover,
body[class*="theme-dark-"] .ui-datatable tbody > tr.ui-state-hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
}

body[class*="theme-dark-"] .ui-datatable tbody > tr > td,
body[class*="theme-dark-"] .ui-datatable .ui-datatable-tbody > tr > td,
body[class*="theme-dark-"] .ui-datatable tbody > tr.ui-widget-content > td,
body[class*="theme-dark-"] .ui-datatable-reflow .ui-datatable-data > tr > td {
    background: transparent !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body[class*="theme-dark-"] .ui-datatable-reflow .ui-datatable-data td .ui-column-title {
    color: var(--text-color-secondary, #cbd5e1) !important;
}

body[class*="theme-dark-"] .ui-panel,
body[class*="theme-dark-"] .ui-panel .ui-panel-content,
body[class*="theme-dark-"] .ui-panel .ui-panel-titlebar,
body[class*="theme-dark-"] .ui-panelgrid,
body[class*="theme-dark-"] .ui-panelgrid .ui-panelgrid-cell,
body[class*="theme-dark-"] .ui-fieldset,
body[class*="theme-dark-"] .ui-fieldset .ui-fieldset-content,
body[class*="theme-dark-"] .ui-toolbar,
body[class*="theme-dark-"] .ui-tabs .ui-tabs-panels,
body[class*="theme-dark-"] .ui-tabs .ui-tabs-panels .ui-tabs-panel,
body[class*="theme-dark-"] .ui-accordion .ui-accordion-content {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) 100%) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .ui-panel .ui-panel-titlebar,
body[class*="theme-dark-"] .ui-fieldset legend,
body[class*="theme-dark-"] .ui-accordion .ui-accordion-header,
body[class*="theme-dark-"] .ui-accordion .ui-accordion-header a {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.07) 100%) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
}

body[class*="theme-dark-"] .dashboard-chip,
body[class*="theme-dark-"] .dashboard-glance-card,
body[class*="theme-dark-"] .dashboard-kpi-card,
body[class*="theme-dark-"] .dashboard-mini-metric,
body[class*="theme-dark-"] .dashboard-stat-box,
body[class*="theme-dark-"] .dashboard-inline-note,
body[class*="theme-dark-"] .dashboard-balance-item,
body[class*="theme-dark-"] .dashboard-ranking-item,
body[class*="theme-dark-"] .dashboard-list-item,
body[class*="theme-dark-"] .dashboard-subpanel,
body[class*="theme-dark-"] .dashboard-progress-card,
body[class*="theme-dark-"] .dashboard-empty-state,
body[class*="theme-dark-"] .theme-panel,
body[class*="theme-dark-"] .theme-upload-panel,
body[class*="theme-dark-"] .theme-upload-item,
body[class*="theme-dark-"] .sindicato-logo-preview,
body[class*="theme-dark-"] .theme-day-card,
body[class*="theme-dark-"] .theme-slot-card,
body[class*="theme-dark-"] .detail-summary-card {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.04) 100%) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
}

body[class*="theme-dark-"] .dashboard-alert {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) 0%, rgba(var(--t-accent-rgb, 51, 65, 85), 0.05) 100%) !important;
    color: var(--text-color, #fafafa) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.20) !important;
}

body[class*="theme-dark-"] .dashboard-alert-icon,
body[class*="theme-dark-"] .dashboard-ranking-index,
body[class*="theme-dark-"] .dashboard-progress-track {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.20) !important;
}

body[class*="theme-dark-"] .submenu {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.97) 0%, rgba(18, 18, 18, 0.94) 100%) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42) !important;
}

body[class*="theme-dark-"] .submenu::before {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.34) !important;
}

body[class*="theme-dark-"] .submenu-sheet-header {
    border-bottom-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
}

body[class*="theme-dark-"] .submenu-sheet-kicker {
    color: var(--t-accent, #fafafa) !important;
}

body[class*="theme-dark-"] .submenu-sheet-title,
body[class*="theme-dark-"] .submenu-sheet-copy,
body[class*="theme-dark-"] .submenu-section-label,
body[class*="theme-dark-"] .submenu-item .menu-text {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .submenu-section-label {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.20) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[class*="theme-dark-"] .submenu-group-card {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .submenu-group-card--danger {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.24) 0%, rgba(127, 29, 29, 0.14) 100%) !important;
    border-color: rgba(248, 113, 113, 0.18) !important;
}

body[class*="theme-dark-"] .submenu-group-copy {
    color: var(--text-color-secondary, #a3a3a3) !important;
}

body[class*="theme-dark-"] .submenu-sheet-close {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-color, #fafafa) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body[class*="theme-dark-"] .submenu-item--danger {
    background: rgba(127, 29, 29, 0.28) !important;
    border-color: rgba(248, 113, 113, 0.22) !important;
}

body[class*="theme-dark-"] .submenu-item--danger .icon-main {
    background: rgba(248, 113, 113, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.18) !important;
    color: #fca5a5 !important;
}

body[class*="theme-dark-"] .submenu-item--danger .menu-text {
    color: #fecaca !important;
}

body[class*="theme-dark-"] .settings-popover {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.98) 0%, rgba(18, 18, 18, 0.95) 100%) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44) !important;
}

body[class*="theme-dark-"] .settings-popover-eyebrow,
body[class*="theme-dark-"] .settings-popover-label {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
    color: var(--text-color, #fafafa) !important;
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
}

body[class*="theme-dark-"] .settings-popover-title,
body[class*="theme-dark-"] .settings-popover-badge-value,
body[class*="theme-dark-"] .settings-popover-item-title {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .settings-popover-copy,
body[class*="theme-dark-"] .settings-popover-badge-label,
body[class*="theme-dark-"] .settings-popover-item-subtitle {
    color: var(--text-color-secondary, #a3a3a3) !important;
}

body[class*="theme-dark-"] .settings-popover-badge {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

body[class*="theme-dark-"] .settings-popover-group {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .settings-popover-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

body[class*="theme-dark-"] .settings-popover-item:hover {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.22) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24) !important;
}

body[class*="theme-dark-"] .settings-popover-icon {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.14) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.18) !important;
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .appearance-page .form-subtitle,
body[class*="theme-dark-"] .appearance-gallery-card,
body[class*="theme-dark-"] .appearance-chip,
body[class*="theme-dark-"] .tema-header-panel,
body[class*="theme-dark-"] .tema-current-badge,
body[class*="theme-dark-"] .tema-card {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .appearance-gallery-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%) !important;
}

body[class*="theme-dark-"] .appearance-page .form-subtitle {
    color: var(--text-color-secondary, #a3a3a3) !important;
}

body[class*="theme-dark-"] .appearance-chip {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.10) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .tema-header-panel {
    background: linear-gradient(145deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.12), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
}

body[class*="theme-dark-"] .tema-current-badge {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.16) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24) !important;
}

body[class*="theme-dark-"] .tema-current-label,
body[class*="theme-dark-"] .tema-header-copy,
body[class*="theme-dark-"] .tema-card-description {
    color: var(--text-color-secondary, #a3a3a3) !important;
}

body[class*="theme-dark-"] .tema-header-title,
body[class*="theme-dark-"] .tema-current-name,
body[class*="theme-dark-"] .tema-card-title {
    color: var(--text-color, #fafafa) !important;
}

body[class*="theme-dark-"] .tema-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28) !important;
}

body[class*="theme-dark-"] .tema-card:hover {
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.28) !important;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34) !important;
}

body[class*="theme-dark-"] .tema-card.ativo {
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.40) !important;
    box-shadow:
        0 0 0 3px rgba(var(--t-accent-rgb, 51, 65, 85), 0.14),
        0 22px 42px rgba(0, 0, 0, 0.36) !important;
}

body[class*="theme-dark-"] .tema-card-preview {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

body[class*="theme-dark-"] .tema-card-preview::before {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

body[class*="theme-dark-"] .tema-card-line {
    background: rgba(255, 255, 255, 0.16) !important;
}

body[class*="theme-dark-"] .tema-card-line--strong {
    background: rgba(255, 255, 255, 0.26) !important;
}

body[class*="theme-dark-"] .tema-card-orb {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* ------------------------------------------------------------------
   AUTH FULLSCREEN REFINEMENT
   ------------------------------------------------------------------ */

body.login-page {
    justify-content: stretch;
    background:
        radial-gradient(circle at top left, rgba(var(--t-accent-rgb), 0.10), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-shell--fullscreen {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.auth-shell--fullscreen::before,
.auth-shell--fullscreen::after {
    display: none;
}

.auth-card--split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 31%);
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
}

.auth-card--split::before {
    display: none;
}

.auth-stage--clean {
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-end) 100%);
}

.auth-stage--clean::before {
    inset: auto;
    left: -6rem;
    top: -3rem;
    width: 20rem;
    height: 20rem;
    border-radius: 42px;
    transform: rotate(38deg);
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.14);
}

.auth-stage--clean::after {
    right: auto;
    left: 5rem;
    bottom: -6rem;
    width: 18rem;
    height: 18rem;
    border-radius: 46px;
    transform: rotate(38deg);
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.12);
}

.auth-stage-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-logo-image {
    height: 5.5rem;
    width: auto;
    max-width: 350px;
    filter: brightness(0) invert(1); /* Deixa a logo branca no fundo escuro */
}

.auth-stage--clean .auth-stage-mark {
    width: clamp(6rem, 9vw, 8rem);
    height: clamp(6rem, 9vw, 8rem);
    margin-top: 0;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.auth-stage--clean .auth-stage-mark i {
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.auth-stage--clean .auth-stage-title {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    letter-spacing: -0.05em;
}

.auth-stage-subtitle {
    margin: 0;
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.80);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-stage--clean .auth-kicker,
.auth-stage--clean .auth-chip-row,
.auth-stage--clean .auth-stage-copy {
    display: none;
}

.auth-form-panel--clean {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 3vw, 3.5rem);
    background: rgba(255, 255, 255, 0.96);
    border-left: 1px solid rgba(var(--t-accent-rgb), 0.10);
}

.auth-form-panel--clean .auth-form-header {
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.auth-form-panel--clean .auth-form-title {
    font-size: 2rem;
    font-weight: 800;
}

.auth-form-panel--clean .auth-form-copy,
.auth-form-panel--clean .auth-kicker {
    display: none;
}

.auth-form-panel--clean .auth-form {
    width: min(100%, 21rem);
    margin: 0 auto;
}

.auth-link-row--simple {
    justify-content: flex-end;
    min-height: 1.3rem;
}

.auth-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

@media (max-width: 960px) {
    .auth-card--split {
        grid-template-columns: 1fr;
    }

    .auth-stage--clean,
    .auth-form-panel--clean {
        min-height: auto;
    }

    .auth-stage--clean {
        padding: 2.5rem 1.5rem 2rem;
    }

    .auth-form-panel--clean {
        border-left: none;
        border-top: 1px solid rgba(var(--t-accent-rgb), 0.10);
    }
}

@media (max-width: 640px) {
    .auth-stage-subtitle {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .auth-form-panel--clean .auth-form {
        width: 100%;
    }
}

.auth-form-panel--wide .auth-form {
    width: min(100%, 24rem);
}

.auth-step-indicator {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.auth-choice-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(var(--t-accent-rgb), 0.04);
    border: 1px solid rgba(var(--t-accent-rgb), 0.10);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.auth-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--t-accent-rgb), 0.16);
    background: rgba(var(--t-accent-rgb), 0.07);
}

.auth-choice-card.is-active {
    border-color: rgba(var(--t-accent-rgb), 0.26);
    background: rgba(var(--t-accent-rgb), 0.10);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.auth-choice-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.auth-choice-copy strong {
    color: var(--text-color, #0f172a);
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-choice-copy small {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.75rem;
}

.auth-summary-card {
    display: grid;
    gap: 0.22rem;
    padding: 0.95rem 1rem;
    margin-bottom: 0.35rem;
    border-radius: 18px;
    background: rgba(var(--t-accent-rgb), 0.05);
    border: 1px solid rgba(var(--t-accent-rgb), 0.10);
}

.auth-summary-label {
    color: var(--text-color-secondary, #64748b);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-summary-card strong {
    color: var(--text-color, #0f172a);
    font-size: 0.92rem;
}

.auth-inline-actions {
    display: grid;
    gap: 0.8rem;
}

.auth-secondary-button {
    width: 100% !important;
    min-height: 3.25rem;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

@media (max-width: 640px) {
    .auth-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar polish - March/2026 */
@media (min-width: 769px) {
    #sidebar .sidebar-header {
        gap: 0.48rem;
        padding-bottom: 0.24rem;
    }

    #sidebar .sidebar-brand-row {
        align-items: center;
        min-height: auto;
        padding: 0;
    }

    #sidebar .logo-wrapper {
        gap: 0.78rem;
        flex: 1;
        min-width: 0;
        min-height: auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    #sidebar .sidebar-brand-copy {
        min-width: 0;
    }

    #sidebar .sindicato-badge {
        align-items: center;
        min-height: auto;
        gap: 0.62rem;
        padding: 0.54rem 0.68rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    #sidebar .sindicato-badge-icon {
        width: 2.05rem;
        height: 2.05rem;
        border-radius: 0.6rem;
        background: transparent;
        border: none;
        box-shadow: none;
        color: var(--t-sidebar-hover-text);
    }

    #sidebar .sindicato-badge-logo {
        padding: 0;
        background: transparent;
    }

    #sidebar .sindicato-badge-label {
        display: inline-flex;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.54);
    }

    #sidebar .sindicato-badge-name {
        font-size: 0.84rem;
        font-weight: 700;
        color: var(--t-sidebar-hover-text);
    }

    #sidebar .sidebar-footer {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    #sidebar .sidebar-profile-form {
        display: flex;
        flex-direction: column;
    }

    #sidebar .sidebar-footer .sidebar-profile-card,
    #sidebar .sidebar-profile-card--settings {
        display: flex !important;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 0.74rem 0.78rem;
        border-radius: 1.1rem;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
            rgba(var(--t-accent-rgb, 51, 65, 85), 0.08);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    #sidebar .sidebar-profile-main {
        display: flex;
        align-items: center;
        gap: 0.78rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    #sidebar .sidebar-profile-settings {
        width: 2.35rem;
        height: 2.35rem;
        flex: 0 0 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.86rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--t-sidebar-text) !important;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    #sidebar .sidebar-profile-settings:hover {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.12);
        color: var(--t-sidebar-hover-text) !important;
        transform: translateY(-1px);
    }

    #sidebar .sidebar-item {
        min-height: 2.9rem;
        padding: 0.52rem 0.62rem;
        border-radius: 1rem;
        border: 1px solid transparent;
        box-shadow: none !important;
    }

    #sidebar .sidebar-item:hover,
    #sidebar .sidebar-item.is-open {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.07) !important;
        color: var(--t-sidebar-hover-text) !important;
        transform: none !important;
    }

    #sidebar .sidebar-item.active-menu {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.10) 100%) !important;
        border-color: rgba(255, 255, 255, 0.10) !important;
        color: var(--t-sidebar-hover-text) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(15, 23, 42, 0.12) !important;
    }

    #sidebar .sidebar-item .sidebar-item-title,
    #sidebar .sidebar-item .sidebar-item-subtitle,
    #sidebar .sidebar-item .icon-main,
    #sidebar .sidebar-item .icon-arrow {
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }

    #sidebar .sidebar-item:hover .sidebar-item-title,
    #sidebar .sidebar-item.is-open .sidebar-item-title,
    #sidebar .sidebar-item.active-menu .sidebar-item-title,
    #sidebar .sidebar-item:hover .icon-main,
    #sidebar .sidebar-item.is-open .icon-main,
    #sidebar .sidebar-item.active-menu .icon-main,
    #sidebar .sidebar-item.is-open .icon-arrow,
    #sidebar .sidebar-item.active-menu .icon-arrow {
        color: var(--t-sidebar-hover-text) !important;
    }

    #sidebar .sidebar-item:hover .sidebar-item-subtitle,
    #sidebar .sidebar-item.is-open .sidebar-item-subtitle,
    #sidebar .sidebar-item.active-menu .sidebar-item-subtitle {
        color: rgba(255, 255, 255, 0.74) !important;
    }

    #sidebar .sidebar-item:hover .icon-main,
    #sidebar .sidebar-item.is-open .icon-main,
    #sidebar .sidebar-item.active-menu .icon-main {
        background: rgba(255, 255, 255, 0.10) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    #sidebar .icon-arrow {
        color: rgba(255, 255, 255, 0.54);
    }

    #sidebar.sidebar.expanded .submenu {
        margin-left: 2.08rem;
        padding-top: 0.14rem;
        padding-bottom: 0.16rem;
        gap: 0.08rem;
    }

    #sidebar.sidebar.expanded .submenu-item {
        min-height: 2.2rem;
        padding: 0.36rem 0.5rem 0.36rem 1rem;
        border-radius: 0.82rem;
        border: 1px solid transparent !important;
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }

    #sidebar.sidebar.expanded .submenu-item::before {
        left: 0.28rem;
        width: 0.36rem;
        height: 0.36rem;
        background: rgba(255, 255, 255, 0.22) !important;
    }

    #sidebar.sidebar.expanded .submenu-item .menu-text {
        color: rgba(255, 255, 255, 0.72) !important;
        font-size: 0.82rem;
        font-weight: 600;
    }

    #sidebar.sidebar.expanded .submenu-item:hover {
        background: rgba(255, 255, 255, 0.045) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }

    #sidebar.sidebar.expanded .submenu-item:hover::before,
    #sidebar.sidebar.expanded .submenu-item.active-menu::before {
        background: var(--t-sidebar-hover-text) !important;
    }

    #sidebar.sidebar.expanded .submenu-item:hover .menu-text,
    #sidebar.sidebar.expanded .submenu-item.active-menu .menu-text {
        color: var(--t-sidebar-hover-text) !important;
    }

    #sidebar.sidebar.expanded .submenu-item.active-menu {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }

    #sidebar.sidebar.expanded .submenu-item .icon-main {
        display: none;
    }

    #sidebar .settings-popover-group--danger {
        padding-top: 0.18rem;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    #sidebar .settings-popover-item--danger .settings-popover-item-title,
    #sidebar .settings-popover-item--danger .settings-popover-icon,
    #sidebar .settings-popover-item--danger::after {
        color: #dc2626 !important;
    }

    #sidebar .settings-popover-item--danger:hover {
        background: rgba(239, 68, 68, 0.08) !important;
        border-color: rgba(239, 68, 68, 0.16) !important;
    }

    body[class*="theme-dark-"] #sidebar .settings-popover-item--danger .settings-popover-item-title,
    body[class*="theme-dark-"] #sidebar .settings-popover-item--danger .settings-popover-icon,
    body[class*="theme-dark-"] #sidebar .settings-popover-item--danger::after {
        color: #fda4af !important;
    }

    body[class*="theme-dark-"] #sidebar .settings-popover-group--danger {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    body[class*="theme-dark-"] #sidebar .sidebar-item.active-menu {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.07) 100%) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 24px rgba(0, 0, 0, 0.18) !important;
    }

    body[class*="theme-dark-"] #sidebar .sidebar-item:hover,
    body[class*="theme-dark-"] #sidebar .sidebar-item.is-open {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
    }

    body[class*="theme-dark-"] #sidebar .sidebar-footer {
        border-top-color: rgba(255, 255, 255, 0.05);
    }
}

.juridico-page .form-header {
    margin-bottom: 2rem;
}

.juridico-tabview .p-tabview-nav {
    gap: 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.juridico-tabview .p-tabview-nav li .p-tabview-nav-link {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
}

.juridico-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {
    border-color: rgba(var(--t-accent-rgb), 0.18);
    background: rgba(var(--t-accent-rgb), 0.08);
}

.juridico-tabview .p-tabview-panels {
    padding: 1.75rem 0 0;
    background: transparent;
}

.juridico-clausulas-section {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 1.6rem;
}

.juridico-table .p-datatable-thead > tr > th {
    background: rgba(var(--t-accent-rgb), 0.07);
    border-color: rgba(var(--t-accent-rgb), 0.1);
    color: var(--text-color);
    font-weight: 800;
}

.juridico-table .p-datatable-tbody > tr > td {
    border-color: rgba(148, 163, 184, 0.14);
    vertical-align: top;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.juridico-table-stack {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.juridico-table-title {
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.4;
}

.juridico-table-copy {
    color: var(--text-color-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

.juridico-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.juridico-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.juridico-chip--categoria {
    color: #155e75;
    border-color: rgba(8, 145, 178, 0.2);
    background: rgba(6, 182, 212, 0.12);
}

.juridico-chip--obrigacao {
    color: #5b21b6;
    border-color: rgba(124, 58, 237, 0.18);
    background: rgba(139, 92, 246, 0.12);
}

.juridico-chip--critica {
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.14);
}

.juridico-chip--alta {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.15);
}

.juridico-chip--media {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.12);
}

.juridico-chip--baixa {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.12);
}

.juridico-chip--receita,
.juridico-chip--ativo {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.12);
}

.juridico-chip--multa {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.14);
}

.juridico-chip--auditoria {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.12);
}

.juridico-chip--inativo,
.juridico-chip--muted {
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.1);
}

.juridico-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 180px;
    padding: 1.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 100%);
    text-align: center;
    color: var(--text-color-secondary);
}

.juridico-empty-state i {
    font-size: 1.8rem;
    color: var(--t-accent);
}

.juridico-empty-state--compact {
    min-height: 120px;
}

.juridico-clausula-card {
    margin-top: 1rem;
    padding: 1.2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.juridico-clausula-card--readonly {
    padding: 1.35rem;
}

.juridico-clausula-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.juridico-clausula-card__eyebrow {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-accent);
}

.juridico-clausula-card__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.juridico-clausula-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-color-secondary);
    line-height: 1.65;
}

.juridico-clausula-card__text strong {
    color: var(--text-color);
}

.juridico-clausula-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    align-items: center;
}

.juridico-clausula-flags--readonly {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}

.juridico-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-color-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.juridico-flag--on {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

body[class*="theme-dark-"] .juridico-empty-state {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(148, 163, 184, 0.18);
}

body[class*="theme-dark-"] .juridico-clausula-card {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

body[class*="theme-dark-"] .dashboard-juridico-progress,
body[class*="theme-dark-"] .dashboard-juridico-metric {
    background: linear-gradient(180deg, rgba(var(--t-accent-rgb), 0.16) 0%, rgba(15, 23, 42, 0.42) 100%);
    border-color: rgba(148, 163, 184, 0.16);
}

body[class*="theme-dark-"] .dashboard-juridico-chip {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.18);
}

body[class*="theme-dark-"] .juridico-table .p-datatable-thead > tr > th {
    background: rgba(var(--t-accent-rgb), 0.12);
    border-color: rgba(148, 163, 184, 0.12);
}

body[class*="theme-dark-"] .juridico-chip {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.18);
}

body[class*="theme-dark-"] .juridico-flag {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.14);
}

body[class*="theme-dark-"] .juridico-flag--on {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

@media (max-width: 768px) {
    .dashboard-juridico-overview,
    .dashboard-juridico-grid {
        grid-template-columns: 1fr;
    }

    .juridico-clausula-card__header {
        flex-direction: column;
    }

    .juridico-clausula-flags {
        flex-direction: column;
        align-items: stretch;
    }
}

.receita-dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.receita-dashboard-hero,
.receita-dashboard-panel,
.receita-dashboard-kpi {
    border-radius: 28px;
}

.receita-dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.receita-dashboard-eyebrow,
.receita-dashboard-panel-eyebrow,
.receita-dashboard-filter-label {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-accent);
}

.receita-dashboard-title {
    margin: 0.35rem 0 0.55rem;
    color: var(--text-color);
    font-size: 1.9rem;
    line-height: 1.1;
}

.receita-dashboard-subtitle {
    margin: 0;
    max-width: 52rem;
    color: var(--text-color-secondary);
    line-height: 1.65;
}

.receita-dashboard-actions,
.receita-dashboard-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.receita-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.receita-dashboard-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 9.75rem;
}

.receita-dashboard-kpi-label {
    color: var(--text-color-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.receita-dashboard-kpi-value {
    color: var(--text-color);
    font-size: 1.7rem;
    line-height: 1.1;
}

.receita-dashboard-kpi small,
.receita-dashboard-note,
.receita-dashboard-table-main span,
.receita-dashboard-table-stack small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.receita-dashboard-kpi--danger {
    border-color: rgba(239, 68, 68, 0.18);
}

.receita-dashboard-panel {
    padding: 1.4rem;
}

.receita-dashboard-panel--stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.receita-dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.receita-dashboard-panel-title {
    margin: 0.2rem 0 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.receita-dashboard-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.receita-dashboard-progress-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
}

.receita-dashboard-progress-card strong {
    color: var(--text-color);
    font-size: 1.25rem;
}

.receita-dashboard-progress-card small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.receita-dashboard-progress-track {
    width: 100%;
    height: 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.receita-dashboard-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--t-accent), var(--t-accent-end));
}

.receita-dashboard-progress-bar--success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.receita-dashboard-chart-shell {
    position: relative;
    min-height: 320px;
}

.receita-dashboard-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.receita-dashboard-ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.1);
}

.receita-dashboard-ranking-item strong {
    color: var(--text-color);
}

.receita-dashboard-ranking-item span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-color-secondary);
    font-size: 0.84rem;
}

.receita-dashboard-empty {
    padding: 1.4rem;
    border-radius: 20px;
    text-align: center;
    color: var(--text-color-secondary);
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.05);
    border: 1px dashed rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
}

.receita-dashboard-table-main,
.receita-dashboard-table-stack,
.receita-dashboard-chip-row {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.receita-dashboard-chip-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.receita-list-page {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.receita-list-hero,
.receita-list-summary-card,
.receita-list-table-shell {
    border-radius: 28px;
}

.receita-list-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.receita-list-hero-copy,
.receita-list-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.receita-list-eyebrow,
.receita-list-table-eyebrow,
.receita-list-label,
.receita-list-summary-label {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-accent);
}

.receita-list-title-main {
    margin: 0.25rem 0 0.5rem;
    color: var(--text-color);
    font-size: 1.9rem;
    line-height: 1.1;
}

.receita-list-subtitle,
.receita-list-table-copy,
.receita-list-copy,
.receita-list-note,
.receita-list-summary-card small {
    color: var(--text-color-secondary);
    line-height: 1.6;
}

.receita-list-subtitle {
    margin: 0;
    max-width: 58rem;
}

.receita-list-search {
    width: min(100%, 21rem);
}

.receita-list-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.receita-list-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.receita-list-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    min-height: 9.25rem;
    padding: 1.25rem 1.3rem;
}

.receita-list-summary-value {
    color: var(--text-color);
    font-size: 1.75rem;
    line-height: 1.05;
}

.receita-list-table-shell {
    padding: 1.35rem;
}

.receita-list-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.receita-list-table-title {
    margin: 0.2rem 0 0;
    color: var(--text-color);
    font-size: 1.18rem;
}

.receita-list-table-copy {
    max-width: 26rem;
    text-align: right;
}

.receita-list-table .p-datatable-thead > tr > th {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.07);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.1);
    color: var(--text-color);
    font-weight: 800;
    vertical-align: middle;
}

.receita-list-table .p-datatable-tbody > tr > td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(148, 163, 184, 0.14);
    vertical-align: top;
}

.receita-list-identity {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
}

.receita-list-icon {
    flex: 0 0 auto;
}

.receita-list-cell {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.receita-list-cell--dense {
    gap: 0.7rem;
}

.receita-list-title {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.receita-list-title--sm {
    font-size: 0.96rem;
}

.receita-list-meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.receita-list-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.receita-list-rule-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.06);
    border: 1px solid rgba(var(--t-accent-rgb, 51, 65, 85), 0.1);
}

.receita-list-rule-highlight strong,
.receita-list-metric {
    color: var(--text-color);
    font-size: 1.02rem;
    line-height: 1.2;
}

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

.receita-list-inline-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--text-color-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.receita-list-inline-icon {
    color: var(--t-accent);
}

.receita-list-inline-separator {
    color: rgba(148, 163, 184, 0.85);
}

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

.receita-list-vigencia-item {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.receita-list-vigencia-item span {
    color: var(--text-color-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.receita-list-vigencia-item strong {
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.35;
}

.receita-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.receita-list-action.ui-button {
    margin: 0 !important;
}

body[class*="theme-dark-"] .receita-list-table .p-datatable-thead > tr > th {
    background: rgba(var(--t-accent-rgb, 51, 65, 85), 0.12);
    border-color: rgba(148, 163, 184, 0.12);
}

body[class*="theme-dark-"] .receita-list-rule-highlight,
body[class*="theme-dark-"] .receita-list-vigencia-item {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.16);
}

@media (max-width: 960px) {
    .receita-dashboard-hero {
        flex-direction: column;
    }

    .receita-list-hero,
    .receita-list-table-header {
        flex-direction: column;
    }

    .receita-list-table-copy {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .receita-dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .receita-dashboard-panel-header {
        flex-direction: column;
    }

    .receita-dashboard-chart-shell {
        min-height: 260px;
    }

    .receita-list-summary-grid,
    .receita-list-meta-grid,
    .receita-list-vigencia {
        grid-template-columns: 1fr;
    }

    .receita-list-hero-buttons {
        flex-direction: column;
    }

    .receita-list-search {
        width: 100%;
    }

    .receita-list-actions {
        justify-content: flex-start;
    }
}

.clausula-execucao-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.clausula-execucao-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.clausula-execucao-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.clausula-execucao-main,
.clausula-execucao-aside {
    min-width: 0;
}

.clausula-execucao-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clausula-execucao-workspace-shell,
.clausula-execucao-side-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.clausula-execucao-workspace-shell {
    padding: 1.2rem;
}

.clausula-execucao-workspace-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.clausula-execucao-workspace-head strong {
    display: block;
    color: var(--text-color);
    font-size: 1.18rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.clausula-execucao-workspace-head small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.clausula-execucao-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.clausula-execucao-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.76);
    border-radius: 22px;
}

.clausula-execucao-summary-item span,
.clausula-execucao-side-card__title {
    color: var(--text-color-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clausula-execucao-summary-item strong,
.clausula-execucao-side-card strong {
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.35;
}

.clausula-execucao-summary-item small,
.clausula-execucao-side-card small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.clausula-execucao-side-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
}

.clausula-execucao-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.clausula-execucao-pending-list span {
    position: relative;
    padding-left: 1rem;
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.clausula-execucao-pending-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--orange-500);
}

.clausula-execucao-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clausula-execucao-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clausula-execucao-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.32);
}

.clausula-execucao-section {
    scroll-margin-top: 6rem;
}

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

.clausula-execucao-summary-card,
.clausula-execucao-text-card,
.clausula-execucao-panel,
.clausula-execucao-rule-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.clausula-execucao-summary-card {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.clausula-execucao-summary-card span {
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clausula-execucao-summary-card strong {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.35;
}

.clausula-execucao-summary-card small,
.clausula-execucao-text-card span {
    color: var(--text-color-secondary);
    line-height: 1.65;
}

.clausula-execucao-text-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem 1.15rem;
    height: 100%;
}

.clausula-execucao-text-card strong {
    color: var(--text-color);
    font-size: 0.94rem;
}

.clausula-execucao-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
    height: 100%;
}

.clausula-execucao-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.clausula-execucao-panel__header strong {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.clausula-execucao-panel__header small {
    color: var(--text-color-secondary);
    line-height: 1.5;
}

.clausula-execucao-rule-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
}

.clausula-execucao-rule-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.clausula-execucao-rule-card__header strong {
    color: var(--text-color);
    font-size: 1rem;
}

.clausula-execucao-rule-card__header small {
    color: var(--text-color-secondary);
    line-height: 1.45;
}

.clausula-execucao-rule-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
}

.clausula-execucao-rule-meta span {
    color: var(--text-color-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.clausula-execucao-rule-meta strong {
    color: var(--text-color);
}

.clausula-execucao-rule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.clausula-execucao-empty-state {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.clausula-execucao-empty-state i {
    color: var(--t-accent);
    font-size: 1.15rem;
}

.clausula-execucao-empty-state--muted {
    background: rgba(148, 163, 184, 0.08);
}

.clausula-execucao-table .p-datatable-tbody > tr > td {
    vertical-align: top;
}

.clausula-execucao-workspace {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.clausula-execucao-tabs .p-tabview-nav {
    border: 0;
    background: transparent;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.clausula-execucao-tabs .p-tabview-nav li .p-tabview-nav-link {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-color);
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.clausula-execucao-tabs .p-tabview-nav li.p-highlight .p-tabview-nav-link {
    background: linear-gradient(135deg, rgba(var(--t-accent-rgb, 51, 65, 85), 0.14), rgba(255, 255, 255, 0.96));
    border-color: rgba(var(--t-accent-rgb, 51, 65, 85), 0.32);
    color: var(--text-color);
}

.clausula-execucao-tabs .p-tabview-panels {
    padding: 1.25rem 0 0;
    background: transparent;
}

.clausula-execucao-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.clausula-execucao-toolbar__copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.clausula-execucao-toolbar__copy strong {
    color: var(--text-color);
    font-size: 1rem;
}

.clausula-execucao-toolbar__copy small {
    color: var(--text-color-secondary);
    line-height: 1.6;
    max-width: 58rem;
}

.clausula-execucao-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clausula-execucao-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.clausula-execucao-mini-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.clausula-execucao-mini-card span {
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clausula-execucao-mini-card strong {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.3;
}

.clausula-execucao-mini-card small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.clausula-execucao-table-shell {
    padding: 1rem 1rem 0.5rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.clausula-execucao-consolidado-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.clausula-execucao-consolidado-card,
.clausula-execucao-consolidado-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.clausula-execucao-consolidado-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem;
}

.clausula-execucao-consolidado-card span {
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clausula-execucao-consolidado-card strong {
    color: var(--text-color);
    font-size: 1.16rem;
    line-height: 1.3;
}

.clausula-execucao-consolidado-card small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

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

.clausula-execucao-consolidado-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
}

.clausula-execucao-rulerow {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.clausula-execucao-rulerow__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.clausula-execucao-rulerow__top span {
    color: var(--text-color);
    font-weight: 700;
}

.clausula-execucao-rulerow__top strong {
    color: var(--t-accent);
    font-size: 0.98rem;
}

.clausula-execucao-rulerow small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.clausula-execucao-meter {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.18);
}

.clausula-execucao-meter__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.7));
}

.clausula-execucao-meter__fill--warning {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.95), rgba(245, 158, 11, 0.72));
}

.clausula-execucao-meter__fill--success {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.95), rgba(16, 185, 129, 0.72));
}

.clausula-execucao-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clausula-execucao-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.clausula-execucao-info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.clausula-execucao-info-row span {
    color: var(--text-color-secondary);
}

.clausula-execucao-info-row strong {
    color: var(--text-color);
    font-size: 1rem;
}

.clausula-execucao-status-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.clausula-execucao-automation-shell {
    margin-bottom: 1.25rem;
}

.clausula-execucao-automation-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.clausula-execucao-dialog .p-dialog-content {
    padding-top: 0.75rem;
}

.central-execucao-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.central-execucao-tree-shell,
.central-execucao-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.central-execucao-tree-shell {
    padding: 1.15rem;
}

.central-execucao-workspace-shell {
    min-width: 0;
}

.central-execucao-panel {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.2rem;
}

.central-execucao-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.central-execucao-panel__header strong {
    color: var(--text-color);
    font-size: 1.25rem;
    line-height: 1.3;
}

.central-execucao-panel__header small {
    display: block;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin-top: 0.25rem;
}

.central-execucao-tree {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.central-execucao-tree__group {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(248, 250, 252, 0.72);
    padding: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.central-execucao-tree__group.is-selected {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(239, 246, 255, 0.78);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.central-execucao-tree__instrument-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.central-execucao-tree__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    min-width: 2.4rem;
    border-radius: 18px;
    color: var(--text-color-secondary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.central-execucao-tree__toggle:hover {
    color: var(--t-accent);
    border-color: rgba(37, 99, 235, 0.22);
}

.central-execucao-tree__node,
.central-execucao-tree__clause {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.central-execucao-tree__node {
    padding: 0.8rem 0.9rem;
    border: 1px solid transparent;
}

.central-execucao-tree__node:hover,
.central-execucao-tree__clause:hover {
    background: rgba(255, 255, 255, 0.86);
}

.central-execucao-tree__node.is-active,
.central-execucao-tree__clause.is-active {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.central-execucao-tree__title,
.central-execucao-tree__clause-title {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.45;
}

.central-execucao-tree__subtitle,
.central-execucao-tree__metrics,
.central-execucao-tree__clause-meta,
.central-execucao-tree__empty {
    color: var(--text-color-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.central-execucao-tree__children {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.8rem 0 0 3rem;
    position: relative;
}

.central-execucao-tree__children::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 0.1rem;
    bottom: 0.35rem;
    width: 1px;
    background: rgba(148, 163, 184, 0.22);
}

.central-execucao-tree__clause {
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    position: relative;
}

.central-execucao-tree__clause::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 1.15rem;
    width: 1.1rem;
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
}

.central-execucao-focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.central-execucao-focus-card,
.central-execucao-detail-card,
.central-execucao-clause-card,
.central-execucao-text-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.central-execucao-focus-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
}

.central-execucao-focus-card span {
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.central-execucao-focus-card strong {
    color: var(--text-color);
    font-size: 1.12rem;
    line-height: 1.35;
}

.central-execucao-focus-card small {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

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

.central-execucao-detail-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.05rem 1.1rem;
}

.central-execucao-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.central-execucao-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.central-execucao-info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.central-execucao-info-row span {
    color: var(--text-color-secondary);
}

.central-execucao-info-row strong {
    color: var(--text-color);
    font-size: 0.98rem;
    text-align: right;
}

.central-execucao-text-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
}

.central-execucao-text-card strong {
    color: var(--text-color);
}

.central-execucao-text-card span {
    color: var(--text-color-secondary);
    line-height: 1.65;
}

.central-execucao-status-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

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

.central-execucao-clause-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
}

.central-execucao-clause-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.central-execucao-clause-card__header strong {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.4;
}

.central-execucao-clause-card__summary {
    color: var(--text-color-secondary);
    line-height: 1.65;
}

.central-execucao-page {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.central-execucao-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.central-execucao-hero__actions,
.central-execucao-toolbar__actions,
.central-execucao-list-actions,
.central-execucao-badge-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.central-execucao-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.72);
    border-radius: 26px;
}

.central-execucao-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(220px, 1fr));
    gap: 0.9rem;
    width: 100%;
}

.central-execucao-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.central-execucao-filter-field label {
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.central-execucao-filter-control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.central-execucao-filter-control .ui-inputfield {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0 !important;
}

.central-execucao-filter-icon {
    color: var(--text-color-secondary);
}

.central-execucao-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.central-execucao-summary-strip--workspace {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.central-execucao-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.central-execucao-summary-item span {
    color: var(--text-color-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.central-execucao-summary-item strong {
    color: var(--text-color);
    font-size: 1.18rem;
    line-height: 1.35;
}

.central-execucao-summary-item small,
.central-execucao-muted {
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.central-execucao-tree__status {
    display: flex;
    margin-top: 0.25rem;
}

.central-execucao-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 220px;
    padding: 1.25rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    color: var(--text-color-secondary);
    background: rgba(248, 250, 252, 0.74);
}

.central-execucao-empty i {
    font-size: 1.45rem;
    color: var(--t-accent);
}

.central-execucao-empty strong {
    color: var(--text-color);
    font-size: 1rem;
}

.central-execucao-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.central-execucao-preview-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.central-execucao-preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.central-execucao-preview-card__title {
    color: var(--text-color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.central-execucao-preview-card strong {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.45;
}

.central-execucao-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.central-execucao-pending-list span {
    position: relative;
    padding-left: 1rem;
    color: var(--text-color-secondary);
    line-height: 1.55;
}

.central-execucao-pending-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--orange-500);
}

.central-execucao-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.central-execucao-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.central-execucao-list-row__main,
.central-execucao-list-row__aside,
.central-execucao-list-row__title {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.central-execucao-list-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.central-execucao-list-row__aside {
    width: min(320px, 100%);
    align-items: flex-end;
    text-align: right;
}

.central-execucao-list-row__title strong {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 960px) {
    .clausula-execucao-layout,
    .clausula-execucao-summary-strip,
    .central-execucao-layout,
    .central-execucao-filter-grid,
    .central-execucao-summary-strip,
    .central-execucao-summary-strip--workspace,
    .central-execucao-preview-grid,
    .central-execucao-preview-grid--secondary,
    .clausula-execucao-summary-grid,
    .clausula-execucao-rule-meta,
    .clausula-execucao-mini-grid,
    .clausula-execucao-consolidado-grid,
    .clausula-execucao-consolidado-panels,
    .clausula-execucao-automation-summary,
    .central-execucao-focus-grid,
    .central-execucao-detail-grid,
    .central-execucao-clause-cards {
        grid-template-columns: 1fr;
    }

    .central-execucao-panel__header,
    .central-execucao-clause-card__header,
    .central-execucao-hero,
    .central-execucao-toolbar,
    .central-execucao-list-row,
    .central-execucao-list-row__aside,
    .clausula-execucao-hero,
    .clausula-execucao-workspace-head,
    .clausula-execucao-panel__header,
    .clausula-execucao-rule-card__header,
    .clausula-execucao-toolbar {
        flex-direction: column;
    }

    .central-execucao-list-row__aside {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .clausula-execucao-toolbar__actions {
        justify-content: flex-start;
    }

    .central-execucao-tree__children {
        padding-left: 1.2rem;
    }

    .central-execucao-tree__children::before,
    .central-execucao-tree__clause::before {
        display: none;
    }
}

.tutorial-central-page {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.tutorial-central-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.tutorial-central-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.tutorial-central-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tutorial-central-summary-card,
.tutorial-central-nav,
.tutorial-central-section,
.tutorial-central-step,
.tutorial-central-field-card,
.tutorial-central-callout {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.tutorial-central-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
}

.tutorial-central-summary-card span,
.tutorial-central-section__kicker,
.tutorial-central-nav__title {
    color: var(--text-color-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tutorial-central-summary-card strong {
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.4;
}

.tutorial-central-summary-card small,
.tutorial-central-section__header p,
.tutorial-central-field-card span,
.tutorial-central-callout span,
.tutorial-central-step span,
.tutorial-central-figure figcaption {
    color: var(--text-color-secondary);
    line-height: 1.7;
}

.tutorial-central-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: flex-start;
}

.tutorial-central-nav {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 24px;
}

.tutorial-central-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.tutorial-central-nav a:hover {
    background: rgba(59, 130, 246, 0.09);
    color: var(--t-accent);
}

.tutorial-central-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.tutorial-central-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 28px;
}

.tutorial-central-section__header {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tutorial-central-section__header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.55rem;
    line-height: 1.3;
}

.tutorial-central-image-grid {
    display: grid;
    gap: 1rem;
}

.tutorial-central-image-grid--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tutorial-central-figure {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
}

.tutorial-central-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.tutorial-central-step-list,
.tutorial-central-field-grid {
    display: grid;
    gap: 0.9rem;
}

.tutorial-central-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.tutorial-central-step,
.tutorial-central-field-card,
.tutorial-central-callout {
    border-radius: 22px;
}

.tutorial-central-step,
.tutorial-central-field-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
}

.tutorial-central-step strong,
.tutorial-central-field-card strong,
.tutorial-central-callout strong {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.45;
}

.tutorial-central-callout {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    background: rgba(226, 232, 240, 0.45);
}

@media (max-width: 1100px) {
    .tutorial-central-summary,
    .tutorial-central-layout,
    .tutorial-central-image-grid--double,
    .tutorial-central-step-list,
    .tutorial-central-field-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-central-hero {
        flex-direction: column;
    }

    .tutorial-central-nav {
        position: static;
    }
}

@media print {
    #sidebar,
    .mobile-sidebar-trigger,
    .tutorial-central-nav,
    .tutorial-central-hero__actions {
        display: none !important;
    }

    .layout-wrapper,
    #content {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tutorial-central-page,
    .tutorial-central-section,
    .tutorial-central-summary-card,
    .tutorial-central-step,
    .tutorial-central-field-card,
    .tutorial-central-callout {
        box-shadow: none !important;
        background: #fff !important;
    }

    .tutorial-central-image {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ================================================================
   SindNex Tour - Tutorial assistido por pagina
   ================================================================ */

/* --- Estado global --- */
body.snx-tour-open {
    overflow: hidden;
}

.snx-tour {
    display: none;
}

.snx-tour--active {
    display: block;
}

/* --- Backdrop escuro --- */
.snx-tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 10000;
    transition: opacity .3s ease;
}

/* --- Spotlight (recorte claro) --- */
.snx-tour-spotlight {
    position: absolute;
    z-index: 10001;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .62);
    background: transparent;
    transition: top .4s ease, left .4s ease, width .4s ease, height .4s ease;
    pointer-events: none;
}

/* --- Container do guia (avatar + balao) --- */
.snx-tour-guide {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10002;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    pointer-events: auto;
}

/* --- Balao de fala estilo HQ --- */
.snx-tour-bubble {
    position: relative;
    background: var(--t-surface-card, #fff);
    color: var(--t-text-color, #333);
    border-radius: 18px;
    padding: 20px 22px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .22), 0 0 0 1px var(--t-surface-border, rgba(0,0,0,.08));
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 80px;
    margin-right: -20px;
    animation: snxBubbleIn .35s ease;
}

/* Rabo do balao apontando para o avatar (direita) */
.snx-tour-bubble::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: -12px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid var(--t-surface-card, #fff);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,.08));
}

.snx-tour-bubble-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--t-text-secondary, #888);
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.snx-tour-bubble-close:hover {
    background: var(--t-surface-hover, rgba(0,0,0,.06));
    color: var(--t-text-color, #333);
}

.snx-tour-bubble-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    padding-right: 24px;
    color: var(--t-text-color, #222);
}

.snx-tour-bubble-text {
    font-size: .91rem;
    line-height: 1.55;
    color: var(--t-text-secondary, #555);
    margin-bottom: 14px;
}

.snx-tour-bubble-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.snx-tour-counter {
    font-size: .8rem;
    color: var(--t-text-secondary, #999);
    white-space: nowrap;
}

.snx-tour-bubble-actions {
    display: flex;
    gap: 8px;
}

/* --- Botoes --- */
.snx-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}

.snx-tour-btn:active {
    transform: scale(.96);
}

.snx-tour-btn--prev {
    background: var(--t-surface-hover, #eee);
    color: var(--t-text-color, #333);
}

.snx-tour-btn--prev:hover {
    background: var(--t-surface-border, #ddd);
}

.snx-tour-btn--next {
    background: var(--t-accent, #4f8cff);
    color: #fff;
}

.snx-tour-btn--next:hover {
    filter: brightness(1.08);
}

/* --- Barra de progresso --- */
.snx-tour-progress {
    margin-top: 10px;
    height: 4px;
    border-radius: 4px;
    background: var(--t-surface-hover, #eee);
    overflow: hidden;
}

.snx-tour-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--t-accent, #4f8cff);
    transition: width .4s ease;
}

/* --- Avatar --- */
.snx-tour-avatar {
    width: 294px;
    height: 490px;
    flex-shrink: 0;
    filter: drop-shadow(-4px -2px 12px rgba(0,0,0,.22));
}

.snx-tour-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
}

.snx-tour-avatar--bounce {
    animation: snxAvatarBounce .5s ease;
}

/* --- Container de acoes do header da sidebar --- */
.sidebar-brand-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* --- Botao de tour na sidebar --- */
.sidebar-tour-trigger {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--t-sidebar-text) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%),
        rgba(var(--t-accent-rgb, 51, 65, 85), 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    flex-shrink: 0;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.sidebar-tour-trigger:hover,
.sidebar-tour-trigger:focus-visible {
    color: var(--t-sidebar-hover-text) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%),
        rgba(var(--t-accent-rgb, 51, 65, 85), 0.18);
    border-color: rgba(255, 255, 255, 0.14);
    transform: scale(1.06);
}

.sidebar-tour-trigger .pi {
    font-size: 0.95rem;
    line-height: 1;
}

/* --- Animacoes --- */
@keyframes snxBubbleIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes snxAvatarBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    50%  { transform: translateY(0); }
    70%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .snx-tour-guide {
        bottom: 0;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-end;
    }

    .snx-tour-bubble {
        min-width: 0;
        max-width: calc(100vw - 140px);
        margin-bottom: 12px;
        margin-right: 8px;
    }

    .snx-tour-bubble::after {
        /* Rabo aponta para baixo no mobile */
        bottom: -12px;
        right: 40px;
        left: auto;
        border-top: 14px solid var(--t-surface-card, #fff);
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-bottom: none;
    }

    .snx-tour-avatar {
        width: 130px;
        height: 217px;
    }
}
