/* Park+ Sales Dashboard — Prototype Styles
   Brand color is a CSS variable so it can be swapped without code changes.
   Park+ brand colors (per Park+ Logo Guidelines, Oct 2023):
     - Primary:   #442698 (deep purple wordmark)
     - Accent:    #A696FE (light purple for the "+" symbol)
     - Strapline: "Your Car App" */

:root {
  --pp-brand:        #442698;
  --pp-brand-dark:   #341f75;
  --pp-brand-accent: #A696FE;
  --pp-brand-tint:   #f3efff;
  --pp-bg:           #f8fafc;
  --pp-card:         #ffffff;
  --pp-border:       #e2e8f0;
  --pp-text:         #0f172a;
  --pp-text-muted:   #64748b;
  --pp-success:      #10b981;
  --pp-success-bg:   #d1fae5;
  --pp-warning:      #f59e0b;
  --pp-warning-bg:   #fef3c7;
  --pp-orange:       #f97316;
  --pp-orange-bg:    #ffedd5;
  --pp-danger:       #ef4444;
  --pp-danger-bg:    #fee2e2;
  --pp-info-bg:      #ede9fe;
  --pp-radius:       10px;
  --pp-shadow:       0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --pp-shadow-lg:    0 10px 25px rgba(15,23,42,.08), 0 4px 10px rgba(15,23,42,.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pp-bg);
  color: var(--pp-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.pp-header {
  background: var(--pp-card);
  border-bottom: 1px solid var(--pp-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--pp-shadow);
}

.pp-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pp-logo {
  height: 32px;
  width: auto;
  display: block;
}

.pp-header__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.pp-header__subtitle {
  font-size: 12px;
  color: var(--pp-text-muted);
  margin: 0;
}

.pp-header__user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.pp-role-badge {
  background: var(--pp-info-bg);
  color: var(--pp-brand-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pp-role-badge--manager {
  background: #fef3c7;
  color: #92400e;
}

/* ---------- Tabs ---------- */
.pp-tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  background: var(--pp-card);
  border-bottom: 1px solid var(--pp-border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.pp-tab {
  background: transparent;
  border: none;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--pp-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pp-tab:hover { color: var(--pp-text); }

.pp-tab--active {
  color: var(--pp-brand);
  border-bottom-color: var(--pp-brand);
  font-weight: 600;
}

/* ---------- Main ---------- */
.pp-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.pp-tab-panel { display: none; }
.pp-tab-panel--active { display: block; }

/* ---------- Page Header ---------- */
.pp-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.pp-page-header h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 700;
}

.pp-page-header p {
  margin: 0;
  color: var(--pp-text-muted);
  font-size: 13px;
}

/* ---------- Filters ---------- */
.pp-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--pp-card);
  padding: 14px 16px;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-border);
  box-shadow: var(--pp-shadow);
}

.pp-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-filter label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pp-filter select,
.pp-filter input {
  padding: 8px 10px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  font-size: 13px;
  background: white;
  min-width: 140px;
  font-family: inherit;
}

.pp-filter select:focus,
.pp-filter input:focus {
  outline: none;
  border-color: var(--pp-brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ---------- Cards / Metrics ---------- */
.pp-grid {
  display: grid;
  gap: 16px;
}

.pp-grid--metrics {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pp-grid--reps {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.pp-card {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 16px;
  box-shadow: var(--pp-shadow);
}

.pp-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-metric__label {
  font-size: 12px;
  color: var(--pp-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pp-metric__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.pp-metric__sub {
  font-size: 12px;
  color: var(--pp-text-muted);
}

.pp-metric__bar {
  height: 6px;
  background: var(--pp-border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.pp-metric__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ---------- Status Pills ---------- */
.pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pp-pill--success { background: var(--pp-success-bg); color: #065f46; }
.pp-pill--warning { background: var(--pp-warning-bg); color: #92400e; }
.pp-pill--orange  { background: var(--pp-orange-bg);  color: #9a3412; }
.pp-pill--danger  { background: var(--pp-danger-bg);  color: #991b1b; }
.pp-pill--neutral { background: #e2e8f0; color: #475569; }
.pp-pill--info    { background: var(--pp-info-bg);    color: var(--pp-brand-dark); }

/* ---------- Rep Cards ---------- */
.pp-rep-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-rep-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--pp-border);
  padding-bottom: 10px;
}

.pp-rep-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.pp-rep-card__region {
  font-size: 12px;
  color: var(--pp-text-muted);
}

.pp-rep-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pp-rep-card__metric {
  background: var(--pp-bg);
  border-radius: 6px;
  padding: 8px 10px;
}

.pp-rep-card__metric-label {
  font-size: 10px;
  color: var(--pp-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pp-rep-card__metric-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

.pp-rep-card__metric-target {
  font-size: 11px;
  color: var(--pp-text-muted);
}

/* ---------- Stage Breakdown ---------- */
.pp-stages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pp-stage-chip {
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.pp-stage-chip strong {
  color: var(--pp-brand);
  font-size: 13px;
}

/* ---------- Tables ---------- */
.pp-table-wrap {
  overflow-x: auto;
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pp-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--pp-bg);
  border-bottom: 1px solid var(--pp-border);
  font-weight: 600;
  font-size: 11px;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pp-border);
  vertical-align: middle;
}

.pp-table tbody tr:hover {
  background: var(--pp-bg);
}

.pp-table tbody tr:last-child td {
  border-bottom: none;
}

.pp-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pp-link {
  color: var(--pp-brand);
  text-decoration: none;
}

.pp-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.pp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.pp-btn--primary {
  background: var(--pp-brand);
  color: white;
}
.pp-btn--primary:hover { background: var(--pp-brand-dark); }

.pp-btn--ghost {
  background: transparent;
  color: var(--pp-text);
  border: 1px solid var(--pp-border);
}
.pp-btn--ghost:hover { background: var(--pp-bg); }

.pp-btn--sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* ---------- Forms ---------- */
.pp-form {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 20px;
  box-shadow: var(--pp-shadow);
  max-width: 640px;
}

.pp-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pp-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-form__field--full { grid-column: 1 / -1; }

.pp-form__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pp-form__field input,
.pp-form__field select,
.pp-form__field textarea {
  padding: 9px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: white;
}

.pp-form__field textarea {
  resize: vertical;
  min-height: 80px;
}

.pp-form__field input:focus,
.pp-form__field select:focus,
.pp-form__field textarea:focus {
  outline: none;
  border-color: var(--pp-brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.pp-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pp-border);
}

.pp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pp-text);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--pp-shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 100;
}

.pp-toast--show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Resources ---------- */
.pp-resource {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pp-resource:hover { background: var(--pp-bg); }

.pp-resource__icon {
  width: 40px;
  height: 40px;
  background: var(--pp-info-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pp-resource__title {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.pp-resource__body {
  font-size: 12px;
  color: var(--pp-text-muted);
  margin: 2px 0 0 0;
}

.pp-resource__chevron {
  margin-left: auto;
  color: var(--pp-text-muted);
}

/* ---------- Empty / Mobile ---------- */
.pp-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--pp-text-muted);
}

/* ---------- Live / Mock Data Indicator ---------- */
.pp-ds {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: help;
}
.pp-ds-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pp-ds--live    { background: var(--pp-success-bg); color: #065f46; }
.pp-ds--live .pp-ds-dot    { background: var(--pp-success); box-shadow: 0 0 0 2px rgba(16,185,129,.2); }
.pp-ds--mock    { background: var(--pp-danger-bg);  color: #991b1b; }
.pp-ds--mock .pp-ds-dot    { background: var(--pp-danger); }
.pp-ds--partial { background: var(--pp-warning-bg); color: #92400e; }
.pp-ds--partial .pp-ds-dot { background: var(--pp-warning); }
.pp-ds--pending { background: var(--pp-bg); color: var(--pp-text-muted); }
.pp-ds--pending .pp-ds-dot { background: var(--pp-text-muted); animation: pp-pulse 1.5s infinite; }

@keyframes pp-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- Loading Spinner ---------- */
.pp-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--pp-border);
  border-top-color: var(--pp-brand);
  border-radius: 50%;
  animation: pp-spin 0.8s linear infinite;
}
@keyframes pp-spin {
  to { transform: rotate(360deg); }
}

/* ---------- BOQ Edit Mode ---------- */
.pp-boq-input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--pp-border);
  border-radius: 4px;
  font-size: 12px;
  background: white;
  font-family: inherit;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pp-boq-input:focus {
  outline: none;
  border-color: var(--pp-brand);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.pp-boq-input--text { text-align: left; }
.pp-boq-input--qty  { width: 60px; text-align: center; }
.pp-boq-input--price { text-align: right; }

#boq-panel--editing .pp-table tbody tr {
  background: #fffbeb;
}
#boq-panel--editing .pp-table tbody tr:hover {
  background: #fef3c7;
}

.pp-btn-edit {
  background: transparent;
  border: 1px solid var(--pp-border);
  color: var(--pp-text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.15s ease;
}
.pp-btn-edit:hover { background: var(--pp-bg); }
.pp-btn-edit--danger { color: var(--pp-danger); border-color: var(--pp-danger-bg); }
.pp-btn-edit--danger:hover { background: var(--pp-danger-bg); }

.boq-only-edit { display: none; }
#boq-panel.boq-editing .boq-only-edit { display: inline-flex; }

/* Print-friendly styles for Save-as-PDF */
@media print {
  .pp-header, .pp-tabs, .pp-page-header button,
  .pp-filters, .pp-btn, #bq-export-status, .pp-modal { display: none !important; }
  .pp-tab-panel { display: block !important; }
  .pp-card { box-shadow: none !important; border: 1px solid #ddd; }
  body { background: white !important; }
  .pp-main { padding: 0 !important; max-width: 100% !important; }
}

/* ============================================================
   PRINT-ONLY BOQ VIEW
   Hidden on screen, replaces the entire dashboard on print.
   ============================================================ */
.boq-print-only { display: none; }

@media print {
  /* Hide everything else */
  body * { visibility: hidden !important; }
  /* Show only the print view */
  #boq-print-view, #boq-print-view * { visibility: visible !important; }
  #boq-print-view {
    display: block !important;
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    padding: 28px 36px;
    background: white;
    color: #1a1a1a;
    font-family: 'Calibri', 'Arial', sans-serif;
    font-size: 10pt;
    line-height: 1.4;
  }
}

.boq-print__watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  width: 480px;
  height: 480px;
  background-image: url('assets/parkplus-logo-purple.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.boq-print__header, .boq-print__client, .boq-print__table,
.boq-print__totals, .boq-print__scope, .boq-print__terms, .boq-print__footer {
  position: relative;
  z-index: 1;
}

.boq-print__header {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 3px solid var(--pp-brand);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.boq-print__logo { height: 56px; width: auto; }
.boq-print__title { flex: 1; }
.boq-print__doc { font-size: 22pt; font-weight: 700; color: var(--pp-brand); letter-spacing: 0.5px; }
.boq-print__quote { font-size: 11pt; color: #555; margin-top: 2px; }
.boq-print__meta { font-size: 9pt; color: #333; text-align: right; line-height: 1.7; }

.boq-print__client {
  background: #f7f4ff;
  border-left: 4px solid var(--pp-brand);
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 4px;
}
.boq-print__client-label { font-size: 8pt; color: #777; text-transform: uppercase; letter-spacing: 1px; }
.boq-print__client-name { font-size: 14pt; font-weight: 700; margin: 2px 0 4px; }
.boq-print__client-site { font-size: 9pt; color: #444; white-space: pre-line; }

.boq-print__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  margin-bottom: 16px;
}
.boq-print__table th {
  background: var(--pp-brand);
  color: white;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.boq-print__table td {
  padding: 6px;
  border-bottom: 1px solid #e0e0e0;
  font-variant-numeric: tabular-nums;
}
.boq-print__table tbody tr:nth-child(even) { background: #fafafa; }
.boq-print__table tbody tr.category-row td {
  background: #f0ebff;
  color: var(--pp-brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 8pt;
  letter-spacing: 0.5px;
  padding: 4px 6px;
}

.boq-print__totals {
  width: 50%;
  margin-left: auto;
  margin-bottom: 20px;
  font-size: 9.5pt;
}
.boq-print__totals-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dotted #ccc;
}
.boq-print__totals-row--strong { font-weight: 700; color: #222; border-bottom: 1px solid #999; }
.boq-print__totals-row--grand {
  font-weight: 800;
  font-size: 12pt;
  color: white;
  background: var(--pp-brand);
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 8px;
  border: none;
}

.boq-print__scope, .boq-print__terms {
  margin-bottom: 16px;
  page-break-inside: avoid;
}
.boq-print__scope h4, .boq-print__terms h4 {
  margin: 0 0 8px;
  color: var(--pp-brand);
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--pp-brand);
  padding-bottom: 4px;
}
.boq-print__scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.boq-print__scope-cols h5 {
  margin: 0 0 4px;
  font-size: 9pt;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.5px;
}
.boq-print__scope-cols ul, .boq-print__terms ol, .boq-print__terms ul {
  margin: 0;
  padding-left: 18px;
  font-size: 8.5pt;
  line-height: 1.5;
}
.boq-print__scope-cols li, .boq-print__terms li { margin-bottom: 2px; }
.boq-print__terms ol li, .boq-print__terms ul li { color: #222; }
.boq-print__terms strong { color: var(--pp-brand); }

.boq-print__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--pp-brand);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 8.5pt;
  color: #333;
}
.boq-print__sig { flex: 1; max-width: 280px; }
.boq-print__sig-line { border-bottom: 1px solid #333; height: 36px; margin-bottom: 4px; }
.boq-print__sig-label { font-size: 8pt; color: #555; }
.boq-print__contact { text-align: right; line-height: 1.5; }

@page {
  size: A4;
  margin: 12mm;
}

/* ============================================================
   MODAL (used by Manage Reps)
   ============================================================ */
.pp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ppFadeIn 0.15s ease-out;
}
.pp-modal__panel {
  background: white;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pp-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pp-border);
  background: var(--pp-bg-soft);
}
@keyframes ppFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.pp-rep-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  border: 1px solid var(--pp-border);
  background: white;
}
.pp-rep-row:hover { background: var(--pp-bg-soft); }
.pp-rep-row__name { font-weight: 500; }
.pp-rep-row__role { font-size: 10px; color: var(--pp-text-muted); text-transform: uppercase; margin-left: 6px; }
.pp-rep-row__count { font-size: 11px; color: var(--pp-text-muted); margin-left: 8px; }
.pp-rep-row__btn {
  border: 1px solid var(--pp-border);
  background: white;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}
.pp-rep-row__btn:hover { background: var(--pp-bg-soft); }
.pp-rep-row__btn--deactivate { color: #b91c1c; border-color: #fecaca; }
.pp-rep-row__btn--deactivate:hover { background: #fef2f2; }
.pp-rep-row__btn--restore { color: #15803d; border-color: #bbf7d0; }
.pp-rep-row__btn--restore:hover { background: #f0fdf4; }

@media (max-width: 768px) {
  .pp-header { padding: 12px 16px; }
  .pp-main { padding: 16px; }
  .pp-tabs { padding: 0 16px; }
  .pp-form__row { grid-template-columns: 1fr; }
  .pp-page-header h2 { font-size: 18px; }
}

/* ---------- Pipeline tab ---------- */
.pp-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.pp-kpi {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 16px 18px;
  box-shadow: var(--pp-shadow);
}
.pp-kpi__label {
  font-size: 11px;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.pp-kpi__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  margin: 6px 0 4px;
  color: var(--pp-text);
}
.pp-kpi__value--success { color: var(--pp-success); }
.pp-kpi__value--danger  { color: var(--pp-danger); }
.pp-kpi__unit { font-size: 18px; color: var(--pp-text-muted); margin-left: 2px; }
.pp-kpi__sub { font-size: 12px; color: var(--pp-text-muted); }

.pp-funnel-card .pp-card__body { padding: 8px 4px 0; }

.pp-funnel-row {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pp-border);
}
.pp-funnel-row:last-child { border-bottom: none; }
.pp-funnel-row__label strong { display: block; font-size: 14px; }
.pp-funnel-row__sub { font-size: 11px; color: var(--pp-text-muted); }
.pp-funnel-row__bar {
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  min-width: 80px;
  transition: width .3s ease;
}
.pp-funnel-row__conv { text-align: right; }
.pp-conv {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.pp-conv--base { background: #f1f5f9; color: var(--pp-text-muted); }
.pp-conv--good { background: var(--pp-success-bg); color: #065f46; }
.pp-conv--mid  { background: var(--pp-warning-bg); color: #92400e; }
.pp-conv--bad  { background: var(--pp-danger-bg);  color: #991b1b; }

.pp-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.pp-card {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  margin-bottom: 16px;
}
.pp-card__header {
  padding: 14px 18px 8px;
  border-bottom: 1px solid var(--pp-border);
}
.pp-card__header h3 { font-size: 15px; margin: 0 0 2px; font-weight: 600; }
.pp-card__sub { font-size: 12px; color: var(--pp-text-muted); margin: 0; }
.pp-card__body { padding: 14px 18px; }
.pp-card__body--scroll { max-height: 360px; overflow-y: auto; }

.pp-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pp-matrix th, .pp-matrix td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid var(--pp-border);
}
.pp-matrix th {
  font-size: 11px;
  color: var(--pp-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #f8fafc;
}
.pp-matrix th:first-child, .pp-matrix td:first-child {
  text-align: left;
  background: var(--pp-card);
  position: sticky;
  left: 0;
  z-index: 1;
}
.pp-matrix-cell { border-radius: 4px; font-weight: 600; }

.pp-stuck {
  padding: 10px 0;
  border-bottom: 1px solid var(--pp-border);
}
.pp-stuck:last-child { border-bottom: none; }
.pp-stuck__head { display: flex; justify-content: space-between; align-items: center; }
.pp-stuck__days {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.pp-stuck__days--mild   { background: var(--pp-warning-bg); color: #92400e; }
.pp-stuck__days--warn   { background: var(--pp-orange-bg);   color: #9a3412; }
.pp-stuck__days--severe { background: var(--pp-danger-bg);  color: #991b1b; }
.pp-stuck__abandoned {
  margin-top: 12px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 12px;
  color: var(--pp-text-muted);
}
.pp-stuck__meta { font-size: 11px; color: var(--pp-text-muted); margin-top: 2px; }
.pp-stuck__stage { font-size: 12px; margin-top: 4px; color: var(--pp-text-muted); }
.pp-stuck__stage::before { content: "📍 "; }
.pp-empty--success { color: var(--pp-success); font-weight: 500; }

.pp-aging-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}
.pp-aging-row__label small { color: var(--pp-text-muted); font-weight: 400; }
.pp-aging-row__track {
  position: relative;
  background: #f1f5f9;
  border-radius: 4px;
  height: 24px;
  overflow: hidden;
}
.pp-aging-row__bar {
  height: 100%;
  border-radius: 4px;
  transition: width .3s ease;
}
.pp-aging-row__text {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--pp-text);
  mix-blend-mode: difference;
  filter: invert(1);
}

.pp-trend {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 200px;
  padding-top: 12px;
}
.pp-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.pp-trend-col__bar {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 4px;
}
.pp-trend-col__won { background: var(--pp-success); border-radius: 2px 2px 0 0; min-height: 2px; }
.pp-trend-col__lost { background: var(--pp-danger); border-radius: 2px 2px 0 0; min-height: 2px; }
.pp-trend-col__label { font-size: 10px; color: var(--pp-text-muted); margin-top: 4px; }
.pp-trend-col__pct { font-size: 11px; font-weight: 600; margin-top: 2px; }

.pp-forecast-card .pp-card__body { padding: 24px 18px; }
.pp-forecast {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}
.pp-forecast__cell {
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #f3efff 100%);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 20px 24px;
  text-align: center;
}
.pp-forecast__cell--result {
  background: linear-gradient(135deg, var(--pp-brand) 0%, var(--pp-brand-dark) 100%);
  border-color: var(--pp-brand-dark);
  color: white;
}
.pp-forecast__num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--pp-brand);
}
.pp-forecast__cell--result .pp-forecast__num { color: white; }
.pp-forecast__lbl { font-size: 12px; font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.pp-forecast__cell--result .pp-forecast__lbl { color: white; opacity: .9; }
.pp-forecast__sub { font-size: 11px; color: var(--pp-text-muted); margin-top: 4px; }
.pp-forecast__cell--result .pp-forecast__sub { color: white; opacity: .75; }
.pp-forecast__op {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 300;
  color: var(--pp-text-muted);
  padding: 0 4px;
}

@media (max-width: 1024px) {
  .pp-kpis { grid-template-columns: repeat(2, 1fr); }
  .pp-grid-2col { grid-template-columns: 1fr; }
  .pp-funnel-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Resources tab ---------- */
.pp-resource-group {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.pp-resource-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pp-border);
  background: linear-gradient(90deg, var(--pp-bg), white);
}
.pp-resource-group__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pp-resource-group__title { font-size: 15px; font-weight: 600; margin: 0; }
.pp-resource-group__sub { font-size: 12px; color: var(--pp-text-muted); margin: 2px 0 0; }
.pp-resource-group__count {
  margin-left: auto;
  background: var(--pp-bg);
  color: var(--pp-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.pp-resource-grid {
  display: flex;
  flex-wrap: wrap;
}
.pp-resource-card {
  display: block;
  flex: 1 1 240px;
  min-width: 240px;
  background: var(--pp-card);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background .15s, transform .15s;
  border-right: 1px solid var(--pp-border);
  border-bottom: 1px solid var(--pp-border);
}
.pp-resource-card:last-child { border-right: none; }
.pp-resource-card:hover {
  background: var(--pp-brand-tint);
  transform: translateY(-1px);
  z-index: 1;
}
.pp-resource-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-brand);
  margin-bottom: 4px;
  padding-right: 24px;
}
.pp-resource-card__desc {
  font-size: 12px;
  color: var(--pp-text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.pp-resource-card__host {
  font-size: 10px;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}
.pp-resource-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--pp-text-muted);
  font-size: 18px;
  transition: color .15s, transform .15s;
}
.pp-resource-card:hover .pp-resource-card__arrow {
  color: var(--pp-brand);
  transform: translateX(2px);
}

/* ============================================================ */
/* STATUS TAB — sheet-mirrored "Overall- Dashboard"              */
/* ============================================================ */
.st-block {
  margin-bottom: 28px;
}
.st-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.st-block__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--pp-text);
}
.st-block__sub {
  font-size: 12px;
  color: var(--pp-text-muted);
  font-variant-numeric: tabular-nums;
}
.st-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  background: var(--pp-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  table-layout: auto;
}
.st-col-name { width: 200px; }
.st-col-num  { width: 110px; }
.st-th {
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.25;
  border: 1px solid var(--pp-border);
  vertical-align: middle;
  color: var(--pp-text);
}
/* Sheet color palette — matches the merged-header view in the Finance sheet */
.st-th--yellow { background: #FFFF00; }
.st-th--blue   { background: #CFE2F3; }
.st-th--cyan   { background: #00FFFF; }
.st-th--green  { background: #B6D7A8; }
.st-th--sub    { font-size: 11.5px; font-weight: 600; padding: 8px 10px; }

.st-row td {
  padding: 9px 12px;
  border: 1px solid var(--pp-border);
  text-align: right;
  font-size: 13px;
  color: var(--pp-text);
  background: #ffffff;
}
.st-row--zebra td { background: #F4F8FC; }
.st-cell--name {
  text-align: left !important;
  font-weight: 600;
  color: var(--pp-text);
}
.st-num { font-variant-numeric: tabular-nums; }
.st-cell--mtdos  { color: #1B5E20; font-weight: 600; }
.st-cell--safe   { color: #2E7D32; }
.st-cell--warn   { color: #EF6C00; }
.st-cell--danger { color: #C62828; font-weight: 600; }
.st-cell--green  { color: #1B5E20; }
.st-cell--total  { font-weight: 700; }

.st-grand td {
  background: #7F4E1B !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border: 1px solid #5C3613;
}
.st-grand .st-cell--name { color: #ffffff !important; }
.st-grand .st-num { color: #ffffff !important; }

/* ---------- KPI strip ---------- */
.st-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.st-kpi {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-left: 4px solid var(--pp-brand);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.st-kpi--brand    { border-left-color: var(--pp-brand); }
.st-kpi--mtd      { border-left-color: #FB8C00; }
.st-kpi--green    { border-left-color: #2E7D32; }
.st-kpi--danger   { border-left-color: #C62828; }
.st-kpi--warn     { border-left-color: #EF6C00; }
.st-kpi--success  { border-left-color: #2E7D32; }
.st-kpi--neutral  { border-left-color: #607D8B; }
.st-kpi__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pp-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.st-kpi__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--pp-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.st-kpi__sub {
  font-size: 11.5px;
  color: var(--pp-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ---------- Aging bar (mini in KPI + per-rep) ---------- */
.st-aging-bar-mini {
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  background: #ECEFF1;
  margin: 6px 0 4px 0;
}
.st-aging-bar-mini__seg { height: 100%; }
.st-aging-bar-mini__seg--safe   { background: #66BB6A; }
.st-aging-bar-mini__seg--warn   { background: #FFA726; }
.st-aging-bar-mini__seg--danger { background: #EF5350; }

.st-aging-bar {
  display: flex;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  background: #ECEFF1;
  border: 1px solid var(--pp-border);
}
.st-aging-bar__seg { height: 100%; }
.st-aging-bar__seg--safe   { background: #66BB6A; }
.st-aging-bar__seg--warn   { background: #FFA726; }
.st-aging-bar__seg--danger { background: #EF5350; }
.st-aging-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  margin-top: 4px;
  color: var(--pp-text-muted);
}
.st-aging-legend__seg { font-variant-numeric: tabular-nums; }
.st-aging-legend__seg--safe   { color: #2E7D32; font-weight: 600; }
.st-aging-legend__seg--warn   { color: #EF6C00; font-weight: 600; }
.st-aging-legend__seg--danger { color: #C62828; font-weight: 600; }

/* ---------- Insight panels ---------- */
.st-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.st-insight {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.st-insight--danger { border-top: 3px solid #C62828; }
.st-insight--mtd    { border-top: 3px solid #FB8C00; }
.st-insight--green  { border-top: 3px solid #2E7D32; }
.st-insight__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-text);
  margin-bottom: 10px;
}
.st-insight__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.st-insight__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--pp-border);
  font-size: 12.5px;
}
.st-insight__list li:last-child { border-bottom: 0; }
.st-rank { font-weight: 700; color: var(--pp-text-muted); font-size: 11px; }
.st-rep { font-weight: 600; color: var(--pp-text); }
.st-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.st-amount--danger { color: #C62828; }
.st-amount--green  { color: #2E7D32; }
.st-amount--mtd    { color: #FB8C00; }
.st-pct {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--pp-text-muted);
  padding-left: 20px;
  font-variant-numeric: tabular-nums;
}
.st-insight__hint  {
  margin-top: 8px;
  font-size: 11px;
  color: var(--pp-text-muted);
  font-style: italic;
}
.st-insight__empty {
  font-size: 12.5px;
  color: var(--pp-text-muted);
  font-style: italic;
  padding: 8px 0;
}

/* ---------- Risk badges ---------- */
.st-risk-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}
.st-risk-badge--healthy  { background: #E8F5E9; color: #2E7D32; }
.st-risk-badge--watch    { background: #FFF8E1; color: #F57C00; }
.st-risk-badge--warning  { background: #FFE0B2; color: #E65100; }
.st-risk-badge--critical { background: #FFEBEE; color: #B71C1C; }
.st-risk-badge--inactive { background: #ECEFF1; color: #607D8B; }
.st-risk-badge--unset    { background: #F5F5F5; color: #9E9E9E; font-style: italic; }
.st-risk-badge--on-track { background: #C8E6C9; color: #1B5E20; font-weight: 600; }
.st-risk-badge--behind   { background: #FFE0B2; color: #E65100; font-weight: 600; }

/* Target / Achievement cell highlights */
.st-cell--target { background: rgba(76, 175, 80, 0.05); }
.st-cell--achv   { background: rgba(76, 175, 80, 0.08); font-weight: 600; }
.st-cell--achvpct { text-align: center; padding: 6px 8px; }

/* ---------- Inline percentage chips inside cells ---------- */
.st-pct-inline {
  font-size: 10.5px;
  color: var(--pp-text-muted);
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- Sortable headers ---------- */
.st-th--sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.1s ease;
}
.st-th--sortable:hover { filter: brightness(0.92); }
.st-th__arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  color: var(--pp-text-muted);
  font-weight: 700;
}
.st-sort-indicator {
  font-size: 11px;
  color: var(--pp-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 10px;
}

/* ============================================================ */
/* LOGIN SCREEN                                                 */
/* ============================================================ */
.pp-body--authed-out .pp-header,
.pp-body--authed-out main,
.pp-body--authed-out .pp-toast,
.pp-body--authed-out #pp-loading { display: none !important; }

.pp-login-root {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a0f3d 0%, #2d1b6e 50%, #442698 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.pp-login {
  width: 100%;
  max-width: 400px;
}
.pp-login__card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.pp-login__logo {
  width: 84px;
  height: auto;
  margin-bottom: 20px;
  background: var(--pp-brand);
  border-radius: 12px;
  padding: 12px;
}
.pp-login__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--pp-text);
  margin: 0 0 6px 0;
}
.pp-login__sub {
  font-size: 13.5px;
  color: var(--pp-text-muted);
  margin: 0 0 24px 0;
}
.pp-login__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.pp-login__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-login__field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pp-login__field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--pp-border);
  border-radius: 8px;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}
.pp-login__field input:focus {
  border-color: var(--pp-brand);
  box-shadow: 0 0 0 3px rgba(68, 38, 152, 0.12);
}
.pp-login__btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.pp-login__btn--primary {
  background: var(--pp-brand);
  color: #fff;
  margin-top: 4px;
}
.pp-login__btn--primary:hover { background: #321c7a; }
.pp-login__btn--primary:active { transform: scale(0.98); }
.pp-login__btn--primary:disabled { background: var(--pp-text-muted); cursor: not-allowed; }
.pp-login__btn--ghost {
  background: transparent;
  color: var(--pp-brand);
  border: 1.5px solid var(--pp-border);
}
.pp-login__btn--ghost:hover {
  background: rgba(68, 38, 152, 0.04);
  border-color: var(--pp-brand);
}
.pp-login__msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--pp-text-muted);
  text-align: center;
  min-height: 18px;
  line-height: 1.4;
  word-break: break-word;
}
.pp-login__msg--error { color: #C62828; }
.pp-login__foot {
  margin: 22px 0 0 0;
  font-size: 11.5px;
  color: var(--pp-text-muted);
  line-height: 1.6;
}

/* When signed in, hide the login root just in case */
.pp-body--authed-in .pp-login-root { display: none !important; }

/* Sign-out button uses the same look as user-switcher */
#pp-signout {
  border: 1px solid var(--pp-border);
  background: transparent;
  color: var(--pp-text-muted);
  padding: 6px 12px;
  font-size: 12px;
}
#pp-signout:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--pp-text);
}