/* V20 — consistent screen finish. Permissions, print layout and workflow are unchanged. */
@media screen {
  .interface-light :is(button, .email-button) { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .interface-light :is(button, .email-button):focus-visible { outline: 3px solid #397db0; outline-offset: 3px; }
  .interface-light .actions { align-items: stretch; gap: 8px; }
  .interface-light .actions > :is(button, .email-button) { min-width: 0; }
  .interface-light :is(.connected-profile, .request-main, .oem-customer-content, .admin-store-head > div) { min-width: 0; }
  .interface-light .connected-profile :is(strong, span) { min-width: 0; overflow-wrap: anywhere; }
  .interface-light input::placeholder, .interface-light textarea::placeholder { color: var(--modern-muted, #647587); opacity: 1; }
  .interface-light :is(.language-switch button, .sort-control select, .release-task-filters .work-stage, #newRequestPanel .add-piece-button) { min-height: 44px; }
  .interface-light .transaction-dates { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 11px; line-height: 1.5; }
  .interface-light .request-summary .request-reference-label { font-size: 12px; }
  .interface-light .request-summary .team-summary { font-size: 11px; gap: 4px 12px; margin-top: 7px; }
  .interface-light .request-pieces-preview { overflow-wrap: anywhere; }
  .interface-light .status-badge { line-height: 1.45; overflow-wrap: anywhere; }
  .interface-light .request-amount, .interface-light .oem-customer-prices b { font-variant-numeric: tabular-nums; }
  .interface-light .request-amount-label { font-size: 11px; }
  .interface-light .request.is-open .oem-customer-prices { gap: 12px 20px !important; }
  .interface-light .request.is-open .oem-customer-prices > div { min-width: 0; overflow-wrap: anywhere; }
  .interface-light .oem-customer-prices :is(.oem-customer-retail, .oem-customer-napa-price) > span { display: block; color: var(--modern-muted, #647587); font-size: 12px; }
  .interface-light .oem-customer-prices .oem-customer-napa-price > b { color: #204f72; }
  .interface-light .oem-customer-ref { margin-top: 4px; font-size: 12px; line-height: 1.5; }
  .interface-light .oem-customer-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0 0; padding: 8px 0; font-size: 13px; }
  .interface-light .oem-customer-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #245a7e; }
  .interface-light .light-part-facts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 8px 0; }
  .interface-light .light-part-facts strong { font-size: 18px; font-variant-numeric: tabular-nums; color: #204f72; }
  .interface-light .light-part-facts :is(span, small) { font-size: 12px; line-height: 1.5; }
  .interface-light .light-details > summary { min-height: 44px; display: flex; align-items: center; font-size: 12px; line-height: 1.45; }
  .interface-light :is(.notice, .account-mail-state) { font-size: 12px; line-height: 1.55; border-radius: 8px; overflow-wrap: anywhere; }
  .interface-light .notice.info { color: #35546a; background: #f0f5f9; border-color: #d8e3ed; }
  .interface-light .notice.error { color: #8c2c1d; background: #fff4f0; border-color: #eed1c8; }
  .interface-light .empty { border: 1px solid var(--modern-line, #e1e7ed); border-radius: 12px; padding: 32px 20px; background: #fff; }
  .interface-light .empty .empty-title { font-size: 16px; color: var(--modern-ink, #163247); }
  .interface-light .empty :is(p, .empty-text) { font-size: 13px; line-height: 1.6; color: var(--modern-muted, #647587); }
  .interface-light .toast-container { max-width: min(440px, calc(100vw - 24px)); }
  .interface-light .toast { align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
  .interface-light .toast > span { min-width: 0; overflow-wrap: anywhere; }
  .interface-light .toast button { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 8px; }
  .interface-light .admin-network { gap: 16px; }
  .interface-light .admin-store-card { padding: 20px; }
  .interface-light .admin-store-head { gap: 14px; padding-bottom: 14px; }
  .interface-light .admin-store-head h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
  .interface-light .admin-link-block > h3 { font-size: 11px; letter-spacing: .04em; color: var(--modern-muted, #647587); }
  .interface-light .admin-link-row { padding: 12px 0; }
  .interface-light .admin-link-row strong { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
  .interface-light :is(.admin-link-row, .admin-garage-title) small { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .interface-light .admin-garage-title strong { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
  .interface-light .admin-garage-row { background: #fbfcfd; border-color: var(--modern-line, #e1e7ed); padding: 14px; }
  .interface-light :is(.admin-link-row, .admin-garage-title) .actions button { white-space: normal; padding: 9px 12px; }
  .interface-light :is(.team-bell-panel, .oem-brands-dialog, .mail-settings-dialog) { border: 1px solid var(--modern-line, #e1e7ed); border-radius: 12px; box-shadow: 0 24px 70px #15384f24; background: #fff; }
  .interface-light .team-bell-panel { padding: 16px; }
  .interface-light .team-bell-head h2 { font-size: 19px; letter-spacing: -.02em; }
  .interface-light .team-bell-head p { font-size: 12px; line-height: 1.5; }
  .interface-light .team-bell-panel .team-notification { padding: 13px 12px; font-size: 12px; line-height: 1.5; border-color: #e1e7ed; }
  .interface-light .team-notification strong { font-size: 13px; }
  .interface-light .team-notification small { font-size: 11px; line-height: 1.45; }
  .interface-light .inbox-record { overflow-wrap: anywhere; }
  .interface-light .inbox-empty { padding: 24px 12px; font-size: 13px; line-height: 1.6; }
  .interface-light .inbox-footer { font-size: 12px; line-height: 1.5; }
  .interface-light .oem-brands-dialog .oem-brands-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .interface-light [data-team-form-error] { margin: 16px 0; padding: 11px 13px; border: 1px solid #eed1c8; border-radius: 8px; background: #fff4f0; color: #8c2c1d; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
  body > main.card :is(button, a, label, p) { overflow-wrap: anywhere; }
  body > main.card input::placeholder { color: #647587; opacity: 1; }
  body > main.card button:focus-visible { outline: 3px solid #397db0; outline-offset: 3px; }
}
@media screen and (max-width:760px) {
  .interface-light :is(.admin-store-head, .admin-link-row, .admin-garage-title) { flex-direction: column; align-items: stretch; }
  .interface-light .admin-store-card { padding: 16px; }
  .interface-light :is(.admin-link-row, .admin-garage-title) .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .interface-light .admin-store-head .pill { align-self: flex-start; }
  .interface-light .oem-brand-remove { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .interface-light .report-table td::before { font-size: 11px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
}
@media screen and (max-width:600px) {
  .interface-light .transaction-dates { margin-top: 3px; }
  .interface-light .status-badge { max-width: 100%; }
  .interface-light :is(.partner-card-tools, .oem-card-tools) { gap: 10px; }
  .interface-light :is(.partner-card-tools, .oem-card-tools) .actions { width: 100%; }
  .interface-light .toast-container { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .interface-light .admin-link-row { gap: 8px; }
}
@media screen and (max-width:380px) {
  .interface-light :is(.admin-link-row, .admin-garage-title) .actions { grid-template-columns: minmax(0, 1fr); }
  .interface-light .request.is-open .oem-customer-prices { gap: 10px 12px !important; }
}

@media screen {
  .interface-light .request-title-line { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .interface-light .request-title-line .request-date { font-size: 11px; font-weight: 450; color: var(--modern-muted, #647587); line-height: 1.5; }
}

@media screen and (min-width:381px) and (max-width:760px) {
  .interface-light .request.is-open .quote-fields.grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: start; gap: 12px !important; }
  .interface-light .quote-fields.grid > div { min-width: 0; }
  .interface-light .quote-fields.grid > div:has([data-quote-field=eta]) { grid-column: 1 / -1; }
  .interface-light .quote-fields.grid > div:not(:has([data-quote-field=eta])) > label { display: flex; align-items: flex-end; min-height: 34px; }
}

/* V21 — remove secondary card panels, not stored history or report controls. */
@media screen {
  .interface-light .request-body :is(.history-legacy, .network-history-control, .light-history),
  .interface-light article.request [data-network-archives] { display: none !important; }
  .interface-light .light-record-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 12px; color: var(--modern-muted, #647587); font-size: 12px; line-height: 1.5; }
  .interface-light .light-record-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; }
  .interface-light .light-record-facts strong { color: #35546a; font-weight: 550; overflow-wrap: anywhere; }
  .interface-light .light-owner-actions { margin: 14px 0 0; justify-content: flex-end; }
}

/* V22 — same concise card presentation for every department. */
@media screen {
  .interface-light .routine-help,
  .interface-light article.request .request-body :is(.workflow-help, .history-details, .team-history, .transaction-history, .supplier-order-history),
  .interface-light article.request .team-customer-quote > .eyebrow,
  .interface-light article.request > .oem-owner-strip > span { display: none !important; }
  .interface-light article.request > .oem-owner-strip { padding: 8px 16px; background: #fcfdff; border-color: #edf0f4; gap: 8px; }
  .interface-light article.request > .oem-owner-strip strong { font-size: 12px; font-weight: 550; }
}

@media screen {
  .interface-light :is(.supplier-reference-cloud-note, #oemPhotoMemoryHint),
  .interface-light .garage-po-field > small:not(.garage-po-error),
  .interface-light .light-documents:has(.team-label-section) .quickbooks-invoice-form > small,
  .interface-light .team-bell-panel :is(.team-bell-head p, .inbox-empty p, .inbox-footer small) { display: none !important; }
}

/* V23 — icon close button for pickup notice and shared settings dialog. */
@media screen {
  .interface-light .release-dialog .team-dialog-head > .network-dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 24px; line-height: 1; white-space: nowrap; }
}

/* V31 — identify each part and its quantity through every dossier stage. */
@media screen {
  .interface-light .request-summary .order-id { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; max-width: 100%; padding: 3px 7px; border: 1px solid #c8d8e3; border-radius: 6px; background: #f5f8fa; box-sizing: border-box; font-size: 13px !important; }
  .interface-light .order-id .request-reference-label { display: inline; font-size: 11px; font-weight: 500; color: #466579; }
  .interface-light .request-reference-number { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
  .interface-light .request-pieces-preview { display: grid; gap: 5px; margin-top: 9px; white-space: normal; overflow: visible; text-overflow: clip; }
  .interface-light .request-piece-summary,
  .interface-light .piece-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; min-width: 0; }
  .interface-light .request-piece-summary > strong,
  .interface-light .piece-identity > :is(b,strong) { min-width: 0; flex: 1 1 160px; color: #12364b; font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
  .interface-light .piece-quantity { display: inline-flex; align-items: baseline; gap: 5px; flex: 0 0 auto; padding: 2px 7px; border: 1px solid #d6e2ea; border-radius: 6px; background: #f6f9fb; color: #466579; font-size: 11px; line-height: 1.5; white-space: nowrap; }
  .interface-light .piece-quantity > b { color: #163d55; font-size: 13px; font-weight: 750; }
  .interface-light .oem-piece-description .piece-quantity > b,
  .interface-light .oem-customer-piece .piece-quantity > b { font-size: 13px; }
  .interface-light .team-line .piece-identity { width: 100%; }
}

/* V33 — logo accent under the part name; quantity stays on the same baseline. */
@media screen {
  .interface-light .request-piece-summary,
  .interface-light .piece-identity { gap: 4px 7px; }
  .interface-light .request-piece-summary > strong,
  .interface-light .piece-identity > :is(b,strong) {
    flex: 0 1 auto; padding-bottom: 3px; border-bottom: 3px solid #f47a20;
  }
  .interface-light .piece-quantity {
    padding: 0; border: 0; border-radius: 0; background: transparent;
    color: #12364b; font-size: 16px; font-weight: 700; line-height: 1.45;
  }
  .interface-light .piece-quantity::before { content: "—"; margin-right: 2px; }
  .interface-light .piece-quantity > span { display: inline; margin: 0; color: inherit; font: inherit; }
  .interface-light .request-piece-summary .piece-quantity > b,
  .interface-light .piece-identity .piece-quantity > b { color: inherit; font-size: 16px; font-weight: 700; }
}
