/* Shell & Layout */
body.pc-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #f8fafc, #eef2ff 55%, #e2e8f0);
  color: #0f172a;
}

.pc-header {
  background: linear-gradient(135deg, #fdf8f3 0%, #f3f6ff 55%, #eef2ff 100%);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pc-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.pc-brand-logo {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.25));
}

.pc-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.pc-brand-title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pc-brand-tagline {
  font-size: 0.88rem;
  color: #475569;
}

.pc-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pc-main {
  padding: 20px 18px 40px;
}

.pc-main-auth {
  padding-top: 72px;
  padding-bottom: 72px;
}

.pc-content {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.pc-content--flush {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.pc-alert-stack {
  max-width: 640px;
  margin: 0 auto 24px;
  display: grid;
  gap: 12px;
}

.pc-footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Auth experience */
.pc-auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.pc-auth-hero {
  flex: 1 1 280px;
  max-width: 500px;
  color: #0f172a;
}

.pc-auth-hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pc-auth-hero p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 20px;
}

.pc-auth-hero ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pc-auth-hero li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #1e293b;
}

.pc-auth-hero li::before {
  content: "•";
  color: #2563eb;
  font-size: 1.3rem;
  line-height: 1;
}

.pc-auth-card {
  flex: 1 1 320px;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.pc-auth-card .form-control {
  border-radius: 12px;
  border-color: #cbd5f5;
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.2);
}

.pc-auth-card .btn-primary {
  background: linear-gradient(120deg, #1d4ed8, #2563eb);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.pc-auth-card .btn-primary:hover {
  background: linear-gradient(120deg, #1e40af, #1d4ed8);
}

.pc-auth-card .btn-outline-secondary {
  border-radius: 12px;
}

.pc-auth-support {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .pc-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-brand-logo {
    width: 58px;
  }

  .pc-auth-wrapper {
    flex-direction: column;
  }

  .pc-content {
    padding: 24px 20px;
  }
}

/* Page elements */
.pc-content h1,
.pc-content h2,
.pc-content h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.pc-content fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.pc-content legend {
  padding: 0 8px;
  color: #374151;
  font-weight: 600;
}

.pc-body table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.pc-body th,
.pc-body td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.pc-body th {
  background: #f8fafc;
  text-align: left;
  color: #334155;
  font-weight: 600;
}

.pc-body input[type="text"],
.pc-body input[type="date"],
.pc-body input[type="number"],
.pc-body input[type="email"],
.pc-body input[type="file"],
.pc-body select {
  padding: 8px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
}

.pc-body button {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.pc-body button:hover {
  background: #0b1220;
}

.tabs a,
.tabs strong {
  margin-right: 10px;
  text-decoration: none;
  color: #111827;
}

.badge-ok {
  color: #0a7a30;
  font-weight: 600;
}

.badge-missed {
  color: #b91c1c;
  font-weight: 600;
}

.badge-muted {
  color: #6b7280;
}

.pc-body .form-control {
  border-radius: 12px;
}

.hm {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
}

.hm-submitted {
  background: #d1fae5;
}

.hm-missed {
  background: #fecaca;
}

.hm-cancelled {
  background: #f5f3ff;
}

.hm-future {
  opacity: 0.6;
}

.hm-noplan {
  background: #e5e7eb;
}

.cell table {
  table-layout: fixed;
}

.cell table th,
.cell table td {
  padding: 6px 8px;
}

.cell table th {
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.num {
  text-align: center;
}

/* Cards */
.card { border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.08); border-radius: 14px; }
.card-header { background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }

/* Chips */
.chip { display:inline-block; padding:.25rem .6rem; border-radius:999px; font-size:.85rem; font-weight:600; line-height:1; }
.chip + .chip { margin-left:.35rem; }
.chip.good { background:#e8f7ee; color:#177a3f; }
.chip.warn { background:#fff4e5; color:#9a5a00; }
.chip.bad  { background:#fde8e8; color:#9b1c1c; }
.chip.neutral { background:#eef2f7; color:#334155; }

/* Metric text */
.metric { font-weight:700; letter-spacing:.2px; }
.metric-sub { color:#64748b; font-size:.9rem; }

/* Tables */
.table-tight td, .table-tight th { padding:.55rem .75rem; vertical-align: middle; }
.table thead th { font-weight:700; color:#475569; background:#f8fafc; }

/* Icons */
.icon-12 { width:12px; height:12px; }
.icon-14 { width:14px; height:14px; }

/* Section spacing */
.section { margin-bottom: 1.25rem; }

/* Chevron details area */
.detail { background:#f8fafc; border-radius:12px; padding:.75rem .9rem; }
