:root {
  --paper: #f4f1ea;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --ink: #171c24;
  --muted: #667281;
  --line: rgba(20, 27, 37, 0.1);
  --brand: #5b87cb;
  --brand-strong: #3c68b2;
  --accent: #f39a34;
  --accent-strong: #db8120;
  --shadow: 0 24px 70px rgba(16, 22, 31, 0.16);
  --surface-max: 1240px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Aptos, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 241, 234, 0.96)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.66) 0,
      rgba(255, 255, 255, 0.66) 18px,
      rgba(229, 232, 237, 0.5) 18px,
      rgba(229, 232, 237, 0.5) 21px
    );
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 20px;
}

.app-shell {
  max-width: var(--surface-max);
  margin: 0 auto;
}

body.landing-mode .page-shell {
  padding: 0;
}

body.landing-mode .app-shell {
  max-width: none;
}

body.results-mode .page-shell {
  padding: 0;
}

body.results-mode .app-shell {
  max-width: none;
}

body.account-mode .page-shell {
  padding: 0;
}

body.login-mode .page-shell {
  padding: 0;
}

body.account-mode .app-shell {
  max-width: none;
}

body.login-mode .app-shell {
  max-width: none;
}

body.bulk-search-mode .page-shell {
  padding: 0;
}

body.bulk-search-mode .app-shell {
  max-width: none;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

body.landing-mode .topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  padding: 16px 30px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body.results-mode .topbar {
  padding: 16px 28px;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

body.login-mode .topbar,
body.account-mode .topbar,
body.bulk-search-mode .topbar,
body.cart-mode .topbar {
  padding: 16px 28px;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: block;
  width: 154px;
  height: auto;
}

.topnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.topnav[hidden] {
  display: none;
}

.topnav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f3540;
  font-size: 0.94rem;
  font-weight: 700;
}

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

.login-control {
  position: relative;
  display: flex;
  align-items: center;
}

.login-pill,
.search-button,
.primary-action,
.secondary-action,
.inventory-toggle,
.line-action,
.cart-tab,
.alt-toggle,
.history-item,
.alternate-chip,
.view-chip,
.file-row,
.cart-button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.login-pill,
.search-button,
.primary-action,
.submit-action {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(16, 24, 40, 0.16),
    0 14px 28px rgba(60, 104, 178, 0.22);
}

.login-pill:hover,
.search-button:hover,
.primary-action:hover,
.submit-action:hover {
  transform: translateY(-1px);
}

.login-pill {
  min-width: 118px;
  padding: 13px 22px;
}

.login-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  min-width: 148px;
  display: grid;
  gap: 4px;
  padding: 14px 8px 8px;
  border: 1px solid rgba(20, 27, 37, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px rgba(17, 24, 39, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.login-control.is-authenticated:hover .login-menu,
.login-control.is-authenticated:focus-within .login-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.login-menu-item {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #24303d;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.login-menu-item:hover,
.login-menu-item:focus-visible {
  background: rgba(60, 104, 178, 0.12);
  color: var(--brand-strong);
  outline: none;
}

.account-pill {
  min-width: 118px;
  padding: 12px 18px;
  border: 1px solid rgba(20, 27, 37, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #26303c;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(17, 24, 39, 0.08);
}

.cart-button {
  display: grid;
  gap: 4px;
  min-width: 130px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: #1f2530;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(18, 24, 35, 0.08),
    0 2px 6px rgba(17, 24, 39, 0.06);
}

.cart-label {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-count-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-count-group strong {
  color: var(--ink);
}

.hero-card {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(18, 22, 29, 0.52), rgba(18, 22, 29, 0.68)),
    linear-gradient(120deg, rgba(103, 72, 32, 0.45), rgba(19, 27, 37, 0.56)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 35%),
    repeating-linear-gradient(
      90deg,
      rgba(30, 35, 44, 0.92) 0,
      rgba(30, 35, 44, 0.92) 66px,
      rgba(160, 114, 42, 0.35) 66px,
      rgba(160, 114, 42, 0.35) 76px,
      rgba(44, 48, 56, 0.88) 76px,
      rgba(44, 48, 56, 0.88) 158px
    );
}

body.landing-mode .hero-card {
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(rgba(16, 20, 27, 0.22), rgba(16, 20, 27, 0.42)),
    url("/assets/warehouse-hero.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02) 38%);
}

.hero-content {
  --hero-content-width: min(620px, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 150px 40px 40px;
  text-align: center;
  color: white;
}

body.landing-mode .hero-content {
  gap: 18px;
  padding: 188px 32px 40px;
}

.eyebrow {
  margin: 0;
  color: #ffb463;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  width: var(--hero-content-width);
  max-width: var(--hero-content-width);
  font-size: clamp(3.1rem, 6vw, 5.5rem);
  line-height: 0.94;
  font-weight: 900;
}

body.landing-mode .hero-content h1 {
  width: var(--hero-content-width);
  max-width: var(--hero-content-width);
  font-size: clamp(2.15rem, 3.9vw, 3.6rem);
  line-height: 1.04;
}

.hero-search-form,
.toolbar-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  width: var(--hero-content-width);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.hero-search-form[hidden],
.toolbar-search-form[hidden] {
  display: none;
}

.hero-search-form input,
.toolbar-search-form input {
  height: 56px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #1d2430;
  font-size: 1rem;
  outline: none;
}

.search-button {
  min-width: 130px;
  padding: 0 20px;
}

.hero-footnote {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-style: italic;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px 24px;
  background: rgba(255, 255, 255, 0.72);
  color: #14202e;
  font-size: 0.82rem;
}

.site-footer-copy,
.site-footer-powered {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer-powered img {
  display: block;
  width: 152px;
  height: auto;
}

.site-footer-powered-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-footer-powered-link:hover,
.site-footer-powered-link:focus-visible {
  color: var(--brand-strong);
}

.site-footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #14202e;
  font-weight: 700;
}

.site-footer-link[hidden] {
  display: none;
}

body.landing-mode .site-footer {
  position: fixed;
  right: 20px;
  bottom: 0;
  left: 20px;
  z-index: 4;
  width: min(calc(100% - 40px), var(--surface-max));
  margin: 0 auto;
  padding: 16px 22px 18px;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(20, 27, 37, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #14202e;
  backdrop-filter: blur(12px);
}

body.landing-mode .site-footer .site-footer-link {
  color: #14202e;
}

body.results-mode .site-footer,
body.login-mode .site-footer,
body.account-mode .site-footer,
body.cart-mode .site-footer,
body.custom-page-mode .site-footer,
body.bulk-search-mode .site-footer {
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(20, 27, 37, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.privacy-modal,
.cookie-preferences-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 35, 0.55);
}

.privacy-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 56px rgba(16, 22, 31, 0.24);
  overflow: hidden;
}

.privacy-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.privacy-policy-content {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.privacy-policy-content h3 {
  margin: 6px 0 0;
  color: #1f2b39;
  font-size: 1rem;
}

.privacy-policy-content p,
.cookie-preferences-copy {
  margin: 0;
  color: #5d6876;
  line-height: 1.65;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 22px;
  left: 20px;
  z-index: 29;
  width: min(calc(100% - 40px), 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 35, 0.94);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(10, 16, 25, 0.28);
}

.cookie-banner-copy {
  display: grid;
  gap: 8px;
}

.cookie-banner-copy .panel-label,
.cookie-banner-copy h2,
.cookie-banner-copy p {
  margin: 0;
  color: inherit;
}

.cookie-banner-copy h2 {
  font-size: 1.05rem;
}

.cookie-banner-copy p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.cookie-banner-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-banner .secondary-action,
.cookie-banner .primary-action,
.cookie-preferences-actions .secondary-action,
.cookie-preferences-actions .primary-action {
  min-height: 40px;
}

.cookie-banner .secondary-action {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-banner .site-footer-link {
  color: #ffd08f;
}

.cookie-preferences-card {
  width: min(720px, 100%);
}

.cookie-preferences-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cookie-preference-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 18px;
  background: #f7f9fc;
}

.cookie-preference-row input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand-strong);
}

.cookie-preference-row strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-preference-row span {
  color: #5d6876;
  line-height: 1.45;
}

.results-view {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  min-height: 780px;
  padding: 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(249, 248, 245, 0.82);
  box-shadow: var(--shadow);
}

body.results-mode .results-view {
  height: calc(100vh - 90px);
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.results-sidebar {
  display: grid;
  grid-template-columns: 44px 0;
  width: 44px;
  height: 100%;
  min-height: 0;
  min-height: 100%;
  border-right: 1px solid #eceef2;
  background: #f6f7f9;
  transition: width 180ms ease, grid-template-columns 180ms ease;
  overflow: hidden;
}

.results-sidebar.is-expanded {
  grid-template-columns: minmax(0, 1fr);
  width: 240px;
}

.history-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 12px 0 16px;
  background: #f1f3f6;
  color: #858c98;
  min-height: 0;
  overflow-y: auto;
}

.results-sidebar.is-expanded .history-rail {
  display: none;
}

.history-rail-toggle,
.history-rail-entry {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d7dce5;
  border-radius: 999px;
  background: #ffffff;
  color: #7f8896;
  font-size: 0.78rem;
  line-height: 1;
}

.history-rail-toggle {
  margin-bottom: 8px;
  background: #eef1f5;
}

.history-panel,
.cart-panel,
.cart-lines-panel,
.submission-panel,
.empty-results,
.empty-cart-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(17, 24, 33, 0.08);
}

.history-panel {
  padding: 22px 18px;
}

body.results-mode .history-panel {
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 12px 14px 18px;
  border: 0;
  border-radius: 0;
  background: #f7f8fa;
  box-shadow: none;
  overflow: hidden;
}

.results-sidebar.is-expanded .history-panel {
  display: grid;
}

.history-header,
.results-summary,
.panel-heading,
.detail-files-header,
.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-header h2,
.results-summary h2,
.drawer-header h2,
.panel-heading h3 {
  margin: 0;
}

.history-panel-top {
  display: grid;
  gap: 10px;
}

.history-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-panel-heading h2 {
  margin: 0;
  color: #515866;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.history-collapse-button,
.history-clear-link {
  padding: 0;
  border: 0;
  background: transparent;
}

.history-collapse-button {
  color: #646d7c;
  font-size: 0.9rem;
  line-height: 1;
}

.history-divider {
  height: 1px;
  background: #d8dde6;
}

.history-clear-link {
  justify-self: start;
  color: #6f7784;
  font-size: 0.82rem;
  font-weight: 600;
}

.history-help,
.panel-heading p,
.detail-files-header p,
.results-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ghost-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
}

.history-list {
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 10px;
  margin-top: 18px;
}

body.results-mode .history-list {
  gap: 0;
  margin-top: 6px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
}

body.results-mode .history-row {
  min-height: 34px;
  border-bottom: 1px solid #e2e5eb;
}

.history-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: left;
}

body.results-mode .history-item {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.history-item:hover,
.history-rail-entry:hover,
.history-rail-toggle:hover,
.alternate-chip:hover,
.file-row:hover,
.cart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 20, 31, 0.08);
}

body.results-mode .history-item:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.68);
}

.history-item-delete {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8d94a1;
  font-size: 0.82rem;
  line-height: 1;
  align-self: center;
  justify-self: center;
}

body.results-mode .history-item-delete:hover {
  background: rgba(141, 148, 161, 0.12);
  color: #5e6673;
  transform: none;
  box-shadow: none;
}

.history-item-query {
  font-weight: 700;
}

body.results-mode .history-item-query {
  color: #28303c;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.history-item-query-group {
  display: block;
  gap: 0;
  min-width: 0;
}

.history-item-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d7dce5;
  border-radius: 999px;
  background: #ffffff;
  color: #7f8896;
  font-size: 0.68rem;
  line-height: 1;
  align-self: center;
}

body.results-mode .history-item {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

body.results-mode .history-item-delete {
  width: 16px;
  height: 16px;
  font-size: 0.74rem;
}

.history-empty {
  display: grid;
  gap: 8px;
  padding: 12px 2px 0;
  color: #8b93a0;
  background: transparent;
}

.history-empty p,
.history-empty span {
  margin: 0;
}

.results-panel {
  display: grid;
  gap: 16px;
}

body.results-mode .results-panel {
  gap: 14px;
  height: 100%;
  min-height: 0;
  align-content: start;
  padding: 18px 20px 18px;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
}

.results-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

body.results-mode .results-toolbar {
  grid-template-columns: minmax(0, 580px) auto;
  gap: 18px;
}

.mode-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

body.results-mode .mode-switch {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
}

.mode-pill {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

body.results-mode .mode-pill {
  padding: 0;
  background: transparent;
  color: #2c3340;
  font-size: 0.94rem;
}

.mode-pill.is-active {
  background: linear-gradient(135deg, rgba(91, 135, 203, 0.15), rgba(60, 104, 178, 0.2));
  color: var(--brand-strong);
}

body.results-mode .mode-pill.is-active {
  background: transparent;
  color: #2c3340;
}

.mode-indicator {
  display: inline-grid;
  align-items: center;
  width: 32px;
  height: 20px;
  padding: 2px;
  border: 1px solid #cfe6d5;
  cursor: pointer;
  border: 1px solid #cfe6d5;
  border-radius: 999px;
  background: #edf8ef;
  appearance: none;
  -webkit-appearance: none;
}

.mode-indicator-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #46c65d;
  transition: transform 160ms ease;
}

.mode-switch[data-active-mode="part"] .mode-indicator {
  justify-items: start;
}

.mode-switch[data-active-mode="description"] .mode-indicator {
  justify-items: end;
}

.mode-pill:focus-visible,
.mode-indicator:focus-visible {
  outline: 2px solid #8aaee6;
  outline-offset: 2px;
}

.toolbar-search-icon {
  color: #888e98;
  font-size: 0.98rem;
}

.toolbar-clear-button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #717784;
  font-size: 1rem;
  line-height: 1;
}

body.results-mode .toolbar-search-form {
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: min(100%, 580px);
  height: 48px;
  padding: 0 18px;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

body.results-mode .toolbar-search-form input {
  height: auto;
  padding: 0;
  font-size: 0.96rem;
}

.status-banner {
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}

.status-info {
  background: rgba(91, 135, 203, 0.12);
  color: var(--brand-strong);
}

.status-success {
  background: rgba(71, 160, 107, 0.14);
  color: #1f7148;
}

.status-error {
  background: rgba(191, 63, 63, 0.12);
  color: #9f2a2a;
}

body.results-mode .status-info,
body.results-mode .status-success {
  display: none;
}

body.results-mode .status-error {
  padding: 12px 14px;
  border: 1px solid #efc5c5;
  background: #fff4f4;
  color: #aa3f3f;
}

body.results-mode .results-summary {
  display: none;
}

.results-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.results-column-header {
  display: none;
}

body.results-mode .results-column-header {
  display: grid;
  grid-template-columns: 58px minmax(280px, 1.9fr) 160px minmax(144px, 1.15fr) minmax(78px, 0.5fr) minmax(96px, 0.7fr) 148px;
  align-items: end;
  min-height: 44px;
  padding: 0 18px 8px 0;
  position: relative;
  top: 0;
  margin-bottom: 0;
  z-index: 3;
}

.results-column-header-rfq {
  display: flex;
  width: 58px;
  align-items: center;
  justify-content: center;
  color: #4e535c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  justify-self: start;
}

body.results-mode .inventory-toggle.results-column-header-cart {
  grid-column: 7 / 8;
  display: inline-flex;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
  justify-self: end;
  align-self: end;
  position: relative;
  top: 0;
  z-index: 4;
}

body.results-mode .results-column-header-cart span {
  width: 100%;
  text-align: center;
}

.result-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(17, 24, 33, 0.08);
}

body.results-mode .result-card {
  position: relative;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

body.results-mode .result-card.is-alternates-open {
  z-index: 12;
}

.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

body.results-mode .result-summary {
  grid-template-columns: 58px minmax(280px, 1.9fr) 160px minmax(144px, 1.15fr) minmax(78px, 0.5fr) minmax(96px, 0.7fr) 148px;
  gap: 0;
  align-items: stretch;
  min-height: 64px;
  position: relative;
}

body.results-mode .result-summary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 58px;
  border-radius: 20px;
  background: #f7f7f7;
  z-index: 0;
}

body.results-mode .results-list .result-card:nth-child(even) .result-summary::before {
  background: #fcfcfc;
}

body.results-mode .result-summary > * {
  position: relative;
  z-index: 1;
}

.result-rfq-column {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  padding: 0 6px;
}

.result-rfq-label {
  color: #838994;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-rfq-box {
  width: 18px;
  height: 18px;
  border: 2px solid #9aa0ab;
  border-radius: 3px;
  background: #ffffff;
}

.result-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.result-title-row h3 {
  margin: 0;
  color: #2f63b5;
  font-size: 1.28rem;
}

.result-title-row h3 span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

body.results-mode .result-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
}

body.results-mode .result-title-row h3 {
  color: #5982ca;
  width: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.results-mode .result-title-row h3 span {
  color: #5982ca;
  font-size: 1.06rem;
  font-weight: 700;
}

.result-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(243, 154, 52, 0.14);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

body.results-mode .result-pill {
  display: none;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body.results-mode .result-meta-grid {
  display: contents;
}

.result-meta-grid span,
.detail-field span,
.routing-card span,
.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.result-meta-grid strong,
.detail-field strong,
.routing-card strong,
.summary-grid strong {
  font-size: 0.96rem;
}

body.results-mode .result-meta-cell {
  display: grid;
  align-content: center;
  justify-items: start;
  row-gap: 4px;
  position: relative;
  z-index: 1;
  padding: 0 14px 0 18px;
  border-left: 0;
  text-align: left;
}

body.results-mode .result-meta-cell:first-child {
  border-left: 1px solid #e4e5e8;
}

body.results-mode .result-meta-cell span {
  display: block;
  width: 100%;
  margin: 0;
  color: #5d6470;
  font-size: 0.84rem;
  font-weight: 700;
}

body.results-mode .result-meta-cell strong {
  display: block;
  width: 100%;
  color: #292d34;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.results-mode .result-actions {
  --results-control-height: 30px;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  justify-self: start;
  width: max-content;
  padding: 0 14px 0 0;
  overflow: visible;
  z-index: 4;
}

.result-cta {
  display: grid;
  align-items: center;
  justify-content: end;
  padding: 0 18px 0 10px;
}

.alt-toggle,
.inventory-toggle,
.secondary-action,
.line-action.secondary {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: #243041;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(18, 24, 35, 0.08),
    0 2px 6px rgba(17, 24, 39, 0.06);
}

.alt-toggle,
.inventory-toggle {
  min-width: 132px;
  padding: 12px 16px;
}

body.results-mode .alt-toggle,
body.results-mode .inventory-toggle {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  height: var(--results-control-height);
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1;
}

body.results-mode .inventory-toggle {
  height: 36px;
  padding: 0 12px;
}

body.results-mode .alt-toggle {
  border-color: #ebedf1;
  background: #f2f3f6;
  color: #4b4f57;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(18, 24, 35, 0.06),
    0 2px 4px rgba(17, 24, 39, 0.04);
}

.alt-toggle-icon {
  color: #616671;
  font-size: 0.72rem;
}

.inventory-toggle {
  background: linear-gradient(135deg, #ffab49, #f28f21);
  border-color: transparent;
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(122, 57, 0, 0.18),
    0 3px 8px rgba(179, 102, 11, 0.14);
}

.inventory-toggle.rfq-toggle,
.line-action-muted {
  background: #2e3238;
  color: white;
}

body.results-mode .inventory-toggle.rfq-toggle {
  justify-content: center;
  gap: 0;
}

body.results-mode .inventory-toggle.rfq-toggle .toggle-caret {
  display: none;
}

body.results-mode .inventory-toggle.rfq-toggle span:first-child {
  width: 100%;
  text-align: center;
}

body.results-mode .inventory-toggle.is-active {
  filter: saturate(0.95);
}

body.results-mode .inventory-toggle.rfq-toggle:disabled {
  background: #2e3238;
  border-color: transparent;
  color: white;
  opacity: 1;
  cursor: default;
  filter: none;
}

.toggle-caret {
  color: #626872;
  font-size: 0.52rem;
}

.alternate-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.results-mode .alternate-panel {
  position: absolute;
  top: calc(50% + (var(--results-control-height) / 2));
  right: 14px;
  z-index: 18;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100vw - 56px));
  margin: 0;
  padding: 8px;
  border: 1px solid #d8dfea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(19, 24, 35, 0.16);
}

.alternate-chip {
  padding: 10px 12px;
  border: 1px solid rgba(91, 135, 203, 0.18);
  border-radius: 999px;
  background: rgba(91, 135, 203, 0.08);
  color: var(--brand-strong);
  font-weight: 700;
}

body.results-mode .alternate-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: #f6f8fb;
  color: #2f63b5;
  font-size: 0.84rem;
  text-align: left;
}

body.results-mode .alternate-chip:hover {
  background: #eef4ff;
}

.alternate-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.alternate-part-number {
  color: #2f63b5;
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.alternate-description {
  color: #59606b;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alternate-search-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #f28f21;
  flex: 0 0 auto;
}

.alternate-search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stockline-panel {
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

body.results-mode .stockline-panel {
  margin: 10px 14px 16px 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stockline-table {
  min-width: 1000px;
  width: max-content;
}

.stockline-header,
.stockline-row {
  display: grid;
  grid-template-columns: 36px 42px 54px 40px 36px 156px 78px 96px 84px 86px 118px 58px 34px;
  gap: 8px;
  justify-content: start;
  align-items: center;
  padding: 12px 14px;
}

body.results-mode .stockline-header,
body.results-mode .stockline-row {
  grid-template-columns: 34px 40px 50px 38px 34px 160px 78px 96px 86px 92px 118px 58px 34px;
  padding: 10px 16px;
}

.stockline-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(245, 247, 250, 0.98);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

body.results-mode .stockline-header {
  position: static;
  margin: 0 0 4px;
  border-radius: 12px;
  background: #f2f4f7;
  color: #67707d;
  font-size: 0.74rem;
  font-weight: 700;
}

.stockline-row + .stockline-row {
  border-top: 1px dashed #dde2ea;
}

body.results-mode .stockline-row {
  min-height: 44px;
  margin-bottom: 0;
  border-radius: 0;
  background: transparent;
}

body.results-mode .stockline-row + .stockline-row {
  border-top: 1px dashed #dde2ea;
}

.view-chip,
.line-action,
.secondary-action {
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
}

.view-chip {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #88a8df;
}

body.results-mode .view-chip {
  width: 24px;
  height: 24px;
  padding: 0;
}

.view-chip svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.stockline-check {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid #c8cfda;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stockline-check span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: transparent;
}

.stockline-check.is-selected span {
  background: #f5a138;
}

.stockline-alt {
  font-weight: 700;
}

.stockline-price-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 9px;
  background: #f0f2f5;
  color: #2f3641;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.stockline-price-pill.is-login-prompt {
  min-width: 108px;
  font-size: 0.7rem;
}

.qty-input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.line-actions {
  display: flex;
  gap: 8px;
}

body.results-mode .line-actions {
  flex-wrap: wrap;
}

.stockline-qty-input {
  width: 56px;
  height: 28px;
  padding: 4px 8px;
  text-align: center;
  border-radius: 8px;
}

body.results-mode .stockline-qty-input {
  width: 56px;
  height: 28px;
  padding: 4px 8px;
}

body.results-mode .stockline-row > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.74rem;
  color: #364152;
}

.stockline-cell-left {
  justify-self: start;
  text-align: left;
  width: 100%;
}

body.results-mode .stockline-row > .stockline-price-pill {
  overflow: visible;
}

.stockline-footer {
  min-width: 1000px;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 6px;
}

body.results-mode .stockline-footer {
  padding: 16px 4px 4px;
}

.stockline-footer-copy {
  color: #5f6976;
  font-size: 0.88rem;
  font-weight: 600;
}

.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.inventory-page-control,
.inventory-page-dot {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid #dde2ea;
  background: white;
  color: #2d3440;
  font-weight: 600;
}

.inventory-page-control {
  padding: 0 18px;
}

.inventory-page-dot {
  min-width: 42px;
  padding: 0 12px;
}

.inventory-page-dot.is-active {
  border-color: #f5a138;
  background: #f5a138;
  color: white;
}

.inventory-page-control.is-disabled,
.stockline-check:disabled,
.stockline-check.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.line-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
}

.line-action.secondary,
.secondary-action {
  background: white;
  color: #243041;
}

.line-action:disabled,
.alt-toggle:disabled,
.secondary-action:disabled,
.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
  box-shadow: none;
}

.empty-results,
.empty-cart-panel {
  display: grid;
  gap: 10px;
  padding: 30px;
}

.empty-results h3,
.empty-cart-panel h3,
.submission-panel h3 {
  margin: 0;
}

.empty-results p,
.empty-cart-panel p,
.submission-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.results-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px 0;
  color: #60656f;
  font-size: 0.82rem;
}

.results-footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.results-page-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.results-page-size-label {
  font-weight: 600;
  color: #49505a;
}

.results-page-size-options {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.results-page-size-option {
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #ffffff;
  color: #3c424c;
  font: inherit;
}

.results-page-size-option.is-active {
  border-color: #ff9f38;
  background: #ff9f38;
  color: #ffffff;
}

.results-pagination {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.results-page-control,
.results-page-dot {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #dde2ea;
  border-radius: 12px;
  background: #ffffff;
  color: #3c424c;
}

.results-page-dot.is-active {
  border-color: #ff9f38;
  background: #ff9f38;
  color: #ffffff;
}

.results-page-control.is-disabled,
.results-page-dot.is-disabled {
  opacity: 0.5;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(530px, 100vw);
  height: 100vh;
  padding: 24px 22px;
  background: rgba(249, 248, 245, 0.98);
  box-shadow: -16px 0 40px rgba(18, 24, 35, 0.18);
  backdrop-filter: blur(12px);
}

.cart-drawer.is-summary-mode {
  top: 88px;
  right: 20px;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(520px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100vh - 112px);
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(18, 24, 35, 0.22);
}

.cart-drawer.is-summary-mode .drawer-header h2 {
  font-size: 2rem;
  font-weight: 800;
}

.detail-drawer {
  width: min(352px, 100vw);
  padding: 0;
  background: #ffffff;
  box-shadow: -20px 0 42px rgba(18, 24, 35, 0.24);
  backdrop-filter: none;
}

.drawer-body {
  overflow: auto;
  padding-right: 4px;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #2a3040;
  font-size: 1.5rem;
  line-height: 1;
}

.detail-drawer .panel-label,
.file-modal .panel-label,
.detail-files-header p {
  display: none;
}

.detail-drawer .drawer-header {
  align-items: center;
  padding: 18px 18px 10px;
  border-bottom: 1px solid #eef1f5;
}

.detail-drawer .drawer-header h2 {
  color: #4e7fd0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.detail-drawer .drawer-body {
  padding: 14px 18px 18px;
}

.detail-drawer .drawer-close,
.file-modal .drawer-close {
  width: 28px;
  height: 28px;
  border-color: #d7dce4;
  color: #6a727d;
  font-size: 1.25rem;
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.detail-image-button {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.detail-image-button img {
  width: 96px;
  height: 96px;
  display: block;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(18, 24, 35, 0.12);
}

.detail-image-button span {
  color: #6d7480;
  font-size: 0.72rem;
  font-weight: 600;
}

.detail-image-button--banner {
  width: 100%;
  justify-items: stretch;
}

.detail-image-button--banner img {
  width: 100%;
  height: 168px;
  border-radius: 18px;
  object-position: center;
}

.detail-image-button--banner span {
  padding-left: 4px;
}

.detail-record-card {
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.detail-record-card.is-no-image {
  margin-top: 2px;
}

.detail-data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.detail-data-row + .detail-data-row {
  border-top: 1px solid #e8ebf0;
}

.detail-data-label {
  color: #7b818d;
  font-size: 0.72rem;
}

.detail-data-value {
  color: #343b46;
  font-size: 0.73rem;
  font-weight: 700;
  text-align: right;
}

.detail-data-value.is-accent {
  color: #f28f21;
}

.detail-data-value.is-muted {
  color: #707785;
}

.detail-quantity-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-qty-input {
  width: 62px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  background: #ffffff;
  color: #343b46;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.detail-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e8ebf0;
  border-bottom: 1px solid #e8ebf0;
}

.detail-metric {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.detail-metric + .detail-metric {
  border-left: 1px solid #e8ebf0;
}

.detail-metric span {
  color: #7b818d;
  font-size: 0.69rem;
}

.detail-metric strong {
  color: #343b46;
  font-size: 0.76rem;
}

.detail-files-panel {
  margin-top: 18px;
}

.detail-files-header h3 {
  margin: 0 0 10px;
  color: #434b57;
  font-size: 0.88rem;
}

.detail-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: #f7f8fb;
  text-align: left;
}

.detail-file-row:hover {
  background: #f1f4fa;
}

.detail-file-row.is-active {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(91, 135, 203, 0.22);
}

.detail-file-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.detail-file-main strong {
  color: #3c424d;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-file-icon,
.detail-file-actions span,
.file-preview-toolbar span,
.file-preview-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f7886;
}

.detail-file-icon {
  width: 22px;
  height: 22px;
  color: #5f84c6;
  flex: 0 0 auto;
}

.detail-file-icon svg,
.detail-file-actions svg,
.file-preview-toolbar svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.detail-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-file-action.is-passive {
  pointer-events: none;
}

.file-empty {
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed #d7dde7;
  border-radius: 12px;
  color: var(--muted);
  background: #fafbfc;
}

.drawer-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
}

.secondary-action,
.primary-action {
  padding: 14px 16px;
}

.detail-drawer .drawer-footer {
  gap: 0;
  padding: 0;
  margin-top: auto;
}

.detail-drawer .secondary-action,
.detail-drawer .primary-action {
  height: 58px;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-drawer .secondary-action {
  background: #5d84c4;
  color: #ffffff;
}

.detail-drawer .primary-action {
  background: #f59c33;
  color: #ffffff;
}

.cart-tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.cart-tab-row.is-single {
  grid-template-columns: 1fr;
}

.cart-page-view {
  min-height: 780px;
  padding: 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(249, 248, 245, 0.82);
  box-shadow: var(--shadow);
}

body.cart-mode .page-shell {
  padding: 0;
}

body.cart-mode .app-shell {
  max-width: none;
}

body.cart-mode .topbar {
  padding: 16px 28px;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

body.cart-mode .cart-page-view {
  min-height: calc(100vh - 90px);
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.cart-page-surface {
  display: grid;
  gap: 18px;
  height: 100%;
  min-height: 0;
  align-content: start;
  padding: 24px 28px 28px;
  overflow-y: auto;
}

.login-page-view {
  min-height: calc(100vh - 90px);
  background:
    radial-gradient(circle at top left, rgba(91, 135, 203, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(243, 154, 52, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.98), rgba(231, 236, 242, 0.98));
}

.login-page-surface {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 28px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 22px;
  align-items: stretch;
}

.login-welcome-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  padding: 32px;
  border-radius: 28px;
  color: #f5f7fa;
  background:
    linear-gradient(135deg, rgba(10, 23, 37, 0.94), rgba(19, 48, 71, 0.82)),
    radial-gradient(circle at top right, rgba(244, 189, 81, 0.22), transparent 28%),
    url("/assets/warehouse-hero.png") center center / cover no-repeat;
  box-shadow: 0 26px 48px rgba(10, 23, 37, 0.22);
}

.login-welcome-copy {
  display: grid;
  gap: 12px;
  text-align: center;
}

.login-welcome-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.02;
  white-space: nowrap;
}

.login-welcome-card .panel-label {
  color: rgba(236, 242, 247, 0.72);
}

.login-welcome-copy p:not(.panel-label),
.login-welcome-footer p {
  margin: 0;
  color: rgba(236, 242, 247, 0.86);
  line-height: 1.65;
}

.login-welcome-message {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
}

.login-welcome-message strong {
  color: rgba(244, 189, 81, 0.98);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-welcome-message h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.08;
}

.login-welcome-message p {
  margin: 0;
  color: rgba(236, 242, 247, 0.82);
  line-height: 1.6;
}

.login-welcome-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-highlight-pill {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.login-highlight-pill strong {
  font-size: 1rem;
}

.login-highlight-pill span {
  color: rgba(236, 242, 247, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
}

.login-welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}

.login-welcome-footer .secondary-action {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.login-form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 28px;
}

.login-form-header {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.login-form-header h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
}

.login-form-header p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-status-banner {
  margin-top: -4px;
}

.login-form-grid {
  display: grid;
  gap: 16px;
}

.login-form-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.login-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334050;
  font-weight: 600;
}

.login-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-strong);
}

.login-submit-button {
  width: 100%;
  min-height: 50px;
}

.login-option-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.9), rgba(255, 255, 255, 0.98));
}

.login-option-card.is-collapsed {
  margin-top: 0;
}

.login-option-card h3,
.login-option-card p {
  margin: 0;
}

.login-option-card p:last-of-type {
  color: var(--muted);
  line-height: 1.55;
}

.login-option-card .secondary-action {
  justify-self: start;
}

.login-request-panel {
  display: grid;
  gap: 12px;
}

.login-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.field.field-compact {
  gap: 6px;
}

.field.field-compact.is-full {
  grid-column: 1 / -1;
}

.field.field-compact span {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.field.field-compact input {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.cart-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.cart-page-header h1 {
  margin: 0;
  color: #2a313b;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
}

.cart-page-header h1 span {
  color: #848b97;
  font-size: 0.7em;
  font-weight: 700;
}

.cart-page-header p {
  margin: 8px 0 0;
  color: #697382;
  font-size: 0.95rem;
}

.cart-page-tab-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-bottom: 4px;
}

.cart-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6c7480;
  font-weight: 700;
}

.cart-page-tab-count {
  color: #8b93a0;
  font-size: 0.88em;
  font-weight: 700;
}

.cart-page-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.cart-page-tab.is-active .cart-page-tab-count {
  color: inherit;
}

.cart-page-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.cart-page-card,
.cart-page-empty {
  padding: 18px;
  border: 1px solid rgba(20, 27, 37, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 33, 0.06);
}

.cart-page-card .panel-heading,
.cart-page-empty {
  align-items: start;
}

.cart-page-card .panel-heading h3,
.cart-page-empty h2 {
  margin: 0;
  color: #2c3440;
  font-size: 0.98rem;
}

.cart-page-card .panel-heading p,
.cart-page-empty p {
  margin: 6px 0 0;
  color: #76808f;
  font-size: 0.88rem;
}

.cart-page-summary-card {
  display: grid;
  gap: 14px;
}

.cart-page-summary-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.cart-page-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: #444c58;
  font-size: 0.9rem;
}

.cart-page-summary-list > div:last-child {
  border-bottom: 0;
}

.cart-page-summary-list strong {
  color: #202936;
}

.cart-page-summary-total {
  background: #2f333a;
  color: #ffffff;
}

.cart-page-summary-total span,
.cart-page-summary-total strong {
  color: #ffffff;
}

.cart-page-payment-copy,
.cart-page-footer-copy {
  display: grid;
  gap: 4px;
  color: #667281;
  font-size: 0.88rem;
}

.cart-page-payment-copy strong,
.cart-page-footer-copy strong {
  color: #27313d;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-page-submit {
  width: 100%;
  padding: 14px 18px;
}

.cart-page-order-card {
  display: grid;
  gap: 14px;
}

.cart-page-table {
  display: grid;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  overflow: hidden;
}

.cart-page-table-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px dashed #e6e9ef;
}

.cart-page-table-row:last-child {
  border-bottom: 0;
}

.cart-page-table.is-rfq .cart-page-table-row {
  grid-template-columns: 40px minmax(120px, 1fr) minmax(180px, 1.55fr) 56px 64px 84px minmax(112px, 1fr) minmax(96px, 0.9fr) minmax(96px, 0.9fr) minmax(96px, 0.9fr) 84px;
}

.cart-page-table.is-buy .cart-page-table-row {
  grid-template-columns: 40px minmax(120px, 1fr) minmax(180px, 1.45fr) 56px 64px 84px minmax(112px, 1fr) 88px minmax(96px, 0.9fr) minmax(96px, 0.9fr) minmax(96px, 0.9fr) 96px 84px;
}

.cart-page-table-row.is-header {
  min-height: 42px;
  background: #f8f9fb;
  border-bottom: 1px solid #edf0f4;
}

.cart-page-table-row:not(.is-header) {
  min-height: 56px;
}

.cart-page-table-row.is-note-editor {
  min-height: auto;
  align-items: stretch;
  padding-top: 10px;
  padding-bottom: 14px;
  background: #fcfdff;
}

.cart-page-table-row.is-header span {
  color: #818896;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-page-table-row strong,
.cart-page-table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #353d49;
  font-size: 0.84rem;
}

.cart-page-remove {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0;
  border: 1px solid #efc6c1;
  border-radius: 999px;
  background: #fff6f5;
  color: #c65a54;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-page-remove:hover {
  background: #ffe9e6;
}

.cart-note-button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  background: #ffffff;
  color: #6c7583;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cart-note-button:hover {
  border-color: #bfc9d8;
  background: #f8fbff;
}

.cart-note-button.has-note {
  border-color: #79d9cf;
  background: #e8faf6;
  color: #1d7f73;
}

.cart-note-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.cart-page-qty {
  display: inline-flex;
  justify-self: start;
}

.cart-page-qty input {
  width: 52px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  background: #ffffff;
  color: #303744;
  font-weight: 700;
  text-align: center;
}

.cart-page-inline-select {
  display: inline-flex;
  min-width: 0;
}

.cart-page-inline-select select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  background: #ffffff;
  color: #303744;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-page-order-note {
  margin: 18px 0 16px;
}

.cart-page-order-note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.cart-page-note-editor {
  display: grid;
  gap: 12px;
}

.cart-page-note-field {
  margin: 0;
}

.cart-page-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.cart-page-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 2px 0;
  color: #60656f;
  font-size: 0.82rem;
}

.cart-page-table-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.cart-page-table-copy {
  color: #60656f;
}

.cart-page-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.cart-page-footer-actions.is-actions-only {
  justify-content: flex-end;
}

.cart-page-footer-actions .primary-action {
  width: min(220px, 100%);
}

.cart-page-empty {
  justify-items: start;
  gap: 14px;
}

.cart-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  font-weight: 800;
  color: #263140;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(18, 24, 35, 0.07),
    0 2px 6px rgba(17, 24, 39, 0.05);
}

.cart-tab.is-hidden {
  display: none;
}

.cart-tab.is-active {
  background: linear-gradient(135deg, rgba(91, 135, 203, 0.12), rgba(60, 104, 178, 0.18));
  border-color: rgba(91, 135, 203, 0.25);
  color: var(--brand-strong);
}

.cart-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cart-summary-shell {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
  padding: 2px 2px 8px;
}

.cart-summary-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cart-summary-overview > div,
.cart-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.cart-summary-overview span,
.cart-summary-kicker,
.cart-summary-meta span {
  display: block;
  color: #727987;
  font-size: 0.76rem;
  font-weight: 700;
}

.cart-summary-overview strong {
  display: block;
  margin-top: 6px;
  color: #1f2835;
  font-size: 1rem;
}

.cart-summary-sections {
  display: grid;
  gap: 12px;
}

.cart-summary-card {
  display: grid;
  gap: 12px;
}

.cart-summary-card-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cart-summary-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-card-top h3 {
  margin: 6px 0 0;
  color: #1f2835;
  font-size: 1rem;
}

.cart-summary-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3fb;
  color: #36538a;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-summary-copy {
  margin: 0;
  color: #6f7784;
  font-size: 0.84rem;
  line-height: 1.45;
}

.cart-summary-list {
  display: grid;
  gap: 10px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}

.cart-summary-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.cart-summary-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-summary-item strong {
  color: #202936;
  font-size: 0.9rem;
}

.cart-summary-item span,
.cart-summary-item small {
  color: #707785;
}

.cart-summary-item small {
  line-height: 1.45;
}

.cart-summary-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
  flex: 0 0 auto;
}

.cart-qty-editor {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.cart-qty-editor input {
  width: 68px;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  background: #ffffff;
  color: #303744;
  font-weight: 700;
  text-align: center;
}

.cart-summary-meta strong {
  color: #202936;
  font-size: 0.86rem;
}

.cart-summary-empty {
  padding: 14px 0 2px;
  color: #7c8390;
  font-size: 0.84rem;
}

.cart-summary-actions {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.cart-summary-actions .primary-action {
  width: min(230px, 100%);
}

.cart-panel,
.cart-lines-panel,
.submission-panel {
  padding: 18px;
}

.field-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.field input,
.field select {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.routing-card,
.summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.routing-card > div,
.summary-grid > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.summary-total {
  background: #2f333a;
  color: white;
}

.summary-total span {
  color: rgba(255, 255, 255, 0.76);
}

.submit-action {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
}

.cart-lines-panel {
  margin-top: 14px;
}

.cart-line-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.cart-line-copy {
  display: grid;
  gap: 5px;
}

.cart-line-copy span,
.cart-line-copy small {
  color: var(--muted);
}

.cart-line-metrics {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.cart-line-metrics .cart-qty-editor {
  justify-items: end;
}

.danger-link {
  color: #b03a3a;
}

.integration-callout {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(91, 135, 203, 0.32);
  border-radius: 16px;
  background: rgba(91, 135, 203, 0.06);
  color: #2d3e57;
}

.submission-panel {
  margin-top: 14px;
}

.submission-panel code {
  display: block;
  margin-top: 14px;
  padding: 12px;
  overflow: auto;
  border-radius: 14px;
  background: #18202a;
  color: #dbe6f5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(19, 25, 35, 0.45);
  backdrop-filter: blur(3px);
}

.file-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.file-modal-card {
  width: min(610px, 100%);
  max-height: calc(100vh - 40px);
  padding: 18px;
  overflow: auto;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(18, 24, 35, 0.24);
}

.detail-image-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-image-card {
  width: min(680px, 100%);
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(18, 24, 35, 0.24);
}

.job-task-note-modal,
.job-task-approval-modal {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 24px;
}

.job-task-note-card,
.job-task-approval-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  padding: 18px;
  overflow: auto;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(18, 24, 35, 0.24);
}

.job-task-note-body,
.job-task-approval-body {
  margin-top: 14px;
}

.job-task-approval-form {
  display: grid;
  gap: 14px;
}

.job-task-note-summary,
.job-task-approval-summary {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.job-task-note-summary > div,
.job-task-approval-summary > div {
  display: grid;
  gap: 4px;
}

.job-task-note-summary span,
.job-task-approval-summary span {
  color: #607084;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-task-note-summary strong,
.job-task-approval-summary strong {
  color: #223142;
  font-size: 0.82rem;
  line-height: 1.4;
}

.job-task-note-actions {
  display: flex;
  justify-content: end;
  margin-top: 14px;
}

.job-task-approval-form textarea {
  min-height: 108px;
  resize: vertical;
}

.job-task-approval-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-image-card .drawer-header {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebeff4;
}

.detail-image-card .drawer-header h2 {
  margin: 0;
  color: #343b46;
  font-size: 0.98rem;
  font-weight: 700;
}

.detail-image-frame {
  margin-top: 14px;
}

.detail-image-frame img {
  width: 100%;
  max-height: calc(100vh - 180px);
  display: block;
  border-radius: 18px;
  object-fit: contain;
  background: #f7f8fb;
}

.file-modal .drawer-header {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebeff4;
}

.file-modal .drawer-header h2 {
  color: #343b46;
  font-size: 0.98rem;
  font-weight: 700;
}

.file-modal-body {
  margin-top: 14px;
}

.file-modal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.file-modal-section {
  display: grid;
  gap: 8px;
}

.file-modal-section-title {
  color: #4c5562;
  font-size: 0.76rem;
  font-weight: 700;
}

.file-stack {
  display: grid;
  gap: 10px;
}

.file-preview-pane {
  display: grid;
  align-content: start;
  min-height: 320px;
  padding: 12px;
  border: 1px solid #e0e5ee;
  border-radius: 16px;
  background: white;
}

.file-preview-toolbar {
  display: inline-flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 10px auto;
}

.file-preview-download {
  padding: 0;
  border: 0;
  background: transparent;
}

.mock-image-preview {
  display: grid;
  gap: 10px;
}

.mock-image-preview img {
  width: 100%;
  max-height: 180px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.mock-document-preview {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #f7f8fb;
}

.mock-document-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-page-view {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  --account-browse-cell-padding: 8px 9px;
  --account-browse-cell-font-size: 0.78rem;
  --account-browse-cell-line-height: 1.2;
  --account-browse-header-padding: 8px 9px;
  --account-browse-header-font-size: 0.66rem;
  --account-browse-header-line-height: 1.2;
  background:
    radial-gradient(circle at top right, rgba(121, 166, 223, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(224, 231, 239, 0.98)),
    linear-gradient(90deg, rgba(20, 27, 37, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(20, 27, 37, 0.035) 1px, transparent 1px);
  background-position: top right, center top, center top, center top;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, 120px 120px, 120px 120px;
}

.account-page-view::before {
  content: "";
  position: absolute;
  inset: 392px 28px 24px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.28), rgba(225, 232, 240, 0.14)),
    url("/assets/account-real-landing-gear.jpg") center center / cover no-repeat;
  border: 1px solid rgba(84, 112, 149, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: grayscale(0.22) saturate(0.7) contrast(0.86);
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}

.account-page-surface {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 24px 28px 30px;
}

.custom-page-view {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 40px;
}

.custom-page-surface {
  display: grid;
}

.custom-page-card {
  overflow: hidden;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 60px rgba(17, 24, 39, 0.14);
}

.custom-page-hero {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.42)),
    center center / cover no-repeat;
}

.custom-page-copy {
  display: grid;
  gap: 20px;
  padding: 36px;
}

.custom-page-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.custom-page-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.custom-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-card.account-shell-header {
  display: grid;
  gap: 14px;
  padding: 18px 20px 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(12, 24, 37, 0.86), rgba(15, 32, 48, 0.58)),
    radial-gradient(circle at top right, rgba(220, 162, 74, 0.16), transparent 24%),
    url("/assets/account-real-engine.jpg");
  background-position: center, top right, 76% center;
  background-size: auto, auto, cover;
  box-shadow: 0 22px 44px rgba(9, 19, 29, 0.24);
}

.account-shell-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.85fr);
  gap: 16px;
  align-items: center;
}

.account-shell-header-copy {
  display: grid;
  gap: 8px;
}

.account-shell-header-copy .panel-label,
.account-shell-header-copy h1,
.account-shell-header-copy p,
.account-shell-header-meta span,
.account-shell-company-card span,
.account-shell-company-card strong,
.account-shell-company-card p,
.account-shell-status-card span,
.account-shell-status-card strong,
.account-shell-status-card p {
  color: #f5f7fb;
}

.account-shell-header-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 2.6vw, 2.3rem);
}

.account-shell-header-copy p {
  margin: 0;
  max-width: 700px;
  color: rgba(237, 242, 248, 0.84);
}

.account-shell-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-shell-header-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.account-shell-header-meta.is-secondary span {
  background: rgba(60, 104, 178, 0.2);
  color: #eef4ff;
}

.account-shell-header-side {
  display: grid;
  gap: 10px;
}

.account-shell-company-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-shell-company-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-shell-company-card strong {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.15;
}

.account-shell-company-card p {
  margin: 0;
  max-width: 320px;
  color: rgba(237, 242, 248, 0.82);
  line-height: 1.55;
}

.account-shell-status-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-shell-status-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-shell-status-card strong {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
}

.account-shell-status-card p {
  margin: 0;
  color: rgba(237, 242, 248, 0.82);
}

.account-shell-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.account-shell-header-actions .secondary-action,
.account-shell-header-actions .primary-action {
  min-width: 152px;
  min-height: 46px;
  padding: 0 20px;
  border-width: 1px;
  border-style: solid;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(8, 14, 22, 0.24),
    0 12px 24px rgba(9, 19, 29, 0.18);
}

.account-shell-header-actions .secondary-action {
  background: linear-gradient(180deg, rgba(82, 95, 111, 0.96), rgba(43, 52, 64, 0.96));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.account-shell-header-actions .primary-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.account-shell-header-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.account-body-shell {
  padding-top: 0;
}

.account-function-shell {
  display: grid;
  gap: 16px;
  position: relative;
}

.account-function-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.account-function-button {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 238, 244, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(119, 136, 154, 0.24),
    0 14px 28px rgba(17, 24, 33, 0.08);
  color: #24303d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.account-function-button:hover {
  background: linear-gradient(180deg, rgba(244, 247, 251, 1), rgba(222, 231, 240, 0.96));
}

.account-function-button.is-active {
  border-color: rgba(60, 104, 178, 0.16);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(17, 30, 49, 0.24),
    0 16px 28px rgba(60, 104, 178, 0.22);
  color: #ffffff;
}

.account-function-message {
  position: absolute;
  top: calc(100% - 4px);
  left: 24px;
  right: 24px;
  z-index: 6;
  min-height: 124px;
  padding: 18px 20px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 252, 0.96)),
    radial-gradient(circle at right top, rgba(214, 141, 36, 0.08), transparent 22%);
  box-shadow: 0 18px 34px rgba(17, 24, 33, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.account-function-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.account-function-message h2 {
  margin: 6px 0 0;
  color: #20303d;
  font-size: 1.45rem;
}

.account-function-message p:last-child {
  margin: 10px 0 0;
  max-width: 920px;
  color: #617082;
  line-height: 1.65;
}

.account-profile-workspace {
  display: grid;
  gap: 18px;
  margin-top: 4px;
}

.account-profile-layout {
  margin-top: 0;
  align-items: start;
}

.account-profile-primary-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.account-profile-card {
  align-content: start;
}

.account-profile-card.is-company {
  min-height: 100%;
}

.account-profile-card-heading {
  display: grid;
  gap: 8px;
}

.account-profile-card-heading p:last-child {
  margin: 0;
  color: #5d6d7d;
  line-height: 1.6;
}

.account-profile-field-list {
  display: grid;
  gap: 10px;
}

.account-profile-field-list.is-company {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-field {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 11px 14px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.account-profile-field.is-editing {
  align-content: start;
}

.account-profile-field span {
  color: #6a7483;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-profile-field strong {
  color: #22303d;
  font-size: 0.95rem;
  line-height: 1.35;
}

.account-profile-input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(97, 126, 164, 0.24);
  border-radius: 12px;
  background: #ffffff;
  color: #22303d;
  font: inherit;
  font-weight: 600;
}

.account-profile-input:focus {
  outline: none;
  border-color: rgba(60, 104, 178, 0.5);
  box-shadow: 0 0 0 3px rgba(60, 104, 178, 0.12);
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.account-profile-actions .secondary-action,
.account-profile-actions .primary-action {
  min-width: 140px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 16px;
}

.account-password-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.account-password-panel-header {
  display: grid;
  gap: 6px;
}

.account-password-panel-header h5 {
  margin: 0;
  color: #22303d;
  font-size: 0.98rem;
}

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

.account-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(18, 33, 49, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(244, 189, 81, 0.28), transparent 28%),
    linear-gradient(140deg, rgba(13, 31, 47, 0.98), rgba(23, 64, 92, 0.96) 52%, rgba(31, 93, 122, 0.94));
  color: #ffffff;
  box-shadow: 0 28px 56px rgba(16, 33, 49, 0.22);
}

.account-hero-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 30px 30px 28px;
}

.account-hero .panel-label,
.account-hero h1,
.account-hero p {
  color: inherit;
}

.account-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.account-hero p {
  max-width: 780px;
  margin: 0;
  opacity: 0.92;
}

.account-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
}

.account-hero-side {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.account-hero-spotlight {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-hero-spotlight span {
  color: rgba(234, 241, 248, 0.8);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-hero-spotlight strong {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
}

.account-hero-spotlight p {
  max-width: none;
  color: rgba(244, 247, 251, 0.84);
  font-size: 0.94rem;
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.account-hero-actions .secondary-action {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.account-hero-actions .primary-action {
  background: linear-gradient(135deg, #f4bf66, #d88724);
  border-color: rgba(255, 255, 255, 0.08);
  color: #13283c;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-summary-grid--shell {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-metric {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.94));
  box-shadow: 0 18px 34px rgba(17, 24, 33, 0.08);
  overflow: hidden;
}

.account-metric-line {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: #cad3dc;
}

.account-metric span {
  color: #6a7483;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-metric strong {
  color: #1e2a37;
  font-size: 1.52rem;
}

.account-metric.is-accent .account-metric-line {
  background: linear-gradient(135deg, #f0ae4f, #d87c18);
}

.account-metric.is-brand .account-metric-line {
  background: linear-gradient(135deg, #5f86d4, #2f5cad);
}

.account-metric.is-success .account-metric-line {
  background: linear-gradient(135deg, #3eb79d, #0f8a72);
}

.account-metric.is-accent strong {
  color: #db8120;
}

.account-metric.is-brand strong {
  color: #3c68b2;
}

.account-metric.is-success strong {
  color: #0f8a72;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.account-nav-shell,
.account-utility-rail,
.account-main,
.account-workspace-main,
.account-history-list {
  display: grid;
  gap: 18px;
}

.account-nav-shell {
  padding: 10px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(17, 24, 33, 0.06);
  position: sticky;
  top: 104px;
}

.account-nav-group {
  display: grid;
  gap: 10px;
}

.account-nav-group + .account-nav-group {
  padding-top: 8px;
  border-top: 1px solid rgba(20, 27, 37, 0.08);
}

.account-nav-group-label {
  margin: 0;
  padding: 0 8px;
  color: #778292;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-nav-list {
  display: grid;
  gap: 8px;
}

.account-nav-button {
  display: block;
  width: 100%;
  padding: 14px 14px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #24303d;
  text-align: left;
}

.account-nav-button:hover {
  background: rgba(31, 88, 126, 0.06);
}

.account-nav-button.is-active {
  border-color: rgba(41, 114, 150, 0.14);
  background: linear-gradient(135deg, rgba(31, 88, 126, 0.96), rgba(41, 114, 150, 0.9));
  box-shadow: 0 14px 24px rgba(31, 88, 126, 0.2);
}

.account-nav-button-copy {
  display: grid;
  gap: 6px;
}

.account-nav-button-copy strong {
  color: inherit;
  font-size: 0.96rem;
}

.account-nav-button-copy small {
  color: #677280;
  line-height: 1.45;
}

.account-nav-button.is-active .account-nav-button-copy strong,
.account-nav-button.is-active .account-nav-button-copy small {
  color: #f4f7fb;
}

.account-card {
  padding: 20px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 243, 0.94));
  box-shadow: 0 20px 38px rgba(17, 24, 33, 0.07);
}

.account-profile-rail,
.account-overview-card,
.account-contacts-card,
.account-shiptos-card,
.account-preferences-card,
.account-activity-card,
.account-support-card,
.account-history-card {
  position: relative;
  overflow: hidden;
}

.account-profile-rail {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-color: rgba(13, 31, 47, 0.28);
  background:
    radial-gradient(circle at top right, rgba(244, 189, 81, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(13, 31, 47, 0.98), rgba(24, 52, 75, 0.97));
  box-shadow: 0 22px 40px rgba(11, 24, 36, 0.24);
}

.account-profile-rail .panel-label,
.account-profile-rail h3,
.account-profile-rail p,
.account-profile-rail strong,
.account-profile-rail span {
  color: #f4f7fb;
}

.account-profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.account-profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4c56e, #d7841e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #10263a;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.account-profile-identity h3 {
  margin: 4px 0 0;
}

.account-profile-identity p:last-child {
  margin: 8px 0 0;
  color: rgba(236, 242, 248, 0.78);
}

.account-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f6fb;
  font-size: 0.8rem;
  font-weight: 800;
}

.account-status-chip.is-live {
  border-color: rgba(108, 215, 190, 0.18);
  background: rgba(108, 215, 190, 0.16);
  color: #cffff0;
}

.account-profile-main {
  display: grid;
  gap: 18px;
}

.account-section-card {
  display: grid;
  gap: 18px;
}

.account-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

.account-section-header h2 {
  margin: 4px 0 0;
  color: #21303d;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
}

.account-section-header p:last-child {
  margin: 8px 0 0;
  color: #647080;
  line-height: 1.6;
}

.account-section-header .account-shell-header-meta {
  justify-content: flex-end;
}

.account-section-header .account-shell-header-meta span {
  background: rgba(31, 88, 126, 0.08);
  border-color: rgba(31, 88, 126, 0.12);
  color: #27415d;
}

.account-section-stack {
  display: grid;
  gap: 18px;
}

.account-workspace-card {
  border-color: rgba(41, 114, 150, 0.12);
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.account-catalog-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  max-width: 760px;
}

.account-catalog-search-bar {
  width: 100%;
  max-width: none;
}

.account-catalog-mode-switch {
  width: fit-content;
}

.account-bulk-search-card {
  border-color: rgba(41, 114, 150, 0.14);
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.account-bulk-search-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 18px;
  background: rgba(247, 250, 254, 0.92);
}

.account-bulk-search-note strong {
  color: #21303d;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-bulk-search-note p,
.account-bulk-search-helper {
  margin: 0;
  color: #667485;
  font-size: 0.82rem;
  line-height: 1.5;
}

.account-bulk-search-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.account-bulk-search-field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.account-bulk-search-file-field {
  grid-template-rows: auto auto 1fr;
}

.account-bulk-search-text-field {
  position: relative;
  grid-template-rows: auto auto 1fr auto;
}

.account-bulk-search-field label {
  color: #23303d;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-bulk-search-field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(41, 114, 150, 0.22);
  border-radius: 14px;
  background: rgba(240, 246, 252, 0.88);
  color: #294564;
  font-size: 0.84rem;
}

.account-bulk-search-field textarea {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  min-height: 212px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 27, 37, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #22303d;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.account-bulk-search-field-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.account-history-actions.account-bulk-search-actions {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-history-actions.account-bulk-search-actions .primary-action {
  justify-self: start;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.account-detail-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.account-detail-card--commercial {
  border-color: rgba(41, 114, 150, 0.12);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.account-detail-card--billing {
  border-color: rgba(215, 132, 30, 0.12);
  background: linear-gradient(180deg, #fffdf7, #ffffff);
}

.account-detail-card--logistics {
  border-color: rgba(60, 104, 178, 0.12);
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.account-detail-card--compliance {
  border-color: rgba(214, 125, 16, 0.12);
  background: linear-gradient(180deg, #fffaf1, #ffffff);
}

.account-detail-card h4,
.account-card h4 {
  margin: 0;
  color: #2a3340;
  font-size: 0.96rem;
}

.account-detail-list {
  display: grid;
  gap: 10px;
}

.account-detail-list > div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

.account-detail-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-detail-list span,
.account-contact-card span,
.account-activity-row span,
.account-address-card small {
  color: #6d7785;
  font-size: 0.8rem;
}

.account-detail-list strong,
.account-contact-card strong,
.account-activity-row strong,
.account-address-card strong {
  color: #22303d;
}

.account-empty-state {
  min-height: 220px;
  align-content: center;
}

.account-empty-state h2,
.account-empty-state h3 {
  margin: 0;
  color: #26303c;
}

.account-empty-state p {
  margin: 10px 0 0;
  color: #6d7786;
  line-height: 1.6;
}

.account-profile-grid {
  display: grid;
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.account-profile-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-profile-grid > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-profile-grid span,
.account-api-list span {
  color: #687280;
  font-size: 0.8rem;
}

.account-profile-grid strong {
  color: #ffffff;
}

.account-profile-rail .account-profile-grid span {
  color: rgba(230, 237, 245, 0.72);
}

.account-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.account-profile-rail .account-metric {
  padding: 14px 14px 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.account-profile-rail .account-metric span {
  color: rgba(230, 237, 245, 0.72);
}

.account-profile-rail .account-metric strong {
  color: #ffffff;
}

.account-api-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-api-list span {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(91, 135, 203, 0.08);
  color: #27415d;
}

.account-support-card {
  border-color: rgba(217, 151, 56, 0.18);
  background: linear-gradient(180deg, #fff8ea, #fffdf8);
}

.account-support-card::before,
.account-overview-card::before,
.account-contacts-card::before,
.account-shiptos-card::before,
.account-preferences-card::before,
.account-activity-card::before,
.account-history-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}

.account-overview-card::before {
  background: linear-gradient(90deg, #265f86, #79a6df);
}

.account-contacts-card::before {
  background: linear-gradient(90deg, #d7841e, #efc26a);
}

.account-shiptos-card::before {
  background: linear-gradient(90deg, #2d7d92, #82c3d0);
}

.account-preferences-card::before {
  background: linear-gradient(90deg, #83561e, #d2a05f);
}

.account-activity-card::before {
  background: linear-gradient(90deg, #3c68b2, #89aeea);
}

.account-support-card::before {
  background: linear-gradient(90deg, #d78927, #f1c168);
}

.account-support-card .account-api-list span {
  background: rgba(216, 145, 38, 0.1);
  color: #604933;
}

.account-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.account-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #3f4b5a;
  font-weight: 700;
}

.account-tab:hover {
  background: rgba(31, 88, 126, 0.08);
}

.account-tab.is-active {
  background: linear-gradient(135deg, rgba(31, 88, 126, 0.96), rgba(41, 114, 150, 0.9));
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(31, 88, 126, 0.2);
}

.account-consignment-card {
  display: grid;
  gap: 20px;
}

.account-work-order-card {
  gap: 10px;
}

.account-consignment-subtitle {
  margin: 6px 0 0;
  color: #5f6c7d;
}

.account-consignment-top-grid {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.account-work-order-top-grid {
  grid-template-columns: minmax(360px, 0.72fr) minmax(620px, 1.28fr);
}

.account-work-order-content-grid {
  grid-template-columns: minmax(660px, 1.52fr) minmax(320px, 0.72fr);
}

.account-consignment-content-grid {
  grid-template-columns: minmax(660px, 1.52fr) minmax(320px, 0.72fr);
}

.account-work-order-summary-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 4px;
  padding-bottom: 0;
}

.account-work-order-section-header {
  align-self: end;
  padding-bottom: 0;
  padding-right: 12px;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

.account-consignment-panel,
.account-consignment-grid-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.account-consignment-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.account-consignment-panel-header h3,
.account-consignment-grid-copy strong {
  margin: 0;
  color: #27323f;
}

.account-consignment-panel-header p,
.account-consignment-grid-copy span {
  margin: 4px 0 0;
  color: #607084;
}

.account-work-order-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.account-work-order-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.account-work-order-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #4f6172;
  font-size: 0.82rem;
  font-weight: 700;
}

.account-work-order-toggle input {
  margin: 0;
}

.account-work-order-search {
  max-width: 100%;
}

.account-work-order-search input {
  width: 100%;
}

.account-consignment-pool-grid-scroll {
  height: 206px;
  max-height: 206px;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 16px;
  background: #fbfcfe;
}

.account-consignment-pool-grid {
  width: max-content;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.account-consignment-pool-col-number {
  width: 110px;
}

.account-work-order-col-part {
  width: 132px;
}

.account-work-order-col-description {
  width: 184px;
}

.account-work-order-col-approvals {
  width: 92px;
}

.account-consignment-pool-col-status {
  width: 96px;
}

.account-consignment-pool-col-type {
  width: 128px;
}

.account-consignment-pool-col-reference {
  width: 124px;
}

.account-consignment-pool-col-model {
  width: 110px;
}

.account-consignment-pool-col-serial {
  width: 104px;
}

.account-consignment-pool-col-reg {
  width: 90px;
}

.account-consignment-pool-col-date {
  width: 104px;
}

.account-consignment-pool-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: var(--account-browse-header-padding);
  border-bottom: 1px solid rgba(20, 27, 37, 0.1);
  background: #eff4f9;
  color: #506072;
  font-size: var(--account-browse-header-font-size);
  line-height: var(--account-browse-header-line-height);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-consignment-pool-row {
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.account-consignment-pool-row td {
  padding: var(--account-browse-cell-padding);
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
  color: #233142;
  font-size: var(--account-browse-cell-font-size);
  line-height: var(--account-browse-cell-line-height);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-work-order-empty-cell {
  text-align: center;
  color: #607084;
  font-weight: 700;
  background: rgba(239, 244, 249, 0.55);
}

.account-consignment-pool-row:hover {
  background: rgba(41, 114, 150, 0.06);
}

.account-consignment-pool-row.is-active {
  background: linear-gradient(135deg, rgba(91, 135, 203, 0.14), rgba(255, 255, 255, 0.98));
  box-shadow: inset 3px 0 0 #2d587c;
}

.account-consignment-detail-panel {
  --account-detail-label-width: 248px;
  --account-detail-separator-width: 14px;
  gap: 10px;
  align-content: start;
}

.account-consignment-detail-panel:not(.account-work-order-detail-panel) {
  --account-detail-label-width: 206px;
  --account-detail-separator-width: 6px;
}

.account-work-order-detail-panel {
  --account-detail-label-width: clamp(148px, 42%, 248px);
  align-self: start;
}

.account-work-order-detail-tab-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 4px;
}

.account-work-order-detail-tab {
  padding: 8px 14px;
  border: 1px solid rgba(20, 27, 37, 0.12);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #f7f9fc, #edf2f7);
  color: #617083;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.account-work-order-detail-tab.is-active {
  background: #ffffff;
  color: #1f2f3e;
  border-color: rgba(20, 27, 37, 0.14);
}

.account-work-order-detail-body {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.account-work-order-preview-panel {
  gap: 0;
  padding: 8px 8px 0;
  align-self: end;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  position: relative;
  top: -12px;
}

.account-work-order-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 96px repeat(2, 92px);
  align-items: stretch;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.account-work-order-decision-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 212px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(91, 135, 203, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.94));
}

.account-work-order-decision-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(20, 27, 37, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: #243546;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.account-work-order-decision-status.is-approved {
  border-color: rgba(40, 184, 92, 0.95);
  color: #13773b;
  background: rgba(229, 248, 235, 0.92);
}

.account-work-order-decision-status.is-pending {
  border-color: rgba(131, 146, 163, 0.34);
  background: rgba(244, 247, 250, 0.96);
  color: #92a0b0;
}

.account-work-order-estimate-box {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-work-order-estimate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  color: #243546;
  font-size: 0.72rem;
  line-height: 1.15;
}

.account-work-order-estimate-row span {
  color: #223142;
  font-weight: 500;
}

.account-work-order-estimate-row strong {
  color: #223142;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.account-work-order-estimate-row.is-total {
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(20, 27, 37, 0.16);
}

.account-work-order-estimate-row.is-total span,
.account-work-order-estimate-row.is-total strong {
  font-weight: 700;
}

.account-work-order-approvals-callout {
  min-width: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: center;
  text-align: center;
  gap: 8px;
  padding: 4px 0;
}

.account-work-order-approvals-label {
  color: #5c6f84;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.account-work-order-approvals-value {
  color: #193556;
  font-size: 2.8rem;
  line-height: 0.92;
  font-weight: 800;
}

.account-work-order-banner-tile,
.account-work-order-files-tile {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(20, 27, 37, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.account-work-order-banner-tile {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  appearance: none;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(31, 88, 126, 0.14), rgba(255, 255, 255, 0.96));
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.account-work-order-banner-tile:hover,
.account-work-order-banner-tile:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(74, 117, 187, 0.34);
  box-shadow: 0 14px 28px rgba(22, 35, 58, 0.12);
}

.account-work-order-banner-tile:disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.account-work-order-banner-tile:focus-visible,
.account-work-order-files-tile:focus-visible {
  outline: 2px solid rgba(74, 117, 187, 0.34);
  outline-offset: 2px;
}

.account-work-order-banner-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.account-work-order-banner-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 10px;
  text-align: center;
  color: #607084;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(31, 88, 126, 0.08), rgba(255, 255, 255, 0.96));
}

.account-work-order-files-tile {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px;
  background:
    radial-gradient(circle at top right, rgba(91, 135, 203, 0.22), transparent 46%),
    linear-gradient(180deg, #fdfefe, #eef4fb);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.account-work-order-files-tile:hover,
.account-work-order-files-tile:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 88, 124, 0.26);
  box-shadow: 0 14px 28px rgba(31, 88, 126, 0.14);
}

.account-work-order-files-tile:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.account-work-order-files-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(31, 88, 126, 0.96);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.account-work-order-folder-icon {
  width: min(58%, 74px);
  color: #d18b18;
  filter: drop-shadow(0 10px 14px rgba(209, 139, 24, 0.2));
}

.account-work-order-folder-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.account-work-order-files-copy {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  gap: 1px;
  text-align: center;
}

.account-work-order-files-copy strong {
  color: #223142;
  font-size: 0.78rem;
}

.account-work-order-files-copy span {
  color: #607084;
  font-size: 0.68rem;
  font-weight: 700;
}

.account-work-order-detail-panel .account-consignment-detail-row {
  grid-template-columns:
    var(--account-detail-label-width)
    var(--account-detail-separator-width)
    minmax(0, 1fr);
}

.account-work-order-detail-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.account-consignment-detail-list {
  display: grid;
  gap: 2px;
  align-content: start;
}

.account-consignment-detail-row {
  display: grid;
  grid-template-columns:
    minmax(0, var(--account-detail-label-width))
    var(--account-detail-separator-width)
    minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 3px 0;
  border-bottom: 1px solid rgba(20, 27, 37, 0.06);
}

.account-consignment-detail-panel:not(.account-work-order-detail-panel) .account-consignment-detail-row {
  gap: 2px;
}

.account-consignment-detail-label,
.account-consignment-detail-separator,
.account-consignment-detail-value {
  font-size: 0.76rem;
  line-height: 1.2;
}

.account-consignment-detail-label {
  color: #546274;
  font-weight: 700;
}

.account-consignment-detail-separator {
  color: #546274;
  font-weight: 700;
  text-align: center;
}

.account-consignment-detail-value {
  color: #1f2f3e;
  font-weight: 700;
}

.account-work-order-date-table {
  width: 100%;
  margin-top: auto;
  border: 1px solid rgba(20, 27, 37, 0.08);
  background: #ffffff;
}

.account-work-order-date-row {
  display: grid;
  grid-template-columns:
    var(--account-detail-label-width)
    var(--account-detail-separator-width)
    minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

.account-work-order-date-row:last-child {
  border-bottom: 0;
}

.account-work-order-date-label,
.account-work-order-date-separator,
.account-work-order-date-value {
  font-size: 0.76rem;
  line-height: 1.2;
}

.account-work-order-date-label {
  color: #546274;
  font-weight: 700;
}

.account-work-order-date-separator {
  color: #546274;
  font-weight: 700;
  text-align: center;
}

.account-work-order-date-value {
  color: #1f2f3e;
  font-weight: 700;
}

.account-work-order-quote-wrap {
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.account-work-order-quote-wrap .account-table-scroll {
  max-height: 360px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-work-order-quote-table {
  min-width: 860px;
}

.account-work-order-quote-table th,
.account-work-order-quote-table td {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 0.72rem;
}

.account-work-order-quote-col-approve {
  width: 108px;
}

.account-work-order-quote-col-price,
.account-work-order-quote-table th.account-work-order-quote-col-price,
.account-work-order-quote-table td.account-work-order-quote-col-price {
  text-align: right !important;
  white-space: nowrap;
}

.account-work-order-quote-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #607084;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-work-order-quote-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cdd7e3;
  box-shadow: inset 0 0 0 1px rgba(20, 27, 37, 0.08);
  transition: background 140ms ease;
}

.account-work-order-quote-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 35, 0.18);
  transition: transform 140ms ease;
}

.account-work-order-quote-toggle.is-on {
  color: #17703c;
}

.account-work-order-quote-toggle.is-on .account-work-order-quote-toggle-track {
  background: rgba(39, 174, 96, 0.88);
}

.account-work-order-quote-toggle.is-on .account-work-order-quote-toggle-thumb {
  transform: translateX(14px);
}

.account-consignment-percent-card {
  padding: 0;
}

.account-consignment-percent-grid {
  display: grid;
  grid-template-columns: minmax(132px, 1.15fr) minmax(104px, 1fr) minmax(120px, 1fr);
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.account-consignment-percent-corner,
.account-consignment-percent-header,
.account-consignment-percent-label,
.account-consignment-percent-value {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.74rem;
  line-height: 1.1;
}

.account-consignment-percent-header,
.account-consignment-percent-value {
  text-align: center;
}

.account-consignment-percent-corner,
.account-consignment-percent-header,
.account-consignment-percent-label,
.account-consignment-percent-value {
  border-right: 1px solid rgba(20, 27, 37, 0.08);
  border-bottom: 1px solid rgba(20, 27, 37, 0.08);
}

.account-consignment-percent-header:last-child,
.account-consignment-percent-value:nth-child(3n) {
  border-right: 0;
}

.account-consignment-percent-label:nth-last-child(-n + 3),
.account-consignment-percent-value:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.account-consignment-percent-corner {
  background: #ffffff;
}

.account-consignment-percent-header {
  color: #1d2e3c;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: #f8fbfe;
}

.account-consignment-percent-label {
  color: #223242;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.account-consignment-percent-value {
  color: #1d2e3c;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-consignment-remarks-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 14px;
  background: #f7fafd;
}

.account-consignment-remarks-label {
  color: #546274;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-consignment-remarks-copy {
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #223242;
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.account-consignment-grid-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.account-consignment-tab-row {
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  padding: 6px;
  overflow-x: auto;
}

.account-consignment-tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.account-consignment-export-button {
  white-space: nowrap;
}

.account-consignment-export-button--inline {
  min-height: 38px;
  align-self: end;
  padding-inline: 14px;
}

.account-consignment-grid-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.account-consignment-table {
  min-width: 1380px;
}

.account-consignment-table--inventory {
  min-width: 3220px;
}

.account-consignment-table--sold {
  min-width: 4650px;
}

.account-consignment-table--repair-history {
  min-width: 2940px;
}

.account-consignment-table--charges {
  min-width: 1250px;
}

.account-consignment-table--cores {
  min-width: 2200px;
}

.account-consignment-table--commissions {
  min-width: 2950px;
}

.account-consignment-cell {
  vertical-align: top;
}

.account-consignment-cell-copy {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-consignment-col-description .account-consignment-cell-copy {
  white-space: normal;
  line-height: 1.45;
}

.account-consignment-col-center {
  text-align: center;
}

.account-consignment-col-number {
  text-align: right;
}

.account-consignment-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.account-consignment-sort-button.is-active {
  color: #214f7c;
}

.account-consignment-sort-indicator {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.account-contact-list,
.account-address-list,
.account-activity-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-contact-list,
.account-address-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-contact-card,
.account-address-card,
.account-activity-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 18px;
  background: #f9fbfe;
}

.account-contact-card {
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.account-contact-card span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 88, 126, 0.08);
  color: #2d587c;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-contact-card small {
  color: #607084;
  font-weight: 600;
}

.account-address-card {
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.account-contact-card p,
.account-address-card p,
.account-activity-row p {
  margin: 0;
  color: #566273;
  line-height: 1.55;
}

.account-address-card.is-default {
  border-color: rgba(41, 114, 150, 0.16);
  background: linear-gradient(135deg, rgba(91, 135, 203, 0.12), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 30px rgba(30, 79, 110, 0.08);
}

.account-address-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(243, 154, 52, 0.16);
  color: #b86716;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-note-panel {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(91, 135, 203, 0.08);
}

.account-note-panel.is-muted {
  background: #f3f6fa;
}

.account-note-panel p {
  margin: 0;
  color: #546171;
  line-height: 1.6;
}

.account-activity-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 18px;
  padding-left: 18px;
  border-left: 4px solid rgba(60, 104, 178, 0.2);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.account-activity-row p {
  grid-column: 1 / -1;
}

.account-history-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: 0 16px 30px rgba(16, 23, 35, 0.06);
}

.account-history-card.is-quotes::before {
  background: linear-gradient(90deg, #df8b22, #f1c56c);
}

.account-history-card.is-invoices::before {
  background: linear-gradient(90deg, #3a65ae, #81a8ea);
}

.account-history-card.is-shipping::before {
  background: linear-gradient(90deg, #127d69, #67c8b1);
}

.account-history-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.account-history-card h3 {
  margin: 0;
  color: #27323f;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(243, 154, 52, 0.14);
  color: #b56412;
  font-size: 0.82rem;
  font-weight: 800;
}

.account-history-summary {
  margin: 0;
  color: #5f6a79;
  line-height: 1.6;
}

.account-history-meta,
.account-history-chip-row,
.account-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-history-meta span,
.account-history-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #495463;
  font-size: 0.84rem;
}

.account-history-chip-row span {
  background: rgba(91, 135, 203, 0.08);
  color: #294967;
  font-weight: 700;
}

.account-history-actions {
  justify-content: space-between;
  align-items: center;
}

.account-files-button {
  min-height: 40px;
  padding: 0 16px;
}

.account-history-placeholder {
  color: #788291;
  font-size: 0.88rem;
}

.account-quotes-browse-card,
.account-quote-detail-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.account-quotes-note {
  background: linear-gradient(180deg, rgba(91, 135, 203, 0.1), rgba(255, 255, 255, 0.92));
}

.account-quote-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-shell-header-actions .is-current-account-action {
  border-color: rgba(41, 114, 150, 0.22);
  background: linear-gradient(135deg, rgba(91, 135, 203, 0.12), rgba(255, 255, 255, 0.98));
  color: #214f7c;
}

.account-quote-toolbar-fields {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(220px, 300px) auto;
  gap: 8px;
  flex: 1 1 auto;
}

.account-quote-toolbar-stat {
  display: grid;
  gap: 2px;
  min-width: 126px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.96), rgba(255, 255, 255, 0.98));
}

.account-quote-toolbar-stat strong {
  color: #23303d;
  font-size: 0.86rem;
}

.account-quote-toolbar-stat span {
  color: #657180;
  font-size: 0.72rem;
}

.account-quote-toolbar .field span {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.account-quote-toolbar .field select,
.account-quote-toolbar .field input {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.82rem;
}

.account-quote-scope-field {
  min-width: 260px;
}

.account-quote-scope-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-quote-scope-toggle .results-page-size-option {
  min-height: 38px;
  padding-inline: 12px;
}

.account-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.account-quote-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.account-job-task-table {
  min-width: 1880px;
}

.account-quote-line-table.account-job-task-bom-table {
  width: 100%;
  min-width: 860px;
}

.account-job-task-bom-table th,
.account-job-task-bom-table td {
  padding: 5px 6px;
  font-size: 0.68rem;
}

.account-job-task-bom-table th {
  white-space: normal;
  line-height: 1.15;
}

.account-job-task-bom-table .account-quote-col-description {
  min-width: 0;
}

.account-job-task-bom-table .account-quote-col-part,
.account-job-task-bom-table .account-quote-col-price {
  min-width: 0;
}

.account-job-task-bom-table .account-quote-cell-description {
  max-width: none;
  white-space: normal;
}

.account-job-task-bom-browse-table .account-quote-col-item,
.account-job-task-bom-browse-table th.account-quote-col-item {
  text-align: left !important;
}

.account-job-task-bom-browse-table .account-quote-col-qty,
.account-job-task-bom-browse-table th.account-quote-col-qty,
.account-job-task-bom-browse-table .account-quote-col-price,
.account-job-task-bom-browse-table th.account-quote-col-price {
  text-align: right !important;
}

.account-quote-line-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
}

.account-sub-browse-table {
  table-layout: fixed;
}

.account-quote-sub-browse-table {
  min-width: 1280px;
}

.account-invoice-sub-browse-table {
  min-width: 100%;
}

.account-shipment-table {
  min-width: 1420px;
}

.account-shipment-sub-browse-table {
  min-width: 100%;
}

.account-quote-inventory-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.account-quote-table th,
.account-quote-table td,
.account-quote-line-table th,
.account-quote-line-table td,
.account-quote-inventory-table th,
.account-quote-inventory-table td {
  padding: var(--account-browse-cell-padding);
  border-bottom: 1px solid #e7edf4;
  text-align: left;
  vertical-align: middle;
  color: #26313d;
  font-size: var(--account-browse-cell-font-size);
  line-height: var(--account-browse-cell-line-height);
}

.account-quote-table th,
.account-quote-line-table th,
.account-quote-inventory-table th {
  background: #f7f9fc;
  color: #748092;
  padding: var(--account-browse-header-padding);
  font-size: var(--account-browse-header-font-size);
  line-height: var(--account-browse-header-line-height);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-quote-summary-row {
  transition: background 160ms ease;
}

.account-quote-summary-row td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.account-quote-summary-row:hover {
  background: #f9fbff;
}

.account-quote-summary-row.is-active {
  background: linear-gradient(135deg, rgba(91, 135, 203, 0.12), rgba(255, 255, 255, 0.98));
}

.account-quote-expand-toggle {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(91, 135, 203, 0.18);
  border-radius: 999px;
  background: rgba(91, 135, 203, 0.08);
  color: #2f63b5;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-quote-summary-button,
.account-quote-line-part {
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.15;
}

.account-quote-file-link {
  padding: 0;
  font-size: 0.74rem;
  font-weight: 700;
}

.account-quote-summary-button {
  font-weight: 800;
}

.account-job-task-card {
  margin-top: 10px;
}

.account-job-task-card .account-section-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.account-job-task-heading {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.account-job-task-heading h3 {
  margin: 0;
}

.account-job-task-heading-details {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.account-job-task-heading-meta {
  color: #607084;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.account-job-task-filter-group {
  justify-self: end;
  flex-wrap: nowrap;
  gap: 12px;
  padding-bottom: 10px;
  white-space: nowrap;
}

.account-job-task-tab-row {
  display: flex;
  align-items: end;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.account-job-task-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 14px 10px;
  border: 1px solid rgba(20, 27, 37, 0.12);
  border-bottom-color: rgba(20, 27, 37, 0.08);
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 252, 0.96));
  color: #223142;
  box-shadow: 0 16px 28px -24px rgba(20, 27, 37, 0.5);
  transform: translateY(1px);
}

.account-job-task-tab.is-active {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(20, 27, 37, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 30px -28px rgba(20, 27, 37, 0.45);
}

.account-job-task-tab-title {
  color: #162434;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.account-job-task-tab-meta {
  color: #607084;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.account-job-task-filter-group .account-work-order-toggle {
  gap: 6px;
  font-size: 0.74rem;
}

.account-job-task-filter-group .account-work-order-toggle.is-disabled {
  opacity: 0.55;
}

.account-job-task-status-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f6172;
  font-size: 0.74rem;
  font-weight: 700;
}

.account-job-task-status-filter select {
  height: 30px;
  min-width: 146px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

@media (max-width: 1620px) {
  .account-job-task-card .account-section-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .account-job-task-filter-group {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    padding-bottom: 0;
  }
}

.account-job-task-table th,
.account-job-task-table td {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.74rem;
  line-height: 1.2;
}

.account-job-task-table th:not(:first-child),
.account-job-task-table td:not(:first-child) {
  padding-left: 8px;
}

.account-job-task-table th {
  padding-top: 7px;
  padding-bottom: 7px;
}

.account-job-task-table .account-quote-summary-row td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.account-job-task-table td:nth-child(1) {
  min-width: 146px;
  white-space: nowrap;
}

.account-job-task-table td:nth-child(2) {
  min-width: 96px;
  white-space: nowrap;
}

.account-job-task-table td:nth-child(3) {
  min-width: 520px;
}

.account-job-task-table td:nth-child(4) {
  min-width: 96px;
}

.account-job-task-table td:nth-child(5) {
  min-width: 74px;
}

.account-job-task-table td:nth-child(6) {
  min-width: 96px;
}

.account-job-task-table td:nth-child(1),
.account-job-task-table td:nth-child(2),
.account-job-task-table td:nth-child(4),
.account-job-task-table td:nth-child(5),
.account-job-task-table td:nth-child(6),
.account-job-task-table td:nth-child(7),
.account-job-task-table td:nth-child(8),
.account-job-task-table td:nth-child(9),
.account-job-task-table td:nth-child(10) {
  white-space: nowrap;
}

.account-job-task-table td:nth-child(11),
.account-job-task-table td:nth-child(12),
.account-job-task-table td:nth-child(13),
.account-job-task-table td:nth-child(14) {
  text-align: right;
}

.account-job-task-note-button,
.account-job-task-bom-button,
.account-job-task-file-button,
.account-job-task-approval-button {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.account-job-task-table .account-quote-cell-description {
  max-width: 520px;
}

.account-job-task-expand-panel {
  gap: 10px;
  padding: 10px;
}

.account-job-task-bom-section {
  display: grid;
  gap: 8px;
  width: min(100%, 940px);
  max-width: 940px;
}

.account-job-task-bom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-job-task-bom-header strong {
  color: #223142;
  font-size: 0.78rem;
}

.account-job-task-note-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.94));
}

.account-job-task-note-card p {
  margin: 0;
  color: #324152;
  font-size: 0.76rem;
  line-height: 1.4;
}

.account-job-task-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-job-task-note-header strong {
  color: #223142;
  font-size: 0.78rem;
}

.account-job-task-approval-comment {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(84, 98, 116, 0.24);
}

.account-job-task-approval-comment span {
  color: #607084;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-job-task-approval-comment strong {
  color: #223142;
  font-size: 0.78rem;
  line-height: 1.45;
}

.account-quote-col-item,
.account-quote-col-condition,
.account-quote-col-qty,
.account-quote-col-uom {
  text-align: center !important;
}

.account-quote-col-price {
  text-align: right !important;
}

.account-quote-col-discount {
  text-align: right !important;
}

.account-quote-line-table .account-quote-col-part {
  min-width: 120px;
}

.account-quote-line-table .account-quote-col-description {
  min-width: 250px;
}

.account-quote-line-table .account-quote-col-tran-type {
  min-width: 128px;
}

.account-quote-line-table .account-quote-col-item,
.account-quote-line-table .account-quote-col-condition,
.account-quote-line-table .account-quote-col-qty,
.account-quote-line-table .account-quote-col-uom,
.account-quote-line-table .account-quote-col-price,
.account-quote-line-table .account-quote-col-discount,
.account-quote-line-table .account-quote-col-inventory {
  text-align: left !important;
}

.account-quote-line-table .account-quote-col-price {
  min-width: 100px;
}

.account-quote-line-table .account-quote-col-discount {
  min-width: 72px;
}

.account-quote-table .account-quote-col-action {
  min-width: 132px;
  text-align: center !important;
}

.account-shipment-table .account-quote-col-action {
  min-width: 146px;
}

.account-quote-line-table .account-quote-col-inventory {
  min-width: 120px;
}

.account-sub-browse-col-item {
  width: 58px;
}

.account-sub-browse-col-part {
  width: 128px;
}

.account-sub-browse-col-description {
  width: 254px;
}

.account-sub-browse-col-tran-type {
  width: 132px;
}

.account-sub-browse-col-condition {
  width: 46px;
}

.account-sub-browse-col-qty {
  width: 68px;
}

.account-sub-browse-col-qty-wide {
  width: 84px;
}

.account-sub-browse-col-uom {
  width: 52px;
}

.account-sub-browse-col-price {
  width: 102px;
}

.account-sub-browse-col-discount {
  width: 74px;
}

.account-sub-browse-col-files {
  width: 124px;
}

.account-invoice-pay-button {
  min-width: 108px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.account-core-col-order {
  min-width: 96px;
}

.account-core-col-doc {
  min-width: 110px;
}

.account-core-col-serial {
  min-width: 110px;
}

.account-core-col-date {
  min-width: 98px;
}

.account-core-col-eccn {
  min-width: 84px;
}

.account-core-col-schedule {
  min-width: 122px;
}

.account-core-col-origin {
  min-width: 78px;
}

.account-core-col-charge {
  min-width: 126px;
  text-align: right !important;
}

.account-shipment-col-boxes {
  min-width: 88px;
  text-align: center !important;
}

.account-core-col-action {
  min-width: 96px;
  text-align: center !important;
}

.account-quote-cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-quote-cell-reference {
  max-width: 150px;
}

.account-quote-cell-shipto {
  max-width: 220px;
}

.account-quote-cell-description {
  max-width: 240px;
}

.account-quote-cell-location {
  max-width: 150px;
}

.account-quote-cell-tag {
  max-width: 140px;
}

.account-shipment-cell-shipvia {
  max-width: 180px;
}

.account-shipment-cell-tracking {
  max-width: 154px;
}

.account-quote-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.account-quote-detail-header h4 {
  margin: 0;
  color: #20303d;
  font-size: 1rem;
  line-height: 1.2;
}

.account-quote-detail-header p:last-child {
  margin: 4px 0 0;
  color: #5f6a79;
  font-size: 0.8rem;
  line-height: 1.35;
}

.account-quote-expand-row > td {
  padding: 0;
  background: #fbfcfe;
}

.account-quote-expand-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #e7edf4;
}

.account-shipment-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-shipment-inline-action {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.account-quote-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-quote-summary-item {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.94));
}

.account-quote-summary-item span {
  color: #6b7686;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-quote-summary-item strong {
  color: #22303d;
  font-size: 0.8rem;
  line-height: 1.2;
}

.account-quote-line-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.account-quote-line-section-header h5 {
  margin: 0;
  color: #20303d;
  font-size: 0.9rem;
}

.account-quote-browse-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.account-quote-line-footer {
  padding-top: 6px;
}

.account-quote-empty-state {
  padding: 26px 18px;
  color: #6a7483;
  text-align: center;
}

.account-quote-inventory-panel {
  padding-top: 4px;
}

.account-history-chip-row strong {
  color: #20303d;
}

.mock-document-meta {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(91, 135, 203, 0.06);
  color: #2d3e57;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1360px) {
  .account-layout {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  }

  .account-utility-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-nav-shell {
    position: static;
    top: auto;
  }
}

@media (max-width: 1180px) {
  .results-view {
    grid-template-columns: 1fr;
  }

  .cart-page-checkout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-utility-rail {
    grid-template-columns: 1fr;
  }

  .account-nav-shell {
    position: static;
    top: auto;
  }

  .cart-page-summary-card {
    grid-column: 1 / -1;
  }

  .history-panel {
    order: 2;
  }

  body.results-mode .results-view {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.results-mode .history-panel {
    order: 0;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  body.landing-mode .topbar {
    position: absolute;
  }

  .brand-lockup {
    justify-content: center;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .file-modal-layout {
    grid-template-columns: 1fr;
  }

  .file-preview-pane {
    min-height: 0;
  }

  body.results-mode .results-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.results-mode .mode-switch {
    justify-self: start;
  }

  body.results-mode .results-column-header {
    display: none;
  }

  body.results-mode .result-summary {
    grid-template-columns: 58px minmax(0, 1fr) 150px;
    min-height: 0;
  }

  body.results-mode .result-copy {
    grid-column: 2 / 4;
    padding: 18px 18px 12px;
  }

  body.results-mode .result-actions {
    grid-column: 2 / 3;
    padding: 0 18px 14px;
  }

  body.results-mode .result-meta-grid {
    display: grid;
    grid-column: 2 / 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #e4e5e8;
  }

  body.results-mode .result-meta-cell {
    min-height: 74px;
    padding: 14px 18px;
  }

  body.results-mode .result-cta {
    grid-column: 3 / 4;
    padding: 0 18px 14px 0;
  }

  .account-shell-header-top {
    grid-template-columns: 1fr;
  }

  .account-shell-header-actions {
    justify-content: flex-start;
  }

  .account-summary-grid--shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-page-view::before {
    inset: 444px 22px 22px;
  }

  .custom-page-view {
    width: min(100% - 24px, 1180px);
  }
}

@media (max-width: 840px) {
  .page-shell {
    padding: 18px 10px;
  }

  body.login-mode .topbar,
  body.cart-mode .topbar,
  body.account-mode .topbar,
  .cart-page-surface {
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-page-surface,
  .account-page-surface {
    padding: 16px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-welcome-card,
  .login-form-card {
    padding: 24px;
  }

  .login-request-grid {
    grid-template-columns: 1fr;
  }

  .account-page-view::before {
    inset: 520px 16px 16px;
  }

  .hero-card {
    min-height: 580px;
  }

  .custom-page-copy {
    padding: 28px 22px;
  }

  .hero-content {
    padding: 112px 22px 28px;
  }

  .hero-content h1 {
    font-size: 3.4rem;
  }

  body.landing-mode .hero-content {
    padding: 150px 22px 28px;
  }

  body.landing-mode .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  body.landing-mode .site-footer {
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .cookie-banner {
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
  }

  .results-toolbar,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-actions {
    justify-content: flex-start;
  }

  .result-meta-grid {
    grid-template-columns: 1fr;
  }

  body.results-mode .results-panel {
    padding: 14px 14px 18px;
  }

  body.results-mode .result-summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body.results-mode .result-copy {
    grid-column: 2 / 3;
    padding: 16px 16px 10px;
  }

  body.results-mode .result-title-row h3 {
    white-space: normal;
  }

  body.results-mode .result-actions {
    --results-control-height: 36px;
    grid-column: 2 / 3;
    padding: 0 16px 12px;
  }

  body.results-mode .result-meta-grid {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  body.results-mode .result-meta-cell {
    border-left: 0;
    border-top: 1px solid #e4e5e8;
    min-height: 0;
  }

  body.results-mode .result-cta {
    grid-column: 1 / -1;
    justify-content: start;
    padding: 10px 16px 16px;
  }

  body.results-mode .alt-toggle,
  body.results-mode .inventory-toggle {
    min-width: 128px;
    font-size: 0.84rem;
  }

  body.results-mode .results-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.results-mode .results-footer-meta {
    width: 100%;
  }

  .cart-page-header {
    align-items: start;
    flex-direction: column;
  }

  .cart-page-tab-row {
    margin-left: 0;
  }

  .cart-page-checkout-grid {
    grid-template-columns: 1fr;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-utility-rail {
    grid-template-columns: 1fr;
  }

  .account-section-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-section-header .account-shell-header-meta {
    justify-content: flex-start;
  }

  .account-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-field-list.is-company {
    grid-template-columns: 1fr;
  }

  .account-password-grid {
    grid-template-columns: 1fr;
  }

  .account-contact-list,
  .account-address-list,
  .account-mini-metrics {
    grid-template-columns: 1fr;
  }

  .account-overview-grid,
  .account-summary-grid--shell {
    grid-template-columns: 1fr;
  }

  .account-consignment-top-grid {
    grid-template-columns: 1fr;
  }

  .account-work-order-section-header {
    padding-right: 0;
  }

  .account-work-order-preview-grid {
    grid-template-columns: 1fr;
  }

  .account-work-order-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-work-order-preview-panel {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .account-work-order-decision-card {
    grid-template-columns: 1fr;
  }

  .account-work-order-decision-status {
    width: 100%;
  }

  .account-work-order-approvals-callout {
    padding-right: 0;
  }

  .account-consignment-grid-header,
  .account-consignment-grid-copy {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page-table {
    overflow-x: auto;
  }

  .cart-page-table.is-rfq,
  .cart-page-table.is-buy {
    display: block;
  }

  .cart-page-table.is-rfq .cart-page-table-row {
    width: 1240px;
  }

  .cart-page-table.is-buy .cart-page-table-row {
    width: 1440px;
  }

  .cart-page-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page-footer-actions .primary-action {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topnav {
    gap: 14px;
  }

  body.login-mode .topbar,
  body.landing-mode .topbar {
    padding: 14px 16px;
  }

  .hero-search-form,
  .toolbar-search-form {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .site-footer {
    padding: 14px 16px 20px;
  }

  .site-footer-copy,
  .site-footer-powered,
  .cookie-banner-actions,
  .cookie-preferences-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer-powered img {
    width: 136px;
  }

  body.landing-mode .site-footer {
    padding: 14px 16px 16px;
  }

  .search-button {
    min-width: 100%;
    height: 50px;
  }

  .mode-switch,
  .account-tab-row,
  .cart-tab-row,
  .drawer-footer {
    grid-template-columns: 1fr;
  }

  .login-form-utility,
  .login-welcome-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-welcome-highlights {
    grid-template-columns: 1fr;
  }

  .cart-summary-overview,
  .cart-summary-actions {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: 100vw;
    padding: 18px 16px;
  }

  .detail-drawer {
    padding: 0;
  }

  .detail-drawer .drawer-body {
    padding: 12px 14px 16px;
  }

  .detail-drawer .drawer-footer {
    grid-template-columns: 1fr 1fr;
  }

  .file-modal {
    padding: 12px;
  }

  .file-modal-card {
    width: 100%;
    padding: 16px;
  }

  .detail-image-modal {
    padding: 12px;
  }

  .detail-image-card {
    width: 100%;
    padding: 16px;
  }

  .privacy-modal,
  .cookie-preferences-modal {
    padding: 12px;
  }

  .privacy-modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .account-function-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-function-message {
    left: 0;
    right: 0;
  }

  .account-function-button {
    width: 100%;
    justify-content: center;
  }

  .account-consignment-pool-grid-scroll {
    height: 206px;
    max-height: 206px;
  }

  .account-consignment-detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .account-consignment-detail-separator {
    display: none;
  }

  .account-consignment-percent-grid {
    grid-template-columns: minmax(108px, 1fr) 1fr 1fr;
  }

  .cart-line {
    display: grid;
  }

  .cart-line-metrics {
    justify-items: start;
    text-align: left;
  }

  body.results-mode .toolbar-search-form {
    width: 100%;
    height: auto;
    min-height: 48px;
  }

  body.results-mode .mode-switch {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.results-mode .result-title-row h3 {
    font-size: 0.84rem;
    white-space: normal;
  }

  body.results-mode .results-pagination {
    flex-wrap: wrap;
  }

  .login-welcome-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    white-space: normal;
  }

  .account-shell-header {
    padding: 18px;
  }

  .account-shell-header-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .account-shell-header-meta span,
  .account-nav-button {
    width: 100%;
  }

  .account-history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-quote-toolbar,
  .account-quote-line-section-header,
  .account-quote-browse-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .account-quote-toolbar-fields,
  .account-quote-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-catalog-search-form {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .account-quote-detail-header {
    flex-direction: column;
  }

  .account-files-button {
    width: 100%;
  }
}

.bulk-search-page {
  min-height: calc(100vh - 76px);
  padding: 22px 22px 30px;
  background: rgba(249, 248, 245, 0.82);
}

.bulk-search-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(17, 24, 33, 0.08);
}

.bulk-search-account-header {
  margin-bottom: 14px;
}

.bulk-search-account-header .account-shell-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bulk-search-hero {
  position: relative;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(12, 24, 37, 0.86), rgba(15, 32, 48, 0.58)),
    radial-gradient(circle at top right, rgba(220, 162, 74, 0.16), transparent 24%);
  background-position: center, top right;
  background-size: auto, auto;
  box-shadow: 0 22px 44px rgba(9, 19, 29, 0.24);
}

.bulk-search-hero-copy {
  display: grid;
  gap: 10px;
}

.bulk-search-hero-copy .panel-label,
.bulk-search-hero-copy h1,
.bulk-search-hero-copy p {
  color: #f5f7fb;
}

.bulk-search-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
}

.bulk-search-hero-copy p {
  margin: 0;
  max-width: 920px;
  color: rgba(237, 242, 248, 0.84);
  line-height: 1.6;
}

.bulk-search-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.bulk-search-side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 82px;
}

.bulk-search-submitted-box,
.bulk-search-filter-panel {
  display: grid;
  gap: 14px;
  min-height: 100%;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.94));
}

.bulk-search-filter-panel {
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
}

.bulk-search-submitted-heading {
  align-items: center;
  margin-bottom: 2px;
}

.bulk-search-submitted-meta {
  margin: 0;
  color: #687586;
  font-size: 0.84rem;
  text-align: right;
}

.bulk-search-submitted-scroll {
  max-height: 432px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.bulk-search-submitted-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bulk-search-submitted-table th,
.bulk-search-submitted-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eceef2;
  text-align: left;
  vertical-align: middle;
  font-size: 0.84rem;
}

.bulk-search-submitted-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f4f7;
  color: #67707d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bulk-search-submitted-table th:nth-child(1),
.bulk-search-submitted-table td:nth-child(1),
.bulk-search-submitted-table th:nth-child(3),
.bulk-search-submitted-table td:nth-child(3),
.bulk-search-submitted-table th:nth-child(4),
.bulk-search-submitted-table td:nth-child(4),
.bulk-search-submitted-table th:nth-child(5),
.bulk-search-submitted-table td:nth-child(5),
.bulk-search-submitted-table th:nth-child(6),
.bulk-search-submitted-table td:nth-child(6),
.bulk-search-submitted-table th:nth-child(7),
.bulk-search-submitted-table td:nth-child(7) {
  text-align: center;
}

.bulk-search-submitted-table th:nth-child(1),
.bulk-search-submitted-table td:nth-child(1) {
  width: 58px;
}

.bulk-search-submitted-table th:nth-child(2),
.bulk-search-submitted-table td:nth-child(2) {
  width: 38%;
}

.bulk-search-submitted-table th:nth-child(3),
.bulk-search-submitted-table td:nth-child(3),
.bulk-search-submitted-table th:nth-child(4),
.bulk-search-submitted-table td:nth-child(4) {
  width: 74px;
}

.bulk-search-submitted-table th:nth-child(5),
.bulk-search-submitted-table td:nth-child(5),
.bulk-search-submitted-table th:nth-child(6),
.bulk-search-submitted-table td:nth-child(6),
.bulk-search-submitted-table th:nth-child(7),
.bulk-search-submitted-table td:nth-child(7) {
  width: 72px;
}

.bulk-search-submitted-table tbody tr:nth-child(even) td {
  background: #fcfcfc;
}

.bulk-search-submitted-table .stockline-check {
  margin: 0 auto;
}

.bulk-search-row.is-selected td {
  background: #f7f9fc;
}

.bulk-search-match-flag {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef1f5;
  color: #8d98a7;
  font-size: 0.86rem;
  font-weight: 800;
}

.bulk-search-match-flag.is-hit {
  background: rgba(71, 160, 107, 0.16);
  color: #1f7148;
}

.bulk-search-match-flag.is-miss {
  background: rgba(191, 63, 63, 0.12);
  color: #a53c3c;
}

.bulk-search-match-flag.is-muted {
  background: #f3f5f8;
  color: #91a0b1;
}

.bulk-search-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bulk-search-summary-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid #eceef2;
  border-radius: 18px;
  background: #f7f7f7;
}

.bulk-search-summary-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #516174;
}

.bulk-search-summary-card strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.bulk-search-filter-card {
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: center;
}

.bulk-search-filter-row {
  display: grid;
  gap: 10px;
  align-content: start;
}

.bulk-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(20, 27, 37, 0.08);
  border-radius: 999px;
  background: rgba(244, 246, 249, 0.96);
  color: #2e3947;
  font-size: 0.92rem;
  font-weight: 700;
}

.bulk-search-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-strong);
}

.bulk-search-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.bulk-search-table-wrap,
.bulk-search-sub-table-wrap {
  overflow-x: auto;
}

.bulk-search-results-table,
.bulk-search-sub-table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-search-results-table th,
.bulk-search-results-table td,
.bulk-search-sub-table th,
.bulk-search-sub-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eceef2;
  text-align: left;
  vertical-align: middle;
}

.bulk-search-results-table th,
.bulk-search-sub-table th {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e6c7d;
  white-space: nowrap;
}

.bulk-search-results-table td,
.bulk-search-sub-table td {
  font-size: 0.92rem;
}

.bulk-search-results-table tbody tr:nth-child(odd) td {
  background: #fcfcfc;
}

.bulk-search-sub-row td {
  padding: 0 0 14px;
  border-bottom: 1px solid #eceef2;
}

.bulk-search-sub-table {
  margin-top: 2px;
  border: 1px solid #eceef2;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.bulk-search-sub-table th,
.bulk-search-sub-table td {
  padding: 10px 12px;
}

.bulk-search-sub-table th {
  background: #f7f7f7;
}

.bulk-search-empty-cell,
.bulk-search-sub-empty {
  padding: 26px 18px;
  color: #5f6d7e;
  text-align: center;
}

.bulk-search-sub-empty {
  border: 1px dashed #d8dfea;
  border-radius: 18px;
  background: #fafbfc;
}

.bulk-search-result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.bulk-search-result-pill.is-good {
  background: rgba(243, 154, 52, 0.14);
  color: #a85f11;
}

.bulk-search-result-pill.is-warn {
  background: rgba(91, 135, 203, 0.12);
  color: #476fae;
}

.bulk-search-result-pill.is-error {
  background: #eef1f5;
  color: #596371;
}

.bulk-search-dim,
.bulk-search-match-copy small {
  color: #6a7888;
}

.bulk-search-match-copy {
  display: grid;
  gap: 4px;
}

.bulk-search-match-copy strong {
  font-size: 0.95rem;
}

.bulk-search-match-copy small {
  font-size: 0.78rem;
}

.bulk-status-banner {
  margin-bottom: 18px;
}

.bulk-search-return {
  text-decoration: none;
}

.bulk-search-edit-link {
  justify-self: start;
  min-width: 152px;
  text-align: center;
  text-decoration: none;
}

.bulk-search-cart-summary {
  cursor: default;
}

.bulk-search-results-surface {
  gap: 16px;
}

.bulk-results-summary {
  margin-bottom: 2px;
}

.bulk-add-cart-button {
  min-width: 132px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  justify-content: center;
}

@media (max-width: 980px) {
  .bulk-search-review-layout {
    grid-template-columns: 1fr;
  }

  .bulk-search-side-panel {
    padding-top: 0;
  }

  .bulk-search-filter-actions {
    justify-content: flex-start;
  }

  .bulk-search-submitted-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .bulk-search-page {
    padding: 18px 16px 28px;
  }

  .bulk-search-card {
    padding: 18px;
  }

  .bulk-search-submitted-table th,
  .bulk-search-submitted-table td {
    padding: 9px 10px;
    font-size: 0.84rem;
  }
}
