:root {
    --navy: #10233f;
    --ink: #182235;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f5f7fb;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-navbar {
    background: var(--navy);
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 35, 63, 0.05);
}

.metric {
    min-height: 112px;
    border-top: 3px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    color: var(--muted);
    font-size: .86rem;
}

.metric-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.metric-blue { border-top-color: #2563eb; }
.metric-green { border-top-color: #16a34a; }
.metric-cyan { border-top-color: #0891b2; }
.metric-gold { border-top-color: #ca8a04; }
.metric-navy { border-top-color: #10233f; }
.metric-teal { border-top-color: #0f766e; }
.metric-red { border-top-color: #dc2626; }

.metric-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    min-height: 104px;
    box-shadow: 0 10px 24px rgba(16, 35, 63, 0.05);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    margin-bottom: 10px;
}

.metric-card strong {
    display: block;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.dashboard-welcome {
    padding: 4px 0;
}

.dashboard-actions .btn {
    min-height: 40px;
}

.dashboard-section {
    overflow: hidden;
}

.section-heading {
    min-height: 72px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-section .table > :not(caption) > * > * {
    padding: 13px 16px;
}

.dashboard-section .table thead th {
    color: #4b5563;
    background: #f9fafb;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.empty-state {
    border-left: 4px solid #2563eb;
}

.empty-row {
    padding: 22px 16px;
    color: var(--muted);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 420px);
}

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

@media (max-width: 575.98px) {
    .metric-value {
        font-size: 1.25rem;
    }

    .table-responsive {
        font-size: .92rem;
    }

    .dashboard-actions .btn {
        flex: 1 1 calc(50% - 8px);
    }

    .section-heading {
        min-height: auto;
        align-items: flex-start;
    }
}
