/* =========================
   Dashboard Domain

   Exact stylesheet for:
   templates/dashboard/index.html

   Shared primitives such as buttons, badges,
   tables, and global surfaces remain in
   components.css.
========================= */


/* =========================
   Page Foundation
========================= */

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    width: 100%;
}

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

.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3,
.dashboard-page p {
    overflow-wrap: break-word;
}

.dashboard-page .eyebrow {
    color: #5eead4;
    display: block;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}


/* =========================
   Shared Dashboard Surface
========================= */

.dashboard-section,
.dashboard-command-center,
.dashboard-kpi-card {
    background:
        radial-gradient(
            circle at 94% 8%,
            rgba(45, 212, 191, 0.065),
            transparent 28%
        ),
        rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dashboard-section {
    border-radius: 22px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    width: 100%;
}

.dashboard-section-header {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dashboard-section-header > div:first-child {
    min-width: 0;
}

.dashboard-section-header.compact {
    margin-bottom: 18px;
}

.dashboard-section-header h2 {
    color: var(--component-heading, #f8fafc);
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin: 5px 0 0;
}

.dashboard-section-header p {
    color: var(--component-muted, #94a3b8);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 8px 0 0;
    max-width: 720px;
}


/* =========================
   Executive Command Center
========================= */

.dashboard-command-center {
    align-items: stretch;
    border-radius: 24px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
    min-height: 250px;
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.dashboard-command-center::before {
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(45, 212, 191, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 96% 5%,
            rgba(59, 130, 246, 0.14),
            transparent 32%
        );
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

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

.dashboard-command-content {
    align-self: center;
    min-width: 0;
}

.dashboard-command-content h1 {
    color: var(--component-heading, #f8fafc);
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    font-weight: 950;
    letter-spacing: -0.065em;
    line-height: 0.98;
    margin: 8px 0 0;
}

.dashboard-command-summary {
    color: var(--component-muted, #94a3b8);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.65;
    margin: 16px 0 0;
    max-width: 760px;
}

.dashboard-command-summary strong {
    color: var(--component-heading, #f8fafc);
    font-weight: 950;
}

.dashboard-command-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.dashboard-health-panel {
    align-self: stretch;
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.74),
            rgba(15, 23, 42, 0.74)
        );
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 20px;
}

.dashboard-health-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.dashboard-health-header > span:first-child {
    color: var(--component-muted, #94a3b8);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-health-value {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
    margin-top: 20px;
}

.dashboard-health-label {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.8rem;
    font-weight: 750;
    margin-top: 7px;
}

.dashboard-health-breakdown {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.dashboard-health-breakdown > div {
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    min-width: 0;
    padding: 11px;
}

.dashboard-health-breakdown span {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard-health-breakdown strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-size: 0.85rem;
    font-weight: 950;
    margin-top: 6px;
    overflow-wrap: anywhere;
}


/* =========================
   Core KPI Cards
========================= */

.dashboard-metrics-grid {
    display: grid !important;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 0 !important;
    width: 100%;
}

.dashboard-kpi-card {
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    min-height: 166px;
    min-width: 0;
    overflow: hidden;
    padding: 20px;
    position: relative;
    width: 100% !important;
}

.dashboard-kpi-card::before {
    background: currentColor;
    content: "";
    height: 3px;
    left: 0;
    opacity: 0.9;
    position: absolute;
    right: 0;
    top: 0;
}

.dashboard-kpi-card::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    filter: blur(35px);
    height: 100px;
    opacity: 0.07;
    pointer-events: none;
    position: absolute;
    right: -28px;
    top: -32px;
    width: 100px;
}

.dashboard-kpi-revenue {
    color: #2dd4bf;
}

.dashboard-kpi-receivables {
    color: #fbbf24;
}

.dashboard-kpi-expenses {
    color: #fb7185;
}

.dashboard-kpi-income {
    color: #60a5fa;
}

.dashboard-kpi-header {
    align-items: center;
    display: flex;
    gap: 11px;
    min-width: 0;
}

.dashboard-kpi-icon {
    align-items: center;
    background: currentColor;
    border-radius: 11px;
    color: #07111f;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 950;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.dashboard-kpi-label {
    color: var(--component-muted, #94a3b8);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    line-height: 1.25;
    text-transform: uppercase;
}

.dashboard-kpi-card > strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
    margin-top: 20px;
    overflow-wrap: anywhere;
}

.dashboard-kpi-card > small {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    margin-top: auto;
    padding-top: 12px;
}


/* =========================
   Priority Actions
========================= */

.dashboard-actions-section {
    position: relative;
}

.dashboard-actions-section::before {
    background:
        linear-gradient(
            90deg,
            #2dd4bf,
            #3b82f6
        );
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.dashboard-action-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-action-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-top: 3px solid rgba(148, 163, 184, 0.48);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    min-width: 0;
    padding: 17px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.dashboard-action-card:hover {
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-2px);
}

.dashboard-action-card--urgent {
    border-top-color: #ef4444;
}

.dashboard-action-card--important {
    border-top-color: #f59e0b;
}

.dashboard-action-card--opportunity {
    border-top-color: #3b82f6;
}

.dashboard-action-card--healthy {
    border-top-color: #22c55e;
}

.dashboard-action-topline {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.dashboard-action-priority {
    align-items: center;
    background: rgba(148, 163, 184, 0.11);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 6px 9px;
    text-transform: uppercase;
}

.dashboard-action-priority--urgent {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.24);
    color: #fca5a5;
}

.dashboard-action-priority--important {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
    color: #fcd34d;
}

.dashboard-action-priority--opportunity {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.24);
    color: #93c5fd;
}

.dashboard-action-priority--healthy {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
    color: #86efac;
}

.dashboard-action-number {
    color: rgba(148, 163, 184, 0.4);
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 950;
}

.dashboard-action-card h3 {
    color: var(--component-heading, #f8fafc);
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.15rem;
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin: 18px 0 0;
}

.dashboard-action-card > p {
    color: var(--component-muted, #94a3b8);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 8px 0 18px;
}

.dashboard-action-metric {
    background: rgba(2, 6, 23, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 12px;
    margin-top: auto;
    padding: 12px;
}

.dashboard-action-metric span {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.61rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-action-metric strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 950;
    margin-top: 6px;
    overflow-wrap: anywhere;
}


/* =========================
   Business Overview
========================= */

.dashboard-overview-grid {
    align-items: stretch;
    display: grid !important;
    gap: 18px;
    grid-template-columns:
        minmax(320px, 0.72fr)
        minmax(0, 1.28fr) !important;
    margin: 0 !important;
    width: 100%;
}

.dashboard-operation-section,
.dashboard-shortcuts-section {
    height: 100%;
}

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

.dashboard-operation-item {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-height: 94px;
    padding: 14px;
}

.dashboard-operation-item span {
    color: var(--component-muted, #94a3b8);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard-operation-item strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.7rem;
    font-weight: 950;
    line-height: 1;
    margin-top: auto;
}

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

.dashboard-shortcut {
    align-items: center;
    background: rgba(255, 255, 255, 0.038);
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 14px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 13px;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.dashboard-shortcut:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.dashboard-shortcut.primary-shortcut {
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.25),
            rgba(14, 165, 233, 0.13)
        );
    border-color: rgba(96, 165, 250, 0.32);
}

.dashboard-shortcut-icon {
    align-items: center;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 11px;
    color: #bfdbfe;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 950;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.dashboard-shortcut strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.25;
}

.dashboard-shortcut small {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 3px;
}

.dashboard-shortcut-arrow {
    color: var(--component-muted, #94a3b8);
    font-size: 1rem;
    font-weight: 950;
}


/* =========================
   Charts
========================= */

.dashboard-chart-grid {
    align-items: stretch;
    display: grid !important;
    gap: 18px;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(330px, 0.65fr) !important;
    margin: 0 !important;
    width: 100%;
}

.dashboard-chart-card {
    display: flex;
    flex-direction: column;
    height: 430px;
    min-height: 430px;
    min-width: 0;
    position: relative;
}

.dashboard-chart-card .dashboard-section-header {
    flex: 0 0 auto;
}

.dashboard-chart-container {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    height: 310px;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.dashboard-donut-container {
    height: 270px;
    margin: 0 auto;
    max-width: 390px;
    width: 100%;
}

.dashboard-chart-container canvas,
.personal-preview-chart-container canvas {
    display: block !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

.dashboard-chart-container canvas[hidden],
.personal-preview-chart-container canvas[hidden] {
    display: none !important;
}

.dashboard-chart-legend {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.dashboard-chart-legend > div {
    align-items: center;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 10px 12px;
}

.dashboard-chart-legend span:not(.dashboard-legend-dot) {
    color: var(--component-muted, #94a3b8);
    font-size: 0.76rem;
    font-weight: 800;
}

.dashboard-chart-legend strong {
    color: var(--component-heading, #f8fafc);
    font-size: 0.82rem;
    font-weight: 950;
}

.dashboard-legend-dot {
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

.paid-dot {
    background: #2dd4bf;
}

.unpaid-dot {
    background: #fb7185;
}


/* =========================
   Chart Empty States
========================= */

.dashboard-chart-empty,
.dashboard-runtime-chart-empty {
    align-items: center;
    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(96, 165, 250, 0.07),
            transparent 36%
        ),
        rgba(255, 255, 255, 0.022);
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    padding: 28px;
    text-align: center;
    width: 100%;
}

.dashboard-runtime-chart-empty {
    height: 100%;
    inset: 0;
    min-height: 0;
    position: absolute;
}

.dashboard-chart-empty-icon,
.dashboard-runtime-chart-empty-icon {
    align-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(45, 212, 191, 0.13),
            rgba(96, 165, 250, 0.14)
        );
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 15px;
    color: #93c5fd;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 950;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.dashboard-chart-empty h3,
.dashboard-runtime-chart-empty h3 {
    color: var(--component-heading, #f8fafc);
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.02rem;
    font-weight: 950;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 16px 0 0;
}

.dashboard-chart-empty p,
.dashboard-runtime-chart-empty p {
    color: var(--component-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 8px auto 0;
    max-width: 430px;
}

.dashboard-chart-empty .button,
.dashboard-runtime-chart-empty .button {
    margin-top: 18px;
}

.dashboard-chart-container:has(
    .dashboard-runtime-chart-empty
) {
    align-items: stretch;
}

.dashboard-donut-container
.dashboard-runtime-chart-empty {
    min-height: 230px;
}

.personal-preview-chart-container
.dashboard-runtime-chart-empty {
    min-height: 210px;
}

.personal-chart-empty {
    margin-top: 16px;
    min-height: 210px;
}


/* =========================
   Personal Finance Preview
========================= */

.personal-dashboard-preview {
    position: relative;
}

.personal-dashboard-preview::before {
    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #2dd4bf
        );
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.personal-preview-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.personal-preview-layout {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(280px, 0.5fr);
}

.personal-preview-primary,
.personal-preview-sidebar {
    background: rgba(255, 255, 255, 0.027);
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 17px;
    min-width: 0;
    padding: 18px;
}

.personal-preview-primary {
    display: flex;
    flex-direction: column;
    min-height: 410px;
}

.personal-preview-balance {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 17px;
}

.personal-preview-balance > span {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.personal-preview-balance > strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
    margin-top: 10px;
}

.personal-preview-balance p {
    color: var(--component-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 9px 0 0;
}

.personal-preview-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.personal-preview-metrics > div {
    background: rgba(2, 6, 23, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 13px;
    min-width: 0;
    padding: 12px;
}

.personal-preview-metrics span {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.personal-preview-metrics strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1rem;
    font-weight: 950;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.personal-preview-chart-container {
    flex: 1 1 auto;
    height: 235px;
    margin-top: 15px;
    min-height: 220px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.personal-preview-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 410px;
}

.personal-goal-summary {
    background:
        linear-gradient(
            145deg,
            rgba(59, 130, 246, 0.13),
            rgba(45, 212, 191, 0.08)
        );
    border: 1px solid rgba(96, 165, 250, 0.17);
    border-radius: 15px;
    padding: 16px;
}

.personal-goal-summary > strong {
    color: var(--component-heading, #f8fafc);
    display: block;
    font-family: Outfit, Inter, sans-serif;
    font-size: 2.2rem;
    font-weight: 950;
    line-height: 1;
    margin-top: 14px;
}

.personal-goal-summary > small {
    color: var(--component-muted, #94a3b8);
    display: block;
    font-size: 0.77rem;
    font-weight: 750;
    margin-top: 6px;
}

.personal-goal-details {
    display: grid;
    gap: 9px;
    margin-top: 13px;
}

.personal-goal-details > div {
    align-items: center;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
}

.personal-goal-details span {
    color: var(--component-muted, #94a3b8);
    font-size: 0.72rem;
    font-weight: 800;
}

.personal-goal-details strong {
    color: var(--component-heading, #f8fafc);
    font-size: 0.8rem;
    font-weight: 950;
    text-align: right;
}

.personal-goal-progress {
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 13px;
    margin-top: auto;
    padding: 14px;
}

.personal-goal-progress > div:first-child {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.personal-goal-progress span {
    color: var(--component-muted, #94a3b8);
    font-size: 0.72rem;
    font-weight: 800;
}

.personal-goal-progress strong {
    color: var(--component-heading, #f8fafc);
    font-size: 0.84rem;
    font-weight: 950;
}

.dashboard-progress-track {
    background: rgba(148, 163, 184, 0.19);
    border-radius: 999px;
    height: 9px;
    margin-top: 11px;
    overflow: hidden;
    width: 100%;
}

.dashboard-progress-track > span {
    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #2dd4bf
        );
    border-radius: inherit;
    display: block;
    height: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================
   Recent Activity
========================= */

.recent-invoices-section {
    padding: 0;
}

.recent-invoices-section > .dashboard-section-header {
    margin: 0;
    padding: 23px 24px 19px;
}

.dashboard-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.recent-invoices-section table {
    min-width: 720px;
    width: 100%;
}

.recent-invoices-section th:first-child,
.recent-invoices-section td:first-child {
    padding-left: 24px;
}

.recent-invoices-section th:last-child,
.recent-invoices-section td:last-child {
    padding-right: 24px;
}

.recent-invoices-section tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================
   Generic Empty Panel
========================= */

.dashboard-empty-panel {
    align-items: center;
    background: rgba(255, 255, 255, 0.027);
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    display: grid;
    gap: 15px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 120px;
    padding: 20px;
}

.dashboard-empty-icon {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 13px;
    color: #5eead4;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 950;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.dashboard-empty-panel h3 {
    color: var(--component-heading, #f8fafc);
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0;
}

.dashboard-empty-panel p {
    color: var(--component-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 5px 0 0;
}


/* =========================
   Responsive
========================= */

@media (max-width: 1320px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .dashboard-command-center {
        grid-template-columns: 1fr;
    }

    .dashboard-health-panel {
        min-height: 220px;
    }

    .dashboard-overview-grid,
    .dashboard-chart-grid,
    .personal-preview-layout {
        grid-template-columns: 1fr !important;
    }

    .dashboard-chart-card {
        height: 410px;
        min-height: 410px;
    }

    .personal-preview-primary,
    .personal-preview-sidebar {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .personal-preview-header-actions {
        justify-content: flex-start;
    }

    .dashboard-shortcut-grid,
    .dashboard-operation-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-empty-panel {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-empty-panel > .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        gap: 18px;
    }

    .dashboard-command-center {
        padding: 22px;
    }

    .dashboard-command-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-command-actions .button {
        width: 100%;
    }

    .dashboard-health-breakdown {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-section {
        padding: 19px;
    }

    .dashboard-chart-card {
        height: 375px;
        min-height: 375px;
    }

    .dashboard-chart-container {
        height: 270px;
    }

    .dashboard-chart-legend {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-empty,
    .dashboard-runtime-chart-empty {
        min-height: 230px;
        padding: 22px;
    }

    .personal-preview-metrics {
        grid-template-columns: 1fr;
    }

    .personal-preview-chart-container {
        height: 240px;
        min-height: 220px;
    }

    .personal-preview-header-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .personal-preview-header-actions .button {
        width: 100%;
    }

    .recent-invoices-section > .dashboard-section-header {
        padding: 19px;
    }
}

@media (max-width: 480px) {
    .dashboard-command-content h1 {
        font-size: 2.2rem;
    }

    .dashboard-kpi-card {
        min-height: 155px;
    }

    .dashboard-chart-card {
        height: 345px;
        min-height: 345px;
    }

    .dashboard-chart-container {
        height: 240px;
    }

    .dashboard-chart-empty,
    .dashboard-runtime-chart-empty {
        min-height: 205px;
        padding: 18px;
    }

    .dashboard-shortcut {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-shortcut-arrow {
        display: none;
    }

    .dashboard-empty-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dashboard-empty-icon {
        margin: 0 auto;
    }
}