/*
 * Production Tracker — Frontend CSS
 * Mobile-first, zero-dependency.
 * Color system: dark navy (#0f172a) bg, white text, accent green (#22c55e).
 */

/* ══════════════════════════════════════════════════════════════
   Reset / base
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body.pt-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* ══════════════════════════════════════════════════════════════
   App wrapper
   ══════════════════════════════════════════════════════════════ */

.pt-app {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ══════════════════════════════════════════════════════════════
   Top bar
   ══════════════════════════════════════════════════════════════ */

.pt-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #1e293b;
  border-bottom: 2px solid #334155;
  padding: .9rem 1.25rem;
  min-height: 68px;
}

/* ── Back button (batch page: ← Overview) ── */
.pt-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #1e3a5f;
  border: 1.5px solid #2563eb;
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 700;
  padding: .55rem 1rem;
  min-height: 48px;         /* solid tablet tap target */
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.pt-topbar__back:hover {
  background: #1e40af;
  border-color: #3b82f6;
  text-decoration: none;
}

.pt-topbar__logo {
  flex: 1;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-topbar__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.pt-topbar__user {
  font-size: .85rem;
  color: #94a3b8;
}

/* Plugin version tag — shown in overview topbar */
.pt-topbar__version {
  font-size: .72rem;
  font-weight: 700;
  color: #475569;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 99px;
  padding: .15em .65em;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .03em;
}

/* Tablet (≥ 600 px) */
@media (min-width: 600px) {
  .pt-topbar {
    padding: 1rem 1.75rem;
    min-height: 72px;
    gap: 1.25rem;
  }
  .pt-topbar__logo { font-size: 1.2rem; }
  .pt-topbar__back { font-size: 1.05rem; padding: .6rem 1.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════════════════════ */

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: .6rem 1.1rem;
  font-size: .9rem;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}
.pt-btn:disabled { opacity: .45; cursor: not-allowed; }

.pt-btn--primary  { background: #22c55e; color: #052e16; }
.pt-btn--primary:hover:not(:disabled)  { background: #16a34a; }

.pt-btn--secondary { background: #1d4ed8; color: #fff; }
.pt-btn--secondary:hover:not(:disabled) { background: #1e40af; }

.pt-btn--danger   { background: #dc2626; color: #fff; }
.pt-btn--danger:hover:not(:disabled)   { background: #b91c1c; }

.pt-btn--ghost {
  background: transparent;
  border: 1px solid #475569;
  color: #cbd5e1;
}
.pt-btn--ghost:hover:not(:disabled) { background: #1e293b; }

.pt-btn--sm  { padding: .35rem .75rem; font-size: .8rem; border-radius: 6px; }
.pt-btn--xl  { padding: 1rem; font-size: 1.15rem; border-radius: 12px; }
.pt-btn--full { width: 100%; }

/* Refresh button inside topbar — always a comfortable tablet tap target */
.pt-topbar .pt-btn--sm,
.pt-topbar .pt-btn--ghost {
  min-height: 44px;
  min-width: 44px;
  padding: .5rem .85rem;
  font-size: .9rem;
}

/* ══════════════════════════════════════════════════════════════
   Sections
   ══════════════════════════════════════════════════════════════ */

.pt-section {
  padding: 1rem;
  border-bottom: 1px solid #1e293b;
}
.pt-section:last-child { border-bottom: none; }

.pt-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.pt-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pt-section__subtitle {
  font-size: .85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}

.pt-section__desc {
  font-size: .9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   Search bar
   ══════════════════════════════════════════════════════════════ */

.pt-search-bar {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 52px;
  z-index: 40;
}

.pt-search-bar__input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  padding: .55rem .85rem;
  font-size: .9rem;
}
.pt-search-bar__input::placeholder { color: #475569; }
.pt-search-bar__input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ══════════════════════════════════════════════════════════════
   Batches grid
   ══════════════════════════════════════════════════════════════ */

.pt-batches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding-top: .5rem;
}

/* Always stay 2-wide — removed 3-col breakpoint */

.pt-batch-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pt-batch-card:hover {
  border-color: #3b82f6;
  background: #263448;
  text-decoration: none;
}

.pt-batch-card__id {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: .4rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Due chip + % complete on the same row */
.pt-batch-card__meta-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}

/* Due date line — shown if set */
.pt-batch-card__due {
  font-size: .7rem;
  color: #94a3b8;
}

/* Percentage complete pill */
.pt-batch-card__pct {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 99px;
  padding: .15em .65em;
  white-space: nowrap;
  letter-spacing: .02em;
  background: #1e3a5f;
  color: #60a5fa;
  border: 1px solid #1a56db;
  margin-left: auto;
}
.pt-batch-card__pct--done {
  background: #052e16;
  color: #4ade80;
  border-color: #15803d;
}

/* ── Due-date countdown chip ──────────────────────────────── */
.pt-due-chip {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .15em .65em;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* > 7 days — calm green */
.pt-due-chip--ok {
  background: #052e16;
  color: #4ade80;
  border: 1px solid #15803d;
}

/* 4–7 days — yellow warning */
.pt-due-chip--soon {
  background: #422006;
  color: #fbbf24;
  border: 1px solid #92400e;
}

/* 1–3 days — orange urgent */
.pt-due-chip--urgent {
  background: #431407;
  color: #fb923c;
  border: 1px solid #c2410c;
}

/* Due today — bright red */
.pt-due-chip--today {
  background: #450a0a;
  color: #f87171;
  border: 1px solid #991b1b;
}

/* Overdue — dark red */
.pt-due-chip--overdue {
  background: #3b0764;
  color: #f472b6;
  border: 1px solid #86198f;
}

/* Stats row: total | done | hold */
.pt-batch-card__counts {
  display: flex;
  gap: .6rem;
  margin-top: .35rem;
  justify-content: center;
}

.pt-batch-card__count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
}

.pt-batch-card__count-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.1;
}

.pt-batch-card__count-lbl {
  font-size: .65rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Colour variants for done / hold counts */
.pt-batch-card__count-item--complete .pt-batch-card__count-num { color: #22c55e; }
.pt-batch-card__count-item--hold     .pt-batch-card__count-num { color: #fb923c; }

/* ══════════════════════════════════════════════════════════════
   List rows (orders, search results)
   ══════════════════════════════════════════════════════════════ */

.pt-list { display: flex; flex-direction: column; gap: .5rem; }

.pt-list-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: border-color .15s;
  text-decoration: none;
  color: inherit;
}
.pt-list-row:hover { border-color: #3b82f6; text-decoration: none; }

.pt-list-row__main { flex: 1; min-width: 0; }

.pt-list-row__primary {
  font-weight: 700;
  font-size: .95rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-list-row__secondary {
  font-size: .78rem;
  color: #64748b;
  margin-top: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-list-row__arrow {
  color: #475569;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   Status badges
   ══════════════════════════════════════════════════════════════ */

.pt-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .2em .65em;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #334155;
  color: #cbd5e1;
}

/* Larger badge specifically inside the packing row right column */
.pt-packing-row__right .pt-badge {
  font-size: .82rem;
  font-weight: 800;
  padding: .3em .85em;
  letter-spacing: .06em;
}

/* Named status colours */
/* NEW = white pill with black text — clearly the *current* status, not an action */
.pt-badge--new            { background: #f1f5f9; color: #0f172a; border: 1.5px solid #cbd5e1; font-weight: 800; }
.pt-badge--picked         { background: #1d4ed8; color: #bfdbfe; }
.pt-badge--printing       { background: #0891b2; color: #cffafe; }
.pt-badge--produced       { background: #7c3aed; color: #ddd6fe; }
.pt-badge--packaged       { background: #0369a1; color: #bae6fd; }
.pt-badge--notified       { display: none; }
.pt-badge--complete       { background: #15803d; color: #dcfce7; }
.pt-badge--shipped        { background: #22c55e; color: #052e16; }
.pt-badge--picked-up      { background: #16a34a; color: #dcfce7; }
.pt-badge--hold           { background: #92400e; color: #fde68a; }
.pt-badge--missing-item   { background: #991b1b; color: #fecaca; }
.pt-badge--missing-imprint{ background: #9f1239; color: #fecdd3; }

/* ══════════════════════════════════════════════════════════════
   Stage summary pills (batch page)
   ══════════════════════════════════════════════════════════════ */

.pt-stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pt-stage-pill {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 99px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.pt-stage-pill__count {
  font-weight: 800;
  color: #f1f5f9;
}

/* ── Stat pills — batch page summary (total / done / by stage) ── */
.pt-stage-pills {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Hero row: Total Items | % Complete | Complete count */
.pt-stat-pills__row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.pt-stat-pills__row--hero {
  padding-bottom: .5rem;
  border-bottom: 1px solid #334155;
}

.pt-stat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: .4rem .65rem;
  min-width: 52px;
}

.pt-stat-pill__num {
  font-size: 1.2rem;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1.1;
}

.pt-stat-pill__lbl {
  font-size: .58rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .1rem;
  white-space: nowrap;
}

/* Colour variants */
.pt-stat-pill--total  { border-color: #475569; }
.pt-stat-pill--total  .pt-stat-pill__num { color: #f1f5f9; }

.pt-stat-pill--pct    { border-color: #1a56db; min-width: 70px; }
.pt-stat-pill--pct    .pt-stat-pill__num { font-size: 1.5rem; color: #60a5fa; }
.pt-stat-pill--pct    .pt-stat-pill__lbl { color: #93c5fd; }

.pt-stat-pill--complete { border-color: #15803d; }
.pt-stat-pill--complete .pt-stat-pill__num { color: #22c55e; }

.pt-stat-pill--done   { border-color: #15803d; }
.pt-stat-pill--done   .pt-stat-pill__num { color: #22c55e; }

.pt-stat-pill--active { border-color: #334155; }
.pt-stat-pill--active .pt-stat-pill__num { color: #60a5fa; }

.pt-stat-pill--new    .pt-stat-pill__num { color: #94a3b8; }

.pt-stat-pill--hold   { border-color: #92400e; }
.pt-stat-pill--hold   .pt-stat-pill__num { color: #fb923c; }

/* ══════════════════════════════════════════════════════════════
   Batch meta
   ══════════════════════════════════════════════════════════════ */

.pt-batch-meta {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.pt-batch-meta__row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: .2rem 0;
  color: #94a3b8;
}
.pt-batch-meta__row strong { color: #f1f5f9; }

/* Due date inline editor on batch page */
.pt-batch-meta__row--due {
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.pt-due-edit {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pt-due-edit__display { color: #f1f5f9; }
.pt-due-edit__none { color: #64748b; font-style: italic; font-weight: 400; }
.pt-due-edit__form {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.pt-due-edit__input {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: .4rem .6rem;
  border: 1.5px solid #64748b;
  border-radius: 6px;
  background: #0f172a;
  color: #f1f5f9;
  min-width: 12rem;
  min-height: 2.4rem;
  cursor: pointer;
  color-scheme: dark;
}
.pt-due-edit__input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .4);
}
/* Make the native calendar icon more visible */
.pt-due-edit__input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  filter: invert(1);
  padding: .2rem;
  margin-left: .25rem;
}
.pt-batch-meta .pt-btn--sm {
  padding: .2rem .55rem;
  font-size: .75rem;
}

/* ── Dist-loc message warning banner ─────────────────────────────────────── */
.pt-dist-loc-warning {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .75rem;
  padding: .6rem .85rem;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 6px;
  font-size: .82rem;
  line-height: 1.4;
  flex-wrap: wrap;
}
.pt-dist-loc-warning__icon { font-size: 1rem; flex-shrink: 0; }
.pt-dist-loc-warning__text { color: #713f12; flex: 1; min-width: 0; }
.pt-dist-loc-warning__text strong { color: #92400e; }
.pt-dist-loc-warning__link {
  color: #1d4ed8;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  font-size: .8rem;
}
.pt-dist-loc-warning__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   Item card
   ══════════════════════════════════════════════════════════════ */

.pt-item-card {
  background: #1e293b;
}

.pt-item-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: .6rem;
}

.pt-item-card__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem .8rem;
  font-size: .82rem;
}

.pt-item-card__meta-label { color: #64748b; }
.pt-item-card__meta-value { color: #e2e8f0; font-weight: 600; }

/* Product photo */
.pt-item-card__photo {
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  text-align: center;
}
.pt-item-card__photo img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

/* Chipply link */
.pt-item-card__chipply-link {
  display: inline-block;
  margin-top: .75rem;
  padding: .45rem 1rem;
  background: #1e3a5f;
  color: #60a5fa;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.pt-item-card__chipply-link:hover { background: #1e40af; color: #fff; }

.pt-item-card__artwork {
  margin-top: .75rem;
  padding: .5rem .75rem;
  background: #0f172a;
  border-radius: 8px;
  font-size: .82rem;
  color: #94a3b8;
}
.pt-item-card__artwork strong { color: #60a5fa; }

.pt-item-card__addl {
  margin-top: .5rem;
  font-size: .8rem;
  color: #64748b;
}
.pt-item-card__addl-line { padding: .15rem 0; }

/* ══════════════════════════════════════════════════════════════
   Status action section
   ══════════════════════════════════════════════════════════════ */

.pt-status-action { text-align: center; }

/* Current status — large and dominant */
.pt-status-action__current-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin-bottom: .85rem;
}
.pt-status-action__current-label {
  font-size: .7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pt-status-action__current-badge .pt-badge {
  font-size: 1.05rem !important;
  padding: .45em 1.1em !important;
  border-radius: 99px !important;
  letter-spacing: .04em;
}

/* Advance button — clearly secondary to the current-status badge */
.pt-btn--advance {
  padding: .55rem 1.25rem;
  font-size: .9rem;
  border-radius: 8px;
  width: 100%;
  opacity: .9;
}

/* Legacy rule kept for other references */
.pt-status-action__current {
  font-size: .9rem;
  color: #94a3b8;
  margin-bottom: .75rem;
}
.pt-status-action__current strong {
  font-size: 1rem;
  color: #f1f5f9;
}

.pt-hold-group {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid #334155;
}
.pt-hold-group__label {
  font-size: .75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.pt-hold-group__btns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.pt-status-picker {
  margin-top: .75rem;
  text-align: left;
}
.pt-status-picker summary {
  cursor: pointer;
  text-align: center;
  width: 100%;
  display: block;
}
.pt-status-picker__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding-top: .75rem;
}

/* ══════════════════════════════════════════════════════════════
   Order actions (notify / shipstation)
   ══════════════════════════════════════════════════════════════ */

.pt-order-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.pt-order-actions__feedback {
  margin-top: .6rem;
  font-size: .82rem;
  color: #94a3b8;
  min-height: 1.2rem;
}

/* ══════════════════════════════════════════════════════════════
   Audit log
   ══════════════════════════════════════════════════════════════ */

.pt-log-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.pt-log-entry {
  background: #1e293b;
  border: 1px solid #1e293b;
  border-left: 3px solid #334155;
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .8rem;
  color: #94a3b8;
}
.pt-log-entry__status {
  font-weight: 700;
  color: #e2e8f0;
  margin-right: .4rem;
}
.pt-log-entry__who {
  color: #60a5fa;
}
.pt-log-entry__time {
  float: right;
  font-size: .72rem;
  color: #475569;
}

/* ══════════════════════════════════════════════════════════════
   Login page
   ══════════════════════════════════════════════════════════════ */

.pt-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pt-login-box {
  width: 100%;
  max-width: 380px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 2rem 1.75rem;
}

.pt-login-box__brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.pt-login-box__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .4rem;
}
.pt-login-box__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}
.pt-login-box__sub {
  font-size: .82rem;
  color: #64748b;
  margin-top: .2rem;
}

.pt-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   Form fields
   ══════════════════════════════════════════════════════════════ */

.pt-field { display: flex; flex-direction: column; gap: .35rem; }

.pt-field__label {
  font-size: .8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pt-field__input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  padding: .65rem .85rem;
  font-size: .95rem;
  width: 100%;
  transition: border-color .15s;
}
.pt-field__input:focus {
  outline: none;
  border-color: #3b82f6;
}
.pt-field__input::placeholder { color: #475569; }

/* ══════════════════════════════════════════════════════════════
   Alerts / flash messages
   ══════════════════════════════════════════════════════════════ */

.pt-alert {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.pt-alert--error   { background: #450a0a; color: #fca5a5; border: 1px solid #7f1d1d; }
.pt-alert--success { background: #052e16; color: #86efac; border: 1px solid #14532d; }
.pt-alert--info    { background: #0c1a2e; color: #93c5fd; border: 1px solid #1e3a5f; }
.pt-alert--warning { background: #431407; color: #fdba74; border: 1px solid #7c2d12; }

/* ══════════════════════════════════════════════════════════════
   Order status (public page)
   ══════════════════════════════════════════════════════════════ */

.pt-topbar--public { justify-content: center; }

.pt-status-lookup { max-width: 420px; margin: 2rem auto; }
.pt-status-form   { display: flex; flex-direction: column; gap: 1rem; }

.pt-status-result { max-width: 480px; margin: 0 auto; }

.pt-status-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.pt-status-card__order-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: .01em;
  margin-bottom: .2rem;
}
.pt-status-card__org {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: .75rem;
}

.pt-status-card__badge-wrap {
  margin: .75rem 0;
}

.pt-status-card__items {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.pt-status-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  padding: .35rem .5rem;
  background: #0f172a;
  border-radius: 6px;
}
.pt-status-card__item--clickable {
  cursor: pointer;
  transition: background .15s, outline .1s;
  outline: 2px solid transparent;
}
.pt-status-card__item--clickable:hover,
.pt-status-card__item--clickable:focus-visible {
  background: #1e3a5f;
  outline-color: #3b82f6;
}
.pt-status-card__item-name { color: #e2e8f0; }
.pt-status-card__item-meta { color: #64748b; font-size: .75rem; }
.pt-status-card__item-right {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.pt-status-card__item-hint {
  font-size: .75rem;
  color: #3b82f6;
  opacity: .7;
}
.pt-status-card__item-hint-note {
  font-size: .72rem;
  color: #475569;
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

/* Order Items section label */
.pt-status-card__items-wrap {
  margin-top: .75rem;
}
.pt-status-card__items-label {
  font-size: .68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .4rem;
}
.pt-status-card__items {
  margin-top: 0;
}

/* Batch + due-date meta rows inside status card */
.pt-status-card__meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: .5rem 0 .6rem;
  padding: .45rem .65rem;
  background: #0f172a;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}
.pt-status-card__meta-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-size: .78rem;
  line-height: 1.5;
}
/* Estimated Due Date row gets extra emphasis */
.pt-status-card__meta-row:has(.pt-status-card__meta-label:first-child) {
  /* base row — no override needed */
}
.pt-status-card__meta-row--due {
  font-size: .88rem;
}
.pt-status-card__meta-row--due .pt-status-card__meta-label {
  color: #94a3b8;
}
.pt-status-card__meta-row--due .pt-status-card__meta-value {
  color: #f1f5f9;
  font-size: .95rem;
  font-weight: 700;
}
.pt-status-card__meta-label {
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.pt-status-card__meta-label::after { content: ":"; }
.pt-status-card__meta-value {
  color: #cbd5e1;
  font-weight: 500;
}

/* Delivery method labelled section */
.pt-status-card__delivery {
  margin: .6rem 0 .2rem;
  padding: .4rem .6rem;
  background: #0f172a;
  border-radius: 6px;
}
.pt-status-card__delivery-label {
  font-size: .68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .15rem;
}
.pt-status-card__delivery-value {
  font-size: .82rem;
  color: #cbd5e1;
}

/* Support ticket button */
.pt-btn--support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  margin-top: 1rem;
  padding: .6rem 1rem;
  background: #1e3a5f;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  color: #93c5fd;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pt-btn--support:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

/* ── Status definition modal ─────────────────────────────────────── */
.pt-status-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.pt-status-modal--open {
  display: flex;
}
.pt-status-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
}
.pt-status-modal__box {
  position: relative;
  z-index: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  width: min(420px, calc(100vw - 2rem));
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: ptModalIn .18s ease;
}
@keyframes ptModalIn {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}
.pt-status-modal__close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: color .1s, background .1s;
}
.pt-status-modal__close:hover {
  color: #f1f5f9;
  background: #334155;
}
.pt-status-modal__badge-wrap {
  margin-bottom: .85rem;
}
.pt-status-modal__badge-wrap .pt-badge {
  font-size: .78rem;
  padding: .28em .75em;
}
.pt-status-modal__desc {
  font-size: .85rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   Status Definitions accordion
   ══════════════════════════════════════════════════════════════ */

.pt-status-defs-section {
  max-width: 520px;
  margin: 1.5rem auto 0;
}

/* Trigger button */
.pt-status-defs__trigger {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  padding: .6rem .9rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #60a5fa;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.pt-status-defs__trigger:hover {
  background: #273549;
  border-color: #3b82f6;
}
.pt-status-defs__trigger[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

/* Chevron icon — rotates when open */
.pt-status-defs__trigger-icon {
  display: inline-block;
  font-size: .65rem;
  transition: transform .2s;
  color: #3b82f6;
}
.pt-status-defs__trigger[aria-expanded="true"] .pt-status-defs__trigger-icon {
  transform: rotate(90deg);
}

/* Collapsible body */
.pt-status-defs__body {
  background: #1e293b;
  border: 1px solid #334155;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  max-height: 2000px;
  transition: max-height .3s ease, padding .3s ease;
  padding: .5rem .5rem .75rem;
}
.pt-status-defs__body[aria-hidden="true"] {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

/* Definitions table */
.pt-status-defs__table {
  width: 100%;
  border-collapse: collapse;
}
.pt-status-defs__row {
  border-bottom: 1px solid #273549;
}
.pt-status-defs__row:last-child {
  border-bottom: none;
}
.pt-status-defs__badge-cell {
  padding: .55rem .6rem .55rem .4rem;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;          /* shrink to content */
}
.pt-status-defs__desc {
  padding: .55rem .4rem;
  font-size: .78rem;
  color: #94a3b8;
  line-height: 1.55;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════
   Placeholder / empty states
   ══════════════════════════════════════════════════════════════ */

.pt-placeholder {
  color: #475569;
  font-style: italic;
  font-size: .875rem;
  padding: .5rem 0;
}

.pt-empty {
  text-align: center;
  color: #475569;
  padding: 2rem 1rem;
  font-size: .875rem;
}

/* ══════════════════════════════════════════════════════════════
   Utility
   ══════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

.pt-spinner {
  display: inline-block;
  width: 1.1em; height: 1.1em;
  border: 2.5px solid #334155;
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: pt-spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   Order detail / packing list page
   ══════════════════════════════════════════════════════════════ */

/* Order meta block (customer name, sales rep, distribution) */
.pt-order-meta {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.pt-order-meta__customer {
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #334155;
}

.pt-order-meta__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: .2rem;
}

.pt-order-meta__org {
  font-size: .82rem;
  color: #94a3b8;
  margin-top: .15rem;
}

.pt-order-meta__email {
  font-size: .78rem;
  color: #60a5fa;
  margin-top: .15rem;
}

.pt-order-meta__row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: .2rem 0;
  color: #94a3b8;
}
.pt-order-meta__row strong { color: #f1f5f9; }

/* Packing list container */
.pt-packing-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-top: .25rem;
}

/* Individual packing row card */
.pt-packing-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .65rem .85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.pt-packing-row:hover {
  border-color: #3b82f6;
  background: #263448;
  text-decoration: none;
}

/* Photos column — product thumb + artwork thumb side by side */
.pt-packing-row__photos {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex-shrink: 0;
}

.pt-packing-row__photo,
.pt-packing-row__art-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #0f172a;
  display: block;
}

.pt-packing-row__art-thumb {
  border: 1px solid #334155;
}

/* Body — seq, name, meta */
.pt-packing-row__body {
  flex: 1;
  min-width: 0;
}

.pt-packing-row__seq {
  font-size: .7rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .1rem;
}

.pt-packing-row__name {
  font-size: .95rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-packing-row__meta {
  font-size: .75rem;
  color: #64748b;
  margin-top: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-packing-row__art {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: .15rem;
}

/* Packing list column header */
.pt-packing-list-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem .85rem .45rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #334155;
  margin-bottom: .35rem;
}
.pt-packing-list-header__main {
  flex: 1;
  min-width: 0;
}
.pt-packing-list-header__status,
.pt-packing-list-header__advance {
  flex-shrink: 0;
  text-align: center;
}
.pt-packing-list-header__status {
  width: 7.5rem;
}
.pt-packing-list-header__advance {
  width: 8.5rem;
}

/* Status + Advance to columns on each row */
.pt-packing-row__status-col,
.pt-packing-row__advance-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  flex-shrink: 0;
  text-align: center;
}
.pt-packing-row__status-col {
  width: 7.5rem;
}
.pt-packing-row__advance-col {
  width: 8.5rem;
}
.pt-packing-row__col-lbl {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #475569;
}
.pt-packing-row__col-lbl--mobile {
  display: none;
}
.pt-packing-row__advance-none {
  color: #475569;
  font-size: .9rem;
  font-weight: 600;
}

/* Legacy right stack (kept for safety) */
.pt-packing-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
  flex-shrink: 0;
  min-width: 100px;
  padding-top: .1rem;
}
.pt-packing-row__status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
}
.pt-packing-row__status-lbl {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #475569;
}

@media (max-width: 720px) {
  .pt-packing-list-header { display: none; }
  .pt-packing-row {
    flex-wrap: wrap;
  }
  .pt-packing-row__body {
    flex: 1 1 100%;
  }
  .pt-packing-row__status-col,
  .pt-packing-row__advance-col {
    width: auto;
    flex: 1 1 40%;
    align-items: flex-start;
    padding-top: .35rem;
  }
  .pt-packing-row__col-lbl--mobile {
    display: block;
  }
}

/* ══════════════════════════════════════════════════════════════
   Breadcrumb navigation (order + item pages)
   ══════════════════════════════════════════════════════════════ */

.pt-topbar--breadcrumb {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .6rem;
  min-height: 68px;
  padding: .75rem 1.25rem;
}
.pt-topbar--breadcrumb .pt-nav-left { order: 1; }
.pt-topbar--breadcrumb .pt-topbar__actions { order: 2; margin-left: auto; }
.pt-topbar--breadcrumb .pt-breadcrumb {
  order: 3;
  flex: 1 0 100%;
  margin-top: .15rem;
}

.pt-breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  font-size: .95rem;        /* up from .8rem */
  min-width: 0;
  overflow: hidden;
}

/* Each breadcrumb link = a solid tappable button */
.pt-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
  background: #1e3a5f;
  border: 1.5px solid #2563eb;
  padding: .45rem .9rem;    /* large tap target */
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .92rem;
  transition: background .12s, border-color .12s;
  flex-shrink: 0;
}
.pt-breadcrumb__link:hover {
  background: #1e40af;
  border-color: #3b82f6;
  text-decoration: none;
}

.pt-breadcrumb__sep {
  color: #475569;
  font-size: 1.1rem;
  flex-shrink: 0;
  padding: 0 .1rem;
}

.pt-breadcrumb__current {
  color: #f1f5f9;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   Order header (label-style, on order detail page)
   ══════════════════════════════════════════════════════════════ */

.pt-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .1rem 0 .5rem;
}

.pt-order-header__left {
  flex: 1;
  min-width: 0;
}

.pt-order-header__num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #60a5fa;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.pt-order-header__customer {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: .2rem;
}

.pt-order-header__rep {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: .15rem;
}

.pt-order-header__right {
  text-align: right;
  flex-shrink: 0;
}

.pt-order-header__dist {
  font-size: 1.55rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  line-height: 1.2;
}

.pt-order-header__dist-lbl {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pt-order-header__dist-select {
  font: inherit;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: .15rem .45rem;
  max-width: 16rem;
  cursor: pointer;
}

.pt-order-header__dist-fb {
  font-size: .7rem;
  font-weight: 600;
  color: #94a3b8;
  min-height: .85rem;
}
.pt-order-header__dist-fb--ok { color: #34d399; }
.pt-order-header__dist-fb--err { color: #f87171; }

.pt-order-header__dist-loc {
  font-size: .95rem;
  font-weight: 500;
  color: #94a3b8;
}

.pt-order-header__org {
  font-size: .82rem;
  color: #94a3b8;
  margin-top: .2rem;
}

/* Additional info questions — shown below customer name in order header */
.pt-order-header__addl {
  margin-top: .35rem;
  padding: .35rem .55rem;
  background: #0f172a;
  border-left: 3px solid #3b82f6;
  border-radius: 0 4px 4px 0;
}

.pt-order-header__addl-line {
  font-size: .78rem;
  color: #93c5fd;
  line-height: 1.5;
}

.pt-order-header__type {
  font-size: .72rem;
  color: #60a5fa;
  margin-top: .2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════════
   Packing row — enhanced layout
   ══════════════════════════════════════════════════════════════ */

.pt-packing-row__img-col {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex-shrink: 0;
}

.pt-packing-row__photo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: #0f172a;
  display: block;
}

.pt-packing-row__photo--empty {
  width: 64px;
  height: 64px;
  background: #0f172a;
  border-radius: 6px;
  border: 1px dashed #334155;
}

.pt-packing-row__art-col {
  display: block;
}

.pt-packing-row__art-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 5px;
  background: #0f172a;
  border: 1px solid #334155;
  display: block;
}

.pt-packing-row__seq-badge {
  font-size: .68rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .15rem;
}

/* scq = Style / Color / Size / Qty — shown bigger than product name */
.pt-packing-row__scq {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .5rem;
  margin-top: .2rem;
}

.pt-packing-row__qty-badge {
  display: inline-block;
  margin-top: .25rem;
  font-size: .78rem;
  color: #cbd5e1;
  background: #1e3a5f;
  border-radius: 99px;
  padding: .1em .6em;
}
.pt-packing-row__qty-badge strong {
  color: #60a5fa;
}

/* ══════════════════════════════════════════════════════════════
   Label-style item card (item detail page)
   ══════════════════════════════════════════════════════════════ */

/* === Header bar === */
.pt-label-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  background: #1e293b;
  border-radius: 10px 10px 0 0;
  padding: .85rem 1rem;
  border-bottom: 2px solid #334155;
  margin: -.85rem -1rem .75rem;   /* bleed to section edges */
}

@media (max-width: 400px) {
  .pt-label-header { flex-direction: column; gap: .4rem; }
  .pt-label-header__right { text-align: left; }
}

.pt-label-header__left { flex: 1; min-width: 0; }

.pt-label-header__order-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #60a5fa;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.pt-label-header__seq {
  font-size: 1.2rem;
  color: #93c5fd;
}

.pt-label-header__customer {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: .25rem;
}

.pt-label-header__rep {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: .15rem;
}

.pt-label-header__right {
  text-align: right;
  flex-shrink: 0;
}

.pt-label-header__qty {
  font-size: .85rem;
  color: #cbd5e1;
  background: #1d4ed8;
  border-radius: 99px;
  padding: .2em .75em;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: .35rem;
}
.pt-label-header__qty strong { color: #fff; font-size: 1rem; }

.pt-label-header__dist {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: .2rem;
}

.pt-label-header__org {
  font-size: .75rem;
  color: #64748b;
  margin-top: .1rem;
}

/* === Product section — stacked: full-width image, then name, then spec grid === */
.pt-label-product {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #334155;
  margin-bottom: .75rem;
}

/* Product image wrap — multi-view (front / back / side) */
.pt-label-product__img-wrap--multi {
  width: 100%;
}

.pt-label-product__img-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.pt-label-product__img-row--1 .pt-label-product__img-link {
  flex: 1;
}
.pt-label-product__img-row--2 .pt-label-product__img-link,
.pt-label-product__img-row--3 .pt-label-product__img-link {
  flex: 1;
  min-width: 0;
}

/* Image link overrides for multi-view: remove fixed max-height, let flex shrink */
.pt-label-product__img-row .pt-label-product__img-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #1e293b;
  max-height: none;
}

.pt-label-product__img-row .pt-label-product__img-link img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* Small label badge: "Front" / "Back" / "Side" */
.pt-product-img-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: .62rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .06em;
  padding: 3px 0 2px;
  background: #0f172a;
  text-transform: uppercase;
}

.pt-label-product__img-wrap {
  width: 100%;
}

.pt-label-product__img-link,
.pt-label-product__img-empty {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  text-align: center;
}

.pt-label-product__img-link img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.pt-label-product__img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: #475569;
  border: 1px dashed #334155;
  min-height: 80px;
}

.pt-label-product__details {
  flex: 1;
  min-width: 0;
}

.pt-label-product__style {
  font-size: .82rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: .2rem;
}

.pt-label-product__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: .4rem;
}

.pt-label-product__color-chip {
  display: inline-block;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 99px;
  padding: .15em .65em;
  font-size: .8rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: .5rem;
}

.pt-label-product__size-qty {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: .35rem;
}

.pt-label-product__size {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
}

.pt-label-product__x {
  font-size: .9rem;
  color: #64748b;
}

.pt-label-product__qty {
  font-size: 1.35rem;
  font-weight: 800;
  color: #22c55e;
}

.pt-label-product__process {
  font-size: .78rem;
  color: #60a5fa;
  font-weight: 600;
  margin-top: .25rem;
  border-left: 2px solid #1d4ed8;
  padding-left: .5rem;
}

/* === Personalization === */
.pt-label-options {
  background: #0f172a;
  border-radius: 6px;
  padding: .55rem .75rem;
  margin-bottom: .75rem;
  border-left: 3px solid #7c3aed;
}

.pt-label-options__label {
  font-size: .65rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .25rem;
}

.pt-label-addl-line {
  font-size: .85rem;
  color: #e2e8f0;
  padding: .1rem 0;
}

/* === Decoration Details section === */
.pt-label-decoration {
  background: #0f172a;
  border-radius: 8px;
  padding: .65rem .85rem;
  margin-bottom: .75rem;
}

.pt-label-decoration__heading {
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.pt-label-decoration__row {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.pt-label-art-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  border: 1px solid #334155;
}

.pt-label-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pt-label-decoration__info {
  flex: 1;
  min-width: 0;
}

.pt-label-decoration__name {
  font-size: .9rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: .2rem;
}

.pt-label-decoration__id {
  font-size: .75rem;
  color: #64748b;
}

.pt-label-field-lbl {
  font-size: .68rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: .25rem;
}

/* === Chipply link === */
.pt-label-chipply-link {
  display: inline-block;
  margin-top: .25rem;
  padding: .45rem 1rem;
  background: #1e3a5f;
  color: #60a5fa;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.pt-label-chipply-link:hover {
  background: #1e40af;
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   Packing row — Round 4: big white Style/Color/Size/Qty spans
   ══════════════════════════════════════════════════════════════ */

/* Product name is secondary — smaller, muted */
.pt-packing-row__name {
  font-size: .78rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
}

/* Style, Color, Size — larger and white, primary visual weight */
.pt-packing-row__style,
.pt-packing-row__color,
.pt-packing-row__size {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

/* Separator dots between style/color/size */
.pt-packing-row__style::after,
.pt-packing-row__color::after {
  content: ' ·';
  color: #475569;
  font-weight: 400;
}

/* Qty — biggest, accent green */
.pt-packing-row__qty {
  font-size: 1.15rem;
  font-weight: 900;
  color: #22c55e;
  line-height: 1.2;
}

/* Inline advance-to-next-status button on packing row */
.pt-packing-advance {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #16a34a;
  color: #dcfce7;
  border: none;
  border-radius: 8px;
  font-size: .78rem;    /* slightly larger than before */
  font-weight: 800;
  padding: .45rem .85rem; /* more padding = bigger tap target */
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.pt-packing-advance:hover:not(:disabled) {
  background: #15803d;
  transform: translateY(-1px);
}
.pt-packing-advance:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   Status action strip — top position (item detail page)
   ══════════════════════════════════════════════════════════════ */

.pt-status-action--top {
  background: #0f172a;
  border-bottom: 2px solid #22c55e;
  text-align: left;
}

.pt-status-action__top-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.pt-status-action--top .pt-status-action__current {
  margin-bottom: 0;
  flex: 1;
  min-width: 120px;
  font-size: 1.1rem;
}

.pt-status-action--top .pt-status-action__current strong,
.pt-status-action--top #pt-current-status .pt-badge {
  font-size: 1.25rem;
  padding: .3em .8em;
}

.pt-status-action--top #pt-advance-btn {
  flex-shrink: 0;
  font-size: .95rem;
  padding: .55rem 1rem;
}

/* ══════════════════════════════════════════════════════════════
   Two-column spec grid (item detail — Style/Color/Size in left,
   Org/Customer/SalesRep/Distribution in right)
   ══════════════════════════════════════════════════════════════ */

.pt-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1rem;
  margin-top: .5rem;
}

.pt-spec-col {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.pt-spec-row {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}

.pt-spec-lbl {
  font-size: .62rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pt-spec-val {
  font-size: .88rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.25;
}

/* Qty value — make it pop */
.pt-spec-val--qty {
  font-size: 1.3rem;
  font-weight: 900;
  color: #22c55e;
}

@media (max-width: 360px) {
  .pt-spec-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   Artwork two-column grid (item detail — decoration section)
   ══════════════════════════════════════════════════════════════ */

.pt-art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .5rem;
}

@media (max-width: 360px) {
  .pt-art-grid { grid-template-columns: 1fr; }
}

/* Individual artwork card: name above thumbnail */
.pt-art-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}

.pt-art-card__name {
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.25;
}

.pt-art-card__thumb-link {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #334155;
  transition: border-color .15s, transform .12s;
}
.pt-art-card__thumb-link:hover {
  border-color: #60a5fa;
  transform: scale(1.03);
}
.pt-art-card__thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pt-art-card__id {
  font-size: .68rem;
  color: #475569;
  margin-top: .1rem;
}

/* Artwork color line */
.pt-art-card__color {
  font-size: .68rem;
  color: #94a3b8;
  margin-top: .05rem;
}

/* Artwork location badge — pill above the artwork name */
.pt-art-card__location {
  margin-bottom: .15rem;
}
.pt-art-card__location-badge {
  display: inline-block;
  background: #1d4ed8;
  color: #bfdbfe;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   Lightbox overlay
   ══════════════════════════════════════════════════════════════ */

#pt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#pt-lightbox.pt-lightbox--open {
  display: flex;
}

.pt-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pt-lightbox__box {
  position: relative;
  z-index: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1rem;
  max-width: min(90vw, 560px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  overflow: hidden;
}

.pt-lightbox__img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.pt-lightbox__close {
  position: absolute;
  top: .5rem;
  right: .6rem;
  background: #334155;
  color: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.pt-lightbox__close:hover { background: #475569; }

.pt-lightbox__caption {
  font-size: .8rem;
  color: #94a3b8;
  text-align: center;
  max-width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   Order header — sales rep (right column, with label)
   ══════════════════════════════════════════════════════════════ */

.pt-order-header__sales-rep {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: .35rem;
}

.pt-order-header__sales-rep-lbl {
  font-size: .62rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: .2rem;
}

/* ══════════════════════════════════════════════════════════════
   Batch page — order rows (replaces pt-list-row for orders)
   ══════════════════════════════════════════════════════════════ */

.pt-order-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
}
.pt-order-row:hover {
  border-color: #3b82f6;
  background: #263448;
  text-decoration: none;
}

.pt-order-row__main {
  flex: 1;
  min-width: 0;
}

/* Order number — blue link colour */
.pt-order-row__num {
  font-size: .8rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: .02em;
  margin-bottom: .1rem;
}

/* Customer name — large white, primary visual weight */
.pt-order-row__customer {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Org name — muted, secondary */
.pt-order-row__org {
  font-size: .78rem;
  color: #64748b;
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Distribution */
.pt-order-row__dist {
  font-size: 1.05rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right column — total count + status pills */
.pt-order-row__right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}

.pt-order-row__total {
  font-size: .75rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.pt-order-row__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  justify-content: flex-end;
  max-width: 130px;
}

/* ══════════════════════════════════════════════════════════════
   Hold note — textarea container (item detail page)
   ══════════════════════════════════════════════════════════════ */

.pt-hold-note {
  margin-top: .75rem;
  padding: .75rem;
  background: #1a0a00;
  border: 1px solid #92400e;
  border-radius: 8px;
}

.pt-hold-note__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.pt-hold-note__required {
  color: #f87171;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.pt-hold-note__input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f1f5f9;
  padding: .55rem .75rem;
  font-size: .9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  transition: border-color .15s;
}

.pt-hold-note__input:focus {
  outline: none;
  border-color: #fb923c;
}

.pt-hold-note__input--error {
  border-color: #dc2626 !important;
  animation: pt-shake .25s ease;
}

@keyframes pt-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.pt-hold-note__actions {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}

/* ══════════════════════════════════════════════════════════════
   Hold note — callout above item card (item detail page)
   ══════════════════════════════════════════════════════════════ */

.pt-item-hold-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0 1rem .25rem;
  padding: .65rem .85rem;
  background: #1a0a00;
  border: 1px solid #92400e;
  border-left: 4px solid #fb923c;
  border-radius: 8px;
  font-size: .88rem;
  color: #fdba74;
  line-height: 1.4;
}

.pt-item-hold-note__icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: .05rem;
}

.pt-item-hold-note__text {
  flex: 1;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   Packing list row — hold note inline display
   ══════════════════════════════════════════════════════════════ */

.pt-packing-row__note {
  font-size: .75rem;
  color: #fb923c;
  margin-top: .25rem;
  line-height: 1.35;
}

/* Left border highlight when row has a note */
.pt-packing-row--has-note {
  border-left: 3px solid #fb923c;
}

/* Additional info questions — shown on packing list rows */
.pt-packing-row__addl {
  font-size: .72rem;
  color: #60a5fa;
  margin-top: .2rem;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   Note indicator badge — batch overview order rows
   ══════════════════════════════════════════════════════════════ */

.pt-note-indicator {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #fb923c;
  background: #1a0a00;
  border: 1px solid #92400e;
  border-radius: 99px;
  padding: .15em .55em;
  white-space: nowrap;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════
   Order meta actions bar (preview email button row)
   ══════════════════════════════════════════════════════════════ */

.pt-order-meta__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  padding-top: .6rem;
  border-top: 1px solid #334155;
}

/* ══════════════════════════════════════════════════════════════
   Decoration / status filter bar
   ══════════════════════════════════════════════════════════════ */

.pt-filter-bar {
  margin-bottom: .5rem;
}

.pt-filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: .5rem .75rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
}

.pt-filter-bar__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}

/* Forces a group onto its own full-width row within the flex inner */
.pt-filter-bar__group--full-row {
  width: 100%;
}

.pt-filter-bar__label {
  font-size: .72rem;
  font-weight: 700;
  color: #f1f5f9;          /* white — was #64748b */
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: .15rem;
  white-space: nowrap;
}

/* Chips */
.pt-chip {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.pt-chip:hover { background: #1e293b; border-color: #64748b; color: #e2e8f0; }
.pt-chip--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.pt-chip--status.pt-chip--active {
  background: #0e7490;
  border-color: #0e7490;
}
/* Decoration Type filter chip — amber to distinguish from Process Name (blue) and Status (teal) */
.pt-chip--type.pt-chip--active {
  background: #b45309;
  border-color: #b45309;
  color: #fef3c7;
}

/* Distribution chip — violet/purple */
.pt-chip--dist.pt-chip--active {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ede9fe;
}

/* ── Process Name group collapse/expand ─────────────────────────────── */
.pt-filter-bar__group--collapsible {
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}

.pt-filter-bar__chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  transition: max-height .25s ease;
}

.pt-filter-bar__expand-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #60a5fa;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  cursor: pointer;
  margin-top: .15rem;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.pt-filter-bar__expand-btn:hover {
  background: #1e293b;
  border-color: #3b82f6;
}

/* ══════════════════════════════════════════════════════════════
   Bulk advance toolbar
   ══════════════════════════════════════════════════════════════ */

.pt-bulk-bar:empty { display: none; }

.pt-bulk-bar__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: .6rem .75rem;
  margin-bottom: .5rem;
  background: #0f2a1a;
  border: 1px solid #15803d;
  border-radius: 8px;
}

.pt-bulk-bar__desc {
  font-size: .8rem;
  color: #86efac;
  white-space: nowrap;
}

/* ShipStation push button */
.pt-btn--ss {
  background: #0e7490;
  color: #fff;
}
.pt-btn--ss:hover:not(:disabled) { background: #0c6781; }
.pt-btn--ss:disabled             { opacity: .65; cursor: default; }
.pt-btn--ss.pt-btn--ss-ok        { background: #15803d; }

/* Re-push variant — muted teal with dashed border to signal caution */
.pt-btn--ss-repush {
  background: #164e63;
  border: 1.5px dashed #0e7490;
  color: #a5f3fc;
  font-size: .75rem;
}
.pt-btn--ss-repush:hover:not(:disabled) {
  background: #0e7490;
  color: #fff;
}

/* "Send Order Tracking Emails" bulk button */
.pt-btn--tracking {
  background: #7c3aed;
  color: #fff;
}
.pt-btn--tracking:hover:not(:disabled) { background: #6d28d9; }
.pt-btn--tracking:disabled             { opacity: .65; cursor: default; }


/* ── ShipStation pushed badge on order rows ─────────────────────────── */
.pt-ss-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #a5f3fc;
  background: #0c4a6e;
  border: 1px solid #0e7490;
  border-radius: 99px;
  padding: .15em .6em;
  white-space: nowrap;
  vertical-align: middle;
}

/* Feedback text beside the SS push button */
.pt-ss-push-feedback {
  font-size: .78rem;
  color: #94a3b8;
}
.pt-ss-push-feedback--ok  { color: #4ade80; }
.pt-ss-push-feedback--err { color: #f87171; }

/* ── Tracking email sent badge on order rows ────────────────────────── */
.pt-tracking-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #d8b4fe;
  background: #3b0764;
  border: 1px solid #7c3aed;
  border-radius: 99px;
  padding: .15em .6em;
  white-space: nowrap;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════
   Barcode scanner toast notification
   ══════════════════════════════════════════════════════════════ */

#pt-scan-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1.5rem);
  z-index: 99999;
  background: #0f2a1a;
  border: 1.5px solid #22c55e;
  border-radius: 10px;
  color: #86efac;
  font-size: 1rem;
  font-weight: 700;
  padding: .75rem 1.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

#pt-scan-toast.pt-scan-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#pt-scan-toast.pt-scan-toast--hide {
  opacity: 0;
  transform: translateX(-50%) translateY(1.5rem);
}

/* Error variant — amber/red instead of green */
#pt-scan-toast.pt-scan-toast--error {
  background: #2d0a0a;
  border-color: #ef4444;
  color: #fca5a5;
}

/* Full-screen backdrop */
.pt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

/* Dialog box */
#pt-email-preview-modal.pt-modal-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}
#pt-email-preview-modal .pt-modal {
  width: min(1100px, 96vw) !important;
  max-width: 1100px !important;
  min-width: min(760px, 96vw) !important;
  height: 90vh !important;
  max-height: 90vh !important;
  min-height: 0 !important;
}
#pt-email-preview-modal .pt-modal__body {
  overflow: auto !important;
  flex: 1 1 auto !important;
}
#pt-email-preview-modal .pt-modal__iframe-wrap,
#pt-email-preview-modal .pt-modal__iframe {
  width: 100% !important;
  min-width: 700px !important;
  height: 72vh !important;
  min-height: 520px !important;
  max-height: none !important;
}
#pt-email-preview-modal .pt-modal__iframe-wrap {
  overflow: auto !important;
}
.pt-modal {
  position: relative;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

/* Header row: title + close button */
.pt-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1.1rem .75rem;
  border-bottom: 1px solid #334155;
  background: #0f172a;
}

.pt-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pt-modal__meta {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: .2rem;
  line-height: 1.4;
}

.pt-modal__meta strong { color: #cbd5e1; }

.pt-modal__to {
  color: #60a5fa;
}

.pt-modal__close {
  flex-shrink: 0;
  background: #334155;
  color: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.pt-modal__close:hover { background: #475569; }

/* Body — iframe container */
.pt-modal__body {
  flex: 1;
  background: #f8fafc;
}

.pt-modal__body--error {
  background: #450a0a;
}

.pt-modal__iframe-wrap {
  width: 100%;
  min-height: 480px;
  max-height: 70vh;
}

.pt-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  background: #fff;
}

/* Footer row: template badge + close */
.pt-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem 1.1rem;
  border-top: 1px solid #334155;
  background: #0f172a;
}

.pt-modal__template-badge {
  font-size: .72rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .2em .65em;
  white-space: nowrap;
}

.pt-modal__template-badge--builtin {
  color: #94a3b8;
  background: #1e293b;
  border: 1px solid #334155;
}

.pt-modal__template-badge--custom {
  color: #86efac;
  background: #052e16;
  border: 1px solid #14532d;
}

/* ══════════════════════════════════════════════════════════════
   Modal template selector bar
   ══════════════════════════════════════════════════════════════ */

.pt-modal__tpl-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: #162032;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
}

.pt-modal__tpl-label {
  font-size: .78rem;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}

.pt-modal__tpl-select {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f1f5f9;
  font-size: .82rem;
  padding: .3rem .6rem;
  flex: 1;
  min-width: 160px;
}

/* Modal footer action row */
.pt-modal__footer-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.pt-modal__send-feedback {
  font-size: .78rem;
  font-weight: 600;
}

.pt-modal__send-feedback--ok  { color: #86efac; }
.pt-modal__send-feedback--err { color: #fca5a5; }

/* ══════════════════════════════════════════════════════════════
   Artwork card — name + file above thumbnail (item detail page)
   Classes used by renderCard() in pt-frontend.js:
     .pt-art-grid, .pt-art-card, .pt-art-card__name,
     .pt-art-card__file, .pt-art-card__thumb-link
   ══════════════════════════════════════════════════════════════ */

/* Grid wrapper — flex row, wraps if multiple art cards */
.pt-art-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Individual artwork card — column layout: name → file → thumb */
.pt-art-card {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  max-width: 180px;
}

/* Artwork name line — primary text */
.pt-art-card__name {
  font-size: .82rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
  word-break: break-word;
}

/* Production file name line */
.pt-art-card__file {
  font-size: .72rem;
  color: #64748b;
  margin-bottom: .25rem;
  word-break: break-all;
}

/* Clickable thumbnail link */
.pt-art-card__thumb-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #334155;
  max-width: 120px;
  transition: border-color .15s;
}
.pt-art-card__thumb-link:hover {
  border-color: #3b82f6;
}
.pt-art-card__thumb-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════
   Production Dashboard  (#pt-dashboard)
   ══════════════════════════════════════════════════════════════ */

/* ── Decoration type filter section ────────────────────────────── */
.pt-dash-filter-section {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.pt-dash-filter-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}

.pt-dash-filter-label {
  font-size: .8rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pt-dash-process-chips {
  gap: .4rem;
  flex-wrap: wrap;
}


  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .28em .75em;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--chip-color, #64748b);
  background: transparent;
  color: var(--chip-color, #94a3b8);
  cursor: pointer;
  transition: background .14s, color .14s;
  white-space: nowrap;
}
.pt-filter-chip--active {
  background: var(--chip-color, #64748b);
  color: #fff;
}
.pt-filter-chip:hover:not(.pt-filter-chip--active) {
  background: color-mix(in srgb, var(--chip-color, #64748b) 18%, transparent);
}

/* ── Item list thumbnail ─────────────────────────────────────────── */
.pt-dash-item-list__thumb {
  width: 48px;
  text-align: center;
  padding: .25rem .3rem;
}
.pt-dash-item-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #334155;
  background: #fff;
  vertical-align: middle;
  display: block;
  margin: 0 auto;
}
.pt-dash-item-thumb--empty {
  display: block;
  width: 40px;
  height: 40px;
}

/* ── KPI row ────────────────────────────────────────────────────── */
.pt-dash-kpi-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.pt-dash-kpi {
  flex: 1 1 120px;
  min-width: 100px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .85rem 1rem;
  text-align: center;
  transition: border-color .15s;
}

.pt-dash-kpi__value {
  font-size: 2rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.1;
}

.pt-dash-kpi__label {
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .25rem;
}

/* Contextual colour states applied by JS */
.pt-dash-kpi--danger {
  border-color: #ef4444;
  background: #1c0a0a;
}
.pt-dash-kpi--danger .pt-dash-kpi__value { color: #f87171; }

.pt-dash-kpi--warning {
  border-color: #f59e0b;
  background: #1c1200;
}
.pt-dash-kpi--warning .pt-dash-kpi__value { color: #fbbf24; }

/* ── Charts row ─────────────────────────────────────────────────── */
.pt-dash-charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}

.pt-dash-chart-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Wide bar chart spans full width when it wraps alone */
.pt-dash-chart-card--wide {
  grid-column: 1 / -1;
}

.pt-dash-chart-card__title {
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .65rem 1rem .4rem;
  border-bottom: 1px solid #334155;
}

.pt-dash-chart-card__body {
  padding: .75rem 1rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 300px;
}

/* Make Chart.js canvases respect the card bounds */
.pt-dash-chart-card__body canvas {
  max-width: 100%;
  max-height: 260px;
}

/* ── Item list table ────────────────────────────────────────────── */
.pt-dash-item-list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pt-dash-item-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.pt-dash-item-table thead tr {
  background: #0f172a;
  border-bottom: 2px solid #334155;
}

.pt-dash-item-table th {
  padding: .5rem .75rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pt-dash-item-table tbody tr {
  border-bottom: 1px solid #1e293b;
  transition: background .1s;
}
.pt-dash-item-table tbody tr:hover {
  background: #1a2535;
}

.pt-dash-item-table td {
  padding: .5rem .75rem;
  vertical-align: middle;
  color: #cbd5e1;
}

/* Due-date group heading rows */
.pt-dash-group-header td {
  background: #0f172a;
  border-top: 2px solid #334155;
  border-bottom: 1px solid #1e293b;
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem .75rem;
}
.pt-dash-group-header--overdue td {
  background: #1c0a0a;
  border-color: #ef4444;
  color: #f87171;
}
.pt-dash-group-header--today td {
  background: #1c1200;
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Column-specific widths */
.pt-dash-item-list__product { min-width: 180px; }
.pt-dash-item-list__qty     { width: 3.5rem; text-align: center; }
.pt-dash-item-list__process { min-width: 130px; }
.pt-dash-item-list__status  { white-space: nowrap; }
.pt-dash-item-list__order   { min-width: 140px; }
.pt-dash-item-list__batch   { min-width: 110px; }

/* Product name + meta */
.pt-item-name {
  font-weight: 600;
  color: #e2e8f0;
}
.pt-item-meta {
  font-size: .75rem;
  color: #64748b;
}

/* MIXED decoration badge */
.pt-dash-mixed-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  color: #fde68a;
  background: #292200;
  border: 1px solid #b45309;
  border-radius: 4px;
  padding: .1em .45em;
  white-space: nowrap;
}

/* Muted link variant */
.pt-link--muted {
  color: #64748b;
  font-size: .78rem;
}
.pt-link--muted:hover { color: #94a3b8; }

/* ── Responsive tweaks ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .pt-dash-kpi__value { font-size: 1.5rem; }
  .pt-dash-charts-row { grid-template-columns: 1fr; }
  .pt-dash-chart-card--wide { grid-column: auto; }
  .pt-dash-chart-card__body { min-height: 180px; max-height: 220px; }
  .pt-dash-item-list__batch  { display: none; } /* hide batch column on very small screens */
}

/* ══════════════════════════════════════════════════════════════
   Settings pages — shared components
   (Delivery Location Messages + Distribution Message Blocks)
   ══════════════════════════════════════════════════════════════ */

/* Info banner */
.pt-settings-info {
  background: #1e293b;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
}
.pt-settings-info__text {
  color: #94a3b8;
  font-size: .875rem;
  line-height: 1.6;
  margin: 0;
}
.pt-settings-info__placeholders {
  margin-top: .75rem;
}
.pt-settings-info__placeholders summary {
  cursor: pointer;
  font-size: .8rem;
  color: #60a5fa;
  font-weight: 600;
  user-select: none;
}
.pt-settings-info__placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}
.pt-settings-info__placeholder-list code {
  background: #0f172a;
  border: 1px solid #334155;
  padding: .15em .45em;
  border-radius: 4px;
  font-size: .75rem;
  color: #7dd3fc;
  font-family: monospace;
}

/* Save / error status bar */
.pt-settings-save-status {
  display: none;
  padding: .6rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.pt-settings-save-status--ok {
  background: #052e16;
  border: 1px solid #166534;
  color: #4ade80;
}
.pt-settings-save-status--error {
  background: #450a0a;
  border: 1px solid #991b1b;
  color: #fca5a5;
}

/* Modal — settings pages (pt-settings-modal) */
.pt-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.pt-settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}
.pt-settings-modal__box {
  position: relative;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  width: min(92vw, 480px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
}
.pt-settings-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.pt-settings-modal__actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: .25rem;
}

/* pt-field — form field with label + input + hint */
.pt-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.pt-field__label {
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pt-field__required { color: #ef4444; }
.pt-field__hint {
  font-size: .75rem;
  color: #64748b;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.pt-field__default-preview {
  margin-top: .35rem;
}
.pt-field__default-preview summary {
  cursor: pointer;
  font-size: .75rem;
  color: #60a5fa;
  user-select: none;
}
.pt-field__default-text {
  margin-top: .4rem;
  padding: .5rem .75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  font-size: .78rem;
  color: #64748b;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* pt-input — shared text input / textarea style */
.pt-input {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: .875rem;
  padding: .55rem .75rem;
  width: 100%;
  font-family: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
}
.pt-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.pt-input::placeholder { color: #475569; }
textarea.pt-input { resize: vertical; line-height: 1.5; }

/* ── Delivery Location Messages page ────────────────────────── */
.pt-dloc-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pt-dloc-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pt-dloc-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.pt-dloc-card__org {
  font-weight: 700;
  color: #f1f5f9;
  font-size: .9rem;
}
.pt-dloc-card__sep {
  color: #475569;
  font-size: 1rem;
}
.pt-dloc-card__loc {
  color: #94a3b8;
  font-size: .875rem;
}
.pt-dloc-card__actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* ── Distribution Message Blocks page ───────────────────────── */
.pt-dmsg-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pt-dmsg-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pt-dmsg-card__header {
  border-bottom: 1px solid #334155;
  padding-bottom: .75rem;
}
.pt-dmsg-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.pt-dmsg-card__actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .pt-dloc-card__actions,
  .pt-dmsg-card__actions { flex-direction: column; }
  .pt-dloc-card__actions .pt-btn,
  .pt-dmsg-card__actions .pt-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FINANCE PAGE
   ============================================================ */

/* --- Import section ---------------------------------------- */
.pt-fin-import-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Two-column layout: description left, controls right */
.pt-fin-import-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pt-fin-import-left {
  flex: 1 1 240px;
}

.pt-fin-import-title {
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin: 0 0 .4rem;
}

.pt-fin-import-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  min-width: 220px;
}

/* Last transaction date display */
.pt-fin-last-txn {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: #94a3b8;
  white-space: nowrap;
}
.pt-fin-last-txn__label {
  font-weight: 500;
}
.pt-fin-last-txn__date {
  font-weight: 700;
  color: #60a5fa;
}

/* File picker row */
.pt-fin-import-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pt-fin-file-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  white-space: nowrap;
}

.pt-fin-chosen-file {
  font-size: .78rem;
  color: #64748b;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-fin-replace-wrap {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
}
.pt-fin-replace-wrap input[type="checkbox"] {
  accent-color: #ef4444;
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .pt-fin-import-row    { flex-direction: column; gap: .75rem; }
  .pt-fin-import-right  { align-items: flex-start; width: 100%; }
  .pt-fin-import-controls { justify-content: flex-start; }
}



.pt-fin-import-status {
  font-size: .8rem;
  padding: .5rem .75rem;
  border-radius: 4px;
  display: none;
  margin-top: .5rem;
}
.pt-fin-import-status--ok {
  display: block;
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.25);
}
.pt-fin-import-status--error {
  display: block;
  background: rgba(239,68,68,.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.25);
}
.pt-fin-import-status--loading {
  display: block;
  background: rgba(148,163,184,.08);
  color: #94a3b8;
  border: 1px solid #334155;
}

/* --- KPI row ---------------------------------------------- */
.pt-fin-kpi-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pt-fin-kpi {
  flex: 1 1 130px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: .9rem 1rem;
  min-width: 110px;
}
.pt-fin-kpi__label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: .3rem;
}
.pt-fin-kpi__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.1;
}
.pt-fin-kpi--fundraising .pt-fin-kpi__value { color: #4ade80; }
.pt-fin-kpi--balance     .pt-fin-kpi__value { color: #fb923c; }
.pt-fin-kpi--collected   .pt-fin-kpi__value { color: #60a5fa; }
.pt-fin-kpi--paid        .pt-fin-kpi__value { color: #a78bfa; }
.pt-fin-kpi--fees        .pt-fin-kpi__value { color: #f472b6; }
.pt-fin-kpi__sub {
  font-size: .68rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: .2rem;
  line-height: 1.2;
}
.pt-fin-kpi--fees .pt-fin-kpi__sub { color: #f9a8d4; opacity: .9; }

/* --- Store table ------------------------------------------- */
.pt-fin-table-wrap {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.pt-fin-table-wrap h2 {
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin: 0;
  padding: .9rem 1rem;
  border-bottom: 1px solid #334155;
}
.pt-fin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pt-fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.pt-fin-table th {
  background: #0f172a;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
  padding: .5rem .75rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #334155;
}
.pt-fin-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  vertical-align: middle;
  white-space: nowrap;
}
.pt-fin-table tbody tr:hover td { background: rgba(255,255,255,.03); }
.pt-fin-table tbody tr:last-child td { border-bottom: none; }

/* Column-specific styles */
.pt-fin-store-name {
  font-weight: 600;
  color: #e2e8f0;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-fin-store-id {
  font-size: .7rem;
  color: #475569;
  display: block;
  font-weight: 400;
}
.pt-fin-num   { text-align: right; font-variant-numeric: tabular-nums; }
.pt-fin-fees  { text-align: right; font-variant-numeric: tabular-nums; color: #ef4444; }
.pt-fin-date  { color: #64748b; font-size: .75rem; }
.pt-fin-mono  { font-family: 'Courier New', Courier, monospace; font-size: .78rem; }

/* Fundraising / paid / balance column highlights */
.pt-fin-th--fundraising,
.pt-fin-td--fundraising { color: #4ade80; text-align: right; font-variant-numeric: tabular-nums; }
.pt-fin-th--paid,
.pt-fin-td--paid        { color: #a78bfa; text-align: right; font-variant-numeric: tabular-nums; }
.pt-fin-th--balance     { text-align: right; }

/* Balance states */
.pt-fin-balance--owing { color: #fb923c; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pt-fin-balance--over  { color: #4ade80; text-align: right; font-variant-numeric: tabular-nums; }
.pt-fin-balance--zero  { color: #475569; text-align: right; font-variant-numeric: tabular-nums; }

/* Transaction type badge */
.pt-fin-txn-type {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 3px;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #334155;
  color: #94a3b8;
}
.pt-fin-txn-type--sale     { background: rgba(96,165,250,.15);  color: #60a5fa; }
.pt-fin-txn-type--refund   { background: rgba(239,68,68,.15);   color: #f87171; }
.pt-fin-txn-type--transfer { background: rgba(167,139,250,.15); color: #a78bfa; }
.pt-fin-txn-type--fee      { background: rgba(251,146,60,.15);  color: #fb923c; }

/* Empty state */
.pt-fin-zero {
  text-align: center;
  color: #475569;
  font-size: .85rem;
  padding: 2rem 1rem;
}

/* --- Transaction drill-down panel ------------------------- */
.pt-fin-txn-panel {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.pt-fin-txn-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid #334155;
  background: #1e293b;
}
.pt-fin-txn-panel__title {
  font-size: .85rem;
  font-weight: 600;
  color: #e2e8f0;
}
.pt-fin-txn-panel__close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 .25rem;
}
.pt-fin-txn-panel__close:hover { color: #e2e8f0; }

/* --- Payout history modal --------------------------------- */
.pt-settings-modal__box--wide {
  max-width: 680px;
}
.pt-fin-payout-modal__store {
  font-size: .8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.pt-fin-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 340px;
  overflow-y: auto;
}
.pt-fin-history-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .25rem;
  border-bottom: 1px solid #1e293b;
  font-size: .82rem;
  color: #cbd5e1;
}
.pt-fin-history-list li:last-child { border-bottom: none; }
.pt-fin-history-list__date  { color: #64748b; white-space: nowrap; min-width: 90px; }
.pt-fin-history-list__amt   { font-weight: 700; color: #a78bfa; min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.pt-fin-history-list__notes { flex: 1; color: #94a3b8; font-style: italic; }
.pt-fin-history-list__del   {
  background: none;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 3px;
  font-size: .7rem;
  padding: .15rem .4rem;
  cursor: pointer;
  white-space: nowrap;
}
.pt-fin-history-list__del:hover { background: rgba(239,68,68,.15); }
.pt-fin-history-empty {
  text-align: center;
  color: #475569;
  font-size: .82rem;
  padding: 1.5rem 0;
}

/* --- Success button ---------------------------------------- */
.pt-btn--success {
  background: #16a34a;
  color: #fff;
  border: none;
}
.pt-btn--success:hover { background: #15803d; }

/* --- Responsive tweaks ------------------------------------ */
@media (max-width: 700px) {
  .pt-fin-kpi { flex: 1 1 calc(50% - .375rem); min-width: 0; }
  .pt-fin-kpi__value { font-size: 1.1rem; }
  .pt-fin-table th,
  .pt-fin-table td { padding: .4rem .5rem; }
}
@media (max-width: 480px) {
  .pt-fin-kpi { flex: 1 1 100%; }
}

/* --- Finance search + alpha filter row -------------------- */
.pt-fin-filter-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: .75rem;
}
.pt-fin-search-wrap { width: 100%; }
.pt-fin-search {
  width: 100%;
  box-sizing: border-box;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .55rem .8rem;
  font-size: .875rem;
}
.pt-fin-search:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96,165,250,.2);
}
.pt-fin-search::placeholder { color: #475569; }

.pt-fin-alpha-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pt-fin-alpha-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 4px;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.pt-fin-alpha-btn:hover { background: #334155; color: #e2e8f0; }
.pt-fin-alpha-btn--active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

/* Sortable column headers */
.pt-fin-th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.pt-fin-th-sort:hover {
  color: #e2e8f0;
  background: #1e293b;
}
.pt-fin-th--sorted {
  color: #e2e8f0;
}
.pt-fin-sort-arrow {
  font-size: .65rem;
  margin-left: .25rem;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}
.pt-fin-sort-arrow--idle  { color: #334155; }
.pt-fin-sort-arrow--asc   { color: #60a5fa; }
.pt-fin-sort-arrow--desc  { color: #60a5fa; }

/* Store name as link */
.pt-fin-store-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}
.pt-fin-store-link:hover { text-decoration: underline; color: #93c5fd; }

/* Actions col — keep it narrow and always leftmost */
.pt-fin-actions {
  white-space: nowrap;
  width: 1%;
  padding-right: .5rem !important;
}

/* Date col */
.pt-fin-date-col { white-space: nowrap; }

/* Store detail KPI row */
.pt-fin-kpi-row--store .pt-fin-kpi { flex: 1 1 120px; }

/* ══════════════════════════════════════════════════════════════
   Lobby Pickup Kiosk Page  (/production-pickup/)
   Tablet-first: large touch targets, high contrast, minimal UI.
   ══════════════════════════════════════════════════════════════ */

.pt-pickup-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

/* ── Search view ─────────────────────────────────────────────── */
.pt-pickup-search-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 2rem;
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Hero block: logo + headings */
.pt-pickup-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.pt-pickup-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.pt-pickup-heading {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.15;
}

.pt-pickup-subheading {
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  color: #64748b;
  margin: 0;
}

/* Search bar */
.pt-pickup-search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
}

.pt-pickup-search-input {
  width: 100%;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 14px;
  color: #f1f5f9;
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  padding: 1rem 3rem 1rem 1.25rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.pt-pickup-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,.2);
}
.pt-pickup-search-input::placeholder { color: #475569; }

/* ✕ clear button inside the search field */
.pt-pickup-search-clear {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
  padding: .2rem .4rem;
  line-height: 1;
  border-radius: 50%;
  transition: color .1s, background .1s;
}
.pt-pickup-search-clear:hover { color: #e2e8f0; background: rgba(255,255,255,.08); }

/* Results list */
.pt-pickup-results {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pt-pickup-results__loading,
.pt-pickup-results__empty,
.pt-pickup-results__error {
  text-align: center;
  padding: 1.5rem;
  font-size: .95rem;
  color: #64748b;
}
.pt-pickup-results__error { color: #f87171; }

.pt-pickup-result-row {
  width: 100%;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  transition: background .12s, border-color .12s;
  text-align: left;
  color: inherit;
  font: inherit;
}
.pt-pickup-result-row:hover,
.pt-pickup-result-row:focus {
  background: #243045;
  border-color: #3b82f6;
  outline: none;
}
.pt-pickup-result-row--done {
  border-color: #16a34a;
  background: rgba(22,163,74,.08);
}

.pt-pickup-result-row__main { flex: 1; min-width: 0; }

.pt-pickup-result-row__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-pickup-result-row__org {
  font-size: .82rem;
  color: #64748b;
  margin-top: .1rem;
}
.pt-pickup-result-row__order {
  font-size: .8rem;
  color: #475569;
  margin-top: .15rem;
  font-family: monospace;
}

.pt-pickup-result-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  flex-shrink: 0;
}
.pt-pickup-result-row__items {
  font-size: .78rem;
  color: #64748b;
}
.pt-pickup-result-row__alldone {
  font-size: .78rem;
  font-weight: 700;
  color: #4ade80;
}

/* ── Order detail view ───────────────────────────────────────── */
.pt-pickup-order-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem;
  position: relative;
}

.pt-pickup-order-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pt-pickup-back-btn {
  background: none;
  border: 1.5px solid #334155;
  border-radius: 8px;
  color: #94a3b8;
  font-size: .9rem;
  font-weight: 600;
  padding: .45rem .85rem;
  cursor: pointer;
  transition: border-color .12s, color .12s;
  white-space: nowrap;
}
.pt-pickup-back-btn:hover { border-color: #60a5fa; color: #60a5fa; }

.pt-pickup-order-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f1f5f9;
}

/* Order info card */
.pt-pickup-order-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.pt-pickup-order-info {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}
.pt-pickup-order-info__name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
}
.pt-pickup-order-info__org {
  font-size: .9rem;
  color: #94a3b8;
  margin-top: .2rem;
}
.pt-pickup-order-info__dist {
  font-size: .82rem;
  color: #64748b;
  margin-top: .2rem;
}

/* Item rows inside the order card */
.pt-pickup-items-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pt-pickup-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .25rem;
  border-bottom: 1px solid #0f172a;
}
.pt-pickup-item-row:last-child { border-bottom: none; }
.pt-pickup-item-row--done { opacity: .55; }

.pt-pickup-item-row__product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
  flex: 1;
  min-width: 0;
}
.pt-pickup-item-row__name {
  font-size: .95rem;
  font-weight: 600;
  color: #e2e8f0;
}
.pt-pickup-item-row__attr {
  font-size: .78rem;
  color: #64748b;
}
.pt-pickup-item-row__qty {
  font-size: .82rem;
  font-weight: 700;
  color: #94a3b8;
}
.pt-pickup-item-row__status {
  flex-shrink: 0;
  font-size: .7rem;
}

/* Big green action button */
.pt-pickup-action-wrap {
  margin-top: 1.25rem;
  padding-top: 0;
}

.pt-pickup-confirm-btn {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  font-weight: 800;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 6px 28px rgba(22,163,74,.45);
  letter-spacing: .01em;
  line-height: 1.2;
}
.pt-pickup-confirm-btn:hover   { background: #15803d; box-shadow: 0 8px 32px rgba(22,163,74,.55); }
.pt-pickup-confirm-btn:active  { transform: scale(.97); }
.pt-pickup-confirm-btn:disabled { background: #1e3a2a; color: #4ade80; cursor: default; box-shadow: none; }

.pt-pickup-already-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: rgba(22,163,74,.1);
  border: 1.5px solid #16a34a;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #4ade80;
}
.pt-pickup-already-done__icon { font-size: 1.4rem; }

/* ── Confirmation overlay ────────────────────────────────────── */
.pt-pickup-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  animation: pt-pickup-fadein .25s ease;
}

@keyframes pt-pickup-fadein {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.pt-pickup-confirm-box {
  text-align: center;
  padding: 2rem;
}
.pt-pickup-confirm-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.pt-pickup-confirm-msg {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: .5rem;
}
.pt-pickup-confirm-sub {
  font-size: .9rem;
  color: #64748b;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pt-pickup-search-view { padding: 1.5rem .75rem; }
  .pt-pickup-logo { width: 72px; height: 72px; }
  .pt-pickup-order-view { padding: .75rem; }
}

/* ══════════════════════════════════════════════════════════════
   Order page — customer email display + inline edit
   ══════════════════════════════════════════════════════════════ */

/* Row that holds the mailto link and the Edit Email button */
.pt-order-meta__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem 0 .25rem;
  border-top: 1px solid #1e293b;
  margin-top: .5rem;
}

/* Second actions row (Send Email / ShipStation buttons) */
.pt-order-meta__actions--buttons {
  padding-top: .35rem;
  border-top: none;
  margin-top: 0;
}

/* mailto link styled as a soft chip */
.pt-order-header__email-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: #60a5fa;
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.25);
  border-radius: 20px;
  padding: .2rem .75rem;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-order-header__email-link:hover {
  background: rgba(96,165,250,.2);
  border-color: rgba(96,165,250,.5);
  text-decoration: none;
  color: #93c5fd;
}

/* Inline edit group — input + Save + Cancel + feedback */
.pt-edit-email-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  width: 100%;
}

.pt-edit-email-input {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  background: #0f172a;
  border: 1.5px solid #3b82f6;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: .85rem;
  padding: .3rem .65rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pt-edit-email-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

/* Feedback spans */
.pt-edit-email-feedback {
  font-size: .78rem;
  font-weight: 500;
}
.pt-edit-email-feedback--err { color: #f87171; }
.pt-edit-email-feedback--ok  { color: #4ade80; }


/* ═══ Tasks ════════════════════════════════════════════════════════════════ */
.pt-tasks-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.pt-tasks-view-toggle { display: flex; gap: .35rem; }
.pt-tasks-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  align-items: flex-end;
}
.pt-tasks-filter {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pt-tasks-filter select {
  font: inherit;
  font-size: .85rem;
  text-transform: none;
  letter-spacing: 0;
  color: #f1f5f9;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: .35rem .5rem;
  min-width: 7.5rem;
}
.pt-tasks-filter--check {
  flex-direction: row;
  align-items: center;
  gap: .4rem;
  text-transform: none;
  font-size: .85rem;
  color: #cbd5e1;
  padding-bottom: .25rem;
}

.pt-tasks-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.pt-task-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .85rem 1rem;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pt-task-card:hover {
  border-color: #3b82f6;
  background: #243044;
}
.pt-task-card__top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .35rem;
}
.pt-task-card__title { font-size: 1rem; color: #f8fafc; }
.pt-task-card__status {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
  white-space: nowrap;
}
.pt-task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  font-size: .8rem;
  color: #94a3b8;
  margin-bottom: .4rem;
}
.pt-task-card__pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.pt-task-card__desc {
  margin-top: .45rem;
  font-size: .8rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.pt-task-pill {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #334155;
  color: #e2e8f0;
}
.pt-task-pill--rush { background: #9f1239; color: #ffe4e6; }
.pt-task-pill--archived { background: #475569; color: #cbd5e1; }

.pt-tasks-cal-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.pt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #334155;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}
.pt-cal-head {
  background: #0f172a;
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: .4rem .2rem;
}
.pt-cal-cell {
  background: #1e293b;
  min-height: 5.5rem;
  padding: .3rem;
  vertical-align: top;
}
.pt-cal-cell--empty { background: #0f172a; }
.pt-cal-day {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: .25rem;
}
.pt-cal-task {
  display: block;
  width: 100%;
  text-align: left;
  font-size: .68rem;
  font-weight: 600;
  background: #1d4ed8;
  color: #dbeafe;
  border: none;
  border-radius: 4px;
  padding: .2rem .3rem;
  margin-bottom: .2rem;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-cal-task--rush { background: #9f1239; color: #ffe4e6; }
.pt-cal-task:hover { filter: brightness(1.12); }

/* Task modal — use #pt-task-modal so we don't fight older .pt-modal rules */
#pt-task-modal.pt-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 1rem .75rem 2rem !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: transparent !important;
  max-width: none !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Leave room for WP admin bar so the top of the panel is never hidden */
body.admin-bar #pt-task-modal.pt-modal {
  padding-top: calc(1rem + 32px) !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #pt-task-modal.pt-modal {
    padding-top: calc(1rem + 46px) !important;
  }
}
#pt-task-modal .pt-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .72);
  z-index: 0;
}
#pt-task-modal .pt-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  max-height: none;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem 1.15rem 1.25rem;
  color: #e2e8f0;
  margin: 0 auto 2.5rem;
  overflow: visible;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
#pt-task-modal .pt-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .85rem;
  position: sticky;
  top: 0;
  background: #1e293b;
  z-index: 2;
  padding-bottom: .35rem;
}
#pt-task-modal .pt-modal__header h2 { font-size: 1.1rem; color: #f8fafc; margin: 0; }
#pt-task-modal .pt-modal__close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: .25rem .4rem;
}

/* MUST come after display:flex so closing actually hides the dialog */
#pt-task-modal[hidden],
#pt-task-modal.pt-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Sticky top bar under WP admin bar */
body.admin-bar .pt-topbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .pt-topbar {
    top: 46px;
  }
}
/* Small top padding so first list content isn't tight against sticky bar */
.pt-tasks-toolbar {
  scroll-margin-top: 4.5rem;
}
.pt-task-group {
  scroll-margin-top: 4.5rem;
}
.pt-task-form .pt-field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .75rem;
  font-size: .8rem;
  color: #94a3b8;
}
.pt-task-form .pt-field span em { color: #f87171; font-style: normal; }
.pt-task-form input[type="text"],
.pt-task-form input[type="date"],
.pt-task-form input[type="number"],
.pt-task-form select,
.pt-task-form textarea {
  font: inherit;
  font-size: .9rem;
  color: #f1f5f9;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: .45rem .55rem;
}
.pt-task-form small { color: #64748b; font-size: .72rem; }
.pt-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.pt-task-tag-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pt-task-tag-check {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}
.pt-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .5rem;
}
.pt-task-notes-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}
.pt-task-notes-wrap h3 {
  font-size: .9rem;
  margin: 0 0 .6rem;
  color: #f1f5f9;
}
.pt-task-notes-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 12rem;
  overflow-y: auto;
  margin-bottom: .65rem;
}
.pt-task-note {
  background: #0f172a;
  border-radius: 6px;
  padding: .5rem .65rem;
}
.pt-task-note__meta {
  font-size: .7rem;
  color: #64748b;
  margin-bottom: .2rem;
}
.pt-task-note__body {
  font-size: .85rem;
  color: #e2e8f0;
  white-space: pre-wrap;
}
.pt-task-note-form {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pt-task-archive-row {
  display: flex;
  gap: .5rem;
  margin-top: .85rem;
}
.pt-muted { color: #64748b; font-size: .85rem; }

@media (max-width: 640px) {
  .pt-field-row { grid-template-columns: 1fr; }
  .pt-cal-cell { min-height: 4.2rem; }
}

/* Task status groups */
.pt-task-group { margin-bottom: .85rem; }
.pt-task-group__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: left;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: .55rem .75rem;
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-bottom: .4rem;
}
.pt-task-group__header:hover { border-color: #475569; }
.pt-task-group__chevron { color: #94a3b8; width: 1rem; }
.pt-task-group__title { flex: 1; }
.pt-task-group__count {
  font-size: .75rem;
  background: #1e293b;
  border-radius: 999px;
  padding: .1rem .5rem;
  color: #94a3b8;
}
.pt-task-group__body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding-left: .15rem;
}

/* Unread note indicator */
.pt-task-card--unread {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .35);
  animation: pt-task-pulse 1.4s ease-in-out infinite;
}
.pt-task-unread {
  display: inline-block;
  margin-left: .45rem;
  font-size: .72rem;
  font-weight: 800;
  color: #fbbf24;
  vertical-align: middle;
}
@keyframes pt-task-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 158, 11, .25); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .45); }
}
.pt-cal-task--unread {
  outline: 2px solid #fbbf24;
}

/* Day filter bar */
.pt-tasks-day-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  background: #1e3a5f;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: .55rem .85rem;
  color: #dbeafe;
  font-size: .9rem;
}
.pt-cal-cell--active {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}
.pt-cal-day {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: .25rem;
}
.pt-cal-day:hover { color: #e2e8f0; }
.pt-cal-more {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #93c5fd;
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
  padding: .15rem 0 0;
}

/* Task settings */
.pt-tag-settings-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: .85rem;
}
.pt-tag-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: .55rem .7rem;
}
.pt-tag-settings-row .pt-tag-name {
  flex: 1 1 8rem;
  min-width: 7rem;
  font: inherit;
  font-size: .9rem;
  color: #f1f5f9;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: .35rem .5rem;
}
.pt-tag-color {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: #94a3b8;
}
.pt-tag-settings-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}



/* Task list rows — table-like columns (Name | Assignees | Status) */
.pt-task-group__body {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}
button.pt-task-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 7.5rem 11.5rem;
  align-items: center;
  gap: .5rem 1rem;
  width: 100%;
  margin: 0 !important;
  padding: .4rem .75rem !important;
  border: none !important;
  border-bottom: 1px solid #1e293b !important;
  border-radius: 0 !important;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  text-align: left !important;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
  min-height: 2.15rem;
  box-shadow: none !important;
  animation: none !important;
}
button.pt-task-row:last-child {
  border-bottom: none !important;
}
button.pt-task-row:hover {
  background: #1e293b !important;
}
button.pt-task-row--unread {
  box-shadow: inset 3px 0 0 #f59e0b !important;
  animation: pt-task-row-flash 1.2s ease-in-out infinite;
}
@keyframes pt-task-row-flash {
  0%, 100% {
    background: #0f172a !important;
    box-shadow: inset 3px 0 0 #f59e0b;
  }
  50% {
    background: #422006 !important;
    box-shadow: inset 3px 0 0 #fbbf24, 0 0 0 1px rgba(251, 191, 36, .35);
  }
}
.pt-task-row--unread .pt-task-unread {
  animation: pt-note-blink 1s ease-in-out infinite;
}
@keyframes pt-note-blink {
  0%, 100% { opacity: 1; color: #fbbf24; }
  50% { opacity: .35; color: #fde68a; }
}

.pt-task-row__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .45rem;
  min-width: 0;
}
.pt-task-row__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #64748b;
  flex-shrink: 0;
}
.pt-task-row__dot--not-started { background: #94a3b8; }
.pt-task-row__dot--hold { background: #f59e0b; }
.pt-task-row__dot--in-progress { background: #3b82f6; }
.pt-task-row__dot--needs-approval { background: #a855f7; }
.pt-task-row__dot--complete { background: #22c55e; }

.pt-task-row__title {
  font-weight: 600;
  font-size: .88rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pt-task-row__qty,
.pt-task-row__name .pt-task-card__qty {
  font-size: .78rem;
  color: #94a3b8;
  white-space: nowrap;
}
.pt-task-row__name .pt-task-card__loc {
  font-size: .78rem;
  color: #94a3b8;
  white-space: nowrap;
}
.pt-task-row__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .2rem;
  align-items: center;
}
.pt-task-row__tags .pt-task-pill {
  font-size: .6rem !important;
  padding: .08rem .35rem !important;
  line-height: 1.2;
}

.pt-task-row__assignees {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  justify-content: flex-start;
  align-items: center;
}
.pt-task-row__assignees .pt-staff-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-sizing: border-box;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  flex-shrink: 0;
  line-height: 1;
}
.pt-task-row__empty {
  color: #475569;
  font-size: .8rem;
}

.pt-task-row__status-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem .5rem;
}
.pt-task-row__status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
  white-space: nowrap;
}
.pt-task-row__status--not-started { background: #334155; color: #e2e8f0; }
.pt-task-row__status--hold { background: #78350f; color: #fde68a; }
.pt-task-row__status--in-progress { background: #1d4ed8; color: #dbeafe; }
.pt-task-row__status--needs-approval { background: #6b21a8; color: #f3e8ff; }
.pt-task-row__status--complete { background: #166534; color: #bbf7d0; }

.pt-task-row__status-col .pt-task-card__due,
.pt-task-row__status-col .pt-task-row__due {
  font-size: .72rem;
  color: #64748b;
  white-space: nowrap;
}
.pt-task-row__status-col .pt-task-unread {
  font-size: .75rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Column headers optional feel via group */
.pt-task-group__header {
  margin-bottom: .35rem !important;
}

@media (max-width: 720px) {
  button.pt-task-row {
    grid-template-columns: 1fr;
    gap: .3rem;
  }
  .pt-task-row__status-col {
    justify-content: flex-start;
  }
}


/* ═══ Calendar month view (dense event cards) ══════════════════════════════ */
#pt-tasks-calendar .pt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  min-height: 28rem;
}
#pt-tasks-calendar .pt-cal-head {
  background: #0f172a;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  padding: .5rem .25rem;
  border-bottom: 1px solid #334155;
  border-right: 1px solid #1e293b;
}
#pt-tasks-calendar .pt-cal-head:last-child { border-right: none; }

#pt-tasks-calendar .pt-cal-cell {
  background: #0b1220;
  min-height: 7.5rem;
  padding: .3rem .3rem .4rem;
  border-right: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  vertical-align: top;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  cursor: pointer;
}
#pt-tasks-calendar .pt-cal-cell:nth-child(7n) { border-right: none; }
#pt-tasks-calendar .pt-cal-cell--empty {
  background: #070b14;
  cursor: default;
}
#pt-tasks-calendar .pt-cal-cell--today {
  background: #111827;
}
#pt-tasks-calendar .pt-cal-cell--today .pt-cal-day {
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#pt-tasks-calendar .pt-cal-cell--active {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  z-index: 1;
}
#pt-tasks-calendar .pt-cal-cell__top {
  display: flex;
  justify-content: flex-end;
}
#pt-tasks-calendar .pt-cal-day {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  padding: .1rem .25rem;
  line-height: 1;
}
#pt-tasks-calendar .pt-cal-day:hover { color: #e2e8f0; }

#pt-tasks-calendar .pt-cal-cell__events {
  display: flex;
  flex-direction: column;
  gap: .22rem;
  min-height: 0;
  flex: 1;
}

#pt-tasks-calendar .pt-cal-ev {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  width: 100%;
  text-align: left;
  background: #1e3a5f;
  color: #e2e8f0;
  border: none;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  padding: .28rem .35rem;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  overflow: hidden;
}
#pt-tasks-calendar .pt-cal-ev:hover {
  filter: brightness(1.12);
}
#pt-tasks-calendar .pt-cal-ev--not-started { border-left-color: #94a3b8; background: #1e293b; }
#pt-tasks-calendar .pt-cal-ev--hold { border-left-color: #f59e0b; background: #422006; }
#pt-tasks-calendar .pt-cal-ev--in-progress { border-left-color: #3b82f6; background: #1e3a5f; }
#pt-tasks-calendar .pt-cal-ev--needs-approval { border-left-color: #a855f7; background: #3b0764; }
#pt-tasks-calendar .pt-cal-ev--complete { border-left-color: #22c55e; background: #14532d; }
#pt-tasks-calendar .pt-cal-ev--rush {
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, .45);
}
#pt-tasks-calendar .pt-cal-ev--unread {
  animation: pt-cal-ev-flash 1.2s ease-in-out infinite;
}
@keyframes pt-cal-ev-flash {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }
  50% { box-shadow: inset 0 0 0 2px rgba(251, 191, 36, .75); }
}

#pt-tasks-calendar .pt-cal-ev__title {
  font-size: .7rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pt-tasks-calendar .pt-cal-ev__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  min-width: 0;
}
#pt-tasks-calendar .pt-cal-ev__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem;
  min-width: 0;
  flex: 1;
}
#pt-tasks-calendar .pt-cal-ev__tags .pt-task-pill {
  font-size: .55rem !important;
  padding: .05rem .28rem !important;
}
#pt-tasks-calendar .pt-cal-ev__meta {
  font-size: .55rem;
  color: #94a3b8;
  white-space: nowrap;
}
#pt-tasks-calendar .pt-cal-ev__staff {
  display: flex;
  flex-shrink: 0;
  gap: .1rem;
}
#pt-tasks-calendar .pt-cal-ev__staff .pt-staff-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  font-size: .5rem !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
  border: 1.5px solid #ffffff !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-align: center !important;
}

#pt-tasks-calendar .pt-cal-more {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #93c5fd;
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
  padding: .15rem .2rem;
}
#pt-tasks-calendar .pt-cal-more:hover { color: #bfdbfe; text-decoration: underline; }

.pt-tasks-cal-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
#pt-cal-title {
  font-size: 1rem;
  color: #f1f5f9;
  min-width: 10rem;
  text-align: center;
}

@media (max-width: 900px) {
  #pt-tasks-calendar .pt-cal-cell { min-height: 5.5rem; }
  #pt-tasks-calendar .pt-cal-ev__title { font-size: .65rem; }
}

.pt-task-staff-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .75rem;
  align-items: flex-start;
}
.pt-task-staff-check {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .35rem;
  cursor: pointer;
  font-size: .85rem;
  color: #e2e8f0;
  min-width: 3.25rem;
  max-width: 8rem;
}
.pt-task-staff-check input {
  margin: .35rem 0 0 0;
  flex-shrink: 0;
}
.pt-task-staff-check__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}
.pt-task-staff-check .pt-staff-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.85rem !important;
  height: 1.85rem !important;
  min-width: 1.85rem !important;
  min-height: 1.85rem !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-sizing: border-box !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-align: center !important;
}
.pt-staff-check-name {
  font-size: .68rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
  max-width: 4.25rem;
}

/* Task modal — solid green Save button */
#pt-task-modal #pt-task-save-btn,
#pt-task-form #pt-task-save-btn.pt-btn--primary {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
  font-weight: 700;
}
#pt-task-modal #pt-task-save-btn:hover,
#pt-task-form #pt-task-save-btn.pt-btn--primary:hover {
  background: #4ade80 !important;
  border-color: #4ade80 !important;
  color: #052e16 !important;
}
#pt-task-modal #pt-task-save-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* Universal staff chip circle — centered initials, white ring */
.pt-staff-chip,
span.pt-staff-chip,
button .pt-staff-chip,
label .pt-staff-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-sizing: border-box !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.pt-tasks-filter--unread span { color: #fbbf24; font-weight: 700; }
#pt-tasks-clear-filters { align-self: flex-end; margin-bottom: .1rem; }

.pt-task-order-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  background: #1e3a5f;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: .45rem .7rem;
  margin-bottom: .75rem;
  font-size: .85rem;
  color: #dbeafe;
}
.pt-task-order-banner a { color: #93c5fd; font-weight: 600; }
.pt-task-row__order {
  font-size: .72rem;
  font-weight: 700;
  color: #93c5fd;
  background: #1e3a5f;
  border-radius: 4px;
  padding: .1rem .35rem;
  white-space: nowrap;
}

.pt-task-notify-opts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: .75rem 0 .25rem;
  padding: .55rem .7rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
}
.pt-task-notify-opts label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #e2e8f0;
  font-size: .85rem;
  cursor: pointer;
}

.pt-task-notify-opts__title {
  flex: 1 1 100%;
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pt-task-notify-opts__hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: .75rem;
  color: #64748b;
}


/* ═══ Calendar Wide Screen / 4K TV mode ═══════════════════════════════════ */

/* ── Week view Mon–Fri ───────────────────────────────────────── */
.pt-tasks-week { width: 100%; }
.pt-week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  min-height: 28rem;
}
.pt-week-col {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  overflow: hidden;
}
.pt-week-col--today {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}
.pt-week-col__head {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  padding: .55rem .65rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.pt-week-col__name { font-weight: 800; color: #e2e8f0; font-size: .92rem; }
.pt-week-col__date { color: #94a3b8; font-size: .78rem; }
.pt-week-col__count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: #334155;
  border-radius: 999px;
  padding: .05rem .45rem;
}
.pt-week-col__body {
  padding: .45rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  overflow: auto;
}
.pt-week-empty { color: #64748b; font-size: .8rem; padding: .4rem; }
#pt-tasks-week .pt-cal-ev { width: 100%; text-align: left; }

#pt-tasks.pt-tasks--tv-week #pt-tasks-week-section { margin: 0; }
#pt-tasks.pt-tasks--tv-week .pt-tasks-filters,
#pt-tasks.pt-tasks--tv-week .pt-placeholder { display: none; }
#pt-tasks.pt-tasks--tv-week .pt-week-board-frame,
#pt-tasks.pt-tasks--tv-week #pt-tasks-week {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 5.5rem);
  height: auto;
}
#pt-tasks.pt-tasks--tv-week .pt-week-grid {
  height: 100%;
  min-height: 0;
  gap: .4rem;
}
#pt-tasks.pt-tasks--tv-week .pt-week-col { min-height: 0; }
#pt-tasks.pt-tasks--tv-week .pt-cal-ev__title { font-size: 1.05rem; }
@media (max-width: 900px) {
  .pt-week-grid { grid-template-columns: 1fr; }
  .pt-week-col { min-height: 10rem; }
}

html.pt-tasks-tv-mode,
body.pt-tasks-tv-mode {
  overflow: hidden !important;
  background: #020617 !important;
}
body.pt-tasks-tv-mode #wpadminbar,
body.pt-tasks-tv-mode .elementor,
body.pt-tasks-tv-mode header.site-header,
body.pt-tasks-tv-mode footer.site-footer {
  display: none !important;
}
body.pt-tasks-tv-mode .pt-app.pt-tasks--tv,
#pt-tasks.pt-tasks--tv {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: .6rem 1rem 1rem !important;
  background: #020617 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
#pt-tasks.pt-tasks--tv .pt-topbar {
  flex-shrink: 0;
  padding: .35rem .5rem !important;
  min-height: 0;
}
#pt-tasks.pt-tasks--tv .pt-topbar__logo { font-size: 1.15rem; }
#pt-tasks.pt-tasks--tv .pt-tasks-toolbar,
#pt-tasks.pt-tasks--tv #pt-tasks-list-section,
#pt-tasks.pt-tasks--tv .pt-tasks-view-toggle {
  display: none !important;
}
#pt-tasks.pt-tasks--tv #pt-tasks-cal-section {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
#pt-tasks.pt-tasks--tv .pt-tasks-cal-nav {
  flex-shrink: 0;
  margin-bottom: .5rem !important;
  gap: .65rem;
}
#pt-tasks.pt-tasks--tv #pt-cal-title {
  font-size: 1.6rem !important;
  min-width: 14rem;
  color: #f8fafc;
}
#pt-tasks.pt-tasks--tv #pt-tasks-calendar {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#pt-tasks.pt-tasks--tv .pt-cal-grid {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100% !important;
  grid-template-rows: auto repeat(6, minmax(0, 1fr));
  border-radius: 12px !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-head {
  font-size: 1rem !important;
  padding: .55rem .35rem !important;
  color: #cbd5e1 !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-cell {
  min-height: 0 !important;
  padding: .35rem .4rem !important;
  gap: .3rem !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-day {
  font-size: 1.05rem !important;
  color: #94a3b8 !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-cell--today .pt-cal-day {
  width: 2rem !important;
  height: 2rem !important;
  font-size: 1rem !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-ev {
  padding: .4rem .45rem !important;
  border-left-width: 4px !important;
  border-radius: 6px !important;
  gap: .2rem !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-ev__title {
  font-size: .95rem !important;
  font-weight: 700 !important;
  white-space: normal !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#pt-tasks.pt-tasks--tv .pt-cal-ev__tags .pt-task-pill {
  font-size: .72rem !important;
  padding: .12rem .4rem !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-ev__staff .pt-staff-chip {
  width: 1.55rem !important;
  height: 1.55rem !important;
  font-size: .62rem !important;
  border-width: 2px !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-more {
  font-size: .9rem !important;
  padding: .25rem .3rem !important;
}
#pt-tasks.pt-tasks--tv .pt-cal-cell__events {
  gap: .28rem !important;
}
/* 4K+ tweaks */
@media (min-width: 2500px) {
  #pt-tasks.pt-tasks--tv #pt-cal-title { font-size: 2.1rem !important; }
  #pt-tasks.pt-tasks--tv .pt-cal-head { font-size: 1.25rem !important; }
  #pt-tasks.pt-tasks--tv .pt-cal-ev__title { font-size: 1.15rem !important; }
  #pt-tasks.pt-tasks--tv .pt-cal-day { font-size: 1.25rem !important; }
  #pt-tasks.pt-tasks--tv .pt-cal-ev__tags .pt-task-pill { font-size: .85rem !important; }
  #pt-tasks.pt-tasks--tv .pt-cal-ev__staff .pt-staff-chip {
    width: 1.85rem !important;
    height: 1.85rem !important;
    font-size: .7rem !important;
  }
}

.pt-dash-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: flex-end;
  margin-top: .5rem;
}
.pt-dash-store-field { margin: 0; min-width: 14rem; }
.pt-dash-store-field select {
  min-width: 14rem;
  max-width: 28rem;
}
.pt-dash-group-header--store td {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  font-weight: 700;
}
.pt-dash-item-list__store {
  font-size: .8rem;
  color: #94a3b8;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-dash-group-header--status td {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  font-weight: 700;
}
#pt-dash-clear-filters {
  align-self: flex-end;
  margin-bottom: .15rem;
}

.pt-dash-sort-panel {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
}
.pt-dash-sort-panel__title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin-bottom: .55rem;
}
.pt-dash-sort-panel .pt-dash-store-row {
  margin-top: 0;
}
.pt-dash-sort-panel select.pt-input,
.pt-dash-sort-panel select {
  display: block;
  width: 100%;
  min-width: 12rem;
  max-width: 22rem;
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .9rem;
}
.pt-dash-sort-panel .pt-dash-filter-label {
  display: block;
  margin-bottom: .25rem;
  color: #cbd5e1;
}

.pt-modal__dialog--wide {
  max-width: min(960px, 96vw);
  width: 96vw;
}
.pt-mi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0 1rem;
}
.pt-mi-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.pt-mi-report th,
.pt-mi-report td {
  text-align: left;
  padding: .45rem .55rem;
  border-bottom: 1px solid #1e293b;
  vertical-align: top;
}
.pt-mi-report th {
  color: #94a3b8;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #0f172a;
  position: sticky;
  top: 0;
}
.pt-mi-report tr:hover td { background: #1e293b; }
.pt-mi-file {
  font-weight: 700;
  color: #f8fafc;
  word-break: break-all;
}
.pt-mi-qty {
  font-weight: 800;
  color: #fbbf24;
  font-size: 1rem;
  white-space: nowrap;
}
.pt-mi-details {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: .25rem;
}
.pt-mi-details summary {
  cursor: pointer;
  color: #93c5fd;
}

#pt-missing-imprint-modal.pt-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: auto !important;
}
#pt-missing-imprint-modal.pt-modal[hidden] {
  display: none !important;
}
#pt-missing-imprint-modal .pt-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .75);
  z-index: 0;
}
#pt-missing-imprint-modal .pt-modal__dialog {
  position: relative;
  z-index: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  width: min(960px, 96vw);
  max-height: calc(100vh - 4rem);
  overflow: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  margin: auto;
}
#pt-missing-imprint-modal .pt-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
}
#pt-missing-imprint-modal .pt-modal__body {
  padding: 1rem 1.1rem 1.25rem;
}

.pt-dash-sort-panel__actions {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid #334155;
}
#pt-missing-imprint-modal .pt-modal__dialog {
  background: #0b1220 !important;
  color: #f1f5f9 !important;
}
#pt-missing-imprint-modal .pt-modal__header {
  background: #020617 !important;
  border-bottom: 1px solid #334155 !important;
}
#pt-missing-imprint-modal .pt-modal__header h2,
#pt-missing-imprint-modal #pt-mi-title {
  color: #f8fafc !important;
}
#pt-missing-imprint-modal .pt-modal__body {
  background: #0b1220 !important;
  color: #e2e8f0 !important;
}
#pt-missing-imprint-modal #pt-mi-summary {
  color: #cbd5e1 !important;
}
#pt-missing-imprint-modal .pt-mi-report {
  background: #0b1220;
  border-radius: 8px;
  overflow: auto;
  max-height: 65vh;
}
#pt-missing-imprint-modal .pt-mi-report table {
  background: #0b1220;
  color: #f1f5f9;
}
#pt-missing-imprint-modal .pt-mi-report th {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid #475569 !important;
}
#pt-missing-imprint-modal .pt-mi-report td {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border-bottom: 1px solid #1e293b !important;
}
#pt-missing-imprint-modal .pt-mi-report tr:hover td {
  background: #1e293b !important;
}
#pt-missing-imprint-modal .pt-mi-file {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: .95rem !important;
  background: transparent !important;
}
#pt-missing-imprint-modal .pt-mi-qty {
  color: #fbbf24 !important;
}
#pt-missing-imprint-modal .pt-mi-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  display: block;
}
#pt-missing-imprint-modal .pt-mi-file-cell {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 12rem;
}
#pt-missing-imprint-modal .pt-mi-details,
#pt-missing-imprint-modal .pt-mi-details summary {
  color: #93c5fd !important;
}
#pt-missing-imprint-modal .pt-mi-qr {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}
#pt-missing-imprint-modal .pt-mi-line {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: .35rem 0;
  padding: .35rem 0;
  border-bottom: 1px solid #1e293b;
}
#pt-missing-imprint-modal .pt-mi-line__text {
  flex: 1;
  font-size: .8rem;
  color: #e2e8f0;
}

/* Customer order-status: calm blue for Production Hold (HOLD / MISSING-*) */
.pt-status-page .pt-badge--production-hold,
.pt-badge.pt-badge--production-hold {
  background: #dbeafe !important;
  color: #1e40af !important;
  border: 1px solid #93c5fd;
  font-weight: 700;
  letter-spacing: .02em;
}


/* Batch archive on overview — button sits lower-left inside the card */
.pt-section__header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.pt-batch-card-wrap {
  position: relative;
  display: block;
}
.pt-batch-card-wrap .pt-batch-card {
  /* room for the corner archive control */
  padding-bottom: 2.1rem;
}
.pt-batch-card-wrap--archived .pt-batch-card {
  opacity: .72;
  border-style: dashed;
}
.pt-batch-card__archived-pill {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #334155;
  color: #94a3b8;
  border-radius: 99px;
  padding: .12em .55em;
}
.pt-batch-archive-btn {
  position: absolute;
  left: .55rem;
  bottom: .45rem;
  z-index: 2;
  background: #0f172a;
  border: 1px solid #475569;
  color: #cbd5e1;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .55rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.pt-batch-archive-btn:hover {
  background: #1e293b;
  border-color: #94a3b8;
  color: #f8fafc;
}
.pt-batch-card-wrap--archived .pt-batch-archive-btn {
  border-color: #3b82f6;
  color: #93c5fd;
  background: #0f172a;
}


/* ══════════════════════════════════════════════════════════════
   Inventory page
   ══════════════════════════════════════════════════════════════ */
.pt-inv-daily-banner {
  background: #422006;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: .85rem 1rem;
  color: #fde68a;
}
.pt-inv-daily-banner__title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .25rem;
}
.pt-inv-daily-banner__text {
  font-size: .85rem;
  margin-bottom: .65rem;
  opacity: .9;
}
.pt-inv-daily-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pt-inv-daily-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  padding: .45rem .65rem;
}
.pt-inv-daily-row__name {
  flex: 1;
  min-width: 140px;
  font-weight: 600;
  color: #fff;
}
.pt-inv-daily-row__name em {
  font-style: normal;
  color: #fcd34d;
  font-weight: 500;
  font-size: .85em;
}
.pt-inv-daily-qty {
  width: 5.5rem;
  background: #0f172a;
  border: 1px solid #78350f;
  color: #fff;
  border-radius: 6px;
  padding: .35rem .5rem;
}

.pt-inv-dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pt-inv-dept-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 99px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.pt-inv-dept-tab:hover { border-color: #64748b; }
.pt-inv-dept-tab--active {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: #fff;
}
.pt-inv-dept-tab__count {
  background: #0f172a;
  border-radius: 99px;
  padding: .05em .45em;
  font-size: .75em;
  color: #94a3b8;
}
.pt-inv-pill {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 99px;
  padding: .12em .5em;
}
.pt-inv-pill--low { background: #7f1d1d; color: #fecaca; }
.pt-inv-pill--due { background: #78350f; color: #fde68a; }
.pt-inv-pill--ok  { background: #14532d; color: #bbf7d0; }

.pt-inv-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pt-inv-card {
  display: flex;
  gap: .85rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: .85rem;
}
.pt-inv-card--low {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239,68,68,.25);
}
.pt-inv-card--daily {
  border-color: #f59e0b;
}
.pt-inv-card__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid #334155;
  flex-shrink: 0;
}
.pt-inv-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #64748b;
}
.pt-inv-card__body { flex: 1; min-width: 0; }
.pt-inv-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .4rem .75rem;
  margin-bottom: .25rem;
}
.pt-inv-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}
.pt-inv-card__badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.pt-inv-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-size: .78rem;
  color: #94a3b8;
  margin-bottom: .35rem;
}
.pt-inv-card__notes {
  font-size: .8rem;
  color: #cbd5e1;
  margin: 0 0 .35rem;
}
.pt-inv-card__staff {
  font-size: .75rem;
  color: #64748b;
  margin-bottom: .5rem;
}
.pt-inv-card__qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.pt-inv-card__qty-row label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: #94a3b8;
  font-weight: 700;
}
.pt-inv-card__qty {
  width: 5.5rem;
  background: #0f172a;
  border: 1px solid #475569;
  color: #fff;
  border-radius: 6px;
  padding: .35rem .5rem;
}
.pt-inv-card__min {
  font-size: .75rem;
  color: #64748b;
}

/* Modal form */
.pt-inv-modal-panel {
  max-width: 560px;
  width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem 1.15rem 1.25rem;
  position: relative;
  z-index: 2;
}
.pt-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pt-modal[hidden] { display: none !important; }
.pt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .72);
}
.pt-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .85rem;
}
.pt-modal__header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #f8fafc;
}
.pt-inv-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pt-inv-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
}
.pt-inv-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.pt-inv-field input,
.pt-inv-field select,
.pt-inv-field textarea {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 8px;
  padding: .5rem .65rem;
  font-size: .95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.pt-inv-staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}
.pt-inv-staff-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 99px;
  padding: .3rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.pt-inv-staff-chip input { accent-color: #3b82f6; }
.pt-inv-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
}
.pt-inv-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid #334155;
}

@media (max-width: 640px) {
  .pt-inv-card { flex-direction: column; }
  .pt-inv-card__img { width: 100%; height: 120px; }
}


/* ══════════════════════════════════════════════════════════════
   Pricing / Quotes
   ══════════════════════════════════════════════════════════════ */
.pt-pr-list { display: flex; flex-direction: column; gap: .65rem; }
.pt-pr-card {
  display: flex; justify-content: space-between; gap: 1rem;
  background: #1e293b; border: 1px solid #334155; border-radius: 10px;
  padding: .9rem 1.1rem; cursor: pointer; transition: border-color .15s;
}
.pt-pr-card:hover { border-color: #3b82f6; }
.pt-pr-card__title { margin: 0 0 .25rem; font-size: 1.1rem; color: #f8fafc; }
.pt-pr-card__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .8rem; color: #94a3b8; }
.pt-pr-card__status { text-transform: uppercase; font-weight: 700; color: #60a5fa; }
.pt-pr-card__side { text-align: right; }
.pt-pr-card__total { font-size: 1.15rem; font-weight: 800; color: #4ade80; }
.pt-pr-card__items { font-size: .75rem; color: #64748b; }

.pt-pr-detail__header h2 { margin: 0 0 .5rem; color: #f8fafc; }
.pt-pr-detail__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: #cbd5e1; margin-bottom: .75rem; }
.pt-pr-detail__notes { color: #94a3b8; font-size: .85rem; }
.pt-pr-detail__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #334155;
  font-size: 1.1rem; color: #f8fafc;
}

.pt-pr-item-row {
  background: #1e293b; border: 1px solid #334155; border-radius: 10px;
  padding: .75rem 1rem; margin-bottom: .55rem;
}
.pt-pr-item-row__top { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.pt-pr-item-row__meta { font-size: .8rem; color: #94a3b8; margin: .35rem 0; }
.pt-pr-item-row__locs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.pt-pr-loc-pill {
  font-size: .7rem; background: #0f172a; border: 1px solid #475569;
  border-radius: 99px; padding: .15em .55em; color: #cbd5e1;
}
.pt-pr-item-row__price { font-size: .9rem; color: #e2e8f0; }

.pt-pr-modal-panel {
  max-width: 480px; width: 96vw; max-height: 90vh; overflow-y: auto;
  background: #1e293b; border: 1px solid #334155; border-radius: 12px;
  padding: 1rem 1.15rem 1.25rem; position: relative; z-index: 2;
}
.pt-pr-modal-panel--wide { max-width: 640px; }
.pt-pr-form { display: flex; flex-direction: column; gap: .7rem; }
.pt-pr-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: end; }
.pt-pr-field { display: flex; flex-direction: column; gap: .25rem; font-size: .72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.pt-pr-field input, .pt-pr-field select, .pt-pr-field textarea,
.pt-pr-textarea {
  background: #0f172a; border: 1px solid #334155; color: #e2e8f0;
  border-radius: 8px; padding: .45rem .6rem; font-size: .95rem; font-weight: 500;
  text-transform: none;
}
.pt-pr-textarea { width: 100%; min-height: 120px; }
.pt-pr-hint { font-size: .8rem; color: #64748b; margin: 0; }
.pt-pr-form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .4rem; }
.pt-pr-locations-head { display: flex; justify-content: space-between; align-items: center; color: #e2e8f0; }
.pt-pr-locations { display: flex; flex-direction: column; gap: .45rem; }
.pt-pr-loc-row {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: .45rem .55rem;
}
.pt-pr-loc-row select, .pt-pr-loc-row input {
  background: #1e293b; border: 1px solid #475569; color: #e2e8f0;
  border-radius: 6px; padding: .3rem .45rem; font-size: .85rem;
}
.pt-pr-loc-row label { font-size: .75rem; color: #94a3b8; display: flex; gap: .25rem; align-items: center; }
.pt-pr-loc-sq { font-size: .75rem; color: #60a5fa; min-width: 8rem; }
.pt-pr-calc {
  background: #0f172a; border: 1px solid #334155; border-radius: 8px;
  padding: .65rem .85rem; font-size: .85rem; color: #cbd5e1;
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem;
}
.pt-pr-calc__unit { grid-column: 1 / -1; font-size: 1rem; color: #f8fafc; margin-top: .25rem; }

.pt-pr-tier-list { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .5rem; }
.pt-pr-tier-row {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: .5rem .65rem;
}
.pt-pr-tier-row label { font-size: .75rem; color: #94a3b8; display: flex; gap: .3rem; align-items: center; }
.pt-pr-tier-row input {
  width: 5rem; background: #0f172a; border: 1px solid #475569; color: #fff;
  border-radius: 6px; padding: .3rem .4rem;
}

.pt-pr-check {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .85rem; color: #e2e8f0; font-weight: 600; cursor: pointer;
}
.pt-pr-check input { margin-top: .2rem; accent-color: #3b82f6; }
.pt-pr-pod-badge {
  display: inline-block; background: #7c3aed; color: #ede9fe;
  font-size: .65rem; font-weight: 800; border-radius: 99px;
  padding: .1em .45em; margin-right: .25rem; letter-spacing: .03em;
}
.pt-pr-loc-file-lbl {
  font-size: .72rem; color: #94a3b8; display: flex; flex-direction: column; gap: .15rem;
}
.pt-pr-loc-file { max-width: 9rem; font-size: .7rem; color: #cbd5e1; }
.pt-pr-loc-preview, .pt-pr-loc-thumb {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: 4px; background: #0f172a; border: 1px solid #334155;
}
.pt-pr-loc-thumb { width: 22px; height: 22px; vertical-align: middle; margin-right: .25rem; }

.pt-pr-row--qty {
  display: flex; flex-wrap: wrap; align-items: end; gap: .55rem;
  grid-template-columns: none;
}
.pt-pr-field--qty { max-width: 8rem; }
.pt-pr-field--qty input { width: 4.25rem; }
.pt-pr-check--inline {
  display: inline-flex; align-items: center; gap: .35rem;
  padding-bottom: .35rem; font-size: .82rem; white-space: nowrap;
}
.pt-pr-sizes {
  border: 1px solid #334155; border-radius: 8px; padding: .55rem .75rem;
}
.pt-pr-sizes legend { padding: 0 .35rem; color: #94a3b8; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.pt-pr-size-checks { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.pt-pr-size-checks label {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; color: #e2e8f0; font-weight: 600; cursor: pointer;
}
.pt-pr-plus-costs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .5rem; margin-top: .55rem;
}
.pt-pr-loc-preview {
  width: 64px; height: 64px; object-fit: contain; cursor: zoom-in;
  border-radius: 6px; background: #0f172a; border: 1px solid #475569;
}
.pt-pr-loc-sq-lbl {
  font-size: .72rem; color: #94a3b8; display: flex; flex-direction: column; gap: .15rem;
}
.pt-pr-loc-sq-input {
  width: 5.5rem; background: #1e293b; border: 1px solid #475569; color: #e2e8f0;
  border-radius: 6px; padding: .3rem .45rem; font-size: .85rem;
}
.pt-pr-calc-sub { font-size: .75rem; color: #64748b; font-weight: 500; }
.pt-pr-lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.pt-pr-lightbox[hidden] { display: none !important; }
.pt-pr-lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(2,6,23,.85);
}
.pt-pr-lightbox__img {
  position: relative; z-index: 1; max-width: min(92vw, 900px);
  max-height: 88vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.pt-pr-lightbox__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
}

.pt-pr-loc-inches { font-size: .78rem; color: #93c5fd; font-weight: 700; white-space: nowrap; min-width: 5.5rem; }

.pt-pr-loc-deco { font-size: .75rem; font-weight: 800; color: #4ade80; white-space: nowrap; }


/* Location row layout v2 */
.pt-pr-loc-row {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: .55rem .65rem;
}
.pt-pr-loc-row__top {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pt-pr-loc-row__top .pt-pr-loc-name {
  flex: 1;
  min-width: 0;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .35rem .5rem;
  font-size: .9rem;
}
.pt-pr-loc-row__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
}
.pt-pr-loc-file-lbl {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}
.pt-pr-loc-file-btn {
  display: inline-block;
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
  border-radius: 6px;
  padding: .3rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}
.pt-pr-loc-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.pt-pr-loc-preview {
  width: 48px;
  height: 48px;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #475569;
  flex-shrink: 0;
}
.pt-pr-loc-meta {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
  flex: 1 1 120px;
  max-width: 220px;
}
.pt-pr-loc-filename {
  font-size: .72rem;
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-pr-loc-inches {
  font-size: .7rem;
  color: #93c5fd;
  font-weight: 700;
}
.pt-pr-loc-sq-lbl {
  font-size: .68rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  margin: 0;
}
.pt-pr-loc-sq-input {
  width: 3.6rem !important;
  max-width: 3.6rem;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .28rem .35rem;
  font-size: .85rem;
}
.pt-pr-loc-deco {
  font-size: .78rem;
  font-weight: 800;
  color: #4ade80;
  white-space: nowrap;
  margin-left: auto;
}
.pt-pr-loc-fname {
  color: #93c5fd;
  font-weight: 600;
}

/* sq-in width tweak */
.pt-pr-loc-sq-input {
  width: 4.75rem !important;
  max-width: 4.75rem;
}
.pt-pr-loc-file-btn {
  white-space: nowrap;
  padding: .3rem .6rem;
  font-size: .7rem;
}


/* Location row — 3 column layout */
.pt-pr-loc-row {
  display: block;
  padding: .65rem .75rem;
}
.pt-pr-loc-cols {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem 1rem;
  align-items: start;
}
.pt-pr-loc-col {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
.pt-pr-loc-col--media {
  align-items: center;
  width: 5.5rem;
}
.pt-pr-loc-col--media .pt-pr-loc-preview {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #475569;
  cursor: zoom-in;
}
.pt-pr-loc-col--media .pt-pr-loc-preview[hidden] {
  display: none !important;
}
.pt-pr-loc-col--info .pt-pr-loc-name {
  width: 100%;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .35rem .5rem;
  font-size: .9rem;
}
.pt-pr-loc-col--info .pt-pr-loc-filename {
  font-size: .75rem;
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-pr-loc-col--info .pt-pr-loc-inches {
  font-size: .72rem;
  color: #93c5fd;
  font-weight: 700;
}
.pt-pr-loc-col--stats {
  align-items: flex-end;
  min-width: 8rem;
}
.pt-pr-loc-col--stats .pt-pr-loc-remove {
  align-self: flex-end;
}
.pt-pr-loc-col--stats .pt-pr-loc-sq-lbl {
  align-items: flex-end;
  text-align: right;
  font-size: .68rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  margin: 0;
}
.pt-pr-loc-col--stats .pt-pr-loc-sq-input {
  width: 4.75rem !important;
  max-width: 4.75rem;
  text-align: right;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .28rem .35rem;
  font-size: .85rem;
}
.pt-pr-loc-col--stats .pt-pr-loc-deco {
  font-size: .78rem;
  font-weight: 800;
  color: #4ade80;
  white-space: nowrap;
  margin-left: 0;
}
@media (max-width: 560px) {
  .pt-pr-loc-cols {
    grid-template-columns: 1fr;
  }
  .pt-pr-loc-col--media,
  .pt-pr-loc-col--stats {
    align-items: flex-start;
  }
  .pt-pr-loc-col--stats .pt-pr-loc-remove {
    align-self: flex-start;
  }
}

/* Location media column — match Upload PNG width */
.pt-pr-loc-col--media {
  width: 6.5rem;
  align-items: stretch;
}
.pt-pr-loc-col--media .pt-pr-loc-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-height: 6.5rem;
  object-fit: contain;
}
.pt-pr-loc-file-lbl {
  width: 100%;
  display: block;
}
.pt-pr-loc-file-btn {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.pt-pr-loc-dims {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.pt-pr-loc-dims label {
  font-size: .68rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  font-weight: 700;
}
.pt-pr-loc-dims input {
  width: 4.25rem;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .28rem .35rem;
  font-size: .85rem;
}
.pt-pr-loc-pers-lbl {
  font-size: .68rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  font-weight: 700;
}
.pt-pr-loc-pers {
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .3rem .45rem;
  font-size: .85rem;
}
.pt-pr-loc-col--stats .pt-pr-loc-sq-lbl {
  align-items: center;
  text-align: center;
  width: 100%;
}
.pt-pr-loc-col--stats .pt-pr-loc-sq-lbl > span {
  display: block;
  width: 100%;
  text-align: center;
}
.pt-pr-loc-col--stats .pt-pr-loc-sq-input {
  text-align: center;
  margin: 0 auto;
}
.pt-pr-loc-col--stats .pt-pr-loc-deco {
  text-align: center;
  width: 100%;
}

.pt-pr-loc-deco-type-lbl {
  font-size: .68rem; color: #94a3b8; display: flex; flex-direction: column;
  gap: .12rem; font-weight: 700;
}
.pt-pr-loc-deco-type {
  background: #1e293b; border: 1px solid #475569; color: #e2e8f0;
  border-radius: 6px; padding: .3rem .45rem; font-size: .85rem; width: 100%;
}
#pt-pr-i-type {
  background: #0f172a; border: 1px solid #334155; color: #e2e8f0;
  border-radius: 8px; padding: .45rem .6rem; font-size: .95rem;
}

.pt-pr-loc-override-lbl {
  font-size: .68rem; color: #94a3b8; display: flex; flex-direction: column;
  gap: .12rem; font-weight: 700;
}
.pt-pr-loc-override-lbl input {
  width: 5.5rem; background: #1e293b; border: 1px solid #475569; color: #e2e8f0;
  border-radius: 6px; padding: .28rem .35rem; font-size: .85rem;
}
.pt-pr-loc-override-hint {
  font-size: .65rem; color: #64748b; font-weight: 500;
}

.pt-pr-loc-size-flag {
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.2;
}
.pt-pr-loc-size-flag--ok {
  color: #4ade80;
}
.pt-pr-loc-size-flag--warn {
  color: #fbbf24;
}
.pt-pr-size-unverified {
  color: #fbbf24;
  font-weight: 700;
  font-size: .7em;
}

/* dims side-by-side */
.pt-pr-loc-dims {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: .5rem;
}
.pt-pr-loc-dims label {
  font-size: .65rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-weight: 700;
  width: auto;
}
.pt-pr-loc-dims input {
  width: 8rem !important;
  max-width: 8rem;
  min-width: 8rem;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: .28rem .4rem;
  font-size: .85rem;
  box-sizing: border-box;
}

.pt-pr-size-table-wrap {
  overflow-x: auto;
  margin-top: .4rem;
}
.pt-pr-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.pt-pr-size-table th,
.pt-pr-size-table td {
  border: 1px solid #334155;
  padding: .35rem .3rem;
  text-align: center;
  vertical-align: middle;
}
.pt-pr-size-table thead th {
  background: #1e293b;
  color: #94a3b8;
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
}
.pt-pr-size-table tbody th {
  background: #0f172a;
  color: #94a3b8;
  font-size: .72rem;
  text-align: left;
  padding-left: .5rem;
  white-space: nowrap;
}
.pt-pr-size-table input[type="number"] {
  width: 3.5rem;
  max-width: 100%;
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 5px;
  padding: .25rem .3rem;
  font-size: .85rem;
  text-align: center;
}
.pt-pr-size-cost-span {
  text-align: left !important;
}
.pt-pr-size-cost-shared {
  width: 6rem !important;
  max-width: 8rem !important;
}
.pt-pr-size-cost-note {
  font-size: .65rem;
  color: #64748b;
  margin-left: .35rem;
}
.pt-pr-size-cost--needed {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 1px #fbbf24;
}

.pt-pr-detail__title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  margin-bottom: .35rem;
}
.pt-pr-detail__title-row h2 { margin: 0; flex: 1; }

.pt-pr-customer { max-width: 900px; margin: 0 auto; padding: 1rem; }
.pt-pr-cust-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem;
  border-bottom: 2px solid #334155; padding-bottom: 1rem; margin-bottom: 1.25rem;
}
.pt-pr-cust-brand { display: flex; gap: .85rem; align-items: flex-start; max-width: 55%; }
.pt-pr-cust-logo { max-height: 64px; max-width: 160px; object-fit: contain; }
.pt-pr-cust-co-name { font-size: 1.15rem; font-weight: 800; color: #e2e8f0; }
.pt-pr-cust-co-addr, .pt-pr-cust-co-contact { font-size: .82rem; color: #94a3b8; margin-top: .2rem; }
.pt-pr-cust-quote-meta { text-align: right; }
.pt-pr-cust-quote-meta h1 { margin: 0 0 .35rem; font-size: 1.35rem; }
.pt-pr-cust-notes { color: #94a3b8; font-style: italic; margin-bottom: 1rem; }
.pt-pr-cust-item {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid #1e293b;
}
.pt-pr-cust-item__art {
  display: flex; flex-wrap: wrap; gap: .4rem;
  width: 120px; flex-shrink: 0;
}
.pt-pr-cust-thumb {
  width: 56px; height: 56px; object-fit: contain;
  background: #0f172a; border: 1px solid #334155; border-radius: 6px;
}
.pt-pr-cust-thumb--empty {
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #64748b;
}
.pt-pr-cust-item__title { font-size: 1.05rem; margin-bottom: .25rem; }
.pt-pr-cust-sku { color: #94a3b8; font-weight: 600; font-size: .85rem; }
.pt-pr-cust-item__meta { font-size: .85rem; color: #94a3b8; }
.pt-pr-cust-locs { margin: .35rem 0; padding-left: 1.1rem; color: #cbd5e1; font-size: .85rem; }
.pt-pr-cust-item__price { margin-top: .4rem; font-size: .95rem; }
.pt-pr-cust-footer {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #334155;
  color: #94a3b8; font-size: .9rem;
}
.pt-pr-customer-actions { margin: 1.25rem 0; text-align: center; }
@media print {
  .no-print, .pt-topbar, .pt-pr-customer-actions { display: none !important; }
  .pt-pr-customer { color: #000; }
  .pt-pr-cust-co-name, .pt-pr-cust-item__title, .pt-pr-cust-quote-meta h1 { color: #000; }
}

/* Order staff notes */
.pt-order-notes {
  margin: .75rem 0 .35rem;
  padding: .7rem .8rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
}
.pt-order-notes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .35rem;
}
.pt-order-notes__title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #93c5fd;
}
.pt-order-notes__fb { font-size: .75rem; font-weight: 600; color: #94a3b8; }
.pt-order-notes__fb--ok { color: #34d399; }
.pt-order-notes__fb--err { color: #f87171; }
.pt-order-notes__ta {
  width: 100%;
  min-height: 4.2rem;
  resize: vertical;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: .5rem .6rem;
  font: inherit;
  font-size: .9rem;
  line-height: 1.4;
  margin-bottom: .45rem;
}
.pt-staff-note-indicator {
  display: inline-block;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #dbeafe;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.pt-order-header__dist-loc-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  width: 100%;
}
.pt-order-header__dist-loc-input {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: .25rem .45rem;
  min-width: 12rem;
  max-width: 18rem;
}

.pt-mi-line {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.pt-mi-reprinted {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  cursor: pointer;
}
.pt-mi-hold-note {
  margin-top: .2rem;
  font-size: .75rem;
  font-weight: 700;
  color: #fbbf24;
  white-space: pre-line;
}

.pt-mi-line--reprinted {
  opacity: .42;
  filter: grayscale(.7);
  background: #0f172a;
  border-radius: 8px;
  padding: .35rem;
}
.pt-mi-line--reprinted .pt-mi-qr {
  opacity: .5;
}

.pt-pr-loc-fee-lbl {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
}
.pt-pr-loc-fee { width: 7rem; }
.pt-pr-loc-set-head { font-size: .75rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; }

.pt-pr-color-picks {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
  max-height: 7.2rem;
  overflow: auto;
  padding: .1rem 0;
}
.pt-pr-color-chip {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: .25rem;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 4px;
  padding: .12rem .35rem .12rem .12rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.pt-pr-swatch {
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.4);
  flex: 0 0 12px !important;
}
.pt-pr-color-name {
  font-size: 8px !important;
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1;
}
.pt-pr-color-chip.is-on {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #fff;
}

#pt-tasks-week .pt-cal-ev--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .28rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .4rem .45rem;
  overflow: hidden;
}
#pt-tasks-week .pt-cal-ev--stack .pt-cal-ev__title {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  font-weight: 700;
  line-height: 1.25;
  color: #fda4af;
}
#pt-tasks-week .pt-cal-ev--stack .pt-cal-ev__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}
#pt-tasks-week .pt-cal-ev--stack .pt-cal-ev__row--meta {
  color: #94a3b8;
  font-size: .75rem;
}
#pt-tasks-week .pt-cal-ev--stack .pt-task-pill,
#pt-tasks-week .pt-cal-ev--stack .pt-staff-chip {
  flex: 0 0 auto;
}
#pt-tasks-week .pt-week-col__body {
  overflow-x: hidden;
  overflow-y: auto;
}
#pt-tasks-week .pt-task-pill--rush,
#pt-tasks-calendar .pt-task-pill--rush {
  background: #be123c;
  color: #fff;
  animation: pt-rush-pulse 1.1s ease-in-out infinite;
}
@keyframes pt-rush-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, .55); opacity: 1; }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); opacity: 1; }
}

.pt-task-group[data-status="_HOT"] .pt-task-group__header {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #fecaca;
}
.pt-task-group[data-status="_HOT"] .pt-task-group__title {
  color: #fecaca;
  letter-spacing: .04em;
}
.pt-task-group[data-status="_HOT"] .pt-task-group__count {
  background: #ef4444;
  color: #fff;
}

.pt-order-row__num {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.pt-pers-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .28rem;
  border-radius: 4px;
  background: #7c3aed;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  animation: pt-pers-flash 1s ease-in-out infinite;
  vertical-align: middle;
  margin-left: .25rem;
}
.pt-pers-flag--lg {
  min-width: 2rem;
  height: 2rem;
  font-size: 1.15rem;
  border-radius: 6px;
  margin-left: .5rem;
}
@keyframes pt-pers-flash {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(167, 139, 250, .7); transform: scale(1); }
  50% { opacity: .65; box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); transform: scale(1.08); }
}
.pt-log-entry__item {
  display: inline-block;
  margin-right: .35rem;
  color: #93c5fd;
  font-weight: 600;
}

.pt-item-hold-note__text, .pt-packing-row__note { white-space: pre-wrap; }
#pt-hold-note-add { margin-top: .4rem; width: 100%; }

.pt-packing-row__status-col { width: 9.5rem; }
.pt-packing-row__advance-col { width: 4.5rem; }
.pt-packing-row__status-col .pt-badge {
  font-size: 1.05rem;
  font-weight: 800;
  padding: .55rem .85rem;
  letter-spacing: .04em;
  min-width: 7.2rem;
  text-align: center;
}
.pt-packing-advance {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  font-size: 1.15rem;
}

.pt-pers-text {
  margin-left: .35rem;
  color: #e9d5ff;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: 0;
  animation: none;
}
.pt-order-row__num .pt-pers-text { font-size: .85rem; max-width: 16rem; }
.pt-packing-row__seq-badge { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }

.pt-order-header__batch {
  display: inline-block;
  margin-left: .65rem;
  padding: .2rem .55rem;
  border-radius: 6px;
  background: #1d4ed8;
  color: #fff;
  font-size: .85em;
  font-weight: 800;
  text-decoration: none;
  vertical-align: middle;
}

.pt-status-card__tracking { margin: .75rem 0; padding: .7rem .85rem; border-radius: 8px; background: #0f2744; }
.pt-status-card__tracking-num { color: #93c5fd; font-weight: 800; font-size: 1.05rem; word-break: break-all; }

.pt-nav { display:flex; align-items:center; gap:.35rem; }
.pt-nav__drop { position:relative; }
.pt-nav__btn {
  background:#1e293b; color:#e2e8f0; border:1px solid #334155; border-radius:8px;
  padding:.4rem .7rem; font-weight:700; cursor:pointer;
}
.pt-nav__btn:hover, .pt-nav__drop:focus-within .pt-nav__btn { background:#334155; }
.pt-nav__menu {
  display:none; position:absolute; top:calc(100% + 4px); left:0; min-width:11rem; z-index:50;
  background:#0f172a; border:1px solid #334155; border-radius:8px; padding:.35rem; box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.pt-nav__drop:hover .pt-nav__menu, .pt-nav__drop:focus-within .pt-nav__menu { display:flex; flex-direction:column; }
.pt-nav__menu a { color:#e2e8f0; text-decoration:none; padding:.45rem .6rem; border-radius:6px; font-weight:600; }
.pt-nav__menu a:hover { background:#1e293b; }
@media (max-width: 800px) {
  .pt-nav { flex-wrap:wrap; }
}

.pt-topbar { display:flex; align-items:center; gap:.6rem; }
.pt-nav-left { display:flex; align-items:center; gap:.55rem; min-width:0; }
.pt-brand { display:flex; align-items:center; flex:0 0 auto; background:transparent; border:0; padding:0; cursor:pointer; }
.pt-brand[aria-expanded="true"] { outline:2px solid #2563eb; border-radius:10px; }
.pt-brand img { width:38px; height:38px; border-radius:8px; display:block; }
.pt-nav { display:flex; align-items:center; gap:.4rem; }
.pt-nav .pt-nav__btn,
.pt-nav .pt-nav__btn--sales,
.pt-nav .pt-nav__btn--prod,
.pt-nav .pt-nav__btn--admin {
  color:#fff !important; border:0 !important; border-radius:8px; padding:.45rem .8rem;
  font-weight:800; cursor:pointer; box-shadow:none !important; text-decoration:none;
}
.pt-nav .pt-nav__btn--sales { background:#dc2626 !important; }
.pt-nav .pt-nav__btn--sales:hover { background:#b91c1c !important; }
.pt-nav .pt-nav__btn--prod { background:#2563eb !important; }
.pt-nav .pt-nav__btn--prod:hover { background:#1d4ed8 !important; }
.pt-nav .pt-nav__btn--admin { background:#64748b !important; }
.pt-nav .pt-nav__btn--admin:hover { background:#475569 !important; }
.pt-nav__tasks {
  background:#16a34a; color:#fff; text-decoration:none; border-radius:8px;
  padding:.45rem .8rem; font-weight:800; letter-spacing:.03em;
}
.pt-nav__tasks:hover { background:#15803d; }
.pt-topbar__actions { margin-left:auto; display:flex; align-items:center; gap:.4rem; }

.pt-nav__dash, .pt-nav__tasks, .pt-nav__menu-toggle {
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff !important; text-decoration:none; border:0; border-radius:8px;
  padding:.5rem .85rem; font-weight:800; letter-spacing:.02em; cursor:pointer;
}
.pt-nav__dash { background:#2563eb; }
.pt-nav__tasks { background:#16a34a; }
.pt-nav__menu-toggle { background:#334155; }
.pt-nav__desktop { display:flex; align-items:center; gap:.4rem; }
.pt-nav__tablet { display:none; position:relative; }
.pt-nav__sheet {
  position:absolute; top:calc(100% + 6px); left:0; z-index:80; min-width:16rem;
  background:#0f172a; border:1px solid #334155; border-radius:10px; padding:.5rem;
  box-shadow:0 12px 28px rgba(0,0,0,.4);
}
.pt-nav__group { display:flex; flex-direction:column; padding:.25rem 0 .4rem; }
.pt-nav__group span { color:#94a3b8; font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:.2rem .55rem; }
.pt-nav__group a { color:#e2e8f0; text-decoration:none; padding:.55rem .55rem; border-radius:6px; font-weight:700; }
.pt-nav__group a:hover, .pt-nav__group a:active { background:#1e293b; }
.pt-topbar { flex-wrap:wrap; }
@media (max-width: 1280px) {
  .pt-nav__desktop { display:none; }
  .pt-nav__tablet { display:block; }
  .pt-topbar__actions { flex-wrap:wrap; justify-content:flex-end; }
  .pt-topbar__actions .pt-btn { padding:.4rem .55rem; }
}

/* Every page: icon + Dashboard + Tasks + Menu on row 1; back/title on row 2 */
.pt-topbar:has(.pt-topbar__back)::after,
.pt-topbar:has(.pt-topbar__logo)::after,
.pt-topbar:has(.pt-breadcrumb)::after {
  content: "";
  order: 2;
  flex-basis: 100%;
  height: 0;
}
.pt-topbar .pt-nav-left { order: 1; }
.pt-topbar .pt-topbar__actions { order: 2; margin-left: auto; }
.pt-topbar .pt-topbar__back,
.pt-topbar .pt-topbar__logo,
.pt-topbar .pt-topbar__version,
.pt-topbar .pt-breadcrumb { order: 3; }
.pt-topbar .pt-topbar__logo { font-size: 1rem; }

.pt-nav-left { position: relative; }
.pt-nav__tablet { display:block; }
.pt-nav__tablet .pt-nav__sheet { left: 0; }
@media (min-width: 1281px) {
  .pt-nav__tablet { display:block; }
}

.pt-pers-confirm {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.pt-pers-confirm__card {
  width: min(520px, 94vw); background: #0f172a; color: #f8fafc;
  border: 2px solid #f59e0b; border-radius: 16px; padding: 1.4rem 1.3rem 1.2rem; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.pt-pers-confirm__flag {
  width: 64px; height: 64px; margin: 0 auto .6rem; border-radius: 50%;
  background: #f59e0b; color: #111; font-size: 2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  animation: ptPersPulse 1s ease-in-out infinite;
}
@keyframes ptPersPulse { 50% { transform: scale(1.08); } }
.pt-pers-confirm__card h2 { margin: .2rem 0 .4rem; font-size: 1.45rem; }
.pt-pers-confirm__card p { margin: 0 0 .7rem; font-size: 1.05rem; color: #e2e8f0; }
.pt-pers-confirm__text {
  background: #1e293b; border-radius: 10px; padding: .7rem .8rem; margin-bottom: 1rem;
  text-align: left; font-weight: 700; line-height: 1.45;
}
.pt-pers-confirm__ok,
.pt-pers-confirm .pt-pers-confirm__ok {
  display: block; width: 100%; min-height: 72px; border: 0 !important; border-radius: 12px;
  background: #16a34a !important; color: #fff !important; font-size: 1.7rem; font-weight: 900;
  cursor: pointer; box-shadow: none !important;
}
.pt-pers-confirm__ok:hover { background: #15803d !important; }
.pt-pers-confirm__cancel,
.pt-pers-confirm .pt-pers-confirm__cancel {
  display: block; width: 70%; margin: .6rem auto 0; min-height: 44px; border: 0 !important; border-radius: 10px;
  background: #dc2626 !important; color: #fff !important; font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: none !important;
}
.pt-pers-confirm__cancel:hover { background: #b91c1c !important; }

.pt-voice__row { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.pt-voice-player { display:block; width:100%; margin:.45rem 0; }
#pt-voice-stop { background:#dc2626 !important; color:#fff !important; border:0 !important; }

.pt-nav__board { background:#7c3aed; color:#fff !important; text-decoration:none; border-radius:8px; padding:.5rem .85rem; font-weight:800; }
.pt-board { display:grid; grid-template-columns: 260px 1fr; gap:1rem; min-height:70vh; }
.pt-board__channels { background:#0f172a; border:1px solid #334155; border-radius:12px; padding:.4rem; display:flex; flex-direction:column; gap:.25rem; }
.pt-board__ch { text-align:left; background:#1e293b; color:#e2e8f0; border:0; border-radius:8px; padding:.6rem .7rem; cursor:pointer; display:flex; justify-content:space-between; gap:.4rem; }
.pt-board__ch.is-active { background:#312e81; }
.pt-board__ch em { background:#f59e0b; color:#111; border-radius:999px; padding:0 .4rem; font-style:normal; font-weight:800; }
.pt-board__main { display:flex; flex-direction:column; min-width:0; }
.pt-board__messages { flex:1; overflow:auto; background:#0b1220; border:1px solid #334155; border-radius:12px; padding:.8rem; min-height:360px; }
.pt-board__msg { background:#1e293b; border-radius:10px; padding:.7rem .8rem; margin-bottom:.55rem; }
.pt-board__meta { color:#94a3b8; font-size:.8rem; margin-bottom:.25rem; }
.pt-board__composer { margin-top:.6rem; }
.pt-board__composer textarea { width:100%; }
.pt-board__composer-row { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:.4rem; }
.pt-board-toast { position:fixed; right:1rem; bottom:1rem; z-index:15000; background:#1e293b; color:#fff; border:1px solid #7c3aed; border-radius:12px; padding:.8rem 1rem; max-width:320px; box-shadow:0 10px 24px rgba(0,0,0,.35); }
@media (max-width: 800px) { .pt-board { grid-template-columns: 1fr; } }

#pt-board-modal.pt-modal { position:fixed; inset:0; z-index:20000; display:flex; align-items:center; justify-content:center; }
#pt-board-modal[hidden] { display:none !important; }
#pt-board-modal .pt-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.7); }
#pt-board-modal .pt-modal__panel { position:relative; z-index:1; width:min(640px,94vw); max-height:90vh; overflow:auto; background:#0f172a; color:#f8fafc; border:1px solid #334155; border-radius:14px; padding:1rem 1.1rem 1.2rem; }
#pt-board-modal .pt-modal__header { display:flex; justify-content:space-between; align-items:center; margin-bottom:.8rem; }
#pt-board-modal .pt-modal__header h2 { margin:0; color:#f8fafc; }
#pt-board-modal .pt-modal__close { background:#334155; color:#fff; border:0; border-radius:50%; width:2rem; height:2rem; cursor:pointer; }
#pt-board-modal .pt-field { display:block; margin-bottom:.7rem; }
#pt-board-modal input[type=text], #pt-board-modal textarea { width:100%; background:#1e293b; color:#f8fafc; border:1px solid #475569; border-radius:8px; padding:.55rem .7rem; }
#pt-board-modal .pt-task-staff-checks { display:flex; flex-wrap:wrap; gap:.4rem; }
#pt-board-modal .pt-task-staff-check { background:#1e293b; color:#f8fafc; border:1px solid #475569; border-radius:999px; padding:.35rem .6rem; }
#pt-board-modal button[type=submit] { background:#16a34a !important; color:#fff !important; border:0 !important; min-height:44px; border-radius:10px; font-weight:800; padding:.5rem 1rem; }

.pt-board__ch { display:flex; flex-direction:column; align-items:flex-start; color:#fff !important; border:0; text-align:left; }
.pt-board__ch-name { font-weight:800; }
.pt-board__ch-sub { font-size:.75rem; opacity:.9; }
.pt-board__ch.is-active { outline:3px solid #fff; }
.pt-board-colors { display:flex; gap:.4rem; flex-wrap:wrap; margin-top:.35rem; }
.pt-board-swatch { width:34px; height:34px; border-radius:8px; border:2px solid transparent; cursor:pointer; }
.pt-board-swatch.is-on { border-color:#fff; box-shadow:0 0 0 2px #2563eb; }

#pt-board .pt-board__ch {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: .15rem !important;
  white-space: normal !important;
}
#pt-board .pt-board__ch-name,
#pt-board .pt-board__ch-sub {
  display: block !important;
  width: 100%;
  line-height: 1.2;
}
#pt-board .pt-board__ch-sub { font-size: .75rem; font-weight: 600; opacity: .95; }

.pt-board-form-actions { display:flex; gap:.5rem; align-items:center; }
#pt-board-delete { background:#dc2626 !important; color:#fff !important; border:0 !important; min-height:44px; border-radius:10px; font-weight:800; padding:.5rem 1rem; }
