/* Plantransport Design System v2 — mobile-first, eigenständig */

:root {
  --pt-brand-950: #042f2e;
  --pt-brand-900: #134e4a;
  --pt-brand-800: #0f766e;
  --pt-brand-700: #0d9488;
  --pt-brand-600: #14b8a6;
  --pt-brand-500: #2dd4bf;
  --pt-brand-100: #ccfbf1;
  --pt-brand-50: #f0fdfa;

  --pt-slate-900: #0f172a;
  --pt-slate-700: #334155;
  --pt-slate-600: #475569;
  --pt-slate-500: #64748b;
  --pt-slate-200: #e2e8f0;
  --pt-slate-100: #f1f5f9;
  --pt-slate-50: #f8fafc;

  --pt-bg: #f4f8f8;
  --pt-surface: #ffffff;
  --pt-border: #d5e3e3;
  --pt-text: #1a2e2e;
  --pt-text-muted: #5c7373;

  --pt-emergency-bg: #fffbeb;
  --pt-emergency-border: #fcd34d;
  --pt-emergency-text: #92400e;

  --pt-success: #059669;
  --pt-success-bg: #ecfdf5;
  --pt-warning: #d97706;
  --pt-warning-bg: #fffbeb;
  --pt-danger: #dc2626;
  --pt-danger-bg: #fef2f2;

  --pt-radius-sm: 0.375rem;
  --pt-radius: 0.625rem;
  --pt-radius-lg: 0.875rem;
  --pt-radius-xl: 1.125rem;
  --pt-shadow-sm: 0 1px 2px rgba(15, 46, 46, 0.06);
  --pt-shadow: 0 4px 16px rgba(15, 46, 46, 0.08);
  --pt-shadow-lg: 0 12px 32px rgba(15, 46, 46, 0.1);

  --pt-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --pt-topbar-h: 3.25rem;
  --pt-touch-min: 2.75rem; /* 44px */
  /* Schmale Admin-Spalte — nicht über ganze Ultrawide strecken */
  --pt-shell-max: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }

body.pt-app {
  font-family: var(--pt-font);
  margin: 0;
  color: var(--pt-text);
  background: var(--pt-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.pt-app-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* —— Notfall-Hinweis —— */
.pt-emergency {
  background: var(--pt-emergency-bg);
  border-bottom: 1px solid var(--pt-emergency-border);
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--pt-emergency-text);
  text-align: center;
}
.pt-emergency strong { font-weight: 700; }

/* —— Shell (Header, Subnav, Main bündig) —— */
.pt-shell {
  width: 100%;
  max-width: var(--pt-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* —— Topbar —— */
.pt-topbar {
  background: var(--pt-bg);
  border-bottom: 1px solid var(--pt-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
@media (min-width: 640px) {
  .pt-topbar { border-bottom: none; }
}
.pt-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--pt-topbar-h);
  padding-top: env(safe-area-inset-top, 0);
}
.pt-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hamburger — nur Mobile */
.pt-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--pt-touch-min);
  height: var(--pt-touch-min);
  padding: 0;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  background: transparent;
  color: var(--pt-brand-900);
  cursor: pointer;
}
.pt-menu-toggle__bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.pt-menu-toggle[aria-expanded="true"] .pt-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pt-menu-toggle[aria-expanded="true"] .pt-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.pt-menu-toggle[aria-expanded="true"] .pt-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.pt-menu-toggle__bar { transition: transform 0.15s, opacity 0.15s; }

/* Mobile Drawer */
.pt-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.pt-mobile-nav.hidden { display: none; }
.pt-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(15, 46, 46, 0.45);
  cursor: pointer;
}
.pt-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 20rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--pt-surface);
  box-shadow: var(--pt-shadow-lg);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pt-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pt-border);
  background: var(--pt-brand-900);
  color: #fff;
}
.pt-mobile-nav__user {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-mobile-nav__close {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: var(--pt-radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: var(--pt-touch-min);
  cursor: pointer;
}
.pt-mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}
.pt-mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: var(--pt-touch-min);
  padding: 0.65rem 1rem;
  border-radius: var(--pt-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pt-slate-700);
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
}
.pt-mobile-nav__link:hover,
.pt-mobile-nav__link:focus-visible {
  border-color: var(--pt-brand-600);
  background: var(--pt-brand-50);
  color: var(--pt-brand-900);
  outline: none;
}
.pt-mobile-nav__link--active {
  background: var(--pt-brand-50);
  border-color: var(--pt-brand-700);
  color: var(--pt-brand-900);
}
.pt-mobile-nav__foot {
  padding: 1rem;
  border-top: 1px solid var(--pt-border);
}
.pt-mobile-nav__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--pt-touch-min);
  width: 100%;
  border-radius: var(--pt-radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--pt-brand-800);
  border: 1px solid var(--pt-border);
  background: var(--pt-slate-50);
}
body.pt-mobile-nav-open { overflow: hidden; }
.pt-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--pt-brand-900);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  min-width: 0;
  flex-shrink: 1;
}
.pt-brand:hover { color: var(--pt-brand-800); }
.pt-brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.pt-brand__logo {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.35rem;
}
.pt-brand__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* User-Menü — flach, ohne weisse Box */
.pt-user-menu {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  max-width: min(100%, 18rem);
  font-size: 0.8125rem;
}
.pt-user-menu__name {
  font-weight: 600;
  color: var(--pt-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
  line-height: 1.3;
}
.pt-user-menu__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pt-brand-800);
  text-decoration: none;
  font-weight: 600;
  min-height: var(--pt-touch-min);
  padding: 0 0.25rem;
  transition: color 0.15s;
}
.pt-user-menu__logout:hover {
  color: var(--pt-brand-900);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Subnav (Desktop ab 640px — Mobile nutzt Drawer) —— */
.pt-subnav-bar {
  display: none;
  background: var(--pt-bg);
  border-bottom: 1px solid var(--pt-border);
  padding-bottom: 0.65rem;
}
.pt-subnav-shell {
  padding-top: 0.5rem;
  padding-bottom: 0;
}
.pt-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.15rem 0;
}
.pt-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  margin-right: 1rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pt-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: var(--pt-touch-min);
  transition: color 0.15s, border-color 0.15s;
}
.pt-subnav-link:hover {
  color: var(--pt-brand-800);
}
.pt-subnav-link-active {
  color: var(--pt-brand-900);
  border-bottom-color: var(--pt-brand-700);
}
.pt-subnav-link-active:hover {
  color: var(--pt-brand-900);
}

/* —— Hauptinhalt —— */
.pt-main {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}
.pt-main-app,
.pt-main-dashboard {
  /* Legacy-Klassen — Breite/Padding über .pt-shell / .pt-main */
}

.pt-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.pt-page--wide,
.pt-page--full { max-width: none; }

.pt-page-header { margin-bottom: 1.25rem; }
.pt-page-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pt-page-head__intro { min-width: 0; flex: 1; }
.pt-page-head__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.pt-page-head__actions .pt-btn { width: 100%; }
.pt-page-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pt-brand-700);
  margin: 0 0 0.35rem;
}
.pt-page-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pt-slate-900);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.pt-page-lead {
  font-size: 0.875rem;
  color: var(--pt-text-muted);
  margin: 0;
  max-width: none;
}
.pt-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}
.pt-page-links a {
  color: var(--pt-brand-800);
  text-decoration: none;
  font-weight: 600;
}
.pt-page-links a:hover { text-decoration: underline; }
.pt-page-links-sep { color: var(--pt-slate-500); user-select: none; }

/* Subnav/Drawer ersetzt redundanten Kicker und Seiten-Shortcuts */
.pt-subnav-bar ~ .pt-main .pt-page-kicker,
.pt-mobile-nav ~ .pt-subnav-bar ~ .pt-main .pt-page-kicker { display: none; }
.pt-subnav-bar ~ .pt-main .pt-page-links,
.pt-mobile-nav ~ .pt-subnav-bar ~ .pt-main .pt-page-links {
  display: none;
}

.pt-section + .pt-section { margin-top: 1.5rem; }
.pt-section__inner { margin-top: 0.75rem; }

/* —— Alerts —— */
.pt-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--pt-radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.pt-alert--info { background: var(--pt-brand-50); border-color: var(--pt-brand-100); color: var(--pt-brand-900); }
.pt-alert--success { background: var(--pt-success-bg); border-color: #a7f3d0; color: #065f46; }
.pt-alert--warning { background: var(--pt-warning-bg); border-color: #fde68a; color: #92400e; }
.pt-alert--error { background: var(--pt-danger-bg); border-color: #fecaca; color: #991b1b; }

/* —— Karten & Panels —— */
.pt-panel {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  box-shadow: var(--pt-shadow-sm);
  padding: 1.25rem;
}
.pt-panel + .pt-panel { margin-top: 1rem; }
.pt-panel--muted {
  background: var(--pt-slate-50);
  box-shadow: none;
}
.pt-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pt-slate-900);
  margin: 0 0 1rem;
}

/* —— KPI-Zeile (Disposition) —— */
.pt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.pt-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  padding: 0.5rem 0.35rem;
  text-align: center;
  box-shadow: var(--pt-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.pt-kpi:hover {
  border-color: var(--pt-brand-600);
  box-shadow: var(--pt-shadow);
}
.pt-kpi--highlight {
  border-color: #f59e0b;
  background: #fffbeb;
}
.pt-kpi--highlight .pt-kpi-val {
  color: #b45309;
}
.pt-kpi--pulse {
  animation: pt-kpi-pulse 2s ease-in-out infinite;
}
.pt-kpi-grid--alert .pt-kpi--highlight {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}
@keyframes pt-kpi-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
}
.pt-kpi--active {
  border-color: var(--pt-brand-600);
  box-shadow: 0 0 0 1px var(--pt-brand-600);
}
.pt-kpi-val {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--pt-slate-900);
  letter-spacing: -0.02em;
}
.pt-kpi-lbl {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pt-text-muted);
  margin-top: 0.15rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}
.pt-kpi-grid .pt-kpi {
  min-width: 0;
}
@media (max-width: 1200px) {
  .pt-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .pt-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Filter-Pills —— */
.pt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.pt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
  color: var(--pt-slate-700);
  min-height: var(--pt-touch-min);
  transition: all 0.15s;
}
.pt-pill:hover {
  border-color: var(--pt-brand-600);
  color: var(--pt-brand-900);
  background: var(--pt-brand-50);
}
.pt-pill--active {
  background: var(--pt-brand-800);
  border-color: var(--pt-brand-800);
  color: #fff;
}
.pt-pill--active:hover {
  background: var(--pt-brand-900);
  color: #fff;
}

/* —— Buttons —— */
.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--pt-radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: var(--pt-touch-min);
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.pt-btn:active { transform: scale(0.98); }
.pt-btn--primary { background: var(--pt-brand-800); color: #fff; }
.pt-btn--primary:hover { background: var(--pt-brand-900); }
.pt-btn--secondary {
  background: var(--pt-surface);
  color: var(--pt-slate-700);
  border: 1px solid var(--pt-border);
}
.pt-btn--secondary:hover { background: var(--pt-slate-100); }
.pt-btn--secondary.pt-btn--active {
  background: var(--pt-brand-50);
  border-color: var(--pt-brand-600);
  color: var(--pt-brand-900);
}
.pt-btn--ghost {
  background: transparent;
  color: var(--pt-slate-600);
  border: 1px solid transparent;
  min-width: 2.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.pt-btn--ghost:hover {
  background: var(--pt-slate-100);
  color: var(--pt-slate-800);
}
.pt-btn--success { background: var(--pt-success); color: #fff; }
.pt-btn--success:hover { background: #047857; }
.pt-btn--danger {
  background: var(--pt-danger-bg);
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.pt-btn--danger:hover { background: #fee2e2; }
.pt-btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  min-height: var(--pt-touch-min);
}
.pt-btn--lg {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1rem;
  border-radius: var(--pt-radius-lg);
}
.pt-btn--block { width: 100%; }
.pt-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* —— Formulare —— */
.pt-field { margin-bottom: 1rem; }
.pt-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}
.pt-field-row .pt-field { flex: 1 1 8rem; margin-bottom: 1rem; }
.pt-field-row .pt-field--narrow { flex: 0 1 6.5rem; max-width: 8rem; }
.pt-field-row .pt-field--grow { flex: 2 1 12rem; }
.pt-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pt-slate-700);
  margin-bottom: 0.35rem;
}
.pt-input,
.pt-select,
.pt-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--pt-text);
  background: var(--pt-surface);
  min-height: var(--pt-touch-min);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pt-input:focus,
.pt-select:focus,
.pt-textarea:focus {
  outline: none;
  border-color: var(--pt-brand-600);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}
.pt-input--readonly {
  background: var(--pt-slate-50);
  color: var(--pt-text-muted);
  cursor: default;
}

/* —— Status-Badges —— */
.pt-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--pt-slate-100);
  color: var(--pt-slate-600);
}
.pt-badge--new { background: var(--pt-brand-100); color: var(--pt-brand-900); }
.pt-badge--progress { background: #dbeafe; color: #1e40af; }
.pt-badge--done { background: var(--pt-success-bg); color: var(--pt-success); }
.pt-badge--warn {
  background: var(--pt-warning-bg);
  color: #92400e;
  border: 1px solid #fde68a;
}

/* —— Mission-Liste —— */
.pt-mission-list { list-style: none; margin: 0; padding: 0; }
.pt-mission-item { margin-bottom: 0.5rem; }
.pt-mission-link {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  text-decoration: none;
  color: inherit;
  background: var(--pt-surface);
  min-height: var(--pt-touch-min);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pt-mission-link:hover {
  border-color: var(--pt-brand-600);
  box-shadow: var(--pt-shadow-sm);
}
.pt-mission-link--active {
  border-color: var(--pt-brand-700);
  background: var(--pt-brand-50);
  box-shadow: var(--pt-shadow-sm);
}
.pt-mission-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.pt-mission-name { font-weight: 700; color: var(--pt-slate-900); }
.pt-mission-meta { font-size: 0.8125rem; color: var(--pt-text-muted); margin-top: 0.25rem; }
.pt-mission-meta--eta {
  color: var(--pt-brand-800);
  font-weight: 600;
}

/* —— Zwei-Spalten (Queue / Dispatch) —— */
.pt-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* —— Wizard (Melder) —— */
.pt-wizard-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background: var(--pt-brand-50);
  border: 1px solid var(--pt-brand-100);
  border-radius: var(--pt-radius-lg);
  margin-bottom: 1rem;
}
.pt-wizard-label { font-weight: 700; color: var(--pt-brand-900); font-size: 0.9375rem; }
.pt-wizard-progress { font-size: 0.8125rem; font-weight: 700; color: var(--pt-brand-700); }
.pt-wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pt-wizard-step-item {
  flex: 1;
  min-width: 0;
}
.pt-wizard-step-dot {
  height: 4px;
  border-radius: 2px;
  background: var(--pt-border);
  margin-bottom: 0.35rem;
  transition: background 0.2s;
}
.pt-wizard-step-dot--done { background: var(--pt-brand-500); }
.pt-wizard-step-dot--current { background: var(--pt-brand-800); }
.pt-wizard-step-name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pt-text-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-wizard-step-item--current .pt-wizard-step-name { color: var(--pt-brand-900); font-weight: 700; }
.pt-wizard-step-item--done .pt-wizard-step-name { color: var(--pt-brand-700); }

/* —— Admin-Formulare —— */
.pt-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.pt-form-grid .pt-span-2 { grid-column: 1 / -1; }
.pt-form--stacked {
  max-width: 100%;
}
.pt-input--file {
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
}
.pt-label--secondary {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pt-slate-600);
}
.pt-logo-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  background: var(--pt-slate-50);
}
.pt-logo-preview__img {
  display: block;
  max-width: min(100%, 12rem);
  max-height: 4rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pt-checkbox--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--pt-slate-700);
  cursor: pointer;
}
.pt-checkbox--inline input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
.pt-textarea--richtext { min-height: 10rem; }
.pt-form--legal .tox-tinymce {
  border-radius: var(--pt-radius) !important;
  border-color: var(--pt-border) !important;
  box-shadow: none;
}
.pt-form--legal .tox .tox-editor-header {
  border-bottom: 1px solid var(--pt-border);
  background: var(--pt-slate-50);
}
.pt-form--legal .tox .tox-edit-area__iframe {
  background: var(--pt-surface);
}
.pt-form--stacked .pt-textarea { min-height: 7.5rem; resize: vertical; }
.pt-field-hint {
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}
.pt-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.pt-form-actions .pt-btn { width: 100%; }
.pt-table-wrap { overflow-x: auto; }
.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.pt-table th,
.pt-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--pt-border);
}
.pt-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pt-text-muted);
  background: var(--pt-slate-50);
}
.pt-link { color: var(--pt-brand-800); font-weight: 600; text-decoration: none; }
.pt-link:hover { text-decoration: underline; }

/* —— Login —— */
body.pt-login-page {
  min-height: 100vh;
  font-family: var(--pt-font);
  margin: 0;
  background: linear-gradient(145deg, var(--pt-brand-950) 0%, var(--pt-brand-900) 45%, #0c4a6e 100%);
  display: flex;
  flex-direction: column;
}
.pt-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) 2rem max(1.25rem, env(safe-area-inset-left));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
.pt-login-card {
  width: 100%;
  max-width: 26rem;
  background: var(--pt-surface);
  border-radius: var(--pt-radius-xl);
  box-shadow: var(--pt-shadow-lg);
  padding: 2rem 1.75rem;
}
.pt-login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.pt-login-brand h1 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pt-brand-900);
  margin: 0;
}
.pt-login-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.4rem;
}
.pt-login-tagline {
  font-size: 0.875rem;
  color: var(--pt-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}
.pt-login-form .pt-field { margin-bottom: 1.15rem; }
.pt-login-form .pt-btn { width: 100%; margin-top: 0.5rem; }
body.pt-login-page .pt-emergency {
  background: rgba(255, 251, 235, 0.95);
  backdrop-filter: blur(4px);
}
body.pt-login-page .pt-footer--public {
  color: rgba(255, 255, 255, 0.78);
  padding-top: 0;
}
body.pt-login-page .pt-footer--public .pt-footer-legal__link {
  color: rgba(255, 255, 255, 0.92);
}
body.pt-login-page .pt-footer--public .pt-footer-legal__link:hover {
  color: #fff;
}
body.pt-login-page .pt-footer--public .pt-footer-copy {
  color: rgba(255, 255, 255, 0.65);
}

/* —— Dashboard —— */
.pt-dash-hero {
  margin-bottom: 1.5rem;
  border-radius: var(--pt-radius-xl);
  overflow: hidden;
  border: 1px solid var(--pt-border);
  box-shadow: var(--pt-shadow);
  background: var(--pt-surface);
}
.pt-dash-hero-head {
  background: linear-gradient(135deg, var(--pt-brand-900) 0%, var(--pt-brand-800) 100%);
  color: #fff;
  padding: 1.35rem 1.5rem;
}
.pt-dash-hero-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.pt-dash-hero-head p {
  font-size: 0.9375rem;
  margin: 0;
  opacity: 0.9;
  max-width: 36rem;
}
.pt-dash-hero-body { padding: 1.25rem 1.5rem; }
.pt-dash-section-title {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pt-text-muted);
  margin: 0 0 0.75rem;
}
.pt-dash-kpi {
  min-width: 5.5rem;
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
  padding: 0.65rem 0.85rem;
  text-align: center;
  box-shadow: var(--pt-shadow-sm);
}
.pt-dash-kpi-warn { border-color: var(--pt-warning); background: var(--pt-warning-bg); }
.pt-dash-kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--pt-brand-900);
}
.pt-dash-kpi-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pt-text-muted);
  margin-top: 0.2rem;
}
.pt-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.pt-member-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pt-member-badges li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.pt-table__row--active {
  background: var(--pt-brand-50, #eff6ff);
}
.pt-platform-kpi-row .pt-dash-kpi { min-width: 0; }
.pt-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pt-card-grid--nav { grid-template-columns: 1fr; }
.pt-dash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
  border-radius: var(--pt-radius-lg);
  padding: 1rem 1.1rem;
  min-height: 4.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--pt-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pt-dash-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}
.pt-dash-card:hover,
.pt-dash-card:focus-visible {
  border-color: var(--pt-brand-600);
  box-shadow: var(--pt-shadow);
  outline: none;
}
@media (hover: hover) {
  .pt-dash-card:hover { transform: translateY(-1px); }
}
.pt-dash-card strong {
  display: block;
  color: var(--pt-slate-900);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.pt-dash-card small {
  display: block;
  color: var(--pt-text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.pt-dash-card-arrow {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--pt-brand-700);
  font-size: 1.125rem;
}
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: var(--pt-radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  min-height: var(--pt-touch-min);
}
.dash-btn-primary { background: var(--pt-brand-800); color: #fff; }
.dash-btn-primary:hover { background: var(--pt-brand-900); }
.dash-btn-dark { background: var(--pt-slate-900); color: #fff; }
.dash-btn-dark:hover { background: #1e293b; }
.dash-btn-secondary {
  background: var(--pt-surface);
  color: var(--pt-slate-700);
  border: 1px solid var(--pt-border);
}
.dash-btn-secondary:hover { background: var(--pt-slate-100); }

/* —— Leitstand (Desktop-Dashboard) —— */
.pt-app--leitstand .pt-main--leitstand {
  padding-top: 0.65rem;
}
.pt-page--leitstand,
.pt-app--leitstand .pt-page {
  padding-top: 0;
}
.pt-app--leitstand .pt-page--wide {
  padding-left: 0;
  padding-right: 0;
}
.pt-main.pt-shell.pt-main--dashboard,
.pt-main.pt-shell.pt-main--leitstand {
  max-width: none;
  width: 100%;
}
.pt-main--dashboard {
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
}
.pt-main--dashboard + .pt-footer {
  padding-top: 0.75rem;
  padding-bottom: 0.65rem;
}
.pt-page--leitstand > .pt-kpi-grid {
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.pt-leitstand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
}
.pt-leitstand__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.65rem max(1rem, env(safe-area-inset-left)) 0.65rem max(1rem, env(safe-area-inset-right));
  padding-top: max(0.65rem, env(safe-area-inset-top, 0));
  border-radius: 0;
  width: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(15, 39, 68, 0.22);
  position: sticky;
  top: 0;
  z-index: 45;
}
.pt-leitstand__bar-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pt-leitstand__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.pt-leitstand__brand:hover {
  color: #fff;
  opacity: 0.92;
}
.pt-leitstand__brand-mark,
.pt-leitstand__brand-logo {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  object-fit: cover;
}
.pt-leitstand__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pt-leitstand__eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.pt-leitstand__title {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-leitstand__menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: var(--pt-touch-min);
  height: var(--pt-touch-min);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--pt-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.pt-leitstand__menu-bar {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.pt-leitstand__menu[aria-expanded="true"] .pt-leitstand__menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.pt-leitstand__menu[aria-expanded="true"] .pt-leitstand__menu-bar:nth-child(2) {
  opacity: 0;
}
.pt-leitstand__menu[aria-expanded="true"] .pt-leitstand__menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.pt-leitstand__menu-bar { transition: transform 0.15s, opacity 0.15s; }
.pt-leitstand__nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.15rem;
  min-width: 0;
}
.pt-leitstand-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: var(--pt-radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid transparent;
  white-space: nowrap;
}
.pt-leitstand-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.pt-leitstand-nav-link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}
.pt-leitstand-nav-link--alert {
  background: var(--pt-brand-600);
  border-color: var(--pt-brand-500);
  color: #fff;
}
.pt-leitstand-nav-link--alert:hover {
  background: var(--pt-brand-700);
}
.pt-leitstand__clock {
  text-align: right;
  padding: 0 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.pt-leitstand__clock-time {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.pt-leitstand__clock-date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  opacity: 0.82;
}
.pt-leitstand__account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 0;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.pt-leitstand__user {
  max-width: 14rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.pt-leitstand__logout {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.pt-leitstand__logout:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.pt-leitstand__grid.grid-stack {
  flex: 1;
  min-height: calc(100vh - 13rem);
  background: transparent;
}
.pt-leitstand__grid .grid-stack-item-content.pt-leitstand-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  background: var(--pt-surface);
  box-shadow: var(--pt-shadow-sm);
  overflow: hidden;
  inset: 0;
}
.pt-leitstand-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pt-leitstand-panel--main {
  border-color: var(--pt-brand-200);
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.08);
}
.pt-leitstand-panel--alert {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 2px 12px rgba(245, 158, 11, 0.12);
  animation: pt-leitstand-panel-alert 2.4s ease-in-out infinite;
}
@keyframes pt-leitstand-panel-alert {
  0%, 100% { border-color: #f59e0b; }
  50% { border-color: #fbbf24; }
}
.pt-leitstand__grid--static .pt-leitstand-panel__drag,
.pt-leitstand__grid--static .pt-leitstand-panel__head {
  cursor: default;
}
.pt-leitstand__grid--static .grid-stack-item {
  position: relative !important;
  width: 100% !important;
  left: 0 !important;
  top: auto !important;
  margin-bottom: 0.65rem;
}
.pt-leitstand__grid--static {
  min-height: 0;
}
.pt-leitstand-panel__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--pt-border);
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
}
.pt-leitstand-panel__head:active {
  cursor: grabbing;
}
.pt-leitstand-panel__drag {
  font-size: 0.875rem;
  line-height: 1;
  color: var(--pt-slate-400);
  flex-shrink: 0;
}
.pt-leitstand-panel__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-slate-700);
}
.pt-leitstand-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  background: var(--pt-slate-100);
  color: var(--pt-slate-700);
}
.pt-leitstand-panel__link {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pt-brand-800);
  text-decoration: none;
}
.pt-leitstand-panel__link:hover { text-decoration: underline; }
.pt-leitstand-panel__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.pt-leitstand-panel__more {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pt-text-muted);
  text-align: center;
  border-top: 1px solid var(--pt-border);
  background: #f8fafc;
}
.pt-leitstand-panel__more a {
  color: var(--pt-brand-800);
  font-weight: 700;
  text-decoration: none;
}
.pt-leitstand-panel__more a:hover {
  text-decoration: underline;
}
.pt-leitstand-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  padding: 0.55rem 1rem;
  border-radius: var(--pt-radius-md);
  background: var(--pt-slate-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pt-leitstand-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.pt-leitstand-toast--error {
  background: #b45309;
}
.pt-leitstand-empty {
  margin: 0;
  padding: 1.25rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
  text-align: center;
}
.pt-leitstand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: fixed;
}
.pt-leitstand-table--full .pt-leitstand-col-time { width: 5.5rem; }
.pt-leitstand-table--full .pt-leitstand-col-patient { width: 11%; }
.pt-leitstand-table--full .pt-leitstand-col-route { width: auto; }
.pt-leitstand-table--full .pt-leitstand-col-type { width: 12%; }
.pt-leitstand-table--full .pt-leitstand-col-status { width: 14%; }
.pt-leitstand-table--full .pt-leitstand-col-driver { width: 11%; }
.pt-leitstand-table--full .pt-leitstand-col-act { width: 2.25rem; }
.pt-leitstand-table--compact .pt-leitstand-col-time { width: 4.25rem; }
.pt-leitstand-table--compact .pt-leitstand-col-patient { width: 24%; }
.pt-leitstand-table--compact .pt-leitstand-col-route { width: auto; }
.pt-leitstand-table--compact .pt-leitstand-col-status { width: 22%; }
.pt-leitstand-table--compact .pt-leitstand-col-act { width: 2.25rem; }
.pt-leitstand-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.45rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--pt-slate-500);
  background: #f8fafc;
  border-bottom: 1px solid var(--pt-border);
  white-space: nowrap;
}
.pt-leitstand-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.pt-leitstand-table tbody tr:hover {
  background: var(--pt-brand-50);
}
.pt-leitstand-table td {
  padding: 0.4rem 0.55rem;
  vertical-align: top;
  border-bottom: 1px solid #eef2f6;
  line-height: 1.35;
}
.pt-leitstand-table__time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--pt-slate-800);
}
.pt-leitstand-table__date {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--pt-text-muted);
}
.pt-leitstand-table__patient .pt-leitstand-table__link {
  font-weight: 700;
  color: var(--pt-slate-900);
  text-decoration: none;
}
.pt-leitstand-table__patient .pt-leitstand-table__link:hover {
  color: var(--pt-brand-800);
  text-decoration: underline;
}
.pt-leitstand-table__sub {
  display: block;
  font-size: 0.6875rem;
  color: var(--pt-text-muted);
  margin-top: 0.1rem;
}
.pt-leitstand-table__route {
  color: var(--pt-slate-600);
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.pt-leitstand-table__type {
  color: var(--pt-slate-600);
  font-size: 0.75rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.pt-leitstand-table__status {
  white-space: normal;
}
.pt-leitstand-status {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: normal;
  line-height: 1.25;
  max-width: 100%;
}
.pt-leitstand-status--submitted { background: #dbeafe; color: #1e40af; }
.pt-leitstand-status--accepted { background: #ccfbf1; color: #0f766e; }
.pt-leitstand-status--assigned { background: #d1fae5; color: #047857; }
.pt-leitstand-status--en-route { background: #ffedd5; color: #c2410c; }
.pt-leitstand-status--picked-up { background: #ede9fe; color: #6d28d9; }
.pt-leitstand-status--delivered { background: #e2e8f0; color: #475569; }
.pt-leitstand-status--default { background: #f1f5f9; color: #475569; }
.pt-leitstand-table__eta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--pt-brand-800);
}
.pt-leitstand-table__driver {
  font-weight: 600;
  color: var(--pt-slate-700);
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.pt-leitstand-table__act {
  width: 2rem;
  text-align: center;
}
.pt-leitstand-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--pt-radius-sm);
  font-weight: 800;
  text-decoration: none;
  color: var(--pt-brand-800);
  background: var(--pt-brand-50);
  border: 1px solid var(--pt-brand-100);
}
.pt-leitstand-icon-btn:hover {
  background: var(--pt-brand-100);
}
.pt-leitstand__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0.15rem 0;
  border-top: 1px solid var(--pt-border);
}
.pt-leitstand-footer-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pt-text-muted);
  text-decoration: none;
}
.pt-leitstand-footer-link:hover {
  color: var(--pt-brand-800);
  text-decoration: underline;
}
.pt-leitstand-footer-link--btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

@media (min-width: 1201px) {
  .pt-leitstand__menu { display: none; }
  .pt-leitstand__nav { display: flex; }
}

@media (max-width: 1200px) {
  .pt-leitstand__bar {
    grid-template-columns: auto 1fr auto;
  }
  .pt-leitstand__account {
    border-left: none;
    padding-left: 0;
  }
  .pt-leitstand {
    min-height: 0;
  }
  .pt-leitstand__grid.grid-stack {
    min-height: calc(100vh - 11rem);
  }
}

@media (min-width: 1400px) {
  .pt-leitstand-table {
    font-size: 0.875rem;
  }
  .pt-leitstand__clock-time {
    font-size: 2rem;
  }
}

details.pt-setup {
  margin-top: 1.5rem;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  background: var(--pt-surface);
  padding: 0.75rem 1rem;
  box-shadow: var(--pt-shadow-sm);
}
details.pt-setup summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--pt-slate-700);
  padding: 0.35rem 0;
  min-height: var(--pt-touch-min);
  display: flex;
  align-items: center;
}

/* —— Off-Canvas (Stammdaten, Dispo-Detail) —— */
.pt-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.pt-offcanvas.hidden { display: none; }
.pt-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 46, 46, 0.45);
}
.pt-offcanvas__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pt-surface);
  box-shadow: var(--pt-shadow-lg);
  padding-bottom: env(safe-area-inset-bottom);
}
.pt-offcanvas__panel--wide { max-width: 36rem; }
.pt-offcanvas__panel--wizard { max-width: 42rem; }
.pt-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
  background: var(--pt-brand-800);
  color: #fff;
  flex-shrink: 0;
}
.pt-offcanvas__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-offcanvas__close {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: var(--pt-radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--pt-touch-min);
}
.pt-offcanvas__close:hover { background: rgba(255, 255, 255, 0.12); }
.pt-offcanvas__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--pt-slate-50);
}
.pt-offcanvas__foot {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--pt-border);
  background: var(--pt-surface);
}
body.pt-offcanvas-open { overflow: hidden; }

.pt-page-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pt-page-toolbar .pt-btn { width: 100%; }

/* —— Stammdaten-Listen (immer 1 Spalte — mobile-first, keine Kachel-Matrix) —— */
.pt-stamm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pt-stamm-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  box-shadow: var(--pt-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pt-stamm-item:hover {
  border-color: var(--pt-brand-100);
  box-shadow: var(--pt-shadow);
}
.pt-stamm-item__main { min-width: 0; flex: 1; }
.pt-stamm-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
.pt-stamm-item__title {
  font-weight: 700;
  color: var(--pt-slate-900);
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0;
}
.pt-stamm-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--pt-text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}
.pt-stamm-item__meta-line { word-break: break-word; }
.pt-stamm-item__meta-line--warn { color: #92400e; }
.pt-stamm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pt-brand-50);
  color: var(--pt-brand-900);
  border: 1px solid var(--pt-brand-100);
}
.pt-stamm-badge--warn {
  background: var(--pt-warning-bg);
  color: #92400e;
  border-color: #fde68a;
}
.pt-stamm-badge--danger {
  background: var(--pt-danger-bg);
  color: #991b1b;
  border-color: #fecaca;
}
.pt-offcanvas__section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pt-border);
}
.pt-offcanvas__section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* —— Radio-Karten (Org-Einstellungen) —— */
.pt-radio-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.pt-radio-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pt-radio-card:has(input:checked) {
  border-color: var(--pt-brand-600);
  background: rgba(20, 184, 166, 0.06);
}
.pt-radio-card input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.pt-radio-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.pt-radio-card__body strong {
  font-size: 0.9375rem;
  color: var(--pt-brand-900);
}
.pt-radio-card__body small {
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
  line-height: 1.45;
}
.pt-radio-card__hint a {
  color: var(--pt-brand-700);
  font-weight: 600;
}
.pt-stamm-item__edit {
  width: 100%;
  flex-shrink: 0;
  border: 1px solid var(--pt-border);
  color: var(--pt-brand-900);
  background: var(--pt-surface);
  border-radius: var(--pt-radius);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--pt-touch-min);
  transition: background 0.15s, border-color 0.15s;
}
.pt-stamm-item__edit:hover { background: var(--pt-brand-50); }
.pt-stamm-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.pt-stamm-item__edit--secondary {
  border-color: var(--pt-border);
  color: var(--pt-slate-700);
}
.pt-stamm-item__edit--danger {
  border-color: #fecaca;
  color: #991b1b;
}
.pt-stamm-item__edit--danger:hover { background: #fef2f2; }
.pt-stamm-item__cancel { margin: 0; }
.pt-stamm-item--empty {
  color: var(--pt-text-muted);
  font-size: 0.9375rem;
  padding: 0.75rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.pt-team-edit-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pt-team-edit-panel.hidden { display: none; }
.pt-form--inline { margin-top: 0.25rem; }

/* —— Aufträge / Suche —— */
.pt-order-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pt-order-search__input {
  flex: 1 1 12rem;
  min-width: 10rem;
  min-height: var(--pt-touch-min);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.9375rem;
}
.pt-order-draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--pt-brand-100);
  border-radius: var(--pt-radius);
  background: var(--pt-brand-50);
  color: var(--pt-brand-900);
}
.pt-order-draft-banner.hidden { display: none; }
.pt-order-draft-banner__text { margin: 0; font-size: 0.9375rem; }
.pt-order-draft-banner__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
}
.pt-order-draft-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pt-order-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.pt-order-load-more__info {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
}
.pt-order-load-more__status {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pt-brand-700);
}
.pt-order-load-more__sentinel {
  width: 100%;
  height: 1px;
}
.pt-order-load-more--loading .pt-order-load-more__info {
  opacity: 0.65;
}
.pt-order-load-more--complete .pt-order-load-more__status,
.pt-order-load-more--complete .pt-order-load-more__sentinel {
  display: none;
}
.pt-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pt-border);
}
.pt-order-cancel-form {
  flex: 1 1 100%;
  max-width: 100%;
}
.pt-cancel-confirm {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--pt-radius);
  border: 1px solid #fde68a;
  background: #fffbeb;
}

/* —— Datum/Zeit (CH: TT.MM.JJJJ HH:MM) —— */
.pt-input-date,
.pt-input-datetime {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.pt-input-datetime { min-width: 11rem; }
.pt-input-date { min-width: 8.5rem; }

/* —— Footer —— */
.pt-footer {
  margin-top: auto;
  background: transparent;
  padding-top: 2rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
}
/* Volle Breite wie Header/Main — Inhalt zentriert (nicht schmale Shell-Spalte links) */
.pt-footer.pt-shell {
  max-width: none;
}
.pt-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.pt-footer-brand__logo {
  display: block;
  max-width: min(100%, 9rem);
  max-height: 2.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pt-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
}
.pt-footer-legal__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--pt-brand-700);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.pt-footer-legal__link:hover { color: var(--pt-brand-900); }
.pt-footer-copy { margin: 0; font-size: 0.75rem; }
.pt-legal-prose {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--pt-text);
}
.pt-legal-prose h2,
.pt-legal-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pt-brand-900);
}
.pt-legal-prose h2:first-child,
.pt-legal-prose h3:first-child,
.pt-legal-prose p:first-child { margin-top: 0; }
.pt-legal-prose p { margin: 0 0 0.75rem; }
.pt-legal-prose ul,
.pt-legal-prose ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.pt-legal-prose a {
  color: var(--pt-brand-700);
  text-decoration: underline;
}

/* —— Routing / ETA —— */
.pt-eta-block {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-brand-100);
  background: linear-gradient(135deg, var(--pt-brand-50) 0%, #fff 100%);
}
.pt-eta-block--estimate {
  border-color: #fde68a;
  background: linear-gradient(135deg, var(--pt-warning-bg) 0%, #fff 100%);
}
.pt-eta-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pt-brand-800);
  margin-bottom: 0.25rem;
}
.pt-eta-block__time {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pt-brand-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pt-eta-block__detail {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
}
.pt-eta-block__hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--pt-brand-800);
  line-height: 1.35;
}
.pt-eta-block--pending {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.pt-eta-block--pending .pt-eta-block__time {
  font-size: 1.05rem;
  font-weight: 700;
}
.pt-eta-list-chip {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pt-brand-900);
  background: var(--pt-brand-50);
  border: 1px solid var(--pt-brand-100);
}
.pt-eta-list-chip--estimate {
  background: var(--pt-warning-bg);
  border-color: #fde68a;
  color: #92400e;
}
.pt-eta-list-chip--pending {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  font-weight: 600;
}
.pt-eta-block__meta {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
}
.pt-eta-block__maps {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pt-brand-700);
  text-decoration: underline;
  min-height: var(--pt-touch-min);
}

/* —— Utilities —— */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Tailwind-Kompatibilität: Brand statt Membero-Blau —— */
.text-brand-800 { color: var(--pt-brand-800) !important; }
.text-brand-900 { color: var(--pt-brand-900) !important; }
.bg-brand-800 { background-color: var(--pt-brand-800) !important; }
.bg-brand-50 { background-color: var(--pt-brand-50) !important; }
.border-brand-200 { border-color: var(--pt-brand-100) !important; }
.border-brand-600 { border-color: var(--pt-brand-600) !important; }
.border-brand-700 { border-color: var(--pt-brand-700) !important; }
.hover\:border-brand-400:hover { border-color: var(--pt-brand-500) !important; }

/* —— Responsive (mobile-first, nur min-width) —— */
@media (max-width: 639px) {
  .pt-user-menu { display: none; }
}

@media (min-width: 640px) {
  .pt-menu-toggle { display: none; }
  .pt-mobile-nav { display: none !important; }
  .pt-subnav-bar { display: block; }
  .pt-shell {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  .pt-main {
    padding-top: 1.25rem;
  }
  .pt-brand { font-size: 1.0625rem; }
  .pt-user-menu { font-size: 0.875rem; max-width: 22rem; }
  .pt-user-menu__name { max-width: 14rem; }
  .pt-page-title { font-size: 1.625rem; }
  .pt-page-lead { font-size: 0.9375rem; }
  .pt-page-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .pt-page-head__actions { flex-direction: row; }
  .pt-page-head__actions .pt-btn { width: auto; }
  .pt-page-toolbar {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  .pt-page-toolbar .pt-btn { width: auto; }
  .pt-form-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-form-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .pt-form-actions .pt-btn { width: auto; }
  .pt-offcanvas__panel { max-width: 32rem; }
  .pt-offcanvas__panel--wide { max-width: 36rem; }
  .pt-offcanvas__panel--wizard { max-width: 42rem; }
}

@media (min-width: 768px) {
  :root { --pt-shell-max: 42rem; }
}

@media (min-width: 1024px) {
  .pt-main.pt-main--wide:not(.pt-main--leitstand) {
    max-width: 56rem;
  }
  .pt-main.pt-main--plan,
  .pt-main.pt-main--dashboard,
  .pt-main.pt-main--leitstand.pt-main--wide {
    max-width: none;
  }
  .pt-split { grid-template-columns: 1fr 1fr; }
}

/* Disposition — Planung (Gantt) */
.pt-plan-readonly-banner {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}
.pt-plan-readonly-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.pt-plan-gantt--readonly .pt-gantt-bar {
  cursor: pointer;
}
.pt-plan-gantt--readonly .pt-gantt-bar--lane-assign,
.pt-plan-gantt--readonly .pt-gantt-bar--time-edit,
.pt-plan-gantt--readonly .pt-gantt-bar--time-edit-track {
  cursor: pointer;
}
.pt-main--plan .pt-page-header {
  margin-bottom: 1rem;
}
.pt-main--plan .pt-page-lead {
  font-size: 0.8125rem;
  color: var(--pt-slate-500);
}

.pt-pills--inline {
  margin-bottom: 0;
  gap: 0.3rem;
}
.pt-pills--inline .pt-pill {
  padding: 0.32rem 0.7rem;
  font-size: 0.75rem;
  min-height: 2rem;
}

.pt-plan-command {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
  border-radius: var(--pt-radius-lg);
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.pt-plan-command__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
}
.pt-plan-command__row + .pt-plan-command__row {
  border-top: 1px solid var(--pt-border);
}
.pt-plan-command__row--primary {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.pt-plan-command__row--secondary {
  align-items: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.pt-plan-command__row--meta {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.55rem 1rem;
  background: var(--pt-slate-50);
}
.pt-plan-command__group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.pt-plan-command__group--grow {
  flex: 1 1 14rem;
}
.pt-plan-command__group--actions {
  margin-left: auto;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.pt-plan-command__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-slate-500);
}
.pt-plan-command__date-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.pt-plan-command__date {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pt-slate-800);
  white-space: nowrap;
}
.pt-plan-command__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pt-plan-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.pt-plan-zoom .pt-pill {
  cursor: pointer;
  border: none;
  font: inherit;
}
.pt-plan-filter-label {
  display: inline-flex;
  align-items: center;
}
.pt-plan-filter-select {
  font-size: 0.8125rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--pt-radius-md);
  border: 1px solid var(--pt-border);
  background: #fff;
  min-height: 2rem;
  color: var(--pt-slate-700);
}
.pt-plan-poll-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pt-slate-600);
  cursor: pointer;
  white-space: nowrap;
}
.pt-plan-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  margin-left: auto;
}
.pt-plan-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--pt-radius-md);
  background: var(--pt-slate-50);
  border: 1px solid var(--pt-border);
  text-align: center;
}
button.pt-plan-stat {
  cursor: pointer;
  font: inherit;
}
.pt-plan-stat__val {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--pt-slate-800);
  letter-spacing: -0.02em;
}
.pt-plan-stat__lbl {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pt-slate-500);
  margin-top: 0.1rem;
}
.pt-plan-stat--open {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.pt-plan-stat--open .pt-plan-stat__val { color: #047857; }
.pt-plan-stat--warn {
  background: #fff7ed;
  border-color: #fed7aa;
}
.pt-plan-stat--warn .pt-plan-stat__val { color: #c2410c; }
.pt-plan-stat--conflict {
  background: #fef2f2;
  border-color: #fecaca;
}
.pt-plan-stat--conflict .pt-plan-stat__val { color: #dc2626; }
.pt-plan-stat--conflict:hover {
  background: #fee2e2;
}
.pt-plan-stat--ok {
  opacity: 0.72;
}
.pt-plan-stat--muted {
  opacity: 0.85;
}
.pt-plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.6875rem;
  color: var(--pt-slate-600);
}
.pt-plan-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.pt-plan-legend__swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.2rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}
.pt-plan-legend__swatch.pt-gantt-bar--conflict {
  background: #fff;
  outline: 2px solid #dc2626;
  outline-offset: -1px;
}
.pt-plan-help {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--pt-slate-600);
}
.pt-plan-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pt-brand-800);
  list-style: none;
  user-select: none;
}
.pt-plan-help summary::-webkit-details-marker { display: none; }
.pt-plan-help summary::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.7;
}
.pt-plan-help[open] summary::after { content: ' ▴'; }
.pt-plan-help p {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  line-height: 1.45;
  color: var(--pt-slate-600);
}
.pt-plan-help p + p { margin-top: 0.35rem; }
.pt-plan-help kbd {
  font-size: 0.6875rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  border: 1px solid var(--pt-border);
  background: #fff;
}
.pt-plan-drag-hint {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 10060;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.pt-plan-drag-hint.hidden {
  display: none;
}
.pt-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pt-modal.hidden {
  display: none;
}
.pt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.pt-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--pt-radius-lg);
  background: #fff;
  border: 1px solid var(--pt-border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}
.pt-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.pt-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.pt-plan-board {
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  background: var(--pt-surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.pt-plan-board__pool {
  border-bottom: 1px solid var(--pt-border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.pt-plan-board__pool-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 1rem 0.45rem;
}
.pt-plan-board__pool-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pt-slate-600);
}
.pt-plan-board__pool-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--pt-slate-500);
}
.pt-plan-unassigned__grid {
  display: flex;
  align-items: stretch;
}
.pt-plan-unassigned__head-label {
  flex: 0 0 11rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pt-slate-700);
  background: var(--pt-slate-50);
  border-right: 1px solid var(--pt-border);
  border-top: 1px solid var(--pt-border);
  display: flex;
  align-items: center;
}
.pt-plan-unassigned__scroll {
  flex: 1;
  overflow-x: auto;
  padding: 0;
  border-top: 1px solid var(--pt-border);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}
.pt-plan-unassigned__scroll::-webkit-scrollbar {
  height: 6px;
}
.pt-plan-unassigned__scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
}
.pt-plan-unassigned__lane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-height: 4.25rem;
  padding: 0.5rem 0.65rem;
  background-color: #fff;
}
.pt-plan-unassigned__lane--timeline {
  position: relative;
  display: block;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  min-height: 4.5rem;
}
.pt-plan-unassigned__lane--drop {
  background-color: rgba(13, 148, 136, 0.06) !important;
  outline: 2px solid var(--pt-brand-500);
  outline-offset: -2px;
}
.pt-plan-unassigned__empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
  padding: 0.85rem 1rem;
}
.pt-plan-unassigned__drop-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: var(--pt-slate-400);
  text-align: center;
  pointer-events: none;
}
.pt-plan-board__gantt.pt-plan-gantt-wrap,
.pt-plan-gantt-wrap {
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--pt-surface);
}
.pt-plan-gantt {
  overflow: auto;
  max-height: min(75vh, 780px);
}
.pt-plan-gantt--day[data-pt-plan-pan] {
  cursor: grab;
  touch-action: pan-y;
}
.pt-plan-unassigned__scroll[data-pt-plan-pan] {
  cursor: grab;
  touch-action: pan-y;
}
body.pt-plan-panning .pt-plan-gantt--day[data-pt-plan-pan],
body.pt-plan-panning .pt-plan-unassigned__scroll[data-pt-plan-pan] {
  cursor: grabbing;
  user-select: none;
}
.pt-plan-tooltip {
  position: fixed;
  z-index: 10050;
  pointer-events: none;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.18));
}
.pt-plan-tooltip.hidden {
  display: none;
}
.pt-plan-tooltip__card {
  position: relative;
  width: max-content;
  max-width: 18rem;
  padding: 0.65rem 0.85rem 0.7rem;
  border-radius: 0.625rem;
  border: 1px solid var(--pt-border, #e2e8f0);
  background: #fff;
  color: var(--pt-slate-800, #1e293b);
  text-align: left;
}
.pt-plan-tooltip__card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  transform: rotate(45deg);
  background: #fff;
  border-right: 1px solid var(--pt-border, #e2e8f0);
  border-bottom: 1px solid var(--pt-border, #e2e8f0);
}
.pt-plan-tooltip__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pt-slate-900, #0f172a);
}
.pt-plan-tooltip__time {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pt-brand-700, #0f766e);
}
.pt-plan-tooltip__meta {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--pt-text-muted, #64748b);
  line-height: 1.4;
}
.pt-plan-tooltip__line {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.35;
}
.pt-plan-tooltip__muted {
  color: var(--pt-text-muted, #64748b);
  font-style: italic;
}
.pt-plan-tooltip__badge {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--pt-slate-600, #475569);
}
.pt-plan-tooltip__badge.pt-gantt-bar--submitted { background: #1d4ed8; }
.pt-plan-tooltip__badge.pt-gantt-bar--accepted { background: #0f766e; }
.pt-plan-tooltip__badge.pt-gantt-bar--assigned { background: #047857; }
.pt-plan-tooltip__badge.pt-gantt-bar--en-route { background: #b45309; }
.pt-plan-tooltip__badge.pt-gantt-bar--picked-up { background: #6d28d9; }
.pt-plan-tooltip__badge.pt-gantt-bar--delivered { background: #475569; }
.pt-plan-tooltip__warn {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #dc2626;
}
.pt-plan-tooltip__hints {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0 0 1rem;
  border-top: 1px solid var(--pt-border, #e2e8f0);
  font-size: 0.625rem;
  color: var(--pt-text-muted, #64748b);
  line-height: 1.45;
}
.pt-plan-tooltip__hints li + li {
  margin-top: 0.15rem;
}
.pt-plan-gantt__loading {
  padding: 2.5rem;
  text-align: center;
  color: var(--pt-text-muted);
}
.pt-plan-gantt__head,
.pt-plan-gantt__row {
  display: flex;
  align-items: stretch;
  min-width: max-content;
}
.pt-plan-gantt__body {
  position: relative;
}
.pt-plan-gantt__head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.pt-plan-gantt__head-label,
.pt-plan-gantt__row-label {
  flex: 0 0 11rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-right: 1px solid var(--pt-border);
  position: sticky;
  left: 0;
  z-index: 3;
}
.pt-plan-gantt__head-label {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  border-right-color: rgba(255, 255, 255, 0.1);
}
.pt-plan-gantt__row-label {
  background: #fff;
  color: var(--pt-slate-800);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--pt-border);
}
.pt-plan-gantt__row-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.pt-plan-gantt__head-hours {
  display: flex;
  flex-shrink: 0;
}
.pt-plan-gantt__hour {
  flex: 0 0 auto;
  padding: 0.5rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.pt-plan-gantt__row:nth-child(even) .pt-plan-gantt__row-label {
  background: #f8fafc;
}
.pt-plan-gantt__row {
  border-bottom: 1px solid #e2e8f0;
}
.pt-plan-gantt__row:last-child {
  border-bottom: none;
}
.pt-plan-gantt__track {
  position: relative;
  flex-shrink: 0;
  background-color: #fff;
}
.pt-plan-gantt__row:nth-child(even) .pt-plan-gantt__track {
  background-color: #fafbfc;
}
.pt-plan-gantt__track--drop {
  background-color: rgba(13, 148, 136, 0.06) !important;
  outline: 2px solid var(--pt-brand-500);
  outline-offset: -2px;
}
.pt-plan-gantt__now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, rgba(239, 68, 68, 0.35) 100%);
  z-index: 5;
  pointer-events: none;
}
.pt-plan-gantt__now::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(239, 68, 68, 0.35);
}
body.pt-plan-dragging {
  cursor: grabbing;
  user-select: none;
}
body.pt-plan-dragging .pt-gantt-bar {
  cursor: grabbing;
}
.pt-gantt-bar {
  position: absolute;
  top: 0.45rem;
  height: calc(100% - 0.9rem);
  min-height: 2.65rem;
  border-radius: 0.5rem;
  padding: 0.3rem 0.6rem 0.3rem 0.5rem;
  text-align: left;
  cursor: grab;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.1);
  z-index: 2;
  touch-action: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.pt-gantt-bar:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14), 0 8px 18px rgba(15, 23, 42, 0.12);
  z-index: 3;
}
.pt-gantt-bar--locked {
  cursor: default;
  opacity: 0.92;
  border-style: dashed;
}
.pt-gantt-bar--dragging {
  cursor: grabbing;
  z-index: 6;
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}
.pt-gantt-bar--chip {
  position: relative;
  top: auto;
  height: auto;
  min-height: 3.5rem;
  min-width: 10.5rem;
  max-width: 15rem;
  padding: 0.55rem 0.75rem;
  cursor: grab;
}
.pt-gantt-bar--chip:not(.pt-gantt-bar--chip-timeline) {
  left: auto !important;
  width: auto !important;
}
.pt-gantt-bar--chip-timeline {
  position: absolute;
  top: 0.5rem;
  min-width: 10rem;
  max-width: 16rem;
  height: calc(100% - 1rem);
  min-height: 3.5rem;
}
.pt-gantt-bar--time-edit {
  cursor: grab;
}
.pt-gantt-bar--lane-assign {
  cursor: grab;
}
.pt-gantt-bar--lane-assign:active {
  cursor: grabbing;
}
.pt-gantt-bar--conflict {
  outline: 3px solid #dc2626;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35), 0 4px 14px rgba(220, 38, 38, 0.22);
  z-index: 3;
}
.pt-gantt-bar--conflict-pulse {
  animation: pt-plan-conflict-pulse 0.55s ease-in-out 3;
}
@keyframes pt-plan-conflict-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.pt-gantt-bar--shifted {
  box-shadow: inset 0 -3px 0 rgba(245, 158, 11, 0.85);
}
.pt-gantt-bar--orphan {
  outline: 2px dashed #ea580c;
  outline-offset: 2px;
}
.pt-gantt-bar--time-edit-track {
  cursor: grab;
}
.pt-plan-week__head--link {
  cursor: pointer;
}
.pt-plan-week__head--link:hover {
  color: var(--pt-brand-700);
}
.pt-gantt-bar__time {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  opacity: 0.95;
  letter-spacing: 0.02em;
}
.pt-gantt-bar__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
.pt-gantt-bar__meta {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}
.pt-gantt-bar--submitted { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.pt-gantt-bar--accepted { background: linear-gradient(135deg, #0d9488, #0f766e); }
.pt-gantt-bar--assigned { background: linear-gradient(135deg, #059669, #047857); }
.pt-gantt-bar--en-route { background: linear-gradient(135deg, #d97706, #b45309); }
.pt-gantt-bar--picked-up { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.pt-gantt-bar--delivered { background: linear-gradient(135deg, #64748b, #475569); }
.pt-gantt-bar--default { background: linear-gradient(135deg, #334155, #1e293b); }
.pt-gantt-bar__resize {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 100%;
  cursor: ew-resize;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45));
  border-radius: 0 0.625rem 0.625rem 0;
  touch-action: none;
}
.pt-gantt-bar__resize::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 4px;
  width: 3px;
  height: 50%;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: -5px 0 0 rgba(255, 255, 255, 0.85);
}
.pt-plan-week__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 0.85rem;
  min-width: 980px;
  padding: 0.25rem;
}
.pt-plan-week__col {
  min-height: 300px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  background: var(--pt-surface);
  padding: 0.75rem;
  box-shadow: var(--pt-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.05));
}
.pt-plan-week__col--today {
  border-color: var(--pt-brand-600);
  background: linear-gradient(180deg, var(--pt-brand-50) 0%, var(--pt-surface) 100%);
  box-shadow: 0 0 0 1px var(--pt-brand-100);
}
.pt-plan-week__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid var(--pt-border);
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
}
.pt-plan-week__wd {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pt-text-muted);
  font-weight: 700;
  font-size: 0.6875rem;
}
.pt-plan-week__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pt-plan-month__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0.25rem 0.85rem 0.85rem;
  color: var(--pt-slate-900);
}
.pt-plan-month__weekdays,
.pt-plan-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  padding: 0 0.85rem 0.85rem;
}
.pt-plan-month__weekdays {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pt-text-muted);
}
.pt-plan-month__weekdays > div {
  text-align: center;
}
.pt-plan-month__cell {
  min-height: 5rem;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: var(--pt-surface);
  padding: 0.45rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pt-plan-month__cell:hover {
  border-color: var(--pt-brand-600);
  background: var(--pt-brand-50);
}
.pt-plan-month__cell--out { opacity: 0.4; }
.pt-plan-month__cell--today {
  border-color: var(--pt-brand-600);
  background: var(--pt-brand-50);
  font-weight: 700;
}
.pt-plan-month__cell--conflict { outline: 2px solid #dc2626; outline-offset: 1px; }
.pt-plan-month__day { display: block; font-weight: 800; font-size: 0.9375rem; }
.pt-plan-month__count {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pt-brand-900);
  background: var(--pt-brand-100);
  border-radius: 9999px;
  padding: 0.1rem 0.45rem;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .pt-plan-command__row--primary,
  .pt-plan-command__row--secondary {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-plan-command__group--actions,
  .pt-plan-stats {
    margin-left: 0;
  }
  .pt-plan-stats {
    width: 100%;
    justify-content: flex-start;
  }
  .pt-plan-command__row--meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .pt-plan-help {
    margin-left: 0;
  }
}
