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

.metric-chip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(111, 122, 198, 0.1);
    background: rgba(246, 248, 255, 0.95);
}

.metric-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(108, 122, 224, 0.14);
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.metric-chip__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.metric-chip__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.dashboard-activity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.activity-panel {
    background: var(--color-surface);
    border-radius: 18px;
    border: 1px solid rgba(111, 122, 198, 0.1);
    box-shadow: 0 20px 44px rgba(47, 52, 70, 0.1);
    padding: 1.65rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.activity-panel__counter {
    background: rgba(108, 122, 224, 0.14);
    color: var(--color-primary-dark);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.activity-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-checklist {
    gap: 1rem;
}
:root {
    --color-primary: #6c7ae0;
    --color-primary-dark: #4f5ebd;
    --color-accent: #e9ecff;
    --color-surface: #ffffff;
    --color-surface-muted: #f1f3fb;
    --surface-border: #e1e5f4;
    --color-background: #f7f8fc;
    --color-overlay: rgba(25, 28, 47, 0.55);
    --color-text-dark: #2f3446;
    --color-text-muted: #6a728d;
    --color-warning: #f0c87b;
    --color-warning-dark: #d1a24c;
    --color-danger: #ec8f8f;
    --color-danger-dark: #cf6a6a;
    --color-neutral: #8d96c7;
    --color-neutral-dark: #757fb0;
    --header-height: 52px;
    --footer-height: 42px;
    --sidebar-width: 260px;
}

body.layout-admin.theme-dark {
    --color-primary: #99a3ff;
    --color-primary-dark: #7d88f5;
    --color-accent: #2a335e;
    --color-surface: #1b2036;
    --color-surface-muted: #222946;
    --surface-border: #2f3656;
    --color-background: #11172b;
    --color-overlay: rgba(9, 11, 22, 0.7);
    --color-text-dark: #f6f7ff;
    --color-text-muted: #b1b8e6;
    --color-warning: #f5c97c;
    --color-warning-dark: #dbaa58;
    --color-danger: #f07e8a;
    --color-danger-dark: #d45c64;
    --color-neutral: #a3abd8;
    --color-neutral-dark: #8d96c7;
}

html {
    height: 100%;
}

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

body.layout-admin {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    color: var(--color-text-dark);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 122, 224, 0.5) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.75), rgba(79, 94, 189, 0.9));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.95), rgba(79, 94, 189, 1));
}

body.layout-admin.theme-dark * {
    scrollbar-color: rgba(125, 136, 245, 0.6) transparent;
}

body.layout-admin.theme-dark *::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(125, 136, 245, 0.85), rgba(153, 163, 255, 0.95));
}

body.layout-admin.theme-dark *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(125, 136, 245, 1), rgba(153, 163, 255, 1));
}

body.layout-auth {
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem 2.5rem;
    background: linear-gradient(145deg, rgba(108, 122, 224, 0.06) 0%, rgba(247, 248, 252, 0.9) 100%);
}

body.layout-admin.theme-dark.layout-auth {
    background: linear-gradient(145deg, rgba(153, 163, 255, 0.08) 0%, rgba(17, 23, 43, 0.94) 100%);
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

.card {
    background: var(--color-surface);
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    box-shadow: 0 12px 30px rgba(54, 60, 100, 0.05);
    margin: 0 auto;
    width: 100%;
    max-width: 1080px;
    overflow: hidden;
}

.app-shell__link,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: var(--color-surface-muted);
    color: var(--color-text-dark);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.org-switcher {
    position: relative;
    margin-right: 1rem;
}

.org-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 122, 198, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.org-switcher__trigger-icon {
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.org-switcher__caret {
    font-size: 1rem;
    color: var(--color-primary-dark);
    transition: transform 0.2s ease;
}

.org-switcher__trigger:hover,
.org-switcher__trigger:focus {
    border-color: rgba(76, 91, 189, 0.55);
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.18);
}

.org-switcher.is-open .org-switcher__caret {
    transform: rotate(180deg);
}

.org-switcher__dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 240px;
    background: var(--color-surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(47, 52, 70, 0.22);
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1300;
}

.org-switcher.is-open .org-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.org-switcher__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.1rem;
    color: var(--color-text-dark);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.org-switcher__form {
    margin: 0;
}

.org-switcher__item:hover {
    background: rgba(108, 122, 224, 0.12);
    color: var(--color-primary-dark);
}

.org-switcher__item.is-active {
    background: rgba(108, 122, 224, 0.18);
    color: var(--color-primary-dark);
}

.org-switcher__empty {
    padding: 0.6rem 1.1rem;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.app-shell__link {
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.app-shell__link i,
.theme-toggle i {
    font-size: 1.1rem;
}

.app-shell__link:hover,
.theme-toggle:hover {
    border-color: var(--surface-border);
    box-shadow: 0 6px 16px rgba(54, 60, 100, 0.18);
}

body.layout-admin.theme-dark .app-shell__link,
body.layout-admin.theme-dark .theme-toggle {
    background: var(--color-surface-muted);
    color: var(--color-text-dark);
    box-shadow: none;
}

.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text-dark);
    padding: 0.45rem 0.9rem 0.45rem 0.55rem;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-menu__trigger:hover,
.user-menu__trigger[aria-expanded="true"] {
    border-color: var(--surface-border);
    box-shadow: 0 10px 24px rgba(54, 60, 100, 0.18);
}

.user-menu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
}

.user-menu__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.user-menu__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.user-menu__role {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.user-menu__chevron {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.user-menu__trigger[aria-expanded="true"] .user-menu__chevron {
    transform: rotate(180deg);
}

.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 240px;
    background: var(--color-surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(47, 52, 70, 0.22);
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1200;
}

.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__header {
    padding: 0.6rem 1.15rem 0.9rem;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-menu__label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 700;
}

.user-menu__email {
    font-size: 0.88rem;
    color: var(--color-text-dark);
    word-break: break-word;
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.15rem;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-menu__item i {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.user-menu__item:hover {
    background: rgba(108, 122, 224, 0.12);
    color: var(--color-primary-dark);
}

.user-menu__item--action {
    padding: 0;
}

.user-menu__item--action button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.15rem;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.user-menu__item--action button:hover {
    background: rgba(236, 143, 143, 0.16);
    color: var(--color-danger-dark);
}

body.layout-admin.theme-dark .user-menu__trigger {
    background: rgba(26, 33, 58, 0.9);
}

body.layout-admin.theme-dark .user-menu__dropdown {
    background: var(--color-surface);
    border-color: rgba(64, 74, 112, 0.85);
}

@media (max-width: 600px) {
    .user-menu__item,
    .user-menu__item--action button {
        font-size: 0.92rem;
    }
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    background: var(--color-surface);
    border-radius: 24px;
    border: 1px solid var(--surface-border);
    padding: 2.4rem;
    box-shadow: 0 32px 70px rgba(47, 52, 70, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

body.layout-admin.theme-dark .auth-card {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.auth-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand__title {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.auth-brand__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(111, 122, 198, 0.28);
    background: var(--color-surface);
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
    color: var(--color-text-dark);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(108, 122, 224, 0.65);
    box-shadow: 0 0 0 4px rgba(108, 122, 224, 0.2);
}

body.layout-admin.theme-dark .auth-input {
    border-color: rgba(153, 163, 255, 0.3);
    background: rgba(34, 41, 70, 0.9);
}

.auth-error,
.auth-field .errorlist {
    margin: 0;
    color: var(--color-danger);
    font-size: 0.82rem;
    list-style: none;
    padding: 0;
}

.auth-error li {
    margin: 0;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.auth-checkbox-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--surface-border);
    accent-color: var(--color-primary);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.6rem;
    background: linear-gradient(135deg, #4f5bd5 0%, #7281ff 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(66, 77, 151, 0.28);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(66, 77, 151, 0.32);
}

.auth-submit i {
    font-size: 1.2rem;
}

.auth-secondary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

.auth-link {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.auth-link:hover {
    color: var(--color-primary);
}

.auth-messages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(108, 122, 224, 0.1);
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.auth-alert--error {
    background: rgba(236, 143, 143, 0.18);
    color: #8a2d2d;
}

.auth-alert--success {
    background: rgba(116, 210, 183, 0.18);
    color: #21604b;
}

.auth-footer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

@media (max-width: 600px) {
    body.layout-auth {
        padding: 2.5rem 1.2rem 1.8rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .auth-brand__title {
        font-size: 1.28rem;
    }

    .auth-secondary-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.card-content {
    padding: 1.35rem 1.6rem;
}

.form-card {
    max-width: 760px;
}

.detail-card {
    max-width: 780px;
}

.detail-summary {
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 1.2rem;
}

.detail-summary__item {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(111, 122, 198, 0.18);
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 88px;
}

.detail-summary__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

.detail-summary__value {
    font-size: 0.98rem;
    color: var(--color-text-dark);
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
}

.detail-summary__value .chip {
    margin: 0;
}

.password-card {
    max-width: 540px;
    margin: 0 auto;
}

.password-card .card-content {
    padding: 1.8rem 1.9rem;
}

.password-card .card-search {
    margin: 1.2rem 0 1.8rem;
}

.card-search__field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 14px;
    border: 1px solid rgba(111, 122, 198, 0.35);
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    width: min(100%, 360px);
}

.card-search--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.card-search__field--select {
    width: auto;
    min-width: 220px;
}

.card-search__field--select .card-search__select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    outline: none;
    padding-right: 1.5rem;
}

.card-search__field--select .card-search__clear {
    margin-left: -1.2rem;
}

.card-search__submit {
    margin-left: auto;
}

.card-search__field--select select::-ms-expand {
    display: none;
}

.card-search__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select2-container {
    width: 100% !important;
    font-family: inherit;
    font-size: 0.95rem;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 14px !important;
    border: 1px solid rgba(111, 122, 198, 0.35) !important;
    min-height: 46px;
    padding: 0.68rem 1rem;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--color-text-dark);
    padding-left: 0;
    line-height: 1.2;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(104, 120, 199, 0.78) transparent transparent transparent;
    border-width: 4px 4px 0 4px;
}

.select2-dropdown {
    border-radius: 12px;
    border: 1px solid rgba(111, 122, 198, 0.18);
    box-shadow: 0 10px 24px rgba(60, 64, 94, 0.18);
    overflow: hidden;
}

.select2-results__option--highlighted.select2-results__option--selectable {
    background: linear-gradient(135deg, rgba(118, 152, 255, 0.2) 0%, rgba(118, 152, 255, 0.35) 100%);
    color: var(--color-text-dark);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
    border-color: rgba(76, 91, 189, 0.55);
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.2);
}

.ticket-filters {
    display: grid;
    gap: 0.9rem;
    margin: 1.1rem 0 1.6rem;
}

.ticket-filters__search {
    max-width: 420px;
}

.ticket-filters__selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    background: rgba(237, 240, 255, 0.35);
    border: 1px solid rgba(111, 122, 198, 0.18);
    border-radius: 16px;
    padding: 0.75rem 0.95rem;
}

.pill-select {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.pill-select label {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-left: 0.2rem;
}

.ticket-filters__selection .btn {
    margin-left: auto;
}

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

    .ticket-filters__selection .btn {
        width: 100%;
        margin-left: 0;
    }
}

.ticket-detail {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.ticket-meta {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ticket-meta__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.ticket-meta__item {
    background: linear-gradient(135deg, rgba(116, 139, 234, 0.18) 0%, rgba(116, 139, 234, 0.32) 100%);
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--color-primary-dark);
    min-width: 210px;
    box-shadow: 0 12px 24px rgba(108, 122, 224, 0.18);
}

.ticket-meta__item i {
    font-size: 1.15rem;
}

.ticket-meta__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(25, 33, 68, 0.65);
}

.ticket-meta__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.ticket-detail__section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ticket-detail__heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.ticket-detail__description {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(111, 122, 198, 0.18);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    line-height: 1.65;
    color: var(--color-text-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ticket-detail__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
}

.ticket-detail__card {
    background: rgba(247, 248, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(116, 139, 234, 0.18);
    padding: 1.05rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ticket-detail__card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ticket-detail__card h3 i {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.ticket-detail__card p {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 0.94rem;
}

.ticket-detail__card .badge {
    align-self: flex-start;
}

@media (max-width: 720px) {
    .ticket-meta__item {
        min-width: 0;
        flex: 1 1 100%;
    }

    .ticket-meta__row {
        gap: 0.7rem;
    }

    .ticket-detail__grid {
        grid-template-columns: 1fr;
    }
}

.card-search__icon {
    display: inline-flex;
    color: var(--color-primary-dark);
}

.card-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text-dark);
    outline: none;
}

.card-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--color-primary);
    transition: background 0.2s ease;
}

.card-search__clear:hover {
    background: rgba(111, 122, 198, 0.15);
}

.card-search__field:focus-within {
    border-color: rgba(76, 91, 189, 0.6);
    box-shadow: 0 0 0 2px rgba(108, 122, 224, 0.16);
}

/* Ajustes globales de responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .page-content {
        padding-left: 0;
        padding-right: 0;
    }

    .page-content .content-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card {
        max-width: none;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .form-card,
    .detail-card,
    .password-card {
        max-width: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.card-search + .table-wrapper {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .password-card .card-content {
        padding: 1.4rem 1.2rem;
    }
}

.flash-container {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(111, 122, 198, 0.25);
    background: rgba(233, 236, 255, 0.45);
    color: var(--color-text-dark);
    position: relative;
}

.flash-message__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: inherit;
}

.flash-message__text {
    flex: 1;
    font-weight: 500;
}

.flash-message__close {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.flash-message__close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Oculta el helper de Materialize para textareas autoajustables,
   que de lo contrario muestra el contenido al final de la página */
.hiddendiv {
    display: none !important;
}

.flash-message--success {
    background: linear-gradient(135deg, rgba(76, 213, 150, 0.18) 0%, rgba(76, 213, 150, 0.4) 100%);
    border-color: rgba(76, 213, 150, 0.55);
    color: #125c36;
}

body.layout-admin.theme-dark .flash-message--success {
    background: linear-gradient(135deg, rgba(40, 167, 111, 0.35) 0%, rgba(40, 167, 111, 0.65) 100%);
    border-color: rgba(56, 209, 140, 0.85);
    color: #e6fff4;
}

.flash-message--error,
.flash-message--danger {
    background: linear-gradient(135deg, rgba(255, 99, 132, 0.18) 0%, rgba(255, 99, 132, 0.38) 100%);
    border-color: rgba(255, 99, 132, 0.55);
    color: #6b1224;
}

.flash-message--warning {
    background: linear-gradient(135deg, rgba(255, 198, 93, 0.18) 0%, rgba(255, 198, 93, 0.4) 100%);
    border-color: rgba(255, 198, 93, 0.55);
    color: #7a4c03;
}

.flash-message--info {
    background: linear-gradient(135deg, rgba(118, 152, 255, 0.12) 0%, rgba(118, 152, 255, 0.35) 100%);
    border-color: rgba(118, 152, 255, 0.45);
    color: var(--color-primary-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem 1.4rem;
}

.form-grid--stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem 1.4rem;
    align-items: end;
}

.form-group--grow {
    min-width: 0;
}

.form-group--compact {
    max-width: 260px;
}

.form-group--align-end {
    align-self: end;
}

.form-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.2rem;
}

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

.form-grid--spaced {
    row-gap: 1.15rem;
}

.form-group--spaced {
    gap: 0.55rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid rgba(111, 122, 198, 0.25);
    background: var(--color-surface);
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(76, 91, 189, 0.55);
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.2);
    outline: none;
}

.form-group small,
.form-help {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.filter-input {
    border-radius: 12px;
    border: 1px solid rgba(111, 122, 198, 0.25);
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    background: var(--color-surface);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus {
    border-color: rgba(76, 91, 189, 0.6);
    box-shadow: 0 0 0 2px rgba(108, 122, 224, 0.18);
    outline: none;
}

.permissions-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.1rem;
}

.permission-module {
    border: 1px solid rgba(111, 122, 198, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.35);
}

.permission-module__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.permission-module__header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 0;
}

.permission-module__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem 1rem;
}

.permission-module__list li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(111, 122, 198, 0.18);
}

.permission-module.is-hidden {
    display: none;
}

.form-box {
    border: 1px solid rgba(111, 122, 198, 0.25);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    background: rgba(233, 236, 255, 0.18);
    margin: 1.6rem 0;
}

.form-box legend {
    padding: 0 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.form-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.1rem;
}

.form-box li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(111, 122, 198, 0.18);
}

.form-box input[type="checkbox"] {
    position: static;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    appearance: none;
    border: 1px solid rgba(111, 122, 198, 0.4);
    background: var(--color-surface);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.form-box input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: var(--color-primary-dark);
}

.form-box label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin: 0;
}

.form-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-switch input[type="checkbox"] {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    appearance: none;
    background: rgba(111, 122, 198, 0.3);
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.form-switch input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.form-switch input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip-list .chip {
    margin: 0;
}

.chip--muted {
    background: rgba(111, 122, 198, 0.16);
    color: var(--color-text-muted);
}

.chip--pill {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 600;
}

.status-chip {
    background: var(--status-color, var(--color-primary));
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--status-color, var(--color-primary)) 0%, rgba(0, 0, 0, 0.12) 120%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 18px rgba(17, 17, 46, 0.18);
}

.form-errors {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(236, 143, 143, 0.18);
    color: #a04545;
    font-size: 0.9rem;
}

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

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.password-form__fields {
    display: grid;
    gap: 1.2rem 1.4rem;
}

.password-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.password-form__actions .btn,
.password-form__actions .link-cancelar {
    flex: 0 0 auto;
}

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

    .password-form__actions .btn,
    .password-form__actions .link-cancelar {
        width: 100%;
        text-align: center;
    }
}

.form-grid .input-field {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-grid .input-field label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    order: -1;
}

.form-grid .input-field input,
.form-grid .input-field select,
.form-grid .input-field textarea {
    border-radius: 12px;
    border: 1px solid rgba(111, 122, 198, 0.25);
    background: var(--color-surface);
    padding: 0.7rem 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.form-grid .input-field textarea {
    min-height: 140px;
}

.form-grid .input-field input:focus,
.form-grid .input-field select:focus,
.form-grid .input-field textarea:focus {
    border-color: rgba(76, 91, 189, 0.55);
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.2);
    outline: none;
}

.form-grid .input-field input::placeholder,
.form-grid .input-field textarea::placeholder {
    color: rgba(47, 52, 70, 0.4);
}

.dashboard-card ul li::marker {
    color: rgba(83, 97, 210, 0.75);
}

.dashboard-card--stats {
    padding-bottom: 1.4rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

.dashboard-stat {
    background: rgba(83, 97, 210, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(83, 97, 210, 0.18);
}

.dashboard-stat__label {
    font-size: 0.82rem;
    color: rgba(25, 28, 47, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.dashboard-stat__value {
    font-size: 1.35rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.dashboard-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.dashboard-split__title {
    margin: 0 0 0.6rem 0;
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.dashboard-list__meta {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    align-items: center;
}

.detail-grid {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem 1.5rem;
}

.detail-item {
    background: var(--color-surface-muted);
    border-radius: 12px;
    padding: 0.95rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid var(--surface-border);
}

.detail-label {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 700;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem 1.2rem;
    border-top: 1px solid var(--surface-border);
}

.link-cancelar {
    font-weight: 600;
    color: var(--color-primary-dark) !important;
    padding: 0.52rem 1.05rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.12);
    border: 1px solid rgba(108, 122, 224, 0.28);
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.link-cancelar:hover {
    color: var(--color-primary-dark) !important;
    background: rgba(108, 122, 224, 0.2);
    border-color: rgba(108, 122, 224, 0.32);
    box-shadow: 0 8px 18px rgba(79, 94, 189, 0.12);
}

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

.card-header__info {
    flex: 1 1 260px;
}

.card-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.card-header__actions .btn {
    white-space: nowrap;
}

.card-title {
    font-size: 1.48rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text-dark);
}

.card-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.45;
}

.card-action {
    border-top: 1px solid var(--surface-border);
    padding: 1rem 1.4rem;
}

.action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.action-buttons .btn-small {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    text-transform: none;
    font-weight: 600;
    white-space: nowrap;
}

.table-actions-cell {
    text-align: right;
}

.table-actions-cell .action-buttons {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .table-actions-cell {
        text-align: center;
    }

    .table-actions-cell .action-buttons {
        justify-content: center;
    }
}

.btn,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.82rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: #ffffff !important;
    padding: 0.65rem 1.05rem;
    background: var(--color-primary);
    box-shadow: 0 10px 24px rgba(108, 122, 224, 0.18);
}

.btn-small {
    padding: 0.5rem 0.95rem;
    font-size: 0.74rem;
}

.btn i,
.btn-small i {
    font-size: 1.1rem;
}

.btn:hover,
.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(79, 94, 189, 0.24);
}

.btn:active,
.btn-small:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn--primary {
    background: var(--color-primary) !important;
}

.btn--primary:hover {
    background: var(--color-primary-dark) !important;
}

.btn--accent {
    background: var(--color-warning) !important;
    color: #4b3811 !important;
}

.btn--accent:hover {
    background: var(--color-warning-dark) !important;
    color: #382708 !important;
}

.btn--danger {
    background: var(--color-danger) !important;
}

.btn--danger:hover {
    background: var(--color-danger-dark) !important;
}

.btn--ghost {
    background: transparent !important;
    color: var(--color-primary-dark) !important;
    border: 1px solid rgba(79, 94, 189, 0.24);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(108, 122, 224, 0.12) !important;
    border-color: rgba(79, 94, 189, 0.35);
}

.blue { background: var(--color-primary) !important; }
.blue.darken-2 { background: var(--color-primary-dark) !important; }
.blue-grey { background: #8d96c7 !important; }
.amber.darken-2 { background: #efc27d !important; }
.red.darken-2 { background: #ec8f8f !important; }

.highlight {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.highlight thead {
    background: var(--color-surface-muted);
}

.highlight th {
    text-align: left;
    padding: 0.8rem 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    border-bottom: 1px solid var(--surface-border);
}

.highlight td {
    padding: 0.82rem 0.9rem;
    border-bottom: 1px solid var(--surface-border);
    font-size: 0.9rem;
}

.highlight tbody tr:hover {
    background: rgba(108, 122, 224, 0.08);
}

.table-minimal {
    border-radius: 12px;
    overflow: hidden;
}

.table-minimal tbody tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: inline-flex;
    gap: 0.45rem;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn-small {
    min-width: 108px;
}

.table-actions {
    text-align: right;
}

.table-actions .action-buttons {
    justify-content: flex-end;
    width: 100%;
    gap: 0.35rem;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    margin: 0;
}

.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-primary-dark);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination li a:hover {
    background: rgba(145, 212, 208, 0.3);
}

.pagination li.active a {
    background: var(--color-primary-dark);
    color: #ffffff;
}

.waves-effect { position: relative; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.14);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
}

header.app-shell {
    background: var(--color-surface);
    color: var(--color-text-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 0.55rem;
    border-bottom: 1px solid var(--surface-border);
}

.app-shell__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.app-shell__brand .brand-title {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-dark);
}

.app-shell__link--brand {
    margin-left: 0.5rem;
}

.sidenav-trigger,
.menu-toggle-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-dark);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.sidenav-trigger:hover,
.menu-toggle-desktop:hover {
    background: rgba(108, 122, 224, 0.12);
}

.menu-toggle-desktop {
    margin-right: 0.35rem;
}

.menu-toggle-desktop i {
    font-size: 22px;
    color: currentColor;
}

.app-shell__layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

nav.app-shell__menu {
    width: var(--sidebar-width);
    background: var(--color-surface);
    color: var(--color-text-dark);
    padding: 1.4rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border-right: 1px solid var(--surface-border);
    overflow: hidden;
    transition: width 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    height: calc(100vh - var(--header-height));
}

nav.app-shell__menu .menu-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.3rem;
    margin-right: -0.3rem;
    flex: 1 1 auto;
    height: 100%;
    padding-bottom: var(--footer-height);
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 122, 224, 0.5) transparent;
}

nav.app-shell__menu .menu-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

nav.app-shell__menu .menu-scroll {
    scrollbar-width: thin;
}

nav.app-shell__menu > * {
    transition: opacity 0.2s ease;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.4rem 1.6rem 1rem;
}

.menu-header__brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.menu-header__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 0.02em;
}

.menu-header__label,
.menu-link-label {
    transition: opacity 0.2s ease, max-width 0.2s ease;
    display: inline-block;
    opacity: 1;
    max-width: 260px;
}

.menu-header .brand-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.menu-header .brand-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.95rem;
    border-radius: 12px;
    color: var(--color-text-dark);
    font-weight: 500;
    transition: background 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.menu-links a.active {
    background: rgba(108, 122, 224, 0.18);
    color: var(--color-primary-dark);
    box-shadow: 0 8px 20px rgba(47, 52, 70, 0.12);
    transform: translateX(6px);
}

.menu-group.is-active .menu-group__toggle {
    background: rgba(108, 122, 224, 0.14);
    color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(108, 122, 224, 0.25);
}

.menu-group.is-active .menu-group__chevron {
    color: var(--color-primary-dark);
}

.menu-submenu__link.active {
    background: rgba(108, 122, 224, 0.18);
    color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(108, 122, 224, 0.25);
    transform: translateX(6px);
}

.menu-group {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.menu-group__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.95rem;
    border: none;
    background: transparent;
    color: var(--color-text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.2s ease;
    text-align: left;
}

.menu-group__toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.menu-group__toggle:hover {
    background: rgba(108, 122, 224, 0.12);
    color: var(--color-primary-dark);
}

.menu-group__toggle i {
    font-size: 1.25rem;
}

.menu-group__toggle .menu-group__chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.menu-group__toggle .menu-group__chevron {
    font-size: 1.15rem;
    opacity: 0.8;
}

.menu-group.is-active .menu-group__chevron,
.menu-group:hover .menu-group__chevron {
    opacity: 1;
}

.menu-group.is-collapsed .menu-group__chevron {
    transform: rotate(180deg);
}

.menu-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem 0 0.6rem 2.3rem;
}

.menu-group.is-collapsed .menu-submenu {
    display: none;
}

.menu-submenu__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-submenu__link:hover {
    color: var(--color-primary-dark);
    background: rgba(108, 122, 224, 0.1);
    transform: translateX(4px);
}

.menu-submenu__bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    opacity: 0.7;
}

.menu-logout {
    margin-top: 1.2rem;
}

.menu-logout button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(236, 143, 143, 0.12);
    color: #b24a4a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-logout button:hover {
    background: rgba(236, 143, 143, 0.22);
    transform: translateX(6px);
    box-shadow: 0 8px 20px rgba(236, 143, 143, 0.22);
}

.menu-logout i {
    font-size: 1.2rem;
}

.menu-links a:hover,
.menu-links a.active {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

.menu-links a.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.menu-links a i {
    font-size: 1.25rem;
}

.menu-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin: 0.6rem 0 0 0.15rem;
    color: var(--color-text-muted);
}

main.page-content {
    flex: 1;
    padding: 1.6rem 1.8rem calc(var(--header-height) + 1.4rem + var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    gap: 1.4rem;
}

main.page-content .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    flex: 0 1 auto;
}

.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: var(--footer-height);
    background: var(--color-surface);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    box-shadow: 0 -6px 18px rgba(47, 52, 70, 0.05);
    border-top: 1px solid var(--surface-border);
    z-index: 10;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 0 1.8rem;
}

.footer-brand,
.footer-meta-wrapper {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.footer-brand {
    justify-content: flex-start;
}

.footer-meta-wrapper {
    justify-content: flex-end;
    text-align: right;
    gap: 1.2rem;
}

.page-footer h5 {
    margin: 0;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 0.06em;
}

.page-footer .footer-meta {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 500;
}

.menu-overlay {
    position: fixed;
    inset: var(--header-height) 0 0;
    background: rgba(47, 52, 70, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.menu-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.app-loading-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

.app-loading-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.app-loading-overlay__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 2.2rem 2.6rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    min-width: min(320px, 90vw);
    text-align: center;
}

.app-loading-overlay__label {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-loading-overlay__bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(83, 97, 210, 0.2);
    overflow: hidden;
}

.app-loading-overlay__bar-indicator {
    position: absolute;
    inset: 0;
    width: 40%;
    min-width: 120px;
    background: linear-gradient(90deg, #6c7ae0, #5361d2, #3543b1);
    border-radius: 999px;
    animation: loaderSlide 1.1s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(25%);
    }
    100% {
        transform: translateX(120%);
    }
}

body.is-loading {
    cursor: progress;
    touch-action: none;
}

body.is-loading * {
    cursor: progress !important;
}

@media only screen and (min-width: 993px) {
    .app-shell__layout {
        flex-direction: row;
    }

    nav.app-shell__menu {
        position: sticky;
        top: var(--header-height);
        transform: none;
        width: var(--sidebar-width);
    }

    .sidenav-trigger {
        display: none;
    }

    body.layout-admin.menu-collapsed nav.app-shell__menu {
        width: 88px;
        padding: 0.85rem 0;
        margin: 0;
        align-items: center;
        gap: 0.65rem;
        overflow: visible;
    }

    body.layout-admin.menu-collapsed nav.app-shell__menu .menu-scroll {
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        scrollbar-width: none;
    }

    body.layout-admin.menu-collapsed nav.app-shell__menu .menu-scroll::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    body.layout-admin.menu-collapsed .menu-header {
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0;
        justify-content: center;
    }

    body.layout-admin.menu-collapsed .menu-header .brand-circle {
        width: 40px;
        height: 40px;
    }

    body.layout-admin.menu-collapsed nav.app-shell__menu .menu-header__brand,
    body.layout-admin.menu-collapsed nav.app-shell__menu .menu-section-title,
    body.layout-admin.menu-collapsed nav.app-shell__menu .menu-links > a .menu-link-label,
    body.layout-admin.menu-collapsed nav.app-shell__menu .menu-logout span {
        opacity: 0;
        max-width: 0;
    }

    body.layout-admin.menu-collapsed .menu-group__toggle {
        justify-content: center;
        padding: 0.55rem 0;
        gap: 0;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        position: relative;
    }

    body.layout-admin.menu-collapsed .menu-group__toggle .menu-link-label {
        display: none;
    }

    body.layout-admin.menu-collapsed .menu-links a {
        justify-content: center;
        padding: 0.55rem 0;
        gap: 0;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        position: relative;
        margin: 0 auto;
    }

    body.layout-admin.menu-collapsed .menu-links a i,
    body.layout-admin.menu-collapsed .menu-group__toggle i {
        margin: 0;
        font-size: 22px;
        color: var(--color-text-dark);
    }

    body.layout-admin.menu-collapsed .menu-links {
        width: 100%;
        align-items: center;
        gap: 0.4rem;
    }

    body.layout-admin.menu-collapsed .menu-group__toggle .menu-group__chevron {
        display: none;
    }

    body.layout-admin.menu-collapsed .menu-submenu {
        display: none;
    }

    body.layout-admin.menu-collapsed .menu-group.is-open {
        z-index: 1200;
    }

    body.layout-admin.menu-collapsed .menu-group.is-open .menu-submenu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 0;
        left: 78px;
        min-width: 220px;
        background: var(--color-surface);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
        border-radius: 14px;
        padding: 0.6rem 0.75rem;
        gap: 0.35rem;
    }

    body.layout-admin.menu-collapsed .menu-group.is-open .menu-submenu::before {
        content: "";
        position: absolute;
        left: -8px;
        top: 18px;
        width: 12px;
        height: 12px;
        transform: rotate(45deg);
        background: inherit;
        box-shadow: -3px 3px 10px rgba(15, 23, 42, 0.14);
    }

    body.layout-admin.menu-collapsed .menu-submenu__link {
        display: none;
    }

    body.layout-admin.menu-collapsed .menu-group.is-open .menu-submenu__link {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0.65rem;
        border-radius: 10px;
        width: 100%;
    }

    body.layout-admin.menu-collapsed .menu-group.is-open .menu-submenu__link.active {
        background: rgba(108, 122, 224, 0.12);
    }

    body.layout-admin.menu-collapsed .menu-group.is-open .menu-submenu__bullet {
        display: inline-flex;
    }

    body.layout-admin.menu-collapsed .menu-group.is-open .menu-submenu span {
        transform: none;
        opacity: 1;
    }

    body.layout-admin.menu-collapsed .menu-links a,
    body.layout-admin.menu-collapsed .menu-group__toggle {
        transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    body.layout-admin.menu-collapsed .menu-links a:hover,
    body.layout-admin.menu-collapsed .menu-links a.active,
    body.layout-admin.menu-collapsed .menu-group__toggle:hover,
    body.layout-admin.menu-collapsed .menu-group.is-open .menu-group__toggle {
        background: rgba(108, 122, 224, 0.16);
        box-shadow: 0 8px 18px rgba(83, 97, 210, 0.18);
        color: var(--color-primary-dark);
        transform: translateY(-1px);
    }

    body.layout-admin.menu-collapsed .menu-links a::after,
    body.layout-admin.menu-collapsed .menu-group__toggle::after {
        content: attr(data-label);
        position: absolute;
        left: 78px;
        top: 50%;
        background: var(--color-surface);
        color: var(--color-text-dark);
        border-radius: 8px;
        padding: 0.35rem 0.6rem;
        font-size: 0.82rem;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50%);
        transition: opacity 0.2s ease;
        white-space: nowrap;
    }

    body.layout-admin.menu-collapsed .menu-links a:hover::after,
    body.layout-admin.menu-collapsed .menu-group__toggle:hover::after {
        opacity: 1;
    }
}

@media only screen and (max-width: 992px) {
    .app-shell__layout {
        flex-direction: column;
    }

    nav.app-shell__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 280px;
        height: calc(100vh - var(--header-height));
        transform: translateX(-102%);
        transition: transform 0.3s ease;
        border-radius: 0;
        margin: 0;
        z-index: 999;
    }

    nav.app-shell__menu.is-open {
        transform: translateX(0);
    }

    main.page-content {
        padding: 0.75rem 0 2rem;
    }

    main.page-content .content-wrapper {
        max-width: none;
        margin: 0;
        width: 100%;
        padding: 0 0.75rem;
    }
}

@media only screen and (max-width: 768px) {
    /* Header optimizations */
    header.app-shell {
        padding: 0 0.5rem;
    }

    .app-shell__brand {
        gap: 0.5rem;
        min-width: 0;
    }

    .app-shell__brand .brand-title {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .app-shell__link--brand {
        display: none;
    }

    .org-switcher {
        margin-right: 0.5rem;
    }

    .org-switcher__trigger {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        max-width: 120px;
    }

    .org-switcher__label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .user-menu__trigger {
        padding: 0.35rem 0.7rem 0.35rem 0.45rem;
    }

    .user-menu__meta {
        display: none;
    }

    .user-menu__avatar {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    /* Card optimizations */
    .card {
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .card-content {
        padding: 1rem 0.75rem;
    }

    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .card-header__actions {
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 1.2rem;
    }

    .footer-brand,
    .footer-meta-wrapper {
        justify-content: center;
    }

    .menu-header {
        gap: 0.7rem;
    }

    .menu-links a {
        padding: 0.68rem 0.9rem;
    }

    .page-footer .row {
        text-align: center;
    }

    .page-footer .right-align {
        text-align: center !important;
    }

    /* Form grid optimizations */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-grid--three {
        grid-template-columns: 1fr;
    }

    /* Detail summary optimizations */
    .detail-summary {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .detail-summary__item {
        min-height: auto;
        padding: 0.7rem 0.85rem;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --sidebar-width: 280px;
    }

    header.app-shell {
        padding: 0 0.4rem;
    }

    .app-shell__brand .brand-title {
        font-size: 0.85rem;
    }

    .org-switcher__trigger {
        max-width: 100px;
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    /* Forzar 1 columna en todos los grids de información */
    .detail-summary {
        grid-template-columns: 1fr !important;
    }

    .btn,
    .btn-small,
    .btn--small {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .btn-small + .btn-small,
    .btn + .btn,
    .btn + .btn-small {
        margin-top: 0.55rem;
    }

    .card-header__actions .btn {
        width: 100%;
    }

    .footer-meta-wrapper {
        text-align: center;
        gap: 0.65rem;
    }

    table.highlight thead {
        display: none;
    }

    table.highlight tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    table.highlight tbody td {
        border: none;
        padding: 0.35rem 0;
        font-size: 0.88rem;
    }

    table.highlight tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #537571;
        margin-bottom: 0.1rem;
    }
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.profile-card {
    padding: 0;
    overflow: hidden;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.6rem;
    padding: 2.2rem 2.4rem 1.8rem;
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.12) 0%, rgba(233, 236, 255, 0.4) 100%);
}

body.layout-admin.theme-dark .profile-hero {
    background: linear-gradient(135deg, rgba(51, 60, 120, 0.55) 0%, rgba(26, 33, 58, 0.85) 100%);
}

.profile-hero__avatar {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(108, 122, 224, 0.36);
}

.profile-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.profile-hero__name {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.profile-hero__username {
    margin: 0;
    font-size: 0.98rem;
    color: var(--color-text-muted);
}

.profile-hero__cta .btn {
    white-space: nowrap;
}

.profile-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.15);
    color: var(--color-primary-dark);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.profile-grid {
    padding: 2.1rem 2.4rem 2.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profile-section__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-section__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.profile-section__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.profile-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(111, 122, 198, 0.2);
}

.profile-info-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.profile-info-value {
    font-size: 0.99rem;
    color: var(--color-text-dark);
}

.profile-security {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-security__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--color-surface-muted);
    border: 1px solid var(--surface-border);
}

.profile-security__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(108, 122, 224, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.profile-security__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.profile-security__value {
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.profile-section--timeline {
    grid-column: 1 / -1;
}

.profile-timeline {
    margin: 0;
    padding: 0 0 0 0.5rem;
    list-style: none;
    position: relative;
}

.profile-timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: linear-gradient(180deg, rgba(108, 122, 224, 0.4) 0%, rgba(108, 122, 224, 0) 100%);
}

.profile-timeline__item {
    position: relative;
    padding-left: 3.2rem;
    margin-bottom: 1.4rem;
}

.profile-timeline__icon {
    position: absolute;
    top: 0.1rem;
    left: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(108, 122, 224, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    box-shadow: 0 10px 20px rgba(54, 60, 100, 0.12);
}

body.layout-admin.theme-dark .profile-timeline__icon {
    background: rgba(22, 28, 52, 0.95);
}

.profile-timeline__content {
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    background: var(--color-surface);
    padding: 1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 14px 36px rgba(47, 52, 70, 0.08);
}

.profile-timeline__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.profile-timeline__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.profile-timeline__time {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.profile-timeline__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.profile-timeline__relative {
    font-size: 0.78rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-hero {
    padding: 0;
    overflow: hidden;
}

.dashboard-hero__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    align-items: center;
    padding: 2.4rem 2.6rem;
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.14) 0%, rgba(233, 236, 255, 0.45) 100%);
}

body.layout-admin.theme-dark .dashboard-hero__content {
    background: linear-gradient(135deg, rgba(34, 44, 88, 0.7) 0%, rgba(16, 22, 43, 0.9) 100%);
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.18);
    color: var(--color-primary-dark);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.dashboard-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-hero__title {
    margin: 0;
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.dashboard-hero__subtitle {
    margin: 0;
    font-size: 0.98rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 520px;
}

.dashboard-hero__snapshot {
    display: flex;
    justify-content: center;
}

.snapshot-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.7rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    border: 1px solid rgba(111, 122, 198, 0.1);
    background: var(--color-surface);
    box-shadow: 0 18px 38px rgba(47, 52, 70, 0.12);
}

.snapshot-card header {
    display: flex;
    justify-content: space-between;
    gap: 1.1rem;
}

.snapshot-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.snapshot-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.snapshot-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.snapshot-value {
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.snapshot-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(108, 122, 224, 0.12);
    color: var(--color-primary-dark);
}

.snapshot-chip--ok {
    background: rgba(83, 196, 159, 0.14);
    color: #277f60;
}

.snapshot-chip--danger {
    background: rgba(236, 143, 143, 0.16);
    color: #c25353;
}

.snapshot-chip--warm {
    background: rgba(250, 204, 129, 0.18);
    color: #b87a14;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.dashboard-analytics,
.dashboard-summary,
.dashboard-checklist {
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(111, 122, 198, 0.12);
    box-shadow: 0 24px 48px rgba(47, 52, 70, 0.12);
    padding: 1.8rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-analytics__header,
.dashboard-summary__header,
.dashboard-checklist__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.dashboard-analytics__header h2,
.dashboard-summary__header h2,
.dashboard-checklist__header h2 {
    margin: 0;
    font-weight: 700;
    color: var(--color-text-dark);
}

.dashboard-analytics__body {
    display: grid;
    grid-template-columns: minmax(240px, 3fr) minmax(220px, 2fr);
    gap: 1.6rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.dashboard-chart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 220px;
    background: rgba(108, 122, 224, 0.08);
    border-radius: 18px;
    color: var(--color-text-muted);
}

.dashboard-chart__empty .material-icons {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
}

.metrics-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.08), rgba(226, 229, 255, 0.12));
    border: 1px solid rgba(108, 122, 224, 0.15);
    box-shadow: 0 8px 24px rgba(47, 52, 70, 0.08);
}

.metric-pill--featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(226, 229, 255, 0.08) 100%);
    border: 1px solid rgba(108, 122, 224, 0.18);
    box-shadow: 0 12px 32px rgba(47, 52, 70, 0.12);
    transition: all 0.3s ease;
}

.metric-pill--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(47, 52, 70, 0.18);
    border-color: rgba(108, 122, 224, 0.25);
}

.metric-pill__icon {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    opacity: 0.9;
}

.metric-pill__details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.metric-pill__detail {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metric-pill__detail--muted {
    font-size: 0.75rem;
    opacity: 0.8;
}

.metric-pill__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.metric-pill__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.metric-pill__badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.14);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.metric-pill__badge--ok {
    background: rgba(83, 196, 159, 0.14);
    color: #277f60;
}

.metric-pill--compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.6rem;
}

.layout-main {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.layout-side {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.overview-card {
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(111, 122, 198, 0.12);
    box-shadow: 0 24px 48px rgba(47, 52, 70, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.overview-card__header {
    padding: 1.8rem 1.9rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(111, 122, 198, 0.08);
}

.overview-card__header h2 {
    margin: 0;
    font-weight: 700;
    color: var(--color-text-dark);
    font-size: 1.2rem;
}

.overview-card__header p {
    margin: 0.4rem 0 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.overview-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.overview-card__action:hover {
    background: rgba(108, 122, 224, 0.2);
    transform: translateY(-2px);
}

.overview-card__action i {
    font-size: 1rem;
}

.overview-card__body {
    padding: 1.8rem 1.9rem;
    flex: 1;
}

.overview-card--chart {
    grid-column: 1 / -1;
}

.overview-card--chart .overview-card__body {
    min-height: 300px;
}

.overview-card--list .overview-card__body {
    padding: 0;
}

.overview-card--table .overview-card__body {
    padding: 0;
}

.overview-card--note {
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.08), rgba(226, 229, 255, 0.1));
}

.overview-card--note .overview-card__header {
    border-bottom: none;
    padding: 1.6rem 1.8rem 0.8rem;
}

.note-card__title {
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.overview-card--note p {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.dashboard-layout--global {
    grid-template-columns: 1fr 280px;
    gap: 1.6rem;
}

@media only screen and (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .layout-side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .metrics-ribbon {
        grid-template-columns: 1fr;
    }
    
    .dashboard-layout,
    .dashboard-layout--global {
        grid-template-columns: 1fr;
    }
    
    .layout-side {
        display: flex;
        flex-direction: column;
    }
}

.dashboard-card {
    padding: 1.8rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(111, 122, 198, 0.1);
    background: var(--color-surface);
    box-shadow: 0 22px 44px rgba(47, 52, 70, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(108, 122, 224, 0.12), transparent 55%),
        radial-gradient(circle at bottom left, rgba(101, 215, 196, 0.1), transparent 50%);
    opacity: 0.92;
    pointer-events: none;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 52px rgba(47, 52, 70, 0.18);
}

.dashboard-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-card h2 {
    margin: 0;
    color: var(--color-text-dark);
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.dashboard-card ul {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(108, 122, 224, 0.18);
    color: var(--color-primary-dark);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-link:hover {
    background: rgba(108, 122, 224, 0.12);
    transform: translateX(4px);
}

.dashboard-fab {
    position: fixed;
    right: 2.2rem;
    bottom: 2.2rem;
    z-index: 1250;
}

.dashboard-fab__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, rgba(132, 143, 255, 0.95) 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 22px 45px rgba(66, 77, 151, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-fab__trigger:hover,
.dashboard-fab__trigger:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 28px 55px rgba(66, 77, 151, 0.38);
}

.dashboard-fab.is-open .dashboard-fab__trigger {
    box-shadow: 0 18px 35px rgba(66, 77, 151, 0.32);
    transform: translateY(-1px);
}

.dashboard-fab__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 22px 55px rgba(44, 55, 109, 0.22);
    padding: 0.8rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dashboard-fab.is-open .dashboard-fab__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dashboard-fab__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.8rem;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-fab__link i {
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.dashboard-fab__link:hover,
.dashboard-fab__link:focus-visible {
    background: rgba(108, 122, 224, 0.12);
    color: var(--color-primary-dark);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
}

.dashboard-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(245, 247, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(111, 122, 198, 0.12);
    position: relative;
}

.dashboard-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(108, 122, 224, 0.08), rgba(101, 215, 196, 0.06));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.dashboard-stat:hover::after {
    opacity: 1;
}

.dashboard-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.dashboard-list--scrollable {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.dashboard-list--empty {
    color: var(--color-text-muted);
    font-style: italic;
}

.dashboard-split__column {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--surface-border);
    background: var(--color-surface);
    box-shadow: 0 16px 40px rgba(47, 52, 70, 0.08);
}

.appointment-hero {
    padding: 0;
    overflow: hidden;
}

.appointment-hero__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    align-items: center;
    padding: 2.4rem 2.6rem;
    background: radial-gradient(circle at top left, rgba(108, 122, 224, 0.25), rgba(108, 122, 224, 0));
}

.appointment-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-hero__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.appointment-hero__subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.appointment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(108, 122, 224, 0.15);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.appointment-stats {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.appointment-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(108, 122, 224, 0.25);
    background: rgba(233, 236, 255, 0.45);
    min-width: 120px;
}

.appointment-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.appointment-stat__label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.appointment-hero__illustration {
    text-align: center;
}

.appointment-hero__illustration img {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 24px 48px rgba(54, 60, 100, 0.18));
}

.appointment-content {
    padding: 2.2rem 2.4rem;
}

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

.appointment-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.4rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--surface-border);
    background: var(--color-surface);
    box-shadow: 0 16px 40px rgba(47, 52, 70, 0.08);
}

.appointment-panel__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.appointment-panel__title i {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
}

.appointment-panel__text {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.96rem;
}

.appointment-steps {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin: 2rem 0;
}

.appointment-steps__card {
    padding: 2.3rem 2.4rem;
}

.appointment-section-title {
    margin: 0 0 1.4rem;
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.appointment-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.appointment-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(111, 122, 198, 0.18);
}

.appointment-step:last-child {
    border-bottom: none;
}

.appointment-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(108, 122, 224, 0.25);
}

.appointment-step h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    color: var(--color-text-dark);
}

.appointment-step p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.appointment-support {
    padding: 0;
    overflow: hidden;
}

.appointment-support__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    align-items: center;
    padding: 2.2rem 2.4rem;
    background: linear-gradient(145deg, rgba(108, 122, 224, 0.16) 0%, rgba(233, 236, 255, 0.55) 100%);
}

.appointment-support__content .btn {
    align-self: flex-start;
}

body.layout-admin.theme-dark .appointment-support__content {
    background: linear-gradient(145deg, rgba(39, 48, 98, 0.6) 0%, rgba(15, 21, 42, 0.85) 100%);
}

body.layout-admin.theme-dark .appointment-panel {
    background: rgba(26, 33, 58, 0.95);
}

@media (max-width: 992px) {
    .appointment-hero__content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .appointment-hero__title {
        font-size: 1.65rem;
    }

    .appointment-hero__content {
        padding: 1.8rem 1.6rem;
    }

    .appointment-stats {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .appointment-stat {
        flex: 1 1 100%;
        min-width: 0;
    }

    .appointment-steps__card {
        padding: 1.8rem 1.4rem;
    }

    .appointment-support__content {
        padding: 1.8rem 1.4rem;
    }
}

@media (max-width: 900px) {
    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-hero__cta {
        justify-self: center;
    }

    .profile-hero__meta {
        align-items: center;
    }

    .profile-grid {
        padding: 1.8rem;
    }

    .profile-section--timeline {
        grid-column: auto;
    }

    .profile-timeline::before {
        left: 20px;
    }

    .profile-timeline__item {
        padding-left: 3rem;
    }

    .profile-timeline__icon {
        left: -2px;
    }
}

/* Formulario de organizaciones */
.organization-form {
    margin-top: 1.6rem;
}

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

.organization-form__item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.organization-form__item--actions {
    justify-content: flex-end;
}

.organization-form__item--actions .form-actions {
    margin-top: 0;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .organization-form__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .organization-form__item--actions .form-actions {
        justify-content: flex-start;
        width: 100%;
    }
}
/* Badge para notificaciones en el menú lateral (ej. pagos pendientes) */
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    margin-left: 0.35rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.menu-badge--success {
    background: #22c55e; /* verde */
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(15, 118, 110, 0.2),
        0 6px 14px rgba(34, 197, 94, 0.35);
}