/* DoorForce CRM — Project Tracker */
.df-pt-shell { display: flex; flex-direction: column; gap: 14px; }
.df-pt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.df-pt-tab {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #d8dee8);
  background: #fff;
  color: #0a2342;
  font-weight: 650;
  cursor: pointer;
}
.df-pt-tab.is-active {
  background: #0a2342;
  color: #fff;
  border-color: #0a2342;
}
.df-pt-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.df-pt-metric {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 12px 14px;
}
.df-pt-metric span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}
.df-pt-metric strong {
  font-size: 1.2rem;
  color: #0a2342;
}
.df-pt-metric.is-alert strong { color: #bf0a30; }
.df-pt-metric.is-money strong { color: #0a5c36; }
.df-pt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.df-pt-toolbar .input-field { min-width: 160px; max-width: 240px; }
.df-pt-table .is-overdue td,
.df-pt-row.is-overdue { background: rgba(191, 10, 48, 0.06); }
.df-pt-table .is-warn td { background: rgba(217, 119, 6, 0.08); }
.df-pt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8eef6;
  color: #0a2342;
}
.df-pt-chip.danger { background: rgba(191, 10, 48, 0.12); color: #bf0a30; }
.df-pt-chip.warn { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.df-pt-chip.ok { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.df-pt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.df-pt-actions .btn { min-height: 36px; font-size: 0.8rem; }
.df-pt-empty {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  border: 1px dashed #d8dee8;
  border-radius: 10px;
}
.df-pt-drawer {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(4, 14, 28, 0.55);
  display: flex;
  justify-content: flex-end;
}
.df-pt-drawer[hidden] { display: none !important; }
.df-pt-drawer-panel {
  width: min(720px, 100%);
  height: 100%;
  background: #fff;
  overflow: auto;
  padding: 18px 20px 40px;
  box-shadow: -12px 0 40px rgba(0,0,0,.25);
}
.df-pt-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.df-pt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.df-pt-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #334155;
}
.df-pt-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .df-pt-form-grid { grid-template-columns: 1fr; }
}
.df-pt-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.df-pt-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #0a2342;
}
.df-pt-timeline {
  border-left: 3px solid #0a2342;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.df-pt-timeline-item { font-size: 0.9rem; }
.df-pt-timeline-item small { color: #64748b; }
.df-pt-gantt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.df-pt-gantt-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  align-items: center;
}
.df-pt-gantt-bar {
  height: 18px;
  border-radius: 4px;
  background: #0a2342;
  min-width: 8px;
}
.df-pt-gantt-bar.is-muted { background: #94a3b8; }
.df-pt-gantt-bar.is-alert { background: #bf0a30; }
.df-pt-cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.df-pt-cal-card {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.df-pt-cal-card strong { display: block; color: #0a2342; margin-bottom: 4px; }
.df-pt-fin-hidden { display: none !important; }
body.df-role-tech .df-pt-financial,
body.df-role-customer .df-pt-financial { display: none !important; }
