:root {
    --shell-navy: #0f2f57;
    --shell-navy-strong: #0b2341;
    --shell-accent: #2f6f67;
    --shell-accent-soft: rgba(47, 111, 103, 0.12);
    --shell-border: rgba(148, 163, 184, 0.22);
    --shell-bg: #f1f5f9;
    --shell-text: #0f172a;
    --shell-muted: #64748b;
    --shell-panel-border: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] {
    color-scheme: dark;
    --shell-navy: #071b35;
    --shell-navy-strong: #041020;
    --shell-accent: #ed3237;
    --shell-accent-soft: rgba(237, 50, 55, 0.16);
    --shell-border: rgba(148, 163, 184, 0.26);
    --shell-bg: #061a35;
    --shell-text: #e5edf7;
    --shell-muted: #9aa9bd;
    --shell-panel-border: rgba(71, 85, 105, 0.72);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background: var(--shell-bg);
    color: var(--shell-text);
}

.shadow-panel {
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.app-body {
    min-height: 100vh;
}

.app-root {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(47, 111, 103, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef4f3 100%);
}

.app-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.app-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 86rem;
    margin: 0 auto;
    min-height: 2.95rem;
    padding: 0.28rem 1rem;
}

.app-topbar-start,
.app-topbar-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-topbar-start {
    min-width: 0;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.sidebar-collapse-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.sidebar-collapse-toggle:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.sidebar-collapse-icon {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
}

.sidebar-toggle-label {
    font-size: 1.25rem;
    line-height: 1;
}

.app-title-wrap {
    min-width: 0;
}

.app-context-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #94a3b8;
}

.app-page-title {
    margin: 0.15rem 0 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #020617;
}

.app-page-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.84rem;
    color: #64748b;
}

.topbar-meta {
    min-width: 118px;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 0.34rem 0.8rem;
    text-align: right;
}

.topbar-meta-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #94a3b8;
}

.topbar-meta-value {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
}

.topbar-logout {
    display: inline-flex;
    align-items: center;
    border-radius: 1rem;
    background: #020617;
    padding: 0.5rem 0.82rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: background 150ms ease;
}

.topbar-logout:hover {
    background: #1e293b;
}

.topbar-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.48rem 0.72rem;
    color: #475569;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.topbar-theme-toggle:hover,
.topbar-theme-toggle:focus-visible {
    border-color: rgba(47, 111, 103, 0.35);
    color: #0f172a;
}

.topbar-theme-toggle-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.topbar-theme-toggle-value {
    font-size: 0.82rem;
    font-weight: 800;
}

.app-shell {
    display: flex;
    max-width: 86rem;
    margin: 0 auto;
    padding-top: 2.95rem;
}

.app-sidebar {
    position: fixed;
    top: 2.95rem;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: 17.5rem;
    padding: 1.3rem 0.85rem 1rem;
    transform: translateX(-100%);
    transition: transform 180ms ease;
}

.app-sidebar-card {
    border-radius: 2rem;
    padding: 1.15rem 1rem;
    color: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.95rem;
}

.sidebar-brand-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.sidebar-brand-logo-shell {
    position: relative;
    display: inline-flex;
}

.sidebar-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #ffffff;
    color: #020617;
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-brand-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    object-fit: contain;
    background: #ffffff;
}

.sidebar-switch-company-btn {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.28);
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.sidebar-switch-company-btn svg {
    width: 0.72rem;
    height: 0.72rem;
}

.sidebar-switch-company-btn:hover {
    transform: translateY(-1px);
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.9);
}

.sidebar-switch-company-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
}

.sidebar-sync-form {
    display: inline-flex;
}

.sidebar-sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.sidebar-sync-btn svg {
    width: 1rem;
    height: 1rem;
}

.sidebar-sync-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-sync-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
}

.sidebar-brand-copy {
    min-width: 0;
}

.sidebar-kicker,
.sidebar-user-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.sidebar-brand-name,
.sidebar-user-name {
    margin: 0.45rem 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-brand-subtitle,
.sidebar-user-role {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: #cbd5e1;
}

.sidebar-session-card {
    margin-top: 0.95rem;
    border-radius: 1.6rem;
    padding: 0.95rem;
}

.sidebar-nav {
    margin-top: 1.1rem;
}

.sidebar-group {
    margin-top: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.45rem 0.65rem;
}

.sidebar-group:first-child {
    margin-top: 0;
}

.sidebar-group-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.45rem 0.2rem;
}

.sidebar-group-summary::-webkit-details-marker {
    display: none;
}

.sidebar-group-header,
.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-group-title,
.sidebar-link-label {
    font-size: 0.88rem;
    font-weight: 700;
}

.sidebar-group-state,
.sidebar-link-state {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.sidebar-group-body {
    margin-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.sidebar-group .sidebar-link {
    margin-top: 0.25rem;
}

.sidebar-link {
    border-radius: 1rem;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
}

.app-main {
    min-width: 0;
    flex: 1 1 auto;
    padding: 1.1rem 1rem;
}

.app-main-inner {
    max-width: 78rem;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 1.1rem;
}

.app-body.sidebar-collapsed .sidebar-collapse-icon {
    transform: rotate(180deg);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    background: rgba(2, 6, 23, 0.4);
}

.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1rem;
    font-size: 0.92rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.flash-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.flash-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.flash-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.flash-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #075985;
}

.flash-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.flash-message {
    margin: 0.25rem 0 0;
    line-height: 1.6;
}

.flash-close {
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 0.15rem 0.45rem;
    font-size: 1.15rem;
    line-height: 1;
    color: inherit;
    opacity: 0.65;
    cursor: pointer;
}

.flash-close:hover {
    opacity: 1;
}

.shell-grid {
    min-height: calc(100vh - 4rem);
}

.page-shell {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
    backdrop-filter: blur(18px);
}

.sidebar-shell {
    background: linear-gradient(180deg, var(--shell-navy) 0%, var(--shell-navy-strong) 100%);
}

.sidebar-badge {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.menu-item-active {
    background: rgba(255, 255, 255, 0.12);
    border-left: 3px solid #ffffff;
    color: #ffffff;
}

.menu-item-idle {
    color: rgba(226, 232, 240, 0.82);
}

.menu-item-idle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.88);
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
}

.section-chip::before {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--shell-accent);
}

.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

.stat-value {
    margin-top: 0.85rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.stat-sub {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    color: #475569;
}

.stat-bar {
    margin-top: 0.9rem;
    height: 0.42rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.stat-bar>span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.page-grid {
    display: grid;
    gap: 1.5rem;
}

.soft-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.soft-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.soft-card-text {
    margin-top: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.7;
    color: #475569;
}

.info-list {
    display: grid;
    gap: 0.75rem;
}

.info-list-item {
    border-radius: 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
    padding: 0.9rem 1rem;
}

.info-list-item strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.info-list-item span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #64748b;
}

.form-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-toolbar-note {
    max-width: 36rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sticky-actions {
    position: sticky;
    bottom: 0.75rem;
}

.empty-state {
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 2rem;
    text-align: center;
}

.tab-button {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    color: #475569;
    transition: 150ms ease;
}

.tab-button:hover {
    border-color: rgba(47, 111, 103, 0.26);
    color: #214c47;
}

.tab-button.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

[data-sidebar].is-open {
    transform: translateX(0);
}

[data-sidebar-backdrop].is-open {
    display: block;
}

@media (min-width: 640px) {
    .app-topbar-inner {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .app-main {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .sidebar-toggle {
        display: none;
    }

    .sidebar-collapse-toggle {
        display: inline-flex;
    }

    .app-sidebar {
        position: static;
        top: auto;
        bottom: auto;
        flex: 0 0 17.5rem;
        transform: none;
        transition: flex-basis 180ms ease, width 180ms ease, padding 180ms ease, opacity 180ms ease;
    }

    .app-main {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .page-grid--aside {
        grid-template-columns: minmax(0, 1fr) 248px;
    }

    .app-body.sidebar-collapsed .app-sidebar {
        flex: 0 0 0;
        width: 0;
        padding-right: 0;
        padding-left: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .app-body.sidebar-collapsed .app-main {
        padding-left: 1.25rem;
    }
}

.func-form {
    gap: 1.25rem;
}

.func-form-main {
    gap: 1.25rem;
}

.func-tabs-card {
    padding: 0.8rem;
}

.func-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.func-operational-panel {
    gap: 1rem;
}

.func-photo-card {
    padding: 0.9rem;
}

.func-photo-preview {
    height: 11rem;
}

.func-form-grid {
    gap: 0.85rem;
}

.func-operational-extra {
    margin-top: 1rem;
    padding: 1rem;
}

.func-operational-checks {
    margin-top: 0.9rem;
    gap: 0.75rem;
}

.func-operational-check {
    padding: 0.9rem 1rem;
}

.func-aside {
    gap: 1rem;
}

.func-summary-card .info-list,
.func-actions-card .info-list {
    gap: 0.6rem;
}

.func-actions-card .soft-card-text {
    margin-top: 0.45rem;
}

.func-summary-card .info-list-item,
.func-actions-card .info-list-item {
    padding: 0.8rem 0.9rem;
}

.func-summary-card .info-list-item strong,
.func-actions-card .info-list-item strong {
    font-size: 0.84rem;
}

.func-summary-card .info-list-item span,
.func-actions-card .info-list-item span {
    font-size: 0.78rem;
}

.func-list-top-card {
    padding: 0.65rem 0.95rem;
}

.func-list-top-card .form-toolbar {
    gap: 0.85rem;
    align-items: center;
}

.func-list-top-card h2 {
    margin-top: 0;
    font-size: 1.85rem;
}

.func-list-top-card p {
    margin-bottom: 0;
}

.func-list-top-card .actions-row {
    align-self: center;
}

.func-metrics-grid {
    gap: 0.9rem;
}

.func-metrics-grid .stat-card {
    padding: 1rem 1.05rem;
}

.func-metrics-grid .stat-value {
    margin-top: 0.55rem;
    font-size: 1.65rem;
}

.func-metrics-grid .stat-sub {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.5;
}

.func-filter-card {
    padding: 0.8rem 0.95rem;
}

.func-filter-collapse {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.func-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.func-filter-summary::-webkit-details-marker {
    display: none;
}

.func-filter-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.func-filter-summary-title::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 150ms ease;
}

.func-filter-collapse[open] .func-filter-summary-title::before {
    transform: rotate(-135deg) translateY(-1px);
}

.func-filter-summary-state {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.func-filter-collapse[open] .func-filter-summary-state {
    color: #2f6f67;
}

.func-filter-form {
    margin-top: 0.75rem;
}

.func-filter-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr) auto;
    align-items: end;
}

.func-table-shell {
    margin-top: 0.1rem;
}

.func-filter-card .soft-card-title {
    font-size: 1rem;
}

.func-filter-card .actions-row {
    gap: 0.5rem;
}

.func-filter-actions {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    white-space: nowrap;
}

.func-table-shell .form-toolbar {
    gap: 0.6rem;
}

.func-table-shell .soft-card-title {
    font-size: 1rem;
}

.func-table-shell .form-toolbar-note {
    font-size: 0.84rem;
}

.func-table-shell thead th {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    font-size: 0.66rem;
}

.func-table-shell tbody td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.92rem;
}

.func-table-shell tbody .rounded-2xl {
    border-radius: 0.85rem;
}

.func-table-shell tbody .h-12 {
    height: 2.35rem;
}

/* ============================================================
   Ações em lote (funcionários)
   ============================================================ */
.lote-ident-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: end;
}

.lote-ident-field {
    min-width: 0;
}

.lote-ident-field--grow {
    min-width: 0;
}

@media (min-width: 1024px) {
    .lote-ident-actions {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .lote-ident-field--escopo {
        grid-column: span 3;
    }

    .lote-ident-field--campo {
        grid-column: span 4;
    }

    .lote-ident-field--operacao {
        grid-column: span 2;
    }

    .lote-ident-field--valor {
        grid-column: span 3;
    }

    .lote-ident-field--motivo {
        grid-column: 1 / span 10;
    }

    .lote-ident-field--apply {
        grid-column: 11 / span 2;
    }

    .lote-ident-field--apply>button {
        width: 100%;
    }
}

/* ============================================================
   Funcionários: formulário mais condensado (menos rolagem)
   ============================================================ */
.func-form--dense {
    gap: 0.65rem;
}

.func-form--dense> :not([hidden])~ :not([hidden]) {
    margin-top: 0.65rem !important;
}

.func-form--dense .func-form-main--dense> :not([hidden])~ :not([hidden]) {
    margin-top: 0.65rem !important;
}

.func-form--dense .func-tabs-card {
    padding: 0.55rem;
}

.func-form--dense .func-tab-row {
    gap: 0.4rem;
}

.func-form--dense .tab-button {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.9rem !important;
}

.func-form--dense .func-operational-panel {
    gap: 0.6rem;
}

.func-form--dense .func-photo-card {
    padding: 0.55rem;
}

.func-form--dense .func-photo-preview {
    height: 7.75rem;
}

.func-form--dense .func-form-grid {
    gap: 0.5rem;
}

.func-form--dense .func-operational-extra {
    margin-top: 0.55rem;
    padding: 0.6rem;
}

.func-form--dense .func-operational-checks {
    margin-top: 0.55rem;
    gap: 0.45rem;
}

.func-form--dense .func-operational-check {
    padding: 0.55rem 0.65rem;
}

.func-form--dense .mb-6 {
    margin-bottom: 0.85rem !important;
}

.func-form--dense .func-block-head {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
}

.func-form--dense .func-block-body {
    padding: 0.65rem;
    gap: 0.6rem !important;
}

.func-form--dense label.mb-2 {
    margin-bottom: 0.35rem !important;
}

.func-form--dense label.mb-1 {
    margin-bottom: 0.25rem !important;
}

.func-form--dense input:not([type='checkbox']):not([type='radio']),
.func-form--dense select,
.func-form--dense textarea {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}

.func-table-shell tbody .w-12 {
    width: 2.35rem;
}

.func-table-shell tbody td:nth-child(3),
.func-table-shell tbody td:nth-child(4) {
    white-space: nowrap;
}

.func-table-shell tbody .text-xs {
    font-size: 0.72rem;
}

.func-table-shell tbody .font-semibold {
    font-weight: 600;
}

.func-table-shell tbody .gap-3 {
    gap: 0.65rem;
}

.func-table-shell tbody .px-3.py-2 {
    padding: 0.55rem 0.85rem;
}

.func-table-shell tbody td:last-child .px-3.py-2 {
    padding: 0.42rem 0.72rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.compact-top-card {
    padding: 0.7rem 0.95rem;
}

.compact-top-card .form-toolbar {
    gap: 0.8rem;
    align-items: center;
}

.compact-top-card h2 {
    margin-top: 0;
}

.compact-filter-card {
    padding: 0.75rem 0.95rem;
}

.compact-filter-collapse {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.compact-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.compact-filter-summary::-webkit-details-marker {
    display: none;
}

.compact-filter-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.compact-filter-summary-title::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 150ms ease;
}

.compact-filter-collapse[open] .compact-filter-summary-title::before {
    transform: rotate(-135deg) translateY(-1px);
}

.compact-filter-summary-state {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.compact-filter-collapse[open] .compact-filter-summary-state {
    color: #2f6f67;
}

.compact-filter-form {
    margin-top: 0.7rem;
}

.compact-filter-grid {
    display: grid;
    gap: 0.75rem;
    align-items: end;
}

.compact-filter-grid--4 {
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
}

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

.compact-filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.compact-filter-label--placeholder {
    visibility: hidden;
}

.compact-filter-field-stack {
    display: grid;
    gap: 0.45rem;
}

.compact-filter-control {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 1rem;
    background: #f8fafc;
    padding: 0.78rem 0.95rem;
    font: inherit;
    font-size: 0.88rem;
    color: #0f172a;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.compact-filter-control:focus {
    outline: none;
    border-color: #2f6f67;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 111, 103, 0.12);
}

.compact-filter-control--listbox {
    min-height: 11.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

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

.compact-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.78rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
    text-decoration: none;
}

.compact-filter-btn:hover {
    border-color: rgba(47, 111, 103, 0.35);
    background: rgba(47, 111, 103, 0.08);
    color: #0f172a;
}

.form-help {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #64748b;
}

.form-help a {
    color: #2f6f67;
    font-weight: 700;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.compact-stats-grid {
    gap: 0.8rem;
}

.compact-stats-grid .stat-card {
    padding: 0.9rem 1rem;
}

.compact-stats-grid .stat-value {
    margin-top: 0.45rem;
    font-size: 1.65rem;
}

.compact-stats-grid .stat-sub {
    margin-top: 0.35rem;
    font-size: 0.82rem;
}

.compact-table-shell .form-toolbar {
    gap: 0.6rem;
}

.compact-table-shell .soft-card-title {
    font-size: 1rem;
}

.compact-table-scroll {
    max-height: 520px;
    overflow: auto;
}

.compact-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(226, 232, 240, 0.9);
}

.compact-table-shell thead th {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    font-size: 0.66rem;
}

.compact-table-shell tbody td {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    font-size: 0.9rem;
}

.compact-table-shell tbody .px-3.py-2 {
    padding: 0.42rem 0.72rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.entity-form-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.entity-form-card {
    padding: 1rem;
}

.entity-form-section {
    display: grid;
    gap: 0.9rem;
}

.entity-form-section-head {
    display: grid;
    gap: 0.3rem;
}

.entity-form-section-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2f6f67;
}

.entity-form-section-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #64748b;
}

.entity-form-grid-3,
.entity-form-grid-4 {
    display: grid;
    gap: 0.85rem;
}

.entity-field {
    display: grid;
    gap: 0.42rem;
}

.entity-field--span-2 {
    grid-column: span 2;
}

.entity-field--span-3 {
    grid-column: span 3;
}

.entity-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.entity-control {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 1rem;
    background: #f8fafc;
    padding: 0.78rem 0.95rem;
    font: inherit;
    color: #0f172a;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.entity-control:focus {
    outline: none;
    border-color: #2f6f67;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 111, 103, 0.12);
}

.entity-primary-btn,
.entity-secondary-btn,
.entity-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.75rem 1.1rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.entity-primary-btn {
    border: 0;
    background: #0f172a;
    color: #ffffff;
}

.entity-primary-btn:hover {
    background: #0b1222;
}

.entity-secondary-btn {
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    color: #475569;
}

.entity-secondary-btn:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.entity-danger-btn {
    border: 0;
    background: #dc2626;
    color: #ffffff;
}

.entity-danger-btn:hover {
    background: #b91c1c;
}

.entity-checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #334155;
}

.entity-checkbox-field input {
    width: 14px;
    height: 14px;
    min-height: unset;
}

.entity-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.3rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.confirm-shell {
    max-width: 36rem;
    margin: 0 auto;
}

.confirm-meta {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: #f8fafc;
    font-size: 0.88rem;
    color: #475569;
}

.confirm-meta strong {
    color: #0f172a;
}

@media (min-width: 1024px) {
    .func-list-top-card .form-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .compact-top-card .form-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .entity-form-grid-3 {
        grid-template-columns: 220px minmax(0, 1fr) 200px;
    }

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

.page-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.page-sub {
    margin-top: 0.22rem;
    font-size: 0.88rem;
    color: #475569;
}

.page-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-green {
    background: #ecfdf5;
    color: #047857;
}

.global-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1200;
    backdrop-filter: blur(6px);
    padding: 5rem 1.5rem 2rem;
}

.global-modal-overlay.is-open {
    display: flex;
}

.global-modal-panel {
    width: min(720px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
}

.employee-modal-panel {
    width: min(1180px, 96vw);
}

.global-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
}

.global-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.global-modal-body {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
}

.global-modal-search {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #f8fafc;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
}

.input-invalid {
    border-color: rgba(244, 63, 94, 0.65) !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12) !important;
}

.employee-modal-tools {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.employee-modal-count {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.employee-modal-filters {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.employee-modal-filter {
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.22rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #475569;
    transition: 160ms ease;
    cursor: pointer;
}

.employee-modal-filter:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: #eff6ff;
    color: #1d4ed8;
}

.employee-modal-filter.is-active {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.employee-modal-filter--ativo.is-active {
    border-color: rgba(134, 239, 172, 0.9);
    background: #f0fdf4;
    color: #166534;
}

.employee-modal-filter--afastado.is-active {
    border-color: rgba(253, 186, 116, 0.9);
    background: #fff7ed;
    color: #9a3412;
}

.employee-modal-filter--inativo.is-active {
    border-color: rgba(254, 202, 202, 0.9);
    background: #fef2f2;
    color: #991b1b;
}

.global-modal-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
    max-height: 55vh;
    overflow: auto;
    padding-right: 0.25rem;
}

.employee-modal-panel .global-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-x: hidden;
}

.global-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    cursor: pointer;
    transition: 150ms ease;
}

.global-modal-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: #f8fafc;
}

.global-modal-item strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.global-modal-item span {
    font-size: 0.78rem;
    color: #64748b;
}

.employee-modal-header {
    display: grid;
    grid-template-columns: 72px 420px 120px 290px 110px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.75rem 0.3rem 0.75rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.employee-modal-row {
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: 72px 420px 120px 290px 110px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    cursor: pointer;
    transition: 150ms ease;
}

.employee-modal-row .employee-modal-cell--badge {
    justify-self: start;
}

.employee-modal-row:hover,
.employee-modal-row:focus-visible {
    border-color: rgba(59, 130, 246, 0.25);
    background: #f8fafc;
    outline: none;
}

.employee-modal-cell {
    font-size: 0.74rem;
    color: #334155;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-modal-cell--nome {
    font-weight: 700;
    color: #0f172a;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .employee-modal-header,
    .employee-modal-row {
        grid-template-columns: 64px 1.65fr 110px 1.2fr 100px;
        gap: 0.45rem;
    }
}

.employee-modal-cell--muted {
    font-size: 0.7rem;
    color: #64748b;
}

.employee-modal-cell--badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #f8fafc;
    color: #475569;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-modal-cell--badge.employee-modal-cell--badge-inativo {
    border-color: rgba(254, 202, 202, 0.9);
    background: #fef2f2;
    color: #991b1b;
}

.employee-modal-cell--badge.employee-modal-cell--badge-ativo {
    border-color: rgba(134, 239, 172, 0.9);
    background: #f0fdf4;
    color: #166534;
}

.employee-modal-cell--badge.employee-modal-cell--badge-afastado {
    border-color: rgba(253, 186, 116, 0.9);
    background: #fff7ed;
    color: #9a3412;
}

.employee-modal-loading {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(203, 213, 225, 0.95);
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.global-modal-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.afastamentos-modal {
    width: min(900px, 94vw);
}

.afastamentos-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1.2fr 0.8fr;
}

.afastamentos-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.1rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.afastamentos-card-head {
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.afastamentos-list {
    background: #ffffff;
}

.afastamentos-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
}

.afastamentos-body {
    max-height: 320px;
    overflow-y: auto;
}

.afastamentos-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

.afastamentos-row.is-active {
    background: #eef6ff;
    border-left: 3px solid #38bdf8;
    padding-left: 0.85rem;
}

.afastamentos-empty {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.afastamentos-form {
    background: #f8fafc;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

.afastamentos-field label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.afastamentos-field input,
.afastamentos-field select {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #ffffff;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

.afastamentos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.afastamentos-btn {
    border-radius: 0.9rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    padding: 0.5rem 0.9rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: #475569;
    transition: 150ms ease;
}

.afastamentos-btn.primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.afastamentos-btn.danger {
    border-color: #fecdd3;
    color: #b91c1c;
}

.afastamentos-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.afastamentos-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.4rem;
}

.dependentes-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dependentes-head {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.7fr 0.6fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dependentes-body {
    max-height: 320px;
    overflow-y: auto;
}

.dependentes-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.7fr 0.6fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    align-items: center;
    font-size: 0.88rem;
    color: #475569;
}

.dependentes-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dependentes-empty {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.dependentes-modal {
    width: min(980px, 95vw);
}

.dependentes-modal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dependentes-modal-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.1rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.dependentes-modal-title {
    padding: 0.65rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dependentes-modal-body {
    padding: 0.85rem 0.95rem;
    display: grid;
    gap: 0.65rem;
}

.dependentes-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (max-width: 900px) {
    .afastamentos-grid {
        grid-template-columns: 1fr;
    }

    .dependentes-head,
    .dependentes-row {
        grid-template-columns: 1fr;
    }

    .dependentes-actions {
        justify-content: flex-start;
    }
}

.func-block-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.func-block-head {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #1e3a8a;
    background: #eff6ff;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.func-block-body {
    padding: 1rem;
}

.badge-amber {
    background: #fffbeb;
    color: #b45309;
}

.badge-red {
    background: #fff1f2;
    color: #be123c;
}

.badge-gray {
    background: #f1f5f9;
    color: #64748b;
}

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

.kpi-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.9rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.kpi-label {
    font-size: 0.78rem;
    color: #475569;
}

.kpi-value {
    margin-top: 0.45rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    color: #020617;
}

.kpi-delta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #64748b;
}

.kpi-delta.up {
    color: #047857;
}

.kpi-delta.down {
    color: #be123c;
}

.kpi-bar {
    margin-top: 0.55rem;
    height: 0.32rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.kpi-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.95s linear, background 0.25s ease;
}

.dash-bottom {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
}

.dash-right {
    display: grid;
    gap: 0.8rem;
}

.card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.9rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
}

.card-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2f6f67;
    text-decoration: none;
}

.card-action:hover {
    text-decoration: underline;
}

.chart-area {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.35rem;
    background: #f8fafc;
    padding: 0.7rem 0.75rem 0.45rem;
}

.chart-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.chart-label {
    font-size: 0.66rem;
    text-align: center;
    color: #64748b;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.6rem;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #475569;
}

.chart-legend-dot,
.alert-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.dashboard-chart-point {
    cursor: pointer;
}

.dashboard-chart-tooltip {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    max-width: 11rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.94);
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.dashboard-chart-tooltip.hidden {
    display: none;
}

.alert-list {
    display: grid;
    gap: 0.55rem;
}

.alert-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
    padding: 0.68rem 0.82rem;
    text-decoration: none;
}

.alert-item.danger .alert-dot {
    background: #dc2626;
}

.alert-item.warn .alert-dot {
    background: #d97706;
}

.alert-item.ok .alert-dot {
    background: #16a34a;
}

.alert-item.info .alert-dot {
    background: #378add;
}

.alert-body {
    min-width: 0;
}

.alert-text {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
}

.alert-sub {
    margin-top: 0.12rem;
    font-size: 0.76rem;
    color: #64748b;
}

.alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.58rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.shortcut-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.shortcut-label {
    font-size: 0.84rem;
    color: #334155;
}

.shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    padding: 0.34rem 0.64rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    text-decoration: none;
}

.shortcut-btn:hover {
    border-color: rgba(47, 111, 103, 0.32);
    color: #214c47;
}

@media (max-width: 1023px) {
    .sidebar-toggle {
        display: inline-flex;
    }

    .topbar-meta-desktop {
        display: none;
    }
}

@media (max-width: 767px) {
    .app-page-subtitle {
        display: none;
    }

    .app-topbar-inner,
    .app-topbar-end {
        gap: 0.5rem;
    }

    .topbar-logout {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .app-main-inner {
        padding: 1rem;
        border-radius: 1.5rem;
    }
}

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

    .dash-bottom {
        grid-template-columns: 1fr;
    }

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

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

    .func-filter-actions {
        justify-content: flex-start;
    }

    .compact-filter-grid--4,
    .compact-filter-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-hd {
        flex-direction: column;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

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

@media (min-width: 1200px) {
    .func-operational-panel {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-page-subtitle {
        display: none;
    }
}

.auth-body {
    background: #061a35;
}

.auth-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem 1.5rem 4.5rem;
    background:
        linear-gradient(90deg, rgba(3, 13, 30, 0.42) 0%, rgba(3, 13, 30, 0.24) 54%, rgba(3, 13, 30, 0.5) 100%),
        url("../img/login-background-pontual-dark.png") center / cover no-repeat,
        #061a35;
}

.auth-wrap {
    width: 100%;
    max-width: 66rem;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) 24rem;
    gap: clamp(2.75rem, 6vw, 5rem);
    align-items: center;
}

.auth-aside {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.auth-aside h1 {
    margin: 0.45rem 0 0;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.auth-company-logo {
    display: block;
    width: min(38rem, 112%);
    height: auto;
    margin: 0.25rem 0 0 -3.1rem;
}

.auth-footer {
    position: absolute;
    right: 1.5rem;
    bottom: 1.4rem;
    left: 1.5rem;
    text-align: center;
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover,
.auth-footer a:focus-visible {
    color: #ed3237;
    text-decoration: underline;
}

.auth-aside p {
    margin: 1rem 0 0;
    max-width: 30rem;
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

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

.auth-badge {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem 1.05rem;
}

.auth-badge-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.auth-badge-value {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.auth-badge-sub {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.54);
}

.auth-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
    padding: 1.75rem;
}

.auth-header {
    margin-bottom: 1rem;
}

.auth-header-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
}

.auth-header-title {
    margin-top: 0.35rem;
    font-size: 1.95rem;
    font-weight: 800;
    color: #0f172a;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

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

.auth-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.auth-control {
    width: 100%;
    min-height: 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.95rem;
    background: #f8fafc;
    padding: 0.85rem 1rem;
    font: inherit;
    color: #0f172a;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-body,
.auth-body .auth-card,
.auth-body .auth-control {
    color-scheme: light;
}

.auth-body .auth-control,
[data-theme="dark"] .auth-body .auth-control {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

.auth-body .auth-control::placeholder,
[data-theme="dark"] .auth-body .auth-control::placeholder {
    color: #94a3b8 !important;
}

.auth-body .auth-control:focus,
[data-theme="dark"] .auth-body .auth-control:focus {
    border-color: rgba(237, 50, 55, 0.5) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.12) !important;
}

.auth-body .auth-control:-webkit-autofill,
.auth-body .auth-control:-webkit-autofill:hover,
.auth-body .auth-control:-webkit-autofill:focus,
[data-theme="dark"] .auth-body .auth-control:-webkit-autofill,
[data-theme="dark"] .auth-body .auth-control:-webkit-autofill:hover,
[data-theme="dark"] .auth-body .auth-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    box-shadow: 0 0 0 1000px #f8fafc inset !important;
    caret-color: #0f172a;
}

.auth-control:focus {
    outline: none;
    border-color: #2f6f67;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 111, 103, 0.12);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.2rem;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 1rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 150ms ease, box-shadow 150ms ease;
}

.auth-submit:hover {
    background: #0b1222;
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(47, 111, 103, 0.18);
}

.auth-demo {
    margin-top: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.9rem 1rem;
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
        max-width: 26rem;
    }

    .auth-aside {
        display: none;
    }
}

[data-theme="dark"] body {
    background: var(--shell-bg);
    color: var(--shell-text);
}

[data-theme="dark"] .app-root {
    background:
        radial-gradient(circle at top left, rgba(237, 50, 55, 0.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.11), transparent 28%),
        linear-gradient(180deg, #061a35 0%, #031122 100%);
}

[data-theme="dark"] .app-topbar {
    border-bottom-color: rgba(71, 85, 105, 0.72);
    background: rgba(3, 13, 30, 0.88);
}

[data-theme="dark"] .sidebar-toggle,
[data-theme="dark"] .sidebar-collapse-toggle,
[data-theme="dark"] .topbar-theme-toggle,
[data-theme="dark"] .app-topbar [data-quick-nav-open] {
    border-color: rgba(71, 85, 105, 0.78) !important;
    background: rgba(15, 35, 64, 0.92) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] .sidebar-toggle:hover,
[data-theme="dark"] .sidebar-collapse-toggle:hover,
[data-theme="dark"] .topbar-theme-toggle:hover,
[data-theme="dark"] .topbar-theme-toggle:focus-visible,
[data-theme="dark"] .app-topbar [data-quick-nav-open]:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(22, 48, 84, 0.96) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .topbar-theme-toggle-label,
[data-theme="dark"] .app-context-label,
[data-theme="dark"] .topbar-meta-label {
    color: #8da0b8;
}

[data-theme="dark"] .app-page-title,
[data-theme="dark"] .topbar-meta-value {
    color: #f8fbff;
}

[data-theme="dark"] .app-page-subtitle {
    color: #9aa9bd;
}

[data-theme="dark"] .topbar-meta {
    border-color: rgba(71, 85, 105, 0.78);
    background: rgba(15, 35, 64, 0.82);
}

[data-theme="dark"] .topbar-logout,
[data-theme="dark"] .entity-primary-btn,
[data-theme="dark"] .auth-submit {
    background: #ed3237;
    color: #ffffff;
}

[data-theme="dark"] .topbar-logout:hover,
[data-theme="dark"] .entity-primary-btn:hover,
[data-theme="dark"] .auth-submit:hover {
    background: #c91f28;
}

[data-theme="dark"] .page-shell,
[data-theme="dark"] .soft-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .compact-filter-card,
[data-theme="dark"] .compact-table-shell,
[data-theme="dark"] .entity-form-card {
    border-color: rgba(86, 105, 132, 0.62);
    background: rgba(8, 27, 53, 0.84);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .section-chip,
[data-theme="dark"] .info-list-item,
[data-theme="dark"] .entity-checkbox-field {
    border-color: rgba(71, 85, 105, 0.72);
    background: rgba(15, 35, 64, 0.78);
    color: #dbe7f5;
}

[data-theme="dark"] .soft-card-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .info-list-item strong,
[data-theme="dark"] .compact-filter-summary-title,
[data-theme="dark"] .entity-label,
[data-theme="dark"] .page-title,
[data-theme="dark"] .app-body .text-slate-950 {
    color: #f8fbff;
}

[data-theme="dark"] .soft-card-text,
[data-theme="dark"] .stat-sub,
[data-theme="dark"] .section-chip,
[data-theme="dark"] .compact-filter-summary-state,
[data-theme="dark"] .compact-filter-label,
[data-theme="dark"] .entity-form-section-text,
[data-theme="dark"] .page-sub,
[data-theme="dark"] .form-help {
    color: #9aa9bd;
}

[data-theme="dark"] .entity-form-section-title,
[data-theme="dark"] .compact-filter-collapse[open] .compact-filter-summary-state,
[data-theme="dark"] .form-help a {
    color: #ff6b70;
}

[data-theme="dark"] .compact-filter-control,
[data-theme="dark"] .entity-control,
[data-theme="dark"] .auth-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    border-color: rgba(71, 85, 105, 0.8);
    background: rgba(3, 13, 30, 0.62);
    color: #edf4ff;
}

[data-theme="dark"] .compact-filter-control:focus,
[data-theme="dark"] .entity-control:focus,
[data-theme="dark"] .auth-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: rgba(237, 50, 55, 0.72);
    background: rgba(3, 13, 30, 0.86);
    box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.14);
}

[data-theme="dark"] .compact-filter-control::placeholder,
[data-theme="dark"] .entity-control::placeholder,
[data-theme="dark"] .auth-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #71849c;
}

[data-theme="dark"] .compact-filter-btn,
[data-theme="dark"] .entity-secondary-btn {
    border-color: rgba(71, 85, 105, 0.78);
    background: rgba(15, 35, 64, 0.82);
    color: #dbe7f5;
}

[data-theme="dark"] .compact-filter-btn:hover,
[data-theme="dark"] .entity-secondary-btn:hover {
    border-color: rgba(237, 50, 55, 0.45);
    background: rgba(237, 50, 55, 0.12);
    color: #ffffff;
}

[data-theme="dark"] .compact-table-scroll thead th,
[data-theme="dark"] table thead th {
    background: #0a1d38;
    color: #dbe7f5;
    box-shadow: inset 0 -1px 0 rgba(115, 132, 156, 0.58);
}

[data-theme="dark"] table tbody td {
    border-color: rgba(115, 132, 156, 0.42);
    color: #dbe7f5;
}

[data-theme="dark"] .form-toolbar {
    border-color: rgba(115, 132, 156, 0.34) !important;
}

[data-theme="dark"] table tbody tr {
    background: rgba(9, 29, 57, 0.48);
}

[data-theme="dark"] table tbody tr:hover {
    background: rgba(16, 45, 82, 0.72);
}

[data-theme="dark"] .app-body .bg-slate-950 {
    background-color: #ed3237 !important;
}

[data-theme="dark"] .app-body .hover\:bg-brand-600:hover {
    background-color: #c91f28 !important;
}

[data-theme="dark"] .app-body .bg-white,
[data-theme="dark"] .app-body .bg-slate-50 {
    background-color: rgba(8, 27, 53, 0.9) !important;
}

[data-theme="dark"] .app-body .bg-brand-50 {
    background-color: rgba(237, 50, 55, 0.12) !important;
}

[data-theme="dark"] .app-body .text-slate-900,
[data-theme="dark"] .app-body .text-slate-800,
[data-theme="dark"] .app-body .text-slate-700 {
    color: #f8fbff !important;
}

[data-theme="dark"] .app-body .text-slate-600,
[data-theme="dark"] .app-body .text-slate-500,
[data-theme="dark"] .app-body .text-slate-400 {
    color: #9aa9bd !important;
}

[data-theme="dark"] .app-body .border-slate-200,
[data-theme="dark"] .app-body .border-slate-300 {
    border-color: rgba(115, 132, 156, 0.5) !important;
}

[data-theme="dark"] .app-body .divide-slate-200>*+* {
    border-color: rgba(115, 132, 156, 0.38) !important;
}

[data-theme="dark"] .compact-table-scroll {
    scrollbar-color: rgba(148, 163, 184, 0.6) rgba(3, 13, 30, 0.7);
}

[data-theme="dark"] #mensal-page-root .mensal-metric-item,
[data-theme="dark"] #mensal-page-root .mensal-lote-assistente,
[data-theme="dark"] #mensal-page-root .mensal-resumo-item {
    border-color: rgba(115, 132, 156, 0.46) !important;
    background: rgba(5, 19, 40, 0.86) !important;
    color: #dbe7f5 !important;
    box-shadow: none !important;
}

[data-theme="dark"] #mensal-page-root .mensal-metric-item:hover,
[data-theme="dark"] #mensal-page-root .mensal-metric-item.is-active,
[data-theme="dark"] #mensal-page-root .mensal-evento-pill:hover,
[data-theme="dark"] #mensal-page-root .mensal-evento-pill.is-active {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(18, 45, 82, 0.92) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-metric-value,
[data-theme="dark"] #mensal-page-root .mensal-resumo-value,
[data-theme="dark"] #mensal-page-root .mensal-evento-cod,
[data-theme="dark"] #mensal-page-root .mensal-lote-title {
    color: #f8fbff !important;
}

[data-theme="dark"] #mensal-page-root .mensal-metric-label,
[data-theme="dark"] #mensal-page-root .mensal-resumo-label,
[data-theme="dark"] #mensal-page-root .mensal-resumo-empty,
[data-theme="dark"] #mensal-page-root .mensal-lote-preview,
[data-theme="dark"] #mensal-page-root .mensal-evento-desc {
    color: #9aa9bd !important;
}

[data-theme="dark"] #mensal-page-root .mensal-metric-bar {
    background: rgba(71, 85, 105, 0.64) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-evento-pill {
    border-color: rgba(115, 132, 156, 0.46) !important;
    background: rgba(10, 31, 61, 0.78) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-evento-horas {
    color: #8db8ff !important;
}

[data-theme="dark"] #mensal-page-root .mensal-lote-select,
[data-theme="dark"] #mensal-page-root .mensal-lote-btn,
[data-theme="dark"] #mensal-page-root .mensal-fila-btn,
[data-theme="dark"] #mensal-page-root .mensal-filtro-ativo-clear {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-lote-select:disabled,
[data-theme="dark"] #mensal-page-root .mensal-lote-btn:disabled,
[data-theme="dark"] #mensal-page-root .mensal-lote-btn--primary:disabled {
    border-color: rgba(71, 85, 105, 0.5) !important;
    background: rgba(6, 20, 41, 0.72) !important;
    color: #71849c !important;
}

[data-theme="dark"] #mensal-page-root .mensal-lote-btn--primary,
[data-theme="dark"] #mensal-page-root .mensal-consolidado-btn--primary {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: #ed3237 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #mensal-page-root .mensal-lote-btn--primary:hover,
[data-theme="dark"] #mensal-page-root .mensal-consolidado-btn--primary:hover {
    background: #c91f28 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-consolidado-btn,
[data-theme="dark"] #mensal-page-root .mensal-fila-btn {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.72) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-consolidado-btn.is-active {
    border-color: rgba(126, 162, 255, 0.62) !important;
    background: rgba(67, 97, 238, 0.28) !important;
    color: #c8d7ff !important;
}

[data-theme="dark"] #mensal-page-root .mensal-consolidado-pill {
    border-color: rgba(255, 124, 132, 0.5) !important;
    background: rgba(237, 50, 55, 0.16) !important;
    color: #ffc2c6 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-filtro-ativo,
[data-theme="dark"] #mensal-page-root .mensal-fila-bar {
    border-color: rgba(115, 132, 156, 0.34) !important;
    background: rgba(5, 19, 40, 0.92) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-table-scroll {
    background: #081b35 !important;
    scrollbar-color: rgba(148, 163, 184, 0.62) rgba(3, 13, 30, 0.72);
}

[data-theme="dark"] #mensal-page-root .mensal-table-scroll thead th {
    background: #07182f !important;
    color: #dbe7f5 !important;
    box-shadow: inset 0 -1px 0 rgba(115, 132, 156, 0.46) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-table-scroll tbody {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-tone--normal td {
    background-color: rgba(10, 31, 61, 0.88) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-tone--especial td {
    background-color: rgba(62, 43, 14, 0.78) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-tone--critico td {
    background-color: rgba(67, 22, 34, 0.78) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-weekend td {
    background-image: linear-gradient(0deg, rgba(67, 97, 238, 0.16), rgba(67, 97, 238, 0.16)) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-feriado td {
    background-color: rgba(74, 40, 14, 0.78) !important;
    background-image: linear-gradient(0deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.16)) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-tone--normal:hover td,
[data-theme="dark"] #mensal-page-root .mensal-row-tone--especial:hover td,
[data-theme="dark"] #mensal-page-root .mensal-row-tone--critico:hover td {
    background-color: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-row-active td,
[data-theme="dark"] #mensal-page-root .mensal-subrow-active td {
    box-shadow: inset 3px 0 0 rgba(237, 50, 55, 0.82) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-subrow-filler {
    background: rgba(5, 19, 40, 0.92) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-col-par-hora,
[data-theme="dark"] #mensal-page-root .mensal-col-par-situacao,
[data-theme="dark"] #mensal-page-root .mensal-col-intervalo,
[data-theme="dark"] #mensal-page-root .mensal-col-tratamento {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-par-cell--critico,
[data-theme="dark"] #mensal-page-root .mensal-table-scroll tbody td .text-rose-700 {
    color: #ff8589 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-col-par-situacao.mensal-par-cell--feriado {
    color: #7dd3fc !important;
    background-color: rgba(14, 116, 144, 0.26) !important;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.42) !important;
}

[data-theme="dark"] #mensal-page-root .mensal-table-scroll tbody td .text-slate-400 {
    color: #71849c !important;
}

[data-theme="dark"] #mensal-page-root .mensal-table-scroll tbody td .text-slate-800,
[data-theme="dark"] #mensal-page-root .mensal-table-scroll tbody td .text-emerald-700 {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #mensal-page-root .mensal-edit-link {
    border-color: rgba(115, 132, 156, 0.5) !important;
    color: #b9c8dc !important;
}

[data-theme="dark"] #mensal-page-root .mensal-edit-link:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #diario-page-root .diario-metrics-bar,
[data-theme="dark"] #diario-page-root .diario-metric-item,
[data-theme="dark"] #diario-page-root .diario-table-dense,
[data-theme="dark"] #diario-page-root .diario-situacao-option {
    border-color: rgba(86, 105, 132, 0.62) !important;
    background: rgba(8, 27, 53, 0.84) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #diario-page-root .diario-metric-item {
    background: rgba(5, 19, 40, 0.86) !important;
    box-shadow: none !important;
}

[data-theme="dark"] #diario-page-root .diario-metric-item:hover,
[data-theme="dark"] #diario-page-root .diario-metric-item.is-active {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(18, 45, 82, 0.92) !important;
}

[data-theme="dark"] #diario-page-root .diario-metric-value {
    color: #f8fbff !important;
}

[data-theme="dark"] #diario-page-root .diario-metric-label,
[data-theme="dark"] #diario-page-root .diario-metric-sub,
[data-theme="dark"] #diario-page-root .diario-table-hint,
[data-theme="dark"] #diario-page-root .diario-workflow-progress,
[data-theme="dark"] #diario-page-root .diario-situacao-filter-title {
    color: #9aa9bd !important;
}

[data-theme="dark"] #diario-page-root .diario-metric-sub--warn {
    color: #ff8589 !important;
}

[data-theme="dark"] #diario-page-root .diario-metric-bar {
    background: rgba(71, 85, 105, 0.64) !important;
}

[data-theme="dark"] #diario-page-root .diario-workflow-next,
[data-theme="dark"] #diario-page-root .diario-workflow-select,
[data-theme="dark"] #diario-page-root .diario-situacao-filter-clear,
[data-theme="dark"] #diario-page-root .diario-filtro-ativo-clear {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #diario-page-root .diario-workflow-next:hover,
[data-theme="dark"] #diario-page-root .diario-situacao-filter-clear:hover,
[data-theme="dark"] #diario-page-root .diario-filtro-ativo-clear:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #diario-page-root .diario-workflow-apply {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: #ed3237 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #diario-page-root .diario-workflow-apply:hover {
    background: #c91f28 !important;
}

[data-theme="dark"] #diario-page-root .diario-workflow-apply:disabled,
[data-theme="dark"] #diario-page-root .diario-workflow-next:disabled {
    border-color: rgba(71, 85, 105, 0.5) !important;
    background: rgba(6, 20, 41, 0.72) !important;
    color: #71849c !important;
}

[data-theme="dark"] #diario-page-root .diario-situacao-filter {
    border-top-color: rgba(115, 132, 156, 0.38) !important;
}

[data-theme="dark"] #diario-page-root .diario-situacao-option {
    border-radius: 999px;
    padding: 0.16rem 0.45rem;
    background: rgba(10, 31, 61, 0.6) !important;
}

[data-theme="dark"] #diario-page-root .diario-filtro-ativo {
    border-color: rgba(115, 132, 156, 0.34) !important;
    background: rgba(5, 19, 40, 0.92) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #diario-page-root .diario-filtro-chip {
    border-color: rgba(126, 162, 255, 0.52) !important;
    background: rgba(67, 97, 238, 0.24) !important;
    color: #c8d7ff !important;
}

[data-theme="dark"] #diario-page-root .diario-filtro-chip button {
    color: #dbe7ff !important;
}

[data-theme="dark"] #diario-page-root .diario-table-scroll {
    background: #081b35 !important;
    scrollbar-color: rgba(148, 163, 184, 0.62) rgba(3, 13, 30, 0.72);
}

[data-theme="dark"] #diario-page-root .diario-table-scroll thead th {
    background: #07182f !important;
    color: #dbe7f5 !important;
    box-shadow: inset 0 -1px 0 rgba(115, 132, 156, 0.46) !important;
}

[data-theme="dark"] #diario-page-root .diario-table-scroll tbody {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #diario-page-root .diario-row-tone--normal td {
    background-color: rgba(10, 31, 61, 0.88) !important;
}

[data-theme="dark"] #diario-page-root .diario-row-tone--especial td {
    background-color: rgba(62, 43, 14, 0.78) !important;
}

[data-theme="dark"] #diario-page-root .diario-row-tone--critico td {
    background-color: rgba(67, 22, 34, 0.78) !important;
}

[data-theme="dark"] #diario-page-root .diario-row-tone--normal:hover td,
[data-theme="dark"] #diario-page-root .diario-row-tone--especial:hover td,
[data-theme="dark"] #diario-page-root .diario-row-tone--critico:hover td {
    background-color: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] #diario-page-root .diario-row-active td {
    box-shadow: inset 3px 0 0 rgba(237, 50, 55, 0.82) !important;
}

[data-theme="dark"] #diario-page-root .diario-par-item,
[data-theme="dark"] #diario-page-root .diario-par-item--situacao,
[data-theme="dark"] #diario-page-root .diario-cell-matricula,
[data-theme="dark"] #diario-page-root .diario-cell-nome,
[data-theme="dark"] #diario-page-root .diario-cell-ht {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #diario-page-root .diario-par-item--critico {
    color: #ff8589 !important;
}

[data-theme="dark"] #diario-page-root .diario-cell-acoes a[data-edit-link="1"] {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: #ed3237 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #diario-page-root .diario-cell-acoes a[data-edit-link="1"]:hover {
    border-color: rgba(201, 31, 40, 0.9) !important;
    background: #c91f28 !important;
}

[data-theme="dark"] #diario-page-root .empty-state {
    color: #9aa9bd;
}

[data-theme="dark"] .diario-editor-backdrop {
    background: rgba(0, 0, 0, 0.62) !important;
}

[data-theme="dark"] .diario-editor-panel {
    border-color: rgba(86, 105, 132, 0.72) !important;
    background: #081b35 !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42) !important;
}

[data-theme="dark"] .diario-editor-drawer-head,
[data-theme="dark"] .diario-editor-drawer-foot,
[data-theme="dark"] .diario-editor-drawer-body,
[data-theme="dark"] .diario-editor-loading,
[data-theme="dark"] .diario-editor-inline-msg {
    border-color: rgba(86, 105, 132, 0.62) !important;
    background: rgba(5, 19, 40, 0.94) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] .diario-editor-drawer-title {
    color: #f8fbff !important;
}

[data-theme="dark"] .diario-editor-drawer-kicker,
[data-theme="dark"] .diario-editor-context {
    color: #9aa9bd !important;
}

[data-theme="dark"] .diario-editor-close,
[data-theme="dark"] .diario-editor-open-full {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] .mensal-editor-backdrop {
    background: rgba(0, 0, 0, 0.62) !important;
}

[data-theme="dark"] .mensal-editor-panel {
    border-color: rgba(86, 105, 132, 0.72) !important;
    background: #081b35 !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42) !important;
}

[data-theme="dark"] .mensal-editor-drawer-head,
[data-theme="dark"] .mensal-editor-drawer-foot,
[data-theme="dark"] .mensal-editor-drawer-body,
[data-theme="dark"] .mensal-editor-loading,
[data-theme="dark"] .mensal-editor-inline-msg {
    border-color: rgba(86, 105, 132, 0.62) !important;
    background: rgba(5, 19, 40, 0.94) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] .mensal-editor-drawer-title {
    color: #f8fbff !important;
}

[data-theme="dark"] .mensal-editor-drawer-kicker,
[data-theme="dark"] .mensal-editor-context,
[data-theme="dark"] .mensal-editor-helpchip {
    color: #9aa9bd !important;
}

[data-theme="dark"] .mensal-editor-helpbar {
    border-color: rgba(86, 105, 132, 0.42) !important;
    background: rgba(8, 27, 53, 0.82) !important;
}

[data-theme="dark"] .mensal-editor-close,
[data-theme="dark"] .mensal-editor-open-full {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] .mensal-editor-close:hover,
[data-theme="dark"] .mensal-editor-open-full:hover,
[data-theme="dark"] .diario-editor-close:hover,
[data-theme="dark"] .diario-editor-open-full:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .soft-card,
[data-theme="dark"] #ponto-editor-fragment-root .entity-form-card,
[data-theme="dark"] #ponto-editor-fragment-root .entity-form-section {
    border-color: rgba(86, 105, 132, 0.56) !important;
    background: rgba(8, 27, 53, 0.86) !important;
    color: #dbe7f5 !important;
    box-shadow: none !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .entity-form-section-title,
[data-theme="dark"] #ponto-editor-fragment-root .entity-label,
[data-theme="dark"] #ponto-editor-fragment-root .text-slate-950,
[data-theme="dark"] #ponto-editor-fragment-root .text-slate-900,
[data-theme="dark"] #ponto-editor-fragment-root strong {
    color: #f8fbff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .entity-form-section-text,
[data-theme="dark"] #ponto-editor-fragment-root .text-slate-700,
[data-theme="dark"] #ponto-editor-fragment-root .text-slate-600,
[data-theme="dark"] #ponto-editor-fragment-root .text-slate-500,
[data-theme="dark"] #ponto-editor-fragment-root span,
[data-theme="dark"] #ponto-editor-fragment-root p {
    color: #9aa9bd !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .entity-form-section-title,
[data-theme="dark"] #ponto-editor-fragment-root #card-opcoes-dia .entity-form-section-title,
[data-theme="dark"] #ponto-editor-fragment-root #card-eventos-dia .entity-form-section-title,
[data-theme="dark"] #ponto-editor-fragment-root #card-batidas .entity-form-section-title {
    color: #ff6b70 !important;
}

[data-theme="dark"] #ponto-editor-fragment-root input,
[data-theme="dark"] #ponto-editor-fragment-root select,
[data-theme="dark"] #ponto-editor-fragment-root textarea,
[data-theme="dark"] #ponto-editor-fragment-root .entity-control {
    border-color: rgba(115, 132, 156, 0.58) !important;
    background: rgba(10, 31, 61, 0.92) !important;
    color: #edf4ff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root input:focus,
[data-theme="dark"] #ponto-editor-fragment-root select:focus,
[data-theme="dark"] #ponto-editor-fragment-root textarea:focus,
[data-theme="dark"] #ponto-editor-fragment-root .entity-control:focus {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: rgba(3, 13, 30, 0.92) !important;
    box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.14) !important;
}

[data-theme="dark"] #ponto-editor-fragment-root label,
[data-theme="dark"] #ponto-editor-fragment-root label[style] {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #ponto-editor-fragment-root #jornada-info,
[data-theme="dark"] #ponto-editor-fragment-root #lista-batidas-filtro-meta,
[data-theme="dark"] #ponto-editor-fragment-root #msg-vazio,
[data-theme="dark"] #ponto-editor-fragment-root #ins-obs-status {
    color: #9aa9bd !important;
}

[data-theme="dark"] #ponto-editor-fragment-root #eventos-apurados-vazio,
[data-theme="dark"] #ponto-editor-fragment-root #eventos-apurados-lista>div,
[data-theme="dark"] #ponto-editor-fragment-root #painel-insercao,
[data-theme="dark"] #ponto-editor-fragment-root #resumo-dia,
[data-theme="dark"] #ponto-editor-fragment-root .linha-par,
[data-theme="dark"] #ponto-editor-fragment-root .linha-seq,
[data-theme="dark"] #ponto-editor-fragment-root .slot-par,
[data-theme="dark"] #ponto-editor-fragment-root .linha-situacao,
[data-theme="dark"] #ponto-editor-fragment-root .linha-status {
    border-color: rgba(86, 105, 132, 0.5) !important;
    background: rgba(5, 19, 40, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #ponto-editor-fragment-root #painel-insercao>div>div {
    border-color: rgba(86, 105, 132, 0.5) !important;
    background: rgba(8, 27, 53, 0.9) !important;
}

[data-theme="dark"] #ponto-editor-fragment-root #cabecalho-linhas {
    border-bottom-color: rgba(115, 132, 156, 0.5) !important;
    color: #b9c8dc !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .linha-par:hover,
[data-theme="dark"] #ponto-editor-fragment-root .slot-par:hover {
    border-color: rgba(237, 50, 55, 0.34) !important;
    background: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .batida-hora {
    color: #f8fbff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .batida-detalhes,
[data-theme="dark"] #ponto-editor-fragment-root .slot-vazio,
[data-theme="dark"] #ponto-editor-fragment-root .slot-vazio-text {
    color: #9aa9bd !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .slot-entrada span[style*="color:#059669"],
[data-theme="dark"] #ponto-editor-fragment-root .slot-entrada .batida-tipo {
    color: #bbf7d0 !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .slot-saida span[style*="color:#2563eb"],
[data-theme="dark"] #ponto-editor-fragment-root .slot-saida .batida-tipo {
    color: #c8d7ff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .batida-tipo,
[data-theme="dark"] #ponto-editor-fragment-root .batida-origem-badge {
    border: 1px solid rgba(115, 132, 156, 0.38) !important;
    background: rgba(10, 31, 61, 0.9) !important;
}

[data-theme="dark"] #ponto-editor-fragment-root #lista-batidas-filtros button {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #ponto-editor-fragment-root #lista-batidas-filtros button[style*="background:#0f172a"] {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: #ed3237 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root button.border,
[data-theme="dark"] #ponto-editor-fragment-root a.border,
[data-theme="dark"] #ponto-editor-fragment-root .btn-slot-adicionar,
[data-theme="dark"] #ponto-editor-fragment-root .btn-editar-batida {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #ponto-editor-fragment-root button.border:hover,
[data-theme="dark"] #ponto-editor-fragment-root a.border:hover,
[data-theme="dark"] #ponto-editor-fragment-root .btn-slot-adicionar:hover,
[data-theme="dark"] #ponto-editor-fragment-root .btn-editar-batida:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #ponto-editor-fragment-root .btn-excluir-batida,
[data-theme="dark"] #ponto-editor-fragment-root .text-rose-700 {
    border-color: rgba(248, 113, 113, 0.48) !important;
    color: #ff8589 !important;
}

[data-theme="dark"] #painel-obs-linha,
[data-theme="dark"] #painel-exclusao,
[data-theme="dark"] #painel-exclusao-manual,
[data-theme="dark"] #painel-edicao,
[data-theme="dark"] #painel-slot-add {
    background: rgba(0, 0, 0, 0.64) !important;
}

[data-theme="dark"] #painel-obs-linha .soft-card,
[data-theme="dark"] #painel-exclusao .soft-card,
[data-theme="dark"] #painel-exclusao-manual .soft-card,
[data-theme="dark"] #painel-edicao .soft-card,
[data-theme="dark"] #painel-slot-add .soft-card {
    border-color: rgba(86, 105, 132, 0.62) !important;
    background: #081b35 !important;
    color: #dbe7f5 !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] #painel-obs-linha p,
[data-theme="dark"] #painel-exclusao p,
[data-theme="dark"] #painel-exclusao-manual p,
[data-theme="dark"] #painel-edicao p,
[data-theme="dark"] #painel-slot-add p {
    color: #9aa9bd !important;
}

[data-theme="dark"] #painel-obs-linha p:first-child,
[data-theme="dark"] #painel-exclusao p:first-child,
[data-theme="dark"] #painel-edicao p:first-child,
[data-theme="dark"] #painel-slot-add #slot-add-title {
    color: #f8fbff !important;
}

[data-theme="dark"] .diario-toast {
    border-color: rgba(86, 105, 132, 0.72) !important;
    background: #081b35 !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] .diario-toast--success {
    border-color: rgba(16, 185, 129, 0.52) !important;
    background: rgba(6, 78, 59, 0.92) !important;
}

[data-theme="dark"] .diario-toast--error {
    border-color: rgba(248, 113, 113, 0.58) !important;
    background: rgba(69, 10, 10, 0.92) !important;
}

[data-theme="dark"] .diario-toast--info {
    border-color: rgba(96, 165, 250, 0.58) !important;
    background: rgba(23, 37, 84, 0.92) !important;
}

[data-theme="dark"] #dashboard-page-root .page-hd,
[data-theme="dark"] #dashboard-page-root .kpi-card,
[data-theme="dark"] #dashboard-page-root .card {
    border-color: rgba(86, 105, 132, 0.56) !important;
    background: rgba(8, 27, 53, 0.86) !important;
    color: #dbe7f5 !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] #dashboard-page-root .kpi-label,
[data-theme="dark"] #dashboard-page-root .kpi-delta,
[data-theme="dark"] #dashboard-page-root .chart-label,
[data-theme="dark"] #dashboard-page-root .chart-legend-item,
[data-theme="dark"] #dashboard-page-root .alert-sub,
[data-theme="dark"] #dashboard-page-root .shortcut-label {
    color: #9aa9bd !important;
}

[data-theme="dark"] #dashboard-page-root .kpi-value,
[data-theme="dark"] #dashboard-page-root .card-title,
[data-theme="dark"] #dashboard-page-root .alert-text,
[data-theme="dark"] #dashboard-page-root .alert-count {
    color: #f8fbff !important;
}

[data-theme="dark"] #dashboard-page-root .kpi-delta.up {
    color: #5ee0a8 !important;
}

[data-theme="dark"] #dashboard-page-root .kpi-delta.down {
    color: #ff8589 !important;
}

[data-theme="dark"] #dashboard-page-root .kpi-bar {
    background: rgba(71, 85, 105, 0.64) !important;
}

[data-theme="dark"] #dashboard-page-root .chart-area,
[data-theme="dark"] #dashboard-page-root .alert-item {
    border-color: rgba(86, 105, 132, 0.48) !important;
    background: rgba(5, 19, 40, 0.78) !important;
}

[data-theme="dark"] #dashboard-page-root .alert-item:hover {
    background: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] #dashboard-page-root .alert-count,
[data-theme="dark"] #dashboard-page-root .shortcut-btn {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
}

[data-theme="dark"] #dashboard-page-root .shortcut-row {
    border-top-color: rgba(115, 132, 156, 0.34) !important;
}

[data-theme="dark"] #dashboard-page-root .shortcut-btn,
[data-theme="dark"] #dashboard-page-root .card-action {
    color: #ff9ca1 !important;
}

[data-theme="dark"] #dashboard-page-root .shortcut-btn:hover,
[data-theme="dark"] #dashboard-page-root .card-action:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #dashboard-page-root .badge-gray {
    background: rgba(71, 85, 105, 0.34) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #dashboard-page-root .badge-amber {
    background: rgba(146, 64, 14, 0.22) !important;
    color: #ffd08a !important;
}

[data-theme="dark"] #dashboard-page-root .badge-red {
    background: rgba(237, 50, 55, 0.16) !important;
    color: #ffc2c6 !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-white,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-slate-50,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-slate-50\/70 {
    background-color: rgba(8, 27, 53, 0.88) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-slate-100 {
    background-color: rgba(6, 20, 41, 0.82) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-brand-50,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-brand-100 {
    background-color: rgba(237, 50, 55, 0.14) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .bg-amber-50 {
    background-color: rgba(146, 64, 14, 0.22) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-slate-100,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-slate-200,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-slate-300,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .divide-slate-100>*+*,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .divide-slate-200>*+* {
    border-color: rgba(115, 132, 156, 0.44) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-brand-100,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-brand-200,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-brand-400 {
    border-color: rgba(237, 50, 55, 0.42) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .border-amber-200 {
    border-color: rgba(251, 191, 36, 0.44) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-950,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-900,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-800 {
    color: #f8fbff !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-700,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-600,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-500,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-400 {
    color: #9aa9bd !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-slate-300 {
    color: #71849c !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-brand-600,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-brand-700,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-brand-800,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-brand-900 {
    color: #ff9ca1 !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .text-amber-800 {
    color: #ffd08a !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) code {
    border-radius: 0.45rem;
    background: rgba(3, 13, 30, 0.62);
    color: #dbe7f5;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) fieldset,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) details,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .overflow-x-auto,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .overflow-hidden {
    border-color: rgba(115, 132, 156, 0.44) !important;
    background-color: rgba(8, 27, 53, 0.88) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) thead,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) tbody {
    background-color: rgba(5, 19, 40, 0.86) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) tr.hover\:bg-slate-50\/70:hover,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) tr:hover {
    background-color: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) .shadow-panel {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) iframe {
    border-color: rgba(115, 132, 156, 0.44) !important;
    background: #061429 !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) a.border,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) button.border,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) span.border {
    border-color: rgba(115, 132, 156, 0.48) !important;
}

[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) a.border:hover,
[data-theme="dark"] :is(#relatorios-hub-page-root, #exportacoes-page-root, #movimentos-relatorios-page-root) button.border:hover {
    border-color: rgba(237, 50, 55, 0.5) !important;
    background-color: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #funcionario-form-page-root .func-tabs-card,
[data-theme="dark"] #funcionario-form-page-root .tab-panel,
[data-theme="dark"] #funcionario-form-page-root .func-actions-card,
[data-theme="dark"] #funcionario-form-page-root .func-block-card,
[data-theme="dark"] #funcionario-form-page-root .func-photo-card,
[data-theme="dark"] #funcionario-form-page-root .dependentes-card {
    border-color: rgba(86, 105, 132, 0.56) !important;
    background: rgba(8, 27, 53, 0.86) !important;
    color: #dbe7f5 !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] #funcionario-form-page-root .func-tab-row {
    scrollbar-color: rgba(148, 163, 184, 0.62) rgba(3, 13, 30, 0.72);
}

[data-theme="dark"] #funcionario-form-page-root .tab-button {
    border-color: rgba(115, 132, 156, 0.48) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #funcionario-form-page-root .tab-button:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #funcionario-form-page-root .tab-button.active {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: #ed3237 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #funcionario-form-page-root .func-block-head,
[data-theme="dark"] #funcionario-form-page-root .dependentes-head {
    border-color: rgba(115, 132, 156, 0.44) !important;
    background: rgba(226, 232, 240, 0.08) !important;
    color: #c8d7ff !important;
}

[data-theme="dark"] #funcionario-form-page-root .func-block-body,
[data-theme="dark"] #funcionario-form-page-root .dependentes-body,
[data-theme="dark"] #funcionario-form-page-root .dependentes-row,
[data-theme="dark"] #funcionario-form-page-root .dependentes-empty {
    border-color: rgba(115, 132, 156, 0.34) !important;
    background: rgba(5, 19, 40, 0.78) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #funcionario-form-page-root .func-photo-preview {
    border-color: rgba(115, 132, 156, 0.56) !important;
    background: rgba(5, 19, 40, 0.82) !important;
    color: #9aa9bd !important;
}

[data-theme="dark"] #funcionario-form-page-root .bg-white,
[data-theme="dark"] #funcionario-form-page-root .bg-slate-50 {
    background-color: rgba(8, 27, 53, 0.9) !important;
}

[data-theme="dark"] #funcionario-form-page-root .border-slate-100,
[data-theme="dark"] #funcionario-form-page-root .border-slate-200,
[data-theme="dark"] #funcionario-form-page-root .border-slate-300 {
    border-color: rgba(115, 132, 156, 0.48) !important;
}

[data-theme="dark"] #funcionario-form-page-root .text-slate-950,
[data-theme="dark"] #funcionario-form-page-root .text-slate-900,
[data-theme="dark"] #funcionario-form-page-root .text-slate-800 {
    color: #f8fbff !important;
}

[data-theme="dark"] #funcionario-form-page-root .text-slate-700,
[data-theme="dark"] #funcionario-form-page-root .text-slate-600,
[data-theme="dark"] #funcionario-form-page-root .text-slate-500 {
    color: #9aa9bd !important;
}

[data-theme="dark"] #funcionario-form-page-root .text-brand-600,
[data-theme="dark"] #funcionario-form-page-root .text-brand-700 {
    color: #ff9ca1 !important;
}

[data-theme="dark"] #funcionario-form-page-root label,
[data-theme="dark"] #funcionario-form-page-root .func-operational-check,
[data-theme="dark"] #funcionario-form-page-root .dependentes-cell {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #funcionario-form-page-root input[type="file"]::file-selector-button {
    border: 0;
    border-radius: 0.75rem;
    background: rgba(226, 232, 240, 0.16);
    color: #f8fbff;
}

[data-theme="dark"] #funcionario-form-page-root button.border,
[data-theme="dark"] #funcionario-form-page-root a.border,
[data-theme="dark"] #funcionario-form-page-root label.border,
[data-theme="dark"] #funcionario-form-page-root div.border {
    border-color: rgba(115, 132, 156, 0.48) !important;
}

[data-theme="dark"] #funcionario-form-page-root button.border:hover,
[data-theme="dark"] #funcionario-form-page-root a.border:hover {
    border-color: rgba(237, 50, 55, 0.5) !important;
    background-color: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #funcionario-form-page-root .global-modal-overlay {
    background: rgba(0, 0, 0, 0.64) !important;
}

[data-theme="dark"] #funcionario-form-page-root .global-modal-panel {
    border-color: rgba(86, 105, 132, 0.62) !important;
    background: #081b35 !important;
    color: #dbe7f5 !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] #funcionario-form-page-root .global-modal-header,
[data-theme="dark"] #funcionario-form-page-root .global-modal-body {
    border-color: rgba(115, 132, 156, 0.34) !important;
}

[data-theme="dark"] #funcionario-form-page-root .global-modal-title {
    color: #f8fbff !important;
}

[data-theme="dark"] #funcionario-form-page-root .dependentes-modal-card,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-card,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-list {
    border-color: rgba(86, 105, 132, 0.56) !important;
    background: rgba(8, 27, 53, 0.9) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #funcionario-form-page-root .dependentes-modal-title,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-card-head,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-head {
    border-color: rgba(115, 132, 156, 0.44) !important;
    background: rgba(226, 232, 240, 0.08) !important;
    color: #c8d7ff !important;
}

[data-theme="dark"] #funcionario-form-page-root .dependentes-modal-body,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-form,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-row,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-empty {
    border-color: rgba(115, 132, 156, 0.34) !important;
    background: rgba(5, 19, 40, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #funcionario-form-page-root .afastamentos-row:hover,
[data-theme="dark"] #funcionario-form-page-root .afastamentos-row.is-active {
    background: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] #funcionario-form-page-root .afastamentos-btn {
    border-color: rgba(115, 132, 156, 0.48) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #funcionario-form-page-root .afastamentos-btn.primary {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: #ed3237 !important;
    color: #ffffff !important;
}

[data-theme="dark"] #funcionario-form-page-root .afastamentos-btn.danger {
    border-color: rgba(248, 113, 113, 0.58) !important;
    color: #ff8589 !important;
}

[data-theme="dark"] #horario-form-page-root .modal-overlay {
    background: rgba(0, 0, 0, 0.64) !important;
    backdrop-filter: blur(6px);
}

[data-theme="dark"] #horario-form-page-root .bg-slate-100,
[data-theme="dark"] #horario-form-page-root button.bg-slate-100 {
    border: 1px solid rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #horario-form-page-root button.bg-slate-100:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #horario-form-page-root button:disabled,
[data-theme="dark"] #horario-form-page-root button.bg-slate-100:disabled {
    border-color: rgba(71, 85, 105, 0.5) !important;
    background: rgba(6, 20, 41, 0.72) !important;
    color: #71849c !important;
    opacity: 1 !important;
}

[data-theme="dark"] #horario-form-page-root .grid-week th {
    border-bottom-color: rgba(115, 132, 156, 0.56) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #horario-form-page-root .grid-week td {
    border-bottom-color: rgba(115, 132, 156, 0.34) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] #horario-form-page-root .grid-week .input-grid {
    border-color: rgba(115, 132, 156, 0.58) !important;
    background: rgba(10, 31, 61, 0.92) !important;
    color: #edf4ff !important;
}

[data-theme="dark"] #horario-form-page-root .grid-week .text-slate-700,
[data-theme="dark"] #horario-form-page-root .grid-week .btn-extra {
    color: #dbe7f5 !important;
}

[data-theme="dark"] #horario-form-page-root .grid-week .btn-extra:hover {
    color: #ff9ca1 !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content {
    border: 1px solid rgba(86, 105, 132, 0.62) !important;
    background: #081b35 !important;
    color: #dbe7f5 !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content h3,
[data-theme="dark"] #horario-form-page-root .modal-content .text-slate-900 {
    color: #f8fbff !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .text-slate-600,
[data-theme="dark"] #horario-form-page-root .modal-content .text-slate-500,
[data-theme="dark"] #horario-form-page-root .modal-content .text-slate-400 {
    color: #9aa9bd !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .hover\:text-slate-600:hover,
[data-theme="dark"] #horario-form-page-root .modal-content button:hover .text-slate-600 {
    color: #ffffff !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .entity-control,
[data-theme="dark"] #horario-form-page-root .modal-content input,
[data-theme="dark"] #horario-form-page-root .modal-content select {
    border-color: rgba(115, 132, 156, 0.58) !important;
    background: rgba(10, 31, 61, 0.92) !important;
    color: #edf4ff !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .entity-control:focus,
[data-theme="dark"] #horario-form-page-root .modal-content input:focus,
[data-theme="dark"] #horario-form-page-root .modal-content select:focus {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: rgba(3, 13, 30, 0.92) !important;
    box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.14) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .border-slate-200 {
    border-color: rgba(115, 132, 156, 0.5) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .border-dashed {
    border-color: rgba(126, 162, 255, 0.42) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .bg-indigo-50 {
    background: rgba(67, 97, 238, 0.22) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .text-indigo-600 {
    color: #c8d7ff !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .hover\:bg-indigo-100:hover {
    background: rgba(67, 97, 238, 0.32) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .bg-blue-600 {
    background: #ed3237 !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .hover\:bg-blue-700:hover {
    background: #c91f28 !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content .shadow-blue-200 {
    box-shadow: 0 16px 30px rgba(237, 50, 55, 0.22) !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content button.border-dashed {
    background: rgba(5, 19, 40, 0.72) !important;
    color: #b9c8dc !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content button.border-dashed:hover {
    border-color: rgba(237, 50, 55, 0.5) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content svg {
    color: #9aa9bd !important;
}

[data-theme="dark"] #horario-form-page-root .modal-content button:hover svg {
    color: #ffffff !important;
}

[data-theme="dark"] [data-employee-modal] {
    background: rgba(0, 0, 0, 0.64) !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-panel {
    border-color: rgba(86, 105, 132, 0.62) !important;
    background: #081b35 !important;
    color: #dbe7f5 !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] [data-employee-modal] .global-modal-title,
[data-theme="dark"] [data-employee-modal] .employee-modal-cell--nome,
[data-theme="dark"] [data-employee-modal] .global-modal-item strong {
    color: #f8fbff !important;
}

[data-theme="dark"] [data-employee-modal] .global-modal-header,
[data-theme="dark"] [data-employee-modal] .global-modal-body {
    border-color: rgba(115, 132, 156, 0.34) !important;
}

[data-theme="dark"] [data-employee-modal] .global-modal-search {
    border-color: rgba(115, 132, 156, 0.58) !important;
    background: rgba(10, 31, 61, 0.92) !important;
    color: #edf4ff !important;
}

[data-theme="dark"] [data-employee-modal] .global-modal-search:focus {
    border-color: rgba(237, 50, 55, 0.72) !important;
    background: rgba(3, 13, 30, 0.92) !important;
    box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.14) !important;
}

[data-theme="dark"] [data-employee-modal] .global-modal-search::placeholder {
    color: #71849c !important;
}

[data-theme="dark"] [data-employee-modal] [data-employee-modal-close],
[data-theme="dark"] [data-employee-modal] .employee-modal-filter {
    border-color: rgba(115, 132, 156, 0.5) !important;
    background: rgba(10, 31, 61, 0.82) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] [data-employee-modal] [data-employee-modal-close]:hover,
[data-theme="dark"] [data-employee-modal] .employee-modal-filter:hover {
    border-color: rgba(237, 50, 55, 0.48) !important;
    background: rgba(237, 50, 55, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-count,
[data-theme="dark"] [data-employee-modal] .employee-modal-cell,
[data-theme="dark"] [data-employee-modal] .employee-modal-cell--muted,
[data-theme="dark"] [data-employee-modal] .global-modal-item span,
[data-theme="dark"] [data-employee-modal] .global-modal-empty {
    color: #9aa9bd !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-header {
    border-bottom-color: rgba(115, 132, 156, 0.44) !important;
    background: rgba(5, 19, 40, 0.96) !important;
    color: #b9c8dc !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-row,
[data-theme="dark"] [data-employee-modal] .global-modal-item,
[data-theme="dark"] [data-employee-modal] .employee-modal-loading {
    border-color: rgba(86, 105, 132, 0.5) !important;
    background: rgba(8, 27, 53, 0.86) !important;
    color: #dbe7f5 !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-row:hover,
[data-theme="dark"] [data-employee-modal] .employee-modal-row:focus-visible,
[data-theme="dark"] [data-employee-modal] .global-modal-item:hover {
    border-color: rgba(237, 50, 55, 0.38) !important;
    background: rgba(18, 45, 82, 0.94) !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-panel .global-modal-list {
    scrollbar-color: rgba(148, 163, 184, 0.62) rgba(3, 13, 30, 0.72);
}

[data-theme="dark"] [data-employee-modal] .employee-modal-filter--ativo.is-active,
[data-theme="dark"] [data-employee-modal] .employee-modal-cell--badge.employee-modal-cell--badge-ativo {
    border-color: rgba(74, 222, 128, 0.62) !important;
    background: rgba(6, 78, 59, 0.58) !important;
    color: #bbf7d0 !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-filter--afastado.is-active,
[data-theme="dark"] [data-employee-modal] .employee-modal-cell--badge.employee-modal-cell--badge-afastado {
    border-color: rgba(251, 191, 36, 0.56) !important;
    background: rgba(120, 53, 15, 0.52) !important;
    color: #fde68a !important;
}

[data-theme="dark"] [data-employee-modal] .employee-modal-filter--inativo.is-active,
[data-theme="dark"] [data-employee-modal] .employee-modal-cell--badge.employee-modal-cell--badge-inativo {
    border-color: rgba(248, 113, 113, 0.58) !important;
    background: rgba(69, 10, 10, 0.62) !important;
    color: #fecaca !important;
}

.context-hint-inline-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.context-hint-label-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.context-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.context-hint-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.75);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    transition: 160ms ease;
}

.context-hint-trigger:hover {
    border-color: rgba(96, 165, 250, 0.92);
    background: #eff6ff;
    color: #1d4ed8;
}

.context-hint-trigger:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 2px;
}

.context-hint-popover {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: auto;
    z-index: 2100;
    width: min(320px, calc(100vw - 2rem));
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    color: #334155;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    display: none;
    backdrop-filter: blur(8px);
}

.context-hint.context-hint--align-right .context-hint-popover {
    right: 0;
    left: auto;
}

.context-hint.context-hint--align-right .context-hint-popover::before {
    right: 0.9rem;
    left: auto;
}

.context-hint-popover::before {
    content: '';
    position: absolute;
    top: -0.42rem;
    left: 0.9rem;
    right: auto;
    width: 0.75rem;
    height: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.96);
    border-left: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
}

.context-hint.is-open .context-hint-popover {
    display: grid;
    gap: 0.42rem;
}

.context-hint-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.context-hint-line {
    display: block;
    font-size: 0.77rem;
    line-height: 1.5;
}

.context-help-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 0.48rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
    transition: 160ms ease;
}

.context-help-trigger:hover {
    border-color: rgba(96, 165, 250, 0.95);
    background: linear-gradient(135deg, #dbeafe 0%, #f8fafc 100%);
    color: #1e40af;
}

.context-help-trigger:focus-visible,
.context-help-close:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.22);
    outline-offset: 2px;
}

.context-help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2050;
}

.context-help-drawer {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2060;
}

.context-help-backdrop.is-open,
.context-help-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.context-help-panel {
    width: min(460px, 100%);
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 2rem);
    margin-left: auto;
    border-radius: 1.6rem;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(28px);
    transition: transform 180ms ease;
}

.context-help-drawer.is-open .context-help-panel {
    transform: translateX(0);
}

.context-help-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.8), transparent 46%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.context-help-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.context-help-title {
    margin-top: 0.3rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.context-help-summary {
    margin-top: 0.45rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}

.context-help-close {
    border: 1px solid rgba(148, 163, 184, 0.75);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    transition: 160ms ease;
}

.context-help-close:hover {
    border-color: rgba(96, 165, 250, 0.9);
    background: #eff6ff;
    color: #1d4ed8;
}

.context-help-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.25rem;
    display: grid;
    gap: 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.context-help-section {
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.95rem 1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.context-help-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}

.context-help-list {
    margin-top: 0.7rem;
    padding-left: 1rem;
    display: grid;
    gap: 0.52rem;
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.58;
}

body.context-help-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .context-help-drawer {
        padding: 0.55rem;
    }

    .context-help-panel {
        max-width: 100%;
        max-height: calc(100dvh - 1.1rem);
        border-radius: 1.25rem;
    }

    .context-help-head {
        padding: 1rem 1rem 0.9rem 1rem;
    }

    .context-help-body {
        padding: 0.95rem 1rem 1rem;
    }
}
