:root {
    --ui-shell-bg: linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8fafc;
    --ui-surface-overlay: rgba(255, 255, 255, 0.9);
    --ui-border: rgba(103, 119, 136, 0.16);
    --ui-border-soft: rgba(103, 119, 136, 0.12);
    --ui-text-primary: #111827;
    --ui-text-secondary: #5f6b7d;
    --ui-text-muted: #6b7788;
    --ui-table-head-bg: #f8fafc;
    --ui-table-row-hover: #f8fbff;
    --ui-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
    --ui-shadow-surface: 0 10px 30px rgba(15, 23, 42, 0.05);
    --ui-accent-soft: rgba(42, 16, 164, 0.08);
    --ui-accent-text: #172e73;
    --ui-focus-ring: rgba(42, 16, 164, 0.28);
}

[data-theme-mode="dark"] {
    --ui-shell-bg: linear-gradient(180deg, #13172b 0%, #0d1120 100%);
    --ui-surface: #151a2f;
    --ui-surface-soft: #1c223a;
    --ui-surface-overlay: rgba(21, 26, 47, 0.92);
    --ui-border: rgba(148, 163, 184, 0.24);
    --ui-border-soft: rgba(148, 163, 184, 0.18);
    --ui-text-primary: #e6edf7;
    --ui-text-secondary: #b4bfd1;
    --ui-text-muted: #a6b2c6;
    --ui-table-head-bg: #1d233b;
    --ui-table-row-hover: #202740;
    --ui-shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
    --ui-shadow-surface: 0 10px 30px rgba(0, 0, 0, 0.4);
    --ui-accent-soft: rgba(91, 109, 248, 0.2);
    --ui-accent-text: #ffffff;
    --ui-focus-ring: rgba(91, 109, 248, 0.4);
}
body {
    background-color: var(--custom-white);
}
.app-content .main-body-container {
    border: 0px solid var(--default-border);
}
.admin-shell {
    background: var(--ui-shell-bg);
    color: var(--ui-text-primary);
}

.app-header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: var(--ui-surface-overlay);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ui-border-soft);
}

.app-header-context {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;

    gap: 1rem;
    min-width: 0;
}

.app-header-title-block {
    min-width: 0;
}

.app-header-eyebrow {
    display: inline-block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-text-secondary);
}

.app-header-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ui-text-primary);
}

.app-header-actions {
    display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.main-header-container .header-content-left,
.main-header-container .header-content-right {
    display: flex;
    align-items: stretch;
    margin-block: inherit !important;
}

.app-profile-avatar {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a10a4, #5b6df8);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(42, 16, 164, 0.2);
}

.app-profile-avatar-lg {
    width: 2.75rem;
    height: 2.75rem;
}

.header-link {
    background: transparent;
}

.header-link:focus-visible,
.main-menu .side-menu__item:focus-visible,
#header-search:focus-visible,
.dropdown-item:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--ui-focus-ring);
    border-radius: 10px;
}

.filtro-header-label small,
.text-muted {
    color: var(--ui-text-secondary) !important;
}

@media (max-width: 1024px) {
    .app-header-shell {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .app-header-actions {
        justify-content: flex-end;
    }
}