/* Executive dashboard */

.dashboard-main .topbar__intro > div {
    display: none;
}

.dashboard-main .topbar {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .dashboard-main .topbar {
        justify-content: space-between;
    }

    .dashboard-main .topbar__intro {
        display: flex;
    }
}

.dashboard-v2 {
    display: grid;
    gap: 14px;
    padding: 0;
}

.dashboard-loading {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
}

.profile-page .profile-panel__title p {
    color: color-mix(in srgb, var(--text), var(--surface) 34%);
}

.profile-page .profile-details dt {
    color: color-mix(in srgb, var(--text), var(--surface) 34%);
}

.profile-page .profile-stat span {
    color: color-mix(in srgb, var(--text), var(--surface) 34%);
}

.profile-page .profile-stat small {
    color: color-mix(in srgb, var(--text), var(--surface) 34%);
}

.profile-page .signature-guidance li {
    color: color-mix(in srgb, var(--text), var(--surface) 34%);
}

.profile-panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.profile-panel__title > .profile-panel-action {
    margin-inline-start: auto;
}

.profile-panel > .profile-panel-action {
    margin-top: 16px;
}

.profile-security-panel {
    grid-column: auto;
}

.profile-security-options {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.profile-security-options > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface), var(--primary) 3%);
}

.profile-security-options > div > span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
}

.profile-security-options > div > span > i {
    color: var(--primary);
    font-size: 17px;
}

.profile-security-options em {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f7f8fb;
    color: #d8b52b;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.profile-edit-modal {
    width: min(560px, 100%);
}

.profile-permissions-modal {
    width: min(760px, 100%);
}

.profile-permission-search {
    position: relative;
    margin-bottom: 12px;
}

.profile-permission-search i {
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.profile-permission-search input {
    width: 100%;
    min-height: 43px;
    padding-inline: 38px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
}

.profile-permission-groups {
    display: grid;
    gap: 10px;
    max-height: 52vh;
    overflow: auto;
    padding-inline-end: 4px;
}

.profile-permission-groups section {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.profile-permission-groups h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    color: var(--text);
}

.profile-permission-groups h4 span {
    min-width: 27px;
    padding: 3px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary), transparent 88%);
    color: var(--primary);
    text-align: center;
    font-size: 11px;
}

.profile-permission-groups section > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-permission-groups code {
    padding: 6px 8px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--surface), var(--text) 5%);
    color: var(--text);
    font-size: 11px;
    direction: ltr;
}

@media (max-width: 760px) {
    .profile-panel__title {
        flex-wrap: wrap;
    }

    .profile-panel__title > .profile-panel-action {
        width: 100%;
        margin-inline-start: 0;
    }

    .profile-security-options > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dashboard-skeleton {
    display: grid;
    gap: 14px;
    padding: 0;
    overflow: hidden;
}

.dashboard-skeleton i {
    box-sizing: border-box;
}

.dashboard-skeleton span {
    box-sizing: border-box;
}

.dashboard-skeleton b {
    box-sizing: border-box;
}

.dashboard-skeleton article {
    box-sizing: border-box;
}

.dashboard-skeleton i {
    display: block;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--line), transparent 20%) 25%,
        color-mix(in srgb, var(--surface), #fff 35%) 50%,
        color-mix(in srgb, var(--line), transparent 20%) 75%
    );
    background-size: 220% 100%;
    animation: dashboard-skeleton-shimmer 1.35s infinite linear;
}

.dashboard-skeleton article > div > span {
    display: block;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--line), transparent 20%) 25%,
        color-mix(in srgb, var(--surface), #fff 35%) 50%,
        color-mix(in srgb, var(--line), transparent 20%) 75%
    );
    background-size: 220% 100%;
    animation: dashboard-skeleton-shimmer 1.35s infinite linear;
}

.dashboard-skeleton article > div > b {
    display: block;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--line), transparent 20%) 25%,
        color-mix(in srgb, var(--surface), #fff 35%) 50%,
        color-mix(in srgb, var(--line), transparent 20%) 75%
    );
    background-size: 220% 100%;
    animation: dashboard-skeleton-shimmer 1.35s infinite linear;
}

.dashboard-skeleton__charts > article > span {
    display: block;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--line), transparent 20%) 25%,
        color-mix(in srgb, var(--surface), #fff 35%) 50%,
        color-mix(in srgb, var(--line), transparent 20%) 75%
    );
    background-size: 220% 100%;
    animation: dashboard-skeleton-shimmer 1.35s infinite linear;
}

@keyframes dashboard-skeleton-shimmer {
    to {
        background-position: -220% 0;
    }
}

.dashboard-skeleton__hero {
    min-height: 112px;
    padding: 24px 26px;
    border-radius: 20px;
    display: grid;
    align-content: center;
    gap: 10px;
    background: color-mix(in srgb, var(--primary), var(--surface) 82%);
}

.dashboard-skeleton__hero i:nth-child(1) {
    width: 110px;
    height: 12px;
}

.dashboard-skeleton__hero i:nth-child(2) {
    width: min(420px, 72%);
    height: 28px;
}

.dashboard-skeleton__hero i:nth-child(3) {
    width: min(560px, 88%);
    height: 12px;
}

.dashboard-skeleton__filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 100px;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.dashboard-skeleton__filters i {
    height: 42px;
}

.dashboard-skeleton__kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-skeleton__kpis article {
    min-height: 94px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.dashboard-skeleton__kpis article > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.dashboard-skeleton__kpis article > div {
    flex: 1;
    display: grid;
    gap: 8px;
}

.dashboard-skeleton__kpis span {
    width: 82%;
    height: 10px;
}

.dashboard-skeleton__kpis b {
    width: 48%;
    height: 22px;
}

.dashboard-skeleton__alerts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dashboard-skeleton__alerts i {
    height: 48px;
}

.dashboard-skeleton__charts {
    display: grid;
    grid-template-columns: 0.72fr 0.72fr 1.45fr;
    gap: 12px;
}

.dashboard-skeleton__charts article {
    min-height: 330px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.dashboard-skeleton__charts article > span {
    width: 45%;
    height: 16px;
    margin-bottom: 24px;
}

.dashboard-skeleton__charts article > i {
    width: 72%;
    height: 210px;
    margin: auto;
    border-radius: 50%;
}

.dashboard-skeleton__charts article.wide > i {
    width: 88%;
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .dashboard-skeleton__kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-skeleton__charts {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-skeleton__charts .wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .dashboard-skeleton {
        padding-inline: 10px;
    }

    .dashboard-skeleton__filters {
        grid-template-columns: 1fr;
    }

    .dashboard-skeleton__kpis {
        grid-template-columns: 1fr;
    }

    .dashboard-skeleton__alerts {
        grid-template-columns: 1fr;
    }

    .dashboard-skeleton__charts {
        grid-template-columns: 1fr;
    }

    .dashboard-skeleton__charts .wide {
        grid-column: auto;
    }
}

.dashboard-hero {
    min-height: 94px;
    padding: 16px 22px;
    border-radius: 20px;
    color: var(--on-brand);
    background: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
}

.dashboard-hero span {
    color: var(--on-brand-muted);
}

.dashboard-hero p {
    color: var(--on-brand-muted);
}

.dashboard-hero h2 {
    margin: 4px 0;
    font-size: var(--ui-title-size, clamp(22px, 2vw, 30px));
}

.dashboard-hero p {
    margin: 0;
    font-size: 13px;
}

.dashboard-hero__actions {
    display: flex;
    gap: 8px;
}

.dashboard-hero__actions .secondary-button {
    background: var(--brand-purple);
    border-color: var(--line);
    color: var(--on-brand);
}

.dashboard-filterbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto 44px;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 24px #1e38230a;
}

.dashboard-filterbar label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.dashboard-filterbar select {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.dashboard-filterbar > button {
    align-self: end;
    height: 42px;
}

.dashboard-reset {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--muted);
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-kpi {
    --kpi: var(--primary);
    position: relative;
    min-height: 94px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 13px;
    overflow: hidden;
}

.dashboard-kpi::after {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: var(--line);
}

.dashboard-kpi__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--kpi);
    background: color-mix(in srgb, var(--kpi), transparent 88%);
    font-size: 19px;
}

.dashboard-kpi div {
    display: grid;
    gap: 4px;
}

.dashboard-kpi small {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-kpi strong {
    color: var(--text);
    font-size: 23px;
    line-height: 1;
}

.dashboard-alerts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dashboard-alerts > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e5cfa0;
    border-radius: 13px;
    background: #fffaf0;
    color: #77571d;
    text-align: start;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border-color 0.15s;
}

.dashboard-alerts > button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e5cfa0;
    border-radius: 13px;
    background: #fffaf0;
    color: #77571d;
    text-align: start;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border-color 0.15s;
}

.dashboard-alerts > button:hover {
    border-color: #d3ac59;
    box-shadow: 0 7px 18px #7a591916;
    transform: translateY(-1px);
}

.dashboard-alerts > button > i:last-child {
    margin-inline-start: auto;
    font-size: 12px;
}

.dashboard-alerts i {
    font-size: 18px;
}

.dashboard-alerts b {
    font-size: 17px;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(250px, 0.72fr) minmax(360px, 1.45fr);
    gap: 12px;
}

.dashboard-chart-card {
    min-height: 330px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 9px 27px #2336260b;
    overflow: hidden;
}

.dashboard-chart-card > header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.dashboard-chart-card h3 {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 17px;
}

.dashboard-chart-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.dashboard-chart-card > header > i {
    color: var(--muted);
}

.dashboard-chart {
    height: 255px;
    width: 100%;
}

.dashboard-branch-card {
    padding: 17px;
    border-radius: 18px;
}

.dashboard-branch-card .section-heading {
    margin-bottom: 12px;
}

.dashboard-branch-card .eyebrow {
    color: #718744;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-grid {
    height: 465px;
}

:is(.dashboard-v2, .indicator-theme) {
    --dashboard-active: #187653;
    --dashboard-complete: var(--indicator-accent, #4b52a0);
    --dashboard-remaining: var(--indicator-secondary, #5d697b);
}

html[data-theme='dark'] :is(.dashboard-v2, .indicator-theme) {
    --dashboard-active: #20825e;
    --dashboard-complete: var(--indicator-accent, #626ac0);
    --dashboard-remaining: var(--indicator-secondary, #646e82);
}

html[data-indicator-template]:not([data-indicator-template='standard']) #app
    :is(.dashboard-v2, .indicator-theme)
    :is(.dashboard-kpi, .dashboard-chart-card, .module-chart-card, .structural-kpis article, .comparison-kpis > div) {
    background: color-mix(in srgb, var(--dashboard-complete) 7%, var(--surface));
    border-color: color-mix(in srgb, var(--dashboard-complete) 25%, var(--line));
}

html[data-indicator-template]:not([data-indicator-template='standard']) #app
    :is(.structural-kpis, .comparison-kpis).indicator-theme > :is(article, div) {
    background: color-mix(in srgb, var(--dashboard-complete) 7%, var(--surface));
}

html[data-indicator-template]:not([data-indicator-template='standard']) #app
    :is(.dashboard-v2, .indicator-theme) .dashboard-kpi > div > small {
    order: 1;
}

#app :is(.dashboard-v2, .indicator-theme) .dashboard-kpi--success .dashboard-kpi__icon {
    background: var(--dashboard-active) !important;
    color: #fff !important;
}

#app :is(.dashboard-v2, .indicator-theme) .dashboard-kpi--primary .dashboard-kpi__icon {
    background: var(--dashboard-complete) !important;
    color: #fff !important;
}

:is(.dashboard-v2, .indicator-theme) .dashboard-kpi:has(.dashboard-kpi__help) {
    padding-inline-end: 2rem;
    overflow: visible;
}

.dashboard-kpi__help {
    position: absolute;
    inset-block-start: 0.35rem;
    inset-inline-end: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: help;
}

.dashboard-kpi__help [role='tooltip'] {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    width: max-content;
    max-width: 8rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface);
    color: var(--text);
    text-align: start;
    font-size: 0.75rem;
    line-height: 1.5;
    z-index: 2;
}

.dashboard-kpi__help:is(:hover, :focus) [role='tooltip'] {
    display: block;
}

#app #pageHost :is(#dashboardBranchGrid, .indicator-theme .module-overview-table .mvc-grid) {
    --ag-header-background-color: color-mix(in srgb, var(--dashboard-complete) 10%, var(--surface)) !important;
    --ag-row-hover-color: color-mix(in srgb, var(--dashboard-complete) 8%, var(--surface)) !important;
}

.dashboard-coverage {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    font-weight: 700;
}

.dashboard-coverage__track {
    flex: 1;
    min-width: 2.5rem;
    height: 0.42rem;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--dashboard-remaining) 25%, transparent);
}

.dashboard-coverage__track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.dashboard-grid-good .dashboard-coverage__track > span {
    background: var(--dashboard-complete);
}

.indicator-theme .dashboard-coverage__track > span,
.indicator-theme .workforce-bar--primary .workforce-track > i {
    background: var(--dashboard-complete);
}

.indicator-theme .workforce-bar--success .workforce-track > i,
.indicator-theme .module-demographic-row.is-complete .module-demographic-track > span {
    background: var(--dashboard-active);
}

.indicator-theme .workforce-bar--neutral .workforce-track > i {
    background: var(--dashboard-remaining);
}

.module-overview.indicator-theme {
    --overview-accent: var(--dashboard-complete);
    --overview-active: var(--dashboard-active);
    --overview-neutral: var(--dashboard-remaining);
}

.indicator-theme .dashboard-kpi {
    min-width: 0;
}

.indicator-theme .dashboard-kpi__icon {
    flex: 0 0 auto;
}

.indicator-theme .dashboard-kpi > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

:is(.structural-kpis, .comparison-kpis, .evaluation-metrics, .module-overview-metrics).indicator-theme > :is(article, div) {
    border-inline-start: 3px solid var(--dashboard-complete);
}

.structural-kpis.indicator-theme article > div > i {
    color: var(--dashboard-complete);
}

.task-charts.indicator-theme progress {
    accent-color: var(--dashboard-complete);
}

.task-charts.indicator-theme .is-complete progress {
    accent-color: var(--dashboard-active);
}

.module-overview-metrics.indicator-theme .module-kpi-icon:has(.bi-check2-circle) {
    background: var(--dashboard-active);
    color: #fff;
}

.dashboard-grid-good {
    color: #126a45;
    font-weight: 800;
}

.dashboard-grid-warn {
    color: #805b09;
    font-weight: 800;
}

.dashboard-grid-bad {
    color: #a33232;
    font-weight: 800;
}

html[data-theme='dark'] .dashboard-grid-good {
    color: #7dd3a5;
}

html[data-theme='dark'] .dashboard-grid-warn {
    color: #f4cf74;
}

html[data-theme='dark'] .dashboard-grid-bad {
    color: #ffaba5;
}

html[data-theme='dark'] .dashboard-hero {
    background: var(--brand-purple);
    border: 1px solid var(--line);
    box-shadow: none;
}

html[data-theme='dark'] .dashboard-hero span {
    color: var(--on-brand-muted);
}

html[data-theme='dark'] .dashboard-hero p {
    color: var(--on-brand-muted);
}

html[data-theme='dark'] .dashboard-hero__actions .secondary-button {
    background: var(--brand-purple);
    border-color: var(--line);
    color: var(--on-brand);
}

html[data-theme='dark'] .dashboard-alerts > div {
    border-color: #54472e;
    background: #292318;
    color: #e6c97f;
}

html[data-theme='dark'] .dashboard-alerts > button {
    border-color: #54472e;
    background: #292318;
    color: #e6c97f;
}

html[data-theme='dark'] .dashboard-filterbar select {
    color-scheme: dark;
}

html[data-theme='dark'] .dashboard-filterbar label {
    color: #aaa4b6;
}

html[data-theme='dark'] .dashboard-kpi small {
    color: #aaa4b6;
}

html[data-theme='dark'] .dashboard-chart-card p {
    color: #aaa4b6;
}

html[data-theme='dark'] .dashboard-kpi strong {
    color: #f4f1f7;
}

html[data-theme='dark'] .dashboard-chart-card h3 {
    color: #f4f1f7;
}

@media (max-width: 1280px) {
    .dashboard-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-charts {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-chart-card.wide {
        grid-column: 1 / -1;
    }

    .dashboard-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-v2 {
        padding: 0;
    }

    .dashboard-hero {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }

    .dashboard-filterbar {
        grid-template-columns: 1fr;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-kpi {
        min-width: 0;
        padding: 12px;
        gap: 8px;
    }

    .dashboard-kpi__icon {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .dashboard-kpi strong {
        font-size: 20px;
    }

    .dashboard-alerts {
        grid-template-columns: 1fr;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-card.wide {
        grid-column: auto;
    }

    .dashboard-filterbar > button {
        width: 100%;
    }

    .dashboard-grid {
        height: 520px;
    }
}

@page {
    size: A4 landscape;
    margin: 10mm 11mm 12mm;
}

.dashboard-print-heading {
    display: none;
}

@media print {
    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .app-shell,
    .app-shell[dir='rtl'],
    .app-shell[dir='ltr'] {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        grid-template-columns: none !important;
    }

    .sidebar,
    .mobile-nav-backdrop,
    .topbar,
    .dashboard-hero__actions,
    .dashboard-filterbar,
    .dashboard-reset {
        display: none !important;
    }

    .app-shell > main,
    .dashboard-main,
    #pageHost {
        display: block !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }

    .dashboard-v2 {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dashboard-print-mode .dashboard-print-heading {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8mm;
        margin: 0 0 4mm !important;
        padding: 0 0 3mm !important;
        color: #17211c !important;
        border-bottom: 2px solid #557026;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dashboard-print-heading div {
        display: grid;
        gap: 1mm;
    }

    .dashboard-print-heading strong {
        font-size: 17pt;
        line-height: 1.2;
    }

    .dashboard-print-heading span,
    .dashboard-print-heading small {
        color: #4d5852 !important;
        font-size: 9pt;
        font-weight: 500;
    }

    .dashboard-hero {
        min-height: 0 !important;
        margin: 0 0 3mm !important;
        padding: 3mm 4mm !important;
        color: #111 !important;
        background: #fff !important;
        border: 1px solid #bbb !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dashboard-hero h2 {
        margin: 1mm 0 !important;
        font-size: 15pt !important;
    }

    .dashboard-hero span,
    .dashboard-hero p {
        color: #555 !important;
    }

    .dashboard-kpis {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 2mm !important;
        margin-bottom: 3mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dashboard-kpi,
    .dashboard-alerts > div,
    .dashboard-alerts > button,
    .dashboard-chart-card,
    .dashboard-branch-card {
        color: #342a6b !important;
        background: #fff !important;
        border-color: #f7f8fb !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dashboard-kpi {
        min-height: 20mm !important;
        padding: 3mm !important;
    }

    .dashboard-kpi__icon {
        width: 9mm !important;
        height: 9mm !important;
    }

    .dashboard-kpi small {
        font-size: 7.5pt !important;
    }

    .dashboard-kpi strong {
        font-size: 14pt !important;
    }

    .dashboard-alerts {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2mm !important;
        margin-bottom: 3mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dashboard-charts {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 3mm !important;
        margin-bottom: 3mm !important;
    }

    .dashboard-chart-card {
        min-height: 56mm !important;
        padding: 3mm !important;
    }

    .dashboard-chart-card.wide {
        grid-column: 1 / -1 !important;
    }

    .dashboard-chart {
        height: 43mm !important;
    }

    .dashboard-branch-card {
        clear: both;
        margin-top: 3mm !important;
        padding: 3mm !important;
        break-before: auto;
        page-break-before: auto;
    }

    .dashboard-grid {
        height: 92mm !important;
        min-height: 92mm !important;
    }

    .dashboard-print-mode
        :where(.dashboard-kpi, .dashboard-alerts > button, .dashboard-chart-card, .dashboard-branch-card) {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

.dashboard-filterbar label,
.dashboard-kpi,
.dashboard-chart-card {
    min-width: 0;
}

.dashboard-filterbar select {
    min-width: 0;
    max-width: 100%;
}

@media screen and (max-width: 760px) and (min-width: 380px) {
    .dashboard-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-kpi {
        padding: 12px;
    }
}

.dashboard-v2 {
    container-type: inline-size;
    container-name: dashboard-workspace;
}

@container dashboard-workspace (max-width: 700px) {
    .dashboard-kpis,
    .dashboard-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-charts,
    .dashboard-alerts {
        grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-chart-card.wide {
        grid-column: auto;
    }
}

@container dashboard-workspace (max-width: 360px) {
    .dashboard-filterbar {
        grid-template-columns: minmax(0, 1fr);
    }
}

#pageHost .dashboard-hero > div > span {
    display: none;
}

html[data-theme='dark'] #pageHost :is(.dashboard-kpi, .evaluation-metrics article) > i {
    color: var(--text);
    background: var(--surface-soft);
}

html[data-theme='dark'] #pageHost :is(.dashboard-kpi, .evaluation-metrics article) span {
    color: var(--muted);
}

.dashboard-transaction-types {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 12px 0;
    font-size: 12px;
}

.dashboard-transactions {
    margin-block: 16px;
}

.dashboard-transactions p {
    font-size: 12px;
}

.dashboard-transactions a {
    color: inherit;
    text-decoration: none;
}

html[data-theme='dark'] #pageHost .dashboard-kpi__icon {
    color: #c4dc90;
    background: #ffffff12;
}

html[data-theme='dark'] #pageHost .dashboard-kpi small {
    color: #c2c9c5;
}

html:not([data-theme='dark']) #app .dashboard-kpi {
    --kpi: var(--action-accent);
}

html[data-theme='dark'] #app .dashboard-alerts > :is(div, button) {
    background: var(--surface) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}

html[data-theme='dark'] #app .dashboard-kpi {
    --kpi: #a1a1aa;
}

html[data-theme='dark'] #app .dashboard-kpi__icon {
    color: var(--text) !important;
    background: var(--surface-soft) !important;
}

.module-overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.evaluation-entry-window {
    margin-block-end: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--dashboard-complete);
    border-radius: 0.7rem;
    background: var(--surface);
    color: var(--text);
}

.evaluation-entry-window header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.evaluation-entry-window__heading,
.evaluation-entry-window__actions,
.evaluation-entry-window dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evaluation-entry-window__actions {
    flex-wrap: wrap;
}

.evaluation-entry-window__icon {
    display: grid;
    flex: 0 0 2.25rem;
    block-size: 2.25rem;
    place-items: center;
    border-radius: 0.55rem;
    background: var(--surface-soft);
}

.evaluation-entry-window__icon,
.evaluation-entry-window dt i {
    color: var(--dashboard-complete);
}

.evaluation-entry-window h3,
.evaluation-entry-window dd {
    margin: 0;
    font-weight: 700;
}

.evaluation-entry-window dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0.5rem;
    margin: 0.65rem 0 0;
}

.evaluation-entry-window dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.4rem;
    background: var(--surface-soft);
}

.evaluation-entry-window dd {
    white-space: nowrap;
}

.evaluation-entry-window dt,
.evaluation-entry-window p,
.evaluation-entry-window header div > span {
    color: var(--muted);
    font-size: 0.82rem;
}

.evaluation-entry-window p {
    margin-block: 0.4rem;
}

.evaluation-entry-window__status {
    padding: 0.22rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.evaluation-entry-window__status[data-status='open'] {
    background: var(--dashboard-active);
    border-color: var(--dashboard-active);
    color: #fff;
}

@media (max-width: 480px) {
    .evaluation-entry-window {
        padding: 0.625rem;
    }

    .evaluation-entry-window header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
    }

    .evaluation-entry-window__heading {
        gap: 0.375rem;
    }

    .evaluation-entry-window__icon {
        flex-basis: 1.75rem;
        block-size: 1.75rem;
    }

    .evaluation-entry-window h3 {
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    .evaluation-entry-window__actions {
        display: contents;
    }

    .evaluation-entry-window__status {
        max-inline-size: 8rem;
        padding-inline: 0.45rem;
        text-align: center;
        font-size: 0.75rem;
    }

    .evaluation-entry-window [data-quick-evaluation] {
        grid-column: 1 / -1;
        inline-size: 100%;
        min-height: 44px;
    }

    .evaluation-entry-window dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-block-start: 0.5rem;
        border-radius: 0.45rem;
        background: var(--surface-soft);
    }

    .evaluation-entry-window dl > div {
        padding: 0.4rem 0.55rem;
        border-radius: 0;
        background: transparent;
    }

    .evaluation-entry-window dl > div + div {
        border-block-start: 1px solid var(--line);
    }
}

.module-overview-metrics > .emplex-state {
    grid-column: 1 / -1;
    min-height: clamp(240px, 40vh, 400px);
}

.module-overview-metrics > .emplex-state .emplex-state__title {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.module-overview-metrics article {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.module-kpi-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--text);
    font-size: 23px;
}

.module-kpi-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.module-overview-metrics strong {
    display: block;
    font-size: var(--ui-metric-size, 27px);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    color: var(--text);
}

.module-overview-table h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.module-overview-charts:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 16px;
    margin-bottom: 18px;
}

.module-chart-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    min-width: 0;
}

.module-chart-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.module-chart-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.module-chart-card header > span {
    line-height: 1.4;
    color: var(--muted);
    font-size: 12px;
}

.module-completion {
    display: flex;
    align-items: center;
    gap: 24px;
}

.module-donut {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
}

.module-donut svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 11;
}

.module-donut > div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.module-donut strong {
    font-size: 25px;
    font-variant-numeric: tabular-nums;
}

.module-donut small {
    color: var(--muted);
    font-size: 12px;
}

.module-completion dl {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.module-completion dl > div {
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.module-completion dl > div:last-child {
    border: 0;
}

.module-completion dt {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-completion dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.module-completion dt i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 10%, var(--surface));
}

.module-performance-bars {
    display: grid;
    gap: 12px;
}

.module-performance-row {
    line-height: 1.4;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.module-performance-row strong {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.module-performance-track {
    background: color-mix(in srgb, var(--text) 6%, transparent);
    height: 13px;
    border-radius: 4px;
    overflow: hidden;
}

.module-performance-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

@media (max-width: 1050px) {
    .module-overview-charts:not([hidden]) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .module-overview-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .module-overview-metrics article {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 10px;
    }

    .module-overview-metrics strong {
        font-size: 23px;
    }

    .module-completion {
        flex-direction: column;
        gap: 12px;
    }

    .module-completion dl {
        width: 100%;
    }

    .module-performance-row {
        grid-template-columns: 86px minmax(0, 1fr) 30px;
        gap: 8px;
    }
}

#app .dashboard-kpi {
    --kpi: var(--overview-accent);
}

#app .dashboard-kpi::after {
    opacity: 0;
}

#app :is(.dashboard-kpi, .dashboard-chart-card, .module-chart-card, .module-overview-metrics article) {
    background: #fafafa;
    border-color: #e4e4e7;
    box-shadow: 0 1px 2px #18181b05;
}

html[data-theme='dark']
    #app
    :is(.dashboard-kpi, .dashboard-chart-card, .module-chart-card, .module-overview-metrics article) {
    background: #202024;
    border-color: #39393f;
}

#app .dashboard-alerts > :is(div, button) {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
    box-shadow: none;
}

#app .dashboard-alerts b {
    color: var(--text);
}

#app .dashboard-alerts i {
    color: var(--overview-accent);
}

.module-donut-value {
    stroke: var(--overview-accent);
}

.module-donut-track {
    stroke: var(--overview-neutral);
}

.module-performance-track i {
    background: var(--overview-accent);
}

.module-completion dt .is-complete {
    background: var(--overview-accent);
}

.module-completion dt .is-pending {
    background: var(--overview-neutral);
}

.module-employee-status {
    grid-column: 1 / -1;
}

.module-employee-status .module-completion {
    max-width: 740px;
    margin-inline: auto;
}

.module-employee-status .module-donut-value {
    stroke: var(--overview-active);
}

.module-employee-status .module-completion dt .is-complete {
    background: var(--overview-active);
}

.module-demographic-list {
    display: grid;
    gap: 12px;
    max-height: 290px;
    overflow: auto;
}

.module-demographic-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 2fr auto;
    gap: 14px;
    align-items: center;
    font-size: 13px;
}

.module-demographic-track {
    height: 8px;
    background: var(--border, #e2e8f0);
    border-radius: 4px;
    overflow: hidden;
}

.module-demographic-track span {
    display: block;
    height: 100%;
    background: var(--overview-accent);
    border-radius: inherit;
}

@media (max-width: 760px) {
    .module-demographic-row {
        grid-template-columns: minmax(80px, 1fr) 1fr auto;
        gap: 8px;
    }
}

.workforce-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.workforce-filters label {
    display: grid;
    gap: 0.5rem;
    flex: 1 1 220px;
    font-size: 0.85rem;
}

.workforce-filters :is(input, select) {
    min-height: 42px;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--control-bg, var(--surface));
    color: var(--text);
    font: inherit;
}

.workforce-overview [data-results][hidden] {
    display: none;
}

.workforce-overview [data-message]:empty {
    display: none;
}

.workforce-overview [data-results] {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.workforce-overview [data-advances]:not([hidden]) {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.workforce-overview [data-advance-error]:empty {
    display: none;
}

.workforce-overview .module-overview-metrics {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.workforce-overview .module-overview-metrics:has(> :nth-child(8)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workforce-overview .module-overview-charts.workforce-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workforce-bars {
    display: grid;
    align-content: start;
    gap: 1rem;
    max-height: 290px;
    overflow: auto;
    padding: 0.5rem;
}

.workforce-bar > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.workforce-track {
    height: 8px;
    border-radius: 4px;
    background: var(--surface-soft);
    overflow: hidden;
}

.workforce-track i {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.workforce-overview .mvc-grid {
    min-height: 260px;
    height: 400px;
}

.payroll-overview [data-payroll-caption] {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.payroll-overview :is([data-metrics], [data-payroll-breakdown]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payroll-overview [data-charts].workforce-charts {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.payroll-overview__breakdown {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.payroll-overview__breakdown summary {
    font-weight: 600;
    cursor: pointer;
}

.payroll-overview__breakdown[open] summary {
    margin-block-end: 0.75rem;
}

@media (max-width: 760px) {
    .payroll-overview :is([data-metrics], [data-payroll-breakdown]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payroll-overview [data-charts].workforce-charts {
        grid-template-columns: minmax(0, 1fr);
    }

    .workforce-overview .module-overview-metrics:has(> :nth-child(8)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workforce-overview .module-overview-charts.workforce-charts {
        grid-template-columns: minmax(0, 1fr);
    }
}
html[data-theme='dark']
    #app
    :is(
        .dashboard-kpi,
        .dashboard-chart-card,
        .dashboard-filterbar,
        .dashboard-hero,
        .dashboard-branch-card
    ) {
    background: var(--surface) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}
