:root {
    --ref-primary: #007f6d;
    --ref-primary-hover: #00685a;
    --ref-primary-active: #00564b;
    --ref-primary-soft: #e7f5f1;
    --ref-primary-border: #b8ddd4;
    --ref-on-primary: #ffffff;
    --ref-header-bg: #edf8f4;
    --ref-header-gradient: linear-gradient(120deg, #004d45 0%, #006b5f 42%, #00836f 74%, #0a9b86 100%);
    --ref-header-text: #ffffff;
    --ref-header-action-text: #00574f;
    --ref-header-muted: #d8fffa;
    --ref-header-accent: rgba(255, 255, 255, .13);
    --ref-bg: #f4f7f6;
    --ref-surface: #ffffff;
    --ref-surface-muted: #f7faf9;
    --ref-surface-raised: #ffffff;
    --ref-text: #20302d;
    --ref-label: #344b45;
    --ref-text-muted: #667873;
    --ref-text-soft: #84938f;
    --ref-border: #d9e3e0;
    --ref-border-strong: #bdccc8;
    --ref-success: #18794e;
    --ref-success-soft: #e8f6ef;
    --ref-warning: #8b6508;
    --ref-warning-soft: #fff6dc;
    --ref-danger: #b53b34;
    --ref-danger-soft: #fcedeb;
    --ref-info: #326985;
    --ref-info-soft: #eaf4f8;
    --ref-summary-total: #32758c;
    --ref-summary-total-soft: #edf7fa;
    --ref-focus: rgba(0, 127, 109, .16);
    --ref-shadow-sm: 0 6px 18px rgba(20, 55, 48, .06);
    --ref-shadow-md: 0 14px 36px rgba(20, 55, 48, .10);
    --ref-shadow-lg: 0 16px 36px rgba(0, 77, 69, .18);
    --ref-shadow-modal: 0 24px 64px rgba(8, 30, 26, .26);
    --ref-radius-xs: 7px;
    --ref-radius-sm: 9px;
    --ref-radius-md: 12px;
    --ref-radius-lg: 16px;
    --ref-space-1: 4px;
    --ref-space-2: 8px;
    --ref-space-3: 12px;
    --ref-space-4: 16px;
    --ref-space-5: 20px;
    --ref-space-6: 24px;
    --ref-control-height: 42px;
    --ref-button-radius: 11px;
    --ref-button-shadow: 0 6px 16px rgba(0, 107, 95, .20);
    --ref-layer-dropdown: 1095;
    --ref-layer-modal: 1080;
    --ref-layer-tooltip: 1110;
    --ref-color-scheme: light;
}

body.dark,
body.dark-mode,
[data-theme='dark'],
.ref-page.dark,
.ref-form-page.dark,
.ref-list-page.dark,
.config-page.dark,
.ref-theme-dark {
    --ref-primary: #49c8b7;
    --ref-primary-hover: #6ed8ca;
    --ref-primary-active: #8be3d7;
    --ref-primary-soft: rgba(73, 200, 183, .13);
    --ref-primary-border: #35665f;
    --ref-on-primary: #102d28;
    --ref-header-bg: #172d28;
    --ref-header-gradient: linear-gradient(120deg, #0b2926 0%, #0f4f48 42%, #0f766e 74%, #148b7d 100%);
    --ref-bg: #101b19;
    --ref-surface: #182623;
    --ref-surface-muted: #1e302c;
    --ref-surface-raised: #22342f;
    --ref-text: #edf5f2;
    --ref-label: #d6e8e2;
    --ref-text-muted: #afc1bc;
    --ref-text-soft: #8fa49e;
    --ref-border: #354b46;
    --ref-border-strong: #4b625d;
    --ref-success: #74d5a6;
    --ref-success-soft: rgba(45, 164, 111, .16);
    --ref-warning: #efd077;
    --ref-warning-soft: rgba(180, 133, 25, .17);
    --ref-danger: #ff9e98;
    --ref-danger-soft: rgba(191, 70, 62, .17);
    --ref-info: #9bcee4;
    --ref-info-soft: rgba(55, 126, 159, .18);
    --ref-summary-total: #8ac9dc;
    --ref-summary-total-soft: rgba(55, 126, 159, .16);
    --ref-focus: rgba(73, 200, 183, .23);
    --ref-shadow-sm: 0 6px 18px rgba(0, 0, 0, .20);
    --ref-shadow-md: 0 14px 36px rgba(0, 0, 0, .28);
    --ref-shadow-lg: 0 16px 36px rgba(0, 0, 0, .32);
    --ref-shadow-modal: 0 24px 64px rgba(0, 0, 0, .48);
    --ref-button-shadow: 0 6px 16px rgba(0, 0, 0, .24);
    --ref-color-scheme: dark;
}

.ref-page,
.ref-form-page,
.ref-list-page,
.ref-operational-page,
.config-page,
.pessoa-list-page,
.ref-window-form,
.ref-modal,
.config-modal,
.pessoa-list__modal {
    min-width: 0;
    color: var(--ref-text);
    font-family: Arial, "Segoe UI", Roboto, sans-serif;
    color-scheme: var(--ref-color-scheme);
}

.ref-visually-hidden {
    width: 1px !important;
    height: 1px !important;
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.ref-hidden {
    display: none !important;
}
