:root {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: #182230;
    background: #eef2f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef2f7;
}

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

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    background: #111827;
    color: #fff;
    padding: 18px 14px;
    border-right: 1px solid #263244;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    padding: 8px 8px 18px;
    border-bottom: 1px solid #ffffff1f;
    min-height: 58px;
}

.logo-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #1d4ed8;
    font-weight: 800;
}

.logo-text,
.sidebar-logo strong,
.sidebar-logo small {
    display: block;
}

.sidebar-logo small {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 12px;
}

.app-shell.sidebar-collapsed .logo-text,
.app-shell.sidebar-collapsed .sub-menu-list,
.app-shell.sidebar-collapsed .menu-caret {
    display: none;
}
.app-shell.sidebar-collapsed .super-menu .icon-placeholder,
.app-shell.sidebar-collapsed .super-menu .icon-placeholder i {
    display: inline-block;
}

.sidebar-nav {
    padding-top: 16px;
}

.menu-group {
    margin-bottom: 8px;
}

.super-menu,
.sub-menu {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 38px;
    border-radius: 7px;
    text-decoration: none;
}

.super-menu {
    justify-content: space-between;
    padding: 8px 10px;
    color: #f8fafc;
    font-weight: 700;
    background: #1f2937;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.menu-caret {
    transform: rotate(-90deg);
    transition: transform .16s ease;
}

.menu-group.open .menu-caret {
    transform: rotate(0);
}

.sub-menu-list {
    display: none;
    gap: 3px;
    margin: 6px 0 0 12px;
    padding-left: 12px;
    border-left: 1px solid #374151;
}

.menu-group.open .sub-menu-list {
    display: grid;
}

.sub-menu {
    color: #dbeafe;
    padding: 8px 10px;
    font-size: 14px;
}

.sub-menu:hover,
.super-menu:hover {
    background: #2563eb;
}

.sub-menu.active,
.super-menu.active {
    background: #2563eb;
    color: #fff;
}

.sub-menu.active {
    font-weight: 700;
}

.main-area {
    min-width: 0;
}

.content-header {
    min-height: 76px;
    background: #fff;
    border-bottom: 1px solid #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 24px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.header-title strong {
    display: block;
    font-size: 18px;
}

.icon-button {
    min-width: 54px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d0d7e2;
    border-radius: 7px;
    background: #fff;
    color: #111827;
}

.user-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    flex: 1;
}

.user-summary div {
    min-width: 0;
}

.meta-label {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.user-summary strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #eff6ff;
    color: #172033;
    border: 1px solid #bfdbfe;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 210px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 18px 45px #17203324;
    padding: 7px;
    z-index: 20;
}

.profile-menu.open .profile-dropdown {
    display: grid;
}

.profile-dropdown a,
.menu-logout {
    width: 100%;
    display: block;
    color: #172033;
    text-align: left;
    text-decoration: none;
    padding: 10px 11px;
    border-radius: 6px;
}

.profile-dropdown a:hover,
.menu-logout:hover {
    background: #f1f5f9;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
}

.page-heading {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.eyebrow {
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 6px;
}

.page-description {
    margin: 7px 0 0;
    color: #64748b;
}

h1 {
    font-size: 28px;
    margin: 0;
}

h2 {
    font-size: 18px;
    margin-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card,
.panel,
.filter-panel,
.form-panel {
    background: white;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 5px 18px #16213d0a;
}

.card {
    padding: 22px;
    text-decoration: none;
    color: inherit;
}

.card span {
    display: block;
    color: #667085;
}

.card strong {
    display: block;
    font-size: 34px;
    margin-top: 14px;
}

.panel,
.form-panel {
    padding: 20px;
    margin: 16px 0;
}

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

.data-table {
    min-width: 760px;
    border: 1px solid #cbd5e1;
    border-collapse: collapse;
    background: #fff;
}

.filter-panel {
    padding: 16px;
    margin-bottom: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.tenant-filter-grid {
    grid-template-columns: minmax(210px, 1.4fr) repeat(6, minmax(145px, 1fr)) auto;
}

.filter-actions {
    display: flex;
    align-items: end;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.form-grid.wide,
.enterprise-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
}

label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 10px;
    background: #fff;
}

textarea {
    resize: vertical;
}

.checkbox-field {
    grid-column: 1 / -1;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 14px;
    margin: 0;
}

.checkbox-field legend {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 8px;
}

.checkbox-option {
    min-height: 38px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-weight: 600;
    background: #f8fafc;
}

.checkbox-option input {
    width: 16px;
    height: 16px;
    padding: 0;
}

.checkbox-option span {
    overflow-wrap: anywhere;
}

button,
.button {
    border: 0;
    border-radius: 7px;
    padding: 10px 15px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.primary {
    background: #2563eb;
    color: #fff;
}

.secondary {
    background: #e0ecff;
    color: #1d4ed8;
}

.danger {
    background: #fee2e2;
    color: #b42318;
}

.link-button {
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.muted {
    color: #667085;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 13px 10px;
    border: 1px solid #d7dee8;
    font-size: 14px;
    vertical-align: middle;
}

th {
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    background: #eef4fb;
    font-weight: 800;
}

.data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.data-table tbody tr:hover {
    background: #eff6ff;
}

.actions-cell {
    width: 1%;
    white-space: nowrap;
}

.action-form {
    display: inline-flex;
    margin: 0;
}

.action-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 6px;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #bfdbfe;
}

.action-button i {
    font-size: 14px;
}

.action-button.danger {
    border-color: #fecaca;
}

.status-dialog {
    width: min(420px, calc(100% - 32px));
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    color: #182230;
    box-shadow: 0 24px 70px #1720333d;
}

.status-dialog::backdrop {
    background: #0f172a73;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dialog-header h2 {
    margin: 0;
}

.dialog-actions {
    margin-top: 18px;
}

.inline {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
}

.pagination-summary {
    color: #64748b;
    font-size: 14px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination a {
    min-width: 36px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 7px 10px;
    border-radius: 7px;
    background: #f8fafc;
    color: #1d4ed8;
    text-decoration: none;
    border: 1px solid #d9e2ec;
}

.pagination a.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.empty-state {
    padding: 22px;
    color: #64748b;
    text-align: center;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: #111827;
}

.auth-card {
    background: white;
    padding: 38px;
    border-radius: 8px;
    width: min(420px, calc(100% - 32px));
    box-shadow: 0 18px 50px #0004;
}

.auth-card form {
    display: grid;
    gap: 16px;
    margin-top: 25px;
}

.tenant-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    margin-bottom: 18px;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f5fbff 48%, #eef8f3 100%);
    box-shadow: 0 14px 36px #16213d12;
}

.tenant-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tenant-avatar,
.tenant-section-heading > span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
}

.tenant-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

.tenant-identity h1 {
    overflow-wrap: anywhere;
}

.tenant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tenant-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #d9e7f4;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.tenant-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.tenant-hero-actions .button {
    gap: 8px;
}

.status-pill,
.log-action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-ACTIVE {
    background: #dcfce7;
    color: #166534;
}

.status-INACTIVE {
    background: #fee2e2;
    color: #991b1b;
}

.tenant-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tenant-info-panel {
    padding: 20px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 26px #16213d0d;
}

.tenant-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tenant-section-heading > span {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.tenant-section-heading h2,
.tenant-section-heading p {
    margin: 0;
}

.tenant-section-heading p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.tenant-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tenant-detail-list div {
    min-height: 72px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.tenant-detail-list span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tenant-detail-list strong {
    display: block;
    margin-top: 7px;
    color: #182230;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tenant-audit-panel {
    margin-top: 16px;
}

.tenant-log-table {
    min-width: 980px;
}

.tenant-log-table td {
    max-width: 240px;
    overflow-wrap: anywhere;
}

.empty-cell {
    padding: 24px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1180px) {
    .user-summary {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

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

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 288px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .app-shell:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
    }

    .content-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .header-title,
    .profile-trigger,
    .profile-dropdown {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .cards,
    .form-grid,
    .form-grid.wide,
    .enterprise-form,
    .filter-grid,
    .user-summary {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 18px 14px;
    }

    .page-heading,
    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tenant-detail-hero,
    .tenant-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tenant-hero-actions .button,
    .status-pill {
        justify-content: center;
        width: 100%;
    }

    .tenant-overview-grid,
    .tenant-detail-list {
        grid-template-columns: 1fr;
    }

    .tenant-identity {
        align-items: flex-start;
    }
}

/* Role aware dashboard */
.dashboard-page { --dash-ink: #17233d; --dash-muted: #78849a; --dash-line: #e8edf5; max-width: 1440px; margin: 0 auto; padding: 8px 0 34px; color: var(--dash-ink); }
.dashboard-hero { min-height: 218px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 34px 22px; border-radius: 22px; background: linear-gradient(115deg,#172554 0%,#283c83 48%,#5868df 100%); color: #fff; box-shadow: 0 18px 42px #253a852e; }
.dashboard-hero::before,.dashboard-hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid #ffffff17; border-radius: 50%; }
.dashboard-hero::before { width: 380px; height: 380px; right: 7%; top: -205px; }
.dashboard-hero::after { width: 300px; height: 300px; right: 14%; top: -160px; }
.dashboard-hero-copy { max-width: 700px; }
.dashboard-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #c8d2ff; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.dashboard-eyebrow i { color: #f9c76a; }
.dashboard-hero h1 { margin: 0; color: #fff; font-size: clamp(28px,3.2vw,40px); line-height: 1.12; letter-spacing: -.04em; }
.dashboard-hero-copy p { margin: 10px 0 0; color: #d7defe; font-size: 14px; }
.dashboard-hero-mark { position: absolute; right: 9%; top: 34px; display: grid; place-items: center; width: 126px; height: 126px; border: 1px solid #ffffff28; border-radius: 28px; background: linear-gradient(145deg,#ffffff22,#ffffff08); color: #ffffffd9; font-size: 53px; transform: rotate(8deg); box-shadow: 0 16px 45px #111d4e30; }
.dashboard-hero-foot { display: flex; align-items: center; gap: 9px; color: #d9e0ff; font-size: 12px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #59e0b1; box-shadow: 0 0 0 4px #59e0b128; }
.hero-divider { color: #8796dc; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.dashboard-metrics.cards-6 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-card { min-height: 158px; position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 19px 20px 17px; border: 1px solid var(--dash-line); border-radius: 17px; background: #fff; color: var(--dash-ink); text-decoration: none; box-shadow: 0 5px 18px #25324a08; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
a.metric-card:hover { transform: translateY(-3px); border-color: #cbd5ff; box-shadow: 0 14px 28px #25324a13; }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--metric-color); background: var(--metric-bg); font-size: 15px; }
.metric-label { margin-top: 15px; color: var(--dash-muted); font-size: 12px; font-weight: 700; }
.metric-value { margin-top: 1px; font-size: 29px; line-height: 1.15; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-caption { margin-top: 6px; color: #98a2b3; font-size: 11px; }
.metric-trend { position: absolute; top: 20px; right: 20px; color: #aab4c4; font-size: 12px; }
.tone-1 { --metric-color: #5264e8; --metric-bg: #eef0ff; }
.tone-2 { --metric-color: #0e9b84; --metric-bg: #e7f8f3; }
.tone-3 { --metric-color: #db8a16; --metric-bg: #fff5e2; }
.tone-4 { --metric-color: #d94d75; --metric-bg: #fff0f4; }
.tone-5 { --metric-color: #8055ca; --metric-bg: #f3edff; }
.tone-6 { --metric-color: #1977ad; --metric-bg: #e7f5fc; }
.dashboard-charts { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 16px; margin-top: 18px; }
.dashboard-panel { min-width: 0; padding: 23px 24px 19px; border: 1px solid var(--dash-line); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px #25324a08; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-kicker { color: #8b96aa; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.panel-heading h2,.actions-heading h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; color: var(--dash-muted); font-size: 12px; }
.panel-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; color: #5968e9; background: #eef0ff; }
.panel-icon.warm { color: #d98818; background: #fff4df; }
.donut-layout { display: flex; align-items: center; justify-content: center; gap: clamp(18px,4vw,42px); min-height: 192px; padding: 16px 0 10px; }
.donut-chart { width: 152px; height: 152px; flex: 0 0 152px; display: grid; place-items: center; border-radius: 50%; background: var(--pie-gradient); position: relative; }
.donut-chart::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #fff; }
.donut-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.donut-center strong { font-size: 27px; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.donut-center span { margin-top: 3px; color: var(--dash-muted); font-size: 11px; }
.chart-legend { display: grid; gap: 13px; min-width: 135px; }
.legend-row { display: grid; grid-template-columns: 9px minmax(70px,1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.legend-name { color: #6e7a90; }
.legend-row strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.panel-link { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #eef1f6; color: #5363dc; font-size: 12px; font-weight: 700; text-decoration: none; }
.panel-link i { transition: transform .16s ease; }
.panel-link:hover i { transform: translateX(4px); }
.bar-chart { display: grid; gap: 20px; padding: 25px 0 21px; }
.bar-row { display: grid; grid-template-columns: 108px minmax(50px,1fr) 38px; align-items: center; gap: 13px; }
.bar-label { overflow: hidden; color: #6e7a90; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; overflow: hidden; border-radius: 99px; background: #f0f2f7; }
.bar-fill { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--bar-color),color-mix(in srgb,var(--bar-color),white 20%)); }
.bar-value { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-note { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid #eef1f6; color: #929caf; font-size: 11px; }
.chart-note span { color: #929ff1; }
.dashboard-actions { margin-top: 20px; padding: 22px 24px 24px; border: 1px solid var(--dash-line); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px #25324a08; }
.actions-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.actions-heading h2 { margin-top: 5px; }
.actions-caption { color: #9aa4b4; font-size: 11px; }
.action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.action-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #edf0f6; border-radius: 13px; color: var(--dash-ink); text-decoration: none; transition: border-color .16s ease,background .16s ease,transform .16s ease; }
.action-card:hover { transform: translateY(-2px); border-color: #cbd3ff; background: #fafbff; }
.action-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; background: #f0f2ff; color: #5968e9; }
.action-copy { min-width: 0; display: grid; gap: 4px; }
.action-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.action-copy small { overflow: hidden; color: #8b96aa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.action-arrow { margin-left: auto; color: #aab4c4; font-size: 11px; }
@media (max-width: 1100px) { .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .dashboard-charts { grid-template-columns: 1fr; } .action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
    .dashboard-page { padding-top: 0; }
    .dashboard-hero { min-height: 210px; padding: 24px 21px 19px; border-radius: 17px; }
    .dashboard-hero-mark { width: 76px; height: 76px; top: 23px; right: 20px; border-radius: 20px; font-size: 31px; opacity: .62; }
    .dashboard-hero-copy { max-width: 82%; }
    .dashboard-hero-copy p { max-width: 350px; line-height: 1.5; }
    .dashboard-metrics { gap: 10px; margin-top: 12px; }
    .metric-card { min-height: 147px; padding: 14px; border-radius: 14px; }
    .metric-icon { width: 34px; height: 34px; }
    .metric-trend { top: 16px; right: 14px; }
    .dashboard-charts { gap: 12px; margin-top: 12px; }
    .dashboard-panel { padding: 19px 17px 16px; border-radius: 15px; }
    .donut-layout { gap: 18px; min-height: 170px; }
    .donut-chart { width: 128px; height: 128px; flex-basis: 128px; }
    .donut-chart::before { inset: 14px; }
    .chart-legend { min-width: 120px; gap: 11px; }
    .bar-row { grid-template-columns: 86px minmax(35px,1fr) 30px; gap: 9px; }
    .dashboard-actions { margin-top: 12px; padding: 19px 17px; border-radius: 15px; }
    .action-grid { grid-template-columns: 1fr; }
}
