:root {
  --ink: #172536;
  --muted: #607286;
  --navy: #142033;
  --blue: #245f96;
  --soft: #edf3f8;
  --line: rgba(27, 45, 65, .12);
  --gold: #f4a71d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.wrap {
  width: min(1840px, calc(100vw - 64px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: #d8e7f3;
  font-size: 14px;
}

.topbar-inner {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar a {
  text-decoration: none;
  font-weight: 800;
}

.topbar a:first-of-type { margin-left: auto; }

.site-header {
  background: #f5f9fc;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: 240px minmax(380px, 680px) 250px;
  gap: 42px;
  align-items: center;
}

.site-header-inner.simple {
  grid-template-columns: 240px 1fr;
}

.nav {
  background: #203348;
  color: #fff;
}

.nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 128px;
  height: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9edf8;
  color: var(--blue);
  font-weight: 800;
  box-shadow: inset 0 0 0 8px #eef8fd;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong { font-size: 24px; }
.brand small { color: var(--muted); font-weight: 700; }

.site-search {
  display: grid;
  grid-template-columns: 190px 1fr 104px;
  box-shadow: 0 10px 28px rgba(31, 52, 73, .08);
}

.site-search select,
.site-search input,
.site-search button {
  border-radius: 0;
  min-height: 46px;
}

.site-search select,
.site-search input {
  border: 1px solid var(--line);
  background: #fff;
}

.site-search button {
  background: #58c92e;
  color: #fff;
}

.callout {
  justify-self: end;
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-weight: 800;
}

.callout span {
  color: var(--muted);
}

.nav-links { display: flex; gap: 30px; font-weight: 800; }
.nav-links a { text-decoration: none; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.category-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 18px);
  z-index: 20;
  width: min(1120px, calc(100vw - 64px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 26px;
  padding: 26px;
  border: 1px solid rgba(23,37,54,.12);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20,32,51,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.category-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}

.has-menu:hover .category-menu,
.has-menu:focus-within .category-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-menu a {
  display: block;
  padding: 7px 0;
  border-radius: 6px;
  color: #546779;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.category-menu a:hover {
  background: transparent;
  color: #0d5c9e;
}

.mega-group {
  min-width: 0;
}

.category-menu .mega-title {
  margin-bottom: 8px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(23,37,54,.12);
  color: #102b42;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-link {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  background: var(--navy);
  padding: 32px 0 38px;
}

.hero-slide {
  min-height: 560px;
  width: min(1840px, calc(100vw - 64px));
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(20, 32, 51, .24);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241,247,251,.97) 0%, rgba(241,247,251,.88) 30%, rgba(241,247,251,.22) 50%, rgba(241,247,251,0) 64%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 88px 0 0 70px;
}

.eyebrow,
.hero-copy .eyebrow {
  margin: 0 0 16px;
  color: #0d5c9e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 3.1vw, 58px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 560px;
  color: #405264;
  font-size: 18px;
  line-height: 1.7;
}

.hero-finder {
  width: min(560px, 100%);
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(23,37,54,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 40px rgba(20,32,51,.12);
}

.hero-finder strong {
  display: block;
  margin-bottom: 10px;
  color: #102b42;
  font-size: 14px;
}

.hero-finder form {
  display: grid;
  grid-template-columns: 1fr 138px;
  gap: 8px;
}

.hero-finder input,
.hero-finder button {
  min-height: 42px;
  border-radius: 5px;
}

.actions { display: flex; gap: 12px; margin-top: 26px; }

button,
.button,
.ghost-button {
  border: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.secondary,
.ghost-button {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 52px 0 28px;
}

.service-strip article {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 94px;
  padding: 22px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f7fbff);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(21,39,59,.1);
}

.service-strip span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(244,167,29,.13);
}

.service-strip strong { font-size: 18px; }
.service-strip p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }

.buyer-tools {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 16px;
  margin-top: -14px;
  position: relative;
  z-index: 2;
}

.buyer-search-card,
.buyer-tool {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(23,37,54,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(30,48,67,.1);
  text-decoration: none;
}

.buyer-search-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.12;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-searches button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(36,95,150,.18);
  background: #f2f7fb;
  color: #245f96;
  font-size: 12px;
}

.buyer-tool {
  display: grid;
  align-content: center;
  gap: 8px;
  color: #172536;
}

.buyer-tool strong {
  font-size: 19px;
  line-height: 1.1;
}

.buyer-tool span {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.section { padding: 42px 0 48px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section h2,
.quote-band h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.section p { margin: 0; color: var(--muted); font-weight: 600; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(30,48,67,.08);
}

.category-card .photo {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.category-card .label {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #d9edf8 0%, #b9dff2 100%);
  color: #143047;
  padding: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-align: center;
}

.category-card .label strong {
  font-size: 14px;
}

.category-card .label span {
  color: #466174;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.product-controls {
  display: grid;
  grid-template-columns: 210px 190px 160px;
  gap: 10px;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.empty-products {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(30,48,67,.08);
}

.product-card .photo {
  height: 220px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
}

.product-card .content { padding: 18px; }
.product-category {
  margin: 0 0 8px;
  color: #245f96;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.product-card h3 { margin: 0 0 10px; font-size: 18px; min-height: 44px; }
.price { color: #0d5c9e; font-weight: 800; }
.product-specs,
.modal-specs {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.product-specs div,
.modal-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(23,37,54,.08);
}

.product-specs dt,
.modal-specs dt {
  color: #728294;
  font-size: 12px;
  font-weight: 800;
}

.product-specs dd,
.modal-specs dd {
  margin: 0;
  color: #172536;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { padding: 6px 8px; background: #edf3f8; border-radius: 4px; color: var(--muted); font-weight: 700; font-size: 12px; }
.small-button {
  margin-top: 16px;
  min-height: 38px;
  background: #d9edf8;
  color: #143047;
  width: 100%;
}

.solutions-band {
  background: #f7fbff;
  border-block: 1px solid var(--line);
  padding: 48px 0 54px;
}

.solution-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.solution-grid article,
.process-grid article {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(30,48,67,.07);
}

.solution-grid strong,
.process-grid strong {
  display: block;
  font-size: 21px;
  margin-bottom: 12px;
}

.solution-grid p,
.process-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
}

.process {
  padding: 20px 0 58px;
}

.process-grid article span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9edf8, #a9d5ec);
  color: #143047;
  font-weight: 800;
}

.quote-band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  align-items: start;
}

.quote-layout p { color: #c8d7e7; font-size: 17px; line-height: 1.7; }

.quote-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

textarea { min-height: 112px; resize: vertical; }

.quote-form p { margin: 0; color: var(--blue); font-weight: 800; }

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(23,37,54,.08);
  padding: 48px 0 0;
}

.footer-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 56px;
}

.footer-trust article {
  min-height: 168px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border: 2px solid #24415c;
  text-align: center;
}

.footer-trust strong {
  display: block;
  max-width: 260px;
  margin-bottom: 20px;
  color: #102b42;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
}

.footer-trust p {
  max-width: 320px;
  margin: 0;
  color: #43576b;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr .8fr .9fr 1fr 1.35fr;
  gap: 42px;
  padding: 46px 0 58px;
  border-top: 1px solid rgba(23,37,54,.08);
}

.footer-main h3 {
  margin: 0 0 18px;
  color: #102b42;
  font-size: 22px;
  line-height: 1.1;
}

.footer-main a,
.footer-main p {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 650;
}

.site-footer a {
  text-decoration: none;
}

.footer-copy {
  padding: 20px;
  border-top: 1px solid rgba(23,37,54,.08);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.site-page {
  padding: 54px 0 72px;
}

.site-page-card {
  max-width: 980px;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(30,48,67,.1);
}

.site-page-card h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.08;
}

.site-page-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 21, 35, .58);
}

.product-modal.hidden { display: none; }

.product-modal-card {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  min-height: 36px;
  background: #fff;
  border: 1px solid var(--line);
}

.modal-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 34px;
}

.modal-photo {
  min-height: 420px;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f7fbff;
}

.modal-product h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
}

.modal-product p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 600;
}

.modal-price {
  color: #0d5c9e !important;
  font-size: 22px;
  font-weight: 800 !important;
}

.admin-body { background: #eaf1f7; color: var(--ink); }
.portal-brand-header {
  width: min(1280px, calc(100vw - 48px));
  margin: 28px auto 0;
  padding: 16px 0 4px;
}
.admin-brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.admin-brand-bar nav {
  display: flex;
  gap: 16px;
  font-weight: 800;
  font-size: 13px;
}
.admin-brand-bar nav a { color: #375269; text-decoration: none; }
.admin-brand-bar nav a:hover { color: var(--blue); }
.portal-brand-header a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.portal-brand-header img {
  display: block;
  width: 150px;
  height: auto;
}
.admin-shell { width: min(1500px, calc(100vw - 48px)); margin: 18px auto 48px; }
.admin-login,
.admin-app {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 46px rgba(30,48,67,.12);
}
.admin-login { max-width: 460px; margin: 0 auto; }
.admin-login form { display: grid; gap: 12px; }
.hidden { display: none; }
.admin-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.admin-head h1 { margin: 0; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-status { min-height: 22px; color: #0b66a4; font-weight: 800; }
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 96px);
  padding: 18px 14px;
  border: 1px solid rgba(24, 48, 70, .14);
  border-radius: 10px;
  background: linear-gradient(180deg, #132438 0%, #173657 100%);
  box-shadow: 0 18px 42px rgba(20, 32, 51, .16);
}
.admin-sidebar-brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 8px 8px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #d9edf8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-sidebar-brand img {
  width: 132px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
}
.admin-content {
  min-width: 0;
}
.tradms-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 18px;
  border: 1px solid #20b94a;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#17dc3c, #08bd2e);
  box-shadow: inset 0 1px rgba(255,255,255,.45);
  overflow: hidden;
}
.tradms-nav button {
  width: auto;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  padding: 12px 18px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}
.tradms-nav button:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.tradms-nav button.active {
  background: #fff;
  color: #111;
  border-radius: 3px 3px 0 0;
  box-shadow: none;
}
.tradms-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 18px;
  border: 1px solid #d9dde1;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#fff, #f3f3f3);
}
.tradms-subnav button {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}
.tradms-subnav button:hover {
  background: transparent;
  color: #0076c5;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.admin-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}
.admin-stats strong { display: block; font-size: 32px; line-height: 1; color: var(--blue); }
.admin-stats span { display: block; margin-top: 8px; color: var(--muted); font-weight: 800; }
.admin-home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.dashboard-main,
.dashboard-side > div,
.profile-card {
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 58, 78, .07);
}
.dashboard-main { padding: 18px; }
.dashboard-breadcrumb {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-left: 4px solid #4bd10d;
  background: #f5faf2;
  color: #2265a8;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}
.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fbfd, #ffffff);
  color: #344b5f;
  font-size: 15px;
  font-weight: 900;
}
.dashboard-welcome small {
  color: #6b7f90;
  font-size: 12px;
  font-weight: 700;
}
.dashboard-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-row {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 13px;
}
.dashboard-row span { color: #4c5f70; font-weight: 900; }
.dashboard-row-sales {
  border-color: #c7e9ba;
  background: #f7fcf4;
}
.dashboard-row-danger {
  border-color: #f0c3bd;
  background: #fff8f7;
}
.dashboard-row-missing-artwork,
.dashboard-row-missing-sample,
.dashboard-row-missing-bulk,
.dashboard-row-missing-shipping {
  border-color: #d8e4f0;
  background: #f8fbff;
}
.dashboard-number {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #2265a8;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}
.dashboard-number-danger {
  color: #c63124;
}
.dashboard-action {
  justify-self: start;
  border: 1px solid #cbd8e2;
  border-radius: 4px;
  background: linear-gradient(#fff, #eef4f8);
  color: #2265a8;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.dashboard-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}
.dashboard-shortcuts button,
.user-summary-card button {
  border: 1px solid #cfd8df;
  border-radius: 4px;
  background: linear-gradient(#fff, #edf3f7);
  color: #0076c5;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dashboard-panels article {
  padding: 14px;
  border: 1px solid #e2e9ef;
  border-radius: 6px;
  background: #fbfdff;
}
.dashboard-panels h3,
.today-summary-card h3 {
  margin: 0 0 12px;
  color: #30475b;
  font-size: 15px;
}
.progress-line {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 6px;
  color: #536a7e;
  font-size: 13px;
  font-weight: 800;
}
.progress-bar {
  height: 20px;
  border-radius: 5px;
  background: #d8dde2;
  overflow: hidden;
}
.progress-bar i { display: block; height: 100%; background: linear-gradient(#8ed34f, #4baf27); }
.progress-bar.muted i { background: #aeb8c0; }
.mini-chart svg { width: 100%; height: 140px; display: block; }
.dashboard-side { display: grid; gap: 12px; }
.dashboard-side > div { padding: 14px; }
.user-summary-card strong {
  display: block;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #d6e6f2;
  border-radius: 6px;
  background: #f6fbff;
  color: #142235;
  font-size: 15px;
}
.user-summary-card p,
.today-summary-card p {
  margin: 8px 0;
  color: #3e5264;
  font-size: 13px;
  font-weight: 800;
}
.today-summary-card strong { float: right; color: #142235; font-size: 14px; }
.today-summary-card span {
  color: #0076c5;
  font-size: 13px;
}
.profile-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.profile-card { padding: 16px; }
.profile-card h2 { margin: 0 0 12px; font-size: 17px; }
.tradms-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tradms-module-grid button {
  border: 1px solid #cfd8df;
  border-radius: 4px;
  background: linear-gradient(#fff, #edf3f7);
  color: #0076c5;
  padding: 12px;
  font-weight: 900;
  cursor: pointer;
}
.product-admin-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.product-mode-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  border-bottom: 1px solid #d8e1e8;
}

.product-mode-tabs button {
  border: 1px solid #d8e1e8;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f5f9fc;
  color: #0076c5;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

.product-mode-tabs button.active {
  background: #fff;
  color: #142235;
}

.product-admin-layout.product-mode-list {
  grid-template-columns: 1fr;
}

.product-admin-layout.product-mode-form {
  grid-template-columns: minmax(320px, 560px);
}

.product-admin-layout.product-mode-list .product-admin-form,
.product-admin-layout.product-mode-form .product-admin-list {
  display: none;
}

.product-admin-form,
.product-admin-list {
  padding: 18px;
  border: 1px solid #d8e1e8;
  border-radius: 6px;
  background: #fbfdff;
}

.product-admin-form {
  display: grid;
  gap: 10px;
}

.product-1688-import,
.product-publish-options {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #bfd8ea;
  border-radius: 6px;
  background: #f3fbff;
}

.product-1688-import strong,
.product-publish-options strong {
  color: #12639a;
  font-size: 13px;
}

.product-1688-import p,
.product-1688-import small {
  margin: 0;
  color: #5b7184;
  font-size: 12px;
  font-weight: 700;
}

.product-1688-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.product-1688-row button {
  border: 0;
  border-radius: 4px;
  background: #f4a51c;
  color: #142235;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.product-publish-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fffaf0;
}

.product-publish-options strong {
  grid-column: 1 / -1;
}

.product-publish-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #30475b;
  font-size: 13px;
  font-weight: 800;
}

.product-admin-form h3,
.product-admin-list h3 {
  margin: 0 0 8px;
  color: #30475b;
}

.product-upload-field {
  display: grid;
  gap: 6px;
  color: #536a7e;
  font-weight: 800;
}

.product-price-grid,
.product-sage-fields,
.product-internal-fields {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #a9c5d8;
  border-radius: 6px;
  background: #eef8fd;
}

.product-price-grid strong,
.product-sage-fields strong,
.product-internal-fields strong {
  color: #12639a;
  font-size: 13px;
}

.product-price-grid p,
.product-sage-fields p {
  margin: 0;
  color: #5b7184;
  font-size: 12px;
  font-weight: 700;
}

.product-tier-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.product-tier-row span {
  color: #536a7e;
  font-size: 12px;
  font-weight: 900;
}

.product-tier-head {
  padding-bottom: 2px;
}

.product-sage-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-sage-fields strong,
.product-sage-fields p {
  grid-column: 1 / -1;
}

.product-admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-product-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e9ef;
}

.admin-product-thumb {
  width: 76px;
  height: 76px;
  border: 1px solid #e2e9ef;
  border-radius: 4px;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.admin-product-item strong {
  display: block;
  color: #142235;
}

.admin-product-item p,
.admin-product-item small {
  display: block;
  margin: 5px 0 0;
  color: #536a7e;
  font-weight: 700;
}

.product-factory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.product-tier-list {
  margin-top: 7px;
  color: #0067a8;
  font-size: 12px;
  font-weight: 900;
}

.product-sage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.product-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.product-action-row button {
  border: 1px solid #cfd8df;
  border-radius: 4px;
  background: linear-gradient(#fff, #edf3f7);
  color: #0076c5;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.product-action-row button.danger {
  color: #a33b35;
}

.product-factory-meta span,
.product-factory-meta a,
.product-sage-meta span {
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef8fd;
  color: #36596f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.pi-manager-board {
  margin-top: 18px;
  border: 1px solid #d8e1e8;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 55, 75, .08);
}
.pi-crumb {
  padding: 14px 18px;
  color: #0076c5;
  font-size: 22px;
  font-weight: 900;
}
.pi-manager-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 3px solid #05d74f;
}
.pi-manager-actions button,
.pi-filter-bar button,
.pi-subbar button,
.pi-pager button,
.pi-actions-cell button {
  border: 1px solid #cfd8df;
  border-radius: 3px;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  font-weight: 900;
  cursor: pointer;
}
.pi-manager-actions button { padding: 10px 18px; font-size: 16px; }
#piTotalBadge {
  margin: 0 auto;
  padding: 10px 26px;
  border-radius: 5px 5px 0 0;
  background: #05d74f;
  color: #fff;
  font-size: 18px;
}
.pi-tabs-inline { display: flex; gap: 6px; }
.pi-tabs-inline button.active {
  background: #05d74f;
  border-color: #05d74f;
  color: #fff;
}
.pi-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 18px;
  background: #f4f8fb;
  border-bottom: 1px solid #d8e1e8;
  font-size: 14px;
}
.pi-filter-bar label { display: inline-flex; align-items: center; gap: 6px; color: #546371; font-weight: 800; white-space: nowrap; }
.pi-filter-bar input,
.pi-filter-bar select,
.pi-subbar select,
.pi-pager input {
  width: auto;
  height: 34px;
  min-height: 34px;
  border: 1px solid #aeb8c0;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  padding: 0 10px;
}
.pi-filter-bar input[name="keyword"] { width: 230px; }
.pi-filter-bar #piScopeSelect { width: 196px; min-width: 196px; }
.pi-filter-bar #piUserSelect { width: 148px; min-width: 148px; }
.pi-filter-bar #piFinishedFilter,
.pi-filter-bar #piReceiveFilter,
.pi-filter-bar #piPayFilter,
.pi-filter-bar #piInvoiceFilter { width: 118px; min-width: 118px; }
.pi-filter-bar button { padding: 8px 16px; font-size: 14px; }
.pi-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: linear-gradient(#f8f8f8, #e9ecef);
  border-bottom: 1px solid #d8e1e8;
  color: #546371;
  font-weight: 800;
}
.pi-subbar > div {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.pi-subbar select {
  width: auto;
  min-width: 108px;
  max-width: 142px;
  padding: 0 8px;
}
.pi-subbar button { padding: 6px 11px; }
.pi-scope-switch {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}
.pi-scope-switch button {
  min-width: 72px;
  border: 1px solid #cbd4dc;
  background: linear-gradient(#fff, #edf2f5);
  color: #0076c5;
}
.pi-scope-switch button.active {
  background: #fff;
  color: #142235;
  font-weight: 900;
}
.pi-table-wrap {
  overflow-x: visible;
  overflow-y: visible;
}
.pi-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.pi-table th {
  padding: 6px 8px;
  border-bottom: 1px solid #d8e1e8;
  color: #56606a;
  text-align: left;
  white-space: nowrap;
}
.pi-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5ebef;
  color: #354b5e;
  vertical-align: middle;
}
.pi-table th:nth-child(1),
.pi-table td:nth-child(1) { width: 42px; }
.pi-table th:nth-child(2),
.pi-table td:nth-child(2) { width: 118px; }
.pi-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pi-table th:nth-child(3),
.pi-table td:nth-child(3) { width: 210px; }
.pi-table th:nth-child(4),
.pi-table td:nth-child(4) { width: 112px; }
.pi-table th:nth-child(5),
.pi-table td:nth-child(5) { width: 92px; }
.pi-table th:nth-child(6),
.pi-table td:nth-child(6) { width: 108px; }
.pi-table th:nth-child(7),
.pi-table td:nth-child(7) { width: 90px; }
.pi-link {
  border: 0;
  background: transparent;
  color: #0076c5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.pi-user { color: #0076c5; font-weight: 800; }
.pi-status-cell {
  width: 220px;
  min-width: 220px;
  line-height: 1.35;
}
.pi-actions-cell {
  min-width: 180px;
  width: 180px;
}
.pi-actions-cell button {
  margin: 3px 4px 3px 0;
  padding: 5px 10px;
  font-size: 14px;
}
#piTableBody .pi-actions-cell {
  min-width: 282px;
  width: 282px;
  display: grid;
  grid-template-columns: 58px 96px 78px;
  gap: 3px 5px;
  align-content: start;
  position: relative;
}
#piTableBody .pi-actions-cell button {
  width: auto;
  min-height: 24px;
  margin: 0;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.pi-empty { text-align: center; color: #778999; }
.pi-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(#f7f7f7, #e8e8e8);
  color: #596774;
  font-weight: 800;
}
.pi-pager button { padding: 5px 9px; }
.pi-pager input { width: 58px; text-align: center; }
.pi-detail-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100vw;
  height: 100vh;
  padding: 28px 32px;
  overflow: auto;
  background: rgba(17, 32, 51, .32);
  box-shadow: none;
}
.pi-detail-drawer > button {
  position: fixed;
  top: 20px;
  right: calc((100vw - min(1180px, 94vw)) / 2 + 12px);
  z-index: 3;
  border: 0;
  background: #eef6fb;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 24px;
  cursor: pointer;
}
#piDetailContent {
  width: min(1180px, 94vw);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: 24px 28px 34px;
  border: 1px solid #d7e1e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 38, 58, .24);
}
.pi-view-page {
  color: #34495d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.pi-view-crumb {
  margin: 6px 0 18px;
  color: #0076c5;
  font-size: 20px;
  font-weight: 900;
}
.pi-view-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d7d7d7;
}
.pi-view-toolbar button {
  min-width: 88px;
  border: 1px solid #cfd8df;
  border-radius: 3px;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  padding: 8px 16px;
  font-weight: 900;
  cursor: pointer;
}
.pi-view-section {
  border-bottom: 1px solid #ddd;
}
.pi-view-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 5px 10px;
  background: linear-gradient(#fefefe, #e8e8e8);
  color: #4b5964;
  font-size: 14px;
  font-weight: 900;
}
.pi-view-section h3 span {
  color: #9ca3aa;
  font-size: 24px;
  line-height: 1;
}
.pi-view-section-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 26px;
  padding: 8px 10px;
}
.pi-view-section-body p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  margin: 0;
  min-height: 20px;
}
.pi-view-section-body p.wide {
  grid-column: 1 / -1;
}
.pi-view-section-body strong {
  color: #3e4d5a;
  font-weight: 700;
}
.pi-view-section-body span {
  color: #34495d;
  word-break: break-word;
}
.pi-view-product {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 26px;
}
.pi-view-product p {
  display: grid;
  grid-template-columns: 90px 1fr;
}
.pi-view-product p.wide {
  grid-column: 1 / -1;
}
.pi-view-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pi-view-tabs button {
  border: 1px solid #d5dce3;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  padding: 7px 12px;
  font-weight: 900;
}
.pi-view-tabs button.active {
  background: #fff;
  color: #111827;
  border-bottom-color: #fff;
}
.pi-view-tab-panels {
  grid-column: 1 / -1;
}
.pi-view-tab-panel {
  display: none;
}
.pi-view-tab-panel.active {
  display: block;
}
.pi-view-empty {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border: 1px solid #a7b8f2;
  background: #dfe7ff;
  color: #52607a;
}
.pi-view-receipt-table {
  grid-column: 1 / -1;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.pi-view-related-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.pi-view-receipt-table th,
.pi-view-receipt-table td,
.pi-view-related-table th,
.pi-view-related-table td {
  border-bottom: 1px solid #d7dde5;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.pi-view-receipt-table th,
.pi-view-related-table th {
  background: linear-gradient(#fff, #eef2f5);
  color: #4b5d70;
  font-weight: 900;
}
.pi-view-related-table a {
  color: #0076c5;
  font-weight: 800;
}
.pi-update-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 21, 35, .55);
}
.pi-update-dialog.hidden {
  display: none;
}
.pi-update-dialog-card {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.pi-update-dialog-card h3 {
  margin: 0 0 6px;
}
.pi-update-dialog-card label {
  display: grid;
  gap: 6px;
  color: #536a7e;
  font-weight: 800;
}
.pi-update-dialog-card textarea {
  min-height: 96px;
}
.pi-tracking-fields {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
}
.report-filter-bar {
  margin-top: 0;
  padding: 8px 10px;
  align-items: center;
  border-top: 3px solid #58d231;
  background: #f3f6fa;
}
.report-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}
.report-layout-simple {
  border-top: 1px solid #d8e2ea;
}
.report-card {
  border: 0;
  background: #fff;
}
.report-card-wide {
  grid-column: 1 / -1;
}
.report-card h3 {
  margin: 0;
  padding: 7px 8px;
  background: linear-gradient(#fff, #eeeeee);
  border-bottom: 1px solid #dcdcdc;
  color: #0f3556;
  font-size: 13px;
}
.report-card > div {
  max-height: 520px;
  overflow: auto;
}
.report-table {
  width: 100%;
  font-size: 13px;
}
.report-table th,
.report-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #e2e2e2;
  white-space: nowrap;
}
.report-table th {
  color: #455766;
  background: #fff;
  font-weight: 800;
}
.report-tabs-inline {
  margin-left: auto;
}
.report-tabs-inline button {
  min-width: 96px;
}
.staff-manager {
  margin-top: 12px;
}
.org-chart-board {
  margin-top: 12px;
  border: 1px solid #d8e2ea;
  background: #fff;
  padding: 18px;
}
.org-chart {
  display: grid;
  gap: 12px;
}
.org-level {
  display: flex;
  justify-content: center;
}
.org-connector {
  width: 1px;
  height: 18px;
  margin: 0 auto;
  background: #c7d3df;
}
.org-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.org-team-card,
.org-row-section {
  border: 1px solid #d8e2ea;
  background: #f8fbfd;
  padding: 10px;
}
.org-team-card h3,
.org-row-section h3 {
  margin: 0 0 8px;
  color: #0f3556;
  font-size: 14px;
}
.org-person {
  min-width: 160px;
  border: 1px solid #cbd8e4;
  background: #fff;
  padding: 8px 10px;
}
.org-level-owner .org-person {
  border-color: #58d231;
}
.org-level-supervisor .org-person {
  border-color: #8bb8e8;
}
.org-person strong,
.org-person span,
.org-person small {
  display: block;
}
.org-person strong {
  color: #163a5a;
  font-size: 14px;
}
.org-person span {
  margin-top: 2px;
  color: #2771c7;
  font-size: 12px;
  font-weight: 800;
}
.org-person small {
  margin-top: 2px;
  color: #66788a;
  font-size: 12px;
}
.org-team-members {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  padding-left: 18px;
  border-left: 2px solid #dbe5ee;
}
.org-row-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.staff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #d8e2ea;
  border-bottom: 0;
  background: linear-gradient(#fff, #eef2f5);
}
.staff-toolbar strong {
  color: #0f3556;
  font-size: 15px;
}
.staff-toolbar span {
  color: #60758a;
  font-weight: 800;
}
.staff-add-form {
  display: grid;
  grid-template-columns: 1fr 1fr 150px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d8e2ea;
  border-bottom: 0;
  background: #f8fbfd;
}
.staff-add-form input,
.staff-add-form select {
  min-width: 0;
  height: 34px;
  border: 1px solid #bfccd7;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 13px;
}
.staff-add-form button {
  height: 34px;
  border: 1px solid #cfd8df;
  border-radius: 3px;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
.staff-table th,
.staff-table td {
  border: 1px solid #d8e2ea;
  padding: 9px 10px;
  text-align: left;
}
.staff-table th {
  background: #f8fbfd;
  color: #4b5d70;
}
.staff-table button {
  border: 1px solid #cfd8df;
  border-radius: 3px;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  padding: 6px 10px;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 900px) {
  .report-summary-grid,
  .report-layout {
    grid-template-columns: 1fr;
  }
}
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding-top: 90px;
  background: rgba(15, 23, 42, 0.28);
}
.tradms-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #fff;
  border: 1px solid #bfc8d2;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}
.tradms-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(#ffffff, #e9edf2);
  border-bottom: 1px solid #cbd3dc;
}
.tradms-dialog h2 {
  margin: 0;
  font-size: 18px;
  color: #0076c5;
}
.vpo-request-dialog {
  width: min(920px, calc(100vw - 32px));
}
.tradms-dialog h3 {
  margin: 12px 12px 4px;
  padding: 7px 10px;
  background: linear-gradient(#fff, #eef2f5);
  border: 1px solid #d7dde5;
  color: #4b5563;
  font-size: 14px;
}
.tradms-dialog header button {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.tradms-dialog table {
  width: 100%;
  border-collapse: collapse;
}
.tradms-dialog th {
  width: 118px;
  padding: 9px 10px;
  text-align: right;
  vertical-align: top;
  color: #4b5563;
  font-size: 14px;
}
.tradms-dialog td {
  padding: 7px 10px;
}
.tradms-dialog input,
.tradms-dialog select,
.tradms-dialog textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #bfc8d2;
  padding: 6px 8px;
  font-size: 14px;
  font-family: inherit;
}
.tradms-dialog tr.hidden {
  display: none;
}
.tradms-dialog input[readonly],
.tradms-dialog .readonly-bank input {
  background: #f5f7fa;
  color: #4b5563;
}
.tradms-dialog textarea {
  resize: vertical;
}
.tradms-dialog footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
}
.tradms-dialog footer button {
  min-width: 88px;
  border: 1px solid #c5ced8;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  padding: 8px 14px;
  font-weight: 900;
  cursor: pointer;
}
.tradms-dialog footer button[type="submit"] {
  background: #00cc44;
  color: #fff;
  border-color: #00b83d;
}
.pi-detail-drawer > button {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: #eef6fb;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 24px;
  cursor: pointer;
}
.pi-detail-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}
.pi-detail-grid dt { color: #65798b; font-weight: 900; }
.pi-detail-grid dd { margin: 0; font-weight: 800; color: #142235; }
.pi-update-item {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.pi-customer-visible-list {
  display: grid;
  gap: 10px;
}
.pi-admin-update-media img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d8e3ec;
  background: #eef4f8;
}
.pi-update-links {
  margin-top: 6px;
}
.pi-tracking-summary {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.pi-tracking-summary p {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  color: #33475b;
}
.pi-tracking-timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid #dce7ef;
}
.pi-tracking-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  padding: 8px 0 8px 0;
  border-bottom: 1px solid #edf3f7;
  font-size: 12px;
  color: #34495e;
}
.pi-tracking-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #54d334;
  box-shadow: 0 0 0 3px #e5f8df;
}
.pi-tracking-timeline strong,
.pi-tracking-timeline span,
.pi-tracking-timeline small {
  display: block;
}
.pi-tracking-timeline strong {
  font-size: 12px;
  color: #213447;
}
.pi-tracking-timeline span,
.pi-tracking-timeline small {
  margin-top: 2px;
  color: #60758a;
}
.pi-tracking-frame {
  width: 100%;
  min-height: 360px;
  margin-top: 8px;
  border: 1px solid #cfdbe6;
  border-radius: 6px;
  background: #fff;
}
.pi-visible-document-item {
  grid-template-columns: 64px 1fr;
}
.pi-visible-doc-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #b9d7ee;
  border-radius: 6px;
  background: #eef8ff;
  color: #276eb8;
  font-weight: 900;
}
.pi-edit-dialog {
  max-width: 1040px;
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.pi-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pi-edit-form section {
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  padding: 10px;
  background: #f8fbfd;
}
.pi-edit-form label {
  display: grid;
  gap: 4px;
  margin: 7px 0;
}
.pi-edit-form .wide {
  grid-column: 1 / -1;
}
.pi-edit-form input,
.pi-edit-form textarea {
  width: 100%;
}
.pi-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pi-status-text {
  display: inline-block;
  color: #354b5e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.pi-status-tag {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf6fb;
  color: #31536c;
  border: 1px solid #cfe4f1;
  font-size: 12px;
  font-weight: 900;
}
.pi-preview-actions {
  position: sticky;
  top: -28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: -28px -28px 18px;
  padding: 16px 28px;
  border-bottom: 1px solid #dce5ec;
  background: rgba(255,255,255,.96);
}
.pi-preview-actions button,
.pi-preview-actions a {
  border: 1px solid #cfd8df;
  border-radius: 4px;
  background: linear-gradient(#fff, #edf3f7);
  color: #0076c5;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.pi-preview-actions button:first-child {
  background: #f4a71d;
  border-color: #f4a71d;
  color: #142235;
}
.pi-form-preview {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  padding: .32in .42in;
  border: 1px solid #cfd8df;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.15;
}
.pi-form-head {
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: center;
  border-bottom: 1px solid #000;
  padding-bottom: 8px;
}
.pi-form-logo img {
  display: block;
  width: 260px;
  max-width: 90%;
  height: auto;
}
.pi-form-company h1 {
  margin: 0 0 22px;
  font-size: 29px;
  line-height: 1;
  font-weight: 900;
}
.pi-form-company p {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 900;
}
.pi-form-company p:last-child {
  display: flex;
  gap: 22px;
  margin-bottom: 0;
}
.pi-form-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 6px 92px 2px;
}
.pi-form-col p {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: start;
  min-height: 23px;
  margin: 0;
  text-align: center;
}
.pi-form-col strong {
  text-align: right;
  padding-right: 9px;
  font-size: 14px;
  font-weight: 900;
}
.pi-form-col span {
  display: block;
  text-align: center;
  word-break: break-word;
}
.pi-form-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 2px;
  font-size: 14px;
}
.pi-form-table th,
.pi-form-table td {
  border: 1px solid #000;
  padding: 2px 4px;
  color: #000;
  text-align: center;
  vertical-align: middle;
}
.pi-form-table th {
  font-size: 14px;
  font-weight: 900;
}
.pi-form-table th:nth-child(1) { width: 21%; }
.pi-form-table th:nth-child(2) { width: 44%; }
.pi-form-table th:nth-child(3) { width: 11%; }
.pi-form-table th:nth-child(4) { width: 12%; }
.pi-form-table th:nth-child(5) { width: 12%; }
.pi-form-table tbody tr:first-child td {
  min-height: 54px;
  height: 54px;
}
.pi-form-table td:nth-child(2) {
  text-align: center;
  word-break: break-word;
}
.pi-form-total-label {
  text-align: right !important;
  font-weight: 900;
}
.pi-form-remark {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  font-size: 16px;
  font-weight: 900;
}
.pi-form-sign {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #000;
  padding: 2px 0 8px;
  font-size: 14px;
}
.pi-form-sign div {
  min-height: 34px;
}
.pi-form-sign strong {
  display: block;
  margin-bottom: 12px;
  font-weight: 900;
}
.pi-form-sign span {
  display: block;
  text-align: center;
}
.pi-form-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px;
  border: 1px dashed #bfc8d0;
  color: #333;
}
.pi-form-status strong { font-weight: 900; }
.pi-form-terms h2,
.pi-form-payment h2 {
  margin: 8px 0 4px;
  font-size: 17px;
  line-height: 1;
}
.pi-form-terms p,
.pi-form-payment p {
  margin: 0 0 5px;
  color: #000;
  font-size: 14px;
}
.pi-print-page {
  background: #fff;
}
.pi-print-page .pi-print-preview {
  margin: 0 auto;
  border: 0;
}

@media print {
  @page { size: Letter; margin: .22in; }
  body.pi-print-page { margin: 0; background: #fff; }
  .pi-print-page .pi-print-preview {
    width: auto;
    min-height: auto;
    padding: 0;
    font-size: 10.5px;
    line-height: 1.05;
    page-break-inside: avoid;
  }
  .pi-print-page .pi-form-head { padding-bottom: 4px; }
  .pi-print-page .pi-form-logo img { width: 190px; }
  .pi-print-page .pi-form-company h1 { font-size: 24px; margin-bottom: 12px; }
  .pi-print-page .pi-form-company p { font-size: 12.5px; margin-bottom: 9px; }
  .pi-print-page .pi-form-meta { padding: 4px 54px 0; gap: 22px; }
  .pi-print-page .pi-form-col p { min-height: 17px; grid-template-columns: 90px 1fr; }
  .pi-print-page .pi-form-col strong,
  .pi-print-page .pi-form-table,
  .pi-print-page .pi-form-table th,
  .pi-print-page .pi-form-terms p,
  .pi-print-page .pi-form-payment p { font-size: 10.5px; }
  .pi-print-page .pi-form-table th,
  .pi-print-page .pi-form-table td { padding: 1px 3px; }
  .pi-print-page .pi-form-table tbody tr:first-child td { height: 36px; min-height: 36px; }
  .pi-print-page .pi-form-remark { min-height: 15px; font-size: 12px; }
  .pi-print-page .pi-form-sign { min-height: 28px; padding-bottom: 3px; }
  .pi-print-page .pi-form-sign div { min-height: 22px; }
  .pi-print-page .pi-form-sign strong { margin-bottom: 6px; }
  .pi-print-page .pi-form-status { display: none; }
  .pi-print-page .pi-form-terms h2,
  .pi-print-page .pi-form-payment h2 { font-size: 13px; margin: 5px 0 2px; }
  .pi-print-page .pi-form-terms p,
  .pi-print-page .pi-form-payment p { margin-bottom: 2px; }
  .document-chips a { color: #142235; border-color: #d0d8df; }
}
.pi-scope-tabs {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7fd;
}
.pi-scope-tabs.hidden { display: none; }
.pi-scope-tabs button {
  min-width: 118px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: transparent;
  color: #536a7e;
  font-weight: 900;
  cursor: pointer;
}
.pi-scope-tabs button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 91, 158, .18);
}
.admin-panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.admin-card,
.admin-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-card { padding: 18px; }
.admin-card h2,
.admin-board h2 { margin: 0 0 12px; }
.mini-form { display: grid; gap: 10px; margin: 0 0 26px; }
.admin-card .mini-form { margin-bottom: 0; }
.admin-board { margin-top: 22px; padding: 20px; }
.admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}
.admin-list-head p { margin: 0; color: var(--muted); font-weight: 700; }
.admin-order-list,
.admin-customer-list { display: grid; gap: 14px; }
.admin-order-card,
.admin-customer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fcff;
}
.order-card-main,
.admin-customer-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.admin-order-card h3,
.admin-customer-card h3 { margin: 8px 0; }
.admin-order-card p,
.admin-customer-card p { margin: 4px 0; color: #536a7e; font-weight: 700; }
.order-meta {
  min-width: 190px;
  display: grid;
  align-content: start;
  gap: 7px;
  color: #536a7e;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.stage-pill {
  display: inline-flex;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #d9edf8;
  color: #0d5c9e !important;
  font-size: 12px;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.progress-note {
  margin-top: 12px !important;
  padding: 12px;
  border-radius: 8px;
  background: #eef7fc;
}
.latest-update {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.latest-update img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}
.latest-update strong { display: block; margin-bottom: 4px; }
.latest-update small { color: var(--muted); font-weight: 700; }
.document-form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.document-form label {
  display: grid;
  gap: 5px;
  color: #455766;
  font-size: 12px;
  font-weight: 900;
}
.document-form label input,
.document-form label select,
.document-form textarea {
  width: 100%;
  min-width: 0;
}
.pi-create-mode {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pi-create-mode button {
  min-height: 74px;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  background: linear-gradient(#fff, #f0f4f7);
  color: #1f3952;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.pi-create-mode button.active {
  border-color: #45c718;
  box-shadow: inset 0 3px 0 #45d11c;
  background: #f7fff4;
}
.pi-create-mode strong,
.pi-create-mode span {
  display: block;
}
.pi-create-mode strong {
  color: #0f3556;
  font-size: 15px;
}
.pi-create-mode span {
  margin-top: 5px;
  color: #607286;
  font-size: 12px;
  font-weight: 800;
}
.document-customer-picker {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.document-customer-picker label {
  min-width: 0;
}
.document-customer-picker button {
  min-height: 38px;
  border: 1px solid #cfd8df;
  border-radius: 3px;
  background: linear-gradient(#fff, #edf1f4);
  color: #0076c5;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}
.document-new-customer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px dashed #bfccd7;
  background: #fbfdff;
}
.document-new-customer .wide {
  grid-column: 1 / -1;
}
.manual-pi-details {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}
.manual-pi-details section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid #d8e2ea;
  background: #f8fbfd;
}
.manual-pi-details h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #0f3556;
  font-size: 14px;
}
.manual-pi-details .wide {
  grid-column: 1 / -1;
}
.document-form textarea {
  grid-column: span 4;
  min-height: 44px;
}
.document-form button { min-height: 44px; }
.admin-document-list { display: grid; gap: 12px; }
.admin-document-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcff;
}
.admin-document-card h3 { margin: 8px 0; }
.admin-document-card p { margin: 4px 0; color: #536a7e; font-weight: 700; }
.document-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.document-chips a,
.document-chips button {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b8dced;
  color: #0d5c9e;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.tradms-import-box {
  padding: 18px;
  border-radius: 8px;
  border: 1px dashed #9cc9df;
  background: #f7fbff;
}
.tradms-import-box strong { display: block; margin-bottom: 8px; font-size: 18px; }
.tradms-import-box p { margin: 6px 0; color: #536a7e; font-weight: 700; }
.portal-shell { width: min(1180px, calc(100vw - 48px)); margin: 48px auto; }
.portal-card,
.portal-app,
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 46px rgba(30,48,67,.12);
}
.portal-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.portal-card h1 { margin: 0; font-size: 36px; line-height: 1.1; }
.portal-card p { color: var(--muted); line-height: 1.7; }
.portal-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.portal-forms form { display: grid; gap: 10px; }
.order-list { display: grid; gap: 18px; margin-top: 24px; }
.portal-order-form {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}
.portal-order-form h2 { margin: 0 0 14px; }
.portal-order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.portal-order-grid textarea {
  grid-column: span 3;
  min-height: 44px;
}
.order-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.order-top h2 { margin: 0 0 6px; }
.order-top p { margin: 0; color: var(--muted); font-weight: 700; }
.order-top strong { color: #0d5c9e; }
.stage-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.stage-track span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 6px;
  background: #edf3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.stage-track span.done {
  background: linear-gradient(135deg, #d9edf8, #a9d5ec);
  color: var(--ink);
}
.progress-note { color: var(--muted); font-weight: 700; }
.updates { display: grid; gap: 14px; }

.customer-access {
  padding: 58px 0;
  background:
    linear-gradient(135deg, rgba(217,237,248,.92), rgba(247,251,255,.96)),
    #f7fbff;
  border-top: 1px solid var(--line);
}

.customer-access-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 42px;
  align-items: center;
}

.customer-access-copy h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(32px, 2.8vw, 48px);
  line-height: 1.08;
}

.customer-access-copy p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 600;
}

.customer-access-card {
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(30,48,67,.12);
}

.customer-access-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.customer-access-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
}

.customer-access-card .button {
  width: 100%;
}

.update-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}
.update-item img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  background: #eaf1f7;
}
.update-item p { color: var(--muted); }
.portal-update-media {
  display: block;
}
.portal-file-link,
.portal-track-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfd8df;
  border-radius: 4px;
  background: #fff;
  color: #0d5c9e;
  font-weight: 800;
  text-decoration: none;
}
.portal-track-link {
  margin-top: 6px;
  background: #eaf7ff;
}

@media (max-width: 1100px) {
  .site-header-inner {
    grid-template-columns: 180px 1fr;
  }
  .callout {
    display: none;
  }
  .category-grid,
  .product-grid,
  .solution-grid,
  .process-grid,
  .footer-trust { grid-template-columns: repeat(2, 1fr); }
  .quote-layout,
  .admin-panels,
  .buyer-tools,
  .product-admin-layout,
  .customer-access-inner,
  .footer-main { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .order-card-main,
  .admin-customer-card,
  .admin-document-card,
  .admin-list-head { display: block; }
  .order-meta { text-align: left; margin-top: 12px; }
  .document-form { grid-template-columns: 1fr 1fr; }
  .document-form textarea { grid-column: span 2; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100vw - 32px); }
  .topbar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 12px; }
  .topbar a:first-of-type { margin-left: 0; }
  .site-header-inner {
    min-height: auto;
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .site-search {
    grid-template-columns: 1fr;
  }
  .hero-finder form,
  .product-controls {
    grid-template-columns: 1fr;
  }
  .buyer-tools {
    grid-template-columns: 1fr;
  }
  .nav-inner { height: auto; padding: 16px 0; align-items: flex-start; }
  .brand img { width: 120px; }
  .portal-brand-header img { width: 132px; }
  .nav-links { flex-direction: column; gap: 12px; }
  .category-menu {
    display: none;
  }
  .hero-slide { width: calc(100vw - 32px); min-height: 520px; }
  .hero-copy { padding: 56px 24px; }
  .service-strip,
  .category-grid,
  .product-grid,
  .solution-grid,
  .process-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    min-height: 0;
  }
  .tradms-nav,
  .tradms-subnav { overflow-x: auto; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-brand-bar { align-items: flex-start; flex-direction: column; }
  .document-form { grid-template-columns: 1fr; }
  .document-form textarea { grid-column: auto; }
  .section-head { display: block; }
  .modal-product { grid-template-columns: 1fr; }
  .modal-photo { min-height: 260px; }
  .footer-trust { grid-template-columns: 1fr; }
  .site-page-card { padding: 26px; }
}

.hidden,
.admin-stats.hidden,
.admin-panels.hidden,
.admin-workbench.hidden,
.admin-home-dashboard.hidden,
.profile-panels.hidden,
.admin-board.hidden,
.pi-manager-board.hidden,
.pi-scope-tabs.hidden,
.pi-detail-drawer.hidden {
  display: none !important;
}
