:root {
  --tp-navy: #1F4E78;
  --tp-blue: #2E75B6;
  --tp-light-blue: #D9E2F3;
  --tp-amber: #FFC107;
  --tp-danger: #C0392B;
}

body { background-color: #F4F6F9; font-family: "Segoe UI", Arial, sans-serif; }

.app-navbar {
  background: linear-gradient(90deg, var(--tp-navy), var(--tp-blue));
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.brand-mark {
  display: inline-block;
  background: #fff;
  color: var(--tp-navy);
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 6px;
  margin-right: 4px;
}

.app-shell { display: flex; min-height: calc(100vh - 110px); }
.app-sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #E5E9F0;
  padding-top: 12px;
  flex-shrink: 0;
}
.app-sidebar .nav-link {
  color: #33475B;
  padding: 10px 18px;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.app-sidebar .nav-link:hover, .app-sidebar .nav-link.active {
  background: var(--tp-light-blue);
  color: var(--tp-navy);
  border-left-color: var(--tp-blue);
  font-weight: 600;
}
.app-sidebar .nav-header {
  font-size: 11px;
  text-transform: uppercase;
  color: #9AA5B1;
  font-weight: 700;
  padding: 14px 18px 4px;
}
.app-main { flex-grow: 1; }

.app-footer {
  background: var(--tp-navy);
  color: #E5E9F0;
}

.card { border: none; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.card-header { background: var(--tp-navy); color: #fff; border-radius: 10px 10px 0 0 !important; font-weight: 600; }

.badge-phase-Sales { background: #2E75B6; }
.badge-phase-Manufacturing { background: #C0392B; }
.badge-phase-Dispatch { background: #1E8449; }

.stage-track { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-pill {
  padding: 6px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: #E5E9F0; color: #7B8794;
}
.stage-pill.done { background: #1E8449; color: #fff; }
.stage-pill.current { background: var(--tp-amber); color: #3B2E00; }

.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--tp-navy), var(--tp-blue));
}
.login-card {
  width: 380px; background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.login-title { color: var(--tp-navy); font-weight: 800; }

.status-badge-Overdue, .status-badge-Escalated { background: var(--tp-danger); color: #fff; }
.status-badge-Issued { background: var(--tp-blue); color: #fff; }
.status-badge-Returned { background: #1E8449; color: #fff; }
.status-badge-PendingApproval { background: var(--tp-amber); color: #3B2E00; }
