/* ==========================================================================
   Dynabrade Distributor Portal — shared styles
   Built from Figma: Dynabrade-Distributor-Portal-2026
   (frames "Fieldline wholesale landing page" 2:2292 and
    "Dynabrade distributor home" 40:1319)
   ========================================================================== */

:root {
  /* Brand tokens (from Figma) */
  --db-orange: #fa4616;
  --db-orange-dark: #e03a0d;
  --db-navy: #182d40;
  --db-ink: #100000;
  --db-icon: #141b34;
  --db-slate: #607080;
  --db-line: #d5dad9;
  --db-canvas: #f6f4ef;
  --db-surface: #ffffff;
  --db-surface-muted: #f9f9f6;
  --db-success-bg: #edf4ee;
  --db-success: #35634e;
  --db-warning-bg: #f8f0de;
  --db-warning: #86601f;

  --db-gutter: 72px;
  --db-radius: 4px;
  --db-radius-sm: 2px;

  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-semi: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-barlow: "Barlow", Arial, sans-serif;
  --font-inter: "Inter", Arial, sans-serif;

  /* Bootstrap overrides */
  --bs-body-bg: var(--db-canvas);
  --bs-body-color: var(--db-navy);
  --bs-body-font-family: var(--font-semi);
  --bs-link-color: var(--db-orange);
  --bs-link-hover-color: var(--db-orange-dark);
  --bs-border-color: var(--db-line);
}

body {
  background: var(--db-canvas);
  color: var(--db-navy);
  font-family: var(--font-semi);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
img, svg { display: block; }

.db-gutter { padding-left: var(--db-gutter); padding-right: var(--db-gutter); }

/* ---------- Buttons ---------- */
.btn-db {
  --bs-btn-bg: var(--db-orange);
  --bs-btn-border-color: var(--db-orange);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--db-orange-dark);
  --bs-btn-hover-border-color: var(--db-orange-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--db-orange-dark);
  --bs-btn-active-border-color: var(--db-orange-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--db-orange);
  --bs-btn-disabled-border-color: var(--db-orange);
  --bs-btn-disabled-color: #fff;
  --bs-btn-focus-shadow-rgb: 250, 70, 22;
  border-radius: var(--db-radius-sm);
  font-family: var(--font-semi);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

.form-control:focus,
.form-check-input:focus,
.btn:focus-visible,
a:focus-visible,
tr:focus-visible {
  outline: none;
  border-color: var(--db-orange);
  box-shadow: 0 0 0 3px rgba(250, 70, 22, .25);
}

/* ---------- Brand lockup (shared header) ---------- */
.brand-rule { height: 6px; background: var(--db-orange); }
.brand-rule--thick { height: 10px; margin-bottom: 7px; }

.brand { display: flex; align-items: center; gap: 12px; height: 96px; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { width: 69px; height: 43.27px; flex-shrink: 0; }
.brand__wordmark { display: flex; flex-direction: column; gap: 1px; line-height: normal; white-space: nowrap; }
.brand__name { font-family: var(--font-condensed); font-weight: 600; font-size: 30px; line-height: 36px; color: var(--db-orange); }
.brand__descriptor { font-family: var(--font-condensed); font-weight: 500; font-size: 12px; line-height: 14px; color: var(--db-navy); }
.brand__divider { width: 1px; height: 34px; background: var(--db-line); }
.brand__portal { font-family: var(--font-condensed); font-weight: 600; font-size: 21px; color: var(--db-navy); white-space: nowrap; }

/* ==========================================================================
   LOGIN / LANDING PAGE
   ========================================================================== */
.landing-hero { padding-bottom: 29px; }

.login-card {
  width: 398px;
  max-width: 100%;
  background: var(--db-surface);
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  padding: 28px 44px 24px;
}
.login-card__inner { width: 305px; max-width: 100%; margin-left: auto; margin-right: auto; }
.login-card__title-row { display: flex; align-items: center; justify-content: space-between; }
.login-card__title { font-family: var(--font-semi); font-weight: 600; font-size: 27px; color: var(--db-navy); margin: 0; line-height: 32px; }
.login-card__desc { font-family: var(--font-condensed); font-size: 16px; line-height: 1.6; color: var(--db-ink); margin: 10px 0 0; }

.login-field { margin-top: 24px; }
.login-field label { display: block; font-family: var(--font-semi); font-weight: 600; font-size: 14px; color: var(--db-navy); margin-bottom: 10px; }
.login-input {
  height: 52px;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius-sm);
  padding: 0 16px;
  font-family: var(--font-barlow);
  font-size: 14px;
  color: var(--db-navy);
  background-color: #fff;
}
.login-input::placeholder { color: var(--db-slate); }
.invalid-feedback { font-family: var(--font-semi); font-size: 12px; }

.password-wrap { position: relative; }
.password-wrap .login-input { padding-right: 48px; background-image: none; }
.password-toggle {
  position: absolute; top: 17px; right: 16px;
  border: 0; background: none; padding: 0; width: 18px; height: 18px; cursor: pointer;
}

.login-prefs { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.login-prefs .form-check { display: flex; align-items: center; gap: 8px; min-height: 16px; margin: 0; padding: 0; }
.login-prefs .form-check-input {
  width: 16px; height: 16px; margin: 0; float: none; cursor: pointer;
  border: 1px solid var(--db-line); border-radius: var(--db-radius-sm);
}
.login-prefs .form-check-input:checked { background-color: var(--db-orange); border-color: var(--db-orange); }
.login-prefs .form-check-label,
.login-prefs .forgot-link { font-family: var(--font-condensed); font-weight: 500; font-size: 12px; }
.login-prefs .form-check-label { color: var(--db-ink); cursor: pointer; }
.login-prefs .forgot-link { color: var(--db-orange); }
.login-prefs .forgot-link:hover { text-decoration: underline; }

.btn-login { width: 100%; height: 54px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 16px; }

.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; font-family: var(--font-condensed); font-size: 12px; color: #000; }
.login-card__divider { height: 1px; background: var(--db-line); margin-top: 24px; }

.login-alert { font-family: var(--font-semi); font-size: 13px; margin: 16px 0 0; padding: 8px 36px 8px 12px; border-radius: var(--db-radius-sm); }
.login-alert .btn-close { padding: 11px; font-size: 10px; }

/* Right-hand "new distributors" intro */
.portal-intro { max-width: 430px; }
.portal-intro__eyebrow { font-family: var(--font-inter); font-weight: 600; font-size: 11px; color: var(--db-orange); text-transform: uppercase; margin: 0; }
.portal-intro__guidance { font-family: var(--font-condensed); font-size: 16px; line-height: 1.7; color: var(--db-ink); margin: 20px 0 0; }
.portal-intro__headline { font-family: var(--font-semi); font-weight: 600; font-size: 40px; line-height: 1.04; color: var(--db-ink); margin: 20px 0 0; }
.portal-intro__headline span { color: var(--db-orange); }
.portal-intro__desc { font-family: var(--font-condensed); font-size: 18px; line-height: 1.6; color: #000; max-width: 392px; margin: 20px 0 0; }
.portal-intro__desc strong { font-weight: 500; }
.portal-intro__divider { width: 360.5px; max-width: 100%; height: 1px; background: var(--db-line); margin-top: 20px; }
.promise { margin-top: 20px; }
.promise__title { font-family: var(--font-semi); font-weight: 600; font-size: 19px; color: var(--db-ink); margin: 0; }
.promise__detail { font-family: var(--font-condensed); font-size: 13px; color: #000; margin: 6px 0 0; }

.access-card {
  width: 325px; max-width: 100%;
  background: var(--db-surface);
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  padding: 20px;
}
.btn-access {
  width: 100%; height: 51px; padding: 0 22px;
  display: flex; align-items: center; justify-content: center; gap: 21px;
  font-family: var(--font-condensed); font-weight: 600; font-size: 16px;
  text-decoration: underline; text-underline-offset: 2px;
}
.access-card__note { font-family: var(--font-inter); font-size: 11px; color: #000; margin: 10px 0 0; text-align: center; }
#requestAccessModal .modal-body a { color: var(--db-orange-dark); text-underline-offset: 2px; }

/* Warehouse photo band */
.warehouse-feature {
  position: relative;
  height: 488px;
  background-color: #3a4450;
  background-image: url("../img/distribution-center.jpg");
  background-size: cover;
  background-position: center 28%;
}
.warehouse-feature__promise {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14px; background: var(--db-orange);
}

/* Login layout positions on large screens */
@media (min-width: 1200px) {
  .landing-hero__row { display: flex; align-items: flex-start; }
  .landing-hero__login { flex: 0 0 398px; }
  .landing-hero__intro { padding-left: 57px; padding-top: 121px; flex: 0 0 auto; }
  .landing-hero__cta { margin-left: 42px; padding-top: 261px; }
}

/* ==========================================================================
   HOME / DASHBOARD PAGE
   ========================================================================== */
.account-header { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.account-controls { display: flex; align-items: center; gap: 24px; }
.support-link { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--db-navy); }
.support-link:hover { color: var(--db-orange); }
.account-divider { width: 1px; height: 32px; background: var(--db-line); }
.account-toggle { display: flex; align-items: center; gap: 24px; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.account-toggle::after { display: none; }
.account-toggle__company { font-weight: 600; font-size: 16px; color: var(--db-navy); line-height: normal; }
.account-toggle__number { font-size: 13px; color: var(--db-slate); margin-top: 3px; line-height: normal; }
.account-toggle .chev { transition: transform .15s; }
.account-toggle.is-open .chev { transform: rotate(180deg); }
.dropdown-menu { border-color: var(--db-line); border-radius: var(--db-radius); font-family: var(--font-semi); }
.dropdown-item:active { background: var(--db-orange); }

.portal-nav {
  background: #fff;
  border-top: 1px solid var(--db-line);
  border-bottom: 1px solid var(--db-line);
  height: 56px;
  display: flex; align-items: center; gap: 24px;
}
.portal-nav__links { display: flex; align-items: stretch; gap: 24px; height: 100%; margin: 0; padding: 0; list-style: none; }
.portal-nav__link {
  height: 100%; display: flex; align-items: center; padding: 8px;
  font-weight: 600; font-size: 16px; color: var(--db-navy);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.portal-nav__link:hover { color: var(--db-orange); }
.portal-nav__link.active { color: var(--db-orange); border-bottom-color: var(--db-orange); }
.portal-nav__cart { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--db-navy); white-space: nowrap; }
.portal-nav__cart:hover { color: var(--db-orange); }

.workspace { padding-top: 32px; padding-bottom: 32px; }

.welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.welcome__label { font-weight: 600; font-size: 12px; color: var(--db-slate); margin: 0; }
.welcome__title { font-family: var(--font-condensed); font-weight: 600; font-size: 48px; color: var(--db-navy); margin: 8px 0 0; line-height: normal; }
.welcome__detail { font-size: 16px; color: var(--db-slate); margin: 8px 0 0; }
.daily-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.daily-actions__date { font-size: 14px; color: var(--db-slate); }
.btn-primary-action { height: 44px; padding: 12px; }

.db-card { background: var(--db-surface); border: 1px solid var(--db-line); border-radius: var(--db-radius); }

.metric-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; height: 100%; color: inherit; transition: border-color .15s, box-shadow .15s; }
.metric-card:hover { border-color: var(--db-orange); box-shadow: 0 2px 10px rgba(24, 45, 64, .06); color: inherit; }
.metric-card__head { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.metric-card__label { font-weight: 600; font-size: 16px; color: var(--db-navy); }
.metric-card__value-row { display: flex; align-items: center; justify-content: space-between; }
.metric-card__value { font-family: var(--font-condensed); font-weight: 600; font-size: 42px; line-height: 1; color: var(--db-navy); }
.metric-card__detail { font-size: 14px; color: var(--db-slate); }
.metric-card--alert .metric-card__value,
.metric-card--alert .metric-card__detail { color: var(--db-orange); }

/* Recent orders */
.section-title { font-family: var(--font-condensed); font-weight: 600; font-size: 26px; color: var(--db-navy); margin: 0; }
.section-title--sm { font-size: 24px; }
.task-link { font-weight: 600; font-size: 15px; color: var(--db-orange); white-space: nowrap; }
.task-link:hover { color: var(--db-orange-dark); text-decoration: underline; }

.orders-card { overflow: hidden; height: 100%; }
.orders-card__head { height: 66px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.orders-card__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
@media (max-width: 575.98px) {
  .orders-card__head:has(.orders-card__links) { height: auto; min-height: 66px; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .orders-card__links { flex-direction: column; align-items: flex-end; }
}
.orders-table { width: 100%; margin: 0; border-collapse: collapse; }
.orders-table th {
  background: var(--db-surface-muted);
  border-top: 1px solid var(--db-line); border-bottom: 1px solid var(--db-line);
  height: 38px; padding: 0 6px;
  font-weight: 600; font-size: 11px; color: var(--db-slate); text-transform: uppercase; white-space: nowrap;
}
.orders-table td { height: 65px; padding: 0 6px; border-bottom: 1px solid var(--db-line); font-size: 15px; color: var(--db-slate); vertical-align: middle; white-space: nowrap; }
.orders-table th:first-child, .orders-table td:first-child { padding-left: 24px; }
.orders-table th:last-child, .orders-table td:last-child { padding-right: 24px; width: 44px; }
.orders-table .col-ref { width: 146px; }
.orders-table .col-date { width: 122px; }
.orders-table .col-status { width: 162px; }
.orders-table .col-delivery { width: 124px; }
.orders-table .col-total { text-align: right; color: var(--db-navy); }
.orders-table tbody tr { cursor: pointer; transition: background .12s; }
.orders-table tbody tr:hover { background: #fcfbf8; }
.order-number { font-weight: 600; font-size: 16px; color: var(--db-navy); line-height: normal; }
.order-po { font-size: 12px; color: var(--db-slate); margin-top: 4px; line-height: normal; }

.status-badge { display: inline-block; padding: 5px 8px; border-radius: var(--db-radius-sm); font-weight: 500; font-size: 13px; line-height: normal; }
.status-badge--processing { background: var(--db-surface-muted); color: var(--db-slate); }
.status-badge--shipped { background: var(--db-success-bg); color: var(--db-success); }
.status-badge--partial { background: var(--db-warning-bg); color: var(--db-warning); }

.orders-card__note { height: 44px; padding: 0 24px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--db-slate); }

/* Quick tasks */
.tasks-card { padding: 0 24px; height: 100%; display: flex; flex-direction: column; }
.tasks-card__head { height: 66px; display: flex; align-items: center; }
.task-item { display: flex; align-items: center; gap: 14px; height: 72px; border-top: 1px solid var(--db-line); color: inherit; }
.task-item:hover { color: inherit; }
.task-item:hover .task-item__name { color: var(--db-orange); }
.task-item__icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.task-item__body { flex: 1 1 0; min-width: 0; }
.task-item__name { font-weight: 600; font-size: 17px; color: var(--db-navy); line-height: normal; transition: color .12s; }
.task-item__detail { font-size: 14px; color: var(--db-slate); margin-top: 5px; line-height: normal; }
.account-status { display: flex; align-items: center; gap: 7px; height: 54px; font-size: 13px; color: var(--db-slate); margin-top: auto; }

/* Documents + support */
.docs-card { padding: 24px; display: flex; flex-direction: column; gap: 20px; height: 100%; }
.docs-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-item { display: flex; align-items: center; gap: 10px; color: inherit; }
.doc-item:hover { color: inherit; }
.doc-item:hover .doc-item__title { color: var(--db-orange); }
.doc-item__body { flex: 1 1 0; min-width: 0; }
.doc-item__title { font-weight: 600; font-size: 15px; color: var(--db-navy); line-height: normal; transition: color .12s; }
.doc-item__meta { font-size: 12px; color: var(--db-slate); margin-top: 6px; line-height: normal; }
.docs-card__note { font-size: 13px; color: var(--db-slate); margin: 0; }

.support-card { border: 1px solid var(--db-line); border-radius: var(--db-radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.support-card__title { font-family: var(--font-condensed); font-weight: 600; font-size: 24px; color: var(--db-navy); margin: 0; }
.support-card__detail { font-size: 14px; line-height: 1.4; color: var(--db-slate); margin: 0; }
.support-card__phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; color: var(--db-navy); align-self: flex-start; }
.support-card__phone:hover { color: var(--db-orange); }
.support-card__hours { font-size: 12px; color: var(--db-slate); }
/* E-mail line: same size and weight as the phone number; wraps between the name and the address */
.support-modal__email { align-items: flex-start; }
.support-modal__email img { flex: 0 0 auto; margin-top: 6px; }
.support-email__address { white-space: nowrap; }
@media (max-width: 359.98px) { .support-modal__email { font-size: 16px; } }

.portal-footer { border-top: 1px solid var(--db-line); padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.portal-footer__copy { color: var(--db-slate); }
.portal-footer__links { display: flex; gap: 24px; }
.portal-footer__links a { color: var(--db-navy); }
.portal-footer__links a:hover { color: var(--db-orange); }

/* Fixed side columns on desktop (Figma: 372px) */
@media (min-width: 1200px) {
  .col-side { flex: 0 0 396px; max-width: 396px; }
  .col-main { flex: 1 1 0; min-width: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  :root { --db-gutter: 32px; }
  .landing-hero__row { display: flex; flex-direction: column; align-items: center; gap: 32px; }
  .portal-nav { overflow-x: auto; }
}
@media (max-width: 767.98px) {
  :root { --db-gutter: 16px; }
  .brand__divider, .brand__portal { display: none; }
  .login-card { padding: 24px; }
  .portal-intro__headline { font-size: 32px; }
  .warehouse-feature { height: 260px; }
  .support-link span, .account-divider, .account-toggle__text { display: none; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .daily-actions { align-items: flex-start; }
  .welcome__title { font-size: 36px; }
  .portal-footer { flex-direction: column; gap: 12px; }
}

/* Row spacing (Figma: 24px under welcome, 20px between metric cards, 28px between sections) */
.metrics-row { --bs-gutter-x: 20px; --bs-gutter-y: 20px; margin-top: calc(24px - var(--bs-gutter-y)); }
.section-row { margin-top: calc(28px - var(--bs-gutter-y)); }

/* Keep inputs white on focus (Bootstrap uses --bs-body-bg, which is the beige canvas here) */
.login-input:focus { background-color: #fff; }
.login-input.is-invalid,
.password-wrap .login-input.is-invalid { border-color: #dc3545; }

/* ==========================================================================
   OPEN ORDERS PAGE (same tokens as the Figma home page)
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--db-slate); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--db-line); }
.crumbs a { color: var(--db-slate); }
.crumbs a:hover { color: var(--db-orange); }
.crumbs [aria-current] { color: var(--db-navy); font-weight: 600; }
.page-orders .welcome__title { margin-top: 10px; }
.page-orders .daily-actions { flex-direction: row; align-items: center; }

.btn-db-outline {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--db-line); border-radius: var(--db-radius-sm); background: #fff;
  font-weight: 600; font-size: 15px; color: var(--db-navy);
}
.btn-db-outline:hover { border-color: var(--db-orange); color: var(--db-orange); background: #fff; }

/* Status filter chips */
.status-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--db-line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 14px; color: var(--db-navy); transition: border-color .12s, color .12s;
}
.status-chip:hover { border-color: var(--db-orange); color: var(--db-orange); }
.status-chip.active { background: var(--db-navy); border-color: var(--db-navy); color: #fff; }
.status-chip__count { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--db-surface-muted); color: var(--db-slate); font-size: 12px; text-align: center; }
.status-chip.active .status-chip__count { background: rgba(255,255,255,.16); color: #fff; }

.orders-card--full { margin-top: 20px; height: auto; }

/* Toolbar */
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px; }
.orders-toolbar__left, .orders-toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.orders-toolbar__label { font-size: 15px; color: var(--db-slate); }
.orders-toolbar__sep { width: 1px; height: 24px; background: var(--db-line); margin: 0 6px; }
.orders-toolbar__pipe { color: var(--db-line); }
.orders-toolbar__selected { font-size: 14px; font-weight: 600; color: var(--db-navy); }
.db-select {
  width: 76px; height: 40px; padding: 0 30px 0 12px;
  border: 1px solid var(--db-line); border-radius: var(--db-radius-sm);
  font-family: var(--font-semi); font-size: 15px; color: var(--db-navy); background-color: #fff;
}
.db-select:focus { border-color: var(--db-orange); box-shadow: 0 0 0 3px rgba(250,70,22,.2); }
.link-btn { border: 0; background: none; padding: 0; font-weight: 600; font-size: 15px; color: var(--db-orange); }
.link-btn:hover { color: var(--db-orange-dark); text-decoration: underline; }
.db-search { position: relative; width: 300px; max-width: 100%; }
.db-search .form-control {
  height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--db-line); border-radius: var(--db-radius-sm);
  font-family: var(--font-barlow); font-size: 14px; color: var(--db-navy); background-color: #fff;
}
.db-search .form-control::placeholder { color: var(--db-slate); }
.db-search .form-control:focus { background-color: #fff; }
.db-search img { position: absolute; right: 14px; top: 12px; pointer-events: none; }

/* Full orders table */
.orders-table--full th { padding: 0 10px; }
.orders-table--full td { padding: 0 10px; }
.orders-table--full th:first-child, .orders-table--full td:first-child { padding-left: 24px; width: 52px; }
.orders-table--full th:last-child, .orders-table--full td:last-child { padding-right: 24px; width: 140px; }
.orders-table th.sortable { cursor: pointer; user-select: none; }
.orders-table th.sortable img { display: inline-block; vertical-align: -2px; margin-left: 2px; opacity: .55; }
.orders-table th.sortable:hover, .orders-table th.sorted { color: var(--db-navy); }
.orders-table th.sorted img { opacity: 1; }
.orders-table th.sorted-desc img { transform: rotate(180deg); }
.orders-table--full tbody tr.order-row:hover { background: #fcfbf8; }
.orders-table--full tbody tr.is-selected { background: #fff7f3; }
.orders-table .order-link { font-weight: 600; font-size: 16px; color: var(--db-orange); }
.orders-table .order-link:hover { text-decoration: underline; }
.orders-table .js-toggle-label { cursor: pointer; }
.order-toggle { border: 0; background: none; padding: 0; margin-right: 6px; width: 16px; height: 16px; vertical-align: -2px; }
.order-toggle img { transition: transform .15s; transform: rotate(-90deg); }
.order-row.is-expanded .order-toggle img { transform: rotate(0); }
.customer-name { font-weight: 600; font-size: 15px; color: var(--db-navy); line-height: normal; }
.customer-id { font-size: 12px; color: var(--db-slate); margin-top: 4px; line-height: normal; }
.orders-table .cell-total { text-align: right; color: var(--db-navy); }
.db-check { width: 16px; height: 16px; margin: 0; border: 1px solid #b9c1c0; border-radius: var(--db-radius-sm); cursor: pointer; }
.db-check:checked, .db-check:indeterminate { background-color: var(--db-orange); border-color: var(--db-orange); }

.yn-badge { display: inline-block; min-width: 38px; padding: 4px 8px; border-radius: var(--db-radius-sm); font-weight: 500; font-size: 13px; line-height: normal; text-align: center; }
.yn-badge--yes { background: var(--db-success-bg); color: var(--db-success); }
.yn-badge--no { background: var(--db-surface-muted); color: var(--db-slate); box-shadow: inset 0 0 0 1px var(--db-line); }
.status-badge--open { background: #fdebe4; color: #b8350f; }
.status-badge--pending { background: var(--db-warning-bg); color: var(--db-warning); }
.status-badge--complete { background: #dfeee5; color: #1f5b3f; }

.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--db-line); border-radius: var(--db-radius-sm); background: #fff; padding: 0;
}
.icon-btn:hover { border-color: var(--db-orange); }
.icon-btn::after { display: none; }

/* Expanded line items */
.order-detail td { height: auto; padding: 0 24px 16px 76px !important; background: #fcfbf8; white-space: normal; cursor: default; }
.order-detail:hover { background: transparent; }
.line-items { width: 100%; border: 1px solid var(--db-line); border-radius: var(--db-radius); background: #fff; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.line-items th, .line-items td { height: 40px !important; padding: 0 14px !important; font-size: 14px; border-bottom: 1px solid var(--db-line); background: #fff !important; }
.line-items th { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--db-slate); background: var(--db-surface-muted) !important; }
.line-items tr:last-child td { border-bottom: 0; }
.line-items .num { text-align: right; }
.line-items .sku { font-weight: 600; color: var(--db-navy); }
/* Deliveries: expanded delivery (info line, boxes, shipped items) and tracking links */
.deliveries-table .order-detail > td { padding-left: 46px !important; padding-top: 4px !important; }
.delivery-info { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 4px 0 12px; font-size: 14px; color: var(--db-slate); }
.delivery-info b { font-weight: 600; color: var(--db-navy); margin-right: 4px; }
.delivery-info a, .tracking-link { color: var(--db-orange-dark); text-underline-offset: 2px; }
.tracking-link { font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-items--boxes { margin-bottom: 12px; }
.date-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 24px; }
.date-filter__label { font-weight: 600; font-size: 14px; color: var(--db-navy); margin-right: 4px; }
.date-filter .db-input { width: 170px; height: 40px; }
.date-filter__sep { font-size: 14px; color: var(--db-slate); }
.date-filter .btn { height: 40px; }
.date-filter__error { flex-basis: 100%; font-size: 13px; color: var(--db-danger, #b42318); }
.deliveries-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.deliveries-filters .date-filter, .deliveries-filters .status-filter { margin-top: 0; }
.deliveries-filters .status-filter { padding-left: 20px; border-left: 1px solid var(--db-line); }
@media (max-width: 1199.98px) {
  .deliveries-filters .status-filter { padding-left: 0; border-left: 0; }
}
@media (max-width: 575.98px) {
  .date-filter__label { flex-basis: 100%; }
  .date-filter .db-input { flex: 1 1 0; width: auto; min-width: 0; }
  .date-filter .btn { flex-basis: 100%; justify-content: center; text-align: center; }
}
.line-items--thumbs td { height: 52px !important; }
.line-items .col-thumb { width: 54px; padding-right: 0 !important; }
.cart-thumb.line-thumb { width: 40px; height: 40px; background: #fff; }

.orders-empty { padding: 40px 24px; text-align: center; color: var(--db-slate); font-size: 15px; border-bottom: 1px solid var(--db-line); }

/* Footer + pagination */
.orders-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 24px; }
.orders-footer__info { font-size: 14px; color: var(--db-slate); }
.db-pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.db-pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--db-line); border-radius: var(--db-radius-sm); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--db-navy);
}
.db-pagination button:hover:not(:disabled) { border-color: var(--db-orange); color: var(--db-orange); }
.db-pagination button.active { background: var(--db-orange); border-color: var(--db-orange); color: #fff; }
.db-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.db-pagination .ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: var(--db-slate); }

@media (max-width: 767.98px) {
  .page-orders .daily-actions { flex-wrap: wrap; }
  .orders-toolbar__sep { display: none; }
  .db-search { width: 100%; }
  .orders-toolbar__right { width: 100%; }
}

/* ==========================================================================
   ORDERING, CHECKOUT, PO SEARCH, DOCUMENTS (same Figma tokens)
   ========================================================================== */
.page-sub .welcome__title { margin-top: 10px; }
.page-sub .daily-actions { flex-direction: row; align-items: center; }
.page-section { margin-top: 24px; }

/* Card header used by every panel */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 0 24px; border-bottom: 1px solid var(--db-line); }
.panel-head__meta { font-size: 14px; color: var(--db-slate); }
.panel-body { padding: 24px; }

/* Form controls (Figma login input standard: 52px / 2px radius / Barlow 14) */
.db-label { display: block; font-weight: 600; font-size: 14px; color: var(--db-navy); margin-bottom: 8px; }
.db-label .req { color: var(--db-orange); margin-left: 2px; }
.db-label .opt { font-weight: 400; color: var(--db-slate); margin-left: 4px; }
.db-input, .db-field-select {
  height: 48px; border: 1px solid var(--db-line); border-radius: var(--db-radius-sm);
  padding: 0 14px; font-family: var(--font-barlow); font-size: 14px; color: var(--db-navy); background-color: #fff;
}
.db-field-select { padding-right: 36px; }
.db-input::placeholder { color: var(--db-slate); }
.db-input:focus, .db-field-select:focus, .db-textarea:focus { background-color: #fff; border-color: var(--db-orange); box-shadow: 0 0 0 3px rgba(250,70,22,.18); }
.db-input[readonly] { background: var(--db-surface-muted); color: var(--db-slate); }
.db-textarea { min-height: 120px; border: 1px solid var(--db-line); border-radius: var(--db-radius-sm); padding: 12px 14px; font-family: var(--font-barlow); font-size: 14px; color: var(--db-navy); }
.db-input.is-invalid, .db-field-select.is-invalid, .db-textarea.is-invalid { border-color: #b42318; background-image: none; padding-right: 14px; }
.db-field-select.is-invalid { padding-right: 36px; }
.db-help { font-size: 12px; color: var(--db-slate); margin-top: 6px; }
.invalid-feedback { font-family: var(--font-semi); font-size: 13px; color: #b42318; }
.form-grid { --bs-gutter-x: 24px; --bs-gutter-y: 20px; }

.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border: 1px solid #f3c4bd; border-radius: var(--db-radius); background: #fdf1ef; color: #8a1c12; font-size: 14px; margin-top: 24px; }
.form-alert img { margin-top: 2px; }

/* Add item bar */
.add-item { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 16px; align-items: end; }
.qty-stepper { display: flex; height: 48px; border: 1px solid var(--db-line); border-radius: var(--db-radius-sm); background: #fff; overflow: hidden; }
.qty-stepper button { width: 40px; border: 0; background: var(--db-surface-muted); display: flex; align-items: center; justify-content: center; }
.qty-stepper button:hover { background: #f1efe8; }
.qty-stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font-family: var(--font-barlow); font-size: 14px; color: var(--db-navy); }
.qty-stepper input:focus { outline: none; }
.qty-stepper:focus-within { border-color: var(--db-orange); box-shadow: 0 0 0 3px rgba(250,70,22,.18); }
.qty-stepper--sm { height: 36px; width: 112px; }
.qty-stepper--sm button { width: 32px; }
.btn-add { height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; }
.add-item__note { font-size: 13px; color: var(--db-slate); margin: 12px 0 0; }
.add-item__error { font-size: 13px; color: #b42318; margin: 8px 0 0; }

/* Cart table */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--db-surface-muted); border-bottom: 1px solid var(--db-line); height: 38px; padding: 0 10px; font-weight: 600; font-size: 11px; color: var(--db-slate); text-transform: uppercase; white-space: nowrap; }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--db-line); font-size: 15px; color: var(--db-slate); vertical-align: top; }
.cart-table th:first-child, .cart-table td:first-child { padding-left: 24px; }
.cart-table th:last-child, .cart-table td:last-child { padding-right: 24px; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table .ext { color: var(--db-navy); font-weight: 600; }
.cart-thumb { width: 64px; height: 64px; border: 1px solid var(--db-line); border-radius: var(--db-radius); background: var(--db-surface-muted); display: flex; align-items: center; justify-content: center; }
.cart-thumb img { max-width: 100%; max-height: 100%; }
.cart-sku { font-weight: 600; font-size: 16px; color: var(--db-navy); white-space: nowrap; }
.cart-desc { font-size: 14px; line-height: 1.45; color: var(--db-navy); max-width: 340px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail--in { color: var(--db-success); }
.avail--back { color: var(--db-warning); }
.cart-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; }
.cart-totals { display: flex; align-items: center; gap: 24px; }
.cart-totals__label { font-size: 14px; color: var(--db-slate); }
.cart-totals__value { font-family: var(--font-condensed); font-weight: 600; font-size: 28px; color: var(--db-navy); line-height: 1; }
.cart-disclaimer { padding: 14px 24px; border-top: 1px solid var(--db-line); font-size: 12px; color: var(--db-slate); background: var(--db-surface-muted); }
.empty-state { padding: 48px 24px; text-align: center; color: var(--db-slate); }
.empty-state img { margin: 0 auto 12px; }
.empty-state__title { font-family: var(--font-condensed); font-weight: 600; font-size: 22px; color: var(--db-navy); margin: 0; }
.empty-state p { margin: 6px 0 0; font-size: 14px; }

/* Checkout summary */
.summary-card { position: sticky; top: 24px; }
.summary-item { display: flex; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--db-line); }
.summary-item__body { flex: 1; min-width: 0; }
.summary-item__sku { font-weight: 600; font-size: 15px; color: var(--db-navy); }
.summary-item__desc { font-size: 13px; color: var(--db-slate); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.summary-item__qty { font-size: 13px; color: var(--db-slate); margin-top: 6px; }
.summary-item__price { font-weight: 600; font-size: 15px; color: var(--db-navy); white-space: nowrap; }
.summary-lines { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--db-line); }
.summary-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--db-slate); }
.summary-line strong { color: var(--db-navy); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 24px; }
.summary-total span { font-weight: 600; font-size: 16px; color: var(--db-navy); }
.summary-total strong { font-family: var(--font-condensed); font-weight: 600; font-size: 32px; color: var(--db-navy); line-height: 1; }
.summary-actions { padding: 0 24px 24px; }
.summary-actions .btn-db { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 16px; }

.success-modal .modal-content { border: 0; border-radius: var(--db-radius); font-family: var(--font-semi); }
.success-modal .modal-body { padding: 40px 32px 32px; text-align: center; }
.success-modal img { margin: 0 auto 16px; }
.success-modal h2 { font-family: var(--font-condensed); font-weight: 600; font-size: 32px; color: var(--db-navy); margin: 0; }
.success-modal p { color: var(--db-slate); font-size: 15px; margin: 8px 0 0; }
.success-modal .conf-number { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: var(--db-radius-sm); background: var(--db-surface-muted); font-weight: 600; color: var(--db-navy); }
.success-modal .modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* PO search */
.po-search { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.po-search__field { flex: 1 1 320px; max-width: 480px; }
.type-badge { display: inline-block; padding: 5px 8px; border-radius: var(--db-radius-sm); font-weight: 500; font-size: 13px; line-height: normal; }
.type-badge--invoice { background: #e8eef5; color: #2c4a66; }
.type-badge--so { background: #fdebe4; color: #b8350f; }

/* Documents */
.doc-grid { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
.doc-card { display: flex; gap: 16px; padding: 20px; height: 100%; transition: border-color .15s, box-shadow .15s; }
.doc-card:hover { border-color: var(--db-orange); box-shadow: 0 2px 10px rgba(24,45,64,.06); }
.doc-card__icon { width: 48px; height: 56px; flex-shrink: 0; border-radius: var(--db-radius); background: var(--db-surface-muted); border: 1px solid var(--db-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.doc-card__ext { font-family: var(--font-inter); font-weight: 600; font-size: 9px; letter-spacing: .04em; color: var(--db-slate); }
.doc-card__ext--pdf { color: #b42318; }
.doc-card__ext--xlsx { color: var(--db-success); }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__title { font-weight: 600; font-size: 17px; color: var(--db-navy); line-height: 1.3; display: block; }
.doc-card__title:hover { color: var(--db-orange); }
.doc-card__desc { font-size: 14px; color: var(--db-slate); margin: 4px 0 0; }
.doc-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--db-slate); }
.doc-card__meta strong { color: var(--db-navy); font-weight: 600; }
.doc-card__action { align-self: center; }

@media (max-width: 767.98px) {
  .add-item { grid-template-columns: 1fr 1fr; }
  .add-item__item { grid-column: 1 / -1; }
  .page-sub .daily-actions { flex-wrap: wrap; }
  .summary-card { position: static; }
}
.req { color: var(--db-orange); }
.btn.disabled { pointer-events: auto; cursor: not-allowed; }
.db-textarea, .db-textarea:focus { background-color: #fff; }
.success-modal .modal-content { background: #fff; }
.success-modal .conf-number { border: 1px solid var(--db-line); }

/* Keep the login card inside the viewport when the hero stacks */
@media (max-width: 1199.98px) {
  .landing-hero__login, .landing-hero__intro, .landing-hero__cta { width: 100%; display: flex; justify-content: center; }
}

/* ==========================================================================
   CART · PLACE ORDER · ORDER DETAILS
   ========================================================================== */
/* Checkout steps */
.checkout-steps { display: flex; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; flex-wrap: wrap; }
.checkout-steps__item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--db-slate); }
.checkout-steps__item + .checkout-steps__item::before { content: ""; width: 48px; height: 1px; background: var(--db-line); margin-right: 2px; }
.checkout-steps__num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--db-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.checkout-steps__item.current { color: var(--db-navy); }
.checkout-steps__item.current .checkout-steps__num { background: var(--db-orange); border-color: var(--db-orange); color: #fff; }
.checkout-steps__item.done { color: var(--db-success); }
.checkout-steps__item.done .checkout-steps__num { background: var(--db-success-bg); border-color: var(--db-success-bg); color: var(--db-success); }

/* Prices */
.price-net { font-weight: 600; font-size: 15px; color: var(--db-navy); white-space: nowrap; }
.price-list { font-size: 13px; color: var(--db-slate); white-space: nowrap; }
.price-net + .price-list { text-decoration: line-through; margin-top: 2px; }
.price-save { font-size: 12px; font-weight: 600; color: var(--db-success); margin-top: 2px; white-space: nowrap; }
.btn-sm-db { height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; }

/* Lookup result after quick add */
.lookup-result__added { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--db-success); background: var(--db-success-bg); padding: 2px 8px; border-radius: 999px; }
.page-pricing .panel-head .db-search { width: 280px; }

/* Cart page */
.cart-table--lines td { vertical-align: middle; }
.cart-table--lines .cart-desc { max-width: 420px; font-size: 13px; color: var(--db-slate); margin-top: 4px; }
.cart-col-thumb { width: 88px; }
/* Pricing & ordering: "Selected items" (the cart) under quick add */
.selected-items { border-top: 1px solid var(--db-line); }
.selected-items__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 16px 24px 12px; }
.selected-items__title { font-family: var(--font-condensed); font-weight: 600; font-size: 18px; color: var(--db-navy); margin: 0; }
.selected-items__subtotal { font-size: 14px; color: var(--db-slate); }
.selected-items__subtotal strong { color: var(--db-navy); font-size: 16px; }
.selected-items__empty { margin: 0; padding: 0 24px 20px; font-size: 14px; color: var(--db-slate); }
.selected-items__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 16px 24px; }
.cart-line--new td { background: var(--db-success-bg); }
.cart-quick-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--db-line); }
.cart-quick-add .db-input { height: 40px; width: 220px; }
.cart-quick-add .cart-quick-add__qty { width: 88px; }
.cart-quick-add .btn-db-outline { height: 40px; }


/* Toast */
.db-toast { width: 380px; border: 1px solid var(--db-line); border-radius: var(--db-radius); box-shadow: 0 8px 24px rgba(24,45,64,.14); background: #fff; font-family: var(--font-semi); }
.db-toast__body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; color: var(--db-slate); }
.db-toast__body strong { color: var(--db-navy); font-size: 15px; display: block; }
.db-toast__body img { width: 24px; height: 24px; }

/* Place order choices */
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--db-line); border-radius: var(--db-radius-sm); background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--db-orange); box-shadow: 0 0 0 1px var(--db-orange); }
.choice .db-check { margin-top: 3px; border-radius: 50%; flex-shrink: 0; }
.choice strong { display: block; font-size: 15px; color: var(--db-navy); }
.choice span span { display: block; font-size: 13px; color: var(--db-slate); margin-top: 2px; }
.form-check-label { font-size: 14px; color: var(--db-navy); }

/* Order details */
.placed-banner { display: flex; gap: 16px; align-items: center; padding: 20px 24px; margin: 24px 0; border: 1px solid #cfe3d6; border-radius: var(--db-radius); background: var(--db-success-bg); }
.placed-banner__title { font-family: var(--font-condensed); font-weight: 600; font-size: 24px; color: var(--db-navy); margin: 0; }
.placed-banner__text { font-size: 15px; color: var(--db-slate); margin: 4px 0 0; }
.status-badge--lg { font-size: 16px; padding: 6px 12px; font-family: var(--font-semi); }
.page-order .welcome__title { margin-top: 10px; }
.page-order .daily-actions { flex-direction: row; align-items: center; }

.order-progress-card { padding: 28px 24px 20px; }
.order-progress { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.order-progress__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.order-progress__step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--db-line); z-index: 0; }
.order-progress__step:first-child::before { display: none; }
.order-progress__step.done::before, .order-progress__step.current::before { background: var(--db-orange); }
.order-progress__dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--db-line); }
.order-progress__step.done .order-progress__dot { background: var(--db-orange); border-color: var(--db-orange); }
.order-progress__step.current .order-progress__dot { border-color: var(--db-orange); box-shadow: 0 0 0 4px rgba(250,70,22,.15); }
.order-progress__label { font-weight: 600; font-size: 15px; color: var(--db-slate); }
.order-progress__step.done .order-progress__label, .order-progress__step.current .order-progress__label { color: var(--db-navy); }
.order-progress__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--db-line); font-size: 14px; color: var(--db-slate); }
.order-progress__meta strong { color: var(--db-navy); font-weight: 600; }

.order-totals { margin-left: auto; width: 100%; max-width: 360px; padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.detail-list { margin: 0; padding: 8px 24px 16px; }
.detail-list__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--db-line); font-size: 14px; }
.detail-list__row:last-child { border-bottom: 0; }
.detail-list dt { font-weight: 400; color: var(--db-slate); }
.detail-list dd { margin: 0; font-weight: 600; color: var(--db-navy); text-align: right; word-break: break-word; }
.address-block { font-size: 15px; line-height: 1.6; color: var(--db-slate); }
.address-block strong { color: var(--db-navy); }

@media (max-width: 767.98px) {
  .choice-group { grid-template-columns: 1fr; }
  .order-progress__label { font-size: 12px; }
  .checkout-steps__item + .checkout-steps__item::before { width: 16px; }
  .page-order .daily-actions { flex-wrap: wrap; }
  .db-toast { width: calc(100vw - 32px); }
  .page-pricing .panel-head { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .page-pricing .panel-head .db-search { width: 100%; }
}
/* Cards on these pages size to their content (home page cards stretch to equal height) */
.page-cart .orders-card, .page-order .orders-card, .page-order .support-card, .page-pricing .orders-card { height: auto; }
.page-order .col-side > * + * { margin-top: 24px; }
.page-order .col-side > .page-section { margin-top: 24px; }

/* ==========================================================================
   Profile, Price List, Documents and Return request pages
   (these classes were used by the pages but had no styles)
   ========================================================================== */

/* Absolutely positioned screen-reader text inside a scrolling table must not widen the page on phones */
.table-responsive { position: relative; }
.col-check { width: 44px; }

.profile-alert { margin: 24px 0 0; }
.profile-required { color: var(--db-orange); }

.profile-card, .return-card { padding: 28px; margin-top: 24px; }
.profile-card__fields { margin-top: 4px; }
.profile-card__fields .login-field { margin-top: 0; }
.profile-card__section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--db-line); }
.profile-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--db-line); }
.profile-card__note { font-size: 14px; color: var(--db-slate); }

.pricelist-card { display: flex; align-items: flex-start; gap: 24px; padding: 28px; margin-top: 24px; }
.pricelist-card__icon { flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--db-line); border-radius: var(--db-radius); background: var(--db-surface-muted); }
.pricelist-card__body { flex: 1 1 0; min-width: 0; }
.pricelist-card__text { font-size: 15px; color: var(--db-slate); margin: 12px 0 0; }
.pricelist-card__body > .btn, .pricelist-card__body > form { margin-top: 20px; }
.pricelist-card__body > .btn { display: inline-flex; align-items: center; gap: 8px; }
.pricelist-card__btn-icon { filter: brightness(0) invert(1); }

/* Documents: the cards here are plain sections (not the clickable .doc-card tiles) */
.page-documents .doc-card { display: block; height: auto; padding: 28px; margin-top: 24px; }
.page-documents .doc-card:hover { border-color: var(--db-line); box-shadow: none; }
.page-documents .doc-extras { --bs-gutter-y: 24px; margin-top: 0; }
.page-documents .doc-extras .doc-card { margin-top: 0; }
.page-documents .doc-card__action { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; white-space: normal; text-align: left; }
.doc-list { list-style: none; margin: 16px 0 0; padding: 0; }
.doc-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--db-line); }
.doc-row:last-child { padding-bottom: 0; }
.doc-row__icon { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--db-line); border-radius: var(--db-radius); background: var(--db-surface-muted); }
.doc-row__info { flex: 1 1 0; min-width: 0; }
.doc-row__title { font-weight: 600; font-size: 16px; color: var(--db-navy); overflow-wrap: anywhere; }
.doc-row__title:hover { color: var(--db-orange); }
.doc-row__meta { font-size: 13px; color: var(--db-slate); margin-top: 2px; }
.doc-row .btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; }

/* Return request */
.return-card .section-title + .login-field { margin-top: 16px; }
.return-picker { display: flex; gap: 12px; }
.return-picker .form-select { flex: 1 1 0; min-width: 0; }
.return-picker .btn { flex-shrink: 0; }
.return-lines { margin-top: 20px; }
.return-lines td { white-space: nowrap; }
.return-lines__qty { width: 96px; }
.return-lines .js-qty { width: 80px; }
.return-lines input[name$="[serial]"] { min-width: 140px; }
.return-lines tfoot td { background: var(--db-surface-muted) !important; }
.return-lines #fee { width: 110px; margin-left: auto; }
.return-card .alert { margin-top: 24px; }
.return-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 767.98px) {
  .profile-card, .return-card, .pricelist-card, .page-documents .doc-card { padding: 20px; }
  .pricelist-card { flex-direction: column; gap: 16px; }
  .doc-row { flex-wrap: wrap; }
  .doc-row .btn { margin-left: 60px; }
  .return-picker { flex-direction: column; }
  .return-actions .btn { flex: 1 1 0; }
}
