@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #0f172a;
    --sidebar-bg: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.5);
    --panel-strong: rgba(30, 41, 59, 0.9);
    --panel-soft: rgba(30, 41, 59, 0.5);
    --text-color: #f8fafc;
    --muted-text-color: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(100, 116, 139, 0.6);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #f43f5e;
    --info-color: #38bdf8;
    --shadow-color: rgba(15, 23, 42, 0.12);
    --table-head-bg: rgba(15, 23, 42, 0.92);
    --table-row-hover: rgba(59, 130, 246, 0.08);
    --input-bg: #0f172a;
    --scrollbar-thumb: #334155;
}

[data-bs-theme="light"] {
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --panel-bg: #ffffff;
    --panel-strong: #ffffff;
    --panel-soft: #ffffff;
    --text-color: #0f172a;
    --muted-text-color: #64748b;
    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-color: rgba(15, 23, 42, 0.05);
    --table-head-bg: #f8fafc;
    --table-row-hover: rgba(59, 130, 246, 0.04);
    --input-bg: #ffffff;
    --scrollbar-thumb: #cbd5e1;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.is-page-loading {
    overflow: hidden;
}

.page-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 38%),
        rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 3000;
}

.page-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loading-overlay__panel {
    width: min(100%, 360px);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
}

.page-loading-overlay__spinner {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.06));
    flex-shrink: 0;
}

.page-loading-overlay__spinner span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #dbeafe;
    animation: page-loading-pulse 1s infinite ease-in-out;
}

.page-loading-overlay__spinner span:nth-child(2) {
    animation-delay: 0.16s;
}

.page-loading-overlay__spinner span:nth-child(3) {
    animation-delay: 0.32s;
}

.page-loading-overlay__copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.page-loading-overlay__copy strong {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.page-loading-overlay__copy p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cbd5e1;
}

@keyframes page-loading-pulse {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-0.22rem);
    }
}

[data-bs-theme="light"] .page-loading-overlay {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 38%),
        rgba(248, 250, 252, 0.58);
}

[data-bs-theme="light"] .page-loading-overlay__panel {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="light"] .page-loading-overlay__copy strong {
    color: #0f172a;
}

[data-bs-theme="light"] .page-loading-overlay__copy p {
    color: #475569;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    transition: grid-template-columns 0.25s ease;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.5rem;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: padding 0.25s ease, width 0.25s ease;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}


.sidebar__logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.sidebar__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

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

.sidebar__link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted-text-color);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar__link i {
    width: 18px;
    height: 18px;
}

.sidebar__link:hover {
    color: var(--text-color);
    background: rgba(30, 41, 59, 0.55);
}

.sidebar__link.is-active {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.1);
    border-color: transparent;
}

[data-bs-theme="light"] .sidebar__link.is-active {
    color: #2563eb;
    background: #eff6ff;
}

.sidebar__profile {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    width: calc(280px - 3rem);
    margin-top: 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-color);
    z-index: 80;
}

.sidebar__profile-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.2rem;
}

.sidebar__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #334155;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 800;
}

.sidebar__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.sidebar__name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.sidebar__role {
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.1;
}

.sidebar__profile-logout {
    margin-left: auto;
    padding: 0.35rem;
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sidebar__profile-logout i {
    width: 18px;
    height: 18px;
}

.sidebar__profile-logout:hover {
    color: #f87171;
    background: rgba(148, 163, 184, 0.08);
}

[data-bs-theme="light"] .sidebar__avatar {
    background: #475569;
}

[data-bs-theme="light"] .sidebar__name {
    color: #0f172a;
}

[data-bs-theme="light"] .sidebar__role,
[data-bs-theme="light"] .sidebar__profile-logout {
    color: #64748b;
}

[data-bs-theme="light"] .sidebar__profile-logout:hover {
    color: #ef4444;
    background: rgba(148, 163, 184, 0.12);
}


[data-bs-theme="light"] .sidebar {
    border-right-color: #e2e8f0;
}

.app-shell.is-sidebar-collapsed,
html.sidebar-prefers-collapsed .app-shell {
    grid-template-columns: 94px minmax(0, 1fr);
}

.app-shell.is-sidebar-collapsed .sidebar,
html.sidebar-prefers-collapsed .app-shell .sidebar {
    padding: 1.4rem 0.9rem;
}

.app-shell.is-sidebar-collapsed .sidebar__brand,
html.sidebar-prefers-collapsed .app-shell .sidebar__brand {
    justify-content: center;
    gap: 0;
    padding-top: 0.15rem;
}

.app-shell.is-sidebar-collapsed .sidebar__title,
.app-shell.is-sidebar-collapsed .sidebar__link span,
.app-shell.is-sidebar-collapsed .sidebar__meta,
html.sidebar-prefers-collapsed .app-shell .sidebar__title,
html.sidebar-prefers-collapsed .app-shell .sidebar__link span,
html.sidebar-prefers-collapsed .app-shell .sidebar__meta {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-6px);
}


.app-shell.is-sidebar-collapsed .sidebar__nav,
html.sidebar-prefers-collapsed .app-shell .sidebar__nav {
    align-items: center;
}

.app-shell.is-sidebar-collapsed .sidebar__link,
html.sidebar-prefers-collapsed .app-shell .sidebar__link {
    width: 56px;
    justify-content: center;
    gap: 0;
    padding-inline: 0;
}

.app-shell.is-sidebar-collapsed .sidebar__profile,
html.sidebar-prefers-collapsed .app-shell .sidebar__profile {
    left: 0.9rem;
    bottom: 1.4rem;
    width: calc(94px - 1.8rem);
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
}

.app-shell.is-sidebar-collapsed .sidebar__profile-row,
html.sidebar-prefers-collapsed .app-shell .sidebar__profile-row {
    flex-direction: column;
    gap: 0.18rem;
    padding: 0;
}

.app-shell.is-sidebar-collapsed .sidebar__profile-logout,
html.sidebar-prefers-collapsed .app-shell .sidebar__profile-logout {
    margin-left: 0;
    margin-top: -0.1rem;
}

.dashboard-content {
    padding: 1.55rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.1rem;
}

.topbar__intro h1 {
    margin: 0.1rem 0 0.3rem;
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: none;
}

.topbar__subtitle {
    margin: 0;
    color: #94a3b8;
    max-width: 620px;
    font-size: 0.92rem;
}

.topbar__mobile-brand {
    display: none;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.topbar__mobile-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.eyebrow {
    margin: 0;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 700;
}

[data-bs-theme="light"] .eyebrow {
    color: #64748b;
}

.glass-card,
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
}

[data-bs-theme="light"] .glass-card,
[data-bs-theme="light"] .glass-panel {
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.filters-panel {
    padding: 1.05rem 1.1rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    gap: 0.8rem;
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    position: relative;
}

.field span {
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.field:focus-within span {
    color: #60a5fa;
}

[data-bs-theme="light"] .field:focus-within span {
    color: #2563eb;
}

.form-control,
.form-select {
    background-color: rgba(30, 41, 59, 0.4);
    color: var(--text-color);
    border: 1.2px solid rgba(100, 116, 139, 0.3);
    border-radius: 1.1rem;
    padding: 0.75rem 1rem;
    min-height: 46px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.55);
    font-weight: 400;
}

.form-control:hover {
    background-color: rgba(30, 41, 59, 0.55);
    border-color: rgba(100, 116, 139, 0.45);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(30, 41, 59, 0.65);
    color: var(--text-color);
    border-color: #60a5fa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.3rem rgba(96, 165, 250, 0.12), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #cbd5e1;
}

[data-bs-theme="light"] .form-control:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    border-color: #93c5fd;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 0.3rem rgba(147, 197, 253, 0.18), 0 4px 12px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.form-select option {
    color: #0f172a;
}

[data-bs-theme="dark"] .form-select option {
    color: #f8fafc;
    background: #0f172a;
}

.filters-grid__button {
    min-width: 132px;
}

.action-btn {
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 0.76rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    width: 17px;
    height: 17px;
    position: relative;
    z-index: 1;
}

.action-btn span {
    position: relative;
    z-index: 1;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    position: relative;
}

.action-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.action-btn--primary:active {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

[data-bs-theme="light"] .action-btn--primary {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

[data-bs-theme="light"] .action-btn--primary:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.action-btn--ghost {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(100, 116, 139, 0.3);
    color: var(--text-color);
}

.action-btn--ghost:hover {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(100, 116, 139, 0.5);
    color: #60a5fa;
}

[data-bs-theme="light"] .action-btn--ghost {
    background: rgba(248, 250, 252, 0.8);
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-bs-theme="light"] .action-btn--ghost:hover {
    background: #ffffff;
    border-color: #93c5fd;
    color: #2563eb;
}

.action-btn--small {
    padding: 0.62rem 0.92rem;
    font-size: 0.82rem;
}

#theme-switcher {
    min-width: auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: inherit;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

#theme-switcher::before {
    display: none;
}

#theme-switcher:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

.sidebar__profile-logout {
    width: 38px;
    height: 38px;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar__profile-row button {
    min-width: 38px;
    min-height: 38px;
}

#theme-switcher svg,
.sidebar__profile-logout svg {
    width: 18px;
    height: 18px;
    display: block;
}

#theme-switcher .theme-switcher-icon svg {
    width: 18px;
    height: 18px;
}

#theme-switcher svg {
    color: currentColor;
}

#theme-switcher:hover svg.lucide-sun {
    color: #facc15;
}

#theme-switcher:hover svg.lucide-moon {
    color: #1e3a8a;
}

.sidebar__profile-logout:hover svg {
    color: #dc2626;
}

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

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1.15rem;
    min-height: 146px;
    transition: border-color 0.2s ease;
}

.kpi-card:hover {
    border-color: var(--border-strong);
}

[data-bs-theme="light"] .kpi-card {
    border-color: #e2e8f0;
}

.kpi-card__content {
    position: relative;
    z-index: 10;
}

.kpi-card__bg-icon {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.08;
    transform: rotate(12deg) scale(1);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

[data-bs-theme="light"] .kpi-card__bg-icon {
    opacity: 0.16;
}

.kpi-card__bg-icon svg,
.kpi-card__bg-icon i {
    width: 104px;
    height: 104px;
}

.kpi-card:hover .kpi-card__bg-icon {
    opacity: 0.12;
    transform: rotate(12deg) scale(1.08);
}

[data-bs-theme="light"] .kpi-card:hover .kpi-card__bg-icon {
    opacity: 0.2;
}

.kpi-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.72rem;
    background: rgba(15, 23, 42, 0.65);
}

.kpi-card__icon svg,
.kpi-card__icon i {
    width: 17px;
    height: 17px;
}

.kpi-card__label {
    margin: 0;
    color: var(--muted-text-color);
    font-weight: 600;
    font-size: 0.86rem;
}

[data-bs-theme="light"] .kpi-card__label,
[data-bs-theme="light"] .kpi-card__trend,
[data-bs-theme="light"] .kpi-card__hint,
[data-bs-theme="light"] .field span,
[data-bs-theme="light"] .table-footer__label,
[data-bs-theme="light"] .table-footer__info,
[data-bs-theme="light"] .performance-card__label {
    color: #64748b;
}

.kpi-card__value {
    margin: 0.45rem 0 0.3rem;
    font-size: clamp(1.55rem, 1.95vw, 2.15rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

[data-bs-theme="light"] .kpi-card__value {
    color: #1f2937;
}

.kpi-card__trend {
    margin: 0 0 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
}

.kpi-card__trend::before {
    font-size: 0.8rem;
}

.kpi-card__trend--positive {
    color: #60a5fa;
}

.kpi-card__trend--positive::before {
    content: "↗";
}

.kpi-card__trend--negative {
    color: #fda4af;
}

.kpi-card__trend--negative::before {
    content: "↘";
}

.kpi-card__trend--neutral {
    color: #94a3b8;
}

.kpi-card__trend--neutral::before {
    content: "→";
}

.kpi-card__hint {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 0.78rem;
}

.kpi-card--blue .kpi-card__icon,
.kpi-card--blue .kpi-card__value,
.kpi-card--blue .kpi-card__bg-icon {
    color: #60a5fa;
}

[data-bs-theme="light"] .kpi-card--blue .kpi-card__icon {
    background: #eff6ff;
    color: #2563eb;
}

[data-bs-theme="light"] .kpi-card--blue .kpi-card__bg-icon {
    color: #3b82f6;
}

.kpi-card--green .kpi-card__icon,
.kpi-card--green .kpi-card__value,
.kpi-card--green .kpi-card__bg-icon {
    color: #4ade80;
}

[data-bs-theme="light"] .kpi-card--green .kpi-card__icon {
    background: #ecfdf5;
    color: #059669;
}

[data-bs-theme="light"] .kpi-card--green .kpi-card__bg-icon {
    color: #10b981;
}

.kpi-card--gold .kpi-card__icon,
.kpi-card--gold .kpi-card__value,
.kpi-card--gold .kpi-card__bg-icon {
    color: #fbbf24;
}

[data-bs-theme="light"] .kpi-card--gold .kpi-card__icon {
    background: #fffbeb;
    color: #d97706;
}

[data-bs-theme="light"] .kpi-card--gold .kpi-card__bg-icon {
    color: #f59e0b;
}

.kpi-card--orange .kpi-card__icon,
.kpi-card--orange .kpi-card__value,
.kpi-card--orange .kpi-card__bg-icon {
    color: #fb923c;
}

[data-bs-theme="light"] .kpi-card--orange .kpi-card__icon {
    background: #fff7ed;
    color: #ea580c;
}

[data-bs-theme="light"] .kpi-card--orange .kpi-card__bg-icon {
    color: #f97316;
}

[data-bs-theme="light"] .kpi-card--blue .kpi-card__value,
[data-bs-theme="light"] .kpi-card--green .kpi-card__value,
[data-bs-theme="light"] .kpi-card--gold .kpi-card__value,
[data-bs-theme="light"] .kpi-card--orange .kpi-card__value {
    color: #1f2937;
}

.charts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

.chart-card {
    padding: 0.9rem;
    height: 100%;
}

[data-bs-theme="light"] .chart-card {
    background: var(--panel-bg);
}

[data-bs-theme="light"] .section-head h3,
[data-bs-theme="light"] .dashboard-table thead th,
[data-bs-theme="light"] .dashboard-table tbody td,
[data-bs-theme="light"] .modal-title,
[data-bs-theme="light"] .form-label {
    color: #0f172a;
}

.chart-card--wide {
    display: flex;
    flex-direction: column;
}

.chart-card--performance {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.chart-card--wide .chart-canvas-wrap {
    flex: 1;
    min-height: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.section-head h3 {
    margin: 0.14rem 0 0;
    font-size: 0.88rem;
    font-weight: 700;
}

.section-head__icon {
    width: 13px;
    height: 13px;
    color: var(--muted-text-color);
}

.section-head--table {
    margin-bottom: 1rem;
}

.chart-canvas-wrap {
    position: relative;
    min-height: 144px;
    padding: 0.25rem 0.32rem 0.05rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.06));
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.chart-canvas-wrap--tall {
    min-height: 178px;
    height: 100%;
}

.volume-chart {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.volume-chart__bars {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 0.38rem;
    padding: 0 0.18rem;
}

.volume-chart__item {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0.38rem;
}

.volume-chart__rail {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
}

.volume-chart__bar {
    width: 100%;
    min-height: 12px;
    border-radius: 0.5rem 0.5rem 0 0;
    background: rgba(37, 99, 235, 0.22);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.volume-chart__bar:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, 0.42);
}

.volume-chart__bar--highlight {
    background: rgb(37, 99, 235);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.volume-chart__bar--highlight:hover {
    background: rgba(96, 165, 250, 1);
}

.volume-chart__label {
    font-size: 0.64rem;
    line-height: 1;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}

[data-bs-theme="light"] .volume-chart__bar {
    background: rgba(37, 99, 235, 0.16);
}

[data-bs-theme="light"] .volume-chart__bar:hover {
    background: rgba(59, 130, 246, 0.28);
}

[data-bs-theme="light"] .volume-chart__bar--highlight {
    background: rgb(37, 99, 235);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.16);
}

[data-bs-theme="light"] .volume-chart__label {
    color: #64748b;
}

.volume-chart__empty {
    width: 100%;
    display: grid;
    place-items: center;
    color: var(--muted-text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.performance-ring {
    width: 100%;
    height: 100%;
    display: block;
    transform: rotate(-90deg);
}

.performance-ring__track,
.performance-ring__value {
    fill: none;
    stroke-width: 8;
}

.performance-ring__track {
    stroke: rgba(51, 65, 85, 0.92);
}

.performance-ring__value {
    stroke: #10b981;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

[data-bs-theme="light"] .performance-ring__track {
    stroke: #e2e8f0;
}

.performance-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.35rem 0 0.2rem;
    min-height: 0;
}

.performance-chart-wrap {
    position: relative;
    width: min(100%, 138px);
    aspect-ratio: 1;
    flex-shrink: 0;
}

.performance-chart__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.performance-chart__center span {
    font-size: clamp(1rem, 1.45vw, 1.45rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #ecfdf5;
}

[data-bs-theme="light"] .performance-chart__center span {
    color: #065f46;
}

.performance-card__label {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.25;
}

.performance-card__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0;
}

.performance-legend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.48rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
}

.performance-legend--success {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.performance-legend--error {
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.24);
}

[data-bs-theme="light"] .performance-legend--success {
    color: #065f46;
}

[data-bs-theme="light"] .performance-legend--error {
    color: #9f1239;
}

[data-bs-theme="light"] .topbar__intro h1 {
    color: #0f172a;
}

[data-bs-theme="light"] .topbar__subtitle {
    color: #64748b;
}

[data-bs-theme="light"] .action-btn--ghost {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
}

[data-bs-theme="light"] .action-btn--ghost:hover {
    background: #f8fafc;
    color: #0f172a;
}

[data-bs-theme="light"] .dashboard-table-wrap,
[data-bs-theme="light"] .historico-table-container,
[data-bs-theme="light"] .modal-shell {
    border-color: #e2e8f0;
}

[data-bs-theme="light"] .chart-canvas-wrap {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: #e2e8f0;
}

canvas {
    max-height: none !important;
}

.table-panel {
    padding: 1.2rem;
}

.restrictions-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.restrictions-panel,
.restrictions-table-panel {
    padding: 1.5rem;
}

.restrictions-panel--governance {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
}

[data-bs-theme="light"] .restrictions-panel--governance {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: #dbe4f0;
}

.restrictions-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.35rem;
}

.restrictions-hero__copy {
    max-width: 760px;
}

.restrictions-hero__copy h3 {
    margin: 0.15rem 0 0.7rem;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

[data-bs-theme="light"] .restrictions-hero__copy h3 {
    color: #0f172a;
}

.restrictions-panel__intro {
    margin: 0;
    color: #e2ecfb;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
}

[data-bs-theme="light"] .restrictions-panel__intro,
[data-bs-theme="light"] .restrictions-control-head__subtitle {
    color: #526581;
}

.restrictions-panel__intro strong {
    color: #f8fbff;
    font-weight: 700;
}

[data-bs-theme="light"] .restrictions-panel__intro strong {
    color: #1e3a5f;
}

.restrictions-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.restriction-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.restriction-form__field {
    margin: 0;
}

.restriction-form__button {
    min-width: 160px;
    justify-content: center;
}

.restrictions-hero__stats {
    width: min(100%, 290px);
    display: grid;
    gap: 0.9rem;
}

.restriction-stat {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.restriction-stat__label {
    display: block;
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.restriction-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.restriction-stat--warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.36) 0%, rgba(15, 23, 42, 0.58) 100%);
}

.restriction-stat--warning .restriction-stat__label {
    color: #fcd34d;
}

.restriction-stat--warning strong {
    color: #fef3c7;
}

[data-bs-theme="light"] .restriction-stat {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-color: #cfe0ff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

[data-bs-theme="light"] .restriction-stat__label {
    color: #6b7f99;
}

[data-bs-theme="light"] .restriction-stat strong {
    color: #0f172a;
}

[data-bs-theme="light"] .restriction-stat--warning {
    background: linear-gradient(180deg, #fff9db 0%, #fef3c7 100%);
    border-color: #fcd34d;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
}

[data-bs-theme="light"] .restriction-stat--warning .restriction-stat__label {
    color: #a16207;
}

[data-bs-theme="light"] .restriction-stat--warning strong {
    color: #713f12;
}

.restriction-stat--muted {
    border-color: rgba(148, 163, 184, 0.14);
}

.restriction-stat--muted strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

[data-bs-theme="light"] .restriction-stat--muted {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #dde6f1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.restriction-subpanel {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(15, 23, 42, 0.35);
}

[data-bs-theme="light"] .restriction-subpanel {
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
    border-color: #dbe4f0;
}

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

.restriction-subpanel__head h4 {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    font-weight: 700;
}

[data-bs-theme="light"] .restriction-subpanel__head h4 {
    color: #0f172a;
}

.restriction-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.restriction-chip--soft {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.16);
}

[data-bs-theme="light"] .restriction-chip--soft {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.restriction-chip--ghost {
    color: var(--muted-text-color);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

[data-bs-theme="light"] .restriction-chip--ghost {
    color: #64748b;
    background: #f8fafc;
    border-color: #dbe4f0;
}

.restriction-chip--accent {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.14);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

[data-bs-theme="light"] .restriction-chip--accent {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.restriction-toast-container {
    z-index: 1085;
}

.restriction-toast {
    min-width: min(360px, calc(100vw - 2rem));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

[data-bs-theme="light"] .restriction-toast {
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    border-color: #dbe4f0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.restriction-toast__body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1rem;
}

.restriction-toast__icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

[data-bs-theme="light"] .restriction-toast__icon {
    background: #eff6ff;
}

.restriction-toast__content {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.restriction-toast--success {
    border-color: rgba(34, 197, 94, 0.32);
}

.restriction-toast--success .restriction-toast__icon {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
}

.restriction-toast--error {
    border-color: rgba(244, 63, 94, 0.34);
}

.restriction-toast--error .restriction-toast__icon {
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.14);
}

.restriction-toast--info {
    border-color: rgba(59, 130, 246, 0.34);
}

.restriction-toast--info .restriction-toast__icon {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
}

.restriction-results-wrap {
    min-height: 280px;
}

[data-bs-theme="light"] .restriction-results-wrap,
[data-bs-theme="light"] .restrictions-table-panel .dashboard-table-wrap {
    background: #ffffff;
    border-color: #dbe4f0;
}

.restrictions-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.restrictions-control-head__subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted-text-color);
    font-size: 0.94rem;
}

[data-bs-theme="light"] .restrictions-table-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #dbe4f0;
}

.dashboard-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.12);
}

.dashboard-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-color);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: var(--table-row-hover);
    margin: 0;
}

.dashboard-table thead th {
    background: var(--table-head-bg);
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.1rem;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 1rem 1.1rem;
    border-bottom-color: var(--border-color);
    vertical-align: middle;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table .badge {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
}

.dashboard-table .btn {
    border: 0;
    border-radius: 8px;
    font-weight: 600;
}

.dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0.4rem 0.72rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dashboard-action:hover {
    transform: translateY(-1px);
}

.dashboard-action--notes {
    background: #2563eb;
    color: #ffffff;
}

.dashboard-action--notes:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.dashboard-action--charge {
    background: #f59e0b;
    color: #ffffff;
}

.dashboard-action--charge:hover {
    background: #d97706;
    color: #ffffff;
}

.dashboard-action--history {
    min-width: 32px;
    padding-inline: 0.55rem;
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

.dashboard-action--history:hover {
    background: rgba(148, 163, 184, 0.26);
    color: #f8fafc;
}

.dashboard-action--history i {
    font-size: 0.9rem;
}

.dashboard-action--danger {
    background: #dc2626;
    color: #ffffff;
}

.dashboard-action--danger:hover {
    background: #b91c1c;
    color: #ffffff;
}

.dashboard-action--success {
    background: #16a34a;
    color: #ffffff;
}

.dashboard-action--success:hover {
    background: #15803d;
    color: #ffffff;
}

[data-bs-theme="light"] .dashboard-action--history {
    background: #f1f5f9;
    color: #475569;
}

[data-bs-theme="light"] .dashboard-action--history:hover {
    background: #e2e8f0;
    color: #334155;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.table-footer__group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-footer__label,
.table-footer__info {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

#grid-per-page {
    width: auto;
    min-width: 82px;
    min-height: 40px;
    padding-block: 0.45rem;
}

.modal-shell {
    background: var(--panel-strong);
    border: 1.2px solid var(--border-color);
    border-radius: 1.2rem;
    color: var(--text-color);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
    transition: border-color 0.25s ease;
}

.modal-header,
.modal-footer {
    border-color: var(--border-color);
    padding: 1.4rem;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.6rem 1.4rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    justify-content: space-between;
}

.modal-title,
.form-label {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.form-label {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.modal-shell .btn-close {
    filter: invert(1);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.modal-shell .btn-close:hover {
    opacity: 1;
}

[data-bs-theme="light"] .modal-shell .btn-close {
    filter: none;
}

.modal-shell--notification {
    max-width: 500px;
    position: relative;
    background: #23284a;
    border: 1px solid rgba(110, 124, 255, 0.22);
    border-radius: 1.35rem;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.48);
    overflow: hidden;
}

.modal-shell--notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0), rgba(244, 114, 182, 0.58), rgba(244, 114, 182, 0));
}

.system-notification__body {
    padding: 1.8rem 1.6rem 1.35rem;
}

.system-notification__layout {
    display: flex;
    justify-content: center;
}

.system-notification__icon-wrap {
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    margin: 0 auto 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.system-notification__icon {
    width: 1.45rem;
    height: 1.45rem;
    color: #ef4444;
}

.system-notification__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.system-notification__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 2;
}

.system-notification__header-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 2rem;
    text-align: center;
}

.system-notification__eyebrow {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fda4af;
    text-transform: uppercase;
}

.system-notification__header-copy .modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.system-notification__subtitle {
    margin: 0;
    color: #b7c0dc;
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 28rem;
}

.system-notification__content {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.14);
    padding: 1rem 1.05rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.system-notification__label {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fca5a5;
}

.system-notification__message {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #f8fafc;
    white-space: pre-line;
    font-weight: 500;
    text-align: center;
}

.system-notification__technical {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(248, 113, 113, 0.86);
    font-size: 0.83rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    text-align: center;
}

.system-notification__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.35rem;
    width: 100%;
}

[data-bs-theme="light"] .modal-shell--notification {
    background: #ffffff;
    border-color: #dbe4f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="light"] .system-notification__subtitle {
    color: #64748b;
}

[data-bs-theme="light"] .system-notification__header-copy .modal-title {
    color: #0f172a;
}

[data-bs-theme="light"] .system-notification__eyebrow {
    color: #dc2626;
}

[data-bs-theme="light"] .system-notification__content {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

[data-bs-theme="light"] .system-notification__label {
    color: #dc2626;
}

[data-bs-theme="light"] .system-notification__technical {
    color: rgba(185, 28, 28, 0.9);
}

[data-bs-theme="light"] .system-notification__message {
    color: #0f172a;
}

.dashboard-list-group .list-group-item {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-color);
    border-color: var(--border-color);
}

.text-muted {
    color: var(--muted-text-color) !important;
}

.historico-table-container {
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.historico-table {
    min-width: 1200px;
    margin-bottom: 0;
    border-collapse: collapse;
}

.historico-table th,
.historico-table td {
    white-space: nowrap;
    padding: 0.8rem;
}

.historico-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--table-head-bg);
}

.skeleton-item {
    animation: skeleton-loading 1s linear infinite alternate;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    from {
        background-color: rgba(148, 163, 184, 0.16);
    }
    to {
        background-color: rgba(148, 163, 184, 0.28);
    }
}

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

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

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

@media (max-width: 1400px) {
    .filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filters-grid__button {
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .topbar__mobile-brand {
        display: inline-flex;
    }

    .kpi-grid,
    .charts-layout,
    .restrictions-layout {
        grid-template-columns: 1fr;
    }

    .chart-canvas-wrap--tall {
        min-height: 210px;
    }

    .restrictions-hero {
        flex-direction: column;
    }

    .restrictions-hero__stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .dashboard-content {
        padding: 1.25rem;
    }

    .topbar {
        flex-direction: column;
    }

    .topbar__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .topbar__actions .action-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

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

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

    .restriction-form__button {
        width: 100%;
    }

    .restriction-subpanel__head,
    .restrictions-control-head {
        flex-direction: column;
        align-items: stretch;
    }

    .restriction-chip {
        white-space: normal;
    }

    .table-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .table-footer__group {
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .dashboard-content {
        padding: 1rem;
    }

    .glass-panel,
    .modal-shell {
        border-radius: 20px;
    }

    .filters-panel,
    .chart-card,
    .table-panel,
    .kpi-card {
        padding: 0.95rem;
    }

    .dashboard-table thead th,
    .dashboard-table tbody td {
        padding-inline: 0.9rem;
    }

    .restrictions-hero__stats {
        grid-template-columns: 1fr;
    }

    .table-footer__group {
        width: 100%;
    }
}

.admin-users-layout {
    display: grid;
    gap: 1.5rem;
}

.admin-users-panel,
.admin-users-table-panel {
    padding: 1.4rem;
}

.admin-users-panel__header {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.1rem;
}

.admin-users-panel__header--compact {
    align-items: flex-start;
}

.admin-users-panel__header-copy {
    position: relative;
    width: 100%;
    padding: 1.1rem 1.15rem 0.1rem 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

[data-bs-theme="light"] .admin-users-panel__header-copy {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
}

.admin-users-panel__header-copy h3 {
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.admin-users-panel__subtitle {
    margin: 0.4rem 0 0;
    color: var(--muted-text-color);
    max-width: 760px;
}

.admin-users-panel__meta {
    margin: 0.9rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-users-panel--minimal,
.admin-users-table-panel--minimal {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.62));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
}

[data-bs-theme="light"] .admin-users-panel--minimal,
[data-bs-theme="light"] .admin-users-table-panel--minimal {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 42px rgba(148, 163, 184, 0.16);
}

.admin-user-form {
    display: grid;
    gap: 1.5rem;
}

.admin-user-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    padding: 0.2rem;
}

.field--inline-toggle {
    justify-content: flex-end;
    align-items: flex-end;
}

.admin-users-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    min-height: 46px;
    padding: 0.5rem 0.8rem;
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(100, 116, 139, 0.2);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.admin-users-switch:hover {
    background: rgba(30, 41, 59, 0.45);
    border-color: rgba(100, 116, 139, 0.35);
}

[data-bs-theme="light"] .admin-users-switch {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-bs-theme="light"] .admin-users-switch:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.admin-users-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.4);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.admin-users-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-users-switch input[type="checkbox"]:checked {
    background: #60a5fa;
    border-color: #3b82f6;
}

.admin-users-switch input[type="checkbox"]:checked::before {
    left: 21px;
}

[data-bs-theme="light"] .admin-users-switch input[type="checkbox"] {
    background: #cbd5e1;
    border-color: #94a3b8;
}

[data-bs-theme="light"] .admin-users-switch input[type="checkbox"]:checked {
    background: #93c5fd;
    border-color: #60a5fa;
}

.company-selector {
    border: 1.2px solid rgba(100, 116, 139, 0.3);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(30, 41, 59, 0.2));
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.company-selector:hover {
    border-color: rgba(100, 116, 139, 0.45);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(30, 41, 59, 0.35));
}

.company-selector[open] {
    border-color: #60a5fa;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.65), rgba(30, 41, 59, 0.45));
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.3rem rgba(96, 165, 250, 0.1), 0 4px 12px rgba(59, 130, 246, 0.12);
}

[data-bs-theme="light"] .company-selector {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: #cbd5e1;
}

[data-bs-theme="light"] .company-selector:hover {
    border-color: #94a3b8;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

[data-bs-theme="light"] .company-selector[open] {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 0.3rem rgba(147, 197, 253, 0.1), 0 4px 12px rgba(59, 130, 246, 0.1);
}

.company-selector--minimal {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.company-selector__summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    user-select: none;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.company-selector__summary:hover {
    background: rgba(30, 41, 59, 0.2);
}

[data-bs-theme="light"] .company-selector__summary:hover {
    background: rgba(15, 23, 42, 0.04);
}

.company-selector__summary small {
    color: var(--muted-text-color);
    font-weight: 500;
    font-size: 0.85rem;
}

.company-selector__summary::-webkit-details-marker {
    display: none;
}

.company-selector__summary::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: auto;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
    color: inherit;
}

.company-selector[open] .company-selector__summary::after {
    transform: rotate(180deg);
}

.company-selector__options {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem 1.2rem 1.2rem;
    background: rgba(30, 41, 59, 0.15);
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

[data-bs-theme="light"] .company-selector__options {
    background: rgba(15, 23, 42, 0.02);
    border-top-color: #e2e8f0;
}

.company-selector__option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    padding: 0.5rem 0.7rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.company-selector__option:hover {
    background: rgba(59, 130, 246, 0.12);
}

[data-bs-theme="light"] .company-selector__option:hover {
    background: rgba(59, 130, 246, 0.08);
}

.company-selector__option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 0.4rem;
    border: 1.5px solid rgba(100, 116, 139, 0.5);
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.company-selector__option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-color: #3b82f6;
}

.company-selector__option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -4px;
}

[data-bs-theme="light"] .company-selector__option input[type="checkbox"] {
    border-color: #cbd5e1;
}

[data-bs-theme="light"] .company-selector__option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    border-color: #60a5fa;
}

.company-selector__option small {
    color: var(--muted-text-color);
    font-size: 0.8rem;
}

.company-selector__empty {
    margin: 0;
    color: var(--muted-text-color);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.admin-user-feedback {
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-user-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.admin-user-feedback.error {
    background: rgba(244, 63, 94, 0.1);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.admin-user-feedback.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-bs-theme="light"] .admin-user-feedback {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

[data-bs-theme="light"] .admin-user-feedback.success {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

[data-bs-theme="light"] .admin-user-feedback.error {
    background: rgba(244, 63, 94, 0.08);
    color: #dc2626;
    border-color: rgba(244, 63, 94, 0.2);
}

[data-bs-theme="light"] .admin-user-feedback.warning {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.admin-user-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding-top: 0.5rem;
}

.admin-users-grid__companies {
    min-width: 260px;
}

.admin-users-company-list {
    line-height: 1.55;
    color: var(--text-color);
}

.admin-users-text-muted {
    color: var(--muted-text-color);
}

.admin-user-actions {
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-action-btn {
    min-width: 84px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.44rem 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.admin-action-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

[data-bs-theme="dark"] .admin-action-btn--edit {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.24), rgba(37, 99, 235, 0.18));
    border-color: rgba(96, 165, 250, 0.34);
}

[data-bs-theme="dark"] .admin-action-btn--edit:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.34), rgba(37, 99, 235, 0.24));
    border-color: rgba(147, 197, 253, 0.45);
}

[data-bs-theme="dark"] .admin-action-btn--password {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.22), rgba(8, 145, 178, 0.16));
    border-color: rgba(103, 232, 249, 0.26);
}

[data-bs-theme="dark"] .admin-action-btn--password:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.31), rgba(8, 145, 178, 0.22));
    border-color: rgba(165, 243, 252, 0.38);
}

[data-bs-theme="dark"] .admin-action-btn--status {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.16));
    border-color: rgba(253, 186, 116, 0.26);
}

[data-bs-theme="dark"] .admin-action-btn--status:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.22));
    border-color: rgba(254, 215, 170, 0.38);
}

[data-bs-theme="light"] .admin-action-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
    color: #0f172a;
    box-shadow: none;
}

[data-bs-theme="light"] .admin-action-btn:hover:not(:disabled) {
    background: rgba(248, 250, 252, 1);
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.14);
}

.admin-users-table-head {
    margin-bottom: 1rem;
}

.admin-users-table td,
.admin-users-table th {
    vertical-align: middle;
}

.modal-shell--clean {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 1.2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] .modal-shell--clean {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e2e8f0;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
}

.modal-shell--password-reset .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.password-reset__subtitle {
    margin-bottom: 1.2rem;
    color: var(--muted-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.password-reset__feedback {
    min-height: 2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.password-reset__feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.password-reset__feedback.error {
    background: rgba(244, 63, 94, 0.1);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

[data-bs-theme="light"] .password-reset__feedback.success {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

[data-bs-theme="light"] .password-reset__feedback.error {
    background: rgba(244, 63, 94, 0.08);
    color: #dc2626;
    border-color: rgba(244, 63, 94, 0.2);
}

@media (max-width: 860px) {
    .admin-user-form__grid {
        grid-template-columns: 1fr;
    }

    .admin-user-form__grid .field {
        margin-top: 0;
    }

    .admin-users-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-form__actions {
        justify-content: stretch;
        gap: 0.8rem;
    }

    .admin-user-form__actions .action-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-user-actions {
        justify-content: flex-start;
    }

    .field--inline-toggle {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .field {
        gap: 0.4rem;
    }

    .field span {
        font-size: 0.65rem;
    }

    .form-control,
    .form-select {
        padding: 0.7rem 0.9rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .admin-users-switch {
        min-height: 44px;
    }

    .company-selector__summary {
        padding: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .company-selector__summary small {
        width: 100%;
        font-size: 0.8rem;
    }

    .action-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field {
    animation: slideInUp 0.3s ease-out forwards;
}

.field:nth-child(2) {
    animation-delay: 0.05s;
}

.field:nth-child(3) {
    animation-delay: 0.1s;
}

.field:nth-child(4) {
    animation-delay: 0.15s;
}

.company-selector {
    animation: slideInUp 0.35s ease-out;
}

.admin-user-form__actions {
    animation: slideInUp 0.4s ease-out;
}

body.dashboard-page {
    font-size: 14px;
    line-height: 1.45;
}

body.dashboard-page .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
}

body.dashboard-page .sidebar {
    padding: 1.5rem 1.1rem;
    gap: 1.45rem;
}

body.dashboard-page .sidebar__brand {
    gap: 0.72rem;
}

body.dashboard-page .sidebar__logo {
    width: 40px;
    height: 40px;
}

body.dashboard-page .sidebar__title {
    font-size: 1.08rem;
}


body.dashboard-page .sidebar__nav {
    gap: 0.45rem;
}

body.dashboard-page .sidebar__link {
    gap: 0.68rem;
    padding: 0.72rem 0.82rem;
    font-size: 0.875rem;
}

body.dashboard-page .sidebar__link i {
    width: 16px;
    height: 16px;
}

body.dashboard-page .sidebar__profile {
    left: 1.1rem;
    bottom: 1.1rem;
    width: calc(224px - 2.2rem);
    padding-top: 0.9rem;
}

body.dashboard-page .sidebar__profile-row {
    gap: 0.62rem;
}

body.dashboard-page .sidebar__avatar {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
}

body.dashboard-page .sidebar__name {
    font-size: 0.9rem;
}

body.dashboard-page .sidebar__role {
    font-size: 0.7rem;
}

body.dashboard-page .sidebar__profile-logout {
    padding: 0.28rem;
}

body.dashboard-page .sidebar__profile-logout i {
    width: 16px;
    height: 16px;
}

body.dashboard-page .app-shell.is-sidebar-collapsed,
html.sidebar-prefers-collapsed body.dashboard-page .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
}

body.dashboard-page .app-shell.is-sidebar-collapsed .sidebar,
html.sidebar-prefers-collapsed body.dashboard-page .app-shell .sidebar {
    padding: 1.15rem 0.72rem;
}

body.dashboard-page .app-shell.is-sidebar-collapsed .sidebar__link,
html.sidebar-prefers-collapsed body.dashboard-page .app-shell .sidebar__link {
    width: 48px;
}


body.dashboard-page .dashboard-content {
    padding: 1.2rem;
    gap: 0.95rem;
}

body.dashboard-page .topbar {
    gap: 0.85rem;
}

body.dashboard-page .topbar__intro h1 {
    margin: 0.08rem 0 0.24rem;
    font-size: clamp(1.55rem, 2.15vw, 2rem);
}

body.dashboard-page .topbar__subtitle,
body.dashboard-page .restrictions-panel__intro,
body.dashboard-page .restrictions-control-head__subtitle,
body.dashboard-page .volume-chart__empty,
body.dashboard-page .table-footer__label,
body.dashboard-page .table-footer__info,
body.dashboard-page .performance-card__label {
    font-size: 0.875rem;
}

body.dashboard-page .topbar__mobile-brand {
    margin-bottom: 0.75rem;
}

body.dashboard-page .topbar__mobile-logo {
    width: 32px;
    height: 32px;
}

body.dashboard-page .topbar__actions {
    gap: 0.5rem;
}

body.dashboard-page .eyebrow,
body.dashboard-page .field span,
body.dashboard-page .restriction-stat__label,
body.dashboard-page .dashboard-table thead th,
body.dashboard-page .volume-chart__label {
    font-size: 0.75rem;
}

body.dashboard-page .glass-card,
body.dashboard-page .glass-panel {
    border-radius: 0.9rem;
}

body.dashboard-page .filters-panel,
body.dashboard-page .table-panel,
body.dashboard-page .restrictions-panel,
body.dashboard-page .restrictions-table-panel {
    padding: 1rem;
}

body.dashboard-page .filters-grid,
body.dashboard-page .restriction-form,
body.dashboard-page .admin-users-layout,
body.dashboard-page .restrictions-layout {
    gap: 0.85rem;
}

body.dashboard-page .field {
    gap: 0.38rem;
}

body.dashboard-page .form-control,
body.dashboard-page .form-select {
    min-height: 40px;
    padding: 0.58rem 0.82rem;
    font-size: 0.875rem;
}

body.dashboard-page .action-btn {
    padding: 0.58rem 0.9rem;
    font-size: 0.84rem;
    gap: 0.55rem;
}

body.dashboard-page .action-btn i {
    width: 15px;
    height: 15px;
}

body.dashboard-page .action-btn--small {
    padding: 0.48rem 0.72rem;
    font-size: 0.78rem;
}

body.dashboard-page #theme-switcher {
    min-width: auto;
    padding: 0.2rem;
    border-color: transparent;
    background: transparent;
    color: inherit;
}

body.dashboard-page #theme-switcher::before {
    display: none;
}

body.dashboard-page #theme-switcher:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

body.dashboard-page .kpi-grid,
body.dashboard-page .charts-layout {
    gap: 0.7rem;
}

body.dashboard-page .kpi-card {
    min-height: 126px;
    padding: 0.95rem;
}

body.dashboard-page .kpi-card__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.55rem;
}

body.dashboard-page .kpi-card__icon svg,
body.dashboard-page .kpi-card__icon i {
    width: 15px;
    height: 15px;
}

body.dashboard-page .kpi-card__label,
body.dashboard-page .kpi-card__trend,
body.dashboard-page .kpi-card__hint {
    font-size: 0.78rem;
}

body.dashboard-page .kpi-card__value {
    margin: 0.32rem 0 0.24rem;
    font-size: clamp(1.35rem, 1.65vw, 1.85rem);
}

body.dashboard-page .chart-card {
    padding: 0.78rem;
}

body.dashboard-page .section-head {
    gap: 0.8rem;
    margin-bottom: 0.45rem;
}

body.dashboard-page .section-head h3 {
    font-size: 0.84rem;
}

body.dashboard-page .section-head--table {
    margin-bottom: 0.8rem;
}

body.dashboard-page .section-head__icon {
    width: 12px;
    height: 12px;
}

body.dashboard-page .chart-canvas-wrap {
    min-height: 132px;
    padding: 0.2rem 0.24rem 0;
}

body.dashboard-page .chart-canvas-wrap--tall {
    min-height: 162px;
}

body.dashboard-page .performance-card__body {
    gap: 0.55rem;
}

body.dashboard-page .performance-chart-wrap {
    width: min(100%, 126px);
}

body.dashboard-page .restrictions-hero {
    gap: 1rem;
    margin-bottom: 1rem;
}

body.dashboard-page .restrictions-hero__tags {
    gap: 0.55rem;
    margin-top: 0.8rem;
}

body.dashboard-page .restrictions-hero__stats {
    width: min(100%, 250px);
    gap: 0.7rem;
}

body.dashboard-page .restriction-form {
    margin-bottom: 0.8rem;
}

body.dashboard-page .restriction-form__button {
    min-width: 140px;
}

body.dashboard-page .restriction-stat {
    padding: 0.82rem 0.9rem;
}

body.dashboard-page .restriction-stat strong {
    font-size: 1.35rem;
}

body.dashboard-page .restriction-stat--muted strong {
    font-size: 0.92rem;
}

body.dashboard-page .restriction-chip,
body.dashboard-page .performance-legend {
    font-size: 0.75rem;
}

body.dashboard-page .dashboard-table thead th {
    padding: 0.75rem 0.9rem;
    letter-spacing: 0.14em;
}

body.dashboard-page .dashboard-table tbody td {
    padding: 0.72rem 0.9rem;
    font-size: 0.875rem;
}

body.dashboard-page .dashboard-table .btn,
body.dashboard-page .dashboard-action {
    min-height: 30px;
    padding: 0.34rem 0.62rem;
    font-size: 0.76rem;
}

body.dashboard-page .table-footer {
    padding-top: 0.8rem;
}

body.dashboard-page .modal-header,
body.dashboard-page .modal-footer {
    padding: 1rem;
}

body.dashboard-page .modal-body {
    padding: 1.1rem 1rem;
}

body.dashboard-page .modal-title,
body.dashboard-page .form-label {
    font-size: 1rem;
}

body.dashboard-page .admin-users-panel,
body.dashboard-page .admin-users-table-panel {
    padding: 1rem;
}

body.dashboard-page .admin-user-form {
    gap: 1rem;
}

body.dashboard-page .admin-user-form__grid {
    gap: 0.9rem;
}

body.dashboard-page .company-selector__summary {
    padding: 0.88rem 0.96rem;
    font-size: 0.88rem;
}

body.dashboard-page .company-selector__summary small {
    font-size: 0.78rem;
}

body.dashboard-page .company-selector__options {
    gap: 0.55rem;
    padding: 0.7rem 0.96rem 0.96rem;
}

body.dashboard-page .company-selector__option {
    padding: 0.44rem 0.58rem;
}

body.dashboard-page .admin-user-actions {
    gap: 0.45rem;
}

body.dashboard-page .admin-action-btn {
    padding: 0.45rem 0.66rem;
    font-size: 0.76rem;
}

@media (max-width: 1180px) {
    body.dashboard-page .app-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    body.dashboard-page .dashboard-content {
        padding: 1rem;
    }

    body.dashboard-page .topbar {
        gap: 0.7rem;
    }
}
