/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ═════════════════════════════════════════════════════════════════════════ */
#dashboard-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.report-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-muted);
  background: var(--bg-hover);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
}

.custom-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-range input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 8px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.report-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--text-muted);
}

.report-table tr:last-child td {
  border-bottom: none;
}

.report-proj-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.report-proj-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.report-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 10px;
  overflow: hidden;
  max-width: 200px;
}

.report-bar {
  height: 100%;
  border-radius: 10px;
  background: var(--accent);
}

.report-time {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

.report-count {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  min-width: 60px;
}

.report-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-welcome h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.dashboard-welcome p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dashboard-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  min-width: 110px;
  text-align: center;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Groups ────────────────────────────────────────────────────────────── */
.dashboard-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.dash-group {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dash-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.dash-group-title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-group-count {
  background: var(--bg-hover);
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
}
.dash-group-body { display: flex; flex-direction: column; }
.dash-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: var(--transition);
}
.dash-task-row:last-child { border-bottom: none; }
.dash-task-row:hover { background: var(--bg-hover); }
.dash-task-title { flex: 1; font-size: 13px; color: var(--text); line-height: 1.3; }
.dash-task-project { font-size: 11px; color: var(--text-dim); }
.dash-task-meta { display: flex; align-items: center; gap: 6px; }
.dash-empty { padding: 16px; text-align: center; color: var(--text-dim); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TIMESHEET
   ═════════════════════════════════════════════════════════════════════════ */
#timesheet-page {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timesheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.timesheet-title { font-size: 20px; font-weight: 700; }
.timesheet-week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.week-nav-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.week-nav-btn:hover { background: var(--bg-hover); color: var(--text); }
.week-range-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 160px;
  text-align: center;
}
.week-today-btn {
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}
.week-today-btn:hover { background: var(--bg-hover); color: var(--text); }

/* ── Table ─────────────────────────────────────────────────────────────── */
.timesheet-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.timesheet-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.timesheet-table th {
  background: var(--bg-secondary);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.timesheet-table th.col-task { text-align: left; min-width: 260px; }
.timesheet-table th.col-total { background: var(--bg-hover); color: var(--accent); }
.timesheet-table th.today-col {
  color: var(--accent);
  position: relative;
}
.timesheet-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.timesheet-table td.col-task { text-align: left; }
.timesheet-table td.col-total {
  background: rgba(124,92,191,0.06);
  font-weight: 600;
  color: var(--accent);
}
.timesheet-table td.today-col { background: rgba(124,92,191,0.04); }
.timesheet-table tr:hover td { background: var(--bg-secondary); }
.timesheet-table tr:hover td.col-total { background: rgba(124,92,191,0.12); }
.timesheet-table tr:hover td.today-col { background: rgba(124,92,191,0.08); }

.ts-task-name { font-size: 13px; font-weight: 500; color: var(--text); }
.ts-task-project { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.ts-task-status { margin-top: 3px; }
.ts-time { font-weight: 500; }
.ts-dash { color: var(--text-dim); opacity: 0.3; }

/* Total row */
.timesheet-totals td {
  border-top: 2px solid var(--border);
  border-bottom: none;
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  padding: 12px;
}
.timesheet-totals td.col-total { background: var(--bg-hover); color: var(--accent); font-size: 14px; }
.timesheet-totals td.today-col { background: var(--bg-hover); }
.timesheet-totals td.col-task { color: var(--text-muted); font-size: 12px; }
