/* Dashboard widgets */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px; border: 1px solid #f1ece0; box-shadow: var(--shadow); min-height: 176px; }
.stat-card.t-yellow { background: linear-gradient(160deg, #fff4dc, #fffaf0); }
.stat-card.t-green { background: linear-gradient(160deg, #e5f8f0, #f6fdfa); }
.stat-card.t-purple { background: linear-gradient(160deg, #f1e8ff, #faf6ff); }
.stat-card.t-orange { background: linear-gradient(160deg, #fff0e2, #fff9f3); }
.stat-card.t-blue { background: linear-gradient(160deg, #e4efff, #f5f9ff); }
.stat-top { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--navy); margin: 14px 0 6px; letter-spacing: -.5px; }
.stat-value.money { font-size: 24px; }
.trend { font-size: 13px; font-weight: 700; color: #16a34a; }
.trend.down { color: var(--red); }
.trend.flat { color: var(--muted); }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 6px; position: relative; z-index: 1; }
.stat-wave { position: absolute; right: -6px; bottom: -4px; width: 120px; height: 44px; opacity: .35; pointer-events: none; }

.row-3 { display: grid; grid-template-columns: 1.5fr 1.1fr 0.9fr; gap: 14px; margin-bottom: 18px; }
.row-3b { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 14px; }

/* Revenue chart */
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-box text { font-family: var(--font); font-size: 10.5px; fill: var(--muted); }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 22px; color: var(--navy); font-weight: 800; }
.donut-center span { font-size: 12px; color: var(--navy); }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.legend-row { display: grid; grid-template-columns: 10px 1fr auto auto; column-gap: 8px; white-space: nowrap; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }
.legend-row i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.legend-row b { font-weight: 500; text-align: right; min-width: 32px; }

/* Quick actions */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa {
  border: 1px solid #f1ece0; border-radius: 14px; padding: 16px 8px; background: #fffaf0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; color: var(--navy); font-weight: 500;
}
.qa:nth-child(2) { background: #f4efff; }
.qa:nth-child(3) { background: #effaf5; }
.qa:nth-child(4) { background: #eef4ff; }
.qa:hover { transform: translateY(-2px); }
.qa .round-icon { background: transparent; width: 36px; height: 36px; }

/* Popular class */
.pop-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.rank { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-items: center; }
.pop-line { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.pop-line span:last-child { color: var(--muted); font-size: 11.5px; }
.bar { height: 6px; border-radius: 4px; background: #eef0f5; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; }

/* Activity */
.act-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; margin-bottom: 11px; }
.act-item .round-icon { width: 38px; height: 38px; }
.act-item .round-icon svg { width: 19px; height: 19px; }
.act-title { font-size: 12px; font-weight: 600; color: var(--navy); }
.act-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.act-time { font-size: 11px; color: var(--muted); }

/* Finance */
.fin-row { display: grid; grid-template-columns: 28px 1fr auto 56px; gap: 10px; align-items: center; padding: 8px 0; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.fin-row .mini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.fin-row .mini svg { width: 15px; height: 15px; }
.fin-row strong { color: var(--navy); font-size: 12px; font-weight: 600; }
.fin-row .trend { font-size: 11.5px; text-align: right; }
.profit { margin-top: 12px; border-radius: 14px; padding: 14px; background: linear-gradient(90deg, #fff1cf, #fff7e3); display: flex; align-items: center; gap: 14px; }
.profit .round-icon { background: #ece0ff; width: 48px; height: 48px; }
.profit small { font-size: 12px; color: var(--navy); display: block; }
.profit strong { font-size: 20px; color: var(--navy); font-weight: 800; white-space: nowrap; }
.profit .right { margin-left: auto; text-align: right; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
