/* ═══════════════════════════════════════════════════════════════════
   LABOR MODULE — styles. Reuses .kpi/.dash-strip*/.dash-nav/.ri-table
   from styles.css; only the labor-specific bits live here.
   ═══════════════════════════════════════════════════════════════════ */

.lab-header { margin-bottom: 14px; }
.lab-header-title { font-size: 20px; font-weight: 800; }
.lab-header-sub { font-size: 12px; color: var(--rr-text-muted); margin-top: 2px; }
.lab-mut { color: var(--rr-text-muted); font-size: 12px; }

/* ── on the clock now ── */
.lab-onclock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.lab-onclock-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.lab-onclock-name { font-weight: 700; font-size: 13px; }
.lab-onclock-meta { font-size: 11px; color: var(--rr-text-muted); margin-top: 2px; }
.lab-onclock-hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--rr-cyan);
  margin-top: 6px;
}
.lab-onclock-foot {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--rr-text-muted);
}
.lab-onclock-foot b { color: var(--rr-text); font-family: 'JetBrains Mono', monospace; }

/* ── period selector ── */
.lab-period { margin: 16px 0; }
.lab-grain-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lab-grain-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rr-text-muted);
  font-size: 12px;
  cursor: pointer;
}
.lab-grain-pill.is-active {
  background: linear-gradient(90deg, var(--rr-pink), var(--rr-cyan));
  color: #12081c;
  font-weight: 700;
  border-color: transparent;
}

/* ── employee table ── */
.lab-emp-table .lab-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.lab-emp-table .lab-sortable:hover { color: var(--rr-cyan); }
.lab-badge {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--rr-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}

/* ── OT watch ── */
.lab-ot-row {
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lab-ot-row:last-child { border-bottom: 0; }
.lab-ot-name { font-size: 12.5px; font-weight: 600; }
.lab-ot-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lab-ot-fill { height: 100%; background: var(--rr-cyan); border-radius: 4px; }
.lab-ot-fill.warn { background: var(--rr-yellow, #f2c94c); }
.lab-ot-fill.danger { background: var(--rr-pink); }
.lab-ot-hrs { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.lab-ot-hrs.warn { color: var(--rr-yellow, #f2c94c); }
.lab-ot-hrs.danger { color: var(--rr-pink); }

/* ── data quality ── */
.lab-dq-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}
.lab-dq-row:last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .lab-ot-row { grid-template-columns: 90px 1fr 80px; }
  .lab-onclock-grid { grid-template-columns: 1fr 1fr; }
}
