:root,
html:has(.rz-material) {
    color-scheme: light;
    --color-background: #f4f4f5;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f4f5;
    --color-border: #d4d4d8;
    --color-text: #27272a;
    --color-text-muted: #71717a;
    --color-accent: #52525b;
    --color-accent-hover: #3f3f46;
    --color-accent-soft: #e4e4e7;
    --color-on-accent: #ffffff;
    --shadow-small: 0 1px 2px rgb(0 0 0 / 8%);
    --shadow-medium: 0 8px 24px rgb(0 0 0 / 8%);
    --radius-small: 4px;
    --radius-medium: 8px;
    --transition-default: 150ms ease;
    /**/
    --atlas-primary: #7f7f7f;
    /**/
    --rz-primary: var(--atlas-primary);
    --rz-primary-light: #71717a;
    --rz-primary-lighter: var(--color-accent-soft);
    --rz-primary-dark: var(--color-accent-hover);
    --rz-primary-darker: #27272a;
    --rz-secondary: #71717a;
    --rz-secondary-light: #a1a1aa;
    --rz-secondary-lighter: #e4e4e7;
    --rz-secondary-dark: #52525b;
    --rz-secondary-darker: #3f3f46;
    --rz-success: #52525b;
    --rz-info: #71717a;
    --rz-warning: #a1a1aa;
    --rz-danger: #e14747;
    --rz-layout-background-color: var(--color-background);
    --rz-header-background-color: var(--color-surface);
    --rz-sidebar-background-color: var(--color-surface);
    --rz-panel-menu-item-background-color: transparent;
    --rz-panel-menu-item-2nd-level-background-color: transparent;
    --rz-panel-menu-item-hover-background-color: var(--color-surface-muted);
    --rz-panel-menu-item-2nd-level-hover-background-color: var(--color-surface-muted);
    --rz-input-background-color: var(--color-surface);
    --rz-input-hover-background-color: var(--color-surface);
    --rz-input-focus-background-color: var(--color-surface);
    --rz-dropdown-open-background-color: var(--color-surface);
    --rz-card-background-color: var(--color-surface);
    --rz-dialog-background-color: var(--color-surface);
    --rz-dialog-title-background-color: var(--color-surface);
    --rz-border-radius: var(--radius-medium);
    --rz-grid-border-radius: var(--radius-medium);
    --rz-sidebar-toggle-color: var(--rz-primary);
    --rz-sidebar-toggle-background-color: #fff;
    --rz-sidebar-toggle-hover-background-color: var(--rz-primary);
    --rz-sidebar-toggle-hover-color: #fff;
    --rz-profile-menu-top-item-background-color: #fff;
    --atlas-shadow-clr: #939393b8;
    --atlas-toggle-theme-color: #52525b;
    --rz-selectbar-selected-color: #636363;
    --rz-selectbar-selected-background-color: #e9e9e9;
    --rz-panel-menu-item-2nd-level-active-color: #636363;
    --rz-pager-numeric-button-selected-color: #636363;
    --rz-pager-numeric-button-selected-background-color: #e9e9e9;
    --rz-panel-menu-item-active-color: #636363;
    --rz-panel-menu-item-active-background-color: #f4f4f5;
    --rz-input-focus-border-block-end: 1px solid #636363;
    --rz-dropdown-item-selected-color: #636363;
    --rz-dropdown-item-selected-background-color: #f4f4f5;
    --rz-input-focus-border: 1px solid #636363;
    --rz-dropdown-item-selected-hover-color: #636363;
    --rz-input-background-color: #e8f0fe;
}

html:has(.rz-material-dark) {
    color-scheme: dark;
    --color-background: #18181b;
    --color-surface: #27272a;
    --color-surface-muted: #3f3f46;
    --color-border: #52525b;
    --color-text: #f4f4f5;
    --color-text-muted: #a1a1aa;
    --color-accent: #d4d4d8;
    --color-accent-hover: #e4e4e7;
    --color-accent-soft: #3f3f46;
    --color-on-accent: #18181b;
    --shadow-small: 0 1px 2px rgb(0 0 0 / 24%);
    --shadow-medium: 0 8px 24px rgb(0 0 0 / 24%);
    --rz-primary: red;
    --rz-primary-light: #e4e4e7;
    --rz-primary-lighter: var(--color-accent-soft);
    --rz-primary-dark: #a1a1aa;
    --rz-primary-darker: #71717a;
    --rz-secondary: #a1a1aa;
    --rz-secondary-light: #d4d4d8;
    --rz-secondary-lighter: #3f3f46;
    --rz-secondary-dark: #71717a;
    --rz-secondary-darker: #52525b;
    --rz-success: #a1a1aa;
    --rz-info: #a1a1aa;
    --rz-warning: #d4d4d8;
    --rz-danger: #71717a;
    --rz-layout-background-color: var(--color-background);
    --rz-header-background-color: var(--color-surface);
    --rz-sidebar-background-color: var(--color-surface);
    --rz-panel-menu-item-hover-background-color: var(--color-surface-muted);
    --rz-panel-menu-item-2nd-level-hover-background-color: var(--color-surface-muted);
    --rz-input-background-color: var(--color-surface);
    --rz-input-hover-background-color: var(--color-surface);
    --rz-input-focus-background-color: var(--color-surface);
    --rz-dropdown-open-background-color: var(--color-surface);
    --rz-card-background-color: var(--color-surface);
    --rz-dialog-background-color: var(--color-surface);
    --rz-dialog-title-background-color: var(--color-surface);
    --atlas-shadow-clr: #000000b8;
    --rz-sidebar-toggle-background-color: var(--rz-sidebar-background-color);
    --atlas-toggle-theme-color: #d4d4d8;
    --rz-dropdown-item-selected-color: #fff;
    --rz-selectbar-selected-color: #d4d4d8;
    --rz-panel-menu-item-2nd-level-active-color: #fff;
}
/*Default*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
#app {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
    font-family: "Segoe UI", Arial, sans-serif;
}

#app {
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-background);
}

#app:has(.rz-material-dark) {
    color: #f4f4f5;
    background: #18181b;
}

::selection {
    color: var(--color-on-accent);
    background: var(--color-accent);
}

a {
    color: var(--color-accent);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.rz-layout {
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-background);
}

.rz-layout .rz-body {
    overflow: auto;
    padding: 1rem;
    background: transparent;
}

.rz-layout .rz-body:has(.login-page) {
    padding: 0;
}

    .rz-layout .rz-header {
        z-index: 1 !important;
    }
    /*Fim default*/
    /*Header*/
    /*Fim header*/
    /*sidebar*/
.sidebar-toggle {
    margin: 0 !important;
    position: absolute !important;
    right: -0.9rem;
    box-shadow: 1px 1px 10px var(--atlas-shadow-clr);
    border-radius: 50%;
    padding: 0.1rem !important;
    transition: .3s;
}
/*fim sidebar*/
.sidebar-close .sidebar-header-container {
    justify-content: center !important;
}
.rz-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: none;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
}

.sidebar-open .sidebar-toggle {
    transform: rotate(180deg);
}

.rz-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: width var(--transition-default);
}

.rz-card,
.rz-dialog,
.rz-profile-menu {
    color: var(--color-text);
    border-color: var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-small);
}

.rz-panel-menu {
    flex: 1 1 auto;
}

.rz-panel-menu .rz-navigation-item {
    border-block-end: 0;
}

.rz-panel-menu .rz-navigation-item-link {
    margin: 2px 6px;
    border-radius: var(--radius-small);
    transition: background-color var(--transition-default);
}

.rz-panel-menu .rz-navigation-item-link:hover,
.rz-panel-menu .rz-navigation-item-wrapper-active > .rz-navigation-item-link {
    background: var(--color-surface-muted);
}

.spinner-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    position: relative;
    width: 72px;
    height: 72px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 5px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.spinner-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lenguage-container img {
    width: 20px;
}

.lenguage-container .rz-button {
    padding-inline: 0.65rem;
}

.profile-menu-language {
    padding: 0.5rem 0.75rem 0.25rem;
    border-bottom: 1px solid var(--color-border);
}

.profile-menu-language .language-dropdown {
    display: flex;
}

.profile-menu-language .language-dropdown-control {
    min-width: 0;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface-muted) 100%);
}

.login-page-mask {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

.login-content {
    width: 100%;
    max-width: 460px;
}

.login-card {
    width: 100%;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow-medium);
}

.login-language-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.login-form-stack {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.login-card-logo,
.login-card-brand {
    display: block;
    margin: 0;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.login-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
}

.login-subtitle,
.login-info-text,
.two-factor-subtitle {
    color: var(--color-text-muted);
}

.forma-container,
.password-field,
.submit-button {
    width: 100%;
}

.visibility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    color: var(--color-text-muted);
    border: 0;
    background: transparent;
}

.visibility-btn:hover {
    color: var(--color-text);
}

.submit-button {
    width: 100%;
    border-radius: 999px;
}

.text-rights-reserved {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    padding-inline: 1rem;
}

@media (max-width: 768px) {
    .login-language-row {
        justify-content: flex-start;
    }
}

.text-rights-reserved {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    padding-inline: 1rem;
}

.customSel {
    border: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    cursor: pointer;
}

.customSel:hover {
    border-color: var(--color-accent);
}

.two-factor-title {
    color: var(--color-text);
}

.validation-message,
.invalid {
    color: var(--color-text);
    font-weight: 600;
}

.header-title,
.header-username {
    color: var(--color-text);
    font-weight: 600;
}

.header-subtitle,
.header-user-role {
    color: var(--color-text-muted);
}

.rz-button.rz-variant-outlined.rz-primary.rz-shade-default.notification-header-container {
    position: relative;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    color: var(--color-text) !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.icon-theme {
    color: var(--color-text);
}

.rz-material:not(.rz-material-dark) .icon-theme .rz-button {
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
    background-color: var(--color-surface) !important;
}

.rz-material:not(.rz-material-dark) .icon-theme .rz-button:hover,
.rz-material:not(.rz-material-dark) .icon-theme .rz-button:focus-visible {
    color: var(--color-text) !important;
    background-color: var(--color-surface-muted) !important;
}

.profile-menu-language {
    padding: 0.5rem 0.75rem 0.25rem;
    border-bottom: 1px solid var(--color-border);
}

.profile-menu-language .lenguage-container {
    justify-content: flex-start;
}

.rz-button.rz-variant-text.rz-base.rz-shade-default.icon-theme {
    color: var(--atlas-toggle-theme-color)
}


.profile-menu-language .lenguage-container .rz-button {
    border-color: var(--color-border) !important;
    background-color: transparent;
}

.header-profile-menu {
    min-width: 0;
}

.sidebar-open {
    width: 250px;
    overflow: visible !important;
}

.sidebar-close {
    width: 90px !important;
    overflow: visible !important;
}

.sidebar-header-container {
    flex-wrap: nowrap;
    min-height: 66.7px;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.sidebar-header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
}

.mark {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    padding: 7px;
    color: var(--color-on-accent);
    border-radius: var(--radius-small);
    background: var(--color-accent);
}

.mark svg {
    width: 100%;
    height: 100%;
}

.sidebar-header-title {
    overflow: hidden;
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.sidebar-profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-profile {
    min-width: 0;
}

.sidebar-close .sidebar-profile-txt {
    display: none !important;
}

.user-profile-img {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-on-accent);
    border-radius: 50%;
    background: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.user-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-contianer {
    margin-top: auto;
    padding: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.logout-item {
    color: var(--color-text-muted);
    cursor: pointer;
}

.logout-item:hover {
    color: var(--color-text);
}

.sidebar-footer-divider {
    height: 1px;
    margin-block: 0.75rem;
    background: var(--color-border);
}

.sidebar-version {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-align: center;
}

.sidebar-close .sidebar-header-title,
.sidebar-close .sidebar-profile,
.sidebar-close .sidebar-footer-divider,
.sidebar-close .sidebar-version {
    display: none;
}

.sidebar-close .sidebar-profile-container {
    justify-content: center;
}

.my-profile-page {
    width: 100%;
}

.my-profile-shell {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: none;
}

.my-profile-hero {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.my-profile-photo-panel,
.my-profile-identity,
.my-profile-section-card,
.profile-field-card {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface-muted);
    box-shadow: none;
}

.my-profile-photo-panel,
.my-profile-identity {
    justify-content: center;
}

.my-profile-avatar {
    width: 96px;
    height: 96px;
    overflow: hidden;
    color: var(--color-on-accent);
    border-radius: 50%;
    background: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.my-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-profile-avatar-initials {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.my-profile-name {
    margin: 0;
    color: var(--color-text);
    font-weight: 600;
}

.my-profile-role {
    width: fit-content;
    margin: 0;
    color: var(--color-text-muted);
}

.my-profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.profile-section-title,
.profile-field-value {
    color: var(--color-text);
    font-weight: 600;
}

.profile-field-label {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.profile-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-surface);
    cursor: pointer;
}

.profile-edit-button:hover {
    background: var(--color-surface-muted);
}

.profile-photo-input {
    display: none;
}

.change-password-form {
    width: 100%;
}

.change-password-modal {
    width: min(100%, 440px);
}

.change-password-modal-header {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface-muted);
}

.change-password-modal-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-surface);
}

.change-password-modal-title {
    margin: 0;
    color: var(--color-text);
    font-weight: 600;
}

.change-password-fields,
.change-password-actions {
    width: 100%;
}

.change-password-field .rz-form-field-content {
    border-color: var(--color-border);
}

.change-password-visibility-button {
    color: var(--color-text-muted);
}

.change-password-cancel-button,
.change-password-save-button {
    border-radius: var(--radius-small);
}

.client-card-view-container .rz-g {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0;
}

.client-card-view {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    box-shadow: none;
}

.client-card-view-row,
.client-card-view-col,
.client-card-view-stack {
    min-width: 0;
}

.client-card-view-divider {
    height: 1px;
    margin-block: 0.75rem;
    border: 0;
    background: var(--color-border);
}

.client-card-view-text {
    display: block;
    overflow: hidden;
    color: var(--color-text);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-card-view-label {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.client-card-view-badge {
    width: auto;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.client-card-view .rz-button.rz-variant-text {
    color: var(--color-text-muted);
}

.gridEmptyText {
    margin: 2rem 0;
    color: var(--color-text-muted);
    text-align: center;
}

@media (max-width: 760px) {
    .login-page-mask {
        padding: 1rem 0.75rem 4rem;
    }

    .login-card {
        padding: 1.25rem;
    }

    .my-profile-hero,
    .my-profile-content-grid {
        grid-template-columns: 1fr;
    }

    .client-card-view-container .rz-g {
        grid-template-columns: 1fr;
    }
}
.organization-section {
    border: 1px solid var(--rz-base-300);
    border-radius: 8px;
    padding: 20px;
    background: var(--rz-base-background-color);
}

.organization-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--rz-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

    .organization-section-title .rzi {
        color: var(--rz-primary);
        font-size: 1.35rem;
    }

.organization-zipcode {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 4px;
}

.organization-zipcode-input {
    flex: 1;
    min-width: 0;
}

.organization-zipcode-button {
    flex: 0 0 auto;
}

.organization-field-error {
    color: var(--rz-danger);
    font-size: 0.875rem;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .organization-section {
        padding: 14px;
    }
}
