/* Dashboard — ใช้ร่วมกันระหว่างหน้า reports และหน้า index */
.dashboard-subtitle { margin-bottom: 15px; font-size: 13px; }
.dashboard-filter {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}
.kpi-card {
    border-radius: 8px;
    padding: 16px 14px;
    margin-bottom: 15px;
    color: #fff;
    min-height: 105px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.kpi-card .kpi-label { font-size: 12px; opacity: 0.92; margin-bottom: 4px; }
.kpi-card .kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.kpi-card .kpi-meta { font-size: 11px; margin-top: 6px; opacity: 0.9; }
.kpi-request { background: linear-gradient(135deg, #2e86de, #54a0ff); }
.kpi-divide { background: linear-gradient(135deg, #f39c12, #feca57); color: #333; }
.kpi-receive { background: linear-gradient(135deg, #10ac84, #1dd1a1); }
.kpi-remain { background: linear-gradient(135deg, #576574, #8395a7); }
.kpi-dept { background: linear-gradient(135deg, #5f27cd, #8854d0); }
.kpi-txn { background: linear-gradient(135deg, #222f3e, #485460); }
.panel-dashboard { border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px; }
.panel-dashboard > .panel-heading { background: #fff; border-bottom: 1px solid #eee; font-weight: 600; }
.chart-wrap { position: relative; height: 280px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.bar-list { list-style: none; padding: 0; margin: 0; }
.bar-list li { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
.bar-list li:last-child { border-bottom: none; }
.bar-list .bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 3px; }
.bar-list .bar-track { height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.bar-list .bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.bar-fill.request { background: #2e86de; }
.bar-fill.divide { background: #f39c12; }
.bar-fill.receive { background: #10ac84; }
.bar-fill.remain { background: #576574; }
.type-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.type-chip { display: inline-flex; align-items: center; font-size: 11px; padding: 3px 8px; border-radius: 16px; background: #f1f3f5; }
.type-chip .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.workflow-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.workflow-step { flex: 1 1 130px; text-align: center; padding: 12px 8px; border-radius: 8px; background: #f8f9fa; border: 1px solid #e9ecef; }
.workflow-step .step-count { font-size: 24px; font-weight: 700; color: #2e86de; }
.workflow-step.completed .step-count { color: #10ac84; }
.workflow-step .step-label { font-size: 11px; color: #666; margin-top: 4px; }
.dashboard-loading { text-align: center; padding: 30px; color: #888; }
.change-up { color: #10ac84; }
.change-down { color: #ee5253; }
.change-neutral { color: #888; }
