/* ================================================= */
/* DASHBOARD V2 : MODERN LUXURY SYSTEM STYLE         */
/* ================================================= */

.dashboard-v2 {
    background: #f5f7fb;
}

/* ================= KPI STRIP ================= */

.dashboard-v2 .kpi-bar {
    display: flex;
    background: linear-gradient(135deg,
            #1a0e50 0%,
            #2c3597 55%,
            #5e64a6 100%);
    border-radius: 0px;
    padding: 6px;
    box-shadow:
        0 20px 45px rgba(47, 51, 107, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #d6d9b6;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.kpi-card {
    background: linear-gradient(135deg, #2b2f8f, #4b5bdc);
    border-radius: 16px;
    padding: 22px 18px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

/* ===== KPI WRAPPER ===== */
.kpi-row {
    margin-bottom: 24px;
}

/* ===== KPI CARD ===== */
.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f6;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

/* ===== KPI BAR WRAPPER ===== */
.kpi-bar-dark {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 32px 24px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

/* ลูกเล่นวงกลมจาง ๆ */
.kpi-bar-dark::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%);
}

/* ===== KPI CARD ===== */
.kpi-dark-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 20px 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

/* icon watermark */
.kpi-dark-card i {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 46px;
    opacity: 0.15;
}

.kpi-dark-card-overlay {
    position: absolute;
    top: -40px;
    right: -30px;
    font-size: 12rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.081);
    transform: rotate(18deg);
    pointer-events: none;
    user-select: none;
    filter: blur(0.6px);
}

/* title */
.kpi-dark-title {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* value */
.kpi-dark-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 6px;
}

.kpi-confirmed::before {
    background: #ede9fe;
    /* violet soft */
}

.dashboard-v2 .kpi-item {
    flex: 1;
    text-align: center;
    padding: 22px 10px;
}

.dashboard-v2 .kpi-item small {
    font-size: 12px;
    opacity: .65;
    letter-spacing: .4px;
}

.dashboard-v2 .kpi-item h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 6px 0;
    letter-spacing: .6px;
}

/* ================= CARD ================= */

.dashboard-v2 .section-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .04);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, .06);
    margin-bottom: 26px;
}

.dashboard-v2 .section-header {
    font-size: 15px;
    font-weight: 600;
    padding: 18px 22px 10px;
    color: #1f2937;
}

/* ================= CHART ================= */

.dashboard-v2 .chart-box {
    padding: 12px 22px 22px;
    height: 280px;
}

/* ================= ACTION ================= */

.dashboard-v2 .action-item {
    border-left: 4px solid;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg,
            #fafbff,
            #f4f6fb);
    box-shadow: inset 0 1px 0 rgba(74, 72, 72, 0.9);
}

.dashboard-v2 .action-danger {
    border-color: #dc2626;
}

.dashboard-v2 .action-warning {
    border-color: #d97706;
}

.dashboard-v2 .action-info {
    border-color: #4f46e5;
}

/* ================= TYPO ================= */

.dashboard-v2 h2,
.dashboard-v2 h3,
.dashboard-v2 h4 {
    letter-spacing: .3px;
}

.dashboard-v2 small {
    font-weight: 400;
}

/* ===== DOCUMENT BOARD ===== */
.luxury-doc-board {
    border-radius: 16px;
    border: 1px solid #eef1f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

/* ===== HEADER ===== */
.luxury-doc-board .section-header {
    padding: 14px 18px;
    background: #f9fafc;
    border-bottom: 1px solid #eef1f6;
}

/* ===== LIST ===== */
.luxury-doc-list .luxury-doc-item {
    border: none;
    border-bottom: 1px solid #f1f3f7;
    padding: 14px 18px;
    transition: all .2s ease;
}

.luxury-doc-list .luxury-doc-item:hover {
    background: #f5f7ff;
}

/* ===== ICON ===== */
.doc-icon {
    width: 42px;
    height: 42px;
    background: #f3f6fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon img {
    width: 26px;
    height: 26px;
}

/* ===== TEXT ===== */
.doc-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.doc-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== ACTION ===== */
.doc-action {
    color: #9ca3af;
    transition: transform .2s ease;
}

.luxury-doc-item:hover .doc-action {
    transform: translateX(3px);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .dashboard-v2 .kpi-bar {
        flex-direction: column;
        border-radius: 18px;
    }

    .dashboard-v2 .kpi-item {
        padding: 16px 10px;
    }

    .dashboard-v2 .chart-box {
        height: 240px;
    }
}