/* ===== Dashboard – Unified look ===== */

:root {
    --header-bg: #F5F7FA; /* app header gray */
    --header-border: #E5E7EB;
    --header-text: #111827;
    --card-bg: #ffffff;
    --card-border: #E5E7EB;
    --card-radius: 8px;
    --muted: #6B7280;
    --green: #369950;
    --red: #D64855;
}

/* --- Badges used in Calendar list --- */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
    border-radius: 0.4rem;
    font-weight: 600;
}

.bg-light-primary {
    background-color: #e0e7ff;
}

.text-primary {
    color: #4338ca;
}

.bg-light-warning {
    background-color: #ffa50033;
}

.text-warning {
    color: darkorange !important;
}

/* --- Cards --- */
.card.card-custom,
.dashboard-card-body { /* keep old class harmless if still present */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.card-header,
.dashboard-sub-head { /* map legacy header to match card headers */
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .card-title,
    .dashboard-sub-head h4 {
        margin: 0;
        font-size: 12px;
        line-height: 1;
        letter-spacing: .08em;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--header-text);
    }

.card-body {
    padding: 16px;
}

/* --- Numbers toned down --- */
.currency-value,
.widget-cell .value,
.graph-value .value,
.graph-value .currency-value {
    font-weight: 600; /* was heavier before */
    font-size: 26px;
}

.graph-value .label,
.widget-cell .label {
    color: var(--muted);
}

/* growth chips */
.growth-value {
    align-items: center;
    font-weight: 600;
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

/* Progress bars inside cards */
.progress {
    display: flex;
    height: 8px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
}

    .progress .progress-bar {
        height: 100%;
    }

/* Graph area spacing */
.graph-box-main {
    padding: 8px 0;
}

.dashboard-garph-image {
    margin-top: 8px;
}

/* Widget rows (Revenue metrics grid) */
.widget-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.widget-cell {
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

    .widget-cell .label {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 4px;
    }

/* Todo / checklist styles (Tasks + Calendar list) */
.todo-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

    .todo-item:last-child {
        border-bottom: 0;
    }

.todo-checkbox {
    margin-right: 10px;
}

.todo-title {
    font-weight: 600;
}

.todo-subtitle {
    color: var(--muted);
    margin: 0;
}

.year-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.graph-years .value {
    font-weight: 600;
}

/* Tabs row up top */
.tabs-controls .nav-link {
    color: #6B7280;
    font-weight: 600;
    padding: 6px 10px;
}

    .tabs-controls .nav-link.active {
        color: #111827;
        border-bottom: 2px solid #111827;
    }

/* Utilities */
.mt-15 {
    margin-top: 15px;
}

.mb-12 {
    margin-bottom: 12px;
}

.gap-2 {
    gap: 8px;
}
/* Summary tiles */
.summary-bar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* force 7 tiles on one row */
    gap: 12px;
    margin: 0 0 14px;
    padding-left: 0;
}

@media (max-width: 1200px) {
    .summary-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .summary-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.summary-card {
    flex: 1 1 0; /* equal widths */
    min-width: 160px;
    padding: 16px 18px 14px;
    border-radius: 0; /* square corners */
    background: #fff;
    border: 1px solid #dbe5f5; /* light blue border */
    box-shadow: 0 2px 10px rgba(3, 24, 60, 0.12); /* subtle blue-tinted shadow */
    text-align: center;
    transition: box-shadow .12s ease, border-color .12s ease;
}

    .summary-card:hover {
        box-shadow: 0 6px 18px rgba(3, 24, 60, 0.18);
        border-color: #cfdcf2;
    }

.summary-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #03183C;
}

@media (max-width: 768px) {
    .summary-card {
        min-width: 140px;
        padding: 14px 12px;
    }

    .summary-value {
        font-size: 1.05rem;
    }
}