:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #f4f1e9;
  --line: #ece6d9;
  --text: #34342f;
  --muted: #85847f;
  --green: #5a915f;
  --green-dark: #46784b;
  --green-soft: #edf7ee;
  --orange-soft: #fff1e2;
  --orange-text: #eb8e3f;
  --sale: #d95f34;
  --sale-soft: #fff0e8;
  --shadow: 0 12px 30px rgba(83, 72, 50, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --pf-deep-green: #263d2d;
  --pf-cream: #f5f0e7;
  --pf-coral: #b84f2c;
  --pf-sun: #f4c542;
  --pf-card-radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.pf-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.pf-topbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) {
  background: var(--pf-cream);
  color: var(--pf-deep-green);
}

body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-topbar {
  border-color: rgba(38, 61, 45, 0.14);
  background: rgba(245, 240, 231, 0.96);
  box-shadow: 0 10px 24px rgba(38, 61, 45, 0.08);
}

.pf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.pf-brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}

.pf-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
}

.pf-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.pf-topbar-search {
  display: block;
}

.pf-topbar-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
}

.pf-link-button,
.pf-cart-button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.pf-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  transform: translateZ(0);
}

.pf-nav-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.pf-nav-button.is-active,
.pf-cart-button.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

#cart-count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ec8d40;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateZ(0);
}

.pf-main,
.pf-vendor-main,
.pf-form,
.pf-products-grid,
.pf-cart-items,
.pf-overview-orders,
.pf-deliveries-list,
.pf-products-admin-list,
.pf-report-table,
.pf-automation-list {
  display: grid;
  gap: 20px;
}

.pf-page {
  display: grid;
  gap: 20px;
}

#shop-page,
#checkout-stage {
  color: var(--pf-deep-green);
}

#shop-page .pf-order-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: 22px 24px;
  border: 1px solid rgba(38, 61, 45, 0.12);
  border-radius: var(--pf-card-radius);
  background: var(--pf-deep-green);
  color: var(--pf-cream);
  box-shadow: 0 14px 28px rgba(38, 61, 45, 0.12);
}

#shop-page .pf-order-hero h1 {
  margin: 2px 0 6px;
  max-width: 680px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

#shop-page .pf-order-hero p:last-child {
  margin: 0;
  color: rgba(245, 240, 231, 0.82);
}

#shop-page .pf-order-hero .pf-kicker {
  color: var(--pf-sun);
}

#shop-page .pf-order-hero-note {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(244, 197, 66, 0.4);
  border-radius: 999px;
  color: var(--pf-sun);
  font-size: 0.82rem;
  font-weight: 800;
}

.pf-hero {
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(28, 34, 21, 0.82), rgba(28, 34, 21, 0.28)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.pf-hero-overlay {
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 24px;
}

.pf-hero-copy {
  max-width: 420px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
}

.pf-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.pf-hero-copy p {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pf-store-meta,
.pf-categories,
.pf-products-section,
.pf-checkout-stage,
.pf-vendor-main {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.pf-store-meta,
.pf-categories,
.pf-products-section,
.pf-checkout-stage,
.pf-vendor-main,
.pf-login-panels {
  padding: 24px;
}

#account-page {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}

.pf-store-head,
.pf-section-head,
.pf-vendor-toolbar,
.pf-delivery-head,
.pf-overview-order-row,
.pf-cart-header,
.pf-cart-total-row,
.pf-session-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pf-store-select label,
.pf-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.pf-info-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.pf-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  color: var(--orange-text);
  font-weight: 600;
}

.pf-success-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #eef9ef;
  color: #265d31;
  font-weight: 600;
}

.pf-error-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #fff1f1;
  color: #8f2f2f;
  font-weight: 600;
}

.pf-info-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #fbf7ef;
  color: #675a42;
  font-weight: 600;
}

.pf-label-text {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.pf-role-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pf-supplier-editor,
.pf-mercuriale-preview,
.pf-daily-pricing-list {
  display: grid;
  gap: 16px;
}

.pf-supplier-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pf-supplier-editor-table {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.pf-supplier-editor-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.6fr)
    minmax(180px, 1.45fr)
    minmax(82px, 0.7fr)
    minmax(90px, 0.8fr)
    minmax(110px, 0.95fr)
    minmax(110px, 0.9fr)
    minmax(96px, 0.8fr)
    minmax(110px, 0.95fr)
    minmax(74px, 0.58fr);
  gap: 8px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  min-width: 1120px;
  width: 100%;
  max-width: 100%;
}

.pf-supplier-editor-head-row {
  background: transparent;
  border: none;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.pf-supplier-editor-head-row span {
  padding: 0 4px;
  min-width: 0;
}

.pf-supplier-editor-row-warning {
  border-color: #f0c59a;
  background: #fff8ef;
}

.pf-supplier-line-price {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}

.pf-supplier-editor-check {
  justify-self: start;
  align-self: center;
}

.pf-supplier-editor-row > * {
  min-width: 0;
}

.pf-supplier-editor-row label {
  min-width: 0;
}

.pf-supplier-editor-row input,
.pf-supplier-editor-row select {
  min-width: 0;
  padding: 11px 12px;
  font-size: 0.95rem;
}

.pf-mercuriale-table {
  display: grid;
  gap: 10px;
}

.pf-mercuriale-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pf-mercuriale-row div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
}

.pf-daily-price-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) 120px 110px 130px;
  gap: 16px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.pf-daily-price-row label {
  min-width: 0;
}

.pf-apply-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #cae1cc;
  background: #f2fbf3;
  color: #295b30;
}

.pf-category-list {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.pf-categories {
  position: sticky;
  top: 94px;
  z-index: 12;
  box-shadow: 0 10px 24px rgba(83, 72, 50, 0.06);
  overflow: hidden;
}

.pf-catalogue-search {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
  color: var(--pf-deep-green);
  font-weight: 700;
}

.pf-catalogue-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(38, 61, 45, 0.16);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: var(--pf-deep-green);
}

.pf-catalogue-search input:focus-visible {
  outline: 3px solid rgba(38, 61, 45, 0.24);
  outline-offset: 2px;
}

.pf-catalog-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.pf-search-box {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.pf-search-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 14px 18px;
}

#family-filters {
  margin-top: 12px;
}

.pf-category-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.pf-category-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.pf-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  justify-content: start;
  align-items: start;
}

.pf-pagination {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.pf-pagination-summary {
  color: var(--muted);
  font-weight: 600;
}

.pf-pagination-actions {
  display: flex;
  gap: 12px;
}

.pf-product-card,
.pf-card,
.pf-auth-card,
.pf-delivery-card,
.pf-product-admin-row,
.pf-stat-card,
.pf-shortcut-card,
.pf-overview-order-row,
.pf-delivered-row,
.pf-automation-row,
.pf-report-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pf-product-card {
  position: relative;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-radius: 16px;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 100%;
  transform: translateZ(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

#shop-page .pf-product-card .pf-product-image-shell {
  border-radius: calc(var(--pf-card-radius) - 2px);
}

#shop-page .pf-product-quantity {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
  border: 2px solid var(--pf-cream);
  border-radius: 999px;
  background: var(--pf-coral);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(38, 61, 45, 0.18);
}

.pf-product-image-shell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(180deg, #faf8f1, #f0ece2);
  overflow: hidden;
}

.pf-product-image,
.pf-cart-thumb,
.pf-product-admin-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-product-content {
  padding-top: 0;
}

.pf-product-topline {
  min-height: 18px;
  margin-bottom: 0;
}

.pf-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--muted);
}

.pf-product-badge.is-destockage {
  background: var(--sale-soft);
  color: var(--sale);
  box-shadow: 0 0 0 1px rgba(217, 95, 52, 0.08) inset;
}

.pf-product-content h3,
.pf-card h2,
.pf-page-title,
.pf-cart-header h2,
.pf-modal-head h2 {
  margin: 0;
}

.pf-product-price-line {
  margin: 4px 0 2px;
  display: flex;
  gap: 4px;
  align-items: baseline;
  color: var(--green);
  flex-wrap: wrap;
}

.pf-product-price-line strong {
  font-size: 1rem;
}

.pf-product-content h3 {
  font-size: 0.95rem;
  line-height: 1.22;
  min-height: 2.45em;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-product-inline-note {
  font-size: 0.78rem;
  line-height: 1.2;
  min-height: 1.5em;
}

.pf-add-button {
  position: static;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--green);
  color: white;
  font-size: 1.15rem;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pf-add-button.is-pressed {
  transform: scale(0.94);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.18);
}

.pf-product-card.is-added {
  border-color: rgba(22, 163, 74, 0.34);
  background: linear-gradient(180deg, #ffffff, #f5fbf5);
  box-shadow:
    var(--shadow),
    0 0 0 2px rgba(22, 163, 74, 0.08);
}

.pf-cart-button.is-pulsing,
#cart-count-badge.is-pulsing {
  animation: pf-cart-pulse 220ms ease;
}

.pf-cart-toast {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 16px;
  background: rgba(30, 41, 35, 0.94);
  color: #fff;
  box-shadow: 0 16px 32px rgba(23, 26, 24, 0.22);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 600;
}

.pf-cart-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes pf-cart-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.pf-product-inline-note,
.pf-muted {
  color: var(--muted);
}

.pf-card,
.pf-auth-card,
.pf-stat-card,
.pf-shortcut-card,
.pf-delivery-card {
  padding: 22px;
}

.pf-checkout-grid,
.pf-login-panels,
.pf-settings-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.pf-checkout-main-card {
  display: grid;
  gap: 18px;
}

.pf-checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pf-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfa;
}

#checkout-stage .pf-step-card.is-active {
  border-color: var(--pf-deep-green);
  background: var(--pf-deep-green);
  color: var(--pf-cream);
  box-shadow: 0 8px 18px rgba(38, 61, 45, 0.14);
}

#checkout-stage .pf-step-card.is-active span {
  background: var(--pf-sun);
  color: var(--pf-deep-green);
}

#checkout-stage .pf-step-card.is-completed {
  border-color: rgba(214, 107, 61, 0.42);
  background: #fff7ec;
}

#checkout-stage .pf-step-card.is-completed span {
  background: var(--pf-coral);
  color: #fff;
}

.pf-step-card span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.pf-section-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pf-summary-card {
  align-self: start;
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
}

.pf-summary-lines p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.pf-total-line {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.pf-address-box,
.pf-session-box,
.empty-box {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--muted);
}

.pf-address-box p {
  margin: 10px 0 0;
  line-height: 1.5;
}

.pf-quick-checkout {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdf8, #f7f3e9);
}

.pf-client-loyalty {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e6decd;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f9fcf5, #f5f2e8);
}

.pf-loyalty-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pf-loyalty-hero h3 {
  margin: 0;
}

.pf-loyalty-badge {
  min-width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.pf-loyalty-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.pf-loyalty-card,
.pf-loyalty-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
}

.pf-loyalty-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.pf-loyalty-card span {
  font-size: 1.2rem;
}

.pf-loyalty-card strong {
  font-size: 1.4rem;
}

.pf-loyalty-card small {
  color: var(--muted);
}

.pf-loyalty-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.pf-loyalty-panel {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.pf-loyalty-panel h4 {
  margin: 0;
}

.pf-loyalty-list {
  display: grid;
  gap: 10px;
}

.pf-loyalty-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.pf-loyalty-rank {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.pf-loyalty-list-item small,
.pf-loyalty-highlight {
  color: var(--muted);
}

.pf-loyalty-highlights {
  display: grid;
  gap: 10px;
}

.pf-loyalty-highlight {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.pf-loyalty-highlight strong {
  color: var(--text);
}

.pf-quick-checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pf-client-modal-card {
  width: min(760px, calc(100% - 24px));
  max-height: min(90vh, 860px);
  overflow: auto;
}

.pf-form {
  gap: 16px;
}

#product-create-form {
  overflow-y: auto;
  padding-right: 4px;
}

.pf-form input,
.pf-form textarea,
.pf-form select,
.pf-vendor-toolbar input,
.pf-store-select select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--text);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pf-form textarea {
  resize: vertical;
}

.pf-primary-button,
.pf-secondary-button,
.pf-inline-button {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.pf-primary-button {
  background: var(--green);
  color: white;
}

.pf-secondary-button {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.pf-inline-button {
  display: inline-flex;
  align-items: center;
}

.pf-radio-row,
.pf-terms-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pf-radio-row input,
.pf-terms-row input {
  width: auto;
  margin-top: 4px;
}

.pf-slot-box,
.pf-payment-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.pf-cart-drawer,
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.pf-cart-backdrop,
.pf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 20, 0.58);
}

.pf-cart-panel,
.pf-modal-card {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  background: white;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  box-shadow: -12px 0 40px rgba(20, 18, 13, 0.14);
  overflow: hidden;
}

.pf-modal-card {
  width: min(560px, calc(100% - 24px));
  height: auto;
  max-height: min(88vh, 860px);
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  border-radius: 20px;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.pf-proof-modal-card {
  max-width: 620px;
}

.pf-proof-preview {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

.pf-proof-preview img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 12px;
}

.pf-close-button {
  border: none;
  background: transparent;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
}

.pf-cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.pf-cart-line-mid {
  min-width: 110px;
  text-align: right;
}

.pf-cart-items {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  align-content: start;
}

.pf-cart-footer {
  position: relative;
  z-index: 1;
  background: white;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.pf-cart-line-left,
.pf-product-admin-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pf-cart-thumb,
.pf-product-admin-image {
  width: 62px;
  min-width: 62px;
}

.pf-cart-line-left p,
.pf-delivery-card p,
.pf-overview-order-row p,
.pf-product-admin-main p,
.pf-delivered-row p {
  margin: 4px 0 0;
}

.pf-cart-line-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pf-auth-panel {
  display: grid;
  gap: 20px;
}

.pf-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pf-account-page {
  display: grid;
  gap: 20px;
}

body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-mobile-cart-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 25;
  min-height: 54px;
  border: none;
  border-radius: 16px;
  background: var(--pf-coral);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.28);
}

.pf-mini-button,
.pf-mini-remove,
.pf-icon-chip {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: white;
  cursor: pointer;
}

.pf-mini-remove {
  color: #ef6565;
}

.pf-vendor-toolbar,
.pf-vendor-tabs,
.pf-dashboard-stats,
.pf-shortcut-grid,
.pf-inline-actions,
.pf-delivery-actions,
.pf-modal-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pf-vendor-tabs {
  padding: 16px 22px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.pf-vendor-summary {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.pf-vendor-summary-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pf-vendor-account-logo {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 16px;
  background: white;
}

.pf-vendor-summary-main h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.02;
}

.pf-vendor-summary-main p {
  margin: 0;
}

.pf-vendor-tab-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.pf-vendor-tab-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.pf-vendor-tab-panel {
  display: none;
  gap: 20px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.pf-vendor-tab-panel.active {
  display: grid;
}

.pf-page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
}

.pf-stat-card {
  min-width: 220px;
  flex: 1 1 220px;
}

.pf-stat-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 18px;
}

.pf-stat-card strong {
  display: block;
  font-size: 2rem;
}

.pf-stat-card small {
  color: var(--muted);
}

.pf-shortcut-card {
  flex: 1 1 220px;
  text-align: left;
  cursor: pointer;
}

.pf-shortcut-card span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.pf-order-detail-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdf8, #f8f3e8);
  display: grid;
  gap: 16px;
}

.pf-order-detail-card h3 {
  margin: 0;
}

.pf-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pf-order-detail-grid p,
.pf-order-detail-lines {
  margin: 6px 0 0;
}

.pf-order-detail-lines {
  display: grid;
  gap: 10px;
}

.pf-order-comment-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.pf-order-comment-box p {
  margin: 0;
  white-space: pre-wrap;
}

.pf-order-comment-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.pf-order-line-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pf-overview-orders {
  display: grid;
  gap: 14px;
}

.pf-overview-order-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}

.pf-overview-order-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}

.pf-overview-order-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.pf-overview-order-expand {
  padding: 0 18px 18px;
}

.pf-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.pf-status-pill.success {
  background: var(--green-soft);
  color: var(--green);
}

.pf-status-pill.info {
  background: #edf1ff;
  color: #4b64c8;
}

.pf-status-pill.warning {
  background: var(--orange-soft);
  color: var(--orange-text);
}

.pf-history-list,
.pf-orders-board {
  display: grid;
  gap: 12px;
}

.pf-history-group {
  display: grid;
  gap: 12px;
}

.pf-history-group h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.pf-day-focus,
.pf-week-list {
  display: grid;
  gap: 12px;
}

.pf-week-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pf-week-row:hover {
  border-color: #d9cfbb;
  background: var(--surface-soft);
}

.pf-week-row.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.pf-history-row,
.pf-order-board-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pf-clickable-card {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pf-clickable-card:hover {
  transform: translateY(-1px);
  border-color: #d9cfbb;
  box-shadow: var(--shadow);
}

.pf-history-row p,
.pf-order-board-row p {
  margin: 4px 0 0;
}

.pf-history-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.pf-history-item.open {
  border-color: #d9cfbb;
  box-shadow: var(--shadow);
}

.pf-history-item .pf-history-row {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pf-history-expand {
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
}

.pf-history-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 1.2rem;
  line-height: 1;
}

.client-view-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.pf-history-meta,
.pf-order-board-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.order-doc-link {
  text-decoration: none;
}

.pf-invoice-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #d8e3d6;
  background: linear-gradient(180deg, #f6fbf4, #edf6ea);
  text-decoration: none;
  color: inherit;
}

.pf-invoice-widget-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #d8e3d6;
  font-size: 1rem;
}

.pf-invoice-widget-copy {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
}

.pf-invoice-widget-copy strong {
  font-size: 0.92rem;
  color: var(--green-dark);
}

.pf-invoice-widget-copy small {
  color: var(--muted);
}

.pf-order-board-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pf-order-rank {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff6df, #f6ead2);
  border: 1px solid #ead9ae;
  font-size: 1.25rem;
}

.pf-gamified-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pf-game-chip {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #f8f3e8);
  box-shadow: var(--shadow);
}

.pf-game-chip span {
  font-size: 1.1rem;
}

.pf-game-chip strong {
  font-size: 1rem;
}

.pf-game-chip small {
  color: var(--muted);
}

.pf-report-head,
.pf-report-row {
  display: grid;
  grid-template-columns: 1.3fr 0.5fr 0.4fr;
  gap: 16px;
  align-items: center;
}

.pf-report-head {
  padding: 0 14px 10px;
  color: var(--muted);
}

.pf-report-row {
  padding: 16px 14px;
  box-shadow: none;
}

.pf-report-table-extended .pf-report-head,
.pf-report-table-extended .pf-report-row {
  grid-template-columns: minmax(180px, 1.6fr) 80px 90px 120px 110px 130px;
}

.pf-report-row-editable {
  align-items: center;
}

.pf-report-input {
  margin: 0;
}

.pf-report-input input {
  width: 100%;
}

.pf-report-price-box {
  font-weight: 800;
  color: var(--green-dark);
}

.pf-report-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 14px 0;
}

.pf-morning-dispatch {
  display: grid;
  gap: 14px;
}

.pf-morning-dispatch-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fffdfa;
  display: grid;
  gap: 12px;
}

.pf-morning-dispatch-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.pf-morning-dispatch-lines {
  display: grid;
  gap: 8px;
}

.pf-morning-dispatch-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f4ec;
}

.pf-qty-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.pf-monthly-invoices {
  display: grid;
  gap: 14px;
}

.pf-monthly-invoice-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdfa;
}

.pf-monthly-invoice-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.pf-monthly-invoice-main strong,
.pf-monthly-invoice-main p {
  overflow-wrap: anywhere;
}

.pf-monthly-invoice-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.pf-monthly-invoice-actions {
  width: 100%;
}

.pf-monthly-discount-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-monthly-discount-label {
  display: grid;
  gap: 6px;
  text-align: left;
}

.pf-monthly-discount-label span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.pf-monthly-discount-label input {
  width: 110px;
}

.pf-monthly-invoice-meta strong {
  font-size: 1.35rem;
}

.pf-deliveries-list {
  gap: 16px;
}

.pf-delivery-card {
  padding: 16px;
  overflow: hidden;
}

.pf-delivery-actions {
  margin-top: 14px;
}

.pf-delivery-assign-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pf-delivery-assign-bar select {
  min-width: 220px;
}

.pf-delivery-select-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.pf-soft-action {
  flex: 1 1 160px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

.pf-soft-action.success {
  background: var(--green-soft);
  color: var(--green);
  border: none;
}

.pf-delivered-block {
  display: grid;
  gap: 12px;
}

.pf-delivered-block h3 {
  margin: 0;
}

.pf-delivered-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.pf-products-admin-list {
  gap: 12px;
}

.pf-products-search-card {
  margin-bottom: 14px;
}

.pf-products-search {
  display: grid;
  gap: 10px;
}

.pf-products-search span {
  font-weight: 700;
}

.pf-products-search input {
  width: 100%;
}

.pf-product-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.pf-product-admin-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pf-product-admin-copy strong,
.pf-product-admin-copy p {
  overflow-wrap: anywhere;
}

.pf-product-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-danger-chip {
  background: #fff2f0;
  color: #bf4a3d;
  border: 1px solid #f1c8c1;
}

.pf-actor-pill {
  display: inline-grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef7ef;
  color: var(--green);
  border: 1px solid #d7ead8;
  min-width: 150px;
  text-align: right;
}

.pf-vendor-summary-role {
  justify-self: start;
}

.pf-actor-pill strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.pf-actor-pill span {
  font-size: 0.84rem;
}

.pf-automation-row {
  padding: 14px 16px;
}

.pf-logo-settings {
  display: grid;
  gap: 12px;
}

.pf-product-image-head {
  margin-bottom: 8px;
}

.pf-product-image-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pf-product-image-settings #product-image-preview {
  min-height: 92px;
  padding: 10px;
}

.pf-product-image-settings #product-image-preview img {
  max-width: 120px;
  max-height: 72px;
}

.pf-logo-preview {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.pf-logo-preview.empty {
  color: var(--muted);
  font-weight: 600;
}

.pf-logo-preview img {
  max-width: 180px;
  max-height: 110px;
  object-fit: contain;
  border-radius: 16px;
}

.pf-card pre,
.email-preview {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.pf-product-image-preview-button .pf-logo-preview {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pf-product-image-preview-button:hover .pf-logo-preview,
.pf-product-image-preview-button:focus-visible .pf-logo-preview {
  border-color: rgba(89, 144, 94, 0.6);
  box-shadow: 0 0 0 4px rgba(89, 144, 94, 0.12);
  transform: translateY(-1px);
}

.pf-modal-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pf-preparation-list {
  display: grid;
  gap: 18px;
}

.pf-preparation-card {
  display: grid;
  gap: 16px;
}

.pf-preparation-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.pf-preparation-order-total span {
  font-size: 1.15rem;
  font-weight: 800;
}

.pf-preparation-line {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(217, 205, 184, 0.55);
}

.pf-preparation-line.is-adjusted {
  background: #fff5e9;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #f3d0a4;
}

.pf-preparation-line.is-rupture {
  background: #fff1f1;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #efb0b0;
}

.pf-preparation-line:last-child {
  border-bottom: none;
}

.pf-preparation-line-main {
  display: grid;
  gap: 4px;
}

.pf-preparation-feedback {
  font-weight: 600;
  color: var(--muted);
}

.pf-preparation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pf-preparation-grid label {
  display: grid;
  gap: 6px;
}

.pf-preparation-total-box {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}

.pf-preparation-total-box strong {
  font-size: 1.05rem;
}

.pf-quotes-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}

.pf-quote-line {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(90px, 0.5fr) minmax(120px, 0.7fr) minmax(110px, 0.6fr) minmax(160px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.pf-quote-line-total {
  min-height: 48px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: end;
  font-weight: 700;
  text-align: right;
}

.pf-devis-body {
  --bg: #e8e7df;
  --surface: #fcfbf7;
  --surface-soft: #eef0e6;
  --line: #d4d7c8;
  --text: #2f3428;
  --muted: #6d725f;
  --green: #7d8567;
  --green-dark: #626a51;
  --green-soft: #ecefe3;
  --orange-soft: #f5ede0;
  --orange-text: #94704b;
  --shadow: 0 18px 44px rgba(62, 67, 49, 0.12);
  background:
    radial-gradient(circle at top left, rgba(125, 133, 103, 0.18), transparent 28%),
    linear-gradient(180deg, #efeee8, #e5e4dc 68%, #dddcd5);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.pf-devis-body .pf-shell {
  width: min(1320px, calc(100% - 32px));
  padding-top: 18px;
}

.pf-devis-topbar {
  background: rgba(252, 251, 247, 0.92);
  border: 1px solid rgba(212, 215, 200, 0.8);
  backdrop-filter: blur(14px);
  border-radius: 28px;
}

.pf-devis-brand {
  gap: 16px;
}

.pf-devis-brand span:last-child {
  display: grid;
  gap: 2px;
}

.pf-devis-brand span:last-child strong {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.pf-devis-brand span:last-child small {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.pf-devis-brand-mark {
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #8a9272, #737c5f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pf-devis-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.pf-devis-hero {
  min-height: 360px;
  background:
    linear-gradient(110deg, rgba(58, 63, 46, 0.88), rgba(125, 133, 103, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid rgba(212, 215, 200, 0.7);
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  position: relative;
}

.pf-devis-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  pointer-events: none;
}

.pf-devis-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: end;
}

.pf-devis-hero-copy {
  max-width: 640px;
}

.pf-devis-hero-copy .pf-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pf-devis-hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.pf-devis-hero-copy p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
}

.pf-devis-hero-card {
  justify-self: end;
  width: min(100%, 300px);
  padding: 24px;
  border-radius: 28px;
  background: rgba(252, 251, 247, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 16px;
  color: #f9f8f2;
}

.pf-devis-hero-card img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(23, 28, 18, 0.24);
}

.pf-devis-hero-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.pf-devis-hero-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.pf-devis-body .pf-store-meta,
.pf-devis-body .pf-checkout-stage {
  background: transparent;
  border-left: none;
  border-right: none;
  padding-left: 0;
  padding-right: 0;
}

.pf-devis-body .pf-card {
  background: rgba(252, 251, 247, 0.9);
  border: 1px solid rgba(212, 215, 200, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.pf-devis-body .pf-primary-button,
.pf-devis-body .pf-secondary-button {
  border-radius: 999px;
  padding: 13px 18px;
}

.pf-devis-body .pf-primary-button {
  background: linear-gradient(180deg, #8b9473, #737b60);
  color: #fff;
  border: 1px solid #687053;
}

.pf-devis-body .pf-secondary-button {
  background: #f7f6ef;
  color: var(--text);
  border: 1px solid rgba(125, 133, 103, 0.28);
}

.pf-devis-body input,
.pf-devis-body textarea,
.pf-devis-body select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(125, 133, 103, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  color: var(--text);
}

.pf-devis-body .pf-form label {
  min-width: 0;
  width: 100%;
}

.pf-devis-body .pf-card,
.pf-devis-body .pf-form,
.pf-devis-body .pf-modal-grid,
.pf-devis-body .pf-inline-actions,
.pf-devis-body .pf-quotes-layout,
.pf-devis-body .pf-devis-menu-group,
.pf-devis-body .pf-devis-estimate-card,
.pf-devis-body .pf-devis-estimate-list {
  min-width: 0;
}

.pf-devis-body .pf-modal-grid > *,
.pf-devis-body .pf-quotes-layout > * {
  min-width: 0;
}

.pf-devis-body .pf-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.pf-devis-body #devis-quote-form,
.pf-devis-body #devis-client-form,
.pf-devis-body #devis-settings-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pf-devis-body #devis-quote-form > *,
.pf-devis-body #devis-client-form > *,
.pf-devis-body #devis-settings-form > * {
  min-width: 0;
}

.pf-devis-body #devis-valid-until,
.pf-devis-body #devis-quote-date,
.pf-devis-body #devis-client-select,
.pf-devis-body textarea,
.pf-devis-body select,
.pf-devis-body input {
  display: block;
}

.pf-devis-body input[type="date"] {
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.pf-devis-body input:focus,
.pf-devis-body textarea:focus,
.pf-devis-body select:focus {
  outline: none;
  border-color: #7d8567;
  box-shadow: 0 0 0 4px rgba(125, 133, 103, 0.12);
}

.pf-devis-body .pf-info-bar {
  background: linear-gradient(180deg, #f2f4ea, #eceee3);
  color: #545a49;
  border: 1px solid rgba(125, 133, 103, 0.15);
}

.pf-devis-body .pf-quote-line {
  background: linear-gradient(180deg, #f7f8f2, #f1f3ea);
  border: 1px solid rgba(125, 133, 103, 0.14);
}

.pf-devis-body .pf-product-admin-row {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
}

.pf-devis-menu-group {
  display: grid;
  gap: 10px;
}

.pf-devis-menu-group > strong {
  font-size: 1.05rem;
}

.pf-devis-estimate-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(125, 133, 103, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f8f2, #f0f2e8);
}

.pf-devis-estimate-list {
  display: grid;
  gap: 10px;
}

.pf-devis-estimate-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(125, 133, 103, 0.12);
}

.pf-devis-estimate-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.pf-devis-estimate-row.total {
  background: linear-gradient(180deg, #8b9473, #737b60);
  color: white;
}

.pf-devis-estimate-row.total p {
  color: rgba(255, 255, 255, 0.8);
}

.pf-devis-estimate-values {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .pf-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .pf-categories {
    top: 92px;
  }

  .pf-checkout-grid,
  .pf-login-panels,
  .pf-settings-grid,
  .pf-quotes-layout {
    grid-template-columns: 1fr;
  }

  .pf-summary-card {
    position: static;
  }

  .pf-store-head,
  .pf-section-head,
  .pf-vendor-toolbar,
  .pf-topbar,
  .pf-overview-order-row,
  .pf-delivery-head,
  .pf-cart-header,
  .pf-history-row,
  .pf-order-board-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-topbar-actions,
  .pf-auth-grid,
  .pf-inline-actions,
  .pf-delivery-actions,
  .pf-vendor-toolbar-actions,
  .pf-quick-checkout-head {
    width: 100%;
  }

  .pf-auth-grid {
    grid-template-columns: 1fr;
  }

  .pf-vendor-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }

  .pf-vendor-tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pf-summary-card {
    order: initial;
  }

  .pf-modal-card,
  .pf-client-modal-card,
  .pf-proof-modal-card {
    width: min(100% - 16px, 760px);
  }

  .pf-devis-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pf-devis-hero-card {
    justify-self: start;
  }

  .pf-devis-body .pf-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pf-shell {
    width: min(100% - 12px, 1360px);
  }

  .pf-topbar,
  .pf-store-meta,
  .pf-categories,
  .pf-products-section,
  .pf-checkout-stage,
  #account-page,
  .pf-vendor-main,
  .pf-vendor-tabs,
  .pf-vendor-tab-panel,
  .pf-login-panels {
    padding-left: 14px;
    padding-right: 14px;
  }

  #shop-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  #shop-page .pf-order-hero {
    align-items: flex-start;
    padding: 18px;
  }

  #shop-page .pf-order-hero-note {
    display: none;
  }

  #shop-page .pf-order-hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .pf-topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px;
    top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .pf-topbar-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .pf-brand {
    font-size: 1rem;
  }

  .pf-topbar-actions {
    display: flex;
    gap: 8px;
    width: auto;
    flex-wrap: nowrap;
  }

  .pf-topbar-actions .pf-link-button,
  .pf-topbar-actions .pf-cart-button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.82rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    justify-content: center;
    white-space: nowrap;
  }

  .pf-hero,
  .pf-hero-overlay {
    min-height: 220px;
  }

  .pf-hero-overlay {
    padding: 18px;
  }

  .pf-hero-copy h1 {
    font-size: 2.6rem;
  }

  .pf-info-bar {
    gap: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .pf-products-grid,
  .pf-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  #shop-page .pf-product-card {
    grid-template-columns: 1fr auto;
    padding: 0 0 10px;
    gap: 8px;
    width: auto;
    max-width: none;
    overflow: hidden;
  }

  #shop-page .pf-product-card .pf-product-image-shell {
    grid-column: 1 / -1;
    border-radius: 0;
    aspect-ratio: 1 / 0.88;
  }

  #shop-page .pf-product-card .pf-product-content {
    padding: 0 0 0 10px;
  }

  #shop-page .pf-product-card .pf-add-button {
    align-self: end;
    margin: 0 10px 0 0;
  }

  .pf-product-content h3 {
    font-size: 0.88rem;
    min-height: 1.95em;
  }

  .pf-product-price-line strong {
    font-size: 0.92rem;
  }

  .pf-product-inline-note {
    font-size: 0.64rem;
    min-height: 1.4em;
  }

  #shop-page .pf-add-button {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .pf-card,
  .pf-auth-card,
  .pf-delivery-card,
  .pf-product-admin-row,
  .pf-stat-card,
  .pf-shortcut-card {
    padding: 16px;
  }

  .pf-delivered-row,
  .pf-product-admin-row {
    grid-template-columns: 1fr;
  }

  .pf-cart-panel {
    width: 100%;
    padding: 18px;
  }

  .pf-cart-line {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-cart-line-mid {
    text-align: left;
    min-width: 0;
  }

  .pf-cart-line-actions {
    justify-content: space-between;
  }

  .pf-checkout-grid {
    gap: 14px;
  }

  .pf-checkout-steps {
    grid-template-columns: 1fr 1fr;
  }

  .pf-summary-card {
    gap: 14px;
  }

  .pf-session-box,
  .pf-quick-checkout,
  .pf-slot-box,
  .pf-payment-box,
  .pf-address-box,
  .empty-box {
    padding: 14px;
  }

  .pf-quick-checkout-head,
  .pf-section-head,
  .pf-store-head {
    gap: 12px;
  }

  .pf-inline-actions,
  .pf-delivery-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pf-modal-grid-three,
  .pf-preparation-grid,
  .pf-role-grid,
  .pf-supplier-editor-row {
    grid-template-columns: 1fr;
  }

  .pf-supplier-editor-head-row {
    display: none;
  }

  .pf-report-table-extended .pf-report-head,
  .pf-report-table-extended .pf-report-row {
    grid-template-columns: 1fr;
  }

  .pf-report-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-daily-price-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pf-daily-price-row label {
    min-width: 0;
  }

  .pf-primary-button,
  .pf-secondary-button,
  .pf-inline-button,
  .pf-soft-action {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .pf-order-detail-grid,
  .pf-gamified-bar,
  .pf-loyalty-grid,
  .pf-loyalty-metrics {
    grid-template-columns: 1fr;
  }

  .pf-page-title {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  .pf-stat-card {
    min-width: 140px;
    flex: 1 1 140px;
  }

  .pf-shortcut-card {
    flex: 1 1 140px;
  }

  .pf-vendor-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pf-vendor-toolbar-actions label {
    grid-column: 1 / -1;
  }

  .pf-week-row,
  .pf-history-row,
  .pf-order-board-row,
  .pf-delivered-row,
  .pf-overview-order-row {
    gap: 10px;
  }

  .pf-history-meta,
  .pf-order-board-side,
  .pf-overview-order-meta {
    justify-items: start;
    text-align: left;
  }

  .pf-history-expand {
    padding: 0 12px 12px;
  }

  .pf-order-line-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
  }

  .pf-delivery-card p,
  .pf-history-row p,
  .pf-order-board-row p,
  .pf-session-box p {
    word-break: break-word;
  }

  .pf-modal-card,
  .pf-client-modal-card,
  .pf-proof-modal-card {
    width: calc(100% - 12px);
    max-height: 92vh;
    padding: 18px;
  }

  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-mobile-cart-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-mobile-cart-cta.hidden {
    display: none;
  }

  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-cart-toast {
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-width: none;
    text-align: center;
  }

  .pf-proof-preview {
    min-height: 180px;
  }

  .pf-report-head {
    display: none;
  }

  .pf-report-row {
    grid-template-columns: 1fr;
  }

  .pf-monthly-invoice-card {
    display: grid;
  }

  .pf-monthly-invoice-meta {
    justify-items: stretch;
    text-align: left;
  }

  .pf-quote-line {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.pf-analytics-card {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  border-top: 4px solid #e9b83b;
  background: linear-gradient(145deg, #fffefa, #f5f8f0);
}

.pf-analytics-head {
  align-items: center;
  margin: 0;
}

.pf-analytics-head h2 {
  margin: 0 0 6px;
}

.pf-analytics-head .pf-muted {
  margin: 0;
}

.pf-analytics-period {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.pf-analytics-period-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pf-analytics-period-button.active {
  color: #fff;
  background: var(--green);
}

.pf-analytics-period-button:focus-visible {
  outline: 3px solid #e9b83b;
  outline-offset: 2px;
}

.pf-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pf-analytics-kpi {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.pf-analytics-kpi > span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.pf-analytics-kpi > strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pf-analytics-kpi > small {
  color: var(--muted);
  line-height: 1.35;
}

.pf-analytics-change {
  font-weight: 800;
}

.pf-analytics-change.positive { color: #28784a; }
.pf-analytics-change.negative { color: #b64c32; }
.pf-analytics-change.neutral { color: #788175; }
.pf-analytics-change span { color: var(--muted); font-weight: 500; }

.pf-analytics-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 16px;
}

.pf-analytics-chart-panel,
.pf-analytics-products-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.pf-analytics-subhead,
.pf-analytics-product-heading,
.pf-analytics-period-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pf-analytics-subhead > strong { color: var(--ink); }
.pf-analytics-subhead > span,
.pf-analytics-period-summary > span { color: var(--muted); font-size: .85rem; }

.pf-analytics-chart {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 150px;
  margin: 18px 0 12px;
  padding: 8px 4px 0;
  border-bottom: 1px solid var(--line);
}

.pf-analytics-bar-column {
  display: grid;
  grid-template-rows: 1fr 18px;
  flex: 1 1 0;
  align-items: end;
  min-width: 0;
  height: 100%;
  text-align: center;
}

.pf-analytics-bar {
  display: block;
  width: min(100%, 30px);
  height: var(--bar-height);
  justify-self: center;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #e9b83b, #5b9661);
  transition: height 350ms ease;
}

.pf-analytics-bar-column small {
  align-self: end;
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
}

.pf-analytics-period-summary {
  padding-top: 3px;
}

.pf-analytics-period-summary > strong { color: var(--green); }

.pf-analytics-products {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pf-analytics-product-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.pf-analytics-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f5f2e9;
  font-size: .92rem;
  font-weight: 800;
}

.pf-analytics-product-main { min-width: 0; }
.pf-analytics-product-heading strong { overflow-wrap: anywhere; }
.pf-analytics-product-heading > span { flex: 0 0 auto; color: var(--green); font-weight: 800; }

.pf-analytics-product-track {
  height: 7px;
  margin: 6px 0 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0e7;
}

.pf-analytics-product-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e9b83b, #5b9661);
}

.pf-analytics-product-main > small { color: var(--muted); }
.pf-analytics-empty { margin: 18px 0 0; }

.pf-analytics-footnote {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.pf-analytics-donuts {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 16px;
}

.pf-analytics-donut-card {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e8e6db;
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0%, #fff8df 0, #fff 45%);
}

.pf-analytics-coverage-card {
  background: radial-gradient(circle at 100% 0%, #e9f4e7 0, #fff 48%);
}

.pf-analytics-donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 190px;
  padding-top: 12px;
}

.pf-analytics-donut {
  display: grid;
  place-items: center;
  width: 172px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--donut-chart);
  filter: drop-shadow(0 8px 14px rgb(37 66 44 / 10%));
  transition: transform 250ms ease;
}

.pf-analytics-donut:hover { transform: rotate(-5deg) scale(1.025); }

.pf-analytics-donut::before {
  grid-area: 1 / 1;
  width: 68%;
  aspect-ratio: 1;
  border-radius: inherit;
  background: #fffefa;
  box-shadow: inset 0 0 0 1px rgb(43 65 48 / 6%);
  content: "";
}

.pf-analytics-donut > div {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  gap: 3px;
  justify-items: center;
  max-width: 105px;
  text-align: center;
}

.pf-analytics-donut > div strong {
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pf-analytics-donut > div small { color: var(--muted); font-size: .72rem; }

.pf-analytics-donut-legend {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-analytics-donut-legend li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
}

.pf-analytics-donut-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--donut-color); }
.pf-analytics-donut-legend li > span { overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pf-analytics-donut-legend li > strong { color: var(--green); }
.pf-analytics-donut-legend li > small { grid-column: 2 / -1; margin-top: -7px; color: var(--muted); font-size: .72rem; }

.pf-analytics-coverage-copy { display: grid; gap: 6px; margin: 0; }
.pf-analytics-coverage-copy strong { color: var(--green); font-size: 1.45rem; }
.pf-analytics-coverage-copy span { color: var(--ink); font-weight: 700; }
.pf-analytics-coverage-copy small { color: var(--muted); line-height: 1.45; }

@media (max-width: 900px) {
  .pf-analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-analytics-lower { grid-template-columns: 1fr; }
  .pf-analytics-donuts { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pf-analytics-card { gap: 14px; padding: 16px; }
  .pf-analytics-head { align-items: flex-start; }
  .pf-analytics-period { flex: 0 0 auto; }
  .pf-analytics-period-button { min-height: 38px; padding: 7px 12px; }
  .pf-analytics-kpis { gap: 8px; }
  .pf-analytics-kpi { gap: 6px; padding: 12px; border-radius: 14px; }
  .pf-analytics-kpi > span { font-size: .78rem; }
  .pf-analytics-kpi > strong { font-size: 1.3rem; }
  .pf-analytics-kpi > small { font-size: .76rem; }
  .pf-analytics-chart-panel,
  .pf-analytics-products-panel,
  .pf-analytics-donut-card { padding: 14px; }
  .pf-analytics-chart { height: 125px; gap: 2px; }
  .pf-analytics-bar-column small { font-size: .62rem; }
  .pf-analytics-donut-layout { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; min-height: 145px; }
  .pf-analytics-donut { width: 128px; }
  .pf-analytics-donut > div strong { font-size: .88rem; }
  .pf-analytics-donut-legend { gap: 6px; }
  .pf-analytics-donut-legend li { gap: 6px; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-analytics-bar,
  .pf-analytics-donut { transition: none; }
}

.pf-activity-dashboard {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dfe7dd;
  border-radius: 26px;
  background: linear-gradient(135deg, #f8fcf5 0%, #fffdf8 60%, #f6f3e9 100%);
  box-shadow: 0 16px 38px rgba(42, 76, 52, 0.08);
}

.pf-print-station {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #cfe3d0;
  background: linear-gradient(135deg, #f0f9ee, #fffdf8);
}

.pf-print-station-copy { display: flex; align-items: flex-start; gap: 14px; }
.pf-print-station-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #dcefdc; font-size: 1.35rem; }
.pf-print-station h2 { margin: 0; font-size: 1.2rem; }
.pf-print-station p { margin: 5px 0 0; }
.pf-print-station-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.pf-selection-count { color: var(--green-dark); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pf-print-station .pf-primary-button:disabled { opacity: .45; cursor: not-allowed; }
.pf-preparation-select { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pf-preparation-select input { width: 18px; height: 18px; accent-color: var(--green); }

.pf-client-space-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pf-danger-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #e0b7aa;
  border-radius: 999px;
  background: #fff8f5;
  color: #a7462f;
  cursor: pointer;
  font-weight: 700;
}

.pf-danger-button:hover,
.pf-danger-button:focus-visible {
  background: #a7462f;
  color: #fff;
}

.pf-activity-header,
.pf-activity-card-heading,
.pf-activity-recommendation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pf-activity-header h3,
.pf-activity-card-heading h4,
.pf-activity-recommendation h4 {
  margin: 0;
}

.pf-activity-header h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.pf-activity-status {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e6f2e4;
  font-size: .82rem;
  font-weight: 700;
}

.pf-activity-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #57a866;
}

.pf-activity-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pf-activity-kpis .pf-loyalty-card {
  min-width: 0;
  border: 1px solid #e3eadf;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 6px 15px rgba(42, 76, 52, .04);
}

.pf-activity-kpi-icon {
  font-size: 1.1rem !important;
}

.pf-activity-kpis strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pf-activity-chart-card,
.pf-activity-favorites {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e3eadf;
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
}

.pf-activity-card-heading > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.pf-activity-donut-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 148px;
  margin-top: 14px;
}

.pf-activity-donut {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--activity-donut, conic-gradient(#dfe5dd 0 100%));
  position: relative;
}

.pf-activity-donut::after {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: #fffdf8;
}

.pf-activity-donut strong,
.pf-activity-donut small {
  position: relative;
  z-index: 1;
}

.pf-activity-donut strong { font-size: 1.6rem; line-height: 1; }
.pf-activity-donut small { color: var(--muted); }

.pf-activity-legend {
  display: grid;
  gap: 9px;
  width: 100%;
}

.pf-activity-legend > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: .9rem;
}

.pf-activity-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--legend-color);
}

.pf-activity-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  align-items: end;
  height: 148px;
  margin-top: 14px;
}

.pf-activity-bar-column {
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  gap: 6px;
  height: 100%;
  text-align: center;
}

.pf-activity-bar-value { color: var(--green-dark); font-size: .75rem; font-weight: 800; }
.pf-activity-bar-track { display: flex; align-items: end; height: 100%; border-radius: 10px; background: #edf2e9; overflow: hidden; }
.pf-activity-bar-track i { display: block; width: 100%; border-radius: 10px; background: linear-gradient(180deg, #73af75, #3d7c52); }
.pf-activity-bar-column small { color: var(--muted); font-size: .72rem; text-transform: capitalize; }

.pf-activity-grid-bottom { align-items: stretch; }
.pf-activity-badge-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.pf-activity-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 999px; color: #9ca59b; background: #f0f2ed; font-size: .82rem; font-weight: 700; }
.pf-activity-badge b { filter: grayscale(1); }
.pf-activity-badge.is-unlocked { color: var(--green-dark); background: #e6f2e4; }
.pf-activity-badge.is-unlocked b { filter: none; }

.pf-activity-recommendation { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--pf-deep-green), #39704b); }
.pf-activity-recommendation p:not(.pf-kicker) { margin: 7px 0 0; color: rgba(255,255,255,.76); }
.pf-activity-recommendation .pf-primary-button { align-self: flex-start; background: #fff; color: var(--pf-deep-green); }
.pf-activity-favorites .pf-loyalty-list { margin-top: 14px; }

@media (max-width: 720px) {
  .pf-print-station { align-items: stretch; flex-direction: column; padding: 15px; }
  .pf-print-station-actions { justify-content: stretch; }
  .pf-print-station-actions > * { flex: 1 1 100%; text-align: center; }
  .pf-client-space-header { align-items: stretch; flex-direction: column; }
  .pf-client-space-header .pf-danger-button { width: 100%; }
  .pf-activity-dashboard { padding: 15px; border-radius: 20px; }
  .pf-activity-header { flex-direction: column; }
  .pf-activity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-activity-grid { grid-template-columns: 1fr; }
  .pf-activity-donut-row { gap: 14px; }
  .pf-activity-donut { flex-basis: 112px; width: 112px; height: 112px; }
  .pf-activity-donut::after { inset: 16px; }
}

/* Seller cockpit: priority actions first, secondary tools as compact widgets. */
.pf-cockpit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 20px;
  align-items: start;
}

.pf-cockpit-main,
.pf-cockpit-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.pf-cockpit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: #173d2b;
  color: #fff;
  border-color: #173d2b;
}

.pf-cockpit-hero h2,
.pf-cockpit-hero .pf-muted {
  color: #fff;
}

.pf-cockpit-hero .pf-eyebrow {
  color: #f7c43e;
}

.pf-cockpit-primary-action {
  width: auto;
  min-width: 210px;
  background: #f7c43e;
  color: #173d2b;
  border-color: #f7c43e;
}

.pf-cockpit-section {
  padding: 20px;
}

.pf-cockpit-actions-card,
.pf-cockpit-widgets-card {
  padding: 20px;
}

.pf-cockpit-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.pf-cockpit-actions .pf-shortcut-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  text-align: left;
  padding: 13px;
  border: 1px solid var(--pf-border, #dedbd2);
  border-radius: 12px;
  background: #fff;
}

.pf-cockpit-actions .pf-shortcut-card > span {
  grid-row: 1 / span 2;
  font-size: 20px;
}

.pf-cockpit-actions .pf-shortcut-card strong,
.pf-cockpit-actions .pf-shortcut-card small {
  display: block;
}

.pf-cockpit-actions .pf-shortcut-card small,
.pf-widget-row small {
  color: #718078;
  margin-top: 3px;
}

.pf-widget-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--pf-border, #dedbd2);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pf-widget-row:first-of-type {
  margin-top: 8px;
}

.pf-widget-row strong,
.pf-widget-row small {
  display: block;
}

.pf-widget-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f4f0e7;
}

/* Vendor workspace: denser daily cockpit, compact week scan, and useful empty states. */
@media (min-width: 1024px) {
  .pf-vendor-page .pf-shell { width: min(100% - 48px, 1560px); }
  .pf-vendor-page .pf-cockpit-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
}

.pf-vendor-page .pf-vendor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgb(38 61 45 / 5%);
}

.pf-vendor-page .pf-vendor-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.pf-vendor-page .pf-vendor-summary-main { gap: 12px; }
.pf-vendor-page .pf-vendor-account-logo { width: 48px; height: 48px; border-radius: 12px; }
.pf-vendor-page .pf-vendor-summary-main h2 { margin: 0; font-family: inherit; font-size: 1.05rem; line-height: 1.25; }
.pf-vendor-page .pf-vendor-summary-main .pf-eyebrow,
.pf-vendor-page .pf-vendor-summary-main .pf-muted { display: none; }
.pf-vendor-page .pf-vendor-toolbar-actions { align-items: center; gap: 8px; }
.pf-vendor-page .pf-vendor-toolbar-actions label { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.pf-vendor-page .pf-vendor-toolbar-actions input { min-height: 40px; padding: 7px 10px; }
.pf-vendor-page .pf-vendor-toolbar-actions .pf-inline-button { min-height: 40px; padding: 8px 13px; }
.pf-vendor-page .pf-vendor-tabs { top: 8px; margin-bottom: 14px; padding: 9px 12px; border-radius: 14px; }
.pf-vendor-page .pf-vendor-tab-button { min-height: 40px; padding: 9px 13px; font-size: .92rem; }
.pf-vendor-page .pf-vendor-tab-panel { padding: 22px; }
.pf-vendor-page .pf-section-head { margin-bottom: 14px; }
.pf-vendor-page .pf-page-title { font-family: inherit; font-size: 1.8rem; line-height: 1.15; }
.pf-vendor-page .pf-cockpit-layout { gap: 16px; }
.pf-vendor-page .pf-cockpit-main,
.pf-vendor-page .pf-cockpit-side { gap: 12px; }
.pf-vendor-page .pf-cockpit-hero { min-height: 126px; padding: 20px 22px; border-radius: 16px; box-shadow: none; }
.pf-vendor-page .pf-cockpit-hero .pf-eyebrow { margin: 0 0 7px; font-size: .72rem; letter-spacing: .08em; }
.pf-vendor-page .pf-cockpit-hero h2 { margin: 0; font-size: 1.45rem; }
.pf-vendor-page .pf-cockpit-hero .pf-muted { margin: 5px 0 0; font-size: .92rem; }
.pf-vendor-page .pf-cockpit-primary-action { min-width: 195px; min-height: 44px; padding: 10px 14px; }
.pf-vendor-page .pf-dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pf-vendor-page .pf-stat-card { min-width: 0; padding: 14px; }
.pf-vendor-page .pf-stat-card strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pf-vendor-page .pf-cockpit-section,
.pf-vendor-page .pf-cockpit-actions-card,
.pf-vendor-page .pf-cockpit-widgets-card { padding: 16px; border-radius: 15px; }
.pf-vendor-page .pf-cockpit-actions { gap: 7px; margin-top: 10px; }
.pf-vendor-page .pf-cockpit-actions .pf-shortcut-card { padding: 10px 11px; }
.pf-vendor-page .pf-cockpit-actions .pf-shortcut-card small { display: none; }
.pf-vendor-page .pf-widget-row { padding: 10px 0; }
.pf-vendor-page .pf-week-list { gap: 8px; }
.pf-vendor-page .pf-week-list > .pf-info-bar { margin-bottom: 2px; }
.pf-vendor-page .pf-week-row { grid-template-columns: 1fr; justify-items: start; gap: 4px; min-height: 96px; padding: 11px; border-radius: 12px; }
.pf-vendor-page .pf-week-row time { color: #66766a; font-size: .82rem; text-transform: capitalize; }
.pf-vendor-page .pf-week-row strong { color: var(--pf-deep-green); font-size: .91rem; }
.pf-vendor-page .pf-week-row > span { color: #718078; font-size: .8rem; font-variant-numeric: tabular-nums; }
.pf-vendor-page #week-summary.pf-week-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pf-vendor-page #week-summary > .pf-info-bar { grid-column: 1 / -1; }
.pf-vendor-page [data-tab-panel="preparation"][data-empty="true"] #preparation-progress,
.pf-vendor-page [data-tab-panel="preparation"][data-empty="true"] #preparation-print-toolbar { display: none; }
.pf-vendor-page [data-tab-panel="preparation"][data-empty="true"] #preparation-list { min-height: 0; margin: 0; padding: 15px 17px; border: 1px solid #dce8d8; border-radius: 14px; background: #f2f7ef; color: #38583f; }
.pf-vendor-page [data-tab-panel="deliveries"].is-empty #orders-list { display: none; }
.pf-vendor-page [data-tab-panel="deliveries"].is-empty #route-summary { min-height: 0; margin: 0; padding: 15px 17px; border: 1px solid #dce8d8; border-radius: 14px; background: #f2f7ef; color: #38583f; }

@media (max-width: 1023px) {
  .pf-vendor-page #week-summary.pf-week-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pf-vendor-page .pf-vendor-toolbar { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .pf-vendor-page .pf-vendor-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-vendor-page .pf-vendor-summary-role { justify-self: end; }
  .pf-vendor-page .pf-vendor-toolbar-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; width: 100%; }
  .pf-vendor-page .pf-vendor-toolbar-actions label { grid-column: 1 / -1; justify-content: space-between; }
  .pf-vendor-page .pf-vendor-toolbar-actions label input { flex: 1; }
  .pf-vendor-page .pf-vendor-toolbar-actions .pf-inline-button { width: 100%; padding: 8px; font-size: .84rem; }
  .pf-vendor-page .pf-vendor-tabs { margin-bottom: 10px; }
  .pf-vendor-page .pf-vendor-tab-panel { padding: 14px; }
  .pf-vendor-page .pf-page-title { font-size: 1.55rem; }
  .pf-vendor-page .pf-cockpit-hero { display: grid; gap: 12px; min-height: 0; padding: 16px; }
  .pf-vendor-page .pf-cockpit-primary-action { width: 100%; margin: 0; }
  .pf-vendor-page .pf-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-vendor-page .pf-stat-card { padding: 12px; }
  .pf-vendor-page #week-summary.pf-week-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-vendor-page .pf-week-row { min-height: 82px; }
}

.pf-vendor-page .pf-vendor-tab-button:focus-visible,
.pf-vendor-page .pf-vendor-more summary:focus-visible,
.pf-vendor-page .pf-widget-row:focus-visible,
.pf-vendor-page .pf-shortcut-card:focus-visible,
.pf-vendor-page .pf-week-row:focus-visible { outline: 3px solid #d9a73d; outline-offset: 2px; }

/* Boutique client: a calmer market layout with more products in view. */
#shop-page {
  gap: 16px;
}

#shop-page > .pf-order-hero {
  min-height: 0;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 22px;
  background: var(--pf-deep-green);
  box-shadow: 0 14px 34px rgb(34 58 42 / 11%);
}

#shop-page > .pf-order-hero .pf-kicker {
  margin-bottom: 8px;
  color: #f4c64c;
  font-size: .82rem;
  font-weight: 750;
}

#shop-page > .pf-order-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: #fffdf6;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

#shop-page > .pf-order-hero p:last-child {
  margin: 9px 0 0;
  color: rgb(255 253 246 / 82%);
  font-size: 1rem;
}

#shop-page .pf-order-hero-note {
  padding: 9px 13px;
  border-color: rgb(244 198 76 / 48%);
  color: #f4c64c;
  font-size: .88rem;
}

#shop-page > .pf-store-meta,
#shop-page > .pf-categories,
#shop-page > .pf-shop-catalog-layout > .pf-products-section {
  border: 1px solid #e9e3d7;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 8px 24px rgb(45 54 43 / 4%);
}

#shop-page > .pf-store-meta {
  padding: 20px 22px;
}

#shop-page .pf-store-head {
  align-items: center;
  gap: 20px;
}

#shop-page .pf-store-head .pf-kicker,
#shop-page .pf-menu-section-heading .pf-kicker,
#shop-page .pf-catalogue-heading .pf-kicker {
  margin: 0 0 5px;
  color: #718073;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#shop-page .pf-store-head #store-subtitle {
  margin: 0;
  color: var(--pf-deep-green);
  font-size: 1.16rem;
  font-weight: 750;
}

#shop-page #store-highlights {
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #f6f4ed;
  color: #59675c;
  font-size: .84rem;
}

#shop-page > .pf-categories {
  padding: 20px 22px 17px;
}

#shop-page .pf-menu-section-heading {
  margin-bottom: 14px;
}

#shop-page .pf-menu-section-heading h2,
#shop-page .pf-catalogue-heading h2 {
  margin: 0;
  color: var(--pf-deep-green);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}

#shop-page .pf-menu-hint {
  color: #68796b;
  font-size: .86rem;
  font-weight: 650;
}

#shop-page .pf-catalogue-search {
  gap: 6px;
  margin: 0 0 14px;
  color: #667368;
  font-size: .78rem;
  font-weight: 700;
}

#shop-page .pf-catalogue-search input {
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid #dedfd5;
  border-radius: 13px;
  background: #fff;
  color: #233d2a;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgb(38 61 45 / 3%);
}

#shop-page .pf-catalogue-search input::placeholder {
  color: #7c857e;
}

#shop-page .pf-category-list {
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: #c9d2c7 transparent;
}

#shop-page #category-filters .pf-category-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #e7e4d9;
  border-radius: 12px;
  background: #f7f5ee;
  color: #405446;
  font-size: .9rem;
  font-weight: 720;
  transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease, transform 140ms ease-out;
}

#shop-page #category-filters .pf-category-button.active {
  border-color: var(--pf-deep-green);
  background: var(--pf-deep-green);
  color: #fff;
  box-shadow: inset 0 -3px 0 #bd4c2d;
}

#shop-page .pf-family-rail {
  margin-top: 14px;
}

#shop-page .pf-family-rail > .pf-kicker {
  margin: 0 0 8px;
  color: #718073;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#shop-page #family-filters {
  margin-top: 0;
  padding: 1px 1px 6px;
}

#shop-page #family-filters .pf-category-button {
  min-height: 38px;
  padding: 7px 12px;
  border-color: #ebe7dc;
  background: transparent;
  color: #4c5e50;
  font-size: .85rem;
  font-weight: 650;
  transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

#shop-page #family-filters .pf-category-button.active {
  border-color: #d9e7d4;
  background: #eaf3e6;
  color: #24432f;
  box-shadow: none;
}

#shop-page > .pf-shop-catalog-layout > .pf-products-section {
  padding: 20px;
}

#shop-page .pf-catalogue-heading {
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

#shop-page .pf-catalogue-count {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2f1e9;
  color: #5d6b60;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  #shop-page .pf-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
}

#shop-page .pf-product-card {
  gap: 8px;
  padding: 10px;
  border-color: #e9e5db;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(43 54 43 / 4%);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #shop-page .pf-product-card:hover {
    transform: translateY(-2px);
    border-color: #cbd9c8;
    box-shadow: 0 9px 20px rgb(43 54 43 / 9%);
  }
}

#shop-page .pf-product-image-shell {
  aspect-ratio: 1.28 / 1;
  border-radius: 11px;
  background: #f8f6ef;
}

#shop-page .pf-product-image {
  object-fit: contain;
  mix-blend-mode: multiply;
}

#shop-page .pf-product-content h3 {
  min-height: 2.35em;
  color: #283d30;
  font-size: .96rem;
  line-height: 1.2;
}

#shop-page .pf-product-price-line {
  gap: 5px;
  margin-top: 5px;
  color: #4f8559;
  font-variant-numeric: tabular-nums;
}

#shop-page .pf-product-price-line strong {
  font-size: 1.02rem;
  font-weight: 800;
}

#shop-page .pf-product-unit,
#shop-page .pf-product-inline-note {
  color: #737d75;
  font-size: .77rem;
}

#shop-page .pf-product-inline-note {
  min-height: 1.4em;
}

#shop-page .pf-add-button {
  width: 40px;
  height: 40px;
  background: #bd4c2d;
  font-size: 1.08rem;
  transition: transform 140ms ease-out, background-color 160ms ease, box-shadow 160ms ease;
}

#shop-page .pf-add-button:hover {
  background: #a93e23;
}

#shop-page .pf-add-button:active {
  transform: scale(.96);
}

#shop-page .pf-product-card.is-added {
  border-color: #a9cba5;
  background: #fbfdf9;
  box-shadow: 0 0 0 2px rgb(92 141 94 / 10%);
}

#shop-page .pf-shop-cart-panel {
  border: 1px solid #e5e2d8;
  border-top: 3px solid #bd4c2d;
  border-radius: 17px;
  background: #fffefa;
  box-shadow: 0 12px 30px rgb(43 54 43 / 8%);
}

#shop-page .pf-shop-cart-panel .pf-cart-items.empty-box {
  min-height: 110px;
  padding: 15px;
  border-radius: 12px;
  background: #f7f5ee;
  color: #727b73;
}

#shop-page .pf-shop-cart-footer .pf-primary-button {
  min-height: 48px;
  border-radius: 12px;
  background: var(--pf-deep-green);
}

#shop-page .pf-shop-cart-footer .pf-primary-button:disabled {
  background: #8c9a8f;
  color: #fff;
}

#shop-page .pf-category-button:focus-visible,
#shop-page .pf-add-button:focus-visible,
#shop-page .pf-catalogue-search input:focus-visible {
  outline: 3px solid #d8a53c;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  #shop-page > .pf-order-hero { padding: 24px; }
  #shop-page > .pf-store-meta,
  #shop-page > .pf-categories,
  #shop-page > .pf-shop-catalog-layout > .pf-products-section { padding: 16px; }
  #shop-page .pf-menu-section-heading { align-items: start; }
}

@media (max-width: 560px) {
  #shop-page { gap: 11px; }
  #shop-page > .pf-order-hero { padding: 21px 18px; border-radius: 17px; }
  #shop-page > .pf-order-hero h1 { font-size: 2rem; }
  #shop-page .pf-order-hero-note { display: none; }
  #shop-page > .pf-store-meta,
  #shop-page > .pf-categories,
  #shop-page > .pf-shop-catalog-layout > .pf-products-section { border-radius: 14px; }
  #shop-page .pf-menu-section-heading h2,
  #shop-page .pf-catalogue-heading h2 { font-size: 1.22rem; }
  #shop-page .pf-menu-hint { display: none; }
  #shop-page #category-filters .pf-category-button { min-height: 42px; padding: 8px 11px; }
  #shop-page .pf-product-card { gap: 7px; padding: 8px; }
  #shop-page .pf-product-image-shell { aspect-ratio: 1.08 / 1; }
  #shop-page .pf-product-content h3 { font-size: .9rem; }
  #shop-page .pf-product-price-line strong { font-size: .94rem; }
  #shop-page .pf-add-button { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  #shop-page .pf-product-card,
  #shop-page .pf-category-button,
  #shop-page .pf-add-button { transition: none !important; }
}

/* Shop polish: restore a balanced desktop header and keep the hero compact. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .pf-shell { width: min(100% - 48px, 1440px); }
  .pf-topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-topbar-actions { grid-column: 2; }
  #shop-page > .pf-order-hero { min-height: 0; padding: 24px 30px; }
  #shop-page > .pf-order-hero h1 { max-width: none; white-space: nowrap; }
  #shop-page .pf-store-head { justify-content: space-between; text-align: left; }
  #shop-page .pf-store-head > div { text-align: left; }
  #shop-page > .pf-shop-catalog-layout > .pf-shop-cart-panel { min-height: 0; }
}

@media (max-width: 1023px) {
  #shop-page > .pf-order-hero h1 { max-width: 24ch; }
}

@media (max-width: 560px) {
  .pf-topbar { grid-template-columns: minmax(0, 1fr); }
  #shop-page > .pf-order-hero h1 { max-width: 16ch; white-space: normal; }
}

/* Last responsive layer: compact shop navigation on wide Safari viewports. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-topbar-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    gap: 8px;
  }
  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-topbar-actions > * {
    width: auto;
    min-height: 44px;
    white-space: nowrap;
  }
  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-topbar-actions .pf-link-button,
  body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-topbar-actions .pf-cart-button {
    width: auto;
    padding: 9px 14px;
  }
}

.pf-vendor-more {
  position: relative;
}

.pf-vendor-more summary {
  list-style: none;
  min-height: 42px;
  padding: 11px 15px;
  border: 1px solid var(--pf-border, #dedbd2);
  border-radius: 999px;
  color: #173d2b;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.pf-vendor-more summary::-webkit-details-marker {
  display: none;
}

.pf-vendor-more[open] summary {
  background: #173d2b;
  color: #fff;
}

.pf-vendor-more-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--pf-border, #dedbd2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 35px rgb(23 61 43 / 14%);
}

.pf-vendor-more-menu .pf-vendor-tab-button {
  width: 100%;
  border-radius: 9px;
  text-align: left;
}

@media (max-width: 560px) {
  .pf-vendor-more-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .pf-cockpit-layout {
    grid-template-columns: 1fr;
  }

  .pf-cockpit-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pf-cockpit-layout {
    gap: 12px;
  }

  .pf-cockpit-hero {
    display: block;
    padding: 18px;
  }

  .pf-cockpit-primary-action {
    width: 100%;
    margin-top: 14px;
  }

  .pf-cockpit-side {
    grid-template-columns: 1fr;
  }

  .pf-cockpit-section,
  .pf-cockpit-actions-card,
  .pf-cockpit-widgets-card {
    padding: 16px;
  }
}

/* Client ordering workspace: persistent catalogue + cart, inspired by quick-service ordering mechanics. */
@media (min-width: 981px) {
  #shop-page > .pf-order-hero,
  #shop-page > .pf-store-meta,
  #shop-page > .pf-categories {
    grid-column: 1 / -1;
  }

  #shop-page > .pf-shop-catalog-layout {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: start;
    gap: 20px;
  }

  #shop-page > .pf-shop-catalog-layout > .pf-products-section {
    min-width: 0;
  }

  #shop-page > .pf-shop-catalog-layout > .pf-shop-cart-panel {
    align-self: start;
    min-height: 360px;
    display: grid;
    grid-template-rows: auto minmax(120px, 1fr) auto;
    gap: 14px;
    padding: 18px;
    border-top: 4px solid var(--pf-coral);
    overflow: hidden;
  }
}

.pf-shop-cart-head,
.pf-shop-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-shop-cart-head h2 {
  margin: 2px 0 0;
}

.pf-shop-cart-count {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pf-coral);
  color: #fff;
  font-size: 0.78rem;
  vertical-align: middle;
}

.pf-shop-cart-footer {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pf-shop-cart-total strong {
  font-size: 1.2rem;
  color: var(--pf-deep-green);
}

.pf-shop-cart-panel .pf-cart-items {
  gap: 10px;
}

.pf-shop-cart-line {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.pf-shop-cart-line .pf-cart-thumb {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
}

.pf-shop-cart-line .pf-cart-line-left {
  min-width: 0;
}

.pf-shop-cart-line .pf-cart-line-left strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-shop-cart-line .pf-cart-line-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  #shop-page > .pf-shop-catalog-layout > .pf-shop-cart-panel {
    display: none;
  }
}

/* Keep the order companion in view while the catalogue is browsed. */
@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  #shop-page > .pf-shop-catalog-layout > .pf-cart-persistent {
    position: static;
    top: auto;
    width: auto;
    max-height: calc(100dvh - 132px);
    min-height: 360px;
    overflow: hidden;
  }

  #shop-page > .pf-shop-catalog-layout > .pf-cart-persistent #shop-cart-items {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #shop-page > .pf-shop-catalog-layout > .pf-cart-persistent.is-floating {
    position: fixed;
    top: 112px;
    right: max(12px, calc((100vw - 1200px) / 2));
    width: min(360px, calc(100vw - 680px));
    z-index: 35;
  }
}

@media (max-width: 980px) {
  #shop-page > .pf-shop-catalog-layout > .pf-cart-persistent {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

.pf-product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pf-product-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(30, 26, 20, 0.58);
  cursor: pointer;
}

.pf-product-detail-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92dvh, 760px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 18, 13, 0.24);
}

.pf-product-detail-head {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 0;
}

.pf-product-detail-body {
  overflow-y: auto;
  padding: 0 20px 20px;
}

.pf-product-detail-image-shell {
  aspect-ratio: 1.45;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-soft);
}

.pf-product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-product-detail-copy {
  padding-top: 18px;
}

.pf-product-detail-copy h2 {
  margin: 4px 0 8px;
  color: var(--pf-deep-green);
}

.pf-product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--pf-deep-green);
}

.pf-product-detail-price strong {
  font-size: 1.2rem;
}

.pf-product-detail-quantity {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}

.pf-quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.pf-quantity-stepper strong {
  min-width: 24px;
  text-align: center;
}

.pf-product-detail-footer {
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.pf-product-detail-footer .pf-primary-button {
  width: 100%;
  min-height: 48px;
  background: var(--pf-coral);
  color: #fff;
}

@media (max-width: 520px) {
  .pf-product-detail-modal {
    align-items: end;
    padding: 0;
  }

  .pf-product-detail-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 560px) {
  #shop-page .pf-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pf-product-image-shell {
    border-radius: 10px;
  }

  .pf-topbar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pf-checkout-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-clickable-card,
  .pf-skeleton,
  .pf-product-image-preview-button .pf-logo-preview,
  .pf-cart-toast,
  .pf-add-button,
  .pf-product-card,
  .pf-cart-button,
  #cart-count-badge {
    transition: none !important;
    animation: none !important;
  }

  .pf-add-button.is-pressed {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================================
   BUTTON STATES — hover / focus / disabled / loading  (P5)
   ============================================================ */

.pf-primary-button:hover:not(:disabled):not(.is-loading) {
  background: var(--green-dark);
}

.pf-primary-button:focus-visible,
.pf-secondary-button:focus-visible,
.pf-link-button:focus-visible,
.pf-nav-button:focus-visible,
.pf-cart-button:focus-visible,
.pf-add-button:focus-visible,
.pf-mini-button:focus-visible,
.pf-soft-action:focus-visible,
.pf-vendor-tab-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.pf-secondary-button:hover:not(:disabled):not(.is-loading) {
  background: var(--surface-soft);
  border-color: #d9cfbb;
}

.pf-soft-action:hover:not(:disabled) {
  background: var(--surface-soft);
  border-color: #d9cfbb;
}

.pf-vendor-tab-button:hover:not(.active) {
  background: var(--surface-soft);
}

.pf-nav-button:hover:not(.is-active) {
  background: var(--surface-soft);
}

.pf-primary-button:disabled,
.pf-secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pf-primary-button.is-loading,
.pf-secondary-button.is-loading {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

/* ============================================================
   SKELETON LOADER  (P2)
   ============================================================ */

@keyframes pf-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.pf-skeleton {
  background: linear-gradient(90deg, #ece8de 25%, #f7f4ed 50%, #ece8de 75%);
  background-size: 600px 100%;
  animation: pf-shimmer 1.6s ease infinite;
  border-radius: var(--radius-md);
}

.pf-product-skeleton {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pf-skeleton-image {
  aspect-ratio: 1 / 1;
}

.pf-skeleton-line {
  height: 0.78rem;
}

.pf-skeleton-line.wide   { width: 85%; }
.pf-skeleton-line.medium { width: 55%; }
.pf-skeleton-line.short  { width: 35%; }

/* ============================================================
   APP TOAST — notifications génériques  (P1)
   ============================================================ */

/* Vendor nav link — discreet, muted style */
.pf-vendor-link {
  font-size: 0.92rem;
  opacity: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.pf-vendor-link:hover { opacity: 0.92; }

.pf-app-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 60;
  max-width: min(440px, calc(100vw - 24px));
  width: max-content;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.93rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.pf-app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pf-app-toast.tone-success {
  background: #1a2e1d;
  color: #fff;
}

.pf-app-toast.tone-error {
  background: #fff1f1;
  color: #8f2f2f;
  border: 1px solid rgba(143, 47, 47, 0.16);
}

.pf-app-toast.tone-warning {
  background: var(--orange-soft);
  color: var(--orange-text);
  border: 1px solid rgba(235, 142, 63, 0.2);
}

.pf-app-toast.tone-info {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

/* ============================================================
   VENDOR TOAST — notifications espace maraîcher  (P1)
   ============================================================ */

.pf-vendor-toast {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 60;
  max-width: min(480px, calc(100vw - 24px));
  width: max-content;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.93rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.pf-vendor-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pf-vendor-toast.tone-success { background: #1a2e1d; color: #fff; }
.pf-vendor-toast.tone-error   { background: #fff1f1; color: #8f2f2f; border: 1px solid rgba(143,47,47,.16); }
.pf-vendor-toast.tone-warning { background: var(--orange-soft); color: var(--orange-text); border: 1px solid rgba(235,142,63,.2); }
.pf-vendor-toast.tone-info    { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* ============================================================
   CHECKOUT QUICK AUTH  (P4)
   ============================================================ */

.pf-quick-auth-card {
  padding: 20px;
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f9fdf9, #f2f9f2);
  display: grid;
  gap: 16px;
}

.pf-quick-auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pf-quick-auth-head h3 { margin: 0; }

#checkout-auth-gate .pf-inline-actions {
  margin-top: 10px;
}

/* ============================================================
   RAPPORT MATINAL — highlight lignes sans prix  (P7)
   ============================================================ */

.pf-report-row-editable.needs-pricing {
  background: linear-gradient(180deg, #fffcf4, #fff7e4);
  border-left: 3px solid var(--orange-text);
  padding-left: 11px;
}

.pf-report-row-editable.needs-pricing .pf-report-price-box {
  color: var(--orange-text);
}

.pf-report-input input.pf-input-warn {
  border-color: var(--orange-text);
  background: #fffcf0;
}

/* ============================================================
   INLINE FORM ERROR  (P1)
   ============================================================ */

.pf-form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fff1f1;
  color: #8f2f2f;
  font-size: 0.9rem;
  font-weight: 600;
}

.pf-form-message {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.pf-info-message { background: #f3f6f2; color: var(--pf-ink); }
.pf-success-message { background: #eaf6ec; color: #23623a; }
.pf-error-message { background: #fff1f1; color: #8f2f2f; }
.pf-b2b-register-card { align-self: start; }
.pf-client-list { display: grid; gap: 10px; }
.pf-client-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--pf-border, #e7e2d7); border-radius: 18px; background: #fffdf8; }
.pf-client-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-client-identity p, .pf-client-identity small { display: block; margin: 4px 0 0; color: #6f756b; font-size: 0.85rem; overflow-wrap: anywhere; }
.pf-client-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: #dce9d6; color: #285338; font-weight: 800; }
.pf-client-status { padding: 6px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.pf-client-status.is-active { background: #e2f2e3; color: #287044; }
.pf-client-status.is-inactive { background: #f2e8e5; color: #9d4835; }
@media (max-width: 920px) { .pf-client-row { grid-template-columns: minmax(0, 1fr) auto auto; } .pf-client-row > button { grid-column: 1 / -1; width: 100%; justify-content: center; } }
@media (max-width: 520px) { .pf-client-row { grid-template-columns: 1fr auto; } .pf-client-status { grid-column: 2; grid-row: 1; } }
.pf-client-profile-form { overflow-y: auto; padding: 0 4px 4px 0; }
.pf-client-discount-field { padding: 14px; border: 1px solid #dce9d6; border-radius: 14px; background: #f3f7ef; }
.pf-client-discount-field small { display: block; margin-top: 6px; color: var(--muted, #6f756b); font-weight: 400; }
.pf-client-profile-form .pf-inline-actions { justify-content: flex-end; }
.pf-client-promotion-editor { display: grid; gap: 14px; padding: 16px; border: 1px solid #dce9d6; border-radius: 16px; background: #f7faf4; }
.pf-client-promotion-editor h3 { margin: 2px 0 6px; color: var(--ink, #263d2f); }
.pf-client-promotion-editor .pf-muted { margin: 4px 0 0; }
.pf-promotion-add-row { align-items: end; }
.pf-client-promotion-rules { display: grid; gap: 8px; }
.pf-client-promotion-row { display: grid; grid-template-columns: 24px minmax(160px, 1fr) 110px auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e8e2d5; border-radius: 12px; background: #fff; }
.pf-client-promotion-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #568d5e; }
.pf-client-promotion-row input[type="number"] { min-height: 40px; }
@media (max-width: 680px) {
  .pf-promotion-add-row { grid-template-columns: 1fr 1fr; }
  .pf-promotion-add-row button { grid-column: 1 / -1; }
  .pf-client-promotion-row { grid-template-columns: 24px minmax(0, 1fr) 82px; }
  .pf-client-promotion-row .pf-link-button { grid-column: 2 / -1; justify-self: start; }
}
.pf-b2b-company-summary {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(35, 75, 48, 0.16);
  border-radius: 14px;
  background: #f3f7ef;
}
.pf-b2b-company-summary strong { color: var(--pf-ink); }
.pf-b2b-company-summary span { color: var(--pf-muted); white-space: pre-line; }
.pf-manual-registration-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(184, 79, 44, 0.38);
  border-radius: 14px;
  background: #fffaf4;
}
.pf-manual-registration-fields p { margin: 0; }
.pf-check-row { display: flex; align-items: center; gap: 8px; }
.pf-check-row input { width: auto; }

/* ============================================================
   DOUBLE-CLICK CONFIRM (P8)
   ============================================================ */

.pf-confirm-pending {
  background: var(--orange-text) !important;
  color: #fff !important;
  border-color: var(--orange-text) !important;
}

/* Responsive V2: mobile-first layout hardening without backend changes */
.pf-main,
.pf-vendor-main,
.pf-vendor-tab-panel,
.pf-card,
.pf-auth-card,
.pf-products-section,
.pf-store-meta,
.pf-categories,
#account-page,
.pf-login-panels,
.pf-checkout-stage,
.pf-products-grid,
.pf-auth-grid,
.pf-dashboard-stats,
.pf-shortcut-grid,
.pf-settings-grid,
.pf-products-admin-list,
.pf-overview-orders,
.pf-orders-board,
.pf-deliveries-list,
.pf-preparation-list,
.pf-monthly-invoices,
.pf-morning-dispatch,
.pf-cart-items {
  min-width: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.pf-shell {
  width: min(100% - 16px, 1200px);
  padding: 12px 0 calc(24px + env(safe-area-inset-bottom));
}

.pf-vendor-page .pf-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
}

.pf-main,
.pf-page,
.pf-vendor-main {
  gap: 16px;
}

.pf-topbar {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  position: static;
  top: auto;
}

.pf-brand {
  min-width: 0;
  font-size: 1rem;
}

.pf-topbar-search {
  order: 2;
}

.pf-vendor-page .pf-topbar {
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 14px 16px;
}

.pf-vendor-page .pf-topbar .pf-link-button {
  width: 100%;
  justify-content: center;
}

.pf-topbar-actions {
  order: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.pf-topbar-actions > * {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  justify-content: center;
}

.pf-link-button,
.pf-cart-button {
  min-height: 44px;
}

.pf-topbar-actions .pf-link-button,
.pf-topbar-actions .pf-cart-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px 12px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.pf-vendor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pf-hero,
.pf-hero-overlay {
  min-height: 180px;
}

.pf-hero-overlay {
  padding: 16px;
}

.pf-hero-copy {
  max-width: 100%;
}

.pf-hero-copy h1 {
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 0.98;
}

.pf-hero-copy p {
  font-size: 0.95rem;
}

.pf-store-meta,
.pf-categories,
.pf-products-section,
.pf-checkout-stage,
.pf-vendor-main,
.pf-login-panels,
#account-page {
  padding: 16px;
}

.pf-vendor-page .pf-vendor-main,
.pf-vendor-page .pf-vendor-tabs,
.pf-vendor-page .pf-vendor-tab-panel,
.pf-vendor-page .pf-login-panels,
.pf-vendor-page #vendor-dashboard {
  width: 100%;
  max-width: 100%;
  border-left: none;
  border-right: none;
}

.pf-categories {
  position: static;
  top: auto;
  box-shadow: none;
}

.pf-store-head,
.pf-section-head,
.pf-vendor-toolbar,
.pf-delivery-head,
.pf-overview-order-row,
.pf-cart-header,
.pf-cart-total-row,
.pf-session-head,
.pf-section-row,
.pf-quick-checkout-head,
.pf-loyalty-hero,
.pf-morning-dispatch-head,
.pf-history-row,
.pf-order-board-row,
.pf-delivered-row,
.pf-monthly-invoice-card,
.pf-product-admin-row {
  flex-direction: column;
  align-items: stretch;
}

.pf-info-bar {
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.pf-category-list {
  gap: 10px;
  padding-bottom: 6px;
}

.pf-category-button {
  min-height: 44px;
  padding: 10px 14px;
}

.pf-products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pf-product-card,
.pf-card,
.pf-auth-card,
.pf-delivery-card,
.pf-product-admin-row,
.pf-stat-card,
.pf-shortcut-card,
.pf-overview-order-row,
.pf-delivered-row,
.pf-automation-row,
.pf-report-row {
  padding: 16px;
  border-radius: 18px;
}

.pf-product-card {
  gap: 8px;
}

.pf-product-content h3 {
  font-size: 0.92rem;
  min-height: 2.35em;
}

.pf-product-price-line strong {
  font-size: 0.95rem;
}

.pf-product-inline-note {
  font-size: 0.72rem;
}

.pf-checkout-grid,
.pf-login-panels,
.pf-settings-grid,
.pf-auth-grid,
.pf-loyalty-grid,
.pf-loyalty-metrics,
.pf-order-detail-grid,
.pf-modal-grid,
.pf-modal-grid-three,
.pf-role-grid,
.pf-preparation-grid,
.pf-quotes-layout {
  grid-template-columns: 1fr;
}

.pf-checkout-steps {
  grid-template-columns: 1fr 1fr;
}

.pf-summary-card {
  position: static;
  order: 2;
}

.pf-inline-actions,
.pf-delivery-actions,
.pf-vendor-toolbar-actions,
.pf-report-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.pf-vendor-toolbar {
  display: grid;
  gap: 12px;
}

.pf-vendor-summary {
  grid-template-columns: 1fr;
  gap: 10px;
}

.pf-vendor-summary-main h2 {
  font-size: clamp(1.4rem, 7vw, 1.9rem);
}

.pf-vendor-account-logo {
  width: 64px;
  height: 64px;
}

.pf-vendor-summary-role {
  justify-self: start;
}

.pf-vendor-toolbar-actions > *,
.pf-inline-actions > *,
.pf-delivery-actions > * {
  min-width: 0;
}

.pf-primary-button,
.pf-secondary-button,
.pf-inline-button,
.pf-soft-action {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.pf-cart-panel {
  width: 100%;
  padding: 16px;
}

.pf-cart-line {
  flex-direction: column;
  align-items: stretch;
}

.pf-cart-line-left {
  align-items: flex-start;
}

.pf-cart-line-mid {
  min-width: 0;
  text-align: left;
}

.pf-cart-line-actions {
  justify-content: space-between;
}

.pf-vendor-toolbar-actions label {
  width: 100%;
}

.pf-vendor-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 12px 16px;
}

.pf-vendor-tab-button {
  width: 100%;
  white-space: normal;
  min-height: 44px;
  padding: 10px 14px;
}

.pf-vendor-tab-panel {
  padding: 16px;
  overflow-x: hidden;
}

.pf-page-title {
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.02;
}

.pf-dashboard-stats,
.pf-shortcut-grid,
.pf-gamified-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pf-stat-card,
.pf-shortcut-card {
  min-width: 0;
}

.pf-week-row,
.pf-order-line-row,
.pf-report-head,
.pf-report-row,
.pf-report-table-extended .pf-report-head,
.pf-report-table-extended .pf-report-row,
.pf-daily-price-row,
.pf-quote-line {
  grid-template-columns: 1fr;
}

.pf-history-meta,
.pf-order-board-side,
.pf-overview-order-meta,
.pf-monthly-invoice-meta {
  justify-items: start;
  text-align: left;
}

.pf-vendor-page .pf-dashboard-stats,
.pf-vendor-page .pf-shortcut-grid,
.pf-vendor-page .pf-settings-grid,
.pf-vendor-page .pf-login-panels,
.pf-vendor-page .pf-auth-grid,
.pf-vendor-page .pf-products-admin-list,
.pf-vendor-page .pf-overview-orders,
.pf-vendor-page .pf-deliveries-list,
.pf-vendor-page .pf-preparation-list,
.pf-vendor-page .pf-monthly-invoices,
.pf-vendor-page .pf-morning-dispatch {
  grid-template-columns: 1fr;
}

.pf-vendor-page .pf-stat-card,
.pf-vendor-page .pf-shortcut-card,
.pf-vendor-page .pf-card,
.pf-vendor-page .pf-vendor-tab-panel {
  min-width: 0;
}

.pf-vendor-page .pf-section-head {
  gap: 12px;
}

.pf-vendor-page .pf-section-head .pf-inline-actions,
.pf-vendor-page .pf-vendor-toolbar-actions {
  width: 100%;
}

.pf-vendor-page .pf-vendor-tab-panel .pf-primary-button,
.pf-vendor-page .pf-vendor-tab-panel .pf-secondary-button,
.pf-vendor-page .pf-vendor-tab-panel .pf-inline-button {
  width: 100%;
}

.pf-vendor-page .pf-section-head,
.pf-vendor-page .pf-card,
.pf-vendor-page .pf-vendor-tab-panel,
.pf-vendor-page .pf-vendor-summary,
.pf-vendor-page .pf-vendor-toolbar,
.pf-vendor-page .pf-vendor-toolbar-actions,
.pf-vendor-page #day-focus,
.pf-vendor-page #week-summary,
.pf-vendor-page #overview-orders,
.pf-vendor-page #orders-board,
.pf-vendor-page #orders-week-board,
.pf-vendor-page #route-summary,
.pf-vendor-page #orders-list,
.pf-vendor-page #products-list,
.pf-vendor-page #preparation-list,
.pf-vendor-page #monthly-invoices-list {
  min-width: 0;
  max-width: 100%;
}

.pf-vendor-page .pf-card,
.pf-vendor-page .pf-stat-card,
.pf-vendor-page .pf-shortcut-card {
  overflow: hidden;
}

.pf-vendor-page .pf-week-row,
.pf-vendor-page .pf-report-head,
.pf-vendor-page .pf-report-row,
.pf-vendor-page .pf-order-line-row,
.pf-vendor-page .pf-daily-price-row,
.pf-vendor-page .pf-quote-line {
  grid-template-columns: 1fr;
}

.pf-history-expand {
  padding: 0 12px 12px;
}

.pf-order-board-main,
.pf-product-admin-main,
.pf-loyalty-list-item,
.pf-loyalty-highlight,
.pf-morning-dispatch-line {
  align-items: flex-start;
}

.pf-order-board-main,
.pf-order-board-side,
.pf-overview-order-meta,
.pf-history-meta,
.pf-product-admin-main {
  min-width: 0;
}

.pf-order-board-main strong,
.pf-order-board-main p,
.pf-order-board-side strong,
.pf-overview-order-meta strong,
.pf-overview-order-meta p {
  overflow-wrap: anywhere;
}

.pf-morning-dispatch-line {
  flex-direction: column;
}

.pf-supplier-editor-table,
.pf-report-table,
.pf-card pre,
.pf-order-detail-card,
.pf-delivery-card,
.pf-monthly-invoice-card,
.pf-overview-order-card {
  max-width: 100%;
}

.pf-supplier-editor-head-row {
  display: none;
}

.pf-supplier-editor-row {
  min-width: 760px;
  grid-template-columns:
    minmax(180px, 1.4fr)
    minmax(180px, 1.2fr)
    minmax(74px, 0.55fr)
    minmax(84px, 0.65fr)
    minmax(100px, 0.8fr)
    minmax(96px, 0.75fr)
    minmax(88px, 0.7fr)
    minmax(96px, 0.8fr)
    minmax(68px, 0.5fr);
}

.pf-delivery-assign-bar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.pf-delivery-assign-bar select {
  min-width: 0;
  width: 100%;
}

.pf-products-search-card,
.pf-auth-panel,
.pf-client-loyalty,
.pf-quick-checkout,
.pf-session-box {
  overflow: hidden;
}

.pf-proof-modal-card,
.pf-client-modal-card,
.pf-modal-card {
  width: calc(100% - 12px);
  max-height: 90dvh;
  padding: 18px;
}

.pf-product-admin-main {
  width: 100%;
}

.pf-product-admin-image {
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--green-dark);
  background-color: var(--surface-soft);
}

.pf-cart-toast {
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: none;
  text-align: center;
}

@media (max-width: 380px) {
  .pf-products-grid,
  .pf-topbar-actions,
  .pf-checkout-steps,
  .pf-vendor-tabs {
    grid-template-columns: 1fr;
  }
}

/* Evening polish: reduce cognitive load on account entry and seller cockpit. */
.pf-account-quick-actions {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #f3f8ef 0%, #fffdf8 72%);
}

.pf-account-quick-actions h3 {
  margin: 0;
  color: var(--pf-deep-green);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.pf-account-quick-actions p {
  margin-bottom: 0;
}

.pf-account-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pf-account-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--pf-deep-green);
  text-align: left;
  cursor: pointer;
}

.pf-account-choice.is-primary {
  border-color: var(--pf-deep-green);
  background: var(--pf-deep-green);
  color: #fff;
}

.pf-account-choice strong,
.pf-account-choice small {
  display: block;
}

.pf-account-choice small {
  margin-top: 4px;
  color: var(--pf-muted);
  font-size: 0.82rem;
}

.pf-account-choice.is-primary small { color: rgba(255, 255, 255, 0.78); }

.pf-account-choice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf3e9;
  color: var(--pf-deep-green);
  font-size: 1.35rem;
  font-weight: 800;
}

.pf-account-choice.is-primary .pf-account-choice-icon { background: #f4c542; }

.pf-account-section {
  scroll-margin-top: 18px;
}

.pf-vendor-page {
  background: #f5f3ed;
}

.pf-vendor-page .pf-vendor-main {
  background: transparent;
}

.pf-vendor-page .pf-vendor-toolbar {
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgb(38 61 45 / 7%);
}

.pf-vendor-page .pf-vendor-tabs {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 253 248 / 94%);
  box-shadow: 0 10px 28px rgb(38 61 45 / 9%);
  backdrop-filter: blur(12px);
}

.pf-cockpit-priority-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #d7e4d4;
  border-radius: 16px;
  background: #edf5e9;
  color: var(--pf-deep-green);
}

.pf-cockpit-priority-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-cockpit-priority-strip strong,
.pf-cockpit-priority-strip small { display: block; }
.pf-cockpit-priority-strip small { margin-top: 2px; color: var(--pf-muted); }

.pf-cockpit-priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d66a32;
  box-shadow: 0 0 0 5px #f9dfcd;
}

.pf-vendor-page .pf-cockpit-layout { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .8fr); }
.pf-vendor-page .pf-cockpit-hero { border-radius: 20px; box-shadow: 0 14px 32px rgb(23 61 43 / 16%); }
.pf-vendor-page .pf-cockpit-actions-card,
.pf-vendor-page .pf-cockpit-widgets-card { background: #fffdf8; }

@media (max-width: 720px) {
  .pf-account-choice-grid { grid-template-columns: 1fr; }
  .pf-account-quick-actions { padding: 18px; }
  .pf-vendor-page .pf-vendor-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }
  .pf-vendor-page .pf-vendor-tabs::-webkit-scrollbar { display: none; }
  .pf-vendor-page .pf-vendor-tab-button,
  .pf-vendor-page .pf-vendor-more summary { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .pf-cockpit-priority-strip { align-items: stretch; flex-direction: column; }
  .pf-cockpit-priority-strip .pf-inline-button { width: 100%; }
}

@media (min-width: 768px) and (max-width: 1023px), (min-width: 768px) and (pointer: coarse) and (hover: none) {
  .pf-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 16px;
  }

  .pf-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 16px 18px;
    position: static;
    box-shadow: none;
  }

  .pf-topbar-search {
    grid-column: 1 / -1;
    order: initial;
  }

  .pf-topbar-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .pf-vendor-page .pf-shell {
    width: min(100% - 24px, 1200px);
    margin: 0 auto;
    padding: 16px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .pf-vendor-page .pf-topbar {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    position: static;
  }

  .pf-store-meta,
  .pf-categories,
  .pf-products-section,
  .pf-checkout-stage,
  .pf-vendor-main,
  .pf-login-panels,
  #account-page,
  .pf-vendor-tab-panel,
  .pf-vendor-tabs {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pf-vendor-page .pf-vendor-main,
  .pf-vendor-page .pf-vendor-tabs,
  .pf-vendor-page .pf-vendor-tab-panel,
  .pf-vendor-page .pf-login-panels,
  .pf-vendor-page #vendor-dashboard {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .pf-categories {
    position: sticky;
    top: 16px;
    z-index: 12;
    box-shadow: 0 10px 24px rgba(83, 72, 50, 0.06);
  }

  .pf-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .pf-checkout-grid,
  .pf-login-panels,
  .pf-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pf-auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-dashboard-stats,
  .pf-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-vendor-page .pf-vendor-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  .pf-vendor-page .pf-vendor-tab-button {
    width: 100%;
    flex: initial;
    white-space: normal;
  }

  .pf-loyalty-metrics,
  .pf-order-detail-grid,
  .pf-modal-grid,
  .pf-role-grid,
  .pf-preparation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-checkout-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pf-vendor-page .pf-vendor-toolbar,
  .pf-vendor-page .pf-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
  }

  .pf-vendor-page .pf-vendor-toolbar-actions,
  .pf-vendor-page .pf-section-head .pf-inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .pf-section-head,
  .pf-store-head,
  .pf-vendor-toolbar,
  .pf-section-row,
  .pf-quick-checkout-head,
  .pf-loyalty-hero,
  .pf-morning-dispatch-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .pf-vendor-toolbar-actions,
  .pf-inline-actions,
  .pf-delivery-actions {
    display: flex;
    flex-wrap: wrap;
    width: auto;
  }

  .pf-primary-button,
  .pf-secondary-button,
  .pf-inline-button {
    width: auto;
  }

  .pf-vendor-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .pf-vendor-summary-role {
    justify-self: end;
  }

  .pf-order-line-row {
    grid-template-columns: 1fr auto auto;
  }

  .pf-daily-price-row {
    grid-template-columns: minmax(180px, 1.4fr) 120px 110px 130px;
    align-items: end;
  }

  .pf-report-head,
  .pf-report-row {
    grid-template-columns: 1.3fr 0.5fr 0.4fr;
  }

  .pf-report-table-extended .pf-report-head,
  .pf-report-table-extended .pf-report-row {
    grid-template-columns: minmax(180px, 1.6fr) 80px 90px 120px 110px 130px;
  }

  .pf-monthly-invoice-card {
    display: flex;
    align-items: center;
  }

  .pf-monthly-invoice-actions {
    width: auto;
  }
}

/* Client account: concise, grouped B2B profile with one clear sign-out action. */
#account-page > .pf-section-head { margin-bottom: 18px; }
#account-page > .pf-section-head h2 { margin-bottom: 6px; }
#account-page > .pf-section-head .pf-muted { max-width: 70ch; }
.pf-client-session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #dfe8db;
  border-radius: 16px;
  background: #f4f8f1;
}
.pf-client-session-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-client-session-identity > div { display: grid; gap: 3px; min-width: 0; }
.pf-client-session-identity strong { overflow-wrap: anywhere; }
.pf-client-session-identity span:not(.pf-client-session-mark) { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.pf-client-session-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: #dcebd6; color: var(--pf-deep-green); font-weight: 800; }
.pf-client-session-label { flex: 0 0 auto; color: #3e7549; font-size: .84rem; font-weight: 700; }
.pf-client-space-header { align-items: center; margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; }
.pf-client-view-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-client-view-tabs .client-view-button { min-height: 44px; padding-inline: 18px; }
.pf-client-view-tabs .client-view-button.active { border-color: var(--pf-deep-green); background: var(--pf-deep-green); color: white; }
.pf-client-space-caption { align-self: center; color: var(--muted); font-size: .88rem; }
.pf-client-profile-form { display: grid; gap: 14px; }
.pf-client-profile-group { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf9; }
.pf-client-profile-group legend { padding: 0 8px; color: var(--pf-deep-green); font-size: 1.08rem; font-weight: 800; }
.pf-client-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pf-client-profile-grid > label { min-width: 0; }
.pf-client-profile-grid > label input { width: 100%; min-width: 0; }
.pf-client-profile-wide { grid-column: 1 / -1; }
.pf-client-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pf-client-profile-save { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid #dfe8db; border-radius: 16px; background: rgba(255, 253, 248, .97); box-shadow: 0 8px 22px rgba(38, 61, 45, .10); }
.pf-client-profile-save > span { color: var(--muted); font-size: .88rem; }
.pf-client-profile-save .pf-primary-button { width: auto; min-width: 250px; }
#client-account-notice { margin: 0; }
#client-history-view > h3 { margin: 8px 0 14px; color: var(--pf-deep-green); }

@media (max-width: 760px) {
  .pf-client-session-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pf-client-space-header { align-items: stretch; }
  .pf-client-space-header > div { display: grid; }
  .pf-client-view-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .pf-client-view-tabs .client-view-button { width: 100%; }
  .pf-client-space-caption { display: none; }
  .pf-client-address-grid { grid-template-columns: 1fr; }
  .pf-client-profile-group { padding: 14px; }
  .pf-client-profile-grid { gap: 12px; }
  .pf-client-profile-save { align-items: stretch; flex-direction: column; bottom: max(8px, env(safe-area-inset-bottom)); }
  .pf-client-profile-save .pf-primary-button { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  .pf-client-profile-grid { grid-template-columns: 1fr; }
  .pf-client-profile-wide { grid-column: auto; }
  .pf-client-space-header .pf-danger-button { min-height: 44px; }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .pf-shell {
    width: min(100% - 48px, 1200px);
    padding-top: 20px;
  }

  .pf-topbar {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 40;
    box-shadow: 0 10px 24px rgba(83, 72, 50, 0.08);
  }

  .pf-topbar-search,
  .pf-topbar-actions {
    order: initial;
  }

  .pf-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
  }

  .pf-topbar-actions > * {
    width: auto;
  }

  .pf-vendor-page .pf-shell {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
    padding-top: 20px;
  }

  .pf-vendor-page .pf-topbar {
    position: sticky;
    top: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
  }

  .pf-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pf-checkout-grid,
  .pf-login-panels,
  .pf-settings-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  }

  .pf-summary-card {
    position: sticky;
    top: 16px;
  }

  .pf-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pf-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pf-loyalty-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .pf-modal-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pf-vendor-page .pf-vendor-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .pf-vendor-page .pf-vendor-tab-button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pf-vendor-page .pf-vendor-toolbar,
  .pf-vendor-page .pf-section-head {
    display: flex;
    align-items: flex-start;
  }

  .pf-vendor-page .pf-vendor-toolbar-actions,
  .pf-vendor-page .pf-section-head .pf-inline-actions {
    display: flex;
    flex-wrap: wrap;
    width: auto;
  }
}

/* Customer ordering visual hardening: keep the vendor and quote surfaces on legacy tokens. */
.pf-devis-body .pf-primary-button:hover:not(:disabled):not(.is-loading) {
  background: linear-gradient(180deg, #8b9473, #737b60);
}

body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-cart-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(38, 61, 45, 0.14);
  border-radius: 999px;
  background: var(--pf-cream);
  color: var(--pf-deep-green);
  font-weight: 800;
}

body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-nav-button.is-active,
body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-cart-button.is-active {
  background: var(--pf-deep-green);
  border-color: var(--pf-deep-green);
  color: #fff;
}

body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) #cart-count-badge {
  background: var(--pf-coral);
}

#shop-page .pf-category-button {
  min-height: 44px;
  flex: 0 0 auto;
  background: var(--pf-cream);
  color: var(--pf-deep-green);
  font-weight: 750;
  scroll-snap-align: start;
}

#shop-page .pf-category-list {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

#shop-page .pf-category-button.active {
  background: var(--pf-deep-green);
  border-color: var(--pf-deep-green);
  color: #fff;
  box-shadow: 0 5px 0 var(--pf-coral);
}

#shop-page .pf-product-card {
  border-radius: var(--pf-card-radius);
}

#shop-page .pf-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

#shop-page .pf-product-badge.is-destockage {
  background: var(--pf-coral);
  color: #fff;
}

#shop-page .pf-add-button {
  min-width: 44px;
  min-height: 44px;
  background: var(--pf-coral);
  color: #fff;
}

#shop-page .pf-primary-button,
#checkout-stage .pf-primary-button {
  background: var(--pf-deep-green);
  color: #fff;
}

#checkout-stage .pf-step-card {
  border-radius: var(--pf-card-radius);
}

#checkout-stage .pf-summary-card {
  border-top: 4px solid var(--pf-coral);
}

#shop-page .pf-category-button:focus-visible,
body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-cart-button:focus-visible {
  outline: 3px solid var(--pf-deep-green);
  outline-offset: 3px;
}

#shop-page .pf-add-button:focus-visible,
#shop-page .pf-primary-button:focus-visible,
#checkout-stage .pf-primary-button:focus-visible,
body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) #mobile-cart-cta:focus-visible,
body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-nav-button.is-active:focus-visible,
body.pf-body:not(.pf-vendor-page):not(.pf-devis-body) .pf-cart-button.is-active:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Three short, stateful steps for the client order flow. */
#checkout-stage .pf-checkout-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 18px;
}

#checkout-stage .pf-step-card {
  min-height: 64px;
  color: var(--muted);
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

#checkout-stage .pf-step-card.is-active {
  color: var(--pf-cream);
}

#checkout-stage .pf-step-card.is-completed strong::after {
  content: " · terminé";
  color: var(--green);
  font-size: 0.8em;
  font-weight: 600;
}

#checkout-stage .pf-checkout-panel > h3 {
  margin-top: 0;
}

#checkout-stage .pf-checkout-panel.is-checkout-panel-hidden {
  display: none !important;
}

#checkout-stage .pf-summary-card {
  min-width: 0;
}

#checkout-stage .pf-checkout-back {
  width: 100%;
}

#checkout-stage .pf-checkout-step-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(186, 71, 42, 0.22);
  border-radius: 12px;
  color: #852f1d;
  background: #fff3ef;
  font-weight: 650;
}

#checkout-stage .pf-checkout-mobile-bar {
  display: none;
}

#checkout-stage .pf-cart-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--pf-deep-green);
  background-color: #e9efdf;
  background-position: center;
  background-size: cover;
  font-weight: 800;
}

@media (max-width: 720px) {
  body.pf-checkout-open {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  #checkout-stage .pf-section-head {
    align-items: flex-start;
  }

  #checkout-stage .pf-section-head h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  #checkout-stage .pf-checkout-steps {
    position: sticky;
    z-index: 8;
    top: 8px;
    gap: 6px;
    margin: 8px 0 14px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(250, 247, 239, 0.96);
    box-shadow: 0 8px 22px rgba(38, 61, 45, 0.08);
    backdrop-filter: blur(10px);
  }

  #checkout-stage .pf-step-card {
    min-height: 48px;
    justify-content: center;
    gap: 7px;
    padding: 7px 5px;
    border-radius: 11px;
    font-size: 0.88rem;
  }

  #checkout-stage .pf-step-card span {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
  }

  #checkout-stage .pf-step-card.is-completed strong::after {
    content: "";
  }

  #checkout-stage .pf-summary-card {
    display: none;
  }

  #checkout-stage .pf-checkout-mobile-bar {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 0 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(38, 61, 45, 0.12);
    background: rgba(250, 247, 239, 0.98);
    box-shadow: 0 -10px 32px rgba(38, 61, 45, 0.12);
  }

  #checkout-stage .pf-checkout-mobile-summary {
    max-height: min(48vh, 360px);
    overflow: auto;
  }

  #checkout-stage .pf-checkout-mobile-summary summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--pf-deep-green);
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
  }

  #checkout-stage .pf-checkout-mobile-summary summary span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }

  #checkout-stage .pf-checkout-mobile-items {
    display: grid;
    gap: 8px;
    padding: 2px 0 10px;
  }

  #checkout-stage .pf-checkout-mobile-line,
  #checkout-stage .pf-checkout-mobile-totals {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
  }

  #checkout-stage .pf-checkout-mobile-line span {
    overflow-wrap: anywhere;
  }

  #checkout-stage .pf-checkout-mobile-totals {
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  #checkout-stage .pf-checkout-mobile-actions {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 5px;
  }

  #checkout-stage .pf-checkout-mobile-actions > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.78rem;
  }

  #checkout-stage .pf-checkout-mobile-actions strong {
    color: var(--pf-deep-green);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
  }

  #checkout-stage .pf-checkout-mobile-actions .pf-primary-button {
    width: 100%;
    min-width: 0;
    grid-column: 2;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  #checkout-stage .pf-checkout-mobile-back {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 0.84rem;
  }

  #checkout-stage[data-checkout-step="1"] .pf-checkout-mobile-back {
    display: none;
  }

  #checkout-stage[data-checkout-step="1"] .pf-checkout-mobile-actions .pf-primary-button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #checkout-stage .pf-step-card {
    transition: none;
  }
}

@media (max-width: 720px) {
  #shop-page .pf-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #shop-page .pf-product-card {
    grid-template-columns: 1fr auto;
    padding: 0 0 10px;
    gap: 8px;
    overflow: hidden;
  }

  #shop-page .pf-product-card .pf-product-image-shell {
    grid-column: 1 / -1;
    border-radius: 0;
    aspect-ratio: 1 / 0.88;
  }

  #shop-page .pf-product-card .pf-product-content {
    padding: 0 0 0 10px;
  }

  #shop-page .pf-product-card .pf-add-button {
    align-self: end;
    margin: 0 10px 0 0;
  }
}

/* Commandes and preparation: compact cockpit workflow */
.pf-workflow-progress,
.pf-gamified-bar {
  border: 1px solid #dfe7dd;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbf3 0%, #fffdf8 72%);
  box-shadow: 0 10px 26px rgba(38, 61, 45, .06);
}
.pf-workflow-progress { display: grid; gap: 12px; margin: 0 0 14px; padding: 17px 20px; }
.pf-workflow-progress-copy,
.pf-orders-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pf-workflow-progress-copy > div,
.pf-orders-progress-head > div { display: grid; gap: 3px; }
.pf-workflow-progress-copy strong,
.pf-orders-progress-head > div > strong { color: var(--pf-deep-green); font-size: 1.08rem; }
.pf-workflow-progress-copy > span,
.pf-orders-progress-head > span { color: #647267; font-size: .9rem; font-weight: 700; }
.pf-workflow-progress .pf-eyebrow,
.pf-orders-progress-head .pf-eyebrow { margin: 0; color: #788579; font-size: .7rem; letter-spacing: .09em; }
.pf-workflow-progress-track,
.pf-orders-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e9eee5; }
.pf-workflow-progress-track > span,
.pf-orders-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #77a56d, var(--pf-deep-green)); transition: width .28s ease; }
.pf-gamified-bar { display: grid; gap: 12px; margin-bottom: 14px; padding: 17px 20px; }
.pf-orders-progress-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pf-orders-progress-stats article { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; }
.pf-orders-progress-stats article > span { grid-row: span 2; color: #62845c; font-size: 1.05rem; }
.pf-orders-progress-stats strong { color: var(--pf-deep-green); }
.pf-orders-progress-stats small { color: #788579; }
.pf-workflow-order > summary { list-style: none; }
.pf-workflow-order > summary::-webkit-details-marker,
.pf-preparation-details > summary::-webkit-details-marker { display: none; }
.pf-workflow-order > summary::marker,
.pf-preparation-details > summary::marker { content: ""; }
.pf-workflow-order > summary:focus-visible,
.pf-preparation-summary:focus-visible { outline: 3px solid #dda940; outline-offset: -3px; }
.pf-workflow-order .pf-order-board-row { align-items: center; width: 100%; color: inherit; text-align: left; }
.pf-order-line-count { display: inline-block; margin-top: 6px; color: #788579; font-weight: 700; }
.pf-workflow-order .pf-history-expand { padding-top: 14px; }
.pf-preparation-list { gap: 10px; }
.pf-preparation-card { gap: 0; overflow: hidden; border-radius: 19px; border-color: #e6e4d9; box-shadow: 0 7px 22px rgba(38, 61, 45, .045); }
.pf-preparation-card.is-expanded { border-color: #a9c5a5; box-shadow: 0 10px 28px rgba(38, 61, 45, .09); }
.pf-preparation-card.is-prepared { border-color: #d7e7d3; background: linear-gradient(120deg, #f8fcf6, #fff); }
.pf-preparation-card > .pf-preparation-select { align-self: start; justify-self: end; margin: 12px 14px 0; padding: 7px 10px; border: 1px solid #e9e4d8; border-radius: 999px; background: #fffdf8; }
.pf-preparation-details { min-width: 0; }
.pf-preparation-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px 17px; cursor: pointer; list-style: none; }
.pf-preparation-summary-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: var(--pf-deep-green); background: #edf5e9; font-size: 1.18rem; }
.is-prepared .pf-preparation-summary-mark { color: #fff; background: #5c8d5e; }
.pf-preparation-summary-main { display: grid; min-width: 0; gap: 4px; }
.pf-preparation-summary-main > strong { overflow: hidden; color: var(--pf-deep-green); font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.pf-preparation-summary-main > span,
.pf-preparation-summary-main > small { overflow: hidden; color: #778176; text-overflow: ellipsis; white-space: nowrap; }
.pf-preparation-summary-side { display: flex; align-items: center; gap: 10px; }
.pf-preparation-summary-side > strong { color: var(--pf-deep-green); white-space: nowrap; }
.pf-preparation-details-body { display: grid; gap: 13px; padding: 0 18px 18px; border-top: 1px solid #edf0e9; }
.pf-preparation-saved-state { min-height: 1.2em; margin: 0; padding-top: 10px; color: #6e7a6f; font-size: .84rem; }
.pf-preparation-order-total { padding: 10px 13px; }
.pf-preparation-line { padding: 12px; border: 1px solid #ece9df; border-radius: 15px; background: #fff; }
.pf-preparation-line.is-adjusted,
.pf-preparation-line.is-rupture { padding: 12px; }
.pf-preparation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-preparation-total-box { grid-column: span 2; }
.pf-preparation-complete-note { align-self: center; color: #4f8052; font-weight: 800; }
.pf-print-station { position: sticky; top: 78px; z-index: 8; border-radius: 18px; box-shadow: 0 8px 22px rgba(38, 61, 45, .1); }

/* Compact two-panel order workspaces */
.pf-workflow-split {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}
.pf-workflow-queue,
.pf-workflow-detail {
  min-width: 0;
  border: 1px solid #e6e4d9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(38, 61, 45, .045);
}
.pf-workflow-queue { position: sticky; top: 86px; overflow: hidden; }
.pf-workflow-queue-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-bottom: 1px solid #edf0e9; color: var(--pf-deep-green); }
.pf-workflow-queue-head > span { min-width: 28px; padding: 3px 8px; border-radius: 999px; background: #edf5e9; text-align: center; font-weight: 800; }
.pf-workflow-queue-items { display: grid; max-height: min(66vh, 680px); overflow-y: auto; overscroll-behavior: contain; }
.pf-workflow-queue-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-width: 0; padding: 11px 12px; border: 0; border-bottom: 1px solid #f0eee7; border-radius: 0; background: #fff; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pf-workflow-queue-item:hover { background: #fbfaf5; }
.pf-workflow-queue-item.is-selected,
.pf-workflow-preparation-row.is-selected { background: #eef5eb; }
.pf-workflow-queue-item:focus-visible,
.pf-workflow-back:focus-visible { outline: 3px solid #dda940; outline-offset: -3px; }
.pf-workflow-queue-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: #f3f1e8; color: var(--pf-deep-green); font-weight: 800; }
.pf-workflow-queue-copy { display: grid; min-width: 0; gap: 3px; }
.pf-workflow-queue-copy > strong { overflow: hidden; color: var(--pf-deep-green); text-overflow: ellipsis; white-space: nowrap; }
.pf-workflow-queue-copy > small { overflow: hidden; color: #748075; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.pf-workflow-queue-side { display: grid; justify-items: end; gap: 5px; }
.pf-workflow-queue-side > strong { color: var(--pf-deep-green); font-size: .86rem; white-space: nowrap; }
.pf-workflow-queue-side .pf-status-pill { padding: 4px 7px; font-size: .68rem; }
.pf-workflow-detail { overflow: hidden; }
.pf-workflow-detail-scroll { max-height: calc(100vh - 255px); overflow-y: auto; overscroll-behavior: contain; padding: 15px 17px 18px; }
.pf-workflow-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #edf0e9; }
.pf-workflow-detail-head h2 { margin: 0; color: var(--pf-deep-green); font-size: 1.35rem; }
.pf-workflow-detail-head p { margin: 4px 0 0; }
.pf-workflow-detail-head > strong { color: var(--pf-deep-green); white-space: nowrap; }
.pf-workflow-back { display: none; }
.pf-workflow-preparation-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-bottom: 1px solid #f0eee7; }
.pf-workflow-preparation-row .pf-workflow-queue-item { border-bottom: 0; }
.pf-workflow-preparation-row.is-prepared .pf-workflow-queue-mark { color: white; background: #5c8d5e; }
.pf-workflow-bl-select { display: grid; justify-items: center; gap: 2px; min-width: 48px; color: #778176; font-size: .68rem; font-weight: 800; cursor: pointer; }
.pf-workflow-bl-select input { width: 18px; height: 18px; accent-color: var(--pf-deep-green); }
.pf-preparation-lines { gap: 7px; }
.pf-preparation-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 9px 11px; border: 1px solid #ece9df; border-radius: 13px; background: #fff; }
.pf-preparation-line.is-adjusted,
.pf-preparation-line.is-rupture { padding: 9px 11px; }
.pf-preparation-line-main { display: grid; gap: 2px; }
.pf-preparation-line-main > strong { color: var(--pf-deep-green); }
.pf-preparation-line-main > p { margin: 0; font-size: .78rem; }
.pf-preparation-quick-edit { display: flex; align-items: center; gap: 9px; }
.pf-preparation-quick-edit label { min-width: 110px; margin: 0; font-size: .72rem; }
.pf-preparation-quick-edit input { width: 88px; min-height: 38px; padding: 6px 8px; }
.pf-preparation-quick-edit .pf-preparation-total-box { min-width: 78px; padding: 0; border: 0; background: transparent; }
.pf-preparation-extra { grid-column: 1 / -1; }
.pf-preparation-extra > summary { width: fit-content; color: #67766a; font-size: .76rem; font-weight: 700; cursor: pointer; }
.pf-preparation-extra-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.pf-preparation-extra-fields label { margin: 0; font-size: .74rem; }
.pf-preparation-note-field { grid-column: 1 / -1; }
.pf-preparation-extra input,
.pf-preparation-extra select { min-height: 36px; padding: 6px 9px; }
.pf-workflow-preparation .pf-inline-actions { position: sticky; bottom: -18px; z-index: 2; margin: 0 -17px -18px; padding: 10px 17px; border-top: 1px solid #e7e9e1; background: rgba(255, 255, 255, .96); }
.pf-orders-progress-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.pf-orders-progress-stats article { grid-template-columns: auto 1fr; padding: 8px 9px; }
.pf-orders-progress-stats small { font-size: .72rem; }
.pf-print-station { gap: 12px; padding: 14px 17px; }
.pf-print-station h2 { font-size: 1.05rem; }
.pf-print-station-icon { width: 38px; height: 38px; }

@media (max-width: 720px) {
  .pf-workflow-progress,
  .pf-gamified-bar { padding: 14px; border-radius: 16px; }
  .pf-workflow-progress-copy { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pf-orders-progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-workflow-order .pf-order-board-row { align-items: flex-start; flex-direction: column; padding: 14px; }
  .pf-workflow-order .pf-order-board-side { width: 100%; justify-content: space-between; }
  .pf-preparation-summary { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px 14px 15px; }
  .pf-preparation-summary-mark { width: 36px; height: 36px; }
  .pf-preparation-summary-side { grid-column: 2; justify-content: space-between; }
  .pf-preparation-card > .pf-preparation-select { margin: 10px 12px 0; }
  .pf-preparation-details-body { padding: 0 12px 14px; }
  .pf-preparation-grid { grid-template-columns: 1fr; }
  .pf-preparation-total-box { grid-column: auto; }
  .pf-preparation-details-body .pf-inline-actions { display: grid; grid-template-columns: 1fr; }
  .pf-preparation-details-body .pf-inline-actions > * { width: 100%; }
  .pf-print-station { top: 72px; }
  .pf-workflow-split { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pf-workflow-queue { position: static; }
  .pf-workflow-queue-items { max-height: 52vh; }
  .pf-workflow-detail { display: none; }
  .pf-workflow-split.is-detail-open .pf-workflow-queue { display: none; }
  .pf-workflow-split.is-detail-open .pf-workflow-detail { display: block; }
  .pf-workflow-back { display: inline-flex; align-items: center; min-height: 42px; margin: 10px 10px 0; padding: 8px 12px; border: 1px solid #e5e1d5; border-radius: 12px; background: #f8f6ef; color: var(--pf-deep-green); font: inherit; font-weight: 750; cursor: pointer; }
  .pf-workflow-detail-scroll { max-height: none; overflow: visible; padding: 12px; }
  .pf-workflow-detail-head { align-items: center; }
  .pf-workflow-detail-head h2 { font-size: 1.18rem; }
  .pf-workflow-queue-item { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 7px; padding: 10px 9px; }
  .pf-workflow-queue-side .pf-status-pill { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-workflow-bl-select { min-width: 42px; }
  .pf-preparation-line { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-preparation-extra-fields { grid-template-columns: 1fr; }
  .pf-preparation-note-field { grid-column: auto; }
  .pf-preparation-quick-edit label { min-width: 95px; }
  .pf-preparation-quick-edit input { width: 76px; }
  .pf-workflow-preparation .pf-inline-actions { position: sticky; bottom: -12px; margin: 0 -12px -12px; padding: 10px 12px; }
  .pf-orders-progress-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-print-station-copy { gap: 9px; }
  .pf-print-station-actions { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-workflow-progress-track > span,
  .pf-orders-progress-track > span,
  .pf-clickable-card { transition: none !important; }
}
/* Client discount editor: clear levels and tactile rule cards */
.pf-client-promotion-editor{gap:18px;padding:22px;border-radius:22px;background:linear-gradient(145deg,#f3f8ee,#fff9e9);border-color:#d7e7d1;box-shadow:0 12px 28px rgba(36,68,46,.08)}
.pf-promo-heading h3{font-size:1.35rem}.pf-promo-levels{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pf-promo-levels span{padding:7px 12px;border-radius:999px;background:#fff;color:#284533;font-weight:700;font-size:.88rem;border:1px solid #e6e3d7}
.pf-promotion-add-row{padding:16px;border-radius:16px;background:rgba(255,255,255,.8)}.pf-promotion-add-row button{min-height:48px}
.pf-client-promotion-rules{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.pf-client-promotion-row{grid-template-columns:24px minmax(0,1fr) 86px auto;min-height:74px;padding:14px;border-radius:17px;border-color:#e1e8d9;box-shadow:0 5px 14px rgba(36,68,46,.06)}.pf-client-promotion-row:has(input[type=checkbox]:checked){background:#f1f8ed;border-color:#9ec89f}.pf-client-promotion-row input[type=number]{font-size:1.1rem;font-weight:800;text-align:center;border-radius:12px}.pf-client-promotion-row input[type=checkbox]{width:21px;height:21px}
@media(max-width:680px){.pf-client-promotion-editor{padding:16px}.pf-client-promotion-rules{grid-template-columns:1fr}.pf-client-promotion-row{grid-template-columns:24px minmax(0,1fr) 74px}.pf-client-promotion-row .pf-link-button{grid-column:2/-1}}
.pf-promo-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px;color:#263d2f}.pf-promo-list-heading span{padding:5px 10px;border-radius:999px;background:#e6f2e4;color:#2c6841;font-size:.85rem;font-weight:700}.pf-promotion-add-row{display:grid;grid-template-columns:1fr 1.5fr .7fr auto;align-items:end;gap:12px;padding:18px;border:1px solid #e4e9dc;border-radius:18px;background:#fff}.pf-client-promotion-rules{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.pf-client-promotion-row{grid-template-columns:24px minmax(0,1fr) 74px auto;min-height:76px;padding:14px;border-radius:16px;background:#fff;border-color:#e3e9dc;box-shadow:0 4px 12px #233d2a0c}.pf-client-promotion-row:has(input[type=checkbox]:checked){background:#eff7ed;border-color:#a9cba5}.pf-client-promotion-row input[type=number]{font-size:1.05rem;font-weight:800;text-align:center;border-radius:11px}.pf-promo-levels span{font-variant-numeric:tabular-nums}@media(max-width:680px){.pf-promotion-add-row{grid-template-columns:1fr 1fr}.pf-promotion-add-row label:nth-child(2){grid-column:1/-1}.pf-promotion-add-row button{grid-column:1/-1}.pf-client-promotion-rules{grid-template-columns:1fr}}

/* Final cascade for the seller workspace: keep daily work in view. */
@media (min-width: 1024px) {
  .pf-vendor-page .pf-shell { width: min(100% - 48px, 1560px); }
  .pf-vendor-page .pf-cockpit-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .pf-vendor-page .pf-dashboard-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .pf-vendor-page #week-summary.pf-week-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.pf-vendor-page .pf-vendor-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; box-shadow: 0 4px 14px rgb(38 61 45 / 5%); }
.pf-vendor-page .pf-vendor-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pf-vendor-page .pf-vendor-summary-main { gap: 10px; }
.pf-vendor-page .pf-vendor-account-logo { width: 46px; height: 46px; border-radius: 11px; }
.pf-vendor-page .pf-vendor-summary-main h2 { margin: 0; font-family: inherit; font-size: 1rem; line-height: 1.25; }
.pf-vendor-page .pf-vendor-summary-main .pf-eyebrow,
.pf-vendor-page .pf-vendor-summary-main .pf-muted { display: none; }
.pf-vendor-page .pf-vendor-toolbar-actions { align-items: center; gap: 8px; }
.pf-vendor-page .pf-vendor-toolbar-actions label { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; }
.pf-vendor-page .pf-vendor-toolbar-actions input,
.pf-vendor-page .pf-vendor-toolbar-actions .pf-inline-button { min-height: 40px; }
.pf-vendor-page .pf-vendor-tabs { top: 8px; margin-bottom: 12px; padding: 8px 11px; border-radius: 14px; }
.pf-vendor-page .pf-vendor-tab-button { min-height: 40px; padding: 8px 12px; font-size: .91rem; }
.pf-vendor-page .pf-vendor-tab-panel { padding: 20px; }
.pf-vendor-page .pf-section-head { margin-bottom: 12px; }
.pf-vendor-page .pf-page-title { font-family: inherit; font-size: 1.7rem; line-height: 1.15; }
.pf-vendor-page .pf-cockpit-layout { gap: 14px; }
.pf-vendor-page .pf-cockpit-main,
.pf-vendor-page .pf-cockpit-side { gap: 11px; }
.pf-vendor-page .pf-cockpit-hero { min-height: 116px; padding: 18px 20px; border-radius: 15px; box-shadow: none; }
.pf-vendor-page .pf-cockpit-hero .pf-eyebrow { margin: 0 0 6px; font-size: .72rem; letter-spacing: .08em; }
.pf-vendor-page .pf-cockpit-hero h2 { margin: 0; font-size: 1.4rem; }
.pf-vendor-page .pf-cockpit-hero .pf-muted { margin: 5px 0 0; font-size: .9rem; }
.pf-vendor-page .pf-cockpit-primary-action { min-width: 190px; min-height: 44px; padding: 9px 13px; }
.pf-vendor-page .pf-stat-card { min-width: 0; padding: 12px; }
.pf-vendor-page .pf-stat-card strong { font-size: 1.28rem; font-variant-numeric: tabular-nums; }
.pf-vendor-page .pf-cockpit-section,
.pf-vendor-page .pf-cockpit-actions-card,
.pf-vendor-page .pf-cockpit-widgets-card { padding: 15px; border-radius: 14px; }
.pf-vendor-page .pf-cockpit-actions { gap: 6px; margin-top: 9px; }
.pf-vendor-page .pf-cockpit-actions .pf-shortcut-card { padding: 9px 10px; }
.pf-vendor-page .pf-cockpit-actions .pf-shortcut-card small { display: none; }
.pf-vendor-page .pf-widget-row { padding: 9px 0; }
.pf-vendor-page #week-summary.pf-week-list { gap: 7px; }
.pf-vendor-page #week-summary > .pf-info-bar { grid-column: 1 / -1; }
.pf-vendor-page .pf-week-row { grid-template-columns: 1fr; justify-items: start; gap: 4px; min-height: 88px; padding: 10px; border-radius: 11px; }
.pf-vendor-page .pf-week-row time { color: #66766a; font-size: .8rem; text-transform: capitalize; }
.pf-vendor-page .pf-week-row strong { color: var(--pf-deep-green); font-size: .88rem; }
.pf-vendor-page .pf-week-row > span { color: #718078; font-size: .77rem; font-variant-numeric: tabular-nums; }
.pf-vendor-page [data-tab-panel="preparation"][data-empty="true"] #preparation-progress,
.pf-vendor-page [data-tab-panel="preparation"][data-empty="true"] #preparation-print-toolbar { display: none; }
.pf-vendor-page [data-tab-panel="preparation"][data-empty="true"] #preparation-list,
.pf-vendor-page [data-tab-panel="deliveries"].is-empty #route-summary { min-height: 0; margin: 0; padding: 14px 16px; border: 1px solid #dce8d8; border-radius: 13px; background: #f2f7ef; color: #38583f; }
.pf-vendor-page [data-tab-panel="deliveries"].is-empty #orders-list { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .pf-vendor-page .pf-dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .pf-vendor-page #week-summary.pf-week-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pf-vendor-page .pf-vendor-toolbar { grid-template-columns: 1fr; gap: 9px; padding: 11px; }
  .pf-vendor-page .pf-vendor-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-vendor-page .pf-vendor-toolbar-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; }
  .pf-vendor-page .pf-vendor-toolbar-actions label { grid-column: 1 / -1; justify-content: space-between; }
  .pf-vendor-page .pf-vendor-toolbar-actions label input { flex: 1; }
  .pf-vendor-page .pf-vendor-toolbar-actions .pf-inline-button { width: 100%; min-width: 0; padding: 7px; font-size: .82rem; }
  .pf-vendor-page .pf-vendor-tab-panel { padding: 13px; }
  .pf-vendor-page .pf-page-title { font-size: 1.5rem; }
  .pf-vendor-page .pf-cockpit-hero { display: grid; gap: 11px; min-height: 0; padding: 15px; }
  .pf-vendor-page .pf-cockpit-primary-action { width: 100%; margin: 0; }
  .pf-vendor-page .pf-dashboard-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-vendor-page .pf-stat-card { padding: 11px; }
  .pf-vendor-page #week-summary.pf-week-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-vendor-page .pf-week-row { min-height: 78px; }
}
.pf-vendor-page .pf-vendor-tab-button:focus-visible,
.pf-vendor-page .pf-vendor-more summary:focus-visible,
.pf-vendor-page .pf-widget-row:focus-visible,
.pf-vendor-page .pf-shortcut-card:focus-visible,
.pf-vendor-page .pf-week-row:focus-visible { outline: 3px solid #d9a73d; outline-offset: 2px; }
