.dashboard-heading { margin-bottom: 20px; }
.dashboard-primary-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dashboard-metrics { gap: 16px; margin-bottom: 20px; }
.dashboard-metrics .metric-card { position: relative; min-height: 136px; padding: 18px 20px; overflow: hidden; border: 0; border-radius: 14px; color: #fff; box-shadow: 0 7px 18px rgba(31,45,61,.11); }
.dashboard-metrics .metric-card::after { content: ""; position: absolute; right: -30px; bottom: -42px; width: 118px; height: 118px; border-radius: 50%; background: rgba(255,255,255,.10); }
.dashboard-metrics .metric-blue { background: #168be5; }
.dashboard-metrics .metric-teal { background: #1597a2; }
.dashboard-metrics .metric-orange { background: #f28a00; }
.dashboard-metrics .metric-purple { background: #7049e8; }
.metric-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.dashboard-metrics .metric-card span,
.dashboard-metrics .metric-card small { color: rgba(255,255,255,.88); }
.dashboard-metrics .metric-card span { font-size: 13px; font-weight: 600; }
.dashboard-metrics .metric-card strong { position: relative; z-index: 1; margin: 8px 0 2px; color: #fff; font-size: 34px; line-height: 1; }
.dashboard-metrics .metric-card small { position: relative; z-index: 1; font-size: 12px; }
.dashboard-metrics .metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: rgba(255,255,255,.17); }
.dashboard-metrics .metric-icon svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.dashboard-team-card { padding: 0; overflow: hidden; }
.dashboard-team-card > .section-heading { margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dashboard-team-card h2 { color: #172033; }
.dashboard-count { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #f1f4f8; color: #607084; font-size: 12px; font-weight: 600; }
.dashboard-table th { padding: 10px 14px; background: #f8fafc; color: #657386; font-size: 12px; font-weight: 600; }
.dashboard-table td { padding: 12px 14px; }
.dashboard-table tbody tr { transition: background .15s ease; }
.dashboard-table tbody tr:hover { background: #fafcff; }
.member-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.member-cell > span:last-child { min-width: 0; }
.member-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #eaf6ff; color: #0b71b4; font-size: 13px; font-weight: 700; }
.member-cell strong { display: block; color: #172033; line-height: 1.35; }
.member-cell .cell-sub { font-size: 12px; }
.dashboard-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dashboard-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dashboard-status.on { background: #eaf8f2; color: #187455; }
.dashboard-status.off { background: #fff0f1; color: #ad2d3a; }
.table-number { display: inline-flex; min-width: 30px; justify-content: center; padding: 3px 8px; border-radius: 7px; background: #f1f4f8; color: #35465a; font-size: 13px; }
.table-number.month { background: #fff3df; color: #a85b00; }
.last-activity { color: #647184; font-size: 13px; white-space: nowrap; }
.member-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid #d8e4ee; border-radius: 7px; color: #176b9f; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .15s ease,border-color .15s ease; }
.member-link:hover { background: #eaf6ff; border-color: #a8d2ed; }
.dashboard-empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.dashboard-filter-bar { display: grid; grid-template-columns: minmax(190px,1fr) 125px auto; gap: 10px; align-items: end; padding: 15px 22px; border-bottom: 1px solid #e7edf3; background: #f8fafc; }
.dashboard-filter-bar label { margin: 0; color: #627184; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.dashboard-filter-bar input, .dashboard-filter-bar select { min-height: 39px; margin-top: 5px; padding: 7px 10px; border-color: #d8e1ea; font-size: 13px; border-radius: 6px; }
.dashboard-filter-bar .filter-input-wrap { position: relative; display: flex; align-items: center; }
.dashboard-filter-bar .filter-input-wrap svg { position: absolute; left: 10px; width: 16px; height: 16px; stroke: #8795a5; stroke-width: 2; fill: none; pointer-events: none; }
.dashboard-filter-bar .filter-input-wrap input { padding-left: 32px; width: 100%; }
.dashboard-filter-actions { display: flex; gap: 8px; }
.dashboard-filter-actions .button { min-height: 39px; padding: 7px 15px; font-size: 13px; }
.dashboard-pagination { padding: 16px 22px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) { .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) { .dashboard-filter-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .dashboard-heading { margin-bottom: 16px; }
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dashboard-metrics .metric-card { min-height: 124px; padding: 15px; }
  .dashboard-metrics .metric-card strong { font-size: 29px; }
  .dashboard-metrics .metric-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .dashboard-team-card > .section-heading { padding: 15px; }
  .dashboard-filter-bar { grid-template-columns: 1fr; padding: 12px 15px; }
  .dashboard-table th,
  .dashboard-table td { padding: 10px 12px; }
}
@media (max-width: 380px) { .dashboard-metrics { grid-template-columns: 1fr; } }
