﻿/* ===========================================================
   DashboardCards — scoped styles
   =========================================================== */

.dc-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dc-section-label {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 2px 2px;
    font-family: var(--HeadingFont) !important;
}

/* ---------- Load Request stat cards ---------- */

.dc-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .dc-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .dc-stat-grid {
        grid-template-columns: 1fr;
    }
}

.dc-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 18px 18px 14px 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

    .dc-stat-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--dc-accent, #185FA5);
    }

    .dc-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px -8px rgba(17, 24, 39, .12);
        border-color: #D7DEE8;
    }

/* Top row: icon + body side by side */
.dc-stat-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.dc-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--dc-accent-bg, #EFF6FF);
    color: var(--dc-accent, #185FA5);
}

    .dc-stat-icon .material-symbols-outlined {
        font-size: 22px;
    }

.dc-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dc-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    font-family: var(--HeadingFont) !important;
    margin: 10px 0px;
}

.dc-stat-label {
    font-size: 18px;
    font-family: var(--HeadingFont) !important;
}

.dc-stat-sub {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 1px;
    font-family: var(--HeadingFont) !important;
}

/* Footer: link + arrow */
.dc-stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #F1F2F4;
}

.dc-stat-link {
    font-size: 14px;
    color: var(--dc-accent, #185FA5);
    font-family: var(--HeadingFont) !important;
    opacity: 0.8;
    transition: opacity .12s ease;
}

.dc-stat-card:hover .dc-stat-link {
    opacity: 1;
}

.dc-stat-arrow {
    color: #C7CCD6;
    flex-shrink: 0;
    transition: color .14s ease, transform .14s ease;
    font-size: 18px !important;
}

.dc-stat-card:hover .dc-stat-arrow {
    color: var(--dc-accent, #185FA5);
    transform: translateX(2px);
}

/* Accent variants */
.dc-accent-amber {
    --dc-accent: #B45309;
    --dc-accent-bg: #FFFBEB;
}

.dc-accent-green {
    --dc-accent: #057A55;
    --dc-accent-bg: #ECFDF5;
}

.dc-accent-blue {
    --dc-accent: #1D4ED8;
    --dc-accent-bg: #EFF6FF;
}

.dc-accent-red {
    --dc-accent: #B91C1C;
    --dc-accent-bg: #FEF2F2;
}

/* ---------- Send Money summary panel ---------- */

.dc-sendmoney-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dc-sm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dc-sm-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-sm-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-sm-title {
    font-size: 18px;
    color: #111827;
    margin: 0;
    font-family: var(--HeadingFont) !important;
}

.dc-sm-sub {
    font-size: 15px;
    color: #9CA3AF;
    margin: 2px 0 0;
    font-family: var(--HeadingFont) !important;
}

.dc-sm-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #185FA5;
    background: #F5F8FC;
    border: 1px solid #D7E4F3;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: var(--HeadingFont) !important;
    transition: background .12s ease;
    white-space: nowrap;
}

    .dc-sm-view-all:hover {
        background: #E6F1FB;
    }

.dc-sm-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1100px) {
    .dc-sm-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .dc-sm-metrics {
        grid-template-columns: 1fr;
    }
}

.dc-sm-metric {
    background: #F9FAFB;
    border: 1px solid #F1F2F4;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background .12s ease, border-color .12s ease;
}

    .dc-sm-metric:hover {
        background: #F2F6FB;
        border-color: #D7E4F3;
    }

.dc-sm-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-sm-metric-label {
    font-size: 18px;
    font-family: var(--HeadingFont) !important;
}

.dc-sm-metric-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dc-sm-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-top: 4px;
    font-family: var(--HeadingFont) !important;
}

.dc-sm-metric-sub {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 2px;
    font-family: var(--HeadingFont) !important;
}

.dc-sm-metric-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    color: #185FA5;
    margin-top: 8px;
    font-family: var(--HeadingFont) !important;
    opacity: 0.75;
    transition: opacity .12s ease;
}

.dc-sm-metric:hover .dc-sm-metric-link {
    opacity: 1;
}

.dc-dot-initiated {
    background: #1D4ED8;
}

.dc-dot-completed {
    background: #057A55;
}

.dc-dot-cancelled {
    background: #B45309;
}

.dc-dot-declined {
    background: #B91C1C;
}

/* ---------- Empty / loading state ---------- */

.dc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.dc-empty-note {
    font-size: 13px;
    color: #9CA3AF;
    text-align: center;
    padding: 10px 0 2px;
    font-family: var(--HeadingFont) !important;
}
