/* tracker.css — Centry Capital P&P Document Tracker */

/* ─── Scrollbars ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ─── Stat Pill ──────────────────────────────────────────────── */
.stat-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  border: 1px solid #1e293b;
  padding: 3px 10px;
  border-radius: 8px;
  background: #0f172a;
  white-space: nowrap;
}

/* ─── Phase Panel ─────────────────────────────────────────────── */
.phase-panel {
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0d1627;
  overflow: hidden;
}
.phase-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 16px;
  transition: background 0.15s;
}
.phase-panel-header:hover { background: rgba(255,255,255,0.03); }
.phase-panel-body { padding: 0 12px 12px; }
.phase-panel-body.hidden { display: none; }
.phase-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ─── Metric Card ─────────────────────────────────────────────── */
.metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  transition: background 0.15s;
}
.metric-card:hover { background: #131f35; }
.metric-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.metric-value { font-size: 22px; font-weight: 700; line-height: 1; }
.metric-label { font-size: 10px; color: #64748b; margin-top: 2px; }
.metric-sub { font-size: 9px; color: #475569; margin-top: 1px; }

/* ─── Filter Select ──────────────────────────────────────────── */
.filter-select {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 11px;
  border-radius: 8px;
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 120px;
}
.filter-select:focus { border-color: #F59E0B; }

/* ─── Table Styles ────────────────────────────────────────────── */
.table-th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  padding: 10px 12px;
  background: rgba(15,23,42,0.8);
  white-space: nowrap;
  user-select: none;
}
.table-td {
  padding: 8px 12px;
  font-size: 11px;
  color: #94a3b8;
  vertical-align: middle;
  max-width: 200px;
}
.table-td-check { padding: 8px; width: 32px; }
.table-row {
  border-bottom: 1px solid rgba(30,41,59,0.6);
  transition: background 0.12s;
}
.table-row:hover td { background: rgba(30,41,59,0.4); }

/* Row highlights */
.row-green td { background: rgba(6,78,59,0.15); border-left: 2px solid #059669; }
.row-red td { background: rgba(69,10,10,0.2); border-left: 2px solid #b91c1c; }
.row-amber td { background: rgba(78,43,0,0.2); border-left: 2px solid #d97706; }
.row-selected td { background: rgba(23,37,84,0.4) !important; }

/* ─── Inline Selects ─────────────────────────────────────────── */
.inline-select {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  outline: none;
  padding: 2px 4px;
  border-radius: 4px;
  max-width: 110px;
}
.inline-select:focus { outline: 1px solid #F59E0B; }
.status-sel-drafted { color: #fbbf24; }
.status-sel-complete { color: #34d399; }
.status-sel-not-started { color: #64748b; }

/* ─── Editable Fields ────────────────────────────────────────── */
.editable-title {
  cursor: text;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 11px;
  display: block;
}
.editable-title:hover { color: #F59E0B; }
.editable-purpose {
  cursor: text;
  color: #64748b;
  font-size: 10px;
  font-style: italic;
  display: block;
}
.editable-purpose:hover { color: #94a3b8; }
.inline-text-edit {
  background: #1e293b;
  border: 1px solid #F59E0B;
  color: #e2e8f0;
  font-size: 11px;
  border-radius: 4px;
  padding: 3px 8px;
  width: 100%;
  outline: none;
}

/* ─── Workstream Bar Chart ───────────────────────────────────── */
.ws-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 3px 0;
  border-radius: 4px;
  transition: background 0.12s;
}
.ws-bar-row:hover { background: rgba(255,255,255,0.03); }
.ws-bar-label {
  font-size: 10px;
  color: #94a3b8;
  width: 160px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-bar-track {
  flex: 1;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}
.ws-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.ws-bar-count {
  font-size: 10px;
  font-weight: 700;
  width: 25px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── View Buttons ───────────────────────────────────────────── */
.view-btn {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #334155;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
}
.view-btn:hover { color: #94a3b8; border-color: #475569; }
.view-btn.active { background: #F59E0B; color: #0f172a; border-color: #F59E0B; font-weight: 700; }

/* ─── Kanban Card ─────────────────────────────────────────────── */
.kanban-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.kanban-card:hover { border-color: #F59E0B; box-shadow: 0 4px 20px rgba(245,158,11,0.08); }

/* ─── Workstream Group ───────────────────────────────────────── */
.ws-group {
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
}
.ws-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #0f172a;
  padding: 12px 16px;
  transition: background 0.15s;
}
.ws-group-header:hover { background: #131f35; }
.ws-group-body { display: block; }
.ws-group-body.hidden { display: none; }
.ws-row {
  display: grid;
  grid-template-columns: 80px 80px 1fr 80px 90px 90px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid rgba(30,41,59,0.5);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 11px;
}
.ws-row:hover { background: rgba(255,255,255,0.03); }

/* ─── Notes Modal ────────────────────────────────────────────── */
.notes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.notes-modal-overlay.hidden { display: none; }
.notes-modal {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.notes-textarea {
  width: 100%;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
  min-height: 200px;
  resize: vertical;
  border: 1px solid #334155;
  outline: none;
  font-family: inherit;
}
.notes-textarea:focus { border-color: #F59E0B; }

/* ─── Bulk Action Bar ────────────────────────────────────────── */
#bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
#bulk-action-bar.hidden { display: none; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .ws-row { grid-template-columns: 70px 70px 1fr 70px 80px 80px; }
}
@media (max-width: 1024px) {
  .ws-row { grid-template-columns: 70px 1fr 80px 80px; }
  .ws-row :nth-child(4) { display: none; }
  .ws-row :nth-child(2) { display: none; }
}
