@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Lato:wght@700&display=swap");
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f7f8fb;
  --panel: #f3f4f8;
  --text: #171717;
  --muted: #5f6470;
  --border: #e2e5ec;
  --brand: #16236b;
  --brand-2: #253a91;
  --brand-light: #1aaee6;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,229,236,.95);
}
.navbar {
  min-height: 84px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 176px;
  text-decoration: none;
}
.brand-logo img {
  width: 176px;
  height: auto;
  display: block;
}
.portal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.portal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  color: #20232d;
  border: 1px solid transparent;
  white-space: nowrap;
}
.portal-nav-link:hover {
  background: #f7f8fb;
  border-color: var(--border);
}
.portal-nav-link.disabled {
  color: #767b89;
  cursor: default;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.icon-btn:hover {
  background: #f3f4f8;
  border-color: var(--border);
}
.profile-menu { position: relative; }
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 265px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown,
.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: white;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.profile-title {
  padding: 6px 8px 10px;
  font-size: 13px;
  font-weight: 900;
  color: #273044;
}
.account-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 14px;
  margin-top: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: white;
  background: var(--brand-2);
}
.account-link.secondary {
  background: #f5f7ff;
  color: var(--brand);
  border: 1px solid #dbe3ff;
}
.account-link:hover { filter: brightness(.98); }
.portal-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 28px 90px;
}
.portal-hero {
  max-width: 840px;
}
.eyebrow {
  display: inline-flex;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.portal-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.06em;
}
.portal-hero p {
  max-width: 740px;
  margin: 26px 0 0;
  font-size: 19px;
  color: #3c4351;
  line-height: 1.6;
}
.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 62px;
}
.portal-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px;
  min-height: 190px;
}
.portal-card.active { border-color: #c8d2ff; background: #fbfcff; }
.portal-card span {
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.portal-card h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.035em; }
.portal-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.page-hero {
  background: var(--brand);
  color: white;
  padding: 72px 24px;
  text-align: center;
}
.page-hero .kicker {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: .9;
  margin-bottom: 16px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
}
main { max-width: 1180px; margin: 0 auto 80px; padding: 0 24px; }
main.form-shell { margin-top: 54px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 54px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.form-card {
  max-width: 860px;
  margin: 0 auto;
  border: 0;
  padding: 0;
}
.form-intro {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}
h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.08; letter-spacing: -.04em; }
h2 { margin: 0 0 16px; font-size: 25px; letter-spacing: -.035em; }
h3 {
  margin: 28px 0 20px;
  font-size: 15px;
  font-weight: 800;
  color: white;
  background: #666;
  border-radius: 2px;
  padding: 12px 15px;
  border: 0;
}
p { color: var(--muted); line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 800; color: #343842; margin-bottom: 7px; }
.required::after { content: " *"; color: #e11931; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d8dbe3;
  border-radius: 4px;
  padding: 12px 13px;
  font-size: 15px;
  background: #f7f7f8;
  color: #20242d;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(37,58,145,.13);
  background: white;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
button, .btn {
  border: none;
  border-radius: 0;
  background: var(--brand-2);
  color: white;
  padding: 15px 26px;
  min-width: 190px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  transition: filter .15s ease, transform .15s ease;
}
button:hover, .btn:hover { filter: brightness(.96); transform: translateY(-1px); }
button.secondary, .btn.secondary { background: #eef1ff; color: var(--brand); }
button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; }
.notice { border-radius: 8px; padding: 14px 16px; margin: 18px 0; display: none; }
.notice.ok { display:block; background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.notice.error { display:block; background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.notice.info { display:block; background: #eff6ff; color: #175cd3; border: 1px solid #bfdbfe; }
.help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; background: #eef4ff; color: #3538cd; padding: 6px 11px; font-size: 13px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px 16px;
  padding: 13px 14px;
  border: 1px solid #d8dbe3;
  border-radius: 4px;
  background: #f7f7f8;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: #505663;
}
.check-grid input[type="checkbox"] { width: auto; margin: 0; }
.support-card {
  background: #f7f7f8;
  padding: 30px;
  border: 1px solid #eceef4;
}
.support-card p { color: #444; }
.support-item { margin-top: 20px; font-weight: 800; color: #20242d; }
@media (max-width: 1000px) {
  .navbar { grid-template-columns: 1fr auto; padding: 0 22px; }
  .portal-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 14px; }
  .portal-nav-link { font-size: 13px; padding: 0 12px; }
  .hero { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .navbar { min-height: 76px; gap: 14px; }
  .brand-logo, .brand-logo img { width: 148px; }
  .header-actions { gap: 8px; }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .page-hero { padding: 54px 20px; }
  main, main.form-shell { padding: 0 18px; margin-top: 34px; }
  .portal-home { padding: 56px 22px 70px; }
  .portal-hero h1 { font-size: 40px; }
  .portal-hero p { font-size: 17px; }
  .home-actions, .actions { flex-direction: column; }
  button, .btn { width: 100%; }
}

/* ==============================
   Admin dashboard
   ============================== */
.admin-shell {
  max-width: 1440px;
  margin: 0 auto 90px;
  padding: 46px 32px 0;
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 26px;
}
.admin-hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  margin: 0;
}
.admin-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: 17px;
}
.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn.compact,
button.compact {
  min-width: auto;
  min-height: 42px;
  padding: 10px 15px;
  font-size: 13px;
}
.admin-content[hidden],
.admin-auth-card[hidden] { display: none; }
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}
.admin-auth-card {
  max-width: 620px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.metric-card {
  border: 1px solid var(--border);
  background: #fbfcff;
  padding: 22px;
}
.metric-card span {
  display: block;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand);
}
.metric-card p {
  margin: 8px 0 0;
  font-weight: 850;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(360px, .9fr);
  gap: 20px;
  align-items: start;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.admin-section-head h2,
.admin-card h2 {
  margin-bottom: 6px;
}
.admin-section-head p,
.admin-card > p {
  margin: 0;
}
.admin-filter-row {
  display: flex;
  gap: 10px;
  min-width: 430px;
}
.admin-filter-row input,
.admin-filter-row select,
.admin-select {
  font-size: 13px;
  padding: 9px 10px;
  background-color: #fff;
}
.admin-table-wrap {
  border: 1px solid var(--border);
}
.admin-table {
  margin-top: 0;
  min-width: 980px;
}
.admin-table th {
  background: #f6f7fb;
  padding: 12px 10px;
}
.admin-table td {
  vertical-align: top;
  padding: 12px 10px;
}
.admin-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}
.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pending-card {
  border: 1px solid var(--border);
  background: #fbfcff;
  padding: 14px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.pending-title {
  font-size: 18px;
  font-weight: 950;
}
.pending-meta {
  color: var(--muted);
  margin-top: 4px;
}
.pending-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.mini-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef1ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}
.pending-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.empty-state {
  padding: 18px;
  color: var(--muted);
  background: #f8f9fc;
  border: 1px dashed #d5d9e5;
}
.company-list {
  display: grid;
  gap: 12px;
}
.company-card {
  border: 1px solid var(--border);
  padding: 16px;
  background: #fff;
}
.company-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.company-card p {
  margin: 7px 0 12px;
  font-size: 13px;
}
.company-actions {
  margin-top: 10px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
  background: #eef4ff;
  color: #3538cd;
}
.status-approved { background: #ecfdf3; color: #067647; }
.status-pending { background: #fffaeb; color: #b54708; }
.status-suspended { background: #fef3f2; color: #b42318; }
.status-rejected { background: #f2f4f7; color: #344054; }
.audit-list {
  display: grid;
  gap: 10px;
}
.audit-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.audit-item strong {
  display: block;
  font-size: 13px;
  color: #1f2937;
}
.audit-item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1180px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-filter-row { min-width: 0; flex: 1; }
}
@media (max-width: 860px) {
  .admin-shell { padding: 30px 18px 0; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-hero-actions { justify-content: flex-start; width: 100%; }
  .admin-hero-actions .btn { width: auto; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-section-head { flex-direction: column; }
  .admin-filter-row { width: 100%; flex-direction: column; }
  .pending-card { align-items: flex-start; flex-direction: column; }
  .pending-actions { width: 100%; }
  .pending-actions .btn { flex: 1; }
}
@media (max-width: 580px) {
  .admin-metrics { grid-template-columns: 1fr; }
}

/* Admin dashboard v7 cleanup */
.compact-admin-hero {
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.compact-admin-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
}
.admin-metrics {
  gap: 14px;
}
.metric-card {
  min-height: 112px;
  padding: 18px 22px;
}
.metric-card span {
  font-size: 32px;
  letter-spacing: -.03em;
}
.metric-card p {
  font-size: 14px;
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.admin-panel-card {
  min-height: 355px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.admin-panel-card .admin-section-head {
  min-height: 78px;
}
.admin-open-link {
  white-space: nowrap;
  align-self: flex-start;
}
.admin-preview-list {
  flex: 1;
  max-height: 235px;
  overflow: auto;
  padding-right: 4px;
}
.admin-more-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}
.admin-more-link:hover {
  text-decoration: underline;
}
.admin-mini-table-wrap {
  border: 1px solid var(--border);
  overflow: auto;
  flex: 1;
}
.admin-mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.admin-mini-table th,
.admin-mini-table td {
  border-bottom: 1px solid var(--border);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
.admin-mini-table th {
  background: #f6f7fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-mini-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.compact-empty {
  padding: 12px;
}
.admin-full-card {
  min-height: 520px;
}
.company-full-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-panel-card { min-height: auto; }
  .admin-panel-card .admin-section-head { min-height: 0; }
  .admin-preview-list { max-height: none; }
  .company-full-list { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .metric-card span { font-size: 28px; }
  .metric-card { min-height: 96px; }
}

/* Admin auth loading state v9 */
.admin-loading-card[hidden] { display: none; }
.admin-loading-card {
  max-width: 620px;
  background: #fbfcff;
}
.admin-loading-card h2 {
  margin-bottom: 8px;
}
.admin-loading-card::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 3px solid #dbe3ff;
  border-top-color: var(--brand-2);
  border-radius: 50%;
  vertical-align: -4px;
  animation: adminSpin .8s linear infinite;
}
@keyframes adminSpin { to { transform: rotate(360deg); } }

/* Admin user detail page v10 */
.user-detail-summary {
  background: #fbfcff;
}
.detail-summary-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.detail-summary-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.045em;
}
.detail-summary-content p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.detail-summary-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.user-detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.user-action-panel {
  position: sticky;
  top: 108px;
}
.detail-form-stack,
.quick-action-stack {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}
.detail-form-stack label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  color: #344054;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.quick-action-stack {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.danger-outline {
  color: var(--danger) !important;
  border-color: #f3b8b1 !important;
  background: #fff7f6 !important;
}
.user-detail-main {
  display: grid;
  gap: 20px;
}
.detail-card {
  margin-bottom: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compact-detail-grid {
  margin-top: 12px;
}
.detail-field {
  border: 1px solid var(--border);
  background: #fbfcff;
  padding: 13px 14px;
  min-height: 72px;
}
.detail-field-wide {
  grid-column: 1 / -1;
}
.detail-field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 7px;
}
.detail-field strong {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.45;
}
.reference-list {
  display: grid;
  gap: 12px;
}
.reference-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 16px;
}
.reference-title {
  font-weight: 950;
  color: var(--brand);
}
.inline-detail-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 850;
}
.inline-detail-link:hover {
  text-decoration: underline;
}
@media (max-width: 1040px) {
  .user-detail-layout { grid-template-columns: 1fr; }
  .user-action-panel { position: static; }
}
@media (max-width: 720px) {
  .detail-summary-content { flex-direction: column; }
  .detail-summary-badges { justify-content: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
}


/* Admin user detail overlay modal v11 */
body.modal-open {
  overflow: hidden;
}
.admin-modal-overlay[hidden] {
  display: none;
}
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 22px;
}
.admin-modal-panel {
  width: min(1180px, 96vw);
  max-height: 90vh;
  background: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  display: flex;
  flex-direction: column;
}
.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-modal-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.045em;
}
.admin-modal-header p {
  margin: 0;
  color: var(--muted);
}
.admin-modal-close {
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #f8f9fc;
}
.admin-modal-scroll {
  overflow-y: auto;
  padding: 0 28px 28px;
}
.modal-detail-summary {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 20px 28px;
  flex-shrink: 0;
}
.user-detail-modal-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 20px;
}
.modal-action-panel {
  position: sticky;
  top: 0;
  margin-bottom: 0;
}
.inline-detail-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--brand);
  text-decoration: none;
  font-weight: 850;
}
.inline-detail-link:hover {
  text-decoration: underline;
}
@media (max-width: 1040px) {
  .user-detail-modal-grid { grid-template-columns: 1fr; }
  .modal-action-panel { position: static; }
}
@media (max-width: 720px) {
  .admin-modal-overlay { padding: 12px; align-items: stretch; }
  .admin-modal-panel { max-height: 96vh; width: 100%; }
  .admin-modal-header, .modal-detail-summary, .admin-modal-scroll { padding-left: 18px; padding-right: 18px; }
}


/* Admin user detail overlay modal v12: single-scroll detail view */
body.modal-open {
  overflow: hidden;
}
.admin-modal-overlay[hidden] {
  display: none;
}
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
}
.admin-modal-panel.user-detail-modal-panel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 90vh;
  background: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  display: block;
  overflow-y: auto;
  border-radius: 0;
}
.admin-modal-header {
  display: none;
}
.admin-modal-close.floating-close {
  position: sticky;
  top: 20px;
  float: right;
  z-index: 3;
  margin: 24px 28px 0 12px;
  width: 52px;
  height: 52px;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #f8f9fc;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.admin-modal-scroll {
  overflow: visible;
  padding: 26px 28px 30px;
}
.modal-detail-summary {
  margin: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 88px 22px 0;
  flex-shrink: 0;
}
.modal-detail-summary .detail-summary-content h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: .98;
}
.user-detail-modal-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 0;
}
.modal-action-panel {
  position: static;
  top: auto;
  margin-bottom: 0;
}
@media (max-width: 1040px) {
  .user-detail-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-modal-overlay { padding: 12px; align-items: stretch; }
  .admin-modal-panel.user-detail-modal-panel { max-height: 96vh; width: 100%; }
  .admin-modal-scroll { padding: 18px; }
  .admin-modal-close.floating-close { margin: 14px 14px 0 8px; width: 44px; height: 44px; }
  .modal-detail-summary { padding-right: 0; }
}

/* Admin v13 user manager split + permissions */
.admin-table-section {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 24px;
}
.admin-table-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.subsection-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.subsection-title-row h3 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -.03em;
}
.subsection-title-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.admin-select:disabled,
.btn:disabled,
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.portal-nav-link.active {
  background: #f5f7ff;
  border-color: #dbe3ff;
  color: var(--brand);
}
button.account-link {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.account-shell {
  max-width: 1120px;
  margin-top: 54px;
}
.account-status-panel {
  display: grid;
  gap: 22px;
}
.loading-card,
.account-overview-card,
.status-message-card,
.account-card,
.future-tools-card,
.verification-placeholder,
.success-card {
  border: 1px solid var(--border);
  background: white;
}
.loading-card {
  padding: 34px;
}
.account-overview-card {
  padding: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.account-overview-card h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.055em;
}
.account-overview-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  background: #eef2ff;
  color: var(--brand);
}
.status-pill.pending { background: #fff7ed; color: #9a3412; }
.status-pill.approved { background: #ecfdf3; color: #067647; }
.status-pill.suspended { background: #fff1f3; color: #b42318; }
.status-pill.rejected { background: #fef3f2; color: #b42318; }
.status-pill.neutral { background: #f3f4f8; color: #343846; }
.status-message-card {
  padding: 26px 30px;
  border-left: 5px solid var(--brand-2);
}
.status-message-card.pending { border-left-color: #f59e0b; }
.status-message-card.approved { border-left-color: var(--ok); }
.status-message-card.suspended,
.status-message-card.rejected { border-left-color: var(--danger); }
.status-message-card h3,
.account-card h3,
.future-tools-card h3,
.verification-placeholder h2 {
  margin: 0 0 10px;
  font-size: 25px;
  letter-spacing: -.04em;
}
.status-message-card p,
.account-card p,
.future-tools-card p,
.verification-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.account-grid-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.account-card {
  padding: 28px;
}
.detail-list {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.detail-list div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.detail-list dt {
  color: #697083;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.detail-list dd {
  margin: 0;
  font-weight: 750;
  color: #171717;
  overflow-wrap: anywhere;
}
.future-tools-card {
  padding: 30px;
}
.future-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.future-tools-grid div {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 18px;
}
.future-tools-grid strong,
.future-tools-grid span {
  display: block;
}
.future-tools-grid span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}
.success-shell {
  max-width: 920px;
  padding-top: 80px;
}
.success-card {
  padding: 46px;
  text-align: left;
}
.success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ecfdf3;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
  margin-bottom: 22px;
}
.success-card h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -.055em;
}
.success-card > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.verification-placeholder {
  padding: 22px;
  margin-top: 28px;
  background: #fbfcff;
  border-color: #dbe3ff;
}
.notice.error {
  white-space: pre-line;
}

@media (max-width: 820px) {
  .account-overview-card,
  .account-grid-panel,
  .future-tools-grid {
    grid-template-columns: 1fr;
  }
  .account-overview-card {
    display: block;
  }
  .status-stack {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .detail-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Staff account administration v15 */
.admin-only-panel[hidden] { display: none; }
.staff-create-form { margin-top: 10px; }
.staff-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.staff-form-grid label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  color: #344054;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.staff-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.muted-note {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
@media (max-width: 720px) {
  .staff-form-grid { grid-template-columns: 1fr; }
}

/* Dealer portal v17 additions */
.note-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.note-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.note-form textarea:focus {
  outline: 2px solid rgba(38, 83, 181, .18);
  border-color: var(--blue);
}
.internal-note-item strong {
  white-space: pre-wrap;
  line-height: 1.45;
}
.company-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* v18 company detail tabs and dealer application snapshots */
.company-profile-summary {
  margin-bottom: 18px;
}

.company-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 8px;
  background: #f3f5f8;
  border: 1px solid #dde3ec;
  border-radius: 16px;
}

.company-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.company-tab:hover {
  background: #fff;
  border-color: #d5dce8;
}

.company-tab.active {
  background: #fff;
  color: #101828;
  border-color: #cfd8e6;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

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

.company-tab-panel[hidden] {
  display: none !important;
}

.company-control-stack {
  max-width: 520px;
}

.application-card {
  border: 1px solid #dde3ec;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}

.application-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.application-card-head h3 {
  margin: 0 0 4px;
}

.application-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.application-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 14px 0 18px;
}

.application-controls label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.application-controls .checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: span 2;
  min-height: 42px;
}

.application-controls .application-notes-label {
  grid-column: span 2;
}

.application-controls textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.application-compare-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}

.application-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 10px 12px;
}

.application-compare-row.has-conflict {
  background: #fff7ed;
  border-color: #fed7aa;
}

.application-compare-row span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.application-compare-row strong {
  display: block;
  color: #101828;
  font-size: 14px;
  margin-top: 2px;
}

.conflict-pill,
.match-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px !important;
}

.conflict-pill {
  color: #9a3412 !important;
  background: #ffedd5;
}

.match-pill {
  color: #166534 !important;
  background: #dcfce7;
}

.application-submitted-grid {
  margin: 12px 0 18px;
}

@media (max-width: 900px) {
  .application-controls,
  .application-compare-row {
    grid-template-columns: 1fr;
  }
  .application-controls .checkbox-inline,
  .application-controls .application-notes-label {
    grid-column: span 1;
  }
}

/* v20 customer dashboard home */
.home-loading-card {
  border: 1px solid var(--border);
  background: #fbfcff;
  padding: 28px 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
.home-loading-card strong {
  color: var(--brand);
}
.portal-hero[hidden],
.customer-dashboard[hidden],
.home-loading-card[hidden],
.pending-dashboard-message[hidden] {
  display: none !important;
}
.customer-dashboard {
  display: grid;
  gap: 24px;
}
.customer-welcome-card {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #fbfcff 70%, #f4f7ff 100%);
  padding: 38px;
}
.customer-welcome-card h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .96;
  letter-spacing: -.06em;
}
.dashboard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  background: #eef2ff;
  color: var(--brand);
  border: 1px solid #dbe3ff;
  font-size: 13px;
  font-weight: 950;
}
.dashboard-badge.status-approved {
  background: #ecfdf3;
  color: #067647;
  border-color: #abefc6;
}
.dashboard-badge.status-pending {
  background: #f2f4f7;
  color: #344054;
  border-color: #d0d5dd;
}
.dashboard-badge.status-suspended,
.dashboard-badge.status-rejected {
  background: #fef3f2;
  color: #b42318;
  border-color: #fecdca;
}
.dashboard-badge.muted-badge {
  background: #f8f9fc;
  color: #475467;
  border-color: var(--border);
}
.pending-dashboard-message {
  border: 1px solid #d0d5dd;
  background: #f2f4f7;
  color: #344054;
  padding: 18px 20px;
  font-weight: 800;
  line-height: 1.5;
}
.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.dashboard-section-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
}
.dashboard-section-head p {
  margin: 0;
}
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-action-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.home-action-card h3 {
  margin: 12px 0 8px;
  padding: 0;
  background: transparent;
  color: #171717;
  font-size: 25px;
  letter-spacing: -.04em;
}
.home-action-card p {
  margin: 0;
  line-height: 1.55;
}
.home-action-card.locked {
  background: #f8f9fc;
  color: #667085;
}
.home-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f5f7ff;
  color: var(--brand);
  border: 1px solid #dbe3ff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.home-action-card.locked .home-card-badge {
  background: #f2f4f7;
  color: #667085;
  border-color: #d0d5dd;
}
@media (max-width: 860px) {
  .customer-welcome-card { padding: 28px; }
  .dashboard-action-grid { grid-template-columns: 1fr; }
  .dashboard-section-head { align-items: flex-start; flex-direction: column; }
}

/* ==========================================
   Product catalog / quote builder
   ========================================== */
.quote-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 62px 28px 90px;
}
.quote-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.quote-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.055em;
}
.quote-hero p {
  margin: 16px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 14px;
  align-items: stretch;
}
.quote-catalog-panel,
.quote-cart-panel {
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 12px 30px rgba(15,23,42,.04);
}
.quote-catalog-panel.full-width { width: 100%; }
.quote-catalog-panel { height: 100%; }
.quote-catalog-grid {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 640px;
}
.quote-category-sidebar {
  border-right: 1px solid var(--border);
  background: #f8faff;
  padding: 12px 10px;
  height: 100%;
}
.category-button-list {
  display: grid;
  gap: 8px;
  overflow: visible;
}
.category-button {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce3f0;
  background: #eef2f8;
  color: #586174;
  border-radius: 4px;
  padding: 9px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.category-button:hover {
  background: #f4f6fb;
  color: var(--brand);
  border-color: #cfd8ef;
}
.category-button.active {
  background: #ffffff;
  color: var(--brand);
  border-color: #9eafe5;
  box-shadow: 0 6px 16px rgba(37,58,145,.10);
}
.quote-product-area {
  min-width: 0;
}
.quote-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: #fbfcff;
}
.active-category-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.active-category-strip strong {
  color: #111827;
  font-size: 15px;
}
.search-input,
.search-select,
.product-qty,
.cart-qty {
  min-height: 42px;
  border: 1px solid #d8dde8;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  background: white;
}
.search-input:focus,
.search-select:focus,
.product-qty:focus,
.cart-qty:focus {
  outline: 2px solid rgba(37, 58, 145, .18);
  border-color: var(--brand-2);
}
.quote-table-wrap {
  overflow: hidden;
  max-height: none;
}
.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.product-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  background: #f3f5fa;
  color: #394154;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
}
.product-table td {
  padding: 10px 6px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
.product-table tbody tr:hover { background: #fbfcff; }
.product-table th:nth-child(1),
.product-table td:nth-child(1) {
  width: 150px;
}
.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  width: 28%;
}
.product-table th:nth-child(3),
.product-table td:nth-child(3),
.product-table th:nth-child(4),
.product-table td:nth-child(4) {
  width: 40px;
  text-align: center;
}
.product-table th:nth-child(5),
.product-table td:nth-child(5) {
  width: 84px;
}
.product-table th:nth-child(6),
.product-table td:nth-child(6) {
  width: 52px;
}
.product-table th:nth-child(7),
.product-table td:nth-child(7) {
  width: 70px;
}
.product-table th:nth-child(8),
.product-table td:nth-child(8) {
  width: 46px;
}
.product-table th:nth-child(1),
.product-table td:nth-child(1) {
  padding-left: 14px;
}
.product-sku-cell strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: 2.7em;
}
.product-qty { width: 48px; min-width: 0; padding: 0 6px; min-height: 36px; }
.details-product {
  min-width: 0;
  min-height: 32px;
  padding: 6px 6px;
  border: 1px solid #dbe3ff;
  border-radius: 4px;
  background: #f5f7ff;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
}
.product-table .add-product {
  min-width: 0;
  width: 46px;
  min-height: 32px;
  padding: 6px 6px;
  font-size: 12px;
}
.btn.compact {
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quote-cart-panel {
  position: static;
  padding: 18px;
  height: 100%;
  min-height: 640px;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 14px;
}
.cart-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.cart-head-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.cart-head-actions .btn { white-space: nowrap; }
.quote-cart-items {
  display: grid;
  gap: 12px;
  overflow: visible;
  padding-right: 0;
}
.empty-cart {
  border: 1px dashed #cfd5e3;
  background: #fbfcff;
  padding: 20px;
  color: var(--muted);
}
.quote-cart-item {
  position: relative;
  border: 1px solid #e4e8f0;
  background: #fff;
  padding: 14px 34px 14px 14px;
  display: grid;
  gap: 12px;
}
.cart-item-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.quote-cart-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-cart-item span { color: var(--brand); font-weight: 900; }
.cart-qty-group {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: end;
}
.cart-qty-group label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cart-qty-group strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #e4e8f0;
  background: #fbfcff;
  border-radius: 6px;
  padding: 0 12px;
}
.quote-cart-item .cart-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  border: 1px solid #f2b7b2;
  color: var(--danger);
  background: #fff5f4;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 15px;
  font-weight: 900;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-remove:hover {
  border-color: #ffd4d1;
  color: var(--danger);
  background: #fff5f4;
}
.quote-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 18px;
}
.quote-total-row strong { font-size: 22px; color: var(--brand); }
.quote-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-detail-overlay[hidden] { display: none; }
.product-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 24, 39, .58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-detail-modal {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
  padding: 28px;
  position: relative;
}
.product-detail-modal h2 {
  margin: 8px 44px 18px 0;
  font-size: 34px;
  letter-spacing: -.05em;
}
.product-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 999px;
  background: #f3f5fa;
  color: #111827;
  font-size: 22px;
  line-height: 1;
}
.product-detail-body {
  display: grid;
  gap: 10px;
}
.product-detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e9f2;
  background: #fbfcff;
}
.product-detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.product-detail-row strong {
  color: #111827;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-cart-panel { position: static; }
  .quote-catalog-grid { grid-template-columns: 1fr; }
  .quote-category-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .category-button-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-toolbar { grid-template-columns: 1fr; }
  .quote-table-wrap { max-height: none; }
  .quote-hero { flex-direction: column; }
  .summary-card-row { grid-template-columns: 1fr; }
}


/* v28 compact quote layout */
@media (min-width: 1000px) {
  .quote-shell { width: min(100% - 64px, 1320px); }
}

/* v29 quote builder overflow cleanup */
@media (min-width: 1000px) {
  .quote-shell {
    width: min(100% - 72px, 1280px);
  }

  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
  }

  .quote-catalog-grid {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

.category-button {
  font-size: 11px;
  line-height: 1.15;
  padding: 8px 10px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.product-table {
  font-size: 11.5px;
}

.product-table th {
  font-size: 10px;
  padding: 9px 4px;
}

.product-table td {
  padding: 9px 4px;
}

.product-table th:nth-child(1),
.product-table td:nth-child(1) {
  width: 132px;
  padding-left: 12px;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  width: 26%;
}

.product-table th:nth-child(3),
.product-table td:nth-child(3),
.product-table th:nth-child(4),
.product-table td:nth-child(4) {
  width: 32px;
  text-align: center;
}

.product-table th:nth-child(5),
.product-table td:nth-child(5) {
  width: 78px;
}

.product-table th:nth-child(6),
.product-table td:nth-child(6) {
  width: 42px;
}

.product-table th:nth-child(7),
.product-table td:nth-child(7) {
  width: 58px;
}

.product-table th:nth-child(8),
.product-table td:nth-child(8) {
  width: 42px;
}

.product-qty {
  width: 42px;
  min-height: 34px;
  padding: 0 5px;
}

.details-product {
  min-height: 30px;
  padding: 5px 4px;
  font-size: 9px;
}

.product-table .add-product {
  width: 40px;
  min-height: 30px;
  padding: 5px 4px;
  font-size: 11px;
}

.quote-cart-panel {
  padding: 16px;
}

/* Admin control panel v30 */
body.admin-mode {
  background: #f5f6fa;
}
body.admin-mode .site-header {
  display: none;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  background: #101828;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  padding: 8px 8px 16px;
  text-decoration: none;
}
.admin-sidebar-logo img {
  max-width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.15));
}
.admin-sidebar-label {
  padding: 0 10px 7px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: #98a2b3;
}
.admin-sidebar-nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar-link,
.admin-sidebar-switch,
.admin-sidebar-logout {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #d0d5dd;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.admin-sidebar-link:hover,
.admin-sidebar-switch:hover,
.admin-sidebar-logout:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.admin-sidebar-link.active {
  color: #fff;
  background: #263a91;
  border-color: rgba(255,255,255,.16);
}
.admin-sidebar-spacer { flex: 1; }
.admin-sidebar-switch {
  background: #fff;
  color: #101828;
  justify-content: center;
}
.admin-sidebar-switch.secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  justify-content: center;
}
.admin-sidebar-logout {
  justify-content: center;
  background: rgba(180,35,24,.12);
  color: #fecaca;
}
body.admin-mode .admin-shell {
  max-width: none;
  margin: 0 0 70px 224px;
  padding: 22px 24px 0;
}
body.admin-mode .admin-hero {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px 20px;
  margin-bottom: 16px;
  align-items: center;
}
body.admin-mode .admin-hero h1 {
  font-size: 30px;
  letter-spacing: -.035em;
}
body.admin-mode .admin-hero p {
  margin-top: 6px;
  font-size: 14px;
}
body.admin-mode .eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
}
body.admin-mode .admin-card {
  padding: 16px;
  margin-bottom: 14px;
}
body.admin-mode .admin-card h2,
body.admin-mode .admin-section-head h2 {
  font-size: 20px;
}
body.admin-mode .admin-section-head {
  margin-bottom: 12px;
}
body.admin-mode .admin-metrics,
body.admin-mode .admin-dashboard-grid {
  gap: 12px;
}
body.admin-mode .metric-card {
  min-height: 88px;
  padding: 14px 16px;
}
body.admin-mode .metric-card span {
  font-size: 28px;
}
body.admin-mode .metric-card p {
  font-size: 13px;
}
body.admin-mode .admin-panel-card {
  min-height: 250px;
}
body.admin-mode .admin-table {
  min-width: 860px;
  font-size: 13px;
}
body.admin-mode .admin-table th,
body.admin-mode .admin-table td {
  padding: 9px 8px;
}
body.admin-mode .btn.compact,
body.admin-mode button.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
body.admin-mode .admin-hero-actions #admin-logout,
body.admin-mode .admin-hero-actions #admin-refresh {
  display: none;
}
.company-user-tools {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: #fbfcff;
}
.company-user-tools h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.company-user-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.company-user-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.company-user-search-row input {
  width: 100%;
}
.admin-user-search-results {
  display: grid;
  gap: 8px;
}
.admin-user-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.admin-user-search-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.company-users-table .admin-row-actions {
  flex-wrap: nowrap;
}
@media (max-width: 860px) {
  .admin-sidebar { position: static; width: auto; }
  body.admin-mode .admin-shell { margin-left: 0; padding: 16px; }
  .admin-sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==============================
   v31 marketing style pass
   ============================== */
:root {
  --brand: #233587;
  --brand-2: #233587;
  --brand-light: #00a7de;
  --muted: #5f6470;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #171717;
}

body:not(.admin-mode) .site-header {
  background: #fff;
  border-bottom: 1px solid #e6e8ee;
  box-shadow: none;
}
body:not(.admin-mode) .navbar {
  min-height: 78px;
  max-width: 1120px;
  padding: 0 24px;
  grid-template-columns: 190px minmax(0, 1fr) 60px;
  gap: 26px;
}
body:not(.admin-mode) .brand-logo,
body:not(.admin-mode) .brand-logo img {
  width: 168px;
}
body:not(.admin-mode) .portal-nav {
  gap: 34px;
}
body:not(.admin-mode) .portal-nav-link {
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  border: 0;
  color: #7c828e;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
body:not(.admin-mode) .portal-nav-link:hover {
  color: #171717;
  background: transparent;
  border: 0;
}
body:not(.admin-mode) .portal-nav-link.active {
  color: #171717;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
body:not(.admin-mode) .icon-btn {
  width: 42px;
  height: 42px;
  color: #111827;
}
body:not(.admin-mode) .icon-btn:hover,
body:not(.admin-mode) .profile-menu:hover .icon-btn,
body:not(.admin-mode) .profile-menu:focus-within .icon-btn {
  background: #eef0f4;
  border-color: #eef0f4;
}

h1,
.portal-hero h1,
.page-hero h1,
.quote-hero h1 {
  font-family: Lato, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}
body:not(.admin-mode) .portal-home {
  max-width: 1040px;
  padding: 42px 24px 72px;
}
body:not(.admin-mode) .portal-hero {
  max-width: 760px;
}
body:not(.admin-mode) .eyebrow {
  color: var(--brand);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 16px;
}
body:not(.admin-mode) .portal-hero h1 {
  max-width: 580px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.035em;
}
body:not(.admin-mode) .portal-hero p,
body:not(.admin-mode) p,
body:not(.admin-mode) .form-intro {
  color: #5f6470;
  font-size: 14px;
  line-height: 1.4;
}
body:not(.admin-mode) .portal-hero p {
  max-width: 590px;
  margin-top: 20px;
}

body:not(.admin-mode) button,
body:not(.admin-mode) .btn,
body:not(.admin-mode) .account-link {
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--brand);
}
body:not(.admin-mode) button.secondary,
body:not(.admin-mode) .btn.secondary,
body:not(.admin-mode) .account-link.secondary {
  background: #eef1ff;
  color: var(--brand);
}
body:not(.admin-mode) .home-actions {
  margin-top: 28px;
  gap: 12px;
}
body:not(.admin-mode) .home-actions .btn {
  min-width: 176px;
}
body:not(.admin-mode) .portal-grid.public-feature-grid {
  margin-top: 56px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body:not(.admin-mode) .portal-card {
  border-radius: 12px;
  padding: 28px;
  min-height: 210px;
  position: relative;
}
body:not(.admin-mode) .portal-card span {
  color: var(--brand);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
body:not(.admin-mode) .portal-card:not(.active) span {
  color: #7c828e;
}
body:not(.admin-mode) .portal-card h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
body:not(.admin-mode) .portal-card p {
  font-size: 14px;
  line-height: 1.4;
}
body:not(.admin-mode) .card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 26px;
  bottom: 28px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 2px;
  background: #eef1ff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body:not(.admin-mode) .page-hero {
  background: var(--brand);
  padding: 68px 24px;
}
body:not(.admin-mode) .page-hero .kicker {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
body:not(.admin-mode) .page-hero h1 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.025em;
}

body:not(.admin-mode) main.hero {
  max-width: 960px;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  margin-top: 54px;
}
body:not(.admin-mode) main.form-shell,
body:not(.admin-mode) .account-shell {
  max-width: 820px;
  margin-top: 54px;
}
body:not(.admin-mode) .form-card h2,
body:not(.admin-mode) .support-card h2,
body:not(.admin-mode) .account-status-login-card h2 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}
body:not(.admin-mode) label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #303542;
}
body:not(.admin-mode) input,
body:not(.admin-mode) select,
body:not(.admin-mode) textarea {
  font-size: 14px;
  border-radius: 2px;
  background: #f7f7f8;
  min-height: 42px;
  padding: 10px 12px;
}
body:not(.admin-mode) .form-card h3 {
  margin: 28px 0 18px;
  padding: 0 0 8px;
  color: var(--brand);
  background: transparent;
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
body:not(.admin-mode) .inline-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 26px;
  border-radius: 12px;
}
body:not(.admin-mode) .inline-callout-copy {
  color: #303542;
  font-size: 14px;
  font-weight: 700;
}
body:not(.admin-mode) .inline-callout .btn {
  min-width: 92px;
  min-height: 34px;
  padding: 8px 12px;
}
body:not(.admin-mode) .form-submit-actions {
  justify-content: center;
}
body:not(.admin-mode) .form-submit-actions button {
  min-width: 280px;
}
body:not(.admin-mode) .sign-in-primary-action,
body:not(.admin-mode) .sign-in-secondary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
body:not(.admin-mode) .sign-in-secondary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body:not(.admin-mode) .sign-in-primary-action button,
body:not(.admin-mode) .sign-in-secondary-actions .btn {
  width: 100%;
}
body:not(.admin-mode) .or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #5f6470;
  margin: 26px 0 18px;
}
body:not(.admin-mode) .or-divider::before,
body:not(.admin-mode) .or-divider::after {
  content: "";
  height: 2px;
  background: #d8dbe3;
}
body:not(.admin-mode) .support-card {
  background: #f7f7f8;
  padding: 30px;
}
body:not(.admin-mode) .account-status-login-card {
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  body:not(.admin-mode) .navbar { grid-template-columns: 1fr auto; }
  body:not(.admin-mode) .portal-nav { gap: 18px; }
  body:not(.admin-mode) .portal-grid.public-feature-grid { grid-template-columns: 1fr; }
  body:not(.admin-mode) main.hero { grid-template-columns: 1fr; }
  body:not(.admin-mode) .sign-in-secondary-actions { grid-template-columns: 1fr; }
}

/* Keep compact quote controls from inheriting the public marketing button sizing. */
body:not(.admin-mode) .quote-shell button,
body:not(.admin-mode) .quote-shell .btn {
  min-width: 0;
  min-height: 0;
}
body:not(.admin-mode) .quote-shell .btn.compact,
body:not(.admin-mode) .quote-shell button.compact {
  min-height: 38px;
  padding: 9px 14px;
}
body:not(.admin-mode) .product-table .add-product {
  width: 40px;
  min-width: 40px;
  min-height: 30px;
  padding: 5px 4px;
  font-size: 11px;
}
body:not(.admin-mode) .details-product {
  min-height: 30px;
  padding: 5px 4px;
  font-size: 9px;
}
body:not(.admin-mode) .category-button {
  min-height: 42px;
  width: 100%;
  justify-content: flex-start;
}


/* v33 marketing and quote builder correction pass */
:root {
  --brand: #233587;
  --brand-2: #233587;
}

/* Keep the customer header profile icon as an icon, not a filled button. */
body:not(.admin-mode) .header-actions .icon-btn,
body:not(.admin-mode) .profile-toggle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #111827 !important;
  display: inline-grid !important;
  place-items: center !important;
}
body:not(.admin-mode) .header-actions .icon-btn:hover,
body:not(.admin-mode) .profile-menu:hover .icon-btn,
body:not(.admin-mode) .profile-menu:focus-within .icon-btn {
  background: #eef0f4 !important;
  border-color: #eef0f4 !important;
  color: #111827 !important;
}
body:not(.admin-mode) .header-actions .icon-btn svg {
  width: 25px;
  height: 25px;
}

/* Match the marketing sign-in/account hero layout. */
body:not(.admin-mode) .page-hero {
  min-height: 205px;
  padding: 58px 24px 62px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}
body:not(.admin-mode) .page-hero .kicker,
body:not(.admin-mode) .page-hero h1 {
  color: #fff;
  text-align: center;
}
body:not(.admin-mode) .page-hero h1 {
  margin: 0;
}
body:not(.admin-mode) main.hero {
  max-width: 980px;
  margin: 54px auto 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
body:not(.admin-mode) .support-card {
  border: 1px solid var(--border);
  background: #f7f7f8;
  box-shadow: none;
  border-radius: 0;
  padding: 32px;
}

/* Widen customer-facing content slightly without pushing to screen edges. */
body:not(.admin-mode) .portal-home {
  max-width: 1115px;
}
body:not(.admin-mode) .quote-shell {
  width: min(100% - 64px, 1355px);
  max-width: 1355px;
}
@media (min-width: 1000px) {
  body:not(.admin-mode) .quote-shell {
    width: min(100% - 64px, 1355px);
    max-width: 1355px;
  }
}

/* Quote Builder: restore neutral category controls and readable form controls. */
body:not(.admin-mode) .quote-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}
body:not(.admin-mode) .quote-catalog-grid {
  grid-template-columns: 170px minmax(0, 1fr);
}
body:not(.admin-mode) .quote-category-sidebar {
  background: #f7f8fb;
  border-right: 1px solid var(--border);
}
body:not(.admin-mode) .category-button {
  background: #eef1f6 !important;
  color: #596274 !important;
  border: 1px solid #dbe1ea !important;
  border-radius: 3px !important;
  min-height: 46px !important;
  padding: 9px 12px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-align: left !important;
  justify-content: flex-start !important;
  line-height: 1.15 !important;
}
body:not(.admin-mode) .category-button:hover {
  background: #f4f6fa !important;
  color: #303746 !important;
  border-color: #cfd7e4 !important;
}
body:not(.admin-mode) .category-button.active {
  background: #ffffff !important;
  color: var(--brand) !important;
  border-color: #aebdf0 !important;
  box-shadow: none !important;
}
body:not(.admin-mode) .details-product {
  background: #6b7280 !important;
  color: #fff !important;
  border-color: #6b7280 !important;
  min-height: 32px !important;
  padding: 5px 6px !important;
  border-radius: 3px !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
}
body:not(.admin-mode) .details-product:hover {
  background: #4b5563 !important;
  border-color: #4b5563 !important;
}
body:not(.admin-mode) .product-qty {
  width: 50px !important;
  min-width: 50px !important;
  min-height: 36px !important;
  padding: 0 8px !important;
  border: 1px solid #d8dde8 !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 13px !important;
  text-align: left !important;
  -webkit-text-fill-color: #111827 !important;
}
body:not(.admin-mode) .product-table .add-product {
  width: 43px !important;
  min-width: 43px !important;
  min-height: 32px !important;
  padding: 5px 5px !important;
  font-size: 11px !important;
  background: var(--brand) !important;
  color: #fff !important;
}
body:not(.admin-mode) .product-table th:nth-child(1),
body:not(.admin-mode) .product-table td:nth-child(1) {
  width: 138px;
}
body:not(.admin-mode) .product-table th:nth-child(2),
body:not(.admin-mode) .product-table td:nth-child(2) {
  width: 27%;
}
body:not(.admin-mode) .product-table th:nth-child(6),
body:not(.admin-mode) .product-table td:nth-child(6) {
  width: 54px;
}
body:not(.admin-mode) .product-table th:nth-child(7),
body:not(.admin-mode) .product-table td:nth-child(7) {
  width: 64px;
}
body:not(.admin-mode) .product-table th:nth-child(8),
body:not(.admin-mode) .product-table td:nth-child(8) {
  width: 46px;
}

@media (max-width: 900px) {
  body:not(.admin-mode) main.hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body:not(.admin-mode) .quote-shell {
    width: min(100% - 32px, 100%);
  }
}

/* v34 saved quote dashboard and spacing refinements */
body:not(.admin-mode) .portal-home,
body:not(.admin-mode) .account-shell {
  max-width: 1190px;
}

body:not(.admin-mode) .account-shell {
  padding-left: 16px;
  padding-right: 16px;
}

body:not(.admin-mode) .account-card {
  padding: 26px 22px;
}

body:not(.admin-mode) .detail-list div {
  grid-template-columns: 128px minmax(0, 1fr);
}

body:not(.admin-mode) .detail-list dd {
  overflow-wrap: anywhere;
  word-break: normal;
}

body:not(.admin-mode) .quote-shell {
  width: min(100% - 48px, 1430px);
  max-width: 1430px;
}

@media (min-width: 1000px) {
  body:not(.admin-mode) .quote-shell {
    width: min(100% - 48px, 1430px);
    max-width: 1430px;
  }
}

body:not(.admin-mode) .quote-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

body:not(.admin-mode) .quote-catalog-grid {
  grid-template-columns: 188px minmax(0, 1fr);
}

body:not(.admin-mode) .category-button {
  min-height: 56px !important;
  height: auto !important;
  align-items: flex-start !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.22 !important;
}

.quote-dashboard {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.quote-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.quote-section-title-row h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.04em;
}

.quote-section-title-row p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.saved-drafts-title {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 8px;
}

.saved-quotes-list {
  display: grid;
  gap: 10px;
}

.saved-quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 16px;
}

.saved-quote-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.02em;
}

.saved-quote-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.saved-quote-card > strong {
  text-align: right;
  color: var(--brand);
  font-size: 16px;
}

.saved-quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-empty {
  padding: 18px;
}

.quote-builder-workspace {
  display: grid;
  gap: 12px;
}

.quote-workspace-toolbar {
  display: flex;
  justify-content: flex-start;
}

.quote-name-field {
  display: grid;
  gap: 7px;
  margin: 14px 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #344054;
}

.quote-name-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8dde8;
  border-radius: 3px;
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  color: #111827;
  background: #fff;
}

.quote-save-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

body:not(.admin-mode) .btn.danger-light,
body:not(.admin-mode) button.danger-light {
  background: #fff5f4 !important;
  color: #b42318 !important;
  border: 1px solid #ffd4d1 !important;
}

@media (max-width: 900px) {
  body:not(.admin-mode) .quote-shell {
    width: min(100% - 28px, 100%);
  }
  .saved-quote-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .saved-quote-card > strong,
  .saved-quote-actions {
    text-align: left;
    justify-content: flex-start;
  }
}
.quote-dashboard[hidden],
.quote-builder-workspace[hidden] {
  display: none !important;
}

/* v35 submitted quote workflow refinements */
.quote-status-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: #4b5563;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  vertical-align: middle;
}
.quote-status-chip.submitted { background: #eef4ff; color: var(--brand); }
.quote-status-chip.withdrawn { background: #fff4ed; color: #b54708; }
.saved-quote-card.withdrawn { background: #fffaf5; }
.quote-view-modal { width: min(96vw, 980px); max-width: 980px; }
.quote-view-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.quote-view-summary strong { color: var(--brand); font-size: 18px; }
.quote-view-table-wrap { overflow-x: auto; }
.quote-view-table { font-size: 12px; }
.quote-view-table th:nth-child(1), .quote-view-table td:nth-child(1) { width: 150px; }
.quote-view-table th:nth-child(2), .quote-view-table td:nth-child(2) { width: auto; }
.quote-view-table th:nth-child(3), .quote-view-table td:nth-child(3) { width: 54px; text-align: center; }
.quote-view-table th:nth-child(4), .quote-view-table td:nth-child(4),
.quote-view-table th:nth-child(5), .quote-view-table td:nth-child(5) { width: 120px; text-align: right; }
.quote-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
}
body:not(.admin-mode) .category-button {
  min-height: 66px !important;
  align-items: center !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: manual !important;
}
body:not(.admin-mode) .quote-catalog-grid {
  grid-template-columns: 198px minmax(0, 1fr);
}
.admin-quotes-table td small { display: block; margin-top: 4px; color: #667085; }
.admin-quote-items-table td:nth-child(2) { max-width: 430px; }
.status-withdrawn,
.status-badge.status-withdrawn {
  background: #fff4ed;
  color: #b54708;
  border-color: #ffd6ae;
}

.quote-save-status {
  min-height: 18px;
  margin: -4px 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}
.quote-save-status.success { color: #087443; }
.quote-save-status.warning { color: #b54708; }
.quote-save-status.neutral { color: #475467; }
body:not(.admin-mode) .category-button {
  min-height: 72px !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}


/* v37 customer cleanup: centered sign-in, three home modules, safer category wrapping */
body:not(.admin-mode) main.hero.sign-in-only-page {
  max-width: 620px;
  grid-template-columns: 1fr !important;
  gap: 0;
  margin: 54px auto 72px;
  padding: 0 24px;
}
body:not(.admin-mode) main.hero.sign-in-only-page .form-card {
  width: 100%;
  max-width: 620px;
}
body:not(.admin-mode) main.hero.sign-in-only-page .form-intro {
  max-width: 560px;
}
body:not(.admin-mode) .dashboard-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body:not(.admin-mode) .dashboard-action-grid .home-action-card:nth-child(3) {
  grid-column: 1 / -1;
}
body:not(.admin-mode) .quote-catalog-grid {
  grid-template-columns: 208px minmax(0, 1fr) !important;
}
body:not(.admin-mode) .category-button {
  min-height: 84px !important;
  height: auto !important;
  align-items: center !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.18 !important;
  padding: 10px 12px !important;
}
@media (max-width: 900px) {
  body:not(.admin-mode) .dashboard-action-grid {
    grid-template-columns: 1fr;
  }
  body:not(.admin-mode) .dashboard-action-grid .home-action-card:nth-child(3) {
    grid-column: auto;
  }
}

/* v38 quote URL workflow + width alignment */
body:not(.admin-mode) .quote-shell.quote-dashboard-mode,
body:not(.admin-mode) .account-shell {
  width: min(100% - 48px, 1190px) !important;
  max-width: 1190px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body:not(.admin-mode) .quote-shell.quote-workspace-mode {
  width: min(100% - 48px, 1430px) !important;
  max-width: 1430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body:not(.admin-mode) .quote-shell.quote-dashboard-mode .quote-hero {
  align-items: flex-start;
}
body:not(.admin-mode) .quote-shell.quote-dashboard-mode .quote-hero h1 {
  max-width: 820px;
}
body:not(.admin-mode) .quote-shell.quote-dashboard-mode .quote-hero p {
  max-width: 720px;
}
body:not(.admin-mode) .quote-shell.quote-workspace-mode .quote-catalog-grid {
  grid-template-columns: 218px minmax(0, 1fr) !important;
}
body:not(.admin-mode) .quote-shell.quote-workspace-mode .category-button {
  min-height: 100px !important;
  padding: 12px 14px !important;
  line-height: 1.2 !important;
  font-size: 11px !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
body:not(.admin-mode) .saved-quote-actions a.btn {
  text-decoration: none !important;
}
@media (max-width: 900px) {
  body:not(.admin-mode) .quote-shell.quote-dashboard-mode,
  body:not(.admin-mode) .quote-shell.quote-workspace-mode,
  body:not(.admin-mode) .account-shell {
    width: min(100% - 28px, 100%) !important;
  }
}

/* Admin customer quote builder */
.admin-quote-shell{width:min(1500px,calc(100% - 32px));margin:0 auto;padding:28px 0 48px}.admin-quote-workspace{display:grid;gap:18px}.admin-quote-customer-card{padding:18px}.admin-quote-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-quote-form-grid label,.admin-quote-notes{display:grid;gap:6px;font-weight:700;color:#24304a}.admin-quote-form-grid input,.admin-quote-notes input,.admin-cart-controls input,.admin-cart-controls select{width:100%;border:1px solid #cfd5e2;border-radius:8px;padding:9px 10px;background:#fff}.admin-quote-price-controls{display:grid;grid-template-columns:auto 1fr;align-items:end;gap:22px;margin-top:16px}.field-label{display:block;font-size:.85rem;font-weight:800;margin-bottom:7px}.price-tier-buttons{display:flex;gap:8px;flex-wrap:wrap}.price-tier-button{border:1px solid #b8c1d5;background:#fff;color:#233587;border-radius:999px;padding:8px 15px;font-weight:800;cursor:pointer}.price-tier-button.active{background:#233587;color:#fff;border-color:#233587}.admin-quote-layout{grid-template-columns:minmax(0,1fr) 390px}.admin-product-price-table th:nth-child(2),.admin-product-price-table td:nth-child(2){width:32%}.admin-product-qty{width:62px}.admin-quote-cart-item{gap:10px}.admin-cart-controls{display:grid;grid-template-columns:70px minmax(150px,1fr) minmax(110px,.7fr);gap:8px;align-items:end}.admin-cart-controls label{font-size:.76rem;font-weight:800;color:#4a556d;display:grid;gap:4px}.admin-cart-price-row{display:flex;justify-content:space-between;gap:12px;font-size:.82rem;color:#475467;border-top:1px solid #e6e9f0;padding-top:8px}.custom-price-field.hidden{visibility:hidden}.admin-quote-save-actions{margin-top:14px}.admin-quote-save-actions .btn{flex:1}@media(max-width:1050px){.admin-quote-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-quote-layout{grid-template-columns:1fr}.admin-quote-cart-panel{position:static}}@media(max-width:650px){.admin-quote-form-grid,.admin-quote-price-controls{grid-template-columns:1fr}.admin-cart-controls{grid-template-columns:1fr}.custom-price-field.hidden{display:none}}


/* v41 admin quote builder spacing and pricing controls */
.admin-quote-shell {
  width: min(1600px, calc(100% - 40px));
}

/* Unselected = blue/white; selected = white/blue. */
.admin-quote-shell .price-tier-button {
  min-width: 128px;
  min-height: 42px;
  border: 2px solid #233587 !important;
  border-radius: 4px !important;
  background: #233587 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 850 !important;
  opacity: 1 !important;
}
.admin-quote-shell .price-tier-button:hover {
  background: #1d2d75 !important;
  color: #ffffff !important;
}
.admin-quote-shell .price-tier-button.active {
  background: #ffffff !important;
  color: #233587 !important;
  -webkit-text-fill-color: #233587 !important;
  border-color: #233587 !important;
  box-shadow: inset 0 0 0 1px #233587;
}

.admin-quote-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}
.admin-quote-layout .quote-catalog-grid {
  grid-template-columns: 205px minmax(0, 1fr);
}
.admin-product-price-table {
  table-layout: fixed;
  min-width: 850px;
}
.admin-product-price-table th,
.admin-product-price-table td {
  padding-left: 10px;
  padding-right: 10px;
}
.admin-product-price-table th:nth-child(1),
.admin-product-price-table td:nth-child(1) { width: 132px; }
.admin-product-price-table th:nth-child(2),
.admin-product-price-table td:nth-child(2) { width: auto; }
.admin-product-price-table th:nth-child(3),
.admin-product-price-table td:nth-child(3),
.admin-product-price-table th:nth-child(4),
.admin-product-price-table td:nth-child(4),
.admin-product-price-table th:nth-child(5),
.admin-product-price-table td:nth-child(5) {
  width: 104px;
  text-align: right;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}
.admin-product-price-table th:nth-child(6),
.admin-product-price-table td:nth-child(6) { width: 62px; text-align: center; }
.admin-product-price-table th:nth-child(7),
.admin-product-price-table td:nth-child(7) { width: 62px; text-align: center; }
.admin-product-price-table .admin-product-qty {
  width: 54px;
  min-width: 54px;
}
.admin-quote-layout .quote-table-wrap {
  overflow-x: auto;
}

/* Compact admin cart: SKU only, no description. */
.admin-quote-cart-panel {
  min-width: 0;
}
.admin-quote-cart-item {
  padding: 12px;
  gap: 9px;
  overflow: hidden;
}
.admin-quote-cart-item .cart-item-topline {
  align-items: center;
  min-width: 0;
}
.admin-cart-sku-only {
  min-width: 0;
  max-width: calc(100% - 34px);
}
.admin-cart-sku-only strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.admin-cart-controls {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}
.admin-cart-controls .custom-price-field {
  grid-column: 1 / -1;
}
.admin-cart-controls .custom-price-field.hidden {
  display: none;
}
.admin-cart-price-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

@media (max-width: 1200px) {
  .admin-quote-layout {
    grid-template-columns: 1fr;
  }
  .admin-quote-cart-panel {
    position: static;
  }
}

/* Admin quote builder v42 */
.admin-quote-shell .price-tier-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
}
.admin-quote-shell .price-tier-button {
  border-radius: 6px;
  background: #233587;
  color: #fff;
  border: 2px solid #233587;
  min-height: 40px;
  padding: 8px 12px;
}
.admin-quote-shell .price-tier-button:hover {
  background: #1d2d73;
  color: #fff;
}
.admin-quote-shell .price-tier-button.active {
  background: #fff;
  color: #233587;
  border-color: #233587;
}
.admin-product-price-table {
  table-layout: fixed;
  min-width: 690px;
}
.admin-product-price-table th:nth-child(1),
.admin-product-price-table td:nth-child(1) { width: 150px; }
.admin-product-price-table th:nth-child(2),
.admin-product-price-table td:nth-child(2) { width: auto; }
.admin-product-price-table th:nth-child(3),
.admin-product-price-table td:nth-child(3) { width: 125px; text-align: right; white-space: nowrap; }
.admin-product-price-table th:nth-child(4),
.admin-product-price-table td:nth-child(4) { width: 68px; text-align: center; }
.admin-product-price-table th:nth-child(5),
.admin-product-price-table td:nth-child(5) { width: 72px; text-align: center; }
.admin-selected-price { font-weight: 700; color: #233587; }
.admin-quote-save-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.admin-quote-save-actions .btn {
  flex: 0 1 132px;
  width: auto;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.admin-custom-product-card { padding: 20px; }
.admin-custom-product-grid {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(300px, 2fr) minmax(130px, .7fr) 90px auto;
  gap: 12px;
  align-items: end;
}
.admin-custom-product-grid label {
  display: grid;
  gap: 6px;
  color: #24304a;
  font-size: .82rem;
  font-weight: 800;
}
.admin-custom-product-grid input {
  width: 100%;
  border: 1px solid #cfd5e2;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.admin-cart-sku-only small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .admin-quote-shell .price-tier-buttons { grid-template-columns: repeat(3, minmax(112px, 1fr)); }
  .admin-custom-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-custom-product-grid .custom-description { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .admin-quote-shell .price-tier-buttons,
  .admin-custom-product-grid { grid-template-columns: 1fr; }
  .admin-custom-product-grid .custom-description { grid-column: auto; }
}


/* Admin quote builder v43 */
.admin-product-price-table th:nth-child(1),
.admin-product-price-table td:nth-child(1) { width: 140px; }
.admin-product-price-table th:nth-child(2),
.admin-product-price-table td:nth-child(2) { width: auto; }
.admin-product-price-table th:nth-child(3),
.admin-product-price-table td:nth-child(3) { width: 105px; text-align: left; padding-left: 6px; }
.admin-product-price-table th:nth-child(4),
.admin-product-price-table td:nth-child(4) { width: 60px; }
.admin-product-price-table th:nth-child(5),
.admin-product-price-table td:nth-child(5) { width: 66px; }
.admin-product-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  max-height: 2.7em;
}
.admin-cart-price-row { display: block; }
.admin-custom-product-grid label small { font-weight: 500; color: #667085; }


/* Admin quote builder v44 */
/* Pull quantity and Add controls left so the catalog fits beside the cart. */
.admin-product-price-table {
  min-width: 610px;
}
.admin-product-price-table th:nth-child(1),
.admin-product-price-table td:nth-child(1) { width: 118px; }
.admin-product-price-table th:nth-child(3),
.admin-product-price-table td:nth-child(3) { width: 94px; padding-left: 4px; }
.admin-product-price-table th:nth-child(4),
.admin-product-price-table td:nth-child(4) { width: 52px; padding-left: 3px; padding-right: 3px; }
.admin-product-price-table th:nth-child(5),
.admin-product-price-table td:nth-child(5) { width: 58px; padding-left: 2px; padding-right: 4px; }
.admin-product-price-table .admin-product-qty {
  width: 46px;
  min-width: 46px;
  padding-left: 5px;
  padding-right: 5px;
}
.admin-product-price-table td:nth-child(5) .btn {
  min-width: 50px;
  padding-left: 8px;
  padding-right: 8px;
}

/* Admin saved quotes v46 */
.admin-saved-quotes-shell { max-width: 1240px; }
.saved-admin-quotes-card { padding: 14px; }
.saved-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.saved-admin-search-wrap { flex: 1; max-width: 560px; }
.saved-admin-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.saved-admin-quote-grid { display: grid; gap: 6px; }
.saved-admin-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, .55fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  background: #fff;
}
.saved-admin-quote-main { min-width: 0; }
.saved-admin-quote-main h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-admin-quote-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-admin-quote-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.saved-admin-quote-meta strong { color: var(--brand); font-size: 13px; }
.saved-admin-quote-actions { display: flex; gap: 5px; justify-content: flex-end; }
.btn.mini {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1;
  border-radius: 4px;
}
@media (max-width: 850px) {
  .saved-admin-quote-row { grid-template-columns: minmax(0, 1fr) auto; }
  .saved-admin-quote-meta { display: none; }
}
@media (max-width: 560px) {
  .saved-admin-toolbar { align-items: stretch; flex-direction: column; }
  .saved-admin-quote-row { grid-template-columns: 1fr; }
  .saved-admin-quote-actions { justify-content: flex-start; }
}
