/* Supplier Hub workspace (Joel, 17 Oct 2026). No office navigation. */
.supplier-hub { background: #f6f5f2; margin: 0; }
.supplier-header { background: #1f2a33; color: #fff; }
.supplier-header-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.supplier-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.supplier-brand img { background: #fff; border-radius: 6px; padding: 2px 6px; height: 34px; width: auto; }
.supplier-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.supplier-nav a { color: #dfe6ea; text-decoration: none; padding: 8px 12px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.supplier-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.supplier-header form { display: flex; align-items: center; gap: 10px; margin: 0; }
.supplier-user { color: #dfe6ea; font-size: 0.9rem; }
.supplier-main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.supplier-main .form-panel { margin-bottom: 20px; }
.supplier-login { max-width: 460px; margin: 40px auto; }
.supplier-areas, .supplier-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.supplier-area { text-decoration: none; color: inherit; display: block; }
.supplier-figure { font-size: 1.9rem; font-weight: 600; margin: 4px 0; }
.supplier-history { margin: 0; padding-left: 18px; }
.supplier-main input[type="text"], .supplier-main input[type="date"], .supplier-main input[type="number"] { min-height: 40px; }
@media (max-width: 640px) { .supplier-header-inner { justify-content: flex-start; } }
.supplier-tiles .form-panel, .supplier-areas .form-panel { margin: 0; }

/* Supplier branding: the area shows the supplier's own logo and colour (Joel, 17 Oct 2026). */
.supplier-header.is-branded { background: var(--supplier-brand, #1f2a33); color: var(--supplier-brand-text, #fff); }
.supplier-header.is-branded .supplier-brand, .supplier-header.is-branded .supplier-user,
.supplier-header.is-branded .supplier-nav a { color: var(--supplier-brand-text, #fff); }
.supplier-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.supplier-brand small { font-weight: 400; font-size: 0.78rem; opacity: 0.85; }
.supplier-brand .supplier-brand-logo { height: 40px; max-width: 260px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.supplier-footer { max-width: 1180px; margin: 0 auto; padding: 8px 16px 28px; color: #6b6b6b; font-size: 0.82rem; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.supplier-footer img { height: 22px; width: auto; }
.supplier-brand .supplier-location { font-size: 1.15rem; font-weight: 600; }
.delivery-flag { color: #8a4b00; font-weight: 600; }
.delivery-alert { border-left: 4px solid #c8871a; }
.delivery-change.is-pending { border-left: 4px solid #c8871a; padding: 8px 14px; background: #fbf6ec; border-radius: 6px; }
.delivery-history { margin: 6px 0 0; padding-left: 18px; }

/* Needs attention, dashboard periods and material demand (owner review B–D, 17 Oct 2026). */
.attention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.attention-item { border-top: 3px solid #d9d4c7; padding-top: 8px; min-width: 0; }
.attention-item[data-attention-quotes]:not([data-attention-quotes="0"]),
.attention-item[data-attention-orders]:not([data-attention-orders="0"]),
.attention-item[data-attention-changes]:not([data-attention-changes="0"]) { border-top-color: #c8871a; }
.attention-count { font-size: 1.6rem; font-weight: 600; margin: 2px 0 4px; }
.attention-list { margin: 0; padding-left: 18px; font-size: 0.92rem; }
.attention-list li { margin: 2px 0; overflow-wrap: anywhere; }
.period-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.period-form label { display: flex; flex-direction: column; font-size: 0.85rem; gap: 2px; }
.period-form select, .period-form input[type="date"] { min-height: 40px; }
.supplier-figure-note { font-size: 0.85rem; margin: 0; }
.demand-flag { display: inline-block; font-size: 0.78rem; padding: 1px 7px; border-radius: 10px; background: #efe9dc; color: #5b4a22; margin: 2px 4px 0 0; white-space: nowrap; }
.demand-flag.is-gap { background: #fbe7d6; color: #8a4b00; }
.sku-suggested { display: block; font-size: 0.75rem; color: #6b6b6b; margin-top: 2px; }
.sku-suggested.is-several { color: #8a4b00; }
.supplier-main [data-spaced] { margin-top: 14px; }
.period-form [hidden] { display: none; }

/* Supplier PRO Desk (Joel, 20 Oct 2026): a walk-in quotation at the counter, one page, eight steps. */
.pd-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.pd-steps a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid #d9d4c7; color: inherit; text-decoration: none; font-size: 0.9rem; }
.pd-steps a[data-done="true"] { border-color: #2f7d4f; color: #1f5a37; }
.pd-steps a[data-done="true"]::before { content: "✓"; font-weight: 700; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.pd-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; min-width: 0; }
.pd-grid input, .pd-grid select { min-height: 42px; width: 100%; box-sizing: border-box; }
.pd-grid .pd-help { font-size: 0.78rem; color: #6b6b6b; }
.pd-group { margin: 14px 0 6px; font-size: 0.95rem; }
.pd-structural { color: #8a4b00; font-size: 0.78rem; }
.pd-openings { width: 100%; border-collapse: collapse; }
.pd-openings td { padding: 3px 4px; }
.pd-openings select, .pd-openings input { min-height: 40px; width: 100%; box-sizing: border-box; }
.pd-status { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; white-space: nowrap; background: #e7f1ea; color: #1f5a37; }
.pd-status.is-review { background: #fbf1df; color: #7a4a00; }
.pd-status.is-missing, .pd-status.is-no_product, .pd-status.is-no_price, .pd-status.is-no_quantity { background: #fbe4e2; color: #8f1d1d; }
.pd-status.is-excluded, .pd-status.is-by_design { background: #eceff3; color: #3a414b; }
.pd-basis { display: block; font-size: 0.76rem; color: #59606b; margin-top: 2px; }
.pd-drawings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.pd-drawings img { width: 100%; height: auto; border: 1px solid #d9d4c7; background: #fff; }
.pd-sketches { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-sketches figure { margin: 0; width: 180px; }
.pd-sketches img { width: 180px; height: 140px; object-fit: cover; border: 1px solid #d9d4c7; background: #fff; }
.pd-totals { margin-left: auto; max-width: 360px; }
.pd-totals td { padding: 3px 6px; }
.pd-totals tr:last-child td { font-weight: 700; border-top: 2px solid #1f2a33; }
.pd-blockers { border-left: 4px solid #c8871a; background: #fbf6ec; padding: 8px 14px; border-radius: 6px; }
.pd-link { word-break: break-all; background: #fff; border: 1px dashed #c8871a; padding: 8px; border-radius: 6px; }
.pd-synthetic { background: #fbe9e7; color: #9b1c1c; font-weight: 600; padding: 6px 12px; border-radius: 6px; }
.pd-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.pd-inline select, .pd-inline input { min-height: 38px; max-width: 100%; }
.pd-table-wrap { overflow-x: auto; }
/* Phones: each table row becomes a card so price and total stay on screen (no sideways scrolling). */
@media (max-width: 640px) {
  .pd-stack thead { display: none; }
  .pd-stack, .pd-stack tbody, .pd-stack tr, .pd-stack td { display: block; width: 100%; }
  .pd-stack tr { border: 1px solid var(--line, #d9dde3); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
  .pd-stack td { border: 0; padding: 3px 0; text-align: left; }
  .pd-stack td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  .pd-stack td[data-label]::before { content: attr(data-label); color: var(--muted, #5b6470); font-size: 0.85em; }
}
@media (max-width: 640px) { .pd-openings thead { display: none; } .pd-openings tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; } }

/* Quick Quote (20 Oct 2026) */
.pd-standards { display: grid; gap: 10px; }
.pd-standard { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #d9dde3); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.pd-standard input { margin-top: 4px; min-width: 18px; min-height: 18px; }
.pd-standard span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pd-quick-doors { display: grid; gap: 8px; }
.pd-quick-door { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr 1.4fr; gap: 6px; }
.pd-quick-door input, .pd-quick-door select { min-height: 44px; width: 100%; box-sizing: border-box; min-width: 0; }
@media (max-width: 640px) { .pd-quick-door { grid-template-columns: 1fr 1fr; } .pd-quick-door select:first-child { grid-column: 1 / -1; } .pd-quick-door select:last-child { grid-column: 1 / -1; } }
.pd-provenance { display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--accent, #c9a227); padding: 6px 10px; margin: 8px 0; background: rgba(201, 162, 39, 0.08); }
.pd-detailed > summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.pd-tag { align-self: flex-start; display: inline-block; font-size: 0.75em; padding: 1px 6px; border-radius: 10px; background: #eef0f3; color: #4a5260; font-weight: 500; }
label.pd-inline { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; min-width: 0; max-width: 100%; overflow-wrap: anywhere; } label.pd-inline input[type=checkbox] { margin-top: 3px; min-width: 20px; min-height: 20px; flex: none; }
label.pd-inline > .pd-inline-text { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
