/* ============================================================
   Business accounts: the staff dashboard (/manage/, .dlm) and the customer portal (/business/, .dl-b2b).
   Old-browser rules (AGENTS.md "Theme CSS traps"): physical properties only, no flex gap (grid gap is fine),
   a vh line before any dvh.
   ============================================================ */

/* ---------- shared business price ---------- */
.dl-b2b-price del { color: var(--muted-fg); font-weight: 400; margin-right: 4px; }
.dl-b2b-price ins { text-decoration: none; font-weight: 600; }
.dl-b2b-price-label { display: block; font-size: 12px; color: var(--ember-deep); font-weight: 500; }

/* ============================================================
   Staff dashboard
   ============================================================ */
.dlm, .dlm * { box-sizing: border-box; }
.dlm-html { scroll-padding-top: 16px; scroll-padding-bottom: 112px; }  /* a focused field stays clear of the save bar */
body.dlm {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font: 15px/1.5 var(--sans);  /* the store's face (audit, Nov 22: it was the system font) */
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.dlm a { color: var(--ember-deep); }
.dlm [hidden] { display: none !important; }  /* .dlm-button's display must not show a hidden control */
.dlm .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dlm-skip { position: absolute; left: -9999px; padding: 8px 12px; }
.dlm-skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bone); padding: 8px 12px; }
/* One focus ring everywhere, ember (the notice's was the browser's blue). */
.dlm a:focus, .dlm button:focus, .dlm-flash:focus, .dlm-rules:focus { outline: 2px solid var(--ember); outline-offset: 2px; }
.dlm-main:focus { outline: none; }

.dlm-nav {
  background: var(--ink);
  color: var(--on-ink);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dlm-nav-top { display: flex; align-items: center; justify-content: space-between; }
.dlm-nav-more { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; margin-top: 24px; }
.dlm-brand { display: block; text-decoration: none; line-height: 1; padding: 0 8px; margin: 0; }
.dlm-brand img { display: block; max-width: 100%; height: auto; }
.dlm-brand span { display: block; font: 600 11px/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-lift); margin-top: 8px; }
.dlm-menu {
  display: none; align-items: center; background: transparent; color: var(--on-ink); border: 1px solid rgba(255, 249, 245, 0.4);
  border-radius: var(--r-md); font: 600 14px/1 var(--sans); padding: 0 14px; min-height: 44px; cursor: pointer;
}
.dlm-menu .dlm-badge { margin-left: 8px; }
.dlm-nav ul { list-style: none; margin: 0; padding: 0; }
.dlm-nav li a {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--on-ink); text-decoration: none; padding: 10px 8px; border-radius: var(--r-md); min-height: 44px;
}
.dlm-nav li a:hover { background: var(--ink-3); }
.dlm-nav li a[aria-current="page"] { background: var(--ink-4); box-shadow: inset 3px 0 0 var(--ember-lift); }
.dlm-badge { background: var(--ember-deep); color: var(--on-ember); border-radius: 10px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 20px; }
.dlm-who { font-size: 13px; color: rgba(255, 249, 245, 0.75); padding: 0 8px; }
.dlm-who span { display: block; color: var(--on-ink); margin-bottom: 4px; }
.dlm-who a { color: rgba(255, 249, 245, 0.85); margin-right: 12px; }
.dlm-tap { display: inline-block; min-height: 44px; padding: 12px 0; line-height: 20px; }

.dlm-main { padding: 32px 32px 64px; max-width: 1280px; width: 100%; }
.dlm h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 24px; }
.dlm h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.dlm-back { margin: 0 0 8px; font-size: 14px; }

.dlm-flash { padding: 12px 16px; border-radius: var(--r-md); margin: 0 0 24px; background: #e6f2e6; border: 1px solid #9cc79c; }
.dlm-flash.is-error { background: #fbe9e3; border-color: #e3a48b; }
/* A refused form: one line per error, each a link to its control. */
.dlm-flash p { margin: 0; font-weight: 600; }
.dlm-flash ul { margin: 4px 0 0; padding-left: 20px; }
.dlm-flash li a { display: block; padding: 4px 0; color: #8f2a14; }
.dlm small.dlm-error { display: block; color: #8f2a14; font-size: 13px; font-weight: 600; margin-top: 4px; }
.dlm input[aria-invalid="true"], .dlm select[aria-invalid="true"], .dlm textarea[aria-invalid="true"] { border-color: #8f2a14; box-shadow: inset 0 0 0 1px #8f2a14; }
.dlm-note { background: #fdebd6; border: 1px solid #e9c08f; border-radius: var(--r-md); padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }

.dlm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-gap: 16px; margin-bottom: 24px; }
.dlm-tile { display: block; background: var(--bone); border: 1px solid var(--hair-light); border-radius: var(--r-lg); padding: 20px; text-decoration: none; color: var(--on-paper) !important; box-shadow: var(--e1); }
.dlm-tile strong { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; margin-bottom: 8px; }
.dlm-tile.is-attention { border-color: var(--ember); box-shadow: inset 0 3px 0 var(--ember), var(--e1); }

.dlm-card { background: var(--bone); border: 1px solid var(--hair-light); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--e1); }
.dlm-help, .dlm-empty { color: var(--muted-fg); margin: 0 0 12px; }
.dlm-card > .dlm-empty:last-child, .dlm-card > .dlm-help:last-child { margin-bottom: 0; }
.dlm-plain { margin: 0; padding-left: 20px; }
.dlm-plain li { margin-bottom: 6px; }
/* What is still to come: last on the overview and quiet. */
.dlm-later { color: var(--muted-fg); font-size: 13px; margin-top: 32px; }
.dlm .dlm-later h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* A company's page. One column until there is room for two; then the form on the left, and the application above the
   logins and history on the right. The right-hand rows are "auto 1fr": the form spans both, and all its extra height
   goes to the second row, so the logins sit right under the application (audit, Nov 22: equal rows left a 310px band). */
.dlm-columns { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "app" "body" "side"; }
.dlm-app { grid-area: app; }
.dlm-side { grid-area: side; }
.dlm-body { grid-area: body; }
@media (min-width: 1240px) {
  .dlm-columns { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "body app" "body side"; grid-column-gap: 16px; align-items: start; }
}
.dlm-subhead { margin-top: 32px !important; }
.dlm-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.dlm-card > .dlm-table-wrap:last-child { margin-bottom: 0; }
.dlm-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; grid-gap: 12px; align-items: end; margin-bottom: 16px; }
.dlm-pages { display: flex; align-items: center; justify-content: space-between; }
.dlm h3 { font-size: 14px; margin: 8px 0 0; }

.dlm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-gap: 16px; }
.dlm label > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.dlm label small { display: block; color: var(--muted-fg); font-size: 12px; margin-top: 4px; }
.dlm input:not([type="checkbox"]):not([type="radio"]), .dlm select, .dlm textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--hair-light-2); border-radius: var(--r-md); padding: 9px 10px; min-height: 44px;
}
.dlm textarea { min-height: 0; }
.dlm input:focus, .dlm select:focus, .dlm textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.dlm-check { display: flex; align-items: center; align-self: end; min-height: 44px; }
.dlm-check input { width: 20px; height: 20px; margin: 0 10px 0 0; flex: 0 0 auto; }
.dlm-check span { margin: 0 !important; font-weight: 400 !important; font-size: 14px !important; }

/* Buttons: ink, as in the store; ember is the accent (links, the focus ring, what needs attention). 44px high, the
   same as the fields beside them. */
.dlm-button {
  display: inline-block; font: 600 15px/18px var(--sans); color: var(--on-ink); background: var(--ink); text-align: center; text-decoration: none;
  border: 1px solid var(--ink); border-radius: var(--r-md); padding: 12px 20px; cursor: pointer; min-height: 44px;
}
.dlm a.dlm-button { color: var(--on-ink); }
.dlm-button:hover { background: var(--ink-3); }
.dlm-button.is-quiet, .dlm a.dlm-button.is-quiet { background: transparent; color: var(--ink); }
.dlm-button.is-quiet:hover, .dlm a.dlm-button.is-quiet:hover { background: var(--paper-2); }
.dlm-button.is-danger { background: #8f2a14; border-color: #8f2a14; }
.dlm-button.is-small { padding: 12px 14px; font-size: 14px; }
.dlm-link { background: none; border: 0; color: var(--ember-deep); cursor: pointer; font: inherit; text-decoration: underline; padding: 8px 4px; min-height: 44px; }
.dlm-actions { margin: 8px 0 24px; display: flex; flex-wrap: wrap; align-items: center; }
.dlm-actions > * { margin: 0 14px 0 0; }
/* Save stays in reach: at the bottom of the screen for as long as its form is in view. */
.dlm-actions.is-sticky {
  position: -webkit-sticky; position: sticky; bottom: 0; z-index: 5; margin: 0 0 24px; padding: 12px 0;
  background: var(--paper); border-top: 1px solid var(--hair-light-2);
}
.dlm-unsaved { font-size: 14px; font-weight: 600; color: var(--ember-deep); }
.dlm-unsaved::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); margin-right: 6px; }

.dlm-table { width: 100%; border-collapse: collapse; background: var(--bone); border: 1px solid var(--hair-light); }
.dlm-table th, .dlm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair-light); vertical-align: top; }
.dlm-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); font-weight: 600; white-space: nowrap; }
.dlm-table td a { display: inline-block; padding: 4px 0; }
.dlm-table td a.dlm-button { padding: 12px 14px; }
.dlm-table .num { text-align: right; }
.dlm-table small { color: var(--muted-fg); }
.dlm-table td.dlm-cell-action { text-align: right; white-space: nowrap; vertical-align: middle; }
.dlm-cell-title { font-weight: 600; }
.dlm-line { display: block; }
/* Phones: a list is one card per row, each value beside its column's name (audit, Nov 22: five columns scrolled
   sideways and the names wrapped to four lines). */
@media (max-width: 700px) {
  .dlm-table.is-cards { border: 0; background: transparent; }
  .dlm-table.is-cards thead { display: none; }
  .dlm-table.is-cards, .dlm-table.is-cards tbody, .dlm-table.is-cards tr, .dlm-table.is-cards td { display: block; width: 100%; }
  .dlm-table.is-cards tr { background: var(--bone); border: 1px solid var(--hair-light); border-radius: var(--r-lg); padding: 10px 14px 12px; margin-bottom: 12px; }
  .dlm-table.is-cards td { border: 0; padding: 3px 0; text-align: left; white-space: normal; }
  .dlm-table.is-cards td[data-label] { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-column-gap: 12px; }
  .dlm-table.is-cards td[data-label]::before { content: attr(data-label); color: var(--muted-fg); font-size: 13px; }
  .dlm-table.is-cards .dlm-cell-title { font-size: 17px; }
  .dlm-table.is-cards .dlm-cell-title a { min-height: 44px; padding: 10px 0; }
  .dlm-table.is-cards td.dlm-cell-action { padding-top: 10px; }
  .dlm-table.is-cards td.dlm-cell-action .dlm-button { display: block; }
  .dlm-card .dlm-table.is-cards tr { background: #fff; }
}

/* Price rules. Phones: the category on its own line, then the price kind, the percent and Remove on the next, every
   label shown (under 380px the price kind takes a line too). From 900px: one line per rule, with the labels over the
   first rule only. */
.dlm-rules { margin-bottom: 12px; }
.dlm-rule { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; grid-gap: 10px; align-items: end;
  padding: 10px 0; border-bottom: 1px solid var(--hair-light); }
.dlm-js .dlm-rule[data-dlm-template] { display: none; }  /* the no-JavaScript row; the script turns it into "Add a rule" */
.dlm-rule label > span { font-size: 12px !important; color: var(--muted-fg); }
.dlm label > span.dlm-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column-gap: 6px; align-items: center; margin: 0; font-size: inherit !important; color: inherit; }
.dlm-suffix > span { font-weight: 600; }
.dlm-rule label:first-child { grid-column: 1 / -1; }
.dlm-rule .dlm-error { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 379px) { .dlm-rule label:nth-child(2) { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .dlm-rule { grid-template-columns: minmax(0, 1fr) minmax(170px, 1fr) 92px auto; padding: 8px 0; }
  .dlm-rule label:first-child { grid-column: auto; }
  .dlm-rule + .dlm-rule label > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.dlm-status { display: inline-block; font: 600 12px/1 var(--sans); vertical-align: middle; border-radius: 10px; padding: 5px 9px; background: var(--paper-2); color: var(--ink-3); }
.dlm h1 .dlm-status { margin-left: 8px; }
.dlm-status.is-active { background: #dcefdc; color: #1f5a1f; }
.dlm-status.is-pending { background: #fdebd6; color: #7d3f0b; }
.dlm-status.is-on_hold { background: #fbe0d6; color: #8f2a14; }
.dlm-status.is-warn { background: #fbe0d6; color: #8f2a14; margin-top: 4px; }

/* Label and value side by side; on phones the label over the value, and a long value (an address, a web address)
   breaks between words where it can (audit, Nov 22: "https://example.c / om" in a 110px column). */
.dlm-facts { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); grid-gap: 6px 12px; margin: 0; font-size: 14px; }
.dlm-facts dt { color: var(--muted-fg); }
.dlm-facts dd { margin: 0; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .dlm-facts { grid-template-columns: minmax(0, 1fr); grid-row-gap: 0; }
  .dlm-facts dt { font-size: 12px; margin-top: 8px; }
  .dlm-facts dt:first-child { margin-top: 0; }
}

/* Logins: the name, then the email and role, then the role control, then the actions, each on its own line (audit,
   Nov 22: email and role were squeezed into 75px beside the actions). */
.dlm-members { list-style: none; margin: 0 0 12px; padding: 0; }
.dlm-members li { border-bottom: 1px solid var(--hair-light); padding: 12px 0 4px; }
.dlm-members li:first-child { padding-top: 0; }
.dlm-member-name { margin: 0; font-weight: 600; }
.dlm-member-meta { margin: 0 0 8px; color: var(--muted-fg); font-size: 13px; overflow-wrap: break-word; }
.dlm-member-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 8px; }
.dlm-member-actions form { display: inline-block; margin-right: 12px; }
.dlm-member-actions .dlm-link { padding-left: 0; }
.dlm-add-login { display: grid; grid-gap: 10px; }
.dlm-try { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 8px; margin-bottom: 12px; }
.dlm-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.dlm-log li { padding: 6px 0; border-bottom: 1px solid var(--hair-light); overflow-wrap: break-word; }
.dlm-log li:last-child { border-bottom: 0; }
.dlm-log span { display: block; color: var(--muted-fg); font-size: 12px; }
.dlm-log a { display: inline-block; padding: 2px 0; font-weight: 600; }
.dlm-decline label { display: block; margin-bottom: 12px; }

@media (max-width: 900px) {
  body.dlm { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .dlm-filter { grid-template-columns: minmax(0, 1fr); }
  /* One row: the logo and, with JavaScript, a Menu button that opens the sections (audit, Nov 22: the menu was a
     265px block on every page). Without JavaScript the sections stay open under the logo. */
  .dlm-nav { position: static; height: auto; overflow-y: visible; padding: 8px 16px; }
  .dlm-nav-top { min-height: 48px; }
  .dlm-brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
  .dlm-skip { min-height: 44px; }
  .dlm-nav-more { display: block; margin-top: 8px; }
  .dlm-js .dlm-menu { display: inline-flex; }
  .dlm-js .dlm-nav:not(.is-open) .dlm-nav-more { display: none; }
  .dlm-who { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 249, 245, 0.18); }
  .dlm-who span { display: inline-block; margin: 0 12px 0 0; }
  .dlm-main { padding: 24px 16px 48px; }
  .dlm h1 { font-size: 32px; }
  .dlm-flash li a { padding: 11px 0; }
  .dlm-log li { padding: 4px 0; }  /* links inside a sentence keep the line's height (final review, Nov 24: 12px padding broke lines unevenly) */
  .dlm-table td a { padding: 11px 0; }
}

/* ---- A company's page, less scrolling (owner, Nov 23) ---- */
/* The page's sections, at the top of the screen while it scrolls. Phones: one row of equal cells. */
.dlm-sections {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; margin: -8px -32px 20px; padding: 0 24px;
  background: var(--paper); border-bottom: 1px solid var(--hair-light-2);
}
.dlm .dlm-sections a { display: block; min-height: 44px; padding: 12px 8px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--on-paper); text-decoration: none; white-space: nowrap; }
.dlm .dlm-sections a:hover { color: var(--ember-deep); box-shadow: inset 0 -2px 0 var(--ember); }
.dlm-anchor { scroll-margin-top: 60px; }
/* "Add a login" and other forms that open from their own button. */
.dlm-more > summary { display: inline-block; min-height: 44px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: var(--r-md); font: 600 15px/18px var(--sans); color: var(--ink); cursor: pointer; list-style: none; }
.dlm-more > summary::-webkit-details-marker { display: none; }
.dlm-more > summary:hover { background: var(--paper-2); }
.dlm-more > summary:focus { outline: 2px solid var(--ember); outline-offset: 2px; }
.dlm-more[open] > summary { margin-bottom: 12px; }
/* A company's recent quotes: the number and its total on one line, then when, its state and its lines. */
.dlm-qlist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.dlm-qlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column-gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hair-light); }
.dlm-qlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.dlm-qlist a { justify-self: start; padding: 2px 0; font-weight: 600; }
.dlm-qlist-total { font-weight: 600; white-space: nowrap; text-align: right; }
.dlm-qlist-meta { grid-column: 1 / -1; color: var(--muted-fg); font-size: 12px; }
/* History's "Show all". */
.dlm-log-more { margin: 4px 0 0; }
.dlm-log-more .dlm-link { padding-left: 0; }
/* The application's facts stay label beside value on phones from 360px (they were stacked: twice the height). */
@media (min-width: 360px) and (max-width: 600px) {
  .dlm-app .dlm-facts { grid-template-columns: 112px minmax(0, 1fr); grid-row-gap: 4px; }
  .dlm-app .dlm-facts dt { font-size: 13px; margin-top: 0; }
  .dlm-app .dlm-facts dd { overflow-wrap: break-word; overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
  /* Wrap rather than squeeze: seven equal columns made "Documents" and "Logins" print over each other (final review,
     Nov 24). */
  .dlm-sections { display: flex; flex-wrap: wrap; margin: -8px -16px 16px; padding: 0 8px; }
  .dlm .dlm-sections a { flex: 1 0 auto; padding: 12px 10px; font-size: 13px; text-align: center; white-space: nowrap; }
  .dlm-qlist a { min-height: 44px; padding: 12px 0; }
}
/* Phones, the lists and the overview (owner, Nov 23): the three counts side by side (they were three 130px tiles, one
   under the other); the customers' filter keeps Status and Search on one line; list cards a little tighter. */
@media (max-width: 700px) {
  .dlm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 8px; margin-bottom: 16px; }
  .dlm-tile { padding: 12px 10px; font-size: 13px; line-height: 1.3; }
  .dlm-tile strong { font-size: 30px; margin-bottom: 4px; }
  .dlm-card { padding: 16px; }
  .dlm-filter { grid-template-columns: minmax(0, 1fr) auto; }
  .dlm-filter label:first-child { grid-column: 1 / -1; }
  .dlm-table.is-cards tr { padding: 4px 14px 10px; margin-bottom: 10px; }
  .dlm-table.is-cards td { padding: 2px 0; }
}

/* Sign-in page */
body.dlm-signin-page { display: block; }
.dlm-signin { max-width: 400px; margin: 0 auto; padding: 12vh 24px 48px; }
.dlm-signin .dlm-brand { padding: 0; margin: 0 0 32px; }
.dlm-signin .dlm-brand span { color: var(--ember-deep); }
.dlm-signin form { display: grid; grid-row-gap: 14px; margin-bottom: 16px; }
.dlm-signin .dlm-button { width: 100%; }

/* ============================================================
   Customer portal (inside the store's chrome)
   The store's own type (portal audit, Nov 22: body text was Elessi's Open Sans #333 beside the bag's DM Sans ink):
   var(--sans) for text and controls, the display serif for card headings, as "Bag totals" is set.
   ============================================================ */
.dl-b2b [hidden] { display: none !important; }  /* the phone table's display: block must not show a closed panel */
html body .dl-b2b { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--on-paper); }
html body .dl-b2b p, html body .dl-b2b li, html body .dl-b2b dt, html body .dl-b2b dd, html body .dl-b2b label,
html body .dl-b2b table, html body .dl-b2b th, html body .dl-b2b td { font-family: var(--sans); color: inherit; }
html body .dl-b2b button, html body .dl-b2b input, html body .dl-b2b select, html body .dl-b2b textarea { font-family: var(--sans); }
html body .dl-b2b strong { font-weight: 600; color: inherit; }
html body .dl-b2b a { color: var(--on-paper); }
/* Part numbers: Elessi's code is bold dark red Consolas. */
html body .dl-b2b code { color: inherit; background: none; border: 0; font: 400 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0; }
/* The trail's links are 24px tall to tap (they were 16px). */
html body .dl-b2b .dl-crumbs a { display: inline-block; min-height: 24px; line-height: 24px; }
.dl-b2b-eyebrow { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted-fg); }
.dl-b2b-eyebrow span { display: inline-block; margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--hair-light-2); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-deep); }
/* Tabs: the two sections; "My account" and "Sign out" are quiet links at the end of the row, not sections. */
html body.deviceland-shop .dl-b2b-tabs { align-items: center; }
.dl-b2b-tabs-end { margin-left: auto; white-space: nowrap; }
html body .dl-b2b a.dl-b2b-quiet-link, html body .dl-account-content a.dl-b2b-quiet-link {
  display: inline-block; min-height: 44px; padding: 11px 0; margin-right: 18px; line-height: 22px; font-size: 14px; font-weight: 500;
  color: var(--on-paper); text-decoration: underline; text-decoration-color: var(--hair-light-2); text-underline-offset: 4px;
}
html body .dl-b2b a.dl-b2b-quiet-link:hover { text-decoration-color: var(--ember); }
html body .dl-b2b .dl-b2b-tabs-end a.dl-b2b-quiet-link { margin: 0 0 0 18px; color: var(--muted-fg); }
.dl-b2b-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); grid-gap: 20px; margin-bottom: 32px; align-items: start; }
@media (min-width: 900px) { .dl-b2b-cols.is-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.dl-b2b-card { background: var(--bone); border: 1px solid var(--hair-light); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.dl-b2b-cols > .dl-b2b-card { margin-bottom: 0; }
html body .dl-b2b .dl-b2b-card h2 { margin: 0 0 12px; font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; color: var(--on-paper); text-transform: none; }
html body .dl-b2b .dl-b2b-card h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-fg); }
html body .dl-b2b .dl-b2b-card p { margin: 0 0 12px; }
html body .dl-b2b .dl-b2b-card textarea, html body .dl-b2b .dl-b2b-card input:not([type="checkbox"]), html body .dl-b2b .dl-b2b-card select {
  width: 100%; height: auto; min-height: 44px; margin: 0; padding: 10px 12px; font-size: 15px; line-height: 1.4; color: var(--on-paper);
  background: #fff; border: 1px solid var(--hair-light-2); border-radius: var(--r-md); box-shadow: none;
}
html body .dl-b2b .dl-b2b-card #dlb-parts { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.5; }
html body .dl-b2b .dl-b2b-parts-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--on-paper); }
html body .dl-b2b .dl-b2b-help { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted-fg); }
html body .dl-b2b .dl-b2b-button {
  display: inline-block; height: auto; min-height: 44px; margin: 12px 8px 0 0; padding: 13px 22px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 18px;
  letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); border-radius: var(--r-md); box-shadow: none;
}
html body .dl-b2b .dl-b2b-button:hover { background: var(--ink-3); color: var(--on-ink); }
html body .dl-b2b .dl-b2b-button.is-quiet { background: transparent; color: var(--ink); }
html body .dl-b2b .dl-b2b-button.is-quiet:hover { background: var(--paper-2); color: var(--ink); }
html body .dl-b2b .dl-b2b-actions { margin: 4px 0 0; }
html body .dl-b2b .dl-b2b-actions .dl-b2b-quiet-link { margin: 12px 0 0 8px; }
html body .dl-b2b .dl-b2b-actions.is-end { margin: 0 0 20px; text-align: right; }
html body .dl-b2b .dl-b2b-actions.is-end .dl-b2b-button { margin-right: 0; }
/* A link-style button (Elessi styles every button as a filled, upper-case block). */
html body .dl-b2b button.dl-b2b-linkbtn {
  background: none; border: 0; box-shadow: none; padding: 8px 0; min-height: 44px; margin: 0 18px 0 0; cursor: pointer; width: auto; height: auto;
  color: var(--ember-deep); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.4;
  text-decoration: underline; text-underline-offset: 3px;
}
html body .dl-b2b button.dl-b2b-linkbtn:hover { background: none; color: var(--ember-deep-2); }
html body .dl-b2b button.dl-b2b-remove { color: var(--muted-fg); font-weight: 500; }
/* Notices, as the bag's: paper-2 with an ember rule on the left. Red is kept for real errors. */
html body .dl-b2b .dl-b2b-flash {
  margin: 0 0 20px; padding: 13px 16px; font-size: 14px; line-height: 1.5; color: var(--on-paper);
  background: var(--paper-2); border: 1px solid var(--hair-light); border-left: 3px solid var(--ember); border-radius: var(--r-md);
}
html body .dl-b2b .dl-b2b-flash.is-error { background: #fbeee9; border-color: #e7c3b6; border-left-color: #9c2f1a; }
html body .dl-b2b .dl-b2b-flash ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; }
html body .dl-b2b .dl-b2b-flash li { margin: 0 0 2px; list-style: disc; }
html body .dl-b2b .dl-b2b-flash p { margin: 0; }
html body .dl-b2b .dl-b2b-flash a { display: inline-block; min-height: 24px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html body .dl-b2b .dl-b2b-lookup-form .dl-b2b-flash { margin: 14px 0 0; }
html body .dl-b2b .dl-b2b-lookup-form .dl-b2b-flash.is-error { margin: 0 0 14px; }
.dl-b2b-note { display: block; font-size: 12px; color: var(--muted-fg); font-weight: 400; white-space: normal; }
/* The bag's and checkout's one line for a business login (outside .dl-b2b), in the bag's notice style. */
.dl-b2b-bag-note { margin: 0 0 22px; padding: 15px 18px; border: 1px solid var(--hair-light); border-left: 2px solid var(--ember); border-radius: var(--r-md); background: var(--paper-2); font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--on-paper); }
html body.deviceland-shop tr.dl-b2b-saving th, html body.deviceland-shop tr.dl-b2b-saving td { color: var(--ember-deep); }
html body.deviceland-shop tr.dl-b2b-saving td small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-fg); }
/* Focus is always visible in the portal (portal audit: the buttons' ring was cream on cream, 1.02:1). :focus first for
   Safari 15.0, then :focus-visible on its own rule (Safari 15 drops a selector list that contains it). */
.dl-b2b a:focus, .dl-b2b button:focus, .dl-b2b textarea:focus, .dl-b2b input:focus, .dl-b2b select:focus { outline: 2px solid var(--ember-deep); outline-offset: 2px; }
.dl-b2b a:focus:not(:focus-visible) { outline: none; }
.dl-b2b button:focus:not(:focus-visible) { outline: none; }
html body .dl-b2b .dl-b2b-muted { color: var(--muted-fg); font-size: 14px; }
html body .dl-b2b .dl-b2b-next { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hair-light); font-size: 13px; }
/* Bullets: not Elessi's uneven list indent; a hanging ember dot. */
html body .dl-b2b ul.dl-b2b-list, html body .dl-b2b ul.dl-b2b-terms-list { list-style: none; margin: 0 0 16px; padding: 0; }
html body .dl-b2b ul.dl-b2b-list li, html body .dl-b2b ul.dl-b2b-terms-list li { position: relative; list-style: none; margin: 0 0 10px; padding: 0 0 0 20px; }
html body .dl-b2b ul.dl-b2b-list li::before, html body .dl-b2b ul.dl-b2b-terms-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
html body .dl-b2b .dl-b2b-aside-part { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair-light); font-size: 14px; }
html body .dl-b2b .dl-b2b-aside-part h3 { margin-top: 14px; }
html body .dl-b2b .dl-b2b-aside-part h3:first-child { margin-top: 0; }
html body .dl-b2b .dl-b2b-aside-part p { margin: 0; }
html body .dl-b2b .dl-b2b-card-links { margin: 0 0 4px; }
html body .dl-b2b dl.dl-b2b-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 6px 16px; margin: 0 0 14px; }
html body .dl-b2b dl.dl-b2b-facts dt { margin: 0; font-weight: 400; color: var(--muted-fg); }
html body .dl-b2b dl.dl-b2b-facts dd { margin: 0; font-weight: 500; }
/* What happens next: three numbered steps. */
html body .dl-b2b ol.dl-b2b-steps { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: dlb-step; }
html body .dl-b2b ol.dl-b2b-steps li { position: relative; list-style: none; margin: 0; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--hair-light); counter-increment: dlb-step; }
html body .dl-b2b ol.dl-b2b-steps li::before { content: counter(dlb-step); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ember); color: var(--ember-deep); font-size: 13px; font-weight: 600; line-height: 26px; text-align: center; }
html body .dl-b2b ol.dl-b2b-steps strong { display: block; }
.dl-b2b-applied { max-width: 680px; }
/* The application: three groups, a serif heading each, a hairline between; two columns of fields in explicit rows. */
html body .dl-b2b .dl-b2b-apply { max-width: 820px; }
html body .dl-b2b .dl-b2b-apply fieldset { border: 0; margin: 0; padding: 0 0 32px; min-width: 0; }
html body .dl-b2b .dl-b2b-apply fieldset + fieldset { padding-top: 28px; border-top: 1px solid var(--hair-light); }
html body .dl-b2b .dl-b2b-apply legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; color: var(--on-paper); text-transform: none; border: 0; }
html body .dl-b2b .dl-b2b-fields { clear: both; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 16px 20px; }
@media (min-width: 700px) { html body .dl-b2b .dl-b2b-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* For Net terms (Nov 26): each supplier on its own row of three (name, contact, email or phone), set apart by a hairline. */
@media (min-width: 700px) { html body .dl-b2b .dl-b2b-fields.dl-b2b-ref { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } }
html body .dl-b2b .dl-b2b-fields.dl-b2b-ref { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--hair-light); }
html body .dl-b2b .dl-b2b-net-sub { margin: 20px 0 12px; }
html body .dl-b2b .dl-b2b-net-sub span { display: block; margin-top: 2px; }
html body .dl-b2b .dl-b2b-signer { margin-top: 16px; }
html body .dl-b2b .dl-b2b-net .dl-b2b-terms { margin-top: 20px; }
html body .dl-b2b .dl-b2b-ecoa { margin: 8px 0 0; font-size: 13px; }
html body .dl-b2b .dl-b2b-field { min-width: 0; }
html body .dl-b2b .dl-b2b-field.is-wide { grid-column: 1 / -1; }
html body .dl-b2b .dl-b2b-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--on-paper); }
html body .dl-b2b .dl-b2b-opt { font-weight: 400; color: var(--muted-fg); }
html body .dl-b2b .dl-b2b-field.has-error input, html body .dl-b2b .dl-b2b-field.has-error select, html body .dl-b2b .dl-b2b-field.has-error textarea { border-color: #9c2f1a; box-shadow: inset 0 0 0 1px #9c2f1a; }
html body .dl-b2b .dl-b2b-field-error { margin: 6px 0 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: #8f2a14; }
html body .dl-b2b .dl-b2b-apply-note { margin: 0 0 24px; }
html body .dl-b2b .dl-b2b-terms { margin: 0 0 8px; padding: 24px 0 0; border-top: 1px solid var(--hair-light); }
html body .dl-b2b label.dl-b2b-agree { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-column-gap: 12px; align-items: center; min-height: 44px; margin: 0 0 6px; font-size: 15px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--on-paper); cursor: pointer; }
html body .dl-b2b label.dl-b2b-agree input { width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; }
html body .dl-b2b ul.dl-b2b-terms-list { margin: 0 0 12px 36px; font-size: 14px; line-height: 1.5; color: var(--muted-fg); }
html body .dl-b2b ul.dl-b2b-terms-list li { margin-bottom: 6px; }
html body .dl-b2b .dl-b2b-terms .dl-b2b-field-error { margin: 0 0 8px 36px; }
.dl-b2b-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* ---- the lookup table ---- */
.dl-b2b-table-wrap { overflow-x: auto; margin-bottom: 12px; }
html body .dl-b2b table.dl-b2b-table { width: 100%; margin: 0; border-collapse: collapse; background: var(--bone); border: 1px solid var(--hair-light); font-size: 15px; }
html body .dl-b2b table.dl-b2b-table th, html body .dl-b2b table.dl-b2b-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--hair-light); text-align: left; vertical-align: top; line-height: 1.45; }
html body .dl-b2b table.dl-b2b-table thead th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); white-space: nowrap; }
html body .dl-b2b table.dl-b2b-table .num { text-align: right; white-space: nowrap; }
html body .dl-b2b table.dl-b2b-table thead th.num { width: 150px; }
html body .dl-b2b table.dl-b2b-table th.dl-b2b-col-part { width: 112px; }
html body .dl-b2b table.dl-b2b-table th.dl-b2b-col-avail { width: 206px; }
html body .dl-b2b table.dl-b2b-table th.dl-b2b-col-now { width: 42%; }
html body .dl-b2b table.dl-b2b-table th.dl-b2b-col-qty { width: 96px; }
html body .dl-b2b table.dl-b2b-table tfoot th, html body .dl-b2b table.dl-b2b-table tfoot td { border-bottom: 0; padding-top: 16px; padding-bottom: 16px; }
html body .dl-b2b table.dl-b2b-table tfoot th { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--on-paper); }
.dl-b2b-total { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.dl-b2b-total-label { font-weight: 600; }  /* a span: Elessi forces th to 500 with !important */
.dl-b2b-save { display: block; font-size: 13px; font-weight: 400; color: var(--ember-deep); }
html body .dl-b2b .dl-b2b-row.is-missing .dl-b2b-part, html body .dl-b2b .dl-b2b-dash, html body .dl-b2b .dl-b2b-row.is-missing .num { color: var(--muted-fg); }
html body .dl-b2b td.dl-b2b-part { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: nowrap; }
html body .dl-b2b a.dl-b2b-name { display: inline-block; min-height: 24px; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--on-paper); text-decoration: none; }
html body .dl-b2b a.dl-b2b-name:hover { text-decoration: underline; text-underline-offset: 3px; }
html body .dl-b2b .dl-b2b-row-actions { margin: 0; }
html body .dl-b2b .dl-b2b-prod > div { max-width: 560px; }
/* The changed row after an edit: marked for a moment, with a lasting ember rule. */
@keyframes dlb-changed { from { background-color: #f7dcc9; } to { background-color: transparent; } }
html body .dl-b2b .dl-b2b-row.is-changed > td { animation: dlb-changed 2.4s ease-out 0.2s both; }
html body .dl-b2b .dl-b2b-row.is-changed > td:first-child { box-shadow: inset 3px 0 0 var(--ember); }
@media (prefers-reduced-motion: reduce) { html body .dl-b2b .dl-b2b-row.is-changed > td { animation: none; } }
html body .dl-b2b input.dl-b2b-qty { width: 72px; height: auto; min-height: 44px; margin: -6px 0 0; padding: 8px 6px 8px 10px; font-size: 15px; line-height: 1.3; text-align: right; color: var(--on-paper); background: #fff; border: 1px solid var(--hair-light-2); border-radius: var(--r-md); box-shadow: none; }
.dl-b2b-avail { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.35; padding: 3px 9px; border-radius: 8px; background: var(--paper-2); color: var(--ink-3); }
html body .dl-b2b table.dl-b2b-table > tbody > tr > td > .dl-b2b-avail { white-space: nowrap; }
.dl-b2b-avail.is-ready { background: #dcefdc; color: #1f5a1f; }
.dl-b2b-avail.is-out { background: #f1e3df; color: #8f2a14; }
/* ---- Phase 2 (owner, Nov 22): a line's live stock and ship estimate under its availability; the list file; quotes. ---- */
html body .dl-b2b .dl-b2b-live { margin: 8px 0 0; font-size: 13px; line-height: 1.5; white-space: normal; }
html body .dl-b2b .dl-b2b-live p { margin: 0; }
html body .dl-b2b p.dl-b2b-ship { margin: 4px 0 0; color: var(--muted-fg); }
html body .dl-b2b p.dl-b2b-ship.is-date { color: var(--on-paper); font-weight: 600; }
html body .dl-b2b .dl-b2b-upload { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hair-light); }
html body .dl-b2b .dl-b2b-card .dl-b2b-upload input[type="file"] { width: 100%; max-width: 420px; min-height: 44px; padding: 8px 10px; font-size: 14px; line-height: 1.6; background: #fff; border: 1px solid var(--hair-light-2); border-radius: var(--r-md); }
html body .dl-b2b h2.dl-b2b-section { margin: 28px 0 10px; font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; color: var(--on-paper); text-transform: none; }
html body .dl-b2b .dl-b2b-section-note { margin: 0 0 12px; }
html body .dl-b2b .dl-b2b-quote-head { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 8px 32px; align-items: start; }
@media (min-width: 900px) { html body .dl-b2b .dl-b2b-quote-head { grid-template-columns: minmax(0, 1fr) auto; } }
html body .dl-b2b .dl-b2b-quote-head dl.dl-b2b-facts { margin: 0; align-items: center; }
html body .dl-b2b .dl-b2b-quote-head dd .dl-b2b-note { margin-top: 2px; }
html body .dl-b2b .dl-b2b-quote-actions { margin: 0; }
html body .dl-b2b .dl-b2b-quote-actions form { display: inline-block; margin: 0; }
html body .dl-b2b .dl-b2b-quote-actions .dl-b2b-button { margin-top: 0; margin-bottom: 8px; }
html body .dl-b2b table.dl-b2b-quotes td { vertical-align: middle; }
html body .dl-b2b table.dl-b2b-quotes a.dl-b2b-name { min-height: 44px; padding: 10px 0 0; font-weight: 600; text-decoration: underline; text-decoration-color: var(--hair-light-2); text-underline-offset: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
html body .dl-b2b span.dl-b2b-name { display: inline-block; font-size: 15px; line-height: 1.45; font-weight: 500; }
html body .dl-b2b ul.dl-b2b-not-quoted li { margin-bottom: 6px; }
html body .dl-b2b ul.dl-b2b-not-quoted .dl-b2b-muted { margin-left: 6px; }
/* ---- "See similar products" (owner, Nov 22): part of its row, not a section of its own. Indented to the Product
   column, bone, an ember rule on the left; the toggle says what it will do and its chevron turns. ---- */
html body .dl-b2b button.dl-b2b-similar-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
html body .dl-b2b button.dl-b2b-similar-toggle[aria-expanded="true"]::after { margin-bottom: -1px; transform: rotate(-135deg); }
html body .dl-b2b button.dl-b2b-sim-btn {
  display: inline-block; width: auto; height: auto; min-height: 44px; padding: 8px 12px; margin: 0 6px 6px 0; border-radius: var(--r-md); box-shadow: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.3;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
html body .dl-b2b button.dl-b2b-sim-btn.is-quiet { background: transparent; color: var(--ink); }
html body .dl-b2b table.dl-b2b-table tr.dl-b2b-similar > td { background: var(--bone); padding: 0 14px 20px 14px; }
.dl-b2b-similar-body { margin-left: 124px; padding: 14px 0 4px 18px; border-left: 3px solid rgba(201, 89, 40, 0.45); font-size: 14px; }
html body .dl-b2b .dl-b2b-sim-this { margin: 0 0 12px; }
html body .dl-b2b .dl-b2b-sim-this-name { margin: 0 0 4px; font-weight: 600; }
html body .dl-b2b table.dl-b2b-sim-table { width: 100%; margin: 0; table-layout: fixed; border: 0; border-collapse: collapse; font-size: 14px; background: transparent; }
html body .dl-b2b table.dl-b2b-sim-table th, html body .dl-b2b table.dl-b2b-sim-table td { padding: 10px 10px 10px 0; border: 0; border-top: 1px solid var(--hair-light); text-align: left; vertical-align: top; line-height: 1.45; white-space: normal; overflow-wrap: break-word; }
html body .dl-b2b table.dl-b2b-sim-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); border-top: 0; padding-top: 0; }
html body .dl-b2b table.dl-b2b-sim-table th.is-product { width: 30%; }
html body .dl-b2b table.dl-b2b-sim-table th.is-avail { width: 16%; }
html body .dl-b2b table.dl-b2b-sim-table th.is-wh { width: 26%; }
html body .dl-b2b table.dl-b2b-sim-table th.is-price { width: 13%; padding-right: 16px; }
html body .dl-b2b table.dl-b2b-sim-table th.is-actions { width: 15%; padding-right: 0; }
@media (min-width: 601px) {
  html body .dl-b2b table.dl-b2b-sim-table td.is-price { padding-right: 16px; }
  html body .dl-b2b table.dl-b2b-sim-table td.is-actions { padding-right: 0; }
}
html body .dl-b2b table.dl-b2b-sim-table .num { text-align: right; }
html body .dl-b2b table.dl-b2b-sim-table del { display: block; color: var(--muted-fg); white-space: nowrap; }  /* above the price: side by side they ran under the buttons */
html body .dl-b2b .dl-b2b-sim-price { font-weight: 600; white-space: nowrap; }  /* Elessi resets strong */
html body .dl-b2b a.dl-b2b-sim-name { display: inline-block; min-height: 24px; line-height: 24px; font-weight: 500; color: var(--on-paper); text-decoration: none; }
html body .dl-b2b a.dl-b2b-sim-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-b2b-sim-options, .dl-b2b-sim-sku { display: block; color: var(--muted-fg); font-size: 13px; }
.dl-b2b-sim-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
html body .dl-b2b table.dl-b2b-sim-table .dl-b2b-avail { border-radius: 8px; }  /* may wrap here: a pill radius would not hold two lines */
html body .dl-b2b .dl-b2b-sim-actions button.dl-b2b-sim-btn { display: block; width: 100%; margin: 0 0 6px; }
/* Stock: two short lists. */
html body .dl-b2b .dl-b2b-stock p { margin: 0; }
html body .dl-b2b .dl-b2b-stock-head { font-size: 12px; font-weight: 600; color: var(--on-paper); }
html body .dl-b2b .dl-b2b-stock-head.is-muted { margin-top: 6px; font-weight: 500; color: var(--muted-fg); }
html body .dl-b2b .dl-b2b-stock-none { color: var(--muted-fg); }
html body .dl-b2b ul.dl-b2b-stock-list { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
html body .dl-b2b ul.dl-b2b-stock-list li { list-style: none; margin: 0; padding: 0; }
html body .dl-b2b ul.dl-b2b-stock-list.is-muted { color: var(--muted-fg); }
html body .dl-b2b ul.dl-b2b-stock-list button.dl-b2b-linkbtn { min-height: 24px; padding: 2px 0; margin: 0; font-size: 13px; font-weight: 500; }
/* Why a part is not offered, what it was, and its current model (owner, Nov 22) */
html body .dl-b2b .dl-b2b-why { margin: 0 0 4px; color: var(--on-paper); font-size: 14px; }
html body .dl-b2b .dl-b2b-was, html body .dl-b2b .dl-b2b-near { margin: 0 0 6px; color: var(--muted-fg); font-size: 14px; }
.dl-b2b-near-part { display: inline-block; margin-right: 8px; }
html body .dl-b2b .dl-b2b-near button.dl-b2b-sim-btn { margin: 4px 0 0 4px; }
.dl-b2b-repl { max-width: 560px; margin: 8px 0 2px; padding: 12px 14px 6px; border: 1px solid var(--hair-light); border-radius: var(--r-md); background: var(--paper); color: var(--on-paper); }
.dl-b2b-repl-label { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
.dl-b2b-repl-name { display: block; margin-bottom: 6px; font-size: 14px; }
html body .dl-b2b .dl-b2b-repl-name a { display: inline-block; min-height: 24px; font-weight: 500; }
.dl-b2b-repl-name .dl-b2b-sim-sku { display: inline; margin-left: 4px; }
.dl-b2b-repl-meta { display: block; margin-bottom: 8px; font-size: 14px; }
.dl-b2b-repl-meta .dl-b2b-avail { margin-right: 8px; }
.dl-b2b-repl-meta del { color: var(--muted-fg); }
@media (max-width: 900px) {
  .dl-b2b-similar-body { margin-left: 0; }
  html body .dl-b2b table.dl-b2b-sim-table th.is-product { width: 28%; }
  html body .dl-b2b table.dl-b2b-sim-table th.is-avail { width: 18%; }
  html body .dl-b2b table.dl-b2b-sim-table th.is-wh { width: 24%; }
  html body .dl-b2b table.dl-b2b-sim-table th.is-price { width: 14%; }
  html body .dl-b2b table.dl-b2b-sim-table th.is-actions { width: 16%; }
}
@media (max-width: 600px) {
  .dl-b2b-card { padding: 18px 16px; }
  html body .dl-b2b .dl-b2b-card h2 { font-size: 24px; }
  html body .dl-b2b .dl-b2b-tabs-end { margin-left: 0; width: 100%; }
  html body .dl-b2b .dl-b2b-tabs-end a.dl-b2b-quiet-link { margin: 0 18px 0 0; }
  html body .dl-b2b .dl-b2b-actions.is-end { text-align: left; }
  html body .dl-b2b .dl-b2b-actions .dl-b2b-button, html body .dl-b2b .dl-b2b-parts-form > .dl-b2b-button { width: 100%; margin-right: 0; text-align: center; }
  html body .dl-b2b .dl-b2b-actions .dl-b2b-quiet-link { margin-left: 0; }
  html body .dl-b2b ul.dl-b2b-terms-list, html body .dl-b2b .dl-b2b-terms .dl-b2b-field-error { margin-left: 0; }
  /* Each line of the list is a block with its own edges: the part number small and muted, the product's name the
     lead, then availability, then quantity, price and line total on one line. */
  html body .dl-b2b table.dl-b2b-table { border: 0; background: transparent; }
  html body .dl-b2b table.dl-b2b-table thead { display: none; }
  html body .dl-b2b table.dl-b2b-table, html body .dl-b2b table.dl-b2b-table > tbody, html body .dl-b2b table.dl-b2b-table > tfoot { display: block; width: 100%; }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, 1fr); grid-column-gap: 16px; padding: 12px 0 16px; border-top: 1px solid var(--hair-light-2); }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; box-shadow: none; }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td.dl-b2b-part, html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td.dl-b2b-prod,
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td.dl-b2b-cell-avail { grid-column: 1 / -1; }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row.is-changed { box-shadow: inset 3px 0 0 var(--ember); padding-left: 12px; animation: dlb-changed 2.4s ease-out 0.2s both; }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row.is-changed > td { animation: none; }  /* the row as one block, not cell by cell */
  html body .dl-b2b table.dl-b2b-sim-table td.num { text-align: left; }
  html body .dl-b2b td.dl-b2b-part { font-size: 13px; color: var(--muted-fg); }
  html body .dl-b2b a.dl-b2b-name { font-size: 16px; font-weight: 600; line-height: 1.35; padding: 2px 0; }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td.dl-b2b-cell-avail { margin: 0 0 10px; }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td.num::before { content: attr(data-label); display: block; margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row > td.dl-b2b-cell-total { text-align: right; font-weight: 600; }
  html body .dl-b2b input.dl-b2b-qty { margin: 0; text-align: left; }
  html body .dl-b2b table.dl-b2b-table > tfoot > tr { display: block; padding: 14px 0 6px; border-top: 2px solid var(--on-paper); }
  html body .dl-b2b table.dl-b2b-table > tfoot th, html body .dl-b2b table.dl-b2b-table > tfoot td { display: block; padding: 0; text-align: left; white-space: normal; }
  /* Phase 2. The quotes list: one block per quote, each value beside its name. */
  html body .dl-b2b table.dl-b2b-quotes > tbody > tr.dl-b2b-qrow { display: block; padding: 8px 0 14px; border-top: 1px solid var(--hair-light-2); }
  html body .dl-b2b table.dl-b2b-quotes > tbody > tr.dl-b2b-qrow > td { display: block; padding: 2px 0; border: 0; text-align: left; white-space: normal; }
  html body .dl-b2b table.dl-b2b-quotes > tbody > tr.dl-b2b-qrow > td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-column-gap: 12px; }
  html body .dl-b2b table.dl-b2b-quotes > tbody > tr.dl-b2b-qrow > td[data-label]::before { content: attr(data-label); color: var(--muted-fg); font-size: 13px; }
  html body .dl-b2b table.dl-b2b-quotes a.dl-b2b-name { font-size: 16px; padding: 10px 0; }
  html body .dl-b2b table.dl-b2b-quote-now > tbody > tr.dl-b2b-row > td.dl-b2b-cell-avail { margin: 6px 0 0; }
  html body .dl-b2b .dl-b2b-quote-actions form { display: block; }
  html body .dl-b2b .dl-b2b-card .dl-b2b-upload input[type="file"] { max-width: none; }
  html body .dl-b2b h2.dl-b2b-section { font-size: 22px; }
  /* The similar panel: one block per product; "Add to list" and "Use instead" side by side, equal. */
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-similar { display: block; }
  html body .dl-b2b table.dl-b2b-table tr.dl-b2b-similar > td { display: block; padding: 0 0 16px; background: transparent; }
  .dl-b2b-similar-body { padding: 12px 0 0 14px; }
  html body .dl-b2b table.dl-b2b-sim-table thead { display: none; }
  html body .dl-b2b table.dl-b2b-sim-table, html body .dl-b2b table.dl-b2b-sim-table tbody, html body .dl-b2b table.dl-b2b-sim-table tr, html body .dl-b2b table.dl-b2b-sim-table td { display: block; width: 100%; }
  html body .dl-b2b table.dl-b2b-sim-table tr { border-top: 1px solid var(--hair-light-2); padding: 10px 0 8px; }
  html body .dl-b2b table.dl-b2b-sim-table td { border: 0; padding: 3px 0; text-align: left; }
  html body .dl-b2b table.dl-b2b-sim-table td[data-label] { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-column-gap: 12px; }
  html body .dl-b2b table.dl-b2b-sim-table td[data-label]::before { content: attr(data-label); padding-top: 2px; color: var(--muted-fg); font-size: 12px; }
  html body .dl-b2b table.dl-b2b-sim-table td[data-label] > div { justify-self: start; }
  html body .dl-b2b table.dl-b2b-sim-table td.dl-b2b-sim-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-column-gap: 8px; padding-top: 8px; }
  html body .dl-b2b .dl-b2b-sim-actions button.dl-b2b-sim-btn { margin: 0; }
}
/* ============================================================
   Compact layouts (owner, Nov 23).
   ============================================================ */
/* ---- "Stock details": a real button that shows and hides the block after it (assets/js/b2b-portal.js). Open without
   JavaScript. Used on the lookup, in the similar panel and on the quote page:
     <button type="button" class="dl-b2b-stock-toggle" aria-expanded="false" aria-controls="ID">Stock details</button>
     <div class="dl-b2b-stock-details" id="ID">…</div> ---- */
html body .dl-b2b button.dl-b2b-stock-toggle {
  display: inline-block; width: auto; height: auto; min-height: 44px; margin: 0 18px 0 0; padding: 8px 0; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
  color: var(--ember-deep); font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
html body .dl-b2b button.dl-b2b-stock-toggle:hover { background: none; color: var(--ember-deep-2); }
html body .dl-b2b button.dl-b2b-stock-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
html body .dl-b2b button.dl-b2b-stock-toggle[aria-expanded="true"]::after { margin-bottom: -1px; transform: rotate(-135deg); }
html body .dl-b2b .dl-b2b-stock-details { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 2px solid var(--hair-light-2); font-size: 13px; line-height: 1.5; text-align: left; white-space: normal; }
html body .dl-b2b .dl-b2b-stock-details p { margin: 0; }
@media (min-width: 1001px) {
  html body .dl-b2b button.dl-b2b-stock-toggle { min-height: 32px; padding: 5px 0; }
}
/* ---- the lookup's lines: a compact summary each (part, product, quantity, price, line total, availability, ship
   date); a line's actions sit in one row under the product, and its stock block opens under them. ---- */
html body .dl-b2b .dl-b2b-row-actions { display: flex; flex-wrap: wrap; align-items: center; margin: 2px 0 0; }
html body .dl-b2b .dl-b2b-row-actions > .dl-b2b-stock-details { order: 2; flex: 0 0 100%; max-width: 100%; margin-top: 2px; }
html body .dl-b2b table.dl-b2b-lookup p.dl-b2b-ship { margin: 6px 0 0; font-size: 13px; line-height: 1.45; white-space: normal; }
@media (min-width: 1001px) {
  html body .dl-b2b .dl-b2b-row-actions button.dl-b2b-linkbtn { min-height: 32px; padding: 5px 0; }
  html body .dl-b2b .dl-b2b-row-actions > button { margin-right: 14px; }
  html body .dl-b2b .dl-b2b-row-actions > button:last-child { margin-right: 0; }
  /* Set column widths (the browser's own shares gave the price 174px and the product 244px), so the product column
     holds a line's three actions on one line at 1280px. The struck public price sits above the price. */
  html body .dl-b2b table.dl-b2b-lookup { table-layout: fixed; }
  html body .dl-b2b table.dl-b2b-lookup thead th.dl-b2b-col-part { width: 132px; }
  html body .dl-b2b table.dl-b2b-lookup thead th.dl-b2b-col-avail { width: 200px; }
  html body .dl-b2b table.dl-b2b-lookup thead th.num { width: 128px; }
  html body .dl-b2b table.dl-b2b-lookup thead th.num.dl-b2b-col-qty { width: 88px; }
  html body .dl-b2b table.dl-b2b-lookup .dl-b2b-cell-price del { display: block; margin-right: 0; }
}
/* Tablets (601 to 1000px): the lookup has no room for six columns (the product column was about 100px wide and the
   table scrolled sideways), so its lines are the same blocks as on phones. */
@media (min-width: 601px) and (max-width: 1000px) {
  html body .dl-b2b table.dl-b2b-lookup { border: 0; background: transparent; }
  html body .dl-b2b table.dl-b2b-lookup thead { display: none; }
  html body .dl-b2b table.dl-b2b-lookup, html body .dl-b2b table.dl-b2b-lookup > tbody, html body .dl-b2b table.dl-b2b-lookup > tfoot { display: block; width: 100%; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row { display: grid; border-top: 1px solid var(--hair-light-2); }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; box-shadow: none; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row.is-changed { box-shadow: inset 3px 0 0 var(--ember); animation: dlb-changed 2.4s ease-out 0.2s both; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row.is-changed > td { animation: none; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-part { color: var(--muted-fg); }
  html body .dl-b2b table.dl-b2b-lookup a.dl-b2b-name { font-size: 16px; font-weight: 600; line-height: 1.35; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.num::before { content: attr(data-label); display: block; margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.dl-b2b-cell-total { text-align: right; font-weight: 600; }
  html body .dl-b2b table.dl-b2b-lookup input.dl-b2b-qty { margin: 0; text-align: left; }
  html body .dl-b2b table.dl-b2b-lookup > tfoot > tr { display: block; padding: 14px 0 6px; border-top: 2px solid var(--on-paper); }
  html body .dl-b2b table.dl-b2b-lookup > tfoot th, html body .dl-b2b table.dl-b2b-lookup > tfoot td { display: block; padding: 0; text-align: left; white-space: normal; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-similar { display: block; }
  html body .dl-b2b table.dl-b2b-lookup tr.dl-b2b-similar > td { display: block; padding: 0 0 16px; background: transparent; }
}
@media (prefers-reduced-motion: reduce) { html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row.is-changed { animation: none; } }
@media (min-width: 601px) {
  /* The similar panel has a column for the stock block: it shows, and its button does not. */
  html body .dl-b2b .dl-b2b-similar-body button.dl-b2b-stock-toggle { display: none; }
  html body .dl-b2b .dl-b2b-similar-body .dl-b2b-stock-details, html body .dl-b2b .dl-b2b-similar-body .dl-b2b-stock-details[hidden] { display: block !important; margin: 0; padding: 0; border: 0; }
}
@media (max-width: 1000px) {
  /* One block per line: the part number and the availability pill on the first line, the product's name, the ship
     date, then quantity, price and line total, then the line's actions. The Product and Availability cells give
     their contents to the row's grid. */
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row { grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, 1fr); grid-column-gap: 14px; padding: 10px 0 4px; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.dl-b2b-prod,
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.dl-b2b-prod > div,
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.dl-b2b-cell-avail { display: contents; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.dl-b2b-part { grid-row: 1; grid-column: 1; align-self: center; white-space: nowrap; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-cell-avail > .dl-b2b-avail,
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-cell-avail > .dl-b2b-dash { grid-row: 1; grid-column: 2 / 4; justify-self: end; align-self: center; white-space: normal; text-align: right; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-prod > div > * { grid-column: 1 / -1; min-width: 0; max-width: none; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-prod > div > a.dl-b2b-name { margin: 6px 0 0; padding: 0; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-prod > div > p.dl-b2b-why:first-child { margin-top: 6px; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-cell-avail > p.dl-b2b-ship { order: 1; grid-column: 1 / -1; margin: 2px 0 0; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.num { order: 2; margin-top: 10px; }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-prod > div > .dl-b2b-row-actions { order: 3; margin: 4px 0 0; }
  html body .dl-b2b .dl-b2b-row-actions > button { margin-right: 12px; font-size: 13px; }
  html body .dl-b2b .dl-b2b-row-actions > button:last-child { margin-right: 0; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row.is-changed { padding-left: 12px; }
}
/* The narrowest phones (the 240px keypad phone): the line total takes its own line, so no figure is cut. */
@media (max-width: 299px) {
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-cell-avail > .dl-b2b-avail, html body .dl-b2b table.dl-b2b-lookup td.dl-b2b-cell-avail > .dl-b2b-dash { grid-column: 2 / 3; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.num { white-space: normal; }
  html body .dl-b2b table.dl-b2b-lookup > tbody > tr.dl-b2b-row > td.dl-b2b-cell-total { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 600px) {
  /* The similar panel: one compact block per product. Its name; availability and price on one line; the stock block
     behind "Stock details"; "Add to list" and "Use instead" side by side. */
  html body .dl-b2b table.dl-b2b-sim-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column-gap: 12px; padding: 10px 0 8px; }
  html body .dl-b2b table.dl-b2b-sim-table td { width: auto; padding: 2px 0; }
  html body .dl-b2b table.dl-b2b-sim-table td[data-label] { display: block; }
  html body .dl-b2b table.dl-b2b-sim-table td[data-label]::before { content: none; }
  html body .dl-b2b table.dl-b2b-sim-table td.is-product, html body .dl-b2b table.dl-b2b-sim-table td.is-wh, html body .dl-b2b table.dl-b2b-sim-table td.dl-b2b-sim-actions { grid-column: 1 / -1; }
  html body .dl-b2b table.dl-b2b-sim-table td.is-avail { grid-column: 1; align-self: center; }
  html body .dl-b2b table.dl-b2b-sim-table td.is-price { grid-column: 2; align-self: center; text-align: right; }
  html body .dl-b2b table.dl-b2b-sim-table del { display: inline; }
  html body .dl-b2b table.dl-b2b-sim-table td.dl-b2b-sim-actions { padding-top: 4px; }
  html body .dl-b2b .dl-b2b-sim-this { margin: 0 0 4px; }
  html body .dl-b2b .dl-b2b-sim-this-name { margin: 0; }
}
/* ---- the business profile (signed-out /business/, owner, Nov 23): who it is for, what an approved account gets, how
   it works, what is coming, who you buy from. ---- */
html body .dl-b2b .dl-b2b-cta { margin: 16px 0 0; }
html body .dl-b2b .dl-b2b-cta .dl-b2b-button { margin: 0 18px 4px 0; }
html body .dl-b2b .dl-b2b-cta a.dl-b2b-quiet-link { margin-right: 0; }
html body .dl-b2b .dl-b2b-cta.is-end { margin: 20px 0 8px; padding-top: 20px; border-top: 1px solid var(--hair-light); }
html body .dl-b2b .dl-b2b-profile .dl-b2b-cols { margin-bottom: 0; }
html body .dl-b2b .dl-b2b-profile .dl-b2b-who p { max-width: 620px; }
html body .dl-b2b .dl-b2b-profile .dl-b2b-seller h3 { margin-top: 16px; }
html body .dl-b2b .dl-b2b-profile .dl-b2b-seller h3:first-child { margin-top: 0; }
html body .dl-b2b .dl-b2b-profile .dl-b2b-seller p { margin: 0; font-size: 14px; }
html body .dl-b2b ul.dl-b2b-gets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); grid-gap: 12px; }
html body .dl-b2b ul.dl-b2b-gets li { list-style: none; margin: 0; padding: 18px 20px 20px; background: var(--bone); border: 1px solid var(--hair-light); border-radius: var(--r-lg); }
html body .dl-b2b ul.dl-b2b-gets li::before { content: ""; display: block; width: 24px; height: 2px; margin: 0 0 12px; background: var(--ember); }
html body .dl-b2b ul.dl-b2b-gets strong { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.35; }
html body .dl-b2b ul.dl-b2b-gets span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted-fg); }
/* Five tiles: three across, then two, with no empty cell. */
@media (min-width: 900px) {
  html body .dl-b2b ul.dl-b2b-gets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html body .dl-b2b ul.dl-b2b-gets li { grid-column: span 2; }
  html body .dl-b2b ul.dl-b2b-gets li:nth-child(n+4) { grid-column: span 3; }
}
html body .dl-b2b .dl-b2b-profile ol.dl-b2b-steps { margin-bottom: 0; }
/* The shortened profile (Nov 26): three tiles in one row from 900px, the steps in one card no wider than the text. */
@media (min-width: 900px) {
  html body .dl-b2b ul.dl-b2b-gets.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .dl-b2b ul.dl-b2b-gets.is-three li,
  html body .dl-b2b ul.dl-b2b-gets.is-three li:nth-child(n+4) { grid-column: auto; }
}
html body .dl-b2b .dl-b2b-profile .dl-b2b-how { max-width: 720px; margin-bottom: 16px; }
html body .dl-b2b .dl-b2b-profile .dl-b2b-questions { margin: 0 0 8px; }
html body .dl-b2b .dl-b2b-profile ol.dl-b2b-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
html body .dl-b2b .dl-b2b-profile ol.dl-b2b-steps span { color: var(--muted-fg); font-size: 14px; }
html body .dl-b2b .dl-b2b-card p.dl-b2b-tag { display: inline-block; margin: 0 0 10px; padding: 2px 9px; border: 1px solid var(--ember); border-radius: 8px; font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-deep); }
html body .dl-b2b .dl-b2b-coming ul.dl-b2b-list { margin-bottom: 12px; }
html body .dl-b2b .dl-b2b-coming ul.dl-b2b-list li { margin-bottom: 6px; }
html body .dl-b2b .dl-b2b-coming p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  /* Phones: what an account gets is one list with hairlines, not five cards. */
  html body .dl-b2b ul.dl-b2b-gets { display: block; border-bottom: 1px solid var(--hair-light-2); }
  html body .dl-b2b ul.dl-b2b-gets li { padding: 12px 0; background: transparent; border: 0; border-top: 1px solid var(--hair-light-2); border-radius: 0; }
  html body .dl-b2b ul.dl-b2b-gets li::before { content: none; }
  html body .dl-b2b .dl-b2b-cta .dl-b2b-button { display: block; margin-right: 0; text-align: center; }
  html body .dl-b2b h2.dl-b2b-section { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row.is-changed { animation: none; } }

/* Quotes hold no price (owner, Nov 23): the quote page says what differs today, before anything goes into the bag. */
html body .dl-b2b .dl-b2b-note.dl-b2b-today { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--on-paper); white-space: normal; }
html body .dl-b2b p.dl-b2b-quote-today { margin: 0 0 12px; padding: 10px 12px; max-width: 420px; border-left: 3px solid var(--ember-deep); background: #fbf3ee; font-size: 14px; line-height: 1.45; color: var(--on-paper); }

/* Documents (owner, Nov 23; inc/b2b/documents.php). The application's file fields, the customer's Documents page, and
   the Admin dashboard's Documents section. Physical properties only; file controls are 44px high. */
html body .dl-b2b .dl-b2b-apply .dl-b2b-upload { margin: 0; padding: 0; border-top: 0; }
html body .dl-b2b .dl-b2b-apply .dl-b2b-docs-note { clear: both; margin: 18px 0 16px; max-width: 640px; }
html body .dl-b2b .dl-b2b-apply .dl-b2b-docs-again { clear: both; margin: 0 0 14px; font-size: 14px; }
html body .dl-b2b .dl-b2b-docs-intro { margin: 0 0 16px; max-width: 640px; }
html body .dl-b2b .dl-b2b-docs { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 16px; }
@media (min-width: 900px) { html body .dl-b2b .dl-b2b-docs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
html body .dl-b2b .dl-b2b-doc h2 { font-size: 22px; }
html body .dl-b2b .dl-b2b-doc h2 .dl-b2b-avail { margin-left: 6px; vertical-align: middle; font-family: var(--sans); letter-spacing: 0; }
html body .dl-b2b .dl-b2b-avail.is-wait { background: #fdebd6; color: #7d3f0b; }
html body .dl-b2b dl.dl-b2b-doc-facts { grid-template-columns: minmax(0, 1fr); grid-gap: 2px; }
html body .dl-b2b dl.dl-b2b-doc-facts dt { margin-top: 10px; font-size: 13px; }
html body .dl-b2b dl.dl-b2b-doc-facts dd { font-weight: 400; overflow-wrap: break-word; overflow-wrap: anywhere; }
html body .dl-b2b dl.dl-b2b-doc-facts dd a.dl-b2b-quiet-link { display: inline-block; min-height: 24px; }
html body .dl-b2b .dl-b2b-doc-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--on-paper); }
html body .dl-b2b .dl-b2b-doc-form .dl-b2b-button { margin-top: 10px; }
html body .dl-b2b .dl-b2b-doc-other { margin-top: 16px; max-width: 560px; }
html body .dl-b2b .dl-b2b-doc-form select, html body .dl-b2b .dl-b2b-doc-other input[type="file"] { display: block; width: 100%; max-width: 420px; min-height: 44px; margin: 0 0 12px; padding: 8px 10px; font-size: 14px; line-height: 1.6; background: #fff; border: 1px solid var(--hair-light-2); border-radius: var(--r-md); color: var(--on-paper); }
@media (max-width: 767px) {
  html body .dl-b2b dl.dl-b2b-doc-facts dd a.dl-b2b-quiet-link { min-height: 44px; line-height: 44px; }
}

.dlm-doc-flag { margin: -6px 0 14px; font-size: 14px; }
.dlm-doc-flag a { text-decoration: none; }
.dlm-doc-flag .dlm-status.is-warn { margin-top: 0; margin-right: 6px; }
.dlm-status.is-closed { background: var(--paper-2); color: var(--ink-3); }
.dlm-doc-kind { padding: 12px 0 4px; border-top: 1px solid var(--hair-light); }
.dlm .dlm-doc-kind h3 { margin: 0 0 8px; }
.dlm-doc-list { list-style: none; margin: 0; padding: 0; }
.dlm-doc { margin: 0 0 12px; padding: 0; }
.dlm-doc.is-superseded, .dlm-doc.is-rejected { color: var(--muted-fg); }
.dlm-doc-head { margin: 0 0 4px; overflow-wrap: break-word; overflow-wrap: anywhere; }
.dlm-doc-head a { display: inline-block; min-height: 24px; padding: 4px 0; font-weight: 600; }
.dlm-doc .dlm-help { margin: 0 0 8px; font-size: 13px; }
.dlm-doc-hash { display: inline-block; font-size: 12px; }
.dlm-doc-review { margin: 0 0 8px; }
.dlm-doc-review label { display: block; margin: 0 0 8px; }
.dlm-doc-form { display: grid; grid-gap: 10px; margin: 0 0 8px; padding: 14px 0 6px; border-top: 1px solid var(--hair-light); }
.dlm .dlm-doc-form h3 { margin: 0; }
.dlm-doc-form .dlm-button { justify-self: start; }
.dlm-doc-form .dlm-help { margin: 0; font-size: 13px; }
.dlm-doc-waiting li { margin: 0 0 4px; }
.dlm-doc-kind-edit { margin: 16px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--hair-light); min-width: 0; }
.dlm-doc-kind-edit legend { padding: 0 8px 0 0; font-weight: 600; }
.dlm-doc-kind-edit > label { display: block; margin-top: 12px; }
.dlm-doc-settings .dlm-actions { margin-top: 16px; }
@media (max-width: 767px) {
  .dlm-doc-head a { min-height: 44px; padding: 12px 0; }
}

/* Credit terms (owner, Nov 24): the PDF to read before signing, and the steps. */
html body .dl-b2b .dl-b2b-agreement-text { max-height: 70vh; max-height: 70svh; overflow-y: auto; padding: 16px 24px 16px 18px; border: 1px solid #e5e1dc; border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.6; }
html body .dl-b2b .dl-b2b-agreement-text h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 600; }
html body .dl-b2b .dl-b2b-agreement-text p { margin: 0 0 10px; max-width: 62ch; }
html body .dl-b2b .dl-b2b-agreement-sign .dl-b2b-agree { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; line-height: 1.5; }
html body .dl-b2b .dl-b2b-agreement-sign .dl-b2b-agree input { margin-top: 4px; flex: 0 0 auto; }
html body .dl-b2b .dl-b2b-agreement-sign .dl-b2b-button + .dl-b2b-button { margin-left: 8px; }
@media (max-width: 600px) { html body .dl-b2b .dl-b2b-agreement-text { max-height: 60vh; max-height: 60svh; padding: 12px 18px 12px 14px; } }

/* Checkboxes at least 24px square (WCAG 2.5.8): Settings, the credit terms' consent and the application form drew them
   at 20-22px (layout check, Nov 24). */
html body .dl-b2b input[type="checkbox"], .dlm input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 0;
    vertical-align: middle;
}

/* Cloudflare's challenge (inc/bot-check.php), when it is set up: its own row above the button. */
.dl-bot-check { margin: 12px 0 16px; min-height: 65px; }

/* Invoices on a phone as labelled cards, and bank details as label/value rows (final review, Nov 24: the Owed column was
   off the screen and the account numbers ran together in one sentence). */
@media (max-width: 600px) {
  html body .dl-b2b table.dl-b2b-table.is-cards > tbody > tr { display: block; padding: 12px 0; border-top: 1px solid var(--hair-light-2); }
  html body .dl-b2b table.dl-b2b-table.is-cards > tbody > tr > td { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-column-gap: 12px; padding: 3px 0; border: 0; text-align: left; white-space: normal; }
  html body .dl-b2b table.dl-b2b-table.is-cards > tbody > tr > td::before { content: attr(data-label); color: var(--muted-fg); font-size: 13px; }
}
.dl-b2b-remit { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-column-gap: 16px; grid-row-gap: 4px; margin: 0 0 12px; font-size: 14px; }
.dl-b2b-remit dt { margin: 0; color: var(--muted-fg); font-weight: 400; }
.dl-b2b-remit dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: break-word; overflow-wrap: anywhere; }
@media (max-width: 600px) { .dl-b2b-remit { grid-template-columns: minmax(0, 1fr); } .dl-b2b-remit dd { margin-bottom: 6px; } }

/* The portal's sections on a phone: two even columns in sentence case, My account and Sign out on their own row (final
   review, Nov 24: six uppercase pills took four rows, about 230px, before any content). */
@media (max-width: 600px) {
  html body.deviceland-shop nav.dl-b2b-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 6px; }
  html body.deviceland-shop nav.dl-b2b-tabs .dl-account-tab { justify-content: center; text-align: center; padding: 6px 10px; text-transform: none; letter-spacing: 0; font-size: 14px; }
  html body.deviceland-shop nav.dl-b2b-tabs .dl-b2b-tabs-end { grid-column: 1 / -1; }
}

/* Settings, final review (Nov 24): document kinds one field per row (the options' "(staff only…)" endings were cut off);
   text boxes grow with their text where the browser can; "Do not accept" opens its reason. */
.dlm .dlm-doc-kind-edit .dlm-grid.dlm-doc-kind-grid { grid-template-columns: minmax(0, 1fr); }
.dlm .dlm-doc-kind-grid select { width: 100%; max-width: 100%; }
.dlm textarea { min-height: 4.5em; }
@supports (field-sizing: content) { .dlm textarea { field-sizing: content; max-height: 24em; } }
.dlm-doc-reject { margin: 8px 0 0; }
.dlm-doc-reject > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted-fg); font-size: 14px; }

/* A line that cannot be bought: no price cells on a phone (final review, Nov 24: unlabelled dashes looked like prices
   still to come); the reason and Remove stay. */
@media (max-width: 600px) {
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row.is-unbuyable > td.dl-b2b-cell-price,
  html body .dl-b2b table.dl-b2b-table > tbody > tr.dl-b2b-row.is-unbuyable > td.dl-b2b-cell-total { display: none; }
}
/* Drop-downs look like drop-downs (final review, Nov 24: no arrow, read as text boxes). */
html body .dl-b2b select:not([multiple]) { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
/* A status in a stacked quote row stays a pill, not a full-width bar (final review, Nov 24). */
html body .dl-b2b tr.dl-b2b-qrow .dl-b2b-avail { justify-self: start; width: -webkit-max-content; width: max-content; max-width: 100%; }
html body .dl-b2b .dl-b2b-nowrap { white-space: nowrap; }
@media (max-width: 400px) { html body .dl-b2b .dl-b2b-nowrap { white-space: normal; } }

/* The pages for every order (owner, Nov 25; inc/ops/): order views, search, paging, forms in a row. */
.dlm-views { display: flex; flex-wrap: wrap; margin: 0 0 16px; }
.dlm-views a { margin: 0 8px 8px 0; padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--hair-light); border-radius: 999px; text-decoration: none; color: inherit; font-size: 14px; }
.dlm-views a[aria-current="page"] { background: var(--on-paper, #1b1714); color: #fff; border-color: transparent; }
.dlm-search { display: flex; flex-wrap: wrap; align-items: flex-end; margin: 0 0 16px; }
.dlm-search label { flex: 1 1 260px; margin: 0 8px 8px 0; }
.dlm-search input { width: 100%; }
.dlm-search .dlm-button { margin: 0 0 8px; }
.dlm-pager { display: flex; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.dlm-pager > * { margin: 0 16px 8px 0; }
.dlm-pager a { min-height: 44px; display: inline-flex; align-items: center; }
.dlm-pay-form { display: flex; flex-wrap: wrap; align-items: flex-end; margin: 0 0 14px; }
.dlm-pay-form label { display: flex; flex-direction: column; margin: 0 10px 8px 0; flex: 1 1 180px; }
.dlm-pay-form .dlm-button { margin: 0 0 8px; }
.dlm-stack-form label { display: block; margin: 0 0 10px; }
.dlm-stack-form textarea, .dlm-stack-form input[type="number"] { width: 100%; }
.dlm-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.dlm-section-title { margin: 32px 0 12px; }
.dlm-cat-picks { max-height: 320px; overflow-y: auto; margin: 4px 0 12px 28px; padding: 6px 10px; border: 1px solid var(--hair-light); border-radius: 8px; }
.dlm-fieldset { border: 0; padding: 0; margin: 12px 0; }
.dlm-fieldset legend { font-weight: 600; margin: 0 0 6px; }
.dlm-button.is-danger { background: #9b2c1f; border-color: #9b2c1f; color: #fff; }
/* An order or a customer: the work on the left, who and when on the right; one column on phones and tablets. */
.dlm-split { display: grid; grid-template-columns: minmax(0, 1fr); grid-column-gap: 24px; }
@media (min-width: 1100px) { .dlm-split { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: start; } }
.dlm .dlm-check input[type="radio"] { width: 20px; height: 20px; margin: 0 10px 0 0; flex: 0 0 auto; accent-color: var(--ember); }
.dlm .dlm-check span small { display: inline; margin: 0 0 0 4px; }
/* A status in a stacked card stays a pill (it stretched across the card on phones). */
.dlm-table.is-cards td .dlm-status { justify-self: start; width: -webkit-max-content; width: max-content; max-width: 100%; }

/* ---- Local layout audit of the business and dashboard pages (owner, Nov 25; tools/e2e/layout_audit.py --pageset=local).
   No audit had seen these pages: business accounts were off live. ---- */
/* Text lines a reader can follow: help, notes, lists and the agreement wrapped at about 72 characters (lines ran to
   ~176 on a wide screen; 62ch is about 80 of this type's letters). Rows of buttons, calls to action and notices keep
   their full width: they are aligned or ruled across the card (reviewer, Nov 25); a notice box is as wide as its text. */
.dlm p:not(.dlm-actions), .dlm li, .dlm dd,
html body .dl-b2b p:not(.dl-b2b-actions):not(.dl-b2b-cta), html body .dl-b2b li, html body .dl-b2b dd { max-width: 62ch; }
/* Grids of fields and tiles never ask for more than the screen (240px phones: the company form's 240px columns and the
   overview's three 70px tiles spilled and overlapped). */
.dlm-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 701px) {   /* phones keep their three counts across (owner, Nov 23; the rule above at 700px) */
  .dlm-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
}
.dlm-tile > span, .dlm-grid > label > span, .dlm-grid > label > small { min-width: 0; overflow-wrap: break-word; }
/* A percent field keeps room for its digits (43px to type in). */
.dlm .dlm-rule-pct input { min-width: 72px; padding-left: 8px; padding-right: 6px; }
/* Long addresses and references break where they must instead of running off the card (an email ran 33px past a 240px
   screen; an invoice's "Order 65932 · PO HTC-2026-118" 12px). */
.dlm-card a[href^="mailto:"], html body .dl-b2b dl.dl-b2b-facts dd { overflow-wrap: break-word; overflow-wrap: anywhere; min-width: 0; }
/* In a table only a word too long for its cell breaks ("anywhere" let columns shrink and split every word). */
html body .dl-b2b table.dl-b2b-table td { overflow-wrap: break-word; }
html body .dl-b2b label.dl-b2b-agree > span { min-width: 0; overflow-wrap: break-word; }
/* The robot trap is not drawn at all (an off-screen 1px field read as a text box with no room to type). Robots read the
   form's HTML, not its layout, so they still fill it. */
.dl-b2b-trap { display: none; }
@media (max-width: 380px) {
  /* A stacked table row's labels sit above their values: beside them, a 104px label left 28px for the value on a 240px
     screen and every word split. */
  .dlm-table.is-cards td[data-label] { grid-template-columns: minmax(0, 1fr); }
  /* The overview's counts one under the other; "Try a part number" with its button under the field (22px to type in). */
  .dlm-tiles { grid-template-columns: minmax(0, 1fr); }
  .dlm-try { grid-template-columns: minmax(0, 1fr); }
  html body .dl-b2b dl.dl-b2b-facts { grid-template-columns: minmax(0, 1fr); }
  html body .dl-b2b dl.dl-b2b-facts dd { margin-bottom: 8px; }
}
@media (max-width: 340px) {
  /* The portal's sections one a row, names wrapping ("Prices and availability" ran 25px past a 240px screen and overlapped
     "Overview"). */
  html body.deviceland-shop nav.dl-b2b-tabs { grid-template-columns: minmax(0, 1fr); }
  html body.deviceland-shop nav.dl-b2b-tabs .dl-account-tab { white-space: normal; }
}
@media (max-height: 560px) {
  /* A short screen keeps its height for the page: the dashboard's section bar and a form's action bar stop sticking
     (240x320: together 224px, 70% of the screen), and the parts box opens at four lines (an empty 148px band). */
  .dlm .dlm-sections, .dlm-actions.is-sticky { position: static; }
  html body .dl-b2b .dl-b2b-card #dlb-parts { height: 7em; min-height: 0; }
}
@media (max-width: 360px) {
  /* A narrow phone keeps its height for the page too: the section bar wraps to three rows there (133px of a 640px
     screen at 280px wide), so neither bar sticks. */
  .dlm .dlm-sections, .dlm-actions.is-sticky { position: static; }
}
/* A customer's email under their name breaks where it must (15px past a 240px screen in the customers list). */
.dlm-table td.dlm-cell-title small { overflow-wrap: break-word; overflow-wrap: anywhere; }
@media (max-width: 340px), (max-height: 480px) {
  /* Only an EMPTY text box opens at about four lines on a tiny or short screen (Settings: up to 360px of empty box on a
     320px-tall screen). A box with text keeps its full height and grows with what is typed (reviewer, Nov 25: a fixed
     height cut saved help text to four lines). b2b-manage.js gives every box a blank placeholder so :placeholder-shown
     means "empty"; without JavaScript the boxes keep their usual size. */
  .dlm textarea:placeholder-shown { height: 6em; }
}
