/* ── Time Reports Dashboard ─────────────────────────────────── */

.tr-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tr-filters-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tr-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.tr-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-filter-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tr-date-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tr-date-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-input, .tr-select {
  padding: 8px 12px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
}

.tr-date-sep {
  font-size: 13px;
  color: var(--blue-500);
}

.tr-date-shortcuts {
  display: flex;
  gap: 6px;
}

.tr-shortcut-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-600);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tr-shortcut-btn:hover {
  color: var(--blue-800);
}

.tr-filter-actions {
  margin-left: auto;
}

/* Summary Header */
.tr-summary-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -10px;
}

.tr-total-box {
  background: var(--blue-600);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.tr-total-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.tr-total-value {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Chart Container */
.tr-chart-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* User Table Specifics */
.tr-table-card {
  margin-top: 10px;
}

.tr-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.tr-user-name {
  font-weight: 600;
  color: var(--ink);
}

.tr-hour-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Modal Overlay (adapted from design system) */
.tr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fade-in 200ms ease-out;
}

.tr-modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1200px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
  animation: slide-up 300ms ease-out;
}

.tr-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tr-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-900);
}

.tr-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.tr-modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .tr-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tr-filter-actions {
    margin-left: 0;
  }
  .tr-modal-overlay {
    padding: 10px;
  }
}

/* Modal Badges & Tags */
.ts-project-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ts-entry-tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
}

.ts-running-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
