/* dashboard/dashboard.css  -  the DASHBOARD tab: the count tiles and the agent chips. Phone rules at the bottom. */

.panel h2 { margin-bottom: 12px; }
.h3 { margin: 22px 0 8px; font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); }
.num { font-size: 28px; font-weight: 700; }
.agent-row { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel); cursor: pointer; font-size: 14px; }
.agent-chip:hover { border-color: var(--accent); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.up { background: var(--accent); }
.dot.down { background: var(--danger); }
.dot.none { background: var(--line); border: 1px solid var(--muted); }

/* ---- phones ---- */
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .num { font-size: 22px; }
  .agent-chip { min-height: 44px; }
}

/* ---- the health grid: one row per agent, five band cells for the week ---- */
.d-grid { display: flex; flex-direction: column; gap: 6px; }
.d-row { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 6px; align-items: stretch; }
.d-labels .h-cell-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.d-agent { cursor: pointer; border-radius: 10px; }
.d-agent:hover .d-name { color: var(--accent); }
.d-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.d-job { white-space: normal; min-width: 260px; }

@media (max-width: 760px) {
  .d-row { grid-template-columns: 1.1fr repeat(5, 1fr); gap: 3px; }
  .d-name { font-size: 12px; gap: 4px; }
  .d-name .small { display: none; }
  .d-labels .h-cell-label { font-size: 8.5px; letter-spacing: .02em; }
}

/* ---- the score column, first after the name (Joey, 2026-09-26) ---- */
.d-row { grid-template-columns: 1.4fr .9fr repeat(5, 1fr); }
.d-score .h-score { font-size: 18px; font-weight: 800; line-height: 1; }
@media (max-width: 760px) {
  .d-row { grid-template-columns: 1.1fr .8fr repeat(5, 1fr); }
  .d-score .h-score { font-size: 14px; }
  .d-score .h-val { font-size: 9px; }
}

/* ---- one tile per agent (Joey's pick of 2026-09-26, look 3) ---- */
.a-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.a-tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.a-tile:hover { border-color: var(--accent); }
.a-tile .nm { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.a-tile .nm .dot { margin-right: 8px; }
.a-tile .big { display: flex; align-items: flex-end; gap: 10px; }
.a-tile .big .v { font-size: 40px; font-weight: 800; line-height: 1; }
@media (max-width: 760px) { .a-tiles { grid-template-columns: 1fr; } .a-tile .big .v { font-size: 34px; } }
