﻿:root {
  --header-height: 96px;
  --header-inset: 16px;
  --header-clearance: 14px;
  --bg: #f8fafc;
  --bg-2: #eef4fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --line: #dbe4ef;
  --text: #0f2f4e;
  --muted: #64748b;
  --brand: #0f2f4e;
  --brand-2: #16456f;
  --success: #1f8b53;
  --success-soft: #e8f7ef;
  --warning: #d9822b;
  --warning-soft: #fff3df;
  --danger: #c94b4b;
  --danger-soft: #ffe9e9;
  --shadow: 0 12px 30px -16px rgba(15, 47, 78, 0.18), 0 2px 6px rgba(15, 47, 78, 0.04);
  --radius: 16px;
}

body.subscription-modal-open {
  overflow: hidden;
}

body.seo-modal-open {
  overflow: hidden;
}

body.subscription-modal-open .site-header,
body.subscription-modal-open .landing-fixed-header,
body.subscription-modal-open #sidebar,
body.subscription-modal-open #mobile-overlay {
  z-index: 1 !important;
  pointer-events: none;
  user-select: none;
}

body.subscription-modal-open #internal-main {
  position: relative;
  z-index: 0;
}

.subscription-plan-button {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #ffffff !important;
  white-space: nowrap;
}

.subscription-plan-button:hover,
.subscription-plan-button:focus-visible {
  background: #176c40 !important;
  border-color: #176c40 !important;
  color: #ffffff !important;
}

.subscription-modal-shell[hidden] {
  display: none !important;
}

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

.subscription-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 78, 0.28);
}

.admin-subscription-modal-overlay {
  background: rgba(15, 47, 78, 0.28);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.subscription-modal {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 16px;
}

.subscription-modal-head,
.subscription-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.subscription-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.subscription-modal-head h2 {
  margin: 4px 0 0;
}

.subscription-modal-close {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.subscription-modal-close::before,
.subscription-modal-close::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.subscription-modal-close::before {
  transform: rotate(45deg);
}

.subscription-modal-close::after {
  transform: rotate(-45deg);
}

.subscription-modal-body {
  overflow: auto;
  padding: 20px;
}

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

.subscription-detail-grid div,
.subscription-empty,
.subscription-confirm {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
}

.subscription-empty {
  display: grid;
  gap: 6px;
}

.subscription-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.subscription-detail-grid dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-detail-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.subscription-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.subscription-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.subscription-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted);
}

.subscription-chip.active::before,
.subscription-chip.legacy::before {
  background: var(--success);
}

.subscription-chip.warning::before,
.subscription-chip.pending::before {
  background: var(--warning);
}

.subscription-chip.blocked::before,
.subscription-chip.error::before {
  background: var(--danger);
}

.subscription-confirm h3 {
  margin: 0 0 8px;
}

.subscription-confirm p,
.subscription-confirm ul {
  margin: 0 0 10px;
  color: var(--muted);
}

.subscription-loading {
  color: var(--muted);
  font-weight: 700;
}

.admin-user-action-grid {
  align-items: stretch !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  max-width: min(860px, 100%) !important;
  width: 100%;
}

.admin-plan-compact {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-plan-compact strong {
  color: var(--text);
}

@media (max-width: 1180px) {
  .admin-user-action-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

@media (max-width: 640px) {
  .subscription-modal-shell {
    align-items: end;
    padding: 10px;
  }

  .subscription-modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 14px;
  }

  .subscription-detail-grid {
    grid-template-columns: 1fr;
  }

  .subscription-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-user-action-grid {
    grid-template-columns: 1fr;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 47, 78, 0.06), transparent 30%),
    radial-gradient(circle at top right, rgba(31, 139, 83, 0.07), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease !important;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(31, 139, 83, 0.45);
  outline-offset: 2px;
}

body.landing-shell {
  background:
    radial-gradient(circle at top left, rgba(15, 47, 78, 0.07), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 139, 83, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  overflow-x: hidden;
}

body.landing-shell .content {
  gap: 0 !important;
  padding-top: 0 !important;
}

body.landing-shell .landing-header-spacer {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: calc(var(--header-height) + 2px + var(--header-inset) + var(--header-clearance));
  background: #f8fafc;
}

body.landing-shell > .content > footer {
  position: relative;
}

body.landing-shell > .content > footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -32px;
  height: 32px;
  background: #0f2f4e;
  pointer-events: none;
}

body.landing-shell .site-header,
body.landing-shell .landing-fixed-header {
  position: fixed;
  top: var(--header-inset);
  left: var(--header-inset);
  right: var(--header-inset);
  z-index: 99999;
}

body.landing-shell .landing-header-shell {
  position: relative;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 47, 78, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 44px -32px rgba(15, 47, 78, 0.36);
}

body.landing-shell .landing-header-inner {
  padding: 12px 20px;
}

body.landing-shell .landing-brand-logo {
  max-height: 38px;
}

body.landing-shell #landing-menu {
  z-index: 100;
}

@media (max-width: 1023.98px) {
  body.landing-shell #landing-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 4px 4px;
  }

  body.landing-shell #landing-menu > ul {
    margin-top: 0;
    padding: 12px;
    border: 1px solid rgba(15, 47, 78, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 44px -34px rgba(15, 47, 78, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

@media (max-width: 767.98px) {
  body.landing-shell .site-header,
  body.landing-shell .landing-fixed-header {
    top: 6px;
    left: 8px;
    right: 8px;
  }

  body.landing-shell .landing-header-inner {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 14px;
  }

  body.landing-shell .landing-brand-logo {
    max-height: 30px;
  }

  body.landing-shell .landing-menu-toggle {
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.landing-shell .landing-header-shell {
    border-radius: 22px;
  }

  body.landing-shell .landing-header-spacer {
    height: calc(var(--header-height) + 12px);
  }

  #default-carousel > button[data-carousel-next] {
    display: none !important;
  }

  #default-carousel > button[data-carousel-prev] {
    display: none !important;
  }

  #default-carousel > .absolute.z-30.flex {
    bottom: 12px !important;
    gap: 4px !important;
  }

  #default-carousel > .absolute.z-30.flex > button[data-carousel-slide-to] {
    width: 5px !important;
    height: 5px !important;
  }
}

body.landing-shell #landing-menu > ul {
  gap: 0.25rem;
}

body.landing-shell .landing-nav-link {
  color: var(--brand) !important;
  border-radius: 999px;
  padding: 10px 12px !important;
  line-height: 1.1;
  font-size: 0.95rem;
}

body.landing-shell .landing-nav-link:hover {
  background: rgba(15, 47, 78, 0.04);
  color: var(--brand-2) !important;
}

body.landing-shell .landing-nav-btn {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

body.landing-shell .landing-nav-btn-primary {
  background: var(--brand) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

body.landing-shell .landing-nav-btn-primary:hover {
  background: #0b2540 !important;
  box-shadow: 0 14px 28px -18px rgba(15, 47, 78, 0.38);
  transform: translateY(-1px);
}

body.landing-shell .landing-nav-btn-success {
  background: var(--success) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

body.landing-shell .landing-nav-btn-success:hover {
  background: #177345 !important;
  box-shadow: 0 14px 28px -18px rgba(31, 139, 83, 0.38);
  transform: translateY(-1px);
}

body.landing-shell .landing-nav-btn-outline {
  background: #ffffff !important;
  color: var(--brand) !important;
  border: 1px solid rgba(15, 47, 78, 0.14) !important;
}

body.landing-shell .landing-nav-btn-outline:hover {
  background: #f8fafc !important;
  border-color: rgba(15, 47, 78, 0.22) !important;
  transform: translateY(-1px);
}

body.landing-shell .landing-menu-toggle {
  color: var(--brand);
  border: 1px solid rgba(15, 47, 78, 0.12);
  background: rgba(15, 47, 78, 0.03);
}

body.landing-shell section {
  scroll-margin-top: calc(var(--header-height) + var(--header-inset) + var(--header-clearance));
}

body.landing-shell .landing-section,
body.landing-shell .features,
body.landing-shell .faq,
body.landing-shell section > header,
body.landing-shell .section-header {
  position: relative;
  z-index: 1;
  top: auto;
  inset: auto;
  transform: none;
  margin-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 292px;
  height: 100vh;
  overflow: hidden;
  padding: 10px 9px 8px;
  background: linear-gradient(180deg, var(--brand) 0%, #0b2238 100%);
  color: #eef6ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.sidebar-brand,
.public-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.sidebar .sidebar-brand {
  justify-content: center;
  margin-bottom: 4px;
}

.sidebar-logo {
  width: 122px;
  height: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
}

.sidebar-section {
  display: grid;
  gap: 3px;
  width: 100%;
}

.sidebar-section-title {
  padding: 0 9px;
  color: rgba(231, 242, 255, 0.55);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-link,
.sidebar-section > a,
.sidebar-subgroup a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #e8f1ff;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-weight: 600;
  font-size: 0.82rem;
}

.nav-alert-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-radius: 999px;
  background: #ffd166;
  color: #102742;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}

.sidebar-group,
.sidebar-group summary {
  width: 100%;
}

.sidebar-subgroup[hidden] {
  display: none !important;
}

.sidebar-group-toggle {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  text-align: left;
}

.sidebar-group-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.sidebar-group-toggle .group-caret {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(255,255,255,0.78);
  border-bottom: 2px solid rgba(255,255,255,0.78);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.sidebar-group-toggle[aria-expanded="true"] .group-caret {
  transform: rotate(-135deg);
}

.sidebar-group-label {
  cursor: default;
  background: transparent;
  border-color: transparent;
  transform: none;
}

.sidebar-group-label:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
}

.sidebar-section > a:hover,
.sidebar-link:hover,
.sidebar-subgroup a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.sidebar-link.active,
.sidebar-section > a.active,
.sidebar-subgroup a.active {
  background: linear-gradient(180deg, rgba(4, 176, 70, 0.18) 0%, rgba(4, 176, 70, 0.28) 100%);
  border-color: rgba(4, 176, 70, 0.55);
  box-shadow: inset 0 0 0 1px rgba(4, 176, 70, 0.20);
}

.sidebar-link.active span:last-child,
.sidebar-section > a.active span:last-child,
.sidebar-subgroup a.active {
  color: #ffffff;
}

.sidebar-group {
  border: 0;
}

.sidebar-subgroup {
  margin: 2px 0 0 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2px;
  width: calc(100% - 14px);
}

.sidebar-subgroup a {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 0.73rem;
  color: rgba(231, 242, 255, 0.88);
}

.nav-icon {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
}

.nav-icon-lib {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  object-fit: contain;
  color: rgba(255,255,255,0.96);
}

.nav-icon-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  display: inline-block;
}

.nav-icon-dashboard,
.nav-icon-handshake,
.nav-icon-collab,
.nav-icon-briefcase,
.nav-icon-box,
.nav-icon-cart,
.nav-icon-folder,
.nav-icon-user,
.nav-icon-supplier,
.nav-icon-buyer,
.nav-icon-order,
.nav-icon-target,
.nav-icon-report,
.nav-icon-chart,
.nav-icon-gear,
.nav-icon-settings {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
}

.nav-icon-dashboard::before {
  content: "";
  position: absolute;
  inset: 2px 2px 2px 2px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-radius: 4px;
}

.nav-icon-dashboard::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  box-shadow: 6px 0 0 rgba(255,255,255,0.85), 0 6px 0 rgba(255,255,255,0.85), 6px 6px 0 rgba(255,255,255,0.85);
}

.nav-icon-chevron::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.82);
  border-bottom: 2px solid rgba(255,255,255,0.82);
  transform: rotate(45deg);
}

.nav-icon-handshake::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 7px;
  height: 6px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  transform: rotate(-12deg);
}

.nav-icon-handshake::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 5px;
  width: 7px;
  height: 6px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  transform: rotate(12deg);
}

.nav-icon-collab {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.6l2.4-2.4c.6-.6 1.4-.9 2.2-.8l1.6.2 1.4.7 1.1-.6c.7-.4 1.5-.3 2.1.2l1 1-2.5 2.5c-.7.7-1.8.8-2.6.2l-1.1-.8-1.3 1.3c-.8.8-2 .9-2.9.2L4 11.1'/%3E%3Cpath d='M6.1 6.8l1.1 1.1'/%3E%3Cpath d='M8.7 6.9l1.1 1.1'/%3E%3Cpath d='M10.6 11.1l1.1 1.1'/%3E%3Cpath d='M12.4 7.2l1.2 1.2'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-icon-briefcase::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 6px;
  bottom: 2px;
  border: 1.8px solid rgba(255,255,255,0.88);
  border-radius: 4px;
}

.nav-icon-briefcase::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 8px;
  height: 4px;
  border: 1.8px solid rgba(255,255,255,0.88);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.nav-icon-cart::before {
  content: none;
}

.nav-icon-cart::after {
  content: none;
}

.nav-icon-cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.8 3.5h1.4l1.1 6.6h7.2l1-4.9H5.1' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.5 8.2h7.3' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M5.3 11.4h6.5' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='14.1' r='1.1' fill='%23ffffff'/%3E%3Ccircle cx='12.2' cy='14.1' r='1.1' fill='%23ffffff'/%3E%3Cpath d='M5.4 4.2l.8 1.4' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: scale(1.1);
  transform-origin: center;
}

.nav-icon-folder::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  bottom: 2px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-radius: 4px 4px 3px 3px;
}

.nav-icon-folder::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 7px;
  height: 3px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.nav-icon-user::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.8px solid rgba(255,255,255,0.85);
}

.nav-icon-user::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 12px;
  height: 6px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.nav-icon-supplier,
.nav-icon-buyer {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.nav-icon-supplier::before,
.nav-icon-supplier::after,
.nav-icon-buyer::before,
.nav-icon-buyer::after {
  content: none;
}

.nav-icon-supplier {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='8' cy='5' r='2.7' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M3.8 15c0-2.4 1.9-4.1 4.2-4.1s4.2 1.7 4.2 4.1' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M14.8 6.8v3.8m-1.9-1.9h3.8' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nav-icon-buyer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='8' cy='5' r='2.7' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M3.8 15c0-2.4 1.9-4.1 4.2-4.1s4.2 1.7 4.2 4.1' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3Ctext x='15.2' y='13.3' fill='%23ffffff' font-family='Arial, Helvetica, sans-serif' font-size='9.2' font-weight='700' text-anchor='middle'%3E%24%3C/text%3E%3C/svg%3E");
}

.nav-icon-order::before {
  content: "";
  position: absolute;
  inset: 2px 3px 3px 3px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-radius: 4px;
}

.nav-icon-order::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 1.8px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 0 rgba(255,255,255,0.85), 0 8px 0 rgba(255,255,255,0.85);
}

.nav-icon-target::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-radius: 999px;
}

.nav-icon-target::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
}

.nav-icon-report::before {
  content: "";
  position: absolute;
  inset: 2px 3px 2px 3px;
  border: 1.8px solid rgba(255,255,255,0.85);
  border-radius: 3px;
}

.nav-icon-report::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 6px;
  background:
    linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,0.85) 2px 3px, transparent 3px 5px, rgba(255,255,255,0.85) 5px 6px, transparent 6px 8px),
    linear-gradient(180deg, rgba(255,255,255,0.85) 0 1.8px, transparent 1.8px 100%);
}

.nav-icon-chart::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.85);
  box-shadow: 4px -3px 0 rgba(255,255,255,0.85), 8px -6px 0 rgba(255,255,255,0.85);
}

.nav-icon-chart::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-left: 1.8px solid rgba(255,255,255,0.35);
  border-bottom: 1.8px solid rgba(255,255,255,0.35);
  transform: skew(-35deg) rotate(-12deg);
}

.nav-icon-gear,
.nav-icon-settings {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5.3c.6 0 1.1.1 1.6.3l.8-1.4 1.7 1-.8 1.4c.4.4.7.9.9 1.5h1.6v2h-1.6c-.2.6-.5 1.1-.9 1.5l.8 1.4-1.7 1-.8-1.4c-.5.2-1 .3-1.6.3s-1.1-.1-1.6-.3l-.8 1.4-1.7-1 .8-1.4c-.4-.4-.7-.9-.9-1.5H3.2v-2h1.6c.2-.6.5-1.1.9-1.5l-.8-1.4 1.7-1 .8 1.4c.5-.2 1-.3 1.6-.3z'/%3E%3Ccircle cx='9' cy='9' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-icon-gear::before,
.nav-icon-gear::after,
.nav-icon-settings::before,
.nav-icon-settings::after {
  content: none;
}

.nav-subicon {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  flex: 0 0 6px;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
}

.sidebar-note {
  margin-top: auto;
  margin-bottom: 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.sidebar-note-text {
  display: grid;
  gap: 0;
  transform: translateY(8px);
}

.sidebar-note strong {
  font-size: 0.5rem;
  line-height: 0.72;
  display: block;
  margin: 0;
}

.sidebar-note span {
  font-size: 0.55rem;
  line-height: 0.72;
  display: block;
  margin: 0;
}

.sidebar-note small {
  font-size: 0.44rem;
  line-height: 0.72;
  display: block;
  margin: 0;
}

.sidebar-note-text strong {
  margin-bottom: 1px;
}

.sidebar-note-text span {
  margin-bottom: 2px;
}

.sidebar-logout {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
  line-height: 1;
  min-height: 18px;
  height: 18px;
  transform: translateY(-8px);
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.topbar,
.public-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.public-topbar-landing {
  position: relative;
}

.public-topbar-landing .brand-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.public-topbar-landing .site-nav {
  margin-left: 0;
}

.public-topbar .public-brand {
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
}

.public-topbar .sidebar-logo {
  width: 154px;
  max-width: 154px;
  height: auto;
}

.public-topbar {
  padding-left: 6px;
  padding-right: 6px;
}

.topbar {
  margin-left: 292px;
  padding: 20px 20px 0;
}

.topbar h1,
.public-topbar h1 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.content {
  display: grid;
  gap: 18px;
  margin-left: 292px;
  padding: 0 20px 20px;
}

.public-shell .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-inline: 0 !important;
  width: 100% !important;
  max-width: none;
}

.auth-shell {
  background:
    radial-gradient(circle at 20% 0%, rgba(13, 77, 145, 0.06), transparent 34%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.auth-shell .content {
  margin-left: 0;
  padding: 0;
}

.public-shell {
  background:
    radial-gradient(circle at 14% 10%, rgba(82, 196, 141, 0.12), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(13, 77, 145, 0.10), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
}

.public-topbar-landing {
  width: min(1240px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 18px 0 0;
  position: relative;
  z-index: 2;
}

.auth-page {
  min-height: calc(100vh - 24px);
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
}

.auth-card-centered {
  width: min(380px, 100%);
  padding: 34px 30px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dee7f1;
  box-shadow: 0 16px 42px rgba(15, 47, 78, 0.10);
}

.signup-card {
  width: min(640px, 100%);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-logo {
  width: 210px;
  height: auto;
}

.auth-subtitle {
  margin: 0;
  color: #7c8798;
  font-size: 1rem;
}

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

.signup-form {
  gap: 18px;
}

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

.supplier-access-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 77, 145, 0.05), rgba(13, 77, 145, 0.02));
  border: 1px solid rgba(13, 77, 145, 0.12);
}

.supplier-access-head {
  margin-bottom: 0;
}

.supplier-access-fields {
  margin-top: 0;
}

.supplier-access-help {
  margin: 0;
  color: #6b7280;
}

.signup-password {
  grid-column: 1 / -1;
}

.signup-password small {
  min-height: 20px;
  color: #607086;
}

.signup-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #102337;
}

.signup-note {
  margin: 16px 0 0;
  text-align: center;
  color: #7c8798;
}

.signup-onboarding {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height, 92px) + 42px) 20px 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef7fb 100%);
}

.signup-onboarding-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 139, 83, 0.14), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(15, 47, 78, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.2));
}

.signup-shell {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.signup-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.signup-progress span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 47, 78, 0.12);
  transition: background 0.25s ease, width 0.25s ease;
}

.signup-progress span.is-active {
  width: 64px;
  background: linear-gradient(90deg, #0f2f4e, #1f8b53);
}

.signup-wizard-card {
  position: relative;
  min-height: 560px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(15, 47, 78, 0.10);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(15, 47, 78, 0.12);
  overflow: hidden;
}

.signup-step {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.signup-step.is-active {
  display: grid;
  gap: 28px;
  opacity: 1;
  transform: translateY(0);
  animation: signupStepIn 0.28s ease both;
}

@keyframes signupStepIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signup-step-copy {
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.signup-step-copy h1 {
  margin: 0;
  color: #0f2f4e;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.signup-gradient-title {
  display: inline-block;
  background: linear-gradient(90deg, #0f2f4e 0%, #2462a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.04em;
}

.signup-step-copy p {
  margin: 0;
  max-width: 620px;
  color: #607086;
  font-size: 1.08rem;
}

.signup-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-role-card {
  display: grid;
  gap: 12px;
  justify-items: start;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(15, 47, 78, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #0f2f4e;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 47, 78, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-role-card:hover,
.signup-role-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(31, 139, 83, 0.5);
  box-shadow: 0 24px 54px rgba(15, 47, 78, 0.13);
  background: linear-gradient(180deg, #ffffff 0%, #eefbf4 100%);
}

.signup-role-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2f4e, #1f8b53);
  color: #fff !important;
  font-weight: 900;
}

.signup-role-card strong {
  font-size: 1.35rem;
}

.signup-role-card small {
  color: #607086;
  line-height: 1.55;
}

.feature-step-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(15, 47, 78, 0.10);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 36px rgba(15, 47, 78, 0.06);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 47, 78, 0.16);
  box-shadow: 0 20px 44px rgba(15, 47, 78, 0.10);
}

.feature-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0f2f4e 0%, #1f8b53 100%);
  opacity: 0.82;
}

.feature-step-card-center {
  border-color: rgba(15, 47, 78, 0.16);
  box-shadow: 0 18px 44px rgba(15, 47, 78, 0.09);
}

.feature-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #f4f7fb;
  color: #0f2f4e;
  font-size: 0.9rem;
  font-weight: 800;
}

.feature-step-badge-center {
  background: #0f2f4e;
  color: #fff;
}

.feature-step-kicker {
  display: block;
  margin-bottom: 8px;
  color: #1f8b53;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-step-kicker-center {
  color: #0f2f4e;
}

.feature-step-title {
  margin: 0;
  color: #0f2f4e;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.12;
}

.feature-step-text {
  margin-top: 12px;
  color: #5d6b82;
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 32ch;
}

.signup-step-actions,
.signup-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.signup-next-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px 0 22px;
  border: 0;
  border-radius: 999px;
  background: #1f8b53;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(31, 139, 83, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.signup-next-button:hover {
  transform: translateY(-2px);
  background: #177345;
}

.signup-field-stack {
  display: grid;
  gap: 18px;
}

.signup-floating-field,
.signup-company-fields label {
  display: grid;
  gap: 8px;
}

.signup-floating-field span,
.signup-company-fields label span {
  color: #0f2f4e;
  font-weight: 800;
}

.signup-floating-field input,
.signup-company-fields input {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(15, 47, 78, 0.16);
  background: #fff;
  padding: 0 16px;
  color: #0f2f4e;
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.signup-floating-field input:focus,
.signup-company-fields input:focus {
  outline: 0;
  border-color: #1f8b53;
  box-shadow: 0 0 0 4px rgba(31, 139, 83, 0.12);
}

.signup-company-fields input[readonly] {
  background: #f4f8fb;
}

.signup-floating-field small {
  min-height: 20px;
  color: #607086;
}

.signup-floating-field small[data-state="loading"] {
  color: #0f2f4e;
}

.signup-floating-field small[data-state="success"] {
  color: #177345;
}

.signup-floating-field small[data-state="error"] {
  color: #b42318;
}

.signup-floating-field.is-loading input {
  background-image: linear-gradient(90deg, transparent, rgba(31, 139, 83, 0.08), transparent);
  background-size: 220% 100%;
  animation: signupInputLoading 1.1s linear infinite;
}

@keyframes signupInputLoading {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.signup-company-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease;
}

.signup-company-fields.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 720px;
  pointer-events: auto;
}

.signup-policy-row,
.signup-submit-row {
  grid-column: 1 / -1;
}

.signup-policy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 0;
  margin-top: -10px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: #344054;
  width: 100%;
}

.signup-policy-check {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}

.signup-policy-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.signup-policy-box {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #9bb3c7;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.signup-policy-check input:checked + .signup-policy-box {
  border-color: #0d4d91;
  background-color: #0d4d91;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3' d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.signup-policy-check input:focus-visible + .signup-policy-box {
  box-shadow: 0 0 0 3px rgba(13, 77, 145, 0.14);
}

.signup-policy-text {
  flex: 1;
  font-weight: 700;
  line-height: 1.5;
  color: #344054;
  cursor: default;
}

.signup-policy-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0d4d91;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.signup-policy-link:hover,
.signup-policy-link:focus-visible {
  color: #1f8b53;
}

.signup-policy-link:focus-visible {
  outline: 3px solid rgba(13, 77, 145, 0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

.signup-policy-row sup {
  color: #b42318;
}

.signup-policy-modal[hidden] {
  display: none;
}

.signup-policy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.signup-policy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 78, 0.68);
  backdrop-filter: blur(5px);
}

.signup-policy-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  width: min(980px, 100%);
  height: min(86vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(155, 179, 199, 0.48);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 47, 78, 0.32);
}

.signup-policy-modal-header,
.signup-policy-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.signup-policy-modal-header {
  border-bottom: 1px solid #e4edf5;
}

.signup-policy-modal-header h2 {
  margin: 4px 0 0;
  color: #0f2f4e;
  font-size: 1.45rem;
}

.signup-policy-modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #0f2f4e;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.signup-policy-modal-close:hover,
.signup-policy-modal-close:focus-visible {
  border-color: #9bb3c7;
  background: #eef5fb;
}

.signup-policy-pdf-viewer {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: center;
  padding: 20px;
  background: #eef3f8;
}

.signup-policy-pdf-page {
  display: block;
  width: min(100%, 820px);
  height: auto;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 47, 78, 0.16);
}

.signup-policy-pdf-status {
  margin: 48px auto;
  color: #607086;
  font-weight: 800;
  text-align: center;
}

.signup-policy-modal-footer {
  border-top: 1px solid #e4edf5;
  background: #f8fbff;
}

body.signup-policy-modal-open {
  overflow: hidden;
}

body.signup-policy-modal-open .site-header,
body.signup-policy-modal-open .landing-fixed-header {
  z-index: 1 !important;
  pointer-events: none;
  user-select: none;
}

.signup-onboarding-footer {
  text-align: center;
  color: #607086;
}

.signup-success-page .signup-success-card {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.signup-success-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f8b53, #0f2f4e);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(31, 139, 83, 0.22);
}

.signup-success-title {
  margin: 0;
  color: #0f2f4e;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.signup-success-copy {
  margin: 0;
  color: #607086;
  max-width: 420px;
  line-height: 1.55;
}

.signup-success-button {
  min-width: 220px;
}

.auth-form label {
  gap: 8px;
}

.auth-form span {
  color: #344054;
  font-weight: 700;
}

.auth-form input {
  height: 50px;
  border-radius: 12px;
  border-color: #d0d7e2;
  background: #fff;
  padding-inline: 14px;
}

.auth-form select {
  height: 50px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  background: #fff;
  padding-inline: 14px;
  font: inherit;
  color: #102337;
}

.btn-auth {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #8b95a7;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d9e1eb;
}

.auth-footer {
  margin: 18px 0 0;
  text-align: center;
  color: #7c8798;
}

.auth-footer a {
  color: #0d4d91;
  font-weight: 700;
}

.signup-grid label {
  gap: 8px;
}

.signup-grid sup {
  color: #d14040;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #667085;
  font-weight: 600;
}

.site-nav a {
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--brand);
}

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

.nav-link {
  color: #344054;
  font-weight: 600;
}

.nav-user {
  color: #0f2744;
  font-weight: 700;
}

.btn-pill {
  border-radius: 999px;
  padding-inline: 18px;
}

.btn-xl {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1rem;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef7fb 100%);
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 70px 28px 56px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -110px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(82, 196, 141, 0.12) 0%, rgba(82, 196, 141, 0.04) 45%, transparent 72%);
  pointer-events: none;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(94, 174, 255, 0.16), transparent 23%),
    radial-gradient(circle at 84% 16%, rgba(82, 206, 154, 0.16), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(82, 206, 154, 0.08), transparent 18%),
    radial-gradient(circle at 20% 82%, rgba(94, 174, 255, 0.08), transparent 18%);
  pointer-events: none;
}

.landing-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.landing-hero-orb-left {
  width: 210px;
  height: 210px;
  left: -70px;
  top: 14px;
  background: rgba(121, 159, 255, 0.10);
}

.landing-hero-orb-right {
  width: 280px;
  height: 280px;
  right: -80px;
  top: 36px;
  background: rgba(145, 229, 188, 0.18);
}

.landing-center {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(12, 74, 138, 0.08);
  color: #0b4f96;
  padding: 9px 16px;
  border-radius: 999px;
  letter-spacing: 0.12em;
}

.supplier-approved-buyers-page .hero-card .eyebrow-pill,
.supplier-collab-page .hero-card .eyebrow-pill,
.supplier-orders-page .hero-card .eyebrow-pill,
.supplier-products-page .hero-card .eyebrow-pill,
.supplier-routes-page .hero-card .eyebrow-pill,
.supplier-special-prices-page .hero-card .eyebrow-pill,
.supplier-users-page .hero-card .eyebrow-pill,
.product-page .hero-card .eyebrow-pill {
  margin-left: 0;
}

.supplier-approved-buyers-page .hero-card .eyebrow-pill ~ h1,
.supplier-approved-buyers-page .hero-card .eyebrow-pill ~ p,
.supplier-collab-page .hero-card .eyebrow-pill ~ h1,
.supplier-collab-page .hero-card .eyebrow-pill ~ p,
.supplier-orders-page .hero-card .eyebrow-pill ~ h1,
.supplier-orders-page .hero-card .eyebrow-pill ~ p,
.supplier-products-page .hero-card .eyebrow-pill ~ h1,
.supplier-products-page .hero-card .eyebrow-pill ~ p,
.supplier-routes-page .hero-card .eyebrow-pill ~ h1,
.supplier-routes-page .hero-card .eyebrow-pill ~ p,
.supplier-special-prices-page .hero-card .eyebrow-pill ~ h1,
.supplier-special-prices-page .hero-card .eyebrow-pill ~ p,
.supplier-users-page .hero-card .eyebrow-pill ~ h1,
.supplier-users-page .hero-card .eyebrow-pill ~ p,
.product-page .hero-card .eyebrow-pill ~ h1,
.product-page .hero-card .eyebrow-pill ~ p {
  margin-left: 16px;
}

.supplier-approved-buyers-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.supplier-collab-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.supplier-orders-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.supplier-products-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.supplier-routes-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.supplier-special-prices-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.supplier-users-page .hero-card:has(.eyebrow-pill) > div > div:first-child,
.product-page .hero-card:has(.eyebrow-pill) > div > div:first-child {
  align-items: flex-start;
  text-align: left;
}

.supplier-approved-buyers-page > .hero-card:has(.eyebrow-pill),
.supplier-collab-page > .hero-card:has(.eyebrow-pill),
.supplier-orders-page > .hero-card:has(.eyebrow-pill),
.supplier-products-page > .hero-card:has(.eyebrow-pill),
.supplier-routes-page > .hero-card:has(.eyebrow-pill),
.supplier-special-prices-page > .hero-card:has(.eyebrow-pill),
.supplier-users-page > .hero-card:has(.eyebrow-pill),
.product-page > .hero-card:has(.eyebrow-pill) {
  padding-block: 14px;
  padding-inline: 14px;
}

.supplier-routes-page .hero-card > div > div:first-child {
  align-items: flex-start;
  text-align: left;
}

.landing-center h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-top: 18px;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto;
  color: #667085;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions-center {
  justify-content: center;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-weight: 600;
}

.trust-chip::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #66d19e 0%, #2eb874 100%);
  box-shadow: 0 0 0 4px rgba(46, 184, 116, 0.10);
}

.section-block {
  padding: 88px 0 0;
}

.section-value {
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(13, 77, 145, 0.08);
  color: #0d4d91;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-value h2,
.workflow-panel h2,
.callout h2 {
  margin: 18px auto 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  max-width: 900px;
}

.gradient-word {
  background: linear-gradient(90deg, #0e4a8a 0%, #52c48d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  max-width: 820px;
  margin: 18px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: #667085;
  line-height: 1.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
  text-align: left;
}

.value-card {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #dbe7f3;
  box-shadow: 0 14px 34px rgba(15, 47, 78, 0.08);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eaf2ff 0%, #d6eaff 100%);
  color: #0d4d91;
  font-weight: 900;
}

.value-card h3 {
  margin-top: 18px;
  font-size: 1.3rem;
}

.value-card p,
.workflow-step p,
.stack-card-mini p,
.callout p {
  color: #667085;
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.workflow-panel,
.workflow-side {
  border-radius: 28px;
}

.workflow-panel {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(82, 196, 141, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f3;
  box-shadow: 0 14px 34px rgba(15, 47, 78, 0.08);
}

.workflow-steps {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #dbe7f3;
}

.workflow-step span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #0d4d91;
  background: rgba(13, 77, 145, 0.08);
  font-weight: 900;
}

.workflow-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.workflow-side {
  padding: 16px;
  background:
    linear-gradient(180deg, #f8fcff 0%, #edf7fb 100%);
  border: 1px solid #dbe7f3;
  box-shadow: 0 14px 34px rgba(15, 47, 78, 0.08);
}

.stack-panel {
  display: grid;
  gap: 14px;
}

.stack-panel-head h3 {
  margin: 10px 0 0;
  font-size: 1.7rem;
}

.stack-card-mini {
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 20px;
  padding: 16px;
}

.stack-card-mini strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.callout {
  margin: 88px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eff7fb 100%);
  border: 1px solid #dbe7f3;
  box-shadow: 0 14px 34px rgba(15, 47, 78, 0.08);
}

.callout::before {
  content: "";
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d4d91 0%, #52c48d 100%);
}

.callout p {
  max-width: 580px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card .muted,
.hero-card p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-card-large h1,
.hero-card h2,
.auth-card h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  margin: 10px 0 12px;
}

.hero-side {
  background: linear-gradient(180deg, #ffffff 0%, #f1f7fc 100%);
  color: var(--text);
}

.hero-grid,
.split-layout,
.grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.5fr 0.9fr;
}

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-page {
  display: grid;
  gap: 8px;
  margin-top: -32px;
}

body.internal-shell.internal-page-content .buyer-page {
  margin-top: -12px;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

body.internal-shell.internal-page-content .buyer-page.buyer-units-page {
  margin-top: -6px;
}

body.internal-shell.buyer-shell.internal-page-content .buyer-units-page {
  margin-top: -6px;
}

body.internal-shell.buyer-shell.internal-page-content .buyer-users-page,
body.internal-shell.buyer-shell.internal-page-content .buyer-saving-page {
  margin-top: -6px;
}

body.internal-shell.buyer-shell.internal-page-settings .buyer-page,
body.internal-shell.buyer-shell.internal-page-dashboard .buyer-dashboard {
  margin-top: -6px;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

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

.buyer-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #0f2f4e 0%, #143d63 54%, #0e7a3f 140%);
  color: #eef5ff;
  overflow: hidden;
  position: relative;
}

.buyer-dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  filter: blur(10px);
}

.buyer-dashboard-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.buyer-dashboard-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.03;
}

.buyer-dashboard-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(238, 245, 255, 0.84);
}

.buyer-dashboard-chip-strip {
  margin-top: 8px;
}

.buyer-dashboard-chip-strip .metric-mini {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

.buyer-dashboard-chip-strip .metric-mini span {
  color: rgba(248, 251, 255, 0.72);
}

.buyer-dashboard-profile {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.buyer-dashboard-hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.buyer-dashboard-profile-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.72);
}

.buyer-dashboard-profile strong {
  font-size: 1.2rem;
}

.buyer-dashboard-profile p {
  margin: 0;
  color: rgba(248, 251, 255, 0.82);
}

.dashboard-notification-feed {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-notification-carousel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.hero-notification-carousel-viewport {
  position: relative;
  min-height: 108px;
  width: 100%;
  transition: height 220ms ease;
}

.hero-notification-carousel-track {
  position: relative;
  min-height: inherit;
  width: 100%;
}

.hero-notification-slide {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: inherit;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.hero-notification-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-notification-slide-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
}

.hero-notification-slide-head time {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.74);
}

.hero-notification-slide h1 {
  display: block;
  margin: 0;
  font-size: clamp(0.94rem, 1.08vw, 1.22rem);
  line-height: 1.06;
}

.hero-notification-slide p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  line-height: 1.38;
}

@media (max-width: 767px) {
  .buyers-hero-copy {
    width: 100%;
  }

  .hero-notification-carousel-viewport {
    min-height: 132px;
  }

  .hero-notification-slide {
    gap: 6px;
  }

  .hero-notification-slide h1 {
    font-size: 0.99rem;
  }

  .hero-notification-slide p {
    font-size: 0.76rem;
  }
}

.hero-notification-slide-action,
.hero-notification-default-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #003882;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-notification-slide-default {
  justify-items: start;
}

.hero-notification-carousel-dots {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}

.hero-notification-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-notification-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.14);
}

  .hero-notification-carousel-dot-default {
    opacity: 0.84;
  }

  .hero-notification-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
  }

.dashboard-notification-feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-notification-feed-head h2 {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: #fff;
}

.dashboard-notification-feed-head .section-kicker {
  color: rgba(248, 251, 255, 0.72);
}

.dashboard-notification-feed-list {
  display: grid;
  gap: 8px;
}

.dashboard-notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(15, 47, 78, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-notification-item.is-unread {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-notification-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: #7ce495;
  box-shadow: 0 0 0 4px rgba(124, 228, 149, 0.16);
}

.dashboard-notification-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.dashboard-notification-title-row strong {
  color: #fff;
  font-size: 0.92rem;
}

.dashboard-notification-title-row time,
.dashboard-notification-item p {
  color: rgba(248, 251, 255, 0.76);
  font-size: 0.8rem;
}

.dashboard-notification-item p {
  margin: 4px 0 0;
  line-height: 1.4;
}

.dashboard-notification-action {
  align-self: center;
  justify-self: end;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.buyer-dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.buyer-dashboard-summary-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 47, 78, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.buyer-dashboard-summary-item span {
  display: block;
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-dashboard-summary-item strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}

.buyer-dashboard-metrics {
  display: grid;
  gap: 10px;
}

.buyer-dashboard-metric {
  padding: 16px;
}

.buyer-dashboard-metric p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.buyer-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.buyer-dashboard-stack {
  display: grid;
  gap: 16px;
}

.buyer-dashboard-panel {
  padding: 18px;
}

.buyer-dashboard-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.buyer-dashboard-list-tight {
  gap: 8px;
}

.buyer-dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.buyer-dashboard-row-compact {
  padding: 12px 13px;
}

.buyer-dashboard-row-main {
  display: grid;
  gap: 4px;
}

.buyer-dashboard-row strong {
  font-size: 0.98rem;
}

.buyer-dashboard-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.buyer-dashboard-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-dashboard-row-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.buyer-dashboard-row-meta small {
  color: var(--muted);
  font-size: 0.8rem;
}

.buyer-dashboard-deadline {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand);
}

.buyer-dashboard-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(15, 47, 78, 0.04);
  color: var(--muted);
}

.buyer-purchase-page {
  display: grid;
  gap: 16px;
  margin-top: -18px;
}

.buyer-purchases-page {
  display: grid;
  gap: 12px;
  margin-top: -28px;
}

.buyer-purchases-hero,
.buyer-purchase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.7fr);
  gap: 18px;
  padding: 22px;
}

.buyer-purchases-hero-stats,
.buyer-purchase-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-purchase-hero,
.buyer-purchases-hero {
  align-items: start;
}

.buyer-purchase-hero-copy h1,
.buyer-purchases-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.buyer-purchase-hero-copy p,
.buyer-purchases-hero p {
  margin: 0;
  color: var(--muted);
}

.buyer-purchase-hero-aside {
  display: grid;
  gap: 12px;
}

.buyer-purchase-status-card,
.buyer-purchase-price-card,
.buyer-purchase-snapshot-card,
.buyer-purchase-decision-box,
.buyer-purchase-summary > div,
.buyer-purchases-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.buyer-purchase-status-card,
.buyer-purchase-price-card {
  padding: 16px;
}

.buyer-purchase-status-card strong,
.buyer-purchase-price-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.buyer-purchase-price-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.buyer-purchase-kpis {
  gap: 10px;
}

.buyer-purchase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.buyer-purchase-panel {
  padding: 18px;
}

.buyer-purchase-panel-wide {
  display: grid;
  gap: 14px;
}

.buyer-purchase-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.buyer-purchase-snapshot-card {
  padding: 14px;
}

.buyer-purchase-snapshot-card span,
.buyer-purchase-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-purchase-snapshot-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.buyer-purchase-quotes {
  display: grid;
  gap: 10px;
}

.buyer-purchase-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.buyer-purchase-quote-row.is-best {
  box-shadow: 0 0 0 2px rgba(31, 139, 83, 0.14);
}

.buyer-purchase-quote-main {
  display: grid;
  gap: 4px;
}

.buyer-purchase-quote-main p,
.buyer-purchase-quote-meta span {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.buyer-purchase-quote-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.buyer-purchase-quote-meta strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--text);
}

.buyer-purchase-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(15, 47, 78, 0.04);
}

.buyer-purchase-stack {
  display: grid;
  gap: 16px;
}

.buyer-purchase-decision-box {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.buyer-purchase-decision-box p {
  margin: 0;
  color: var(--muted);
}

.buyer-purchase-summary {
  display: grid;
  gap: 10px;
}

.buyer-purchase-summary > div {
  padding: 14px;
}

.buyer-purchase-summary strong {
  display: block;
  margin-top: 5px;
}

.buyer-purchase-field {
  display: grid;
  gap: 7px;
}

.buyer-purchase-field span {
  font-size: 0.86rem;
  font-weight: 700;
}

.buyer-purchase-field-readonly {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.buyer-purchase-quantity {
  display: flex;
  gap: 8px;
  align-items: center;
}

.buyer-purchase-quantity-inline {
  width: 100%;
}

.buyer-purchase-quantity-inline input {
  flex: 1 1 auto;
  min-width: 0;
}

.buyer-purchase-unit {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--brand);
  white-space: nowrap;
}

.buyer-purchase-schedule-head {
  margin-top: 4px;
}

.buyer-purchase-schedules {
  display: grid;
  gap: 10px;
}

.buyer-purchase-schedule-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.buyer-response-locked {
  border: 1px solid rgba(31, 139, 83, 0.18);
  background: linear-gradient(180deg, #f8fbf9 0%, #eef7f1 100%);
  box-shadow: 0 12px 30px rgba(31, 139, 83, 0.06);
}

.buyer-response-locked .muted {
  color: var(--muted);
}

.buyer-response-summary-grid {
  margin-top: 12px;
}

.buyer-response-summary-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
}

.buyer-response-grid {
  display: grid;
  gap: 16px;
}

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

.buyer-response-inline-grid {
  align-items: start;
}

.buyer-total-field {
  max-width: 360px;
}

.buyer-response-form .grid-2 {
  gap: 14px;
}

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

.field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.grid-span-2 {
  grid-column: 1 / -1;
}

.buyer-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-purchases-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.buyer-purchases-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.buyer-purchases-row-main {
  display: grid;
  gap: 8px;
}

.buyer-purchases-row-main h3 {
  margin: 0;
  font-size: 1.05rem;
}

.buyer-purchases-row-main p,
.buyer-purchases-row-meta {
  margin: 0;
  color: var(--muted);
}

.buyer-purchases-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-purchases-row-meta strong {
  display: block;
  color: var(--text);
}

.buyer-purchases-row-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}

.buyer-purchases-row-actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buyer-purchases-row-actions-inline form {
  display: flex;
}

.buyer-purchases-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 47, 78, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.buyer-purchases-icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 47, 78, 0.08);
}

.buyer-purchases-icon-button svg {
  width: 18px;
  height: 18px;
}

.buyer-purchases-icon-button-view {
  color: #0f2f4e;
}

.buyer-purchases-icon-button-pdf {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff5f5;
}

.buyer-purchases-icon-button-confirm {
  color: #1f8b53;
  border-color: rgba(31, 139, 83, 0.18);
  background: #effaf4;
}

.buyer-purchases-icon-button-truck {
  color: #0f2f4e;
  border-color: rgba(15, 47, 78, 0.18);
  background: #eff6ff;
}

.buyer-purchases-icon-button-invoice {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.18);
  background: #eff6ff;
}

.buyer-purchases-icon-button-cancel {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff5f5;
}

.pdf-hidden {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1180px !important;
  max-width: 1180px !important;
  height: auto !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.pdf-container {
  background: #ffffff !important;
  min-height: 277mm !important;
  display: flex !important;
  flex-direction: column !important;
}

.pdf-container [data-collab-export-pdf] {
  display: none !important;
}

.pdf-table-compact {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.pdf-table-compact thead th,
.pdf-table-compact tbody td,
.pdf-table-compact tfoot td {
  padding-left: 8px !important;
  padding-right: 8px !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.pdf-table-compact thead th {
  font-size: 0.66rem !important;
  line-height: 1.18 !important;
}

.pdf-table-compact tbody td,
.pdf-table-compact tfoot td {
  font-size: 0.76rem !important;
  line-height: 1.22 !important;
}

.pdf-table-compact tbody td strong {
  font-size: 0.78rem !important;
  line-height: 1.18 !important;
}

.pdf-table-compact th:nth-child(2),
.pdf-table-compact td:nth-child(2),
.pdf-table-compact th:nth-child(3),
.pdf-table-compact td:nth-child(3),
.pdf-table-compact th:nth-child(6),
.pdf-table-compact td:nth-child(6) {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}

.pdf-table-wrap-compact {
  overflow: visible !important;
  max-width: 100% !important;
  width: 100% !important;
}

.pdf-footer-compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 14px !important;
  margin-top: auto !important;
  max-width: 100% !important;
  --pdf-logo-base-height: 40px;
  --pdf-logo-ufc-scale: 1.28;
  --pdf-logo-sebrae-scale: 1.05;
  --pdf-logo-compreup-scale: 0.82;
  --pdf-logo-partec-scale: 1.28;
  --pdf-logo-techhub-scale: 1.28;
}

.pdf-footer-compact .buyer-finalized-footer-logos {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: none !important;
}

.pdf-footer-compact .buyer-finalized-footer-logos-left {
  justify-content: flex-start !important;
}

.pdf-footer-compact .buyer-finalized-footer-logos-right {
  justify-content: flex-end !important;
}

.pdf-footer-compact .buyer-finalized-footer-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.pdf-footer-compact .buyer-finalized-footer-brand span {
  font-size: 0.72rem !important;
  white-space: nowrap !important;
}

.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-logos-left img,
.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-logos-right img {
  display: block;
  width: auto;
  height: calc(var(--pdf-logo-base-height) * 0.5);
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  transform-origin: center center;
}

.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-logos-left img:nth-child(1) {
  height: calc(var(--pdf-logo-base-height) * var(--pdf-logo-ufc-scale));
}

.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-logos-left .footer-logo-sebrae {
  width: auto;
  height: calc(var(--pdf-logo-base-height) * var(--pdf-logo-sebrae-scale));
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-brand .footer-logo-compreup {
  display: block;
  width: auto;
  height: calc(var(--pdf-logo-base-height) * var(--pdf-logo-compreup-scale));
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  transform-origin: center center;
}

.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-logos-right img:nth-child(1) {
  height: calc(var(--pdf-logo-base-height) * var(--pdf-logo-partec-scale));
}

.buyer-finalized-footer.pdf-footer-compact .buyer-finalized-footer-logos-right img:nth-child(2) {
  height: calc(var(--pdf-logo-base-height) * var(--pdf-logo-techhub-scale));
}

.pdf-avoid-break {
  break-inside: avoid;
  page-break-inside: avoid;
}

.buyer-purchases-row-blocked-trigger {
  cursor: not-allowed;
}

.buyer-purchases-row-blocked-trigger[aria-disabled="true"] {
  text-decoration: none;
}

.buyer-collab-blocked-dialog {
  width: min(520px, 100%);
}

.buyer-purchases-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(15, 47, 78, 0.04);
  color: var(--muted);
}

.buyer-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.buyer-quote-modal[hidden] {
  display: none;
}

.buyer-quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 35, 0.58);
}

.buyer-quote-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 28px));
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 21, 35, 0.28);
  display: grid;
  gap: 12px;
}

.buyer-quote-modal-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.buyer-quote-modal-card p {
  margin: 0;
  color: var(--muted);
}

.buyer-quote-modal-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.buyer-quote-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supplier-page {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.collab-page {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.buyer-hero {
  padding: 10px 12px;
}

.buyer-hero-head {
  align-items: center;
}

.buyer-hero h1 {
  margin: 4px 0 5px;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.buyer-hero .muted {
  max-width: 620px;
  font-size: 0.8rem;
}

.buyer-preferences-page {
  display: grid;
  gap: 18px;
  width: min(100%, 1360px);
  margin: 0 auto;
}

.buyer-pref-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.buyer-pref-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  padding: 18px 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(85, 199, 176, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(8, 60, 140, 0.98), rgba(10, 100, 160, 0.95) 52%, rgba(56, 170, 155, 0.90));
  color: #fff;
  box-shadow: 0 16px 36px rgba(5, 41, 92, 0.12);
}

.buyer-pref-hero .eyebrow,
.buyer-pref-hero h1,
.buyer-pref-hero .muted {
  color: #fff;
}

.buyer-pref-hero .muted {
  max-width: 760px;
  opacity: 0.92;
  font-size: 0.86rem;
  line-height: 1.7;
}

.buyer-pref-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.buyer-pref-main {
  display: grid;
  gap: 18px;
  width: 100%;
}

.buyer-pref-tabs,
.buyer-pref-section,
.buyer-pref-summary,
.buyer-pref-insight {
  padding: 18px;
}

.buyer-pref-tabs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.buyer-pref-tabs-head h2 {
  margin-top: 6px;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-tabs-head p {
  margin-top: 8px;
  max-width: 64ch;
  font-size: 0.86rem;
  line-height: 1.7;
}

.buyer-pref-step-pill {
  display: grid;
  gap: 2px;
  justify-items: end;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e5edf5;
  background: rgba(255, 255, 255, 0.9);
  color: #0f2f4e;
}

.buyer-pref-step-pill strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.buyer-pref-step-pill span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.buyer-pref-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.buyer-pref-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e5edf5;
  background: #fff;
  color: #0f5132;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: none;
}

.buyer-pref-step-btn.is-active {
  border-color: rgba(4, 176, 70, 0.45);
  background: linear-gradient(180deg, rgba(4, 176, 70, 0.14), rgba(4, 176, 70, 0.06));
  color: #0b5d36;
  box-shadow: 0 6px 14px rgba(4, 176, 70, 0.10);
}

.buyer-pref-form {
  display: grid;
  gap: 18px;
}

.buyer-pref-panel[hidden] {
  display: none !important;
}

.buyer-pref-wizard {
  display: grid;
  gap: 18px;
}

.buyer-pref-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.buyer-pref-wizard-head h2 {
  margin-top: 6px;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-wizard-head .muted {
  margin-top: 8px;
  max-width: 72ch;
  font-size: 0.86rem;
  line-height: 1.7;
}

.buyer-pref-wizard-oneline {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .buyer-pref-wizard-oneline {
    white-space: normal;
  }
}

.buyer-pref-wizard-badge {
  display: grid;
  gap: 4px;
  justify-items: end;
  padding: 10px 12px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #fff;
  white-space: nowrap;
}

.buyer-pref-wizard-badge strong {
  font-size: 0.92rem;
  font-weight: 900;
  color: #0f172a;
}

.buyer-pref-wizard-badge span {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f7d45;
}

.buyer-pref-progress {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #fff;
}

.buyer-pref-progress-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buyer-pref-progress-bar {
  flex: 1 1 auto;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef6;
}

.buyer-pref-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f7d45, #55c595);
}

.buyer-pref-progress-value {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f7d45;
}

.buyer-pref-progress-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-pref-progress-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #e5edf5;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
}

.buyer-pref-progress-tab.is-active {
  border-color: rgba(4, 176, 70, 0.45);
  background: #ecfdf5;
  color: #0b5d36;
}

.buyer-pref-wizard-panels {
  display: grid;
}

.buyer-pref-wizard-step {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e5edf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 78, 0.03);
  animation: buyerPrefStepFade 0.22s ease;
}

.buyer-pref-wizard-step-ia {
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

.buyer-pref-step-copy {
  display: grid;
  gap: 6px;
}

.buyer-pref-step-copy h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-step-copy p {
  max-width: 72ch;
  color: #52637a;
  font-size: 0.88rem;
  line-height: 1.7;
}

.buyer-pref-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buyer-pref-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.buyer-pref-feature-card:hover,
.buyer-pref-feature-card.is-selected {
  border-color: rgba(85, 197, 149, 0.55);
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(85, 197, 149, 0.18);
  transform: translateY(-1px);
}

.buyer-pref-feature-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.buyer-pref-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 47, 78, 0.06);
  font-size: 1rem;
}

.buyer-pref-feature-copy {
  display: grid;
  gap: 4px;
}

.buyer-pref-feature-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-feature-copy small {
  color: #52637a;
  font-size: 0.76rem;
  line-height: 1.5;
}

.buyer-pref-feature-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #dbe7f0;
  color: transparent;
}

.buyer-pref-feature-card.is-selected .buyer-pref-feature-toggle {
  color: #fff;
  border-color: rgba(4, 176, 70, 0.45);
  background: linear-gradient(180deg, #1f9d55, #0f7d45);
}

.buyer-pref-choice-panel {
  display: grid;
  gap: 16px;
}

.buyer-pref-choice-group {
  display: grid;
  gap: 10px;
}

.buyer-pref-segment-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-pref-segment-pill {
  position: relative;
  display: inline-flex;
  min-width: 128px;
  min-height: 42px;
  border: 1px solid #e5edf5;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.buyer-pref-segment-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.buyer-pref-segment-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-segment-pill.is-selected {
  border-color: rgba(4, 176, 70, 0.45);
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(85, 197, 149, 0.18);
}

.buyer-pref-checklist {
  display: grid;
  gap: 10px;
}

.buyer-pref-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.buyer-pref-check-row input {
  width: 16px;
  height: 16px;
}

.buyer-pref-check-row.is-selected {
  border-color: rgba(4, 176, 70, 0.45);
  background: #ecfdf5;
}

.buyer-pref-tax-panel-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.buyer-pref-tax-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5edf5;
  color: #52637a;
  font-size: 0.84rem;
  line-height: 1.6;
}

.buyer-pref-chip-grid-flow {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.buyer-pref-step-highlight {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d9f5e2;
  background: rgba(255, 255, 255, 0.82);
}

.buyer-pref-step-highlight strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f7d45;
}

.buyer-pref-step-highlight p {
  margin-top: 6px;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.55;
}

.buyer-pref-wizard-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

@keyframes buyerPrefStepFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.buyer-pref-stack > .buyer-pref-subcard:last-child {
  grid-column: 1 / -1;
}

.buyer-pref-section .buyer-pref-subcard {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}

.buyer-pref-subcard {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e5edf5;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 47, 78, 0.03);
}

.buyer-pref-subcard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.buyer-pref-subcard-head-inline {
  align-items: center;
}

.buyer-pref-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.buyer-pref-group-card,
.buyer-pref-help {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 47, 78, 0.10);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 28px rgba(15, 47, 78, 0.04);
}

.buyer-pref-group-card-wide {
  grid-column: 1 / -1;
}

.buyer-pref-step-tracker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.buyer-pref-step-dot {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 118px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5edf5;
  background: #fff;
  color: #334155;
  text-align: center;
}

.buyer-pref-step-dot strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.82rem;
}

.buyer-pref-step-dot span {
  font-size: 0.72rem;
  font-weight: 800;
}

.buyer-pref-step-dot.is-active strong {
  background: rgba(4, 176, 70, 0.14);
  color: #0b7d45;
}

.buyer-pref-step-line {
  flex: 1 1 22px;
  min-width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(4, 176, 70, 0.14), rgba(15, 47, 78, 0.05));
}

.buyer-pref-segment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.buyer-pref-segment-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid #e5edf5;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.buyer-pref-segment-card:hover,
.buyer-pref-segment-card.is-selected {
  border-color: #55C595;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(85, 197, 149, 0.18);
  transform: translateY(-1px);
}

.buyer-pref-segment-card > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.buyer-pref-segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 47, 78, 0.06);
  color: #0f2f4e;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.buyer-pref-segment-copy {
  display: grid;
  gap: 2px;
}

.buyer-pref-segment-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-segment-card-text {
  grid-column: 1 / -1;
  align-items: start;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.buyer-pref-segment-card-text .buyer-pref-segment-copy {
  align-self: start;
  gap: 6px;
}

.buyer-pref-segment-card-text .buyer-pref-segment-copy strong {
  margin-bottom: 2px;
}

.buyer-pref-segment-other {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 11px;
  border: 1px solid #dbe7f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}

.buyer-pref-segment-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #dbe7f0;
  color: transparent;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
}

.buyer-pref-segment-card.is-selected .buyer-pref-segment-check {
  color: #fff;
  border-color: rgba(4, 176, 70, 0.45);
  background: linear-gradient(180deg, #1f9d55, #0f7d45);
}

.buyer-pref-tax-panel {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5edf5;
  background: #f8fafc;
}

.buyer-pref-help {
  background: linear-gradient(180deg, rgba(4, 176, 70, 0.06), rgba(255, 255, 255, 0.96));
}

.buyer-pref-help-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.55;
}

.buyer-pref-subtitle,
.buyer-pref-label {
  color: var(--muted);
}

.buyer-pref-subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
}

.buyer-pref-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.buyer-pref-chip-grid,
.buyer-pref-radio-grid,
.buyer-pref-option-grid {
  display: grid;
  gap: 10px;
}

.buyer-pref-chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-pref-chip-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-pref-chip-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-pref-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.buyer-pref-chip-card,
.buyer-pref-radio-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.buyer-pref-chip-card:hover,
.buyer-pref-radio-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 47, 78, 0.06);
}

.buyer-pref-chip-card input,
.buyer-pref-radio-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.buyer-pref-chip-card span,
.buyer-pref-radio-card span {
  display: flex;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 11px 13px;
}

.buyer-pref-radio-card span {
  align-items: center;
  min-height: 46px;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-chip-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-chip-card small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.buyer-pref-chip-card.is-selected,
.buyer-pref-radio-card.is-selected {
  border-color: rgba(85, 197, 149, 0.55);
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(85, 197, 149, 0.18);
}

.buyer-pref-search {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 2px;
}

.buyer-pref-search-field {
  flex: 1 1 auto;
  gap: 4px;
}

.buyer-pref-search-field span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-pref-search-field input {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #dbe7f0;
  background: #fff;
  font-size: 0.86rem;
}

.buyer-pref-search .btn-ghost {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  border-color: #dbe7f0;
  background: #fff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.buyer-pref-search .btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.buyer-pref-search-state {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid #e5edf5;
  background: #fff;
  color: var(--muted);
  font-size: 0.79rem;
}

.buyer-pref-search-state.is-loading {
  color: #0b4f96;
  border-color: rgba(11, 79, 150, 0.14);
  background: rgba(11, 79, 150, 0.05);
}

.buyer-pref-search-state.is-error {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.18);
  background: rgba(245, 158, 11, 0.08);
}

.buyer-pref-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-inline: 2px;
  max-height: 280px;
  overflow: auto;
}

.buyer-pref-search-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 47, 78, 0.10);
  background: #fff;
  text-align: left;
}

.buyer-pref-search-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.buyer-pref-search-item-meta {
  color: var(--muted);
  font-size: 0.74rem;
}

.buyer-pref-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.buyer-pref-selected-chips + .buyer-pref-subcard-head-inline {
  margin-top: 18px;
}

.buyer-pref-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(4, 176, 70, 0.14);
  background: rgba(4, 176, 70, 0.06);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
}

.buyer-pref-subcard-head-inline .status-pill,
.buyer-pref-tabs-head .status-pill {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 7px 10px;
  line-height: 1;
}

.buyer-pref-subcard-head-inline .status-pill {
  align-self: flex-start;
}

.buyer-pref-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: rgba(254, 242, 242, 0.9);
  color: #dc2626;
  font-size: 1rem;
  line-height: 1;
}

.buyer-pref-empty-inline,
.buyer-pref-empty-table {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #dbe7f0;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.82rem;
}

.buyer-pref-table-wrap {
  margin-top: 10px;
  overflow: auto;
}

.buyer-pref-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.buyer-pref-table th,
.buyer-pref-table td {
  vertical-align: middle;
}

.buyer-pref-table tbody tr {
  min-height: 88px;
}

.buyer-pref-table th:nth-child(1),
.buyer-pref-table td:nth-child(1) {
  width: 84px;
}

.buyer-pref-table th:nth-child(2),
.buyer-pref-table td:nth-child(2) {
  width: 76px;
}

.buyer-pref-table th:nth-child(3),
.buyer-pref-table td:nth-child(3) {
  width: 34%;
}

.buyer-pref-table th:nth-child(4),
.buyer-pref-table td:nth-child(4),
.buyer-pref-table th:nth-child(5),
.buyer-pref-table td:nth-child(5) {
  width: 10.5%;
}

.buyer-pref-table th:nth-child(6),
.buyer-pref-table td:nth-child(6),
.buyer-pref-table th:nth-child(7),
.buyer-pref-table td:nth-child(7),
.buyer-pref-table th:nth-child(8),
.buyer-pref-table td:nth-child(8) {
  width: 8.5%;
}

.buyer-pref-table th:nth-child(9),
.buyer-pref-table td:nth-child(9) {
  width: 138px;
}

.buyer-pref-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buyer-pref-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid #edf3f7;
}

.buyer-pref-table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.85);
}

.buyer-pref-order-cell {
  width: 84px;
  padding: 0;
  vertical-align: middle;
}

.buyer-pref-order-cell-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  width: 100%;
}

.buyer-pref-cell-content {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.buyer-pref-photo-cell {
  width: 88px;
}

.buyer-pref-photo-wrapper {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-pref-product-cell {
  overflow: hidden;
}

.buyer-pref-product-info {
  align-items: center;
}

.buyer-pref-product-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #0f172a;
  font-weight: 800;
}

.buyer-pref-product-subtitle {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #64748b;
  font-size: 0.75rem;
}

.buyer-pref-actions-cell {
  width: 138px;
}

.buyer-pref-actions-wrapper {
  justify-content: flex-end;
  gap: 8px;
}

.buyer-pref-order-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 999px;
  background: rgba(4, 176, 70, 0.08);
  color: #0f7d45;
  font-size: 0.82rem;
  font-weight: 800;
}

.buyer-pref-product-image {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 47, 78, 0.10);
  background: #fff;
}

.buyer-pref-product-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b4f96;
  font-weight: 900;
  background: rgba(11, 79, 150, 0.08);
}

.buyer-pref-row-actions {
  display: inline-flex;
  gap: 6px;
}

.buyer-pref-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #dbe7f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.buyer-pref-row-btn-danger {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.14);
  background: #fff5f5;
}

.buyer-pref-radio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-pref-radio-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-pref-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.buyer-pref-tax-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}

.buyer-pref-cnae {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.buyer-pref-summary-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.buyer-pref-summary-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5edf5;
  background: #fff;
}

.buyer-pref-summary-item span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.buyer-pref-summary-item strong {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.buyer-pref-insight-card {
  background: linear-gradient(180deg, rgba(4, 176, 70, 0.06), #fff);
}

.buyer-pref-bullets {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.6;
}

.buyer-pref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.buyer-hero-badges {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.buyer-form {
  display: grid;
  gap: 8px;
}

.buyer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: 10px;
  align-items: start;
}

.buyer-main,
.buyer-aside {
  display: grid;
  gap: 10px;
}

.buyer-panel {
  padding: 12px;
}

.buyer-fields {
  margin-top: 8px;
}

#novo-usuario .buyer-fields input,
#novo-usuario .buyer-fields select {
  min-height: 46px;
  padding: 11px 16px;
}

#novo-usuario .supplier-user-create-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

#novo-usuario .supplier-user-create-fields label:nth-child(4),
#novo-usuario .supplier-user-create-fields label:nth-child(5) {
  grid-column: span 1;
}

#novo-usuario .supplier-user-create-fields label:nth-child(4) {
  grid-column: 1 / 3;
}

#novo-usuario .supplier-user-create-fields label:nth-child(5) {
  grid-column: 3;
}

.buyer-notes {
  margin-top: 8px;
}

.buyer-helper {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.location-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfeff 0%, #f6fafc 100%);
}

.location-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.location-card-head strong {
  display: block;
  font-size: 0.98rem;
}

.location-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.buyer-flow {
  margin-top: 14px;
}

.buyer-flow-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.flow-index {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(4, 176, 70, 0.12);
  color: #0e7a3f;
  font-weight: 800;
  margin-bottom: 10px;
}

.buyer-flow-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.buyer-flow-card p {
  margin: 0;
  color: var(--muted);
}

.buyer-preview-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f5faf7 100%);
  border: 1px solid rgba(4, 176, 70, 0.18);
  display: grid;
  gap: 14px;
}

.buyer-preview-card strong {
  font-size: 1.02rem;
}

.buyer-preview-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.buyer-preview-card li {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 47, 78, 0.08);
}

.buyer-preview-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.buyer-preview-card li strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.buyer-preview-card li span {
  color: var(--text);
}

.buyer-preview-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 47, 78, 0.05);
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.preview-step {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.preview-step span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0e7a3f;
  background: rgba(4, 176, 70, 0.12);
}

.preview-step strong {
  display: block;
  margin-bottom: 4px;
}

.preview-step p {
  margin: 0;
  color: var(--muted);
}

.buyer-registered {
  padding: 20px;
}

.buyer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
}

.buyer-page .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.buyer-page .card h2,
.buyer-page .card h3 {
  margin-top: 4px;
  font-size: 1.05rem;
}

.buyer-page .section-head,
.buyer-page .entity-head,
.buyer-page .subsection-head {
  gap: 10px;
}

.buyer-page .status-pill,
.buyer-page .inline-chip {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
}

.buyer-page .btn {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.buyer-page label {
  gap: 4px;
  font-size: 0.86rem;
}

.buyer-page input,
.buyer-page select,
.buyer-page textarea {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.required-mark {
  color: #c94b4b;
  font-weight: 800;
}

.buyer-page label.field-error input,
.buyer-page label.field-error select,
.buyer-page label.field-error textarea {
  border-color: rgba(201, 75, 75, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 75, 75, 0.1);
}

.buyer-page label.field-error > span {
  color: #8a2323;
}

.buyer-page textarea {
  min-height: 92px;
}

.buyer-page .grid-2,
.buyer-page .grid-3 {
  gap: 10px;
}

.buyer-page .buyer-panel + .buyer-actions {
  padding-top: 2px;
}

.buyer-page .buyer-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.buyer-page .buyer-fields .buyer-field-wide {
  grid-column: span 2;
}

.supplier-page .buyer-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-cnpj-cnae-row,
.signup-cnpj-cnae-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-items: flex-start;
  overflow: hidden;
  transition: gap 200ms ease, grid-template-columns 200ms ease;
}

.signup-is-pristine .signup-cnpj-cnae-row {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.signup-is-pristine .signup-cnpj-field {
  width: min(560px, 100%);
  margin-inline: auto;
}

.signup-has-cnpj .signup-cnpj-cnae-row {
  gap: 10px;
}

.signup-cnpj-field {
  transition: max-width 200ms ease, transform 200ms ease, opacity 200ms ease;
  will-change: max-width, transform, opacity;
}

.signup-is-pristine .signup-cnpj-field {
  max-width: 560px;
  justify-self: center;
}

.signup-has-cnpj .signup-cnpj-field {
  max-width: none;
  justify-self: stretch;
}

.signup-cnae-field {
  transition: opacity 160ms ease, transform 160ms ease;
}

.company-cnpj-cnae-row.full-width,
.signup-cnpj-cnae-row {
  grid-column: 1 / -1;
}

.company-cnpj-cnae-row label,
.signup-cnpj-cnae-row label {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 4px;
  align-content: start;
}

.company-cnpj-cnae-row label small,
.signup-cnpj-cnae-row label small {
  display: block;
  margin-top: 0;
  min-height: 18px;
  color: #6b7280;
  font-size: 0.72rem;
}

.company-cnpj-cnae-row label small[data-state="loading"],
.signup-cnpj-cnae-row label small[data-state="loading"] {
  color: #0d4d91;
}

.company-cnpj-cnae-row label small[data-state="success"],
.signup-cnpj-cnae-row label small[data-state="success"] {
  color: #1f8b53;
}

.company-cnpj-cnae-row label small[data-state="error"],
.signup-cnpj-cnae-row label small[data-state="error"] {
  color: #b45309;
}

.company-cnpj-cnae-row .company-cnae-field[hidden],
.signup-cnpj-cnae-row .signup-cnae-field[hidden] {
  display: none !important;
}

.company-cnpj-cnae-row .company-cnpj-field.is-success input,
.signup-cnpj-cnae-row .signup-cnpj-field.is-success input {
  border-color: rgba(31, 139, 83, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 139, 83, 0.10);
}

.company-cnpj-cnae-row .company-cnae-field input[readonly],
.signup-cnpj-cnae-row .signup-cnae-field input[readonly] {
  background: #f8fbfe;
}

.company-cnae-shell input[data-cnae-display][readonly] {
  background: transparent;
}

.company-cnae-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.company-cnae-field {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  position: relative;
}

.company-cnae-shell {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: 39px;
  min-height: 39px;
  max-height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.company-cnae-shell::-webkit-scrollbar {
  display: none;
}

.company-cnae-shell .company-cnae-chip-list {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.company-cnae-shell .company-cnae-chip-list:empty {
  display: none;
}

.company-cnae-shell .company-cnae-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 160px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(15, 47, 78, 0.12);
  background: rgba(15, 47, 78, 0.05);
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.1;
}

.company-cnae-shell .company-cnae-counter {
  border-color: rgba(15, 47, 78, 0.16);
  background: rgba(15, 47, 78, 0.08);
  color: var(--brand);
  padding-inline: 8px;
  min-width: 34px;
  justify-content: center;
}

.company-cnae-shell .company-cnae-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-cnae-shell .company-cnae-chip button {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 47, 78, 0.12);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.company-cnae-shell .company-cnae-chip button:hover {
  background: rgba(15, 47, 78, 0.18);
}

.company-cnae-shell input[data-cnae-display] {
  flex: 1 1 auto;
  min-width: 3ch;
  width: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  min-height: 0;
  line-height: 1.2;
  outline: none;
}

.company-cnae-shell input[data-cnae-display]:focus {
  outline: none;
  box-shadow: none;
}

.company-cnae-shell:focus-within {
  border-color: var(--brand-2);
  outline: 2px solid rgba(15, 47, 78, 0.14);
  outline-offset: 0;
}

.company-cnae-input-row .company-cnae-add-button {
  align-self: stretch;
  flex: 0 0 46px;
  min-width: 46px;
  height: 39px;
  min-height: 39px;
  max-height: 39px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.company-cnae-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(100%, 320px);
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 47, 78, 0.16);
}

.company-cnae-popover-list {
  display: grid;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.company-cnae-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fbfe;
}

.company-cnae-popover-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.company-cnae-popover-item button {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 47, 78, 0.12);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.company-cnae-popover-item button:hover {
  background: rgba(15, 47, 78, 0.18);
}

.supplier-page .supplier-ops-fields .supplier-ops-notes {
  grid-column: span 2;
}

.product-page .buyer-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collab-page .buyer-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collab-deadline-group {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(190px, 1fr) minmax(110px, 140px) minmax(190px, 1fr);
  gap: 12px;
}

.collab-deadline-value {
  width: 100%;
}

.product-page .buyer-fields textarea {
  min-height: 96px;
}

.product-fields .full-width {
  grid-column: 1 / -1;
}

.products-filter-form {
  grid-template-columns: minmax(180px, 0.72fr) auto;
}

.collab-filter-form {
  grid-template-columns: minmax(180px, 0.72fr) minmax(180px, 0.48fr) auto;
}

.products-filter-form .product-filter-name {
  max-width: 340px;
}

.buyer-page .buyer-fields label {
  min-width: 0;
}

.buyer-page .buyer-fields label span {
  font-size: 0.72rem;
}

.buyer-page .full-width {
  grid-column: 1 / -1;
}

.buyer-page .field-help {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  margin-left: auto;
  color: #1f8b53;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid rgba(31, 139, 83, 0.22);
  background: var(--success-soft);
  border-radius: 999px;
}

.buyer-page .logo-field {
  gap: 4px;
}

.buyer-page .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 2px 2px 2px 0;
}

.buyer-page .logo-row input[type="file"] {
  flex: 1 1 auto;
  min-width: 0;
}

.buyer-page .buyer-logo-preview {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 47, 78, 0.10);
  padding: 8px;
}

.buyer-page .buyer-logo-preview-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  min-height: 88px;
}

.supplier-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.supplier-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 47, 78, 0.10);
  padding: 4px;
}

.vendor-section {
  gap: 10px;
}

.vendor-section-head {
  align-items: center;
}

.vendor-table {
  display: grid;
  gap: 8px;
}

.vendor-rows {
  display: grid;
  gap: 8px;
}

.vendor-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1.1fr) minmax(130px, 0.8fr) minmax(170px, 0.95fr) minmax(150px, 0.85fr) 92px 84px;
  gap: 8px;
  align-items: end;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.vendor-row.is-editing {
  border-color: rgba(4, 176, 70, 0.34);
  box-shadow: inset 0 0 0 1px rgba(4, 176, 70, 0.12), 0 8px 18px rgba(15, 47, 78, 0.04);
}

.vendor-order {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand);
  background: rgba(15, 47, 78, 0.06);
  border: 1px solid rgba(15, 47, 78, 0.08);
}

.vendor-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vendor-field span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vendor-field input,
.vendor-field select {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.vendor-status-field {
  min-width: 0;
}

.vendor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.vendor-action {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vendor-action:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 47, 78, 0.22);
  background: var(--surface-soft);
}

.vendor-action-remove {
  color: var(--danger);
  border-color: rgba(201, 75, 75, 0.18);
  background: var(--danger-soft);
}

.product-offers-section {
  gap: 10px;
}

.product-offers-head {
  align-items: center;
}

.product-offers-table {
  display: grid;
  gap: 8px;
}

.product-offers-rows {
  display: grid;
  gap: 8px;
}

.product-offer-row {
  display: grid;
  grid-template-columns: 34px minmax(220px, 1fr) minmax(150px, 0.55fr) 84px;
  gap: 8px;
  align-items: end;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.product-offer-supplier-field select,
.product-offer-price-field input {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.vendor-action-remove:hover {
  background: #ffdede;
  border-color: rgba(201, 75, 75, 0.32);
}

.routes-section {
  gap: 10px;
}

.routes-section-head {
  align-items: center;
  margin-bottom: 14px;
}

.supplier-route-add-button {
  align-items: center;
  background: linear-gradient(90deg, #003882 0%, #0f2f4e 55%, #359d9e 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 47, 78, 0.18);
  min-height: 40px;
}

.supplier-route-add-button:hover {
  background: linear-gradient(90deg, #0f2f4e 0%, #003882 55%, #359d9e 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 47, 78, 0.24);
}

.supplier-route-add-button svg {
  flex: 0 0 auto;
}

.routes-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.route-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.routes-table-wrap {
  display: grid;
  gap: 12px;
}

.routes-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.routes-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.routes-table th,
.routes-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.routes-table th {
  color: var(--muted);
  background: rgba(15, 47, 78, 0.04);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.routes-table tbody tr:last-child td {
  border-bottom: 0;
}

.routes-table tbody tr:hover {
  background: rgba(0, 56, 130, 0.03);
}

.routes-table td {
  color: var(--ink);
  font-size: 0.84rem;
}

.routes-table td strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.routes-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.route-table-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.route-stops-hover {
  position: relative;
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 56, 130, 0.08);
  color: var(--brand-blue) !important;
  font-weight: 800;
  cursor: default;
}

.route-stops-floating {
  position: absolute;
  z-index: 1000;
  display: grid;
  gap: 7px;
  min-width: 220px;
  max-width: 320px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 47, 78, 0.16);
}

.route-stops-floating[hidden] {
  display: none;
}

.route-stops-floating div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.route-stops-floating span {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.route-stops-floating strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.routes-table-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

body.dark .routes-table-scroll,
.dark .routes-table-scroll,
body.dark .route-stops-floating,
.dark .route-stops-floating {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.24);
}

body.dark .routes-table th,
.dark .routes-table th {
  background: rgba(124, 228, 149, 0.07);
}

body.dark .routes-table tbody tr:hover,
.dark .routes-table tbody tr:hover {
  background: rgba(124, 228, 149, 0.05);
}

body.dark .route-stops-hover,
.dark .route-stops-hover {
  background: rgba(124, 228, 149, 0.12);
  color: #b7f7ca !important;
}

.route-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.route-card.is-active {
  border-color: rgba(4, 176, 70, 0.34);
  box-shadow: inset 0 0 0 1px rgba(4, 176, 70, 0.12), 0 8px 18px rgba(15, 47, 78, 0.04);
}

.route-card-main {
  display: grid;
  gap: 3px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.route-card-main strong {
  font-size: 0.92rem;
}

.route-card-main p,
.route-card-main small {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.route-card-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.route-editor-stack {
  min-width: 0;
}

.route-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 47, 78, 0.05);
}

.route-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.route-editor-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.route-meta-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.route-reach-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 47, 78, 0.03);
}

.route-reach-card[data-tone="success"] {
  border-color: rgba(4, 176, 70, 0.22);
  background: rgba(4, 176, 70, 0.06);
}

.route-reach-card[data-tone="info"] {
  border-color: rgba(0, 56, 130, 0.22);
  background: rgba(0, 56, 130, 0.05);
}

.route-reach-card[data-tone="warning"] {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(217, 119, 6, 0.06);
}

.route-reach-card[data-tone="error"] {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.06);
}

.route-reach-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.route-reach-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.route-reach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.route-reach-metric {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.route-reach-metric strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}

.route-reach-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.route-reach-grid.is-loading .route-reach-metric strong,
.route-reach-grid.is-loading .route-reach-metric span {
  color: transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 47, 78, 0.08), rgba(15, 47, 78, 0.16), rgba(15, 47, 78, 0.08));
  background-size: 200% 100%;
  animation: routeReachPulse 1.2s ease-in-out infinite;
}

@keyframes routeReachPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.route-map-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 56, 130, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.route-map-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.route-map-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.route-map-summary {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 56, 130, 0.08);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  white-space: normal;
}

.route-map-summary:empty {
  display: none;
}

.route-map-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.route-map-status[data-tone="loading"] {
  color: var(--brand-blue);
}

.route-map-status[data-tone="warning"] {
  color: #b45309;
}

.route-map-status[data-tone="error"] {
  color: #b91c1c;
}

.route-map-status[data-tone="success"] {
  color: #166534;
}

.route-map-container {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 56, 130, 0.05), rgba(53, 157, 158, 0.08));
}

.route-map-container .leaflet-control-attribution {
  font-size: 10px;
}

.route-map-marker {
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.22);
}

.route-map-marker span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.route-map-marker-origin span {
  background: #003882;
}

.route-map-marker-stop span {
  background: #359d9e;
}

.route-map-marker-destination span {
  background: #55c595;
}

.route-map-stops {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.route-map-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(100%, 260px);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.76rem;
}

.route-map-stop span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.route-map-stop strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  white-space: nowrap;
}

.route-map-card .leaflet-popup-content-wrapper,
.route-map-card .leaflet-popup-tip {
  color: var(--ink);
}

body.dark .route-map-card,
.dark .route-map-card {
  border-color: rgba(124, 228, 149, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

body.dark .route-map-summary,
.dark .route-map-summary {
  background: rgba(124, 228, 149, 0.12);
  color: #b7f7ca;
}

body.dark .route-map-stop,
.dark .route-map-stop {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.74);
  color: #e5edf7;
}

body.dark .route-map-card .leaflet-popup-content-wrapper,
body.dark .route-map-card .leaflet-popup-tip,
.dark .route-map-card .leaflet-popup-content-wrapper,
.dark .route-map-card .leaflet-popup-tip {
  background: #111827;
  color: #f8fafc;
}

.route-editor-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.route-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.route-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #0e7a3f;
}

.route-grid {
  display: grid;
  gap: 10px;
}

.route-grid-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route-span-full {
  grid-column: 1 / -1;
}

.route-grid label,
.route-block textarea,
.route-municipality-row input,
.route-neighborhood-row input,
.route-grid select {
  min-width: 0;
}

.route-grid label {
  display: grid;
  gap: 5px;
}

.route-delivery-mode-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.route-delivery-mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  min-width: 0;
}

.route-delivery-mode-grid label {
  min-width: 0;
}

.route-delivery-mode-field > span,
.route-grid label span,
.route-subtitle {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.route-delivery-mode-grid label span {
  font-weight: 500;
}

.route-grid label span.required-mark,
.route-delivery-mode-field span.required-mark,
.route-subtitle span.required-mark {
  color: #c94b4b;
  font-weight: 800;
}

.route-grid input,
.route-grid select,
.route-delivery-mode-grid input,
.route-delivery-mode-grid select,
.route-block textarea,
.route-municipality-row input,
.route-municipality-row select,
.route-neighborhood-row input {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.route-freight-field {
  display: grid;
  gap: 5px;
  margin-top: 0;
}

.route-freight-field select {
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.route-days,
.route-block,
.route-neighborhood-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 47, 78, 0.03);
}

.route-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.route-day-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

.route-day-item input {
  width: 16px;
  height: 16px;
  accent-color: #0e7a3f;
}

.route-subhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.route-municipality-list,
.route-neighborhood-list {
  display: grid;
  gap: 8px;
}

.route-municipality-row,
.route-neighborhood-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.route-municipality-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.route-municipality-row label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.route-neighborhood-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.buyers-page {
  display: grid;
  gap: 12px;
  margin-top: -28px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.internal-shell.internal-page-content .buyers-page {
  margin-top: -12px;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  box-sizing: border-box;
}

body.internal-shell.internal-page-content .buyer-purchase-page,
body.internal-shell.internal-page-content .buyer-purchases-page {
  margin-top: -12px;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  box-sizing: border-box;
}

.buyers-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.buyers-hero-copy h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
}

.buyers-hero-copy {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.buyers-hero-copy .muted {
  max-width: 680px;
  margin: 0;
  font-size: 0.86rem;
}

.buyers-hero-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.buyers-hero-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.buyers-filter-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.buyers-filter-card,
.buyers-list-card {
  padding: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.buyers-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(210px, 0.65fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  max-width: 100%;
}

.suppliers-filter-form {
  grid-template-columns: minmax(220px, 0.95fr) minmax(170px, 0.75fr) minmax(180px, 0.8fr) minmax(170px, 0.75fr) auto;
}

.buyers-filter-form label {
  min-width: 0;
}

.buyers-page > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.internal-shell .buyers-page .section-head,
body.internal-shell .buyers-page .buyers-list-head,
body.internal-shell .buyers-page .buyers-hero-copy,
body.internal-shell .buyers-page .buyers-hero-actions,
body.internal-shell .buyers-page .buyers-list-card > .overflow-x-auto {
  min-width: 0;
  max-width: 100%;
}

.suppliers-filter-form .supplier-filter-name {
  max-width: none;
}

.buyers-filter-form label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.buyers-filter-form input {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.buyers-filter-form select {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.buyers-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.buyers-list-head {
  margin-bottom: 10px;
}

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

.buyer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.buyer-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.collab-row-main-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 2px 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.collab-row-main-link:hover,
.collab-row-main-link:focus-visible {
  background: rgba(15, 47, 78, 0.04);
  transform: translateY(-1px);
}

.buyer-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 47, 78, 0.92) 0%, rgba(4, 176, 70, 0.24) 100%);
  border: 1px solid rgba(15, 47, 78, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.buyer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, #003882 0%, #359D9E 100%);
}

.buyer-row-info {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.buyer-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.buyers-list .status-pill {
  padding: 5px 7px;
  border-radius: 9px;
  font-size: 0.64rem;
}

.status-pill-success {
  background: rgba(23, 115, 69, 0.10);
  border-color: rgba(23, 115, 69, 0.18);
  color: #177345;
}

.buyer-row-title h3 {
  margin: 0;
  font-size: 0.92rem;
}

.buyer-row-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.buyer-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.buyer-row-meta strong {
  color: var(--text);
  margin-right: 4px;
}

.buyer-row-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.buyer-row-actions .btn-small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.74rem;
  border-radius: 10px;
}

.supplier-user-row {
  padding: 12px 14px;
}

.supplier-user-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(190px, 0.78fr) minmax(120px, 0.45fr) minmax(138px, 0.5fr) 44px;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.supplier-user-main {
  align-items: center;
  gap: 12px;
}

.supplier-user-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, #003882 0%, #359D9E 100%);
}

.special-price-buyer-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, #003882 0%, #359D9E 100%);
}

.supplier-user-info {
  gap: 2px;
}

.supplier-user-title .status-pill {
  padding: 3px 7px;
  font-size: 0.6rem;
  border-radius: 8px;
}

.supplier-user-col {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.supplier-user-col-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.supplier-user-col-value {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.supplier-user-editor {
  grid-column: 5;
  justify-self: end;
  align-self: center;
  display: grid;
  width: 44px;
}

.supplier-user-edit-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.9);
  color: var(--brand);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.supplier-user-edit-trigger::-webkit-details-marker {
  display: none;
}

.supplier-user-edit-trigger:hover {
  background: rgba(239, 246, 255, 1);
  border-color: rgba(0, 56, 130, 0.18);
  transform: translateY(-1px);
}

.supplier-user-editor[open] .supplier-user-edit-trigger {
  background: rgba(0, 56, 130, 0.08);
  border-color: rgba(0, 56, 130, 0.2);
}

.supplier-user-grid:has(.supplier-user-editor[open]) .supplier-user-col-display {
  display: none;
}

.supplier-user-editor[open] {
  grid-column: 2 / -1;
  justify-self: stretch;
  width: 100%;
  display: block;
}

.supplier-user-editor[open] .supplier-user-edit-trigger {
  display: none;
}

.supplier-user-inline-field {
  display: grid;
  gap: 6px;
}

.supplier-user-editor-form {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(120px, 0.45fr) minmax(96px, auto);
  gap: 14px;
  align-items: end;
  width: 100%;
}

.supplier-user-editor-form.is-pending {
  grid-template-columns: minmax(190px, 0.78fr) minmax(120px, 0.45fr) minmax(138px, 0.5fr) minmax(96px, auto);
}

.supplier-user-editor-form select,
.supplier-user-editor-form input {
  min-height: 40px;
  border-radius: 12px;
}

.supplier-user-editor-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.collab-status-form {
  display: flex;
  align-items: center;
}

.collab-status-picker {
  --status-bg: rgba(15, 47, 78, 0.06);
  --status-border: rgba(15, 47, 78, 0.12);
  --status-text: var(--brand);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.collab-status-picker select {
  width: auto;
  min-width: 142px;
  min-height: 34px;
  padding: 7px 34px 7px 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: var(--status-border);
  color: var(--status-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.collab-status-picker::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--status-text);
  border-bottom: 2px solid var(--status-text);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.collab-status-picker:hover select,
.collab-status-picker:focus-within select {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.08);
}

.collab-status-form-hero .collab-status-picker select {
  min-width: 154px;
  min-height: 40px;
}

.status-pill.collab-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.status-pill.collab-status-badge.status-planejada,
.collab-status-picker.status-planejada {
  --status-bg: #eef5ff;
  --status-border: rgba(36, 98, 165, 0.18);
  --status-text: #2462a5;
}

.status-pill.collab-status-badge.status-pendente,
.collab-status-picker.status-pendente {
  --status-bg: #f39a1f;
  --status-border: rgba(243, 154, 31, 0.28);
  --status-text: #ffffff;
}

.status-pill.collab-status-badge.buyer-request-chip {
  --status-bg: #0f67d2;
  --status-border: rgba(15, 103, 210, 0.9);
  --status-text: #ffffff;
}

.supplier-approved-buyers-page .supplier-approval-status.status-cliente-solicitou {
  background: #0f2f4e;
  border-color: #0f2f4e;
  color: #ffffff;
}

.buyer-purchases-page .status-pill.collab-status-badge.status-pendente {
  --status-bg: #fff4e6;
  --status-border: rgba(234, 88, 12, 0.18);
  --status-text: #9a3412;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1e2 100%);
  border-color: rgba(234, 88, 12, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.supplier-products-page .supplier-product-expired-row > td {
  background: #fff1f2;
}

.supplier-products-page .supplier-product-expired-row:hover > td {
  background: #ffe4e6;
}

.dark .supplier-products-page .supplier-product-expired-row > td,
body.dark .supplier-products-page .supplier-product-expired-row > td {
  background: rgba(127, 29, 29, 0.18);
}

.dark .supplier-products-page .supplier-product-expired-row:hover > td,
body.dark .supplier-products-page .supplier-product-expired-row:hover > td {
  background: rgba(127, 29, 29, 0.26);
}

.status-pill.collab-status-badge.status-confirmado,
.collab-status-picker.status-confirmado {
  --status-bg: #1f8b53;
  --status-border: rgba(31, 139, 83, 0.20);
  --status-text: #ffffff;
}

.status-pill.collab-status-badge.status-recusado,
.collab-status-picker.status-recusado {
  --status-bg: #dd6b72;
  --status-border: rgba(221, 107, 114, 0.22);
  --status-text: #ffffff;
}

.status-pill.collab-status-badge.status-em-cotacao,
.collab-status-picker.status-em-cotacao {
  --status-bg: #fff4df;
  --status-border: rgba(217, 130, 43, 0.20);
  --status-text: #b45d12;
}

.status-pill.collab-status-badge.status-cotado,
.collab-status-picker.status-cotado {
  --status-bg: #e8f7ef;
  --status-border: rgba(31, 139, 83, 0.20);
  --status-text: #1f8b53;
}

.status-pill.collab-status-badge.status-aguardando-entrega,
.collab-status-picker.status-aguardando-entrega {
  --status-bg: #eef2ff;
  --status-border: rgba(79, 70, 229, 0.18);
  --status-text: #4338ca;
}

.status-pill.collab-status-badge.status-aguardando-entrega {
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.collab-status-picker.status-aguardando-entrega {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.collab-status-picker.status-aguardando-entrega span,
.collab-status-picker.status-aguardando-entrega select {
  text-align: center;
}

.status-pill.collab-status-badge.status-a-caminho,
.collab-status-picker.status-a-caminho {
  --status-bg: #ecfeff;
  --status-border: rgba(8, 145, 178, 0.18);
  --status-text: #0e7490;
}

.status-pill.collab-status-badge.status-entregue,
.collab-status-picker.status-entregue {
  --status-bg: #ecfdf3;
  --status-border: rgba(31, 139, 83, 0.18);
  --status-text: #157347;
}

.status-pill.collab-status-badge.status-finalizado,
.collab-status-picker.status-finalizado {
  --status-bg: #eff1f4;
  --status-border: rgba(92, 112, 134, 0.22);
  --status-text: #536577;
}

.status-pill.collab-status-badge.status-cancelado,
.collab-status-picker.status-cancelado {
  --status-bg: #feecef;
  --status-border: rgba(221, 107, 114, 0.24);
  --status-text: #b4232b;
}

.status-pill.collab-status-badge {
  background: var(--status-bg);
  border-color: var(--status-border);
  color: var(--status-text);
}

.buyer-purchase-page #buyer-status-pill {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 0.92rem;
  line-height: 1;
}

.buyer-purchase-page .buyer-status-card-body {
  margin-top: 8px;
}

.decision-editor {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
}

.decision-editor > summary {
  list-style: none;
  cursor: pointer;
}

.decision-editor > summary::-webkit-details-marker {
  display: none;
}

.decision-editor[open] > summary {
  display: none;
}

.buyer-decision-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-decision-card.is-selected {
  border-color: rgba(0, 82, 180, 0.34);
  box-shadow: 0 14px 28px rgba(0, 82, 180, 0.09);
}

.buyer-decision-actions {
  display: grid;
  gap: 10px;
}

.buyer-decision-choice-form {
  display: grid;
  gap: 10px;
}

.buyer-decision-choice-field {
  display: grid;
  gap: 6px;
}

.buyer-decision-choice-field span {
  color: #35577b;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.buyer-decision-choice-field select {
  min-height: 44px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(101, 123, 162, 0.24);
  background: #fff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 0.95rem;
}

body.internal-shell .collab-page {
  width: min(1280px, calc(100% - 40px));
  margin: -8px auto 24px;
  gap: 22px;
}

body.internal-shell .collab-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 172px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(90deg, #003882 0%, #064a92 42%, #359d9e 100%) !important;
  box-shadow: 0 18px 34px rgba(0, 56, 130, 0.16);
  position: relative;
  overflow: hidden;
}

body.internal-shell .collab-admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 96% 14%, rgba(124, 228, 149, 0.12), transparent 26%);
  z-index: 1;
}

body.internal-shell .collab-admin-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: -12px;
  bottom: -48px;
  width: 260px;
  height: 260px;
  opacity: 0.16;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13 5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-8 2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z'/%3E%3C/svg%3E");
  z-index: 1;
}

body.internal-shell .collab-admin-hero > * {
  position: relative;
  z-index: 2;
}

body.internal-shell .collab-admin-hero .buyers-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

body.internal-shell .collab-admin-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.internal-shell .collab-admin-hero h1 {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.internal-shell .collab-admin-hero p.muted {
  max-width: 580px;
  margin: 0;
  color: rgba(219, 234, 254, 0.94) !important;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.internal-shell .collab-admin-hero .buyers-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.internal-shell .collab-admin-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffffff !important;
  color: #003882 !important;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 26, 61, 0.14);
}

body.internal-shell .collab-admin-hero-button:hover {
  transform: translateY(-2px);
  color: #003882 !important;
  box-shadow: 0 20px 40px rgba(0, 26, 61, 0.18);
}

body.internal-shell .collab-page .grid-5 {
  gap: 14px;
}

body.internal-shell .collab-page .metric-card,
body.internal-shell .collab-page .metric-strip-card,
body.internal-shell .collab-page .buyers-filter-card,
body.internal-shell .collab-page .buyers-list-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 47, 78, 0.04);
}

body.internal-shell .collab-page .metric-card {
  min-height: 116px;
  padding: 18px 20px;
  align-content: start;
}

body.internal-shell .collab-page .metric-card .eyebrow {
  color: #51647d;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

body.internal-shell .collab-page .metric-card strong {
  margin-top: 10px;
  color: #001a3d;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

body.internal-shell .collab-page .metric-strip-card {
  padding: 12px 14px;
}

body.internal-shell .collab-page .metric-strip {
  gap: 8px;
}

body.internal-shell .collab-page .metric-mini {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fbfdff;
}

body.internal-shell .collab-page .metric-mini strong {
  color: #001a3d;
  font-size: 0.96rem;
  font-weight: 900;
}

body.internal-shell .collab-page .metric-mini span {
  color: #536985;
  font-size: 0.72rem;
}

body.internal-shell .collab-page .collab-filter-card,
body.internal-shell .embedded-filter-card {
  padding: 14px 22px 8px;
  margin: 0 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.internal-shell .embedded-filter-card .buyers-filter-form {
  display: grid;
  gap: 14px;
  align-items: end;
}

body.internal-shell .embedded-filter-card .buyers-filter-form:not(.suppliers-filter-form):not(.products-filter-form):not(.collab-filter-form) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto;
}

body.internal-shell .embedded-filter-card .suppliers-filter-form {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.75fr) minmax(0, 0.8fr) minmax(0, 0.75fr) auto;
}

body.internal-shell .embedded-filter-card .operational-filter-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  column-gap: 10px;
}

body.internal-shell .embedded-filter-card .operational-filter-form .buyers-filter-actions {
  justify-content: flex-end;
  gap: 8px;
  width: max-content;
}

body.internal-shell .embedded-filter-card .products-filter-form,
body.internal-shell .embedded-filter-card .collab-filter-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.internal-shell .embedded-filter-card .products-filter-form .product-filter-name {
  max-width: none;
  width: 100%;
}

body.internal-shell .embedded-filter-card .buyers-filter-form label span {
  display: block;
  margin-bottom: 4px;
  color: #51647d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.internal-shell .embedded-filter-card .buyers-filter-form input,
body.internal-shell .embedded-filter-card .buyers-filter-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border-color: #d6e1ee;
  background: #fbfdff;
  color: #001a3d;
  font-size: 0.88rem;
}

body.internal-shell .embedded-filter-card .buyers-filter-actions {
  justify-content: flex-end;
}

body.internal-shell .embedded-filter-card .buyers-filter-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

body.internal-shell .embedded-filter-card .buyers-filter-actions {
  width: max-content;
  justify-content: flex-end;
  white-space: nowrap;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 18px;
}

.order-summary-card {
  position: relative;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(214, 225, 238, 0.95);
  background:
    radial-gradient(circle at 88% 18%, rgba(85, 197, 149, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 47, 78, 0.07);
}

.order-summary-card span,
.order-summary-card strong,
.order-summary-card small,
.order-summary-card .order-summary-icon {
  position: relative;
  z-index: 1;
}

.order-summary-card span {
  display: block;
  color: #51647d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-summary-card strong {
  display: block;
  margin-top: 10px;
  color: #001a3d;
  font-size: clamp(1.65rem, 2.35vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.order-summary-card small {
  display: block;
  max-width: 18rem;
  margin-top: 12px;
  color: #60738a;
  font-size: 0.84rem;
  line-height: 1.35;
}

.order-summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 15px;
  color: #003882;
  background: rgba(0, 56, 130, 0.08);
}

.order-summary-icon svg {
  width: 23px;
  height: 23px;
}

.order-summary-card-money {
  background:
    radial-gradient(circle at 88% 18%, rgba(85, 197, 149, 0.24), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f3fff9 100%);
}

.order-summary-card-money .order-summary-icon {
  color: #1f8b53;
  background: rgba(31, 139, 83, 0.1);
}

.order-summary-card-date .order-summary-icon {
  color: #0f6f8f;
  background: rgba(53, 157, 158, 0.12);
}

.order-items-table-wrap {
  padding: 0;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #dce7f3;
  background: #ffffff;
}

.order-items-table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.order-items-table thead th {
  padding: 16px 18px;
  background: linear-gradient(180deg, #f3f8fd 0%, #eaf2fb 100%);
  color: #001a3d;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.order-items-table tbody td {
  padding: 18px;
  color: #001a3d;
  font-size: 0.96rem;
  line-height: 1.45;
  vertical-align: middle;
  border-bottom: 1px solid #dce7f3;
}

.order-items-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-items-table tbody tr:hover td {
  background: #fbfdff;
}

.order-items-table th:nth-child(1),
.order-items-table td:nth-child(1) {
  width: 40%;
}

.order-items-table th:nth-child(2),
.order-items-table td:nth-child(2) {
  width: 22%;
}

.order-items-table th:nth-child(3),
.order-items-table td:nth-child(3) {
  width: 12%;
  text-align: center;
}

.order-items-table th:nth-child(4),
.order-items-table td:nth-child(4),
.order-items-table th:nth-child(5),
.order-items-table td:nth-child(5) {
  width: 13%;
  text-align: right;
}

.order-item-product {
  font-weight: 800;
  text-transform: uppercase;
}

.order-item-number {
  font-weight: 800;
}

.order-item-money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.order-item-total {
  color: #1f8b53;
}

.homologation-table-wrap {
  padding: 0;
  overflow-x: clip;
  border-radius: 18px;
  border: 1px solid #dce7f3;
  background: #ffffff;
}

.homologation-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.homologation-table thead th {
  padding: 10px 6px;
  background: linear-gradient(180deg, #f4f8fd 0%, #eaf2fb 100%);
  color: #001a3d;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.homologation-table tbody td {
  padding: 10px 6px;
  color: #001a3d;
  font-size: 0.82rem;
  line-height: 1.32;
  vertical-align: middle;
  border-bottom: 1px solid #dce7f3;
  overflow-wrap: anywhere;
  min-width: 0;
}

.homologation-table tbody tr:last-child td {
  border-bottom: 0;
}

.homologation-table tbody tr:hover td {
  background: #fbfdff;
}

.homologation-table th:nth-child(3),
.homologation-table td:nth-child(3),
.homologation-table th:nth-child(9),
.homologation-table td:nth-child(9),
.homologation-col-product,
.homologation-col-unit {
  display: none;
}

.homologation-col-buyer { width: 14%; }
.homologation-col-supplier { width: 13%; }
.homologation-col-type { width: 8%; }
.homologation-col-status { width: 9%; }
.homologation-col-requested { width: 9%; }
.homologation-col-approved { width: 9%; }
.homologation-col-responsible { width: 11%; }
.homologation-col-route { width: 10%; }
.homologation-col-actions { width: 7%; }

.homologation-table th:nth-child(4),
.homologation-table td:nth-child(4),
.homologation-table th:nth-child(5),
.homologation-table td:nth-child(5),
.homologation-table th:nth-child(6),
.homologation-table td:nth-child(6),
.homologation-table th:nth-child(7),
.homologation-table td:nth-child(7),
.homologation-table th:nth-child(10),
.homologation-table td:nth-child(10) {
  white-space: normal;
}

.homologation-table th:nth-child(11),
.homologation-table td:nth-child(11) {
  white-space: nowrap;
}

.homologation-table th:nth-child(11) {
  text-align: center;
}

.homologation-table td:nth-child(11) {
  text-align: right;
}

.homologation-name {
  font-weight: 800;
}

.homologation-name a {
  color: #001a3d;
  text-decoration: none;
}

.homologation-name a:hover {
  color: #003882;
}

.homologation-muted {
  color: #60738a;
}

.homologation-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid #d6e1ee;
  border-radius: 999px;
  background: #f3f7fb;
  color: #00305f;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.homologation-actions-cell {
  white-space: nowrap;
}

.homologation-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.homologation-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d6e1ee;
  border-radius: 10px;
  background: #ffffff;
  color: #51647d;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.homologation-action-btn svg {
  width: 13px;
  height: 13px;
}

.homologation-action-btn:hover {
  transform: translateY(-1px);
}

.homologation-action-approve:hover {
  border-color: rgba(31, 139, 83, 0.28);
  background: #e8f7ef;
  color: #1f8b53;
}

.homologation-action-reject:hover {
  border-color: rgba(224, 63, 63, 0.25);
  background: #fee8e7;
  color: #c6332f;
}

.homologation-action-remove:hover {
  border-color: rgba(96, 115, 138, 0.25);
  background: #f3f7fb;
  color: #001a3d;
}

.exception-pill {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.exception-pill.status-aberta {
  background: #eef5ff;
  border-color: rgba(36, 98, 165, 0.18);
  color: #2462a5;
}

.exception-pill.status-em-analise {
  background: #fff4df;
  border-color: rgba(217, 130, 43, 0.20);
  color: #b45d12;
}

.exception-pill.status-resolvida {
  background: #ecfdf3;
  border-color: rgba(31, 139, 83, 0.18);
  color: #157347;
}

.exception-pill.status-ignorada {
  background: #eff1f4;
  border-color: rgba(92, 112, 134, 0.20);
  color: #536577;
}

.exception-pill.severity-alta {
  background: #fee8e7;
  border-color: rgba(224, 63, 63, 0.20);
  color: #c6332f;
}

.exception-pill.severity-media {
  background: #fff4df;
  border-color: rgba(217, 130, 43, 0.20);
  color: #b45d12;
}

.exception-pill.severity-baixa {
  background: #e8f7ef;
  border-color: rgba(31, 139, 83, 0.20);
  color: #1f8b53;
}

.btn-positive {
  color: #fff;
  background: linear-gradient(180deg, #1f8b53 0%, #177345 100%);
  border-color: #177345;
  box-shadow: 0 8px 16px rgba(23, 115, 69, 0.16);
}

.btn-subtle {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #50607a;
}

.exceptions-control-tower {
  display: grid;
  gap: 14px;
}

.exceptions-hero {
  display: block;
}

.exceptions-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.exception-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.exception-summary-card.is-active {
  border-color: rgba(15, 47, 78, 0.18);
  box-shadow: 0 10px 24px rgba(15, 47, 78, 0.08);
}

.exception-summary-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exception-summary-count {
  font-size: 1.75rem;
  line-height: 1;
}

.exceptions-filter-card {
  display: grid;
  gap: 12px;
}

.exceptions-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.exceptions-filter-form label {
  display: grid;
  gap: 6px;
}

.exceptions-filter-form label > span {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.exceptions-filter-form input,
.exceptions-filter-form select {
  min-height: 40px;
  border-radius: 12px;
}

.exceptions-search-field {
  grid-column: 1 / -1;
}

.exceptions-filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.exceptions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.exceptions-toolbar-copy {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.exceptions-toolbar-copy strong {
  color: var(--text);
}

.exceptions-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exceptions-group-list {
  display: grid;
  gap: 12px;
}

.exceptions-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.exceptions-group-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
}

.exceptions-group-summary::-webkit-details-marker {
  display: none;
}

.exceptions-group-summary h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.exceptions-group-summary strong {
  font-size: 1.1rem;
}

.exceptions-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.exception-card {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.04);
}

.exception-card-accent {
  min-height: 100%;
}

.exception-card.alta .exception-card-accent,
.exception-card.severity-alta .exception-card-accent {
  background: #e03f3f;
}

.exception-card.media .exception-card-accent,
.exception-card.severity-media .exception-card-accent {
  background: #f0a02f;
}

.exception-card.baixa .exception-card-accent,
.exception-card.severity-baixa .exception-card-accent {
  background: #f0c84b;
}

.exception-card.status-em-analise .exception-card-accent {
  background: #2462a5;
}

.exception-card.status-resolvida .exception-card-accent {
  background: #1f8b53;
}

.exception-card.status-ignorada .exception-card-accent {
  background: #9aa4b2;
}

.exception-card-main {
  display: grid;
  gap: 12px;
  padding: 14px 14px 14px 12px;
}

.exception-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.exception-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}

.exception-select input {
  width: 18px;
  height: 18px;
}

.exception-card-heading {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.exception-card-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.exception-card-title-row h3 {
  margin: 0;
  font-size: 1rem;
}

.exception-card-subhead,
.exception-card-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.74rem;
}

.exception-card-subhead strong,
.exception-card-meta-grid strong {
  color: var(--text);
  margin-right: 4px;
}

.exception-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.exception-card-description {
  display: grid;
  gap: 10px;
}

.exception-card-description p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.exception-impact {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.exception-impact strong {
  color: var(--brand);
}

.exception-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.exception-timeline .section-head {
  align-items: center;
}

.exception-timeline h4 {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.exception-timeline-list {
  display: grid;
  gap: 8px;
}

.exception-timeline-item {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(15, 47, 78, 0.12);
}

.exception-timeline-item strong {
  font-size: 0.75rem;
}

.exception-timeline-item span,
.empty-inline {
  color: var(--muted);
  font-size: 0.74rem;
}

.exception-details {
  border-top: 1px dashed rgba(15, 47, 78, 0.16);
  padding-top: 6px;
}

.exception-details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.exception-details > summary::-webkit-details-marker {
  display: none;
}

.exception-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.exception-detail-line {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.exception-detail-line span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exception-detail-line strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.exception-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.exception-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.exception-open-btn {
  min-width: 140px;
}

.exceptions-control-tower .buyers-list-card,
.exceptions-control-tower .card {
  overflow: hidden;
}

.buyers-page[data-paginated-root].is-loading .buyers-list-card,
.buyers-page[data-paginated-root].is-loading .buyers-group-card {
  opacity: 0.72;
  pointer-events: none;
}

.exceptions-control-tower[data-paginated-root].is-loading .exceptions-dashboard-card,
.exceptions-control-tower[data-paginated-root].is-loading .exceptions-filter-card,
.exceptions-control-tower[data-paginated-root].is-loading .exceptions-group {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .exceptions-hero {
    grid-template-columns: 1fr;
  }

  .exceptions-hero-summary {
    justify-self: start;
    width: 100%;
  }

  .exceptions-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exception-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .exceptions-filter-form {
    grid-template-columns: 1fr;
  }

  .exceptions-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .exceptions-toolbar-actions,
  .exception-card-actions,
  .exception-action-form {
    width: 100%;
  }

  .exception-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .exception-open-btn,
  .exception-action-form .btn {
    width: 100%;
    justify-content: center;
  }

  .exception-details-grid {
    grid-template-columns: 1fr;
  }
}

.paginated-loading {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
}

.buyers-page[data-paginated-root].is-loading .paginated-loading {
  display: flex;
}

.paginated-loading span {
  display: inline-block;
  width: 36px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 47, 78, 0.12), rgba(15, 47, 78, 0.28), rgba(15, 47, 78, 0.12));
  background-size: 200% 100%;
  animation: paginatedPulse 1.2s ease-in-out infinite;
}

.paginated-loading span:nth-child(2) {
  width: 22px;
}

.paginated-loading span:nth-child(3) {
  width: 28px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-top: 18px;
  border: 1px solid #e5ecf5;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(15, 47, 78, 0.04);
}

.pagination-summary {
  display: grid;
  gap: 3px;
  color: #51647d;
  font-size: 0.84rem;
  font-weight: 700;
}

.pagination-summary-label {
  color: #7c8ca3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pagination-link,
.pagination-ellipsis,
.pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d6e1ee;
  background: #fff;
  color: #0f2f4e;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 47, 78, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pagination-link:hover {
  border-color: #9fc4ef;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 47, 78, 0.08);
  transform: translateY(-1px);
}

.pagination-link.is-active {
  background: linear-gradient(180deg, #143a64 0%, #0f2f4e 100%);
  border-color: #0f2f4e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.20);
}

.pagination-ellipsis {
  border-style: dashed;
  background: transparent;
  color: #8a97aa;
  box-shadow: none;
}

.pagination-nav {
  gap: 8px;
  padding: 0 14px;
  color: #0f2f4e;
  background: #f7fbff;
}

.pagination-nav:hover {
  border-color: #9fc4ef;
  background: #eef6ff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 47, 78, 0.08);
  transform: translateY(-1px);
}

@keyframes paginatedPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.internal-shell .collab-page .buyers-list-card {
  padding: 0;
}

body.internal-shell .collab-page .buyers-list-head {
  margin: 0;
  padding: 18px 22px;
  min-height: 84px;
  align-items: flex-start;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

body.internal-shell .collab-page .buyers-list-head .eyebrow {
  color: #51647d;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

body.internal-shell .collab-page .buyers-list-head h2 {
  margin-top: 8px;
  color: #001a3d;
  font-size: 1rem;
  font-weight: 700;
}

body.internal-shell .collab-page .buyers-list-head .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 98px;
  padding: 0 14px;
  border: 1px solid #d6e1ee;
  border-radius: 999px;
  background: #f3f7fb;
  color: #001a3d;
  font-weight: 900;
  text-align: center;
}

body.internal-shell .collab-page .collab-status-picker select {
  background: var(--status-bg);
  border-color: var(--status-border);
  color: var(--status-text);
}

body.internal-shell .collab-page .btn-danger {
  color: #b42318 !important;
}

@media (max-width: 900px) {
  body.internal-shell .collab-page .collab-admin-hero,
  body.internal-shell .collab-page .buyers-filter-form {
    grid-template-columns: 1fr;
  }

  body.internal-shell .collab-page .buyers-hero-actions,
  body.internal-shell .collab-page .buyers-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.internal-shell .collab-page {
    width: min(100% - 24px, 1280px);
  }

  body.internal-shell .buyer-page .buyer-fields .buyer-field-wide {
    grid-column: 1 / -1;
  }

  body.internal-shell .collab-page .collab-admin-hero,
  body.internal-shell .collab-page .metric-card,
  body.internal-shell .collab-page .metric-strip-card,
  body.internal-shell .collab-page .buyers-filter-card {
    padding: 18px;
  }

  body.internal-shell .collab-page .buyers-list-head {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.dashboard-page {
  display: grid;
  gap: 24px;
  width: min(1280px, calc(100% - 40px));
  margin: -8px auto 24px;
}

body.internal-shell.internal-page-dashboard .dashboard-page,
body.internal-shell.internal-page-settings .dashboard-page {
  margin-top: -12px;
}

body.internal-shell.internal-page-dashboard .supplier-dashboard-page,
body.internal-shell.internal-page-settings .supplier-page {
  margin-top: -12px;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

body.internal-shell.internal-page-content .supplier-page > .buyer-hero {
  margin-top: 6px !important;
}

body.internal-shell.supplier-shell.internal-page-content .buyers-page,
body.internal-shell.supplier-shell.internal-page-settings .supplier-page {
  margin-top: -12px;
}

body.internal-shell.supplier-shell .buyers-page,
body.internal-shell.supplier-shell .supplier-page {
  gap: 12px;
}

body.internal-shell.supplier-shell .buyers-page.space-y-6 > :not([hidden]) ~ :not([hidden]),
body.internal-shell.supplier-shell .supplier-page.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(12px * calc(1 - var(--tw-space-y-reverse))) !important;
  margin-bottom: calc(12px * var(--tw-space-y-reverse)) !important;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px 26px;
  border-radius: 28px;
  background: linear-gradient(90deg, #003882 0%, #004b9c 42%, #359D9E 100%);
  box-shadow: 0 24px 52px -34px rgba(15, 47, 78, 0.45);
}

.dashboard-intro {
  display: grid;
  gap: 4px;
  padding: 2px 2px 0;
}

.dashboard-intro h2 {
  margin: 0;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.dashboard-intro p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.dashboard-hero-copy p {
  max-width: 720px;
}

.dashboard-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 3;
}

.dashboard-hero-pill {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
  color: #0f2f4e;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.12);
}

.dashboard-hero-copy {
  position: relative;
  z-index: 4;
}

.dashboard-hero {
  position: relative;
  overflow: visible;
}

.dashboard-hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.dashboard-hero-panel {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dashboard-hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.dashboard-hero-panel p,
.dashboard-hero-panel small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-hero-actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-kpi {
  display: grid;
  gap: 6px;
  min-height: 140px;
  padding: 16px 18px 14px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  align-content: start;
}

.dashboard-kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(15, 47, 78, 0.03), transparent 38%);
  pointer-events: none;
}

.dashboard-kpi > * {
  position: relative;
  z-index: 1;
}

.dashboard-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-kpi strong {
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-kpi-value-money {
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.dashboard-kpi-value {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transform-origin: left center;
}

.imports-kpis .imports-kpi-value-fixed {
  font-size: clamp(1.7rem, 2.3vw, 2.25rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.05em !important;
  width: auto;
  overflow: visible;
  text-overflow: initial;
}

.dashboard-kpi p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
  width: fit-content;
  max-width: none;
}

.imports-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.imports-kpis .dashboard-kpi {
  min-height: 156px;
  padding: 16px 16px 15px 18px;
  border-radius: 18px;
  border: 1px solid #e6ebf2;
  overflow: hidden;
}

.imports-kpis .dashboard-kpi > * {
  position: relative;
  z-index: 1;
}

.dashboard-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0f2f4e;
  background: #e8eef5;
  flex: 0 0 auto;
}

.dashboard-kpi-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-kpi-icon-blue {
  background: rgba(15, 47, 78, 0.10);
  color: #0f2f4e;
}

.dashboard-kpi-icon-teal {
  background: rgba(53, 157, 158, 0.12);
  color: #359D9E;
}

.dashboard-kpi-icon-teal svg {
  width: 22px;
  height: 22px;
}

.dashboard-kpi-icon-green {
  background: rgba(31, 139, 83, 0.12);
  color: #1f8b53;
}

.dashboard-kpi-icon-purple {
  background: rgba(138, 92, 246, 0.12);
  color: #8b3ff7;
}

.dashboard-kpi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  align-self: center;
}

.dashboard-kpi-chip-green {
  background: #dff8e7;
  color: #0e7a3f;
}

.dashboard-kpi-chip-teal {
  background: rgba(53, 157, 158, 0.12);
  color: #219aa0;
}

@media (max-width: 1100px) {
  .imports-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .imports-kpis {
    grid-template-columns: 1fr;
  }
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-main-grid > .dashboard-panel-wide {
  min-height: 100%;
}

.dashboard-main-grid > .dashboard-panel-wide:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
}

.dashboard-main-grid > .dashboard-panel-slim:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.dashboard-main-grid > .dashboard-panel-slim:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.dashboard-secondary-grid,
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-panel {
  display: grid;
  gap: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 47, 78, 0.08);
  box-shadow: 0 16px 36px rgba(15, 47, 78, 0.06);
}

.landing-banner-settings {
  gap: 16px;
}

.landing-banner-order-form {
  display: grid;
  gap: 14px;
}

.landing-banner-list {
  display: grid;
  gap: 14px;
}

.landing-banner-item {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.landing-banner-previews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 0.42fr);
  gap: 10px;
  align-items: start;
}

.landing-banner-previews > div {
  display: grid;
  gap: 5px;
}

.landing-banner-previews span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-banner-previews small {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.landing-banner-mobile-add {
  position: relative;
  display: grid;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.landing-banner-mobile-add-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.landing-banner-mobile-add:hover .landing-banner-mobile-add-button,
.landing-banner-item:hover .landing-banner-mobile-add-button {
  opacity: 1;
  background: rgba(15, 47, 78, 0.52);
  border-radius: 8px;
}

.landing-banner-mobile-add-button .landing-banner-add-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 12px 30px rgba(15, 47, 78, 0.18);
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -999px;
}

.landing-banner-mobile-add-button .landing-banner-add-icon::before,
.landing-banner-mobile-add-button .landing-banner-add-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.landing-banner-mobile-add-button .landing-banner-add-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.landing-banner-mobile-add-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.landing-banner-previews img {
  width: 100%;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.landing-banner-previews .landing-banner-mobile-preview {
  aspect-ratio: 1080 / 675;
}

.landing-banner-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.landing-banner-info span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

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

.landing-banner-actions form {
  margin: 0;
}

.landing-banner-delete {
  color: #8a2323 !important;
  border-color: rgba(201, 75, 75, 0.3) !important;
  background: var(--danger-soft) !important;
}

.landing-banner-save-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0 4px;
}

.landing-banner-save-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-banner-upload {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(240px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 4px;
}

.landing-banner-upload input[type="file"] {
  border-radius: 0 !important;
}

.landing-banner-upload input[type="file"]::file-selector-button {
  border-radius: 0 !important;
}

.landing-banner-upload input[type="file"]::-webkit-file-upload-button {
  border-radius: 0 !important;
}

.landing-banner-upload-note {
  display: grid;
  gap: 3px;
  color: var(--brand);
}

.landing-banner-upload-note small {
  color: var(--muted);
}

.dashboard-panel-wide,
.dashboard-panel-slim {
  min-height: 390px;
}

.dashboard-bars {
  display: grid;
  gap: 14px;
}

.dashboard-bar-row {
  display: grid;
  gap: 8px;
}

.dashboard-bar-label,
.dashboard-ranking-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.dashboard-bar-label span,
.dashboard-ranking-label small,
.dashboard-winner-product span,
.dashboard-action span,
.dashboard-winner-info p,
.dashboard-winner-meta small {
  color: var(--muted);
}

.dashboard-bar-track,
.dashboard-ranking-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7eef7;
}

.dashboard-ranking-track {
  height: 10px;
}

.dashboard-bar-fill,
.dashboard-ranking-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f2f4e, #2462a5);
  box-shadow: 0 8px 16px rgba(15, 47, 78, 0.12);
}

.dashboard-bar-fill-green,
.dashboard-ranking-fill-green {
  background: linear-gradient(90deg, #1f8b53, #5abf87);
}

.dashboard-bar-fill-blue,
.dashboard-ranking-fill-blue {
  background: linear-gradient(90deg, #2462a5, #72a9db);
}

.dashboard-donut-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
}

.dashboard-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(15, 47, 78, 0.08);
}

.dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 47, 78, 0.08);
}

.dashboard-donut-center {
  position: absolute;
  inset: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.dashboard-donut-center strong {
  font-size: 1.45rem;
}

.dashboard-legend {
  display: grid;
  gap: 10px;
}

.dashboard-legend-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 6px;
}

.dashboard-legend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 170px;
  flex: 1 1 170px;
}

.dashboard-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 12px;
}

.dashboard-legend-item strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.1;
}

.dashboard-legend-item small {
  color: var(--muted);
  font-size: 0.72rem;
}

.dashboard-winner {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dashboard-winner-product {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.dashboard-winner-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 47, 78, 0.12);
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
}

.dashboard-winner-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: #0f2f4e;
  background: linear-gradient(135deg, #eef5ff, #e7f8ef);
}

.dashboard-winner-info strong {
  display: block;
}

.dashboard-winner-info p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.dashboard-winner-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-winner-meta span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.dashboard-rankings {
  display: grid;
  gap: 12px;
}

.dashboard-ranking-row {
  display: grid;
  gap: 7px;
}

.dashboard-ranking-value {
  justify-self: end;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.dashboard-action {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f6f9fc);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-action:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 47, 78, 0.2);
  box-shadow: 0 14px 30px rgba(15, 47, 78, 0.08);
}

.dashboard-table-card {
  overflow: hidden;
}

.dashboard-table-wrap .data-table th {
  background: #f2f7fc;
}

body.internal-page-dashboard .dashboard-page .dashboard-panel {
  gap: 0;
  overflow: hidden;
  align-content: start;
  border-radius: 18px;
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 47, 78, 0.04);
}

body.internal-page-dashboard .dashboard-page .dashboard-panel-head {
  margin: 0;
  padding: 18px 22px;
  min-height: 84px;
  align-items: flex-start;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

body.internal-page-dashboard .dashboard-page .dashboard-panel-head .eyebrow {
  color: #51647d;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

body.internal-page-dashboard .dashboard-page .dashboard-panel-head h2 {
  margin-top: 8px;
  color: #001a3d;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

body.internal-page-dashboard .dashboard-page .dashboard-panel-head .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 98px;
  padding: 0 14px;
  border: 1px solid #d6e1ee;
  background: #f3f7fb;
  color: #001a3d;
  box-shadow: 0 1px 2px rgba(15, 47, 78, 0.05);
  text-align: center;
}

body.internal-page-dashboard .dashboard-page .dashboard-bars,
body.internal-page-dashboard .dashboard-page .dashboard-rankings,
body.internal-page-dashboard .dashboard-page .dashboard-actions,
body.internal-page-dashboard .dashboard-page .dashboard-winner,
body.internal-page-dashboard .dashboard-page .dashboard-donut-card,
body.internal-page-dashboard .dashboard-page .empty-state {
  margin: 22px;
}

body.internal-page-dashboard .dashboard-page .dashboard-panel-wide,
body.internal-page-dashboard .dashboard-page .dashboard-panel-slim {
  min-height: auto;
}

body.internal-page-dashboard .dashboard-page .dashboard-secondary-grid > .dashboard-panel-wide {
  grid-column: 1 / -1;
  width: 100%;
}

body.internal-page-dashboard .dashboard-page .dashboard-main-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.95fr);
  align-items: start;
  grid-auto-rows: auto;
}

body.internal-page-dashboard .dashboard-page .dashboard-main-grid > .dashboard-panel-wide:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: stretch;
}

body.internal-page-dashboard .dashboard-page .dashboard-main-grid > .dashboard-panel-slim:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

body.internal-page-dashboard .dashboard-page .dashboard-panel-wide .dashboard-bars {
  min-height: 170px;
  align-content: end;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-row,
body.internal-page-dashboard .dashboard-page .dashboard-ranking-row {
  gap: 8px;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-label,
body.internal-page-dashboard .dashboard-page .dashboard-ranking-label {
  color: #001a3d;
  font-size: 0.87rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-label strong,
body.internal-page-dashboard .dashboard-page .dashboard-ranking-label strong {
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.internal-page-dashboard .dashboard-page .dashboard-top-products-panel .dashboard-ranking-label strong {
  text-transform: uppercase;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-label span,
body.internal-page-dashboard .dashboard-page .dashboard-ranking-label small {
  color: #536985;
  font-size: 0.78rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-track,
body.internal-page-dashboard .dashboard-page .dashboard-ranking-track {
  height: 8px;
  background: #e8eef5;
  box-shadow: inset 0 1px 0 rgba(15, 47, 78, 0.03);
}

body.internal-page-dashboard .dashboard-page .dashboard-ranking-track {
  height: 7px;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-fill,
body.internal-page-dashboard .dashboard-page .dashboard-ranking-fill {
  background: linear-gradient(90deg, #003882 0%, #2462a5 100%);
  box-shadow: none;
}

body.internal-page-dashboard .dashboard-page .dashboard-bar-fill-current {
  background: linear-gradient(90deg, #1f9a63 0%, #55c595 100%);
}

body.internal-page-dashboard .dashboard-page .dashboard-ranking-fill-green {
  background: linear-gradient(90deg, #1f9a63 0%, #55c595 100%);
}

body.internal-page-dashboard .dashboard-page .dashboard-ranking-fill-blue {
  background: linear-gradient(90deg, #2462a5 0%, #72a9db 100%);
}

body.internal-page-dashboard .dashboard-page .dashboard-ranking-value {
  color: #536985;
  font-size: 0.78rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-legend-horizontal {
  justify-content: space-between;
  margin: 18px 22px 4px;
  gap: 12px 20px;
}

body.internal-page-dashboard .dashboard-page .dashboard-legend-item {
  min-width: 135px;
  flex: 1 1 135px;
  gap: 9px;
}

body.internal-page-dashboard .dashboard-page .dashboard-legend-swatch {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

body.internal-page-dashboard .dashboard-page .dashboard-legend-item strong {
  color: #001a3d;
  font-size: 0.78rem;
  font-weight: 800;
}

body.internal-page-dashboard .dashboard-page .dashboard-legend-item small {
  color: #536985;
  font-size: 0.68rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-donut-card {
  margin-top: 18px;
  margin-bottom: 28px;
}

body.internal-page-dashboard .dashboard-page .dashboard-donut {
  width: 200px;
  height: 200px;
  box-shadow: none;
  transform: rotate(-45deg);
}

body.internal-page-dashboard .dashboard-page .dashboard-donut::after {
  inset: 34px;
  background: #ffffff;
  box-shadow: none;
}

body.internal-page-dashboard .dashboard-page .dashboard-donut-center {
  inset: 34px;
  transform: rotate(45deg);
}

body.internal-page-dashboard .dashboard-page .dashboard-donut-center strong {
  color: #001a3d;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

body.internal-page-dashboard .dashboard-page .dashboard-donut-center span {
  margin-top: 8px;
  color: #51647d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner {
  gap: 14px;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-product strong {
  color: #001a3d;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-card {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-color: #dbe4ef;
  border-radius: 14px;
  background: #fbfdff;
  box-shadow: none;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #eaf6f4;
  color: #003882;
  font-size: 1rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-info strong {
  color: #001a3d;
  font-size: 0.86rem;
  font-weight: 900;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-info p {
  margin-top: 4px;
  color: #536985;
  font-size: 0.82rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-meta {
  gap: 8px;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-meta span {
  padding: 12px 10px;
  border-color: #d6e1ee;
  border-radius: 12px;
  background: #f3f7fb;
}

body.internal-page-dashboard .dashboard-page .dashboard-winner-meta strong {
  color: #001a3d;
  font-size: 0.9rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-actions {
  gap: 10px;
}

body.internal-page-dashboard .dashboard-page .dashboard-action {
  min-height: 72px;
  padding: 14px 16px;
  border-color: #dbe4ef;
  border-radius: 14px;
  background: #fbfdff;
  box-shadow: 0 8px 20px rgba(15, 47, 78, 0.04);
}

body.internal-page-dashboard .dashboard-page .dashboard-action strong {
  color: #003882;
  font-size: 0.9rem;
  font-weight: 900;
}

body.internal-page-dashboard .dashboard-page .dashboard-action span {
  color: #536985;
  font-size: 0.82rem;
}

body.internal-page-dashboard .dashboard-page .dashboard-action:hover {
  border-color: #b9cce2;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 47, 78, 0.08);
}

body.internal-page-dashboard .dashboard-page .dashboard-table-card {
  border-radius: 18px;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-wrap {
  padding: 0;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-wrap .data-table {
  min-width: 780px;
  border-collapse: collapse;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-wrap .data-table th {
  padding: 16px 28px;
  background: #ffffff;
  color: #5d6b7d;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-wrap .data-table td {
  padding: 18px 28px;
  color: #001a3d;
  font-size: 0.9rem;
  border-bottom-color: #eef2f7;
  vertical-align: middle;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-wrap .data-table tbody tr:hover td {
  background: #fbfdff;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-product,
body.internal-page-dashboard .dashboard-page .dashboard-table-winner {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-region {
  color: #536985;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-volume {
  font-weight: 800;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f3f7fb;
  color: #001a3d;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-action {
  text-align: right;
}

body.internal-page-dashboard .dashboard-page .dashboard-table-wrap .btn {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #003882;
  background: transparent;
  box-shadow: none;
  font-weight: 900;
}

.empty-state {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
}

@media (max-width: 1180px) {
  .buyers-hero {
    flex-direction: column;
  }

  .dashboard-hero,
  .dashboard-main-grid,
  .dashboard-secondary-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main-grid > .dashboard-panel-wide:first-child,
  .dashboard-main-grid > .dashboard-panel-slim:nth-child(2),
  .dashboard-main-grid > .dashboard-panel-slim:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-donut-card {
    grid-template-columns: 1fr;
  }

  .landing-banner-item,
  .landing-banner-upload {
    grid-template-columns: 1fr;
  }

  .landing-banner-previews {
    grid-template-columns: 1fr;
  }

  .landing-banner-actions {
    justify-content: flex-start;
  }

  .landing-banner-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-page .buyer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-cnpj-cnae-row,
  .signup-cnpj-cnae-row {
    grid-template-columns: 1fr;
  }

  .collab-page .buyer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vendor-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr);
  }
  .vendor-row .vendor-field:nth-of-type(n + 3),
  .vendor-row .vendor-status-field,
  .vendor-row .vendor-actions {
    grid-column: 1 / -1;
  }

  .vendor-row .vendor-actions {
    justify-content: flex-start;
  }

  .routes-workspace {
    grid-template-columns: 1fr;
  }

  .route-day-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .route-reach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-map-container {
    min-height: 200px;
  }

  .route-municipality-row,
  .route-neighborhood-row {
    grid-template-columns: 1fr;
  }

  .buyers-filter-form {
    grid-template-columns: 1fr;
  }

  .suppliers-filter-form {
    grid-template-columns: 1fr;
  }

  body.internal-shell .embedded-filter-card .operational-filter-form {
    grid-template-columns: 1fr;
  }

  body.internal-shell .embedded-filter-card .operational-filter-form .buyers-filter-actions {
    justify-content: flex-start;
  }

  .products-filter-form {
    grid-template-columns: 1fr;
  }

  .buyers-filter-form input {
    width: 100%;
  }

  .buyers-filter-form select {
    width: 100%;
  }

  .suppliers-filter-form .supplier-filter-name {
    max-width: none;
  }

  .products-filter-form .product-filter-name {
    max-width: none;
  }

  .buyers-filter-actions {
    justify-content: flex-start;
  }

  .buyer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .buyer-row-actions {
    align-self: flex-end;
  }

  .supplier-user-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #novo-usuario .supplier-user-create-fields {
    grid-template-columns: 1fr;
  }

  #novo-usuario .supplier-user-create-fields label:nth-child(4),
  #novo-usuario .supplier-user-create-fields label:nth-child(5) {
    grid-column: auto;
  }

  .supplier-user-col {
    gap: 2px;
  }

  .supplier-user-editor {
    justify-self: start;
  }

  .supplier-user-grid:has(.supplier-user-editor[open]) .supplier-user-col-display {
    display: none;
  }

  .supplier-user-editor[open] {
    grid-column: 1;
    display: block;
  }

  .supplier-user-editor-form,
  .supplier-user-editor-form.is-pending {
    grid-template-columns: 1fr;
  }

  .supplier-user-editor-actions {
    justify-content: flex-start;
  }

  .product-offer-row {
    grid-template-columns: 1fr;
  }
}

.buyer-location-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.buyer-location-head {
  align-items: flex-start;
}

.section-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.location-workspace {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.location-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.location-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(15, 47, 78, 0.05);
}

.location-card.is-active {
  border-color: rgba(4, 176, 70, 0.55);
  background: linear-gradient(180deg, rgba(4, 176, 70, 0.10) 0%, rgba(4, 176, 70, 0.04) 100%);
  box-shadow: inset 0 0 0 1px rgba(4, 176, 70, 0.18);
}

.location-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.location-card strong {
  font-size: 0.9rem;
}

.location-card p,
.location-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.25;
}

.location-card p {
  font-size: 0.78rem;
}

.location-card small {
  font-size: 0.72rem;
}

.location-editor-stack {
  min-width: 0;
}

.location-editor {
  display: none;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 47, 78, 0.05);
}

.location-editor.is-active {
  display: grid;
}

.location-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-editor-head h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.location-editor-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.location-remove {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 75, 75, 0.24);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.location-remove:hover {
  border-color: rgba(201, 75, 75, 0.42);
  background: #ffdede;
}

.location-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.location-toggle span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.location-toggle select {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 0.72rem;
  border-radius: 8px;
}

.location-block {
  display: grid;
  gap: 8px;
}

.location-block-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-grid {
  display: grid;
  gap: 8px;
}

.location-grid-address {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-grid-hours {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.location-grid-contact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.location-grid label,
.location-notes {
  min-width: 0;
}

.location-notes textarea {
  min-height: 88px;
}

.location-editor .full-width {
  grid-column: 1 / -1;
}

.buyer-units-page .location-editor-stack > .buyer-actions {
  margin-top: 16px;
}

.btn-small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 0.76rem;
}

@media (max-width: 1180px) {
  .location-workspace {
    grid-template-columns: 1fr;
  }

  .location-grid-address,
  .location-grid-hours,
  .location-grid-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 14px 14px 12px;
  min-height: 108px;
}

.metric-card .eyebrow {
  font-size: 0.62rem;
  line-height: 1.2;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-strip-card {
  padding: 18px;
}

.metric-mini,
.inline-chip,
.status-pill,
.user-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 47, 78, 0.06);
  border: 1px solid rgba(15, 47, 78, 0.10);
}

.hero-card .metric-mini {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);
}

.metric-mini strong {
  font-size: 1rem;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  margin-top: 6px;
}

.collab-page .grid-5 {
  gap: 6px;
}

.collab-page .metric-card {
  padding: 10px 10px 8px;
  min-height: 84px;
}

.collab-page .metric-card strong {
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  margin-top: 4px;
}

.collab-page .metric-card .eyebrow {
  font-size: 0.58rem;
  line-height: 1.05;
}

.collab-invite-list {
  display: grid;
  gap: 10px;
}

.collab-invite-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.collab-invite-row.is-editing {
  box-shadow: 0 0 0 2px rgba(31, 139, 83, 0.14);
}

.collab-invite-order {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(31, 139, 83, 0.08);
  color: #0c7b43;
  font-weight: 800;
}

.collab-invite-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collab-invite-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.collab-invite-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.collab-invite-meta small {
  color: var(--muted);
  line-height: 1.25;
}

.collab-invite-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.buyer-action {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.buyer-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.buyer-action:hover:not(:disabled) {
  border-color: rgba(31, 139, 83, 0.35);
  box-shadow: 0 6px 14px rgba(19, 34, 56, 0.08);
}

.metric-mini span,
.inline-chip,
.muted,
.eyebrow,
.sidebar-note small {
  color: var(--muted);
}

.hero-card .metric-mini span,
.hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1c8d53 0%, #177345 100%);
  border-color: #177345;
}

.supplier-special-prices-page .supplier-special-price-config-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(23, 115, 69, 0.16);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--brand);
}

.hero-actions,
.row-actions,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.row-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.user-chip {
  min-width: 170px;
  background: #fff;
  border-color: var(--line);
}

.user-chip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section-head,
.entity-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.section-head h2,
.card h2,
.card h3 {
  margin: 6px 0 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--surface-soft);
}

.table-wrap {
  overflow-x: auto;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.entity-card,
.list-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 16px;
}

.quote-row-card {
  display: grid;
  gap: 12px;
}

.quote-row-card.is-best {
  border-color: rgba(31, 139, 83, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
  box-shadow: 0 12px 30px rgba(31, 139, 83, 0.08);
}

.quote-row-card.is-sent {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  opacity: 0.72;
}

.quote-row-card.is-sent input,
.quote-row-card.is-sent textarea {
  background: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed !important;
}

.quote-row-card.is-sent .status-pill {
  opacity: 0.95;
}

.buyer-purchase-page .buyer-quote-ranking-grid {
  align-items: stretch;
}

.buyer-purchase-page .buyer-quote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
}

.buyer-purchase-page .buyer-quote-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.buyer-purchase-page .buyer-quote-card-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buyer-purchase-page .buyer-quote-rank {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 47, 78, 0.06);
  border: 1px solid rgba(15, 47, 78, 0.10);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.buyer-purchase-page .buyer-quote-supplier {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.buyer-purchase-page .buyer-quote-special-pill {
  align-self: center;
  white-space: nowrap;
}

.buyer-purchase-page .buyer-quote-price-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
}

.buyer-purchase-page .buyer-quote-price-pill-standard {
  background: linear-gradient(180deg, #edf9f2 0%, #def4e5 100%);
  border: 1px solid rgba(31, 139, 83, 0.20);
  color: #1f8b53;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.buyer-purchase-page .buyer-quote-price-pill-special {
  background: linear-gradient(180deg, #fff2f4 0%, #ffe1e5 100%);
  border: 1px solid rgba(190, 24, 93, 0.22);
  color: #be185d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.buyer-purchase-page .buyer-quote-price-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.buyer-purchase-page .buyer-quote-card-body {
  margin-top: 2px;
}

.buyer-purchase-page .buyer-quote-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.buyer-purchase-page .buyer-quote-meta-item {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.buyer-purchase-page .buyer-quote-meta-item strong,
.buyer-purchase-page .buyer-quote-meta-item span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.buyer-purchase-page .buyer-quote-meta-item strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.buyer-purchase-page .buyer-quote-meta-item span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.buyer-purchase-page .buyer-quote-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 48px;
  padding-top: 4px;
}

.buyer-purchase-page .buyer-quote-card-footer form {
  margin: 0;
}

.buyer-purchase-page .buyer-quote-select-btn {
  min-width: 156px;
}

.entity-card p,
.list-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-item {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.status-pill {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(15, 47, 78, 0.06);
}

.import-status-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.import-status-concluido,
.import-status-resolved {
  background: #ecfdf3;
  color: #157347;
  border-color: rgba(31, 139, 83, 0.20);
}

.import-status-concluido-com-alertas,
.import-status-pendente,
.import-status-sent_to_support {
  background: #fff4df;
  color: #b45d12;
  border-color: rgba(217, 130, 43, 0.22);
}

.import-status-concluido-com-erros,
.import-status-falhou {
  background: #fee8e7;
  color: #c6332f;
  border-color: rgba(224, 63, 63, 0.22);
}

.import-status-processando {
  background: #eef5ff;
  color: #2462a5;
  border-color: rgba(36, 98, 165, 0.18);
}

.import-status-ignored,
.import-status-ignorado {
  background: #eff1f4;
  color: #536577;
  border-color: rgba(92, 112, 134, 0.20);
}

.import-status-pill::first-letter {
  text-transform: uppercase;
}

.collab-detail-card .status-pill.status-pill-success {
  background: rgba(23, 115, 69, 0.14);
  border-color: rgba(23, 115, 69, 0.24);
  color: #177345;
}

.buyer-purchase-page .buyer-quote-ranking-head {
  margin-bottom: 8px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6eef7;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #1c8d53 100%);
  border-radius: inherit;
}

.bar-fill-green {
  background: linear-gradient(90deg, #1c8d53 0%, #63c27f 100%);
}

.success-card {
  background: var(--success-soft);
  border-color: rgba(31, 139, 83, 0.18);
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid;
}

.alert-error {
  background: var(--danger-soft);
  border-color: rgba(201, 75, 75, 0.24);
  color: #8a2323;
}

.alert-warning {
  background: var(--warning-soft);
  border-color: rgba(217, 130, 43, 0.24);
  color: #8a4b12;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.auth-card {
  background: #fff;
}

.stack-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 47, 78, 0.14);
  border-color: var(--brand-2);
}

.subsection-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.repeat-list {
  display: grid;
  gap: 12px;
}

.repeat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: #fff;
}

.buyer-delivery-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.buyer-delivery-row-custom {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.buyer-delivery-row .buyer-delivery-date {
  display: grid;
  gap: 8px;
  align-content: end;
  min-width: 0;
}

.buyer-delivery-row .buyer-delivery-date input[type="date"],
.buyer-delivery-row .buyer-delivery-date input[type="text"],
.buyer-delivery-row .buyer-delivery-date .flatpickr-input,
.buyer-delivery-row .buyer-delivery-date .flatpickr-delivery-date-alt {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: var(--text);
}

.buyer-delivery-date select {
  width: 100%;
  min-width: 0;
}

.buyer-delivery-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.buyer-delivery-remove {
  align-self: end;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.buyer-delivery-remove:hover {
  border-color: rgba(192, 53, 39, 0.28);
  color: #c03527;
}

.full-width {
  grid-column: 1 / -1;
}

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

.selection-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
}

.selection-item small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.mobile-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.public-shell-wrap {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.public-content {
  padding-top: 6px;
}

.public-shell .public-content > * {
  width: min(1240px, calc(100% - 48px));
}

.public-shell .topbar,
.public-shell .public-topbar {
  margin-left: 0 !important;
  width: 100%;
}

.public-shell .public-content {
  width: 100%;
}

.public-shell .public-content > .buyers-page,
.public-shell .public-content > .buyer-purchase-page,
.public-shell .public-content > .buyer-purchases-page {
  margin-left: auto;
  margin-right: auto;
}

.is-best td {
  background: rgba(31, 139, 83, 0.08);
}

@media (max-width: 1100px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
  }

  .hero-grid,
  .split-layout,
  .auth-grid,
  .grid-3,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .selection-grid {
    grid-template-columns: 1fr;
  }

  .buyer-grid {
    grid-template-columns: 1fr;
  }

  .buyer-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .buyer-hero-badges {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, max-content);
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .buyer-pref-layout {
    grid-template-columns: 1fr;
  }

  .buyer-pref-chip-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buyer-pref-segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buyer-pref-feature-grid {
    grid-template-columns: 1fr;
  }

  .buyer-pref-wizard-head,
  .buyer-pref-progress-top {
    flex-direction: column;
    align-items: stretch;
  }

  .buyer-pref-table {
    min-width: 980px;
  }

  .buyer-dashboard-hero,
  .buyer-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .buyer-dashboard-profile {
    min-width: 0;
  }

  .buyer-purchases-hero,
  .buyer-purchase-hero,
  .buyer-purchase-grid {
    grid-template-columns: 1fr;
  }

  .buyer-purchase-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buyer-purchase-quote-row,
  .buyer-purchases-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .buyer-purchases-row-actions {
    justify-items: start;
  }
}

@media (max-width: 780px) {
  .buyer-pref-step-nav,
  .buyer-pref-search,
  .buyer-pref-option-grid,
  .buyer-pref-tax-box,
  .buyer-pref-stack,
  .buyer-pref-two-col,
  .buyer-pref-group-grid,
  .buyer-pref-step-tracker,
  .buyer-pref-segment-grid,
  .buyer-pref-feature-grid,
  .buyer-pref-progress-tabs,
  .buyer-pref-segment-control,
  .buyer-pref-choice-panel,
  .buyer-pref-chip-grid,
  .buyer-pref-chip-grid-compact,
  .buyer-pref-chip-grid-wide,
  .buyer-pref-radio-grid,
  .buyer-pref-radio-grid-three {
    grid-template-columns: 1fr;
  }

  .buyer-pref-step-nav {
    flex-direction: column;
  }

  .buyer-pref-search {
    display: grid;
  }

  .buyer-pref-segment-grid {
    grid-template-columns: 1fr;
  }

  .buyer-pref-feature-card {
    min-height: 88px;
  }

  .buyer-pref-wizard-step {
    padding: 16px;
  }

  .buyer-pref-wizard-footer {
    justify-content: stretch;
  }

  .buyer-pref-wizard-footer .btn {
    width: 100%;
  }

  .buyer-pref-step-tracker {
    gap: 8px;
  }

  .buyer-pref-step-line {
    display: none;
  }

  .buyer-pref-actions {
    justify-content: stretch;
  }

  .buyer-pref-actions .btn {
    width: 100%;
  }

  .buyer-pref-step-btn {
    width: 100%;
  }

  .buyer-pref-table {
    min-width: 860px;
  }

  .public-shell .content {
    gap: 12px;
    padding-bottom: 12px;
  }

  .public-shell .content > .landing-hero,
  .public-shell .content > .section-block,
  .public-shell .content > .callout {
    width: calc(100% - 16px);
  }

  .public-topbar-landing {
    width: calc(100% - 16px);
    margin-top: 12px;
    padding: 12px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
  }

  .public-topbar-landing .brand-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .public-topbar-landing .brand-logo {
    width: 100px;
  }

  .public-topbar-landing .site-nav {
    display: none;
  }

  .public-topbar-landing .nav-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .public-topbar-landing .nav-actions > a {
    min-width: 0;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .public-topbar-landing .nav-actions > a:first-child {
    justify-self: start;
  }

  .public-topbar-landing .nav-actions > a:last-child {
    justify-self: end;
  }

  .public-topbar-landing .nav-actions > a:last-child,
  .public-topbar-landing .nav-actions > a:first-child {
    padding-inline: 9px;
    min-height: 32px;
  }

  .public-topbar-landing .nav-actions .nav-user {
    display: none;
  }

  .landing-hero {
    min-height: 0;
    padding: 30px 16px 24px;
    border-radius: 22px;
  }

  .landing-hero::after,
  .landing-hero-orb {
    display: none;
  }

  .landing-center {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .landing-center h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 9.4vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  .hero-lead {
    max-width: none;
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-actions-center {
    justify-content: stretch;
    margin-top: 18px;
  }

  .hero-actions-center .btn {
    width: 100%;
  }

  .trust-row {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 16px;
  }

  .trust-chip {
    font-size: 0.82rem;
  }

  body.landing-shell section:not(.landing-hero) {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  body.landing-shell section:not(.landing-hero) > .mx-auto {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.landing-shell section:not(.landing-hero) h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.08;
    margin-top: 0.75rem;
  }

  body.landing-shell section:not(.landing-hero) h3 {
    font-size: clamp(1.1rem, 5.4vw, 1.35rem);
    line-height: 1.15;
    margin-top: 0.75rem;
  }

  body.landing-shell section:not(.landing-hero) p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  body.landing-shell section:not(.landing-hero) .mt-16,
  body.landing-shell section:not(.landing-hero) .mt-10 {
    margin-top: 1.5rem;
  }

  body.landing-shell section:not(.landing-hero) .gap-8,
  body.landing-shell section:not(.landing-hero) .gap-10,
  body.landing-shell section:not(.landing-hero) .gap-6 {
    gap: 1rem;
  }

  body.landing-shell section:not(.landing-hero) .p-8 {
    padding: 1.25rem;
  }

  body.landing-shell section:not(.landing-hero) .p-6 {
    padding: 1rem;
  }

  body.landing-shell section:not(.landing-hero) .rounded-3xl {
    border-radius: 1.25rem;
  }

  body.landing-shell section:not(.landing-hero) .text-4xl,
  body.landing-shell section:not(.landing-hero) .text-5xl {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.08;
  }

  body.landing-shell section:not(.landing-hero) .text-3xl {
    font-size: clamp(1.2rem, 5.8vw, 1.5rem);
    line-height: 1.12;
  }

  body.landing-shell section:not(.landing-hero) .text-lg {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body.landing-shell section:not(.landing-hero) .mt-8 {
    margin-top: 1.25rem;
  }

  body.landing-shell section:not(.landing-hero) .mt-4 {
    margin-top: 0.75rem;
  }

  body.landing-shell section:not(.landing-hero) .mt-5 {
    margin-top: 0.75rem;
  }

  body.landing-shell section:not(.landing-hero) .shadow-xl,
  body.landing-shell section:not(.landing-hero) .shadow-sm {
    box-shadow: 0 12px 28px -22px rgba(15, 47, 78, 0.28);
  }

  .section-block {
    padding-top: 48px;
  }

  .section-value h2,
  .workflow-panel h2,
  .callout h2 {
    margin-top: 14px;
    font-size: clamp(1.65rem, 7.8vw, 2.4rem);
    line-height: 1.06;
  }

  .section-lead {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .value-card {
    padding: 20px;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workflow-panel,
  .workflow-side {
    padding: 20px;
    border-radius: 22px;
  }

  .workflow-steps {
    gap: 12px;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .workflow-step span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .stack-panel-head h3 {
    font-size: 1.35rem;
  }

  .stack-card-mini {
    padding: 14px;
    border-radius: 18px;
  }

  .callout {
    margin: 52px 0 12px;
    padding: 22px 18px;
    border-radius: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .callout::before {
    width: 100%;
    height: 5px;
  }

  .callout-actions {
    width: 100%;
    flex-direction: column;
  }

  .callout-actions .btn {
    width: 100%;
  }

  .dashboard-page {
    width: min(100%, calc(100% - 18px));
  }

  .dashboard-hero {
    padding: 20px;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .order-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-winner-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-donut {
    width: 190px;
    height: 190px;
  }

  .buyer-dashboard {
    margin-top: 0;
  }

  .buyer-dashboard-hero,
  .buyer-dashboard-panel {
    padding: 16px;
  }

  .buyer-dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .buyer-dashboard-row {
    flex-direction: column;
  }

  .buyer-dashboard-row-meta {
    justify-items: start;
    text-align: left;
  }

  .buyer-purchase-page,
  .buyer-purchases-page {
    margin-top: 0;
  }

  body.internal-shell .site-header,
  body.internal-shell .landing-fixed-header {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  body.internal-shell .landing-header-inner {
    padding: 8px 9px;
    gap: 5px;
    flex-wrap: nowrap;
  }

  body.internal-shell .internal-brand-logo {
    width: auto;
    height: auto;
    max-height: 26px;
    max-width: 104px;
    object-fit: contain;
  }

  body.internal-shell .internal-header-inner > h1 {
    display: none !important;
  }

  body.internal-shell .internal-menu-toggle,
  body.internal-shell .notification-bell,
  body.internal-shell .help-wizard-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0 !important;
    border-radius: 8px;
  }

  body.internal-shell .notification-bell-icon {
    width: 12px;
    height: 12px;
  }

  body.internal-shell .landing-brand {
    min-width: 0;
    flex: 0 0 auto;
  }

  body.internal-shell .landing-brand img.internal-brand-logo {
    width: auto;
    max-width: 124px;
  }

  body.internal-shell .landing-header-inner > .ml-auto.flex.items-center.gap-3 {
    gap: 4px !important;
  }

  body.internal-shell .landing-header-inner > .ml-auto.flex.items-center.gap-3 .notification-center {
    gap: 4px;
  }

  body.internal-shell .landing-header-inner > .ml-auto.flex.items-center.gap-3 .notification-count {
    min-width: 16px;
    height: 16px;
    top: -4px;
    right: -4px;
    padding: 0 4px;
    font-size: 0.64rem;
    line-height: 16px;
  }

  body.internal-shell .buyer-dashboard,
  body.internal-shell .supplier-dashboard-page {
    width: min(100%, calc(100% - 16px));
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  body.internal-shell #internal-main {
    margin-top: 10px;
  }

  body.internal-shell .buyer-dashboard-hero,
  body.internal-shell .buyer-dashboard-panel,
  body.internal-shell .buyers-list-card,
  body.internal-shell .buyers-filter-card {
    padding: 14px;
    border-radius: 18px;
  }

  body.internal-shell .buyer-dashboard-hero,
  body.internal-shell .supplier-dashboard-page .buyers-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.internal-shell .buyer-dashboard-hero-copy h1,
  body.internal-shell .supplier-dashboard-page .buyers-hero h1,
  body.internal-shell .dashboard-page .dashboard-hero h1 {
    font-size: clamp(1.45rem, 7.2vw, 1.9rem);
    line-height: 1.06;
  }

  body.internal-shell .buyer-dashboard-hero-copy h1,
  body.internal-shell .dashboard-intro h2 {
    margin-top: 6px;
  }

  body.internal-shell .buyer-dashboard-intro h2 {
    margin-top: 6px;
  }

  body.internal-shell .buyer-dashboard-hero-copy p,
  body.internal-shell .supplier-dashboard-page .buyers-hero .muted {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  body.internal-shell .buyer-dashboard-profile {
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
  }

  body.internal-shell .buyer-dashboard-summary-grid,
  body.internal-shell .buyer-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.internal-shell .buyer-dashboard-summary-item {
    padding: 10px;
    border-radius: 14px;
  }

  body.internal-shell .buyer-dashboard-summary-item strong {
    font-size: 0.92rem;
  }

  body.internal-shell .buyer-dashboard-metric {
    padding: 12px;
  }

  body.internal-shell .buyer-dashboard-metric strong {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    line-height: 1;
  }

  body.internal-shell .buyer-dashboard-grid,
  body.internal-shell .dashboard-page .dashboard-main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.internal-shell .buyer-dashboard-stack {
    gap: 12px;
  }

  body.internal-shell .buyer-dashboard-list {
    gap: 8px;
    margin-top: 12px;
  }

  body.internal-shell .buyer-dashboard-row,
  body.internal-shell .buyer-dashboard-row-compact {
    padding: 12px;
    gap: 10px;
  }

  body.internal-shell .buyer-dashboard-row {
    flex-direction: column;
  }

  body.internal-shell .buyer-dashboard-row-meta {
    justify-items: start;
    text-align: left;
  }

  body.internal-shell .buyer-dashboard-row strong {
    font-size: 0.92rem;
  }

  body.internal-shell .buyer-dashboard-row p {
    font-size: 0.8rem;
  }

  body.internal-shell .buyers-hero-actions {
    display: none !important;
  }

  body.internal-shell .supplier-dashboard-page .buyers-hero-actions {
    align-self: stretch !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100%;
    margin-top: 2px;
  }

  body.internal-shell .supplier-dashboard-page .buyers-hero-actions > a {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border-radius: 999px;
  }

  body.internal-shell .supplier-dashboard-page .buyers-hero-actions > a svg {
    width: 16px;
    height: 16px;
  }

  body.internal-shell .hero-notification-carousel-cta.md\:hidden {
    display: inline-flex !important;
  }

  body.internal-shell .hero-notification-carousel-viewport {
    min-height: 108px;
  }

  body.internal-shell .hero-notification-slide {
    gap: 5px;
  }

  body.internal-shell .hero-notification-slide h1 {
    font-size: 0.96rem;
  }

  body.internal-shell .hero-notification-slide p {
    font-size: 0.74rem;
    line-height: 1.32;
  }

  body.internal-shell .dashboard-notification-feed {
    padding: 12px;
    gap: 8px;
  }

  body.internal-shell .dashboard-notification-feed-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body.internal-shell .dashboard-notification-item {
    padding: 10px 11px;
  }

  .buyer-purchases-hero,
  .buyer-purchase-hero,
  .buyer-purchase-panel,
  .buyer-purchases-list-card {
    padding: 16px;
  }

  .buyer-purchase-snapshot {
    grid-template-columns: 1fr;
  }

  .buyer-purchase-quote-meta {
    grid-template-columns: 1fr;
  }

  .buyer-purchase-page .buyer-quote-card {
    padding: 16px;
  }

  .buyer-purchase-page .buyer-quote-card-top {
    flex-direction: column;
  }

  .buyer-purchase-page .buyer-quote-price-pill {
    align-self: flex-start;
  }

  .buyer-purchase-page .buyer-quote-meta-grid {
    grid-template-columns: 1fr;
  }

  .buyer-purchase-page .buyer-quote-card-footer {
    justify-content: flex-start;
  }

  .buyer-quote-confirm-grid {
    grid-template-columns: 1fr;
  }

  .buyer-quote-confirm-payment {
    grid-template-columns: 1fr;
  }

  .buyer-quote-confirm-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .buyer-purchase-form-grid {
    grid-template-columns: 1fr;
  }

  .buyer-purchase-actions,
  .buyer-quote-modal-actions {
    flex-direction: column;
  }

  .buyer-purchase-quantity {
    flex-direction: column;
    align-items: stretch;
  }

  .supplier-page .buyer-fields {
    grid-template-columns: 1fr;
  }

  .company-cnpj-cnae-row,
  .signup-cnpj-cnae-row {
    grid-template-columns: 1fr;
  }

  .vendor-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .route-grid-top,
  .route-day-grid,
  .route-reach-grid {
    grid-template-columns: 1fr;
  }

  .route-map-header {
    flex-direction: column;
  }

  .route-map-summary {
    justify-content: flex-start;
    text-align: left;
  }

  .route-map-container {
    min-height: 180px;
    border-radius: 14px;
  }

  .route-map-stops {
    justify-content: stretch;
  }

  .route-map-stop {
    flex: 1 1 min(100%, 220px);
    max-width: 100%;
  }

  .route-editor-head,
  .route-subhead {
    flex-direction: column;
    align-items: stretch;
  }

  .route-card {
    grid-template-columns: 1fr;
  }

  .route-card-actions,
  .route-editor-head-actions,
  .route-neighborhood-actions {
    justify-content: flex-start;
  }

  .vendor-row .vendor-order {
    width: 100%;
  }

  .vendor-actions {
    justify-content: flex-start;
  }

  .topbar,
  .content {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .workspace,
  .public-shell-wrap {
    width: min(100%, calc(100% - 18px));
    padding-inline: 0;
  }

  .topbar,
  .public-topbar,
  .section-head,
  .entity-head,
  .subsection-head {
    flex-direction: column;
    align-items: stretch;
  }

  .repeat-row {
    grid-template-columns: 1fr;
  }

  .card,
  .hero-card,
  .sidebar {
    padding: 16px;
  }

  .supplier-approved-buyers-page > .hero-card:has(.eyebrow-pill),
  .supplier-collab-page > .hero-card:has(.eyebrow-pill),
  .supplier-orders-page > .hero-card:has(.eyebrow-pill),
  .supplier-products-page > .hero-card:has(.eyebrow-pill),
  .supplier-routes-page > .hero-card:has(.eyebrow-pill),
  .supplier-special-prices-page > .hero-card:has(.eyebrow-pill),
  .supplier-users-page > .hero-card:has(.eyebrow-pill),
  .product-page > .hero-card:has(.eyebrow-pill) {
    padding-block: 16px;
    padding-inline: 16px;
  }

  body.internal-shell.supplier-shell .supplier-approved-buyers-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .supplier-collab-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .supplier-orders-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .supplier-products-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .supplier-routes-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .supplier-special-prices-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .supplier-users-page > .hero-card:has(.eyebrow-pill),
  body.internal-shell.supplier-shell .product-page > .hero-card:has(.eyebrow-pill) {
    padding: 16px !important;
  }

  .signup-grid {
    grid-template-columns: 1fr;
  }

  .signup-password {
    grid-column: auto;
  }

  .topbar-actions,
  .row-actions,
  .hero-actions {
    flex-direction: column;
  }

  .public-topbar > .btn.btn-ghost {
    display: none;
  }

  .public-topbar {
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .public-topbar .public-brand {
    margin-left: auto;
    margin-right: auto;
  }

  .collab-invite-row {
    grid-template-columns: 42px 1fr;
  }

  .collab-invite-meta,
  .collab-invite-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}
.table-total-row td {
  background: #f7fbff;
  font-weight: 700;
}

.winner-card {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  min-height: 160px;
}

.winner-status-card {
  width: 100%;
  padding: 0.6rem 0.7rem 0.55rem;
  border-radius: 16px;
  border: 1px solid #d8e3f0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 34, 56, 0.06);
  z-index: 5;
}

.winner-status-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6f85;
}

.winner-status-card strong {
  font-size: 0.92rem;
  line-height: 1.1;
  color: #1e9b53;
}

.winner-status-card strong.is-placeholder {
  font-size: 0.8rem;
  line-height: 1.05;
  white-space: nowrap;
}

.winner-card-body {
  display: grid;
  grid-template-columns: 150px 150px;
  gap: 0.9rem;
  align-items: start;
  justify-content: start;
}

.winner-image-wrap {
  width: 150px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: visible;
  position: relative;
  z-index: 20;
  align-self: start;
}

.winner-image {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
  border: 1px solid #d8e3f0;
  background: #fff;
  position: relative;
  top: 0;
  z-index: 30;
  margin-bottom: 0;
}

.winner-image-empty {
  background: linear-gradient(135deg, #eef3f9, #ffffff);
}

.winner-image-photo {
  object-fit: cover;
}

.winner-side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 150px;
}

.winner-price-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5d6f85;
}

.winner-price {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.7rem 0.55rem;
  border-radius: 16px;
  border: 1px solid #d8e3f0;
  background: rgba(255, 255, 255, 0.96);
  text-align: right;
  box-shadow: 0 8px 20px rgba(19, 34, 56, 0.04);
  position: relative;
  top: 0;
}

.winner-price-value {
  margin-top: 0.12rem;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
  color: #1e9b53;
}

.winner-price-value.is-placeholder {
  font-size: 0.8rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.winner-price-unit {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #5d6f85;
}
.collab-invite-meta,
.collab-invite-helper {
  display: none !important;
}

.collab-invite-row {
  align-items: start !important;
}
.dashboard-hero-pills {
  display: none;
}

.dashboard-hero-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -210px 0 18px;
  position: relative;
  z-index: 8;
}

.dashboard-hero-action-link {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 47, 78, 0.12);
  color: #0f2f4e;
  box-shadow: 0 10px 24px rgba(15, 47, 78, 0.12);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dashboard-hero-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 47, 78, 0.16);
  background: #ffffff;
}

.dashboard-kpis .dashboard-kpi:nth-child(4) .dashboard-kpi-value,
.dashboard-kpis .dashboard-kpi:nth-child(5) .dashboard-kpi-value {
  font-size: clamp(0.82rem, 0.86vw, 1.04rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-kpis .dashboard-kpi:nth-child(4) .dashboard-kpi-value.dashboard-kpi-value-money {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.internal-shell.internal-page-settings .dashboard-kpis .dashboard-kpi:nth-child(4) .dashboard-kpi-value {
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-hero-action-strip {
  display: none !important;
}

.dashboard-page {
  padding-top: 0.5rem;
}
/* Buyer public purchase detail aligned with admin purchase detail */
.buyer-public-detail-page {
    padding: 8px 0 28px;
}

.buyer-public-detail-shell {
    display: grid;
    gap: 14px;
}

.buyer-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: stretch;
    padding: 22px 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #14395f 0%, #1a4a74 48%, #124c73 100%);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(13, 39, 74, 0.18);
}

.buyer-public-hero-main {
    min-width: 0;
}

.buyer-public-kicker,
.buyer-public-section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.buyer-public-title {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #fff;
}

.buyer-public-description {
    margin: 0;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.55;
}

.buyer-public-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.buyer-public-meta strong {
    color: rgba(255, 255, 255, 0.98);
}

.buyer-public-meta-secondary {
    margin-top: 10px;
}

.buyer-public-hero-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.buyer-public-side-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.buyer-public-side-label,
.buyer-public-metric-label,
.buyer-public-info-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
}

.buyer-public-side-label {
    color: #a9b5c7;
    margin-bottom: 8px;
}

.buyer-public-side-value {
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 800;
    color: #16395c;
}

.buyer-public-side-value-accent {
    color: #139451;
}

.buyer-public-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.buyer-public-metric-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #d8e2ee;
    padding: 18px 14px 16px;
    min-height: 104px;
    box-shadow: 0 10px 28px rgba(17, 58, 106, 0.05);
}

.buyer-public-metric-label {
    color: #3b5d85;
    margin-bottom: 10px;
}

.buyer-public-metric-value {
    display: block;
    color: #152d49;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 900;
}

.buyer-public-summary-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 30px 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(208, 220, 232, 0.8);
}

.buyer-public-info-card {
    border-radius: 16px;
    background: #f5f7fa;
    border: 1px solid #d5dde7;
    padding: 16px 14px;
    min-height: 86px;
}

.buyer-public-info-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #112b49;
    margin-bottom: 6px;
}

.buyer-public-info-subtitle {
    color: #5e738d;
}

.buyer-public-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 14px;
    align-items: start;
}

.buyer-public-form-card,
.buyer-public-quotes-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 14px 32px rgba(17, 58, 106, 0.06);
    padding: 22px;
}

.buyer-public-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.buyer-public-section-header h2 {
    margin: 8px 0 0;
    font-size: 1.4rem;
    line-height: 1.15;
    color: #102842;
}

.buyer-public-section-badge {
    border-radius: 999px;
    border: 1px solid #d8e2ee;
    background: #f4f7fb;
    color: #16395c;
    padding: 10px 14px;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.buyer-public-field {
    display: grid;
    gap: 8px;
}

.buyer-public-field span {
    font-size: 0.88rem;
    font-weight: 800;
    color: #35577b;
}

.buyer-public-field em {
    font-style: normal;
    color: #6f8197;
    font-weight: 600;
}

.buyer-public-field-wide {
    grid-column: 1 / -1;
}

.buyer-public-field input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #d7e1ec;
    background: #f8fbfe;
    color: #0e2742;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
}

.buyer-public-field input:focus {
    border-color: #8ab6de;
    box-shadow: 0 0 0 4px rgba(42, 118, 182, 0.12);
    background: #fff;
}

.buyer-public-input-with-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.buyer-public-input-with-unit span {
    color: #16395c;
    font-weight: 800;
    white-space: nowrap;
}

.buyer-public-delivery-list {
    display: grid;
    gap: 10px;
}

.buyer-public-delivery-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.buyer-public-link-button,
.buyer-public-secondary-button,
.buyer-public-primary-button {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.buyer-public-link-button {
    background: transparent;
    color: #1d5f96;
    padding-inline: 6px;
}

.buyer-public-link-button:hover,
.buyer-public-secondary-button:hover,
.buyer-public-primary-button:hover {
    transform: translateY(-1px);
}

.buyer-public-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.buyer-public-primary-button {
    background: #1e8f4b;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(30, 143, 75, 0.18);
}

.buyer-public-secondary-button {
    background: #eef3f8;
    color: #16395c;
}

.buyer-public-help {
    margin: 0;
    color: #6c7f96;
    font-size: 0.92rem;
    line-height: 1.45;
}

.buyer-public-quote-list {
    display: grid;
    gap: 10px;
}

.buyer-public-quote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    border: 1px solid #d8e2ee;
    background: #f7fafc;
    padding: 14px 16px;
}

.buyer-public-quote-row strong {
    display: block;
    color: #102842;
}

.buyer-public-quote-row span {
    color: #6f8197;
    font-size: 0.9rem;
}

.buyer-public-empty {
    border-radius: 18px;
    border: 1px dashed #cfd9e6;
    padding: 18px;
    color: #6f8197;
    text-align: center;
    background: #fbfdff;
}

.buyer-public-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000000;
}

.buyer-public-modal.is-open {
    display: flex;
}

body.buyer-quote-modal-open .site-header,
body.buyer-quote-modal-open .landing-fixed-header {
    z-index: 1 !important;
}

body.buyer-quote-modal-open #sidebar,
body.buyer-quote-modal-open #mobile-overlay {
    z-index: 1 !important;
}

body.buyer-quote-modal-open #internal-main {
    position: relative;
    z-index: 0;
}

body.product-import-modal-open .site-header,
body.product-import-modal-open .landing-fixed-header {
    z-index: 1 !important;
    pointer-events: none;
    user-select: none;
}

body.product-import-modal-open #sidebar,
body.product-import-modal-open #mobile-overlay {
    z-index: 1 !important;
    pointer-events: none;
    user-select: none;
}

body.product-import-modal-open #internal-main {
    position: relative;
    z-index: 0;
}

body.buyer-collab-blocked-modal-open .site-header,
body.buyer-collab-blocked-modal-open .landing-fixed-header {
    z-index: 1 !important;
    pointer-events: none;
    user-select: none;
}

body.buyer-collab-blocked-modal-open #sidebar,
body.buyer-collab-blocked-modal-open #mobile-overlay {
    z-index: 1 !important;
    pointer-events: none;
    user-select: none;
}

body.buyer-collab-blocked-modal-open #internal-main {
    position: relative;
    z-index: 0;
}

.buyer-public-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 33, 0.5);
}

.buyer-public-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    border-radius: 24px;
    background: #ffffff;
    padding: 26px;
    box-shadow: 0 26px 70px rgba(4, 20, 40, 0.28);
}

.buyer-public-modal-dialog h3 {
    margin: 0 0 10px;
    color: #102842;
}

.buyer-public-modal-dialog p {
    margin: 0 0 18px;
    color: #5f738d;
    line-height: 1.5;
}

.buyer-quote-confirm-dialog {
    width: min(840px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 20px;
}

.buyer-quote-confirm-summary {
    display: grid;
    gap: 10px;
    margin: 12px 0 14px;
}

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

.buyer-quote-confirm-field {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.buyer-quote-confirm-field strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.buyer-quote-confirm-field span {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.buyer-quote-confirm-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.buyer-quote-confirm-payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 10px;
    margin-top: -4px;
}

.buyer-quote-confirm-payment select {
    min-height: 40px;
    margin-top: 4px;
    border-radius: 12px;
}

.buyer-quote-confirm-actions {
    margin-top: 14px;
}

.buyer-quote-confirm-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.buyer-quote-confirm-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: rgba(15, 47, 78, 0.04);
    border-bottom: 1px solid var(--line);
}

.buyer-quote-confirm-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    vertical-align: top;
}

.buyer-quote-confirm-table tbody tr:last-child td {
    border-bottom: 0;
}

.buyer-quote-confirm-table td:last-child,
.buyer-quote-confirm-table th:last-child {
    text-align: right;
}

.buyer-quote-confirm-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 47, 78, 0.04), rgba(31, 139, 83, 0.08));
    border: 1px solid rgba(31, 139, 83, 0.16);
}

.buyer-quote-confirm-total strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.buyer-quote-confirm-total span {
    display: block;
    margin-top: 4px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}

.buyer-finalized-page {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0 42px;
}

.buyer-finalized-document {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 47, 78, 0.08);
    padding: 22px 24px 24px;
}

.order-status-progress,
.order-screen-toolbar {
    margin: 0 0 14px;
}

.order-status-progress {
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 38px rgba(15, 47, 78, 0.07);
    padding: 18px 20px;
}

.order-status-progress__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.order-status-progress__eyebrow {
    margin: 0 0 4px;
    color: #607089;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.order-status-progress__header h2 {
    margin: 0;
    color: #172b43;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 900;
}

.order-status-progress__summary {
    min-width: 94px;
    border: 1px solid rgba(27, 78, 143, 0.16);
    border-radius: 16px;
    background: rgba(27, 78, 143, 0.06);
    padding: 9px 12px;
    text-align: right;
}

.order-status-progress__summary strong,
.order-status-progress__summary span {
    display: block;
}

.order-status-progress__summary strong {
    color: #1b4e8f;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1;
}

.order-status-progress__summary span {
    margin-top: 4px;
    color: #51657f;
    font-size: 0.75rem;
    font-weight: 800;
}

.order-status-progress__summary.is-cancelled {
    border-color: rgba(224, 63, 63, 0.28);
    background: rgba(224, 63, 63, 0.08);
}

.order-status-progress__summary.is-cancelled strong {
    color: #c6332f;
    font-size: 0.95rem;
}

.order-status-progress__bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.order-status-progress__bar-value {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1b4e8f, #1f8b53);
    animation: status-progress-load 520ms ease-out both;
}

.order-status-progress__bar.is-cancelled .order-status-progress__bar-value {
    background: #e03f3f;
}

.order-status-progress__steps-wrap {
    max-width: 100%;
    margin-top: 18px;
    padding-top: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.order-status-progress__steps-wrap::-webkit-scrollbar {
    display: none;
}

.order-status-progress__steps {
    display: grid;
    grid-auto-columns: minmax(118px, 1fr);
    grid-auto-flow: column;
    align-items: start;
    min-width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-status-progress__step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #66758c;
    text-align: center;
}

.order-status-progress__connector {
    position: absolute;
    top: 19px;
    left: calc(-50% + 19px);
    width: calc(100% - 38px);
    height: 2px;
    background: #dbe4ef;
}

.order-status-progress__step:first-child .order-status-progress__connector {
    display: none;
}

.order-status-progress__step.is-completed .order-status-progress__connector,
.order-status-progress__step.is-current .order-status-progress__connector {
    background: rgba(31, 139, 83, 0.42);
}

.order-status-progress__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #ffffff;
    color: #607089;
}

.order-status-progress__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-status-progress__step.is-completed .order-status-progress__icon {
    border-color: rgba(31, 139, 83, 0.2);
    background: #1f8b53;
    color: #ffffff;
}

.order-status-progress__step.is-current .order-status-progress__icon {
    border-color: rgba(27, 78, 143, 0.42);
    box-shadow: 0 0 0 5px rgba(27, 78, 143, 0.09);
    color: #1b4e8f;
}

.order-status-progress__step.is-cancelled .order-status-progress__icon {
    border-color: rgba(224, 63, 63, 0.3);
    background: #e03f3f;
    color: #ffffff;
}

.order-status-progress__label {
    max-width: 124px;
    color: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.25;
}

.order-status-progress__step.is-completed,
.order-status-progress__step.is-current {
    color: #172b43;
}

.order-status-progress__step.is-cancelled {
    color: #c6332f;
}

.order-screen-toolbar__content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.order-screen-toolbar__spacer {
    flex: 1 1 auto;
}

.order-screen-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.document-screen-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    padding: 0.65rem 1rem;
    color: #172b43;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.document-screen-action:focus-visible {
    outline: 3px solid rgba(27, 78, 143, 0.24);
    outline-offset: 2px;
}

.document-screen-action--primary {
    border-color: rgba(27, 78, 143, 0.24);
    background: #1b4e8f;
    color: #ffffff;
}

.document-screen-action--success {
    border-color: rgba(31, 139, 83, 0.24);
    background: #1f8b53;
    color: #ffffff;
}

.document-screen-action--danger-outline {
    border-color: rgba(224, 63, 63, 0.24);
    background: rgba(224, 63, 63, 0.06);
    color: #c6332f;
}

.document-screen-action--neutral {
    background: #ffffff;
    color: #51657f;
}

.document-screen-action--header {
    min-height: 40px;
    border-radius: 16px;
    padding: 0.58rem 1rem;
    font-size: 0.875rem;
}

.document-screen-action--icon {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.document-screen-action--icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.internal-header-action-form {
    display: inline-flex;
    margin: 0;
}

.document-screen-action[disabled],
.document-screen-action.is-loading {
    cursor: wait;
    opacity: 0.68;
}

.status-action-modal[hidden] {
    display: none;
}

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

.status-action-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.status-action-modal__panel {
    position: relative;
    width: min(440px, 100%);
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 47, 78, 0.2);
    padding: 22px;
}

.status-action-modal__panel h2 {
    margin: 0;
    color: #172b43;
    font-size: 1.18rem;
    font-weight: 950;
}

.status-action-modal__panel p {
    margin: 10px 0 0;
    color: #51657f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.status-action-modal__reason {
    display: block;
    margin-top: 14px;
}

.status-action-modal__reason span {
    display: block;
    margin-bottom: 6px;
    color: #607089;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-action-modal__reason textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 10px 12px;
    color: #172b43;
    font: inherit;
}

.status-action-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.dark .order-status-progress {
    border-color: #243244;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.dark .order-status-progress__header h2,
.dark .order-status-progress__step.is-completed,
.dark .order-status-progress__step.is-current,
.dark .status-action-modal__panel h2 {
    color: #f8fafc;
}

.dark .order-status-progress__eyebrow,
.dark .order-status-progress__summary span,
.dark .status-action-modal__panel p,
.dark .status-action-modal__reason span {
    color: #94a3b8;
}

.dark .order-status-progress__summary,
.dark .order-status-progress__icon,
.dark .document-screen-action--neutral,
.dark .status-action-modal__panel {
    border-color: #243244;
    background: #111827;
}

.dark .order-status-progress__bar,
.dark .order-status-progress__connector {
    background: #243244;
}

.dark .document-screen-action--neutral {
    color: #e2e8f0;
}

.dark .status-action-modal__reason textarea {
    border-color: #243244;
    background: #0f172a;
    color: #f8fafc;
}

@keyframes status-progress-load {
    from {
        transform: scaleX(0.2);
        transform-origin: left center;
    }
    to {
        transform: scaleX(1);
        transform-origin: left center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .order-status-progress__bar-value {
        animation: none;
    }
}

@media (max-width: 640px) {
    .order-status-progress {
        padding: 16px;
    }

    .order-status-progress__header {
        flex-direction: column;
    }

    .order-status-progress__summary {
        width: 100%;
        text-align: left;
    }

    .order-screen-toolbar__content,
    .order-screen-toolbar__actions,
    .order-screen-toolbar__actions form,
    .document-screen-action {
        width: 100%;
    }

    .order-screen-toolbar__actions {
        justify-content: stretch;
    }
}

@media print {
    .screen-only,
    .order-status-progress,
    .order-screen-toolbar,
    .document-screen-action,
    .status-action-modal {
        display: none !important;
    }
}

.buyer-finalized-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d9e3ef;
    text-align: center;
}

.buyer-finalized-brand {
    display: none;
}

.buyer-finalized-logo,
.buyer-finalized-footer-logo {
    display: block;
    width: auto;
    height: 48px;
    object-fit: contain;
}

.buyer-finalized-title-block {
    grid-column: 2;
    text-align: center;
    justify-self: center;
    margin: 0 auto;
}

.buyer-finalized-title-block h1 {
    margin: 0;
    color: #1b4e8f;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.buyer-finalized-title-block p {
    margin: 6px auto 0;
    max-width: 720px;
    color: #51657f;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
}

.buyer-finalized-status {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.buyer-finalized-box,
.buyer-finalized-delivery,
.buyer-finalized-table-section {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
}

.buyer-finalized-box {
    padding: 14px 16px;
    background: #fff;
    min-width: 0;
}

.buyer-finalized-box strong,
.buyer-finalized-delivery strong {
    display: block;
    margin-top: 4px;
    color: #172b43;
    font-size: 0.98rem;
    line-height: 1.35;
}

.buyer-finalized-box p,
.buyer-finalized-delivery p {
    margin: 2px 0 0;
    color: #4f6178;
    font-size: 0.85rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.buyer-finalized-label {
    display: block;
    color: #62748a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.buyer-finalized-delivery {
    margin-top: 16px;
    background: #f8fafc;
    padding: 0;
    overflow: hidden;
}

.buyer-finalized-strip-title {
    padding: 10px 14px;
    background: #e9edf2;
    color: #344a63;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.buyer-finalized-delivery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: 14px;
    padding: 14px 16px 16px;
}

.buyer-finalized-delivery-grid > div {
    min-width: 0;
}

.buyer-finalized-table-section {
    margin-top: 16px;
    overflow: hidden;
    background: #fff;
}

.buyer-finalized-observations {
    display: grid;
    gap: 10px;
    padding: 12px 16px 2px;
}

.buyer-finalized-observations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: stretch;
}

.buyer-finalized-observations-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
}

.buyer-finalized-observations-card.is-muted {
    background: #f8fafc;
}

.buyer-finalized-observations-card-title {
    margin: 0 0 2px;
    color: #172b43;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
}

.buyer-finalized-observations-line {
    margin: 0;
    color: #22364c;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.buyer-finalized-observations-line.is-hours {
    white-space: pre-line;
}

.buyer-finalized-email-line {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.buyer-finalized-observations-line strong {
    font-weight: 900;
}

@media (max-width: 760px) {
    .buyer-finalized-observations-grid {
        grid-template-columns: 1fr;
    }

    .buyer-finalized-observations-line.is-hours {
        white-space: pre-line;
    }

    .buyer-finalized-email-line {
        white-space: nowrap;
    }
}

.buyer-finalized-table-head {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #d9e3ef;
}

.buyer-finalized-table-head h2 {
    margin: 4px 0 0;
    color: #1a2f49;
    font-size: 1.08rem;
    font-weight: 900;
}

.buyer-finalized-table-wrap {
    overflow-x: auto;
}

.buyer-finalized-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

.buyer-finalized-table thead th {
    padding: 10px 12px;
    background: #f4f6f8;
    color: #203854;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #d9e3ef;
}

.buyer-finalized-table tbody td,
.buyer-finalized-table tfoot td {
    padding: 10px 12px;
    border-bottom: 1px solid #dfe7f1;
    color: #22364c;
    font-size: 0.87rem;
    vertical-align: top;
}

.buyer-finalized-table tbody td strong,
.buyer-finalized-table tfoot td strong {
    color: #102842;
    font-weight: 900;
}

.buyer-finalized-table tbody td span {
    display: block;
    margin-top: 2px;
    color: #6a7d93;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.buyer-finalized-table tfoot td {
    background: #f7fafc;
    border-bottom: 0;
    font-weight: 800;
}

.buyer-finalized-total-cell {
    text-align: right;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    background: #f7fafc;
}

.buyer-finalized-table .is-center {
    text-align: center;
}

.buyer-finalized-table .is-right {
    text-align: right;
}

.buyer-finalized-total-label {
    display: inline-block;
    margin-right: 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #51657f;
}

.buyer-finalized-total-value {
    display: inline-block;
    color: #173964;
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.buyer-finalized-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: 1280px;
    margin: 8px auto 0;
    padding: 28px 40px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-sizing: border-box;
}

.buyer-finalized-footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 0;
}

.buyer-finalized-footer-logos-left {
    justify-content: flex-start;
}

.buyer-finalized-footer-logos-right {
    justify-content: flex-end;
}

.buyer-finalized-partner-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.footer-logo-small {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.footer-logo-sebrae {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-logos-left .footer-logo-small,
.buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-logos-right .footer-logo-small {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-logos-left .footer-logo-sebrae {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.buyer-finalized-footer .buyer-finalized-footer-logos-left img,
.buyer-finalized-footer .buyer-finalized-footer-logos-right img,
.buyer-finalized-footer .buyer-finalized-footer-brand img {
    width: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.buyer-finalized-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    flex: 0 0 auto;
}

.buyer-finalized-footer-brand span {
    font-size: 0.84rem;
    line-height: 1;
}

.buyer-finalized-footer-logo {
    height: auto;
    width: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.footer-logo-compreup {
    height: auto;
    width: auto;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-brand .footer-logo-compreup {
    height: 44px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .buyer-finalized-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .buyer-finalized-brand,
    .buyer-finalized-status,
    .buyer-finalized-title-block {
        justify-self: center;
        grid-column: auto;
    }

    .buyer-finalized-top-grid,
    .buyer-finalized-delivery-grid {
        grid-template-columns: 1fr;
    }

    .buyer-finalized-page {
        width: min(100%, calc(100% - 16px));
    }

    .buyer-finalized-footer-logos-left,
    .buyer-finalized-footer-logos-right,
    .buyer-finalized-footer-brand {
        justify-content: center;
    }

    .buyer-finalized-footer {
        flex-direction: column;
        align-items: center;
        padding: 24px 20px;
        gap: 16px;
        text-align: center;
    }

    .buyer-finalized-footer-logos {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .buyer-finalized-footer-brand {
        order: 2;
    }

    .buyer-finalized-footer-logos-left {
        order: 1;
    }

    .buyer-finalized-footer-logos-right {
        order: 3;
    }

    .buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-logos-left img,
    .buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-logos-right img,
    .buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-brand img {
        height: 52px;
        max-height: none;
    }

    .buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-logos-left .footer-logo-sebrae {
        height: 40px;
        max-height: none;
    }

    .buyer-finalized-footer:not(.pdf-footer-compact) .buyer-finalized-footer-brand .footer-logo-compreup {
        height: 36px;
        max-height: none;
    }
}

.buyer-pref-finish-dialog {
    width: min(380px, calc(100% - 24px));
    padding: 24px 22px 22px;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.buyer-pref-finish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f9d55, #0f7d45);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 125, 69, 0.24);
}

.buyer-pref-finish-dialog h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.buyer-pref-finish-dialog p {
    margin: 0;
    font-size: 0.92rem;
}

.buyer-pref-finish-loading {
    width: min(180px, 100%);
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: #e7eef6;
}

.buyer-pref-finish-loading span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f7d45, #55c595);
    animation: buyerPrefFinishPulse 1.2s ease-in-out infinite;
}

@keyframes buyerPrefFinishPulse {
    0%, 100% { transform: translateX(-18%); opacity: 0.75; }
    50% { transform: translateX(18%); opacity: 1; }
}

.buyer-public-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.buyer-delivery-row.is-date-invalid {
    border-radius: 18px;
    background: rgba(180, 35, 24, 0.05);
}

.buyer-delivery-row.is-date-invalid input[type="date"] {
    border-color: #b42318;
    background: #fff7f6;
    color: #b42318;
}

.buyer-delivery-date {
    display: grid;
    gap: 6px;
}

.buyer-delivery-date-label {
    min-height: 1rem;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #5f738d;
}

.buyer-delivery-date-label:empty {
    display: none;
}

.buyer-delivery-date-label.is-date-invalid {
    color: #b42318;
    font-weight: 600;
}

.buyer-confirm-date-line {
    line-height: 1.45;
}

.buyer-confirm-date-line.is-date-invalid {
    color: #b42318;
    font-weight: 600;
}

.buyer-cotado-hero {
    align-items: stretch;
}

.buyer-cotado-photo-card {
    padding: 12px;
}

.buyer-cotado-photo-wrap {
    width: 100%;
    min-height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buyer-cotado-photo {
    width: 100%;
    height: 164px;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(216, 226, 238, 0.9);
}

.buyer-cotado-photo-empty {
    background: linear-gradient(135deg, #eef3f9, #ffffff);
}

.buyer-decision-card {
    display: grid;
    gap: 14px;
}

.buyer-decision-head {
    align-items: center;
}

.buyer-decision-head-copy {
    min-width: 0;
}

.buyer-decision-head-copy p {
    margin: 4px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.buyer-decision-head-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-left: auto;
}

.buyer-decision-whatsapp {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(31, 139, 83, 0.18);
    background: linear-gradient(180deg, #ecfff3 0%, #d9f7e3 100%);
    box-shadow: 0 8px 18px rgba(31, 139, 83, 0.12);
    flex: 0 0 auto;
    margin-top: 2px;
}

.buyer-decision-whatsapp-inline {
    width: 32px;
    height: 32px;
    margin-top: 0;
    border-radius: 10px;
}

.buyer-decision-whatsapp:hover {
    transform: translateY(-1px);
}

.buyer-decision-whatsapp-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.buyer-decision-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}

.buyer-decision-meta div {
    display: grid;
    gap: 4px;
}

.buyer-decision-meta strong {
    color: #35577b;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.buyer-decision-meta span {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 900px) {
    .buyer-decision-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .buyer-decision-meta {
        grid-template-columns: 1fr;
    }

    .buyer-decision-head {
        align-items: flex-start;
    }
}

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

.buyer-group-pick {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.buyer-group-pick-head {
    margin-top: 0;
}

.buyer-group-chip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.buyer-group-chip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.buyer-group-chip input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.buyer-group-chip span {
    display: grid;
    gap: 4px;
}

.buyer-group-chip small {
    color: var(--muted);
}

.buyer-group-empty {
    margin-top: 10px;
}

.buyers-group-card {
    padding: 22px;
}

.buyers-group-form {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.buyers-group-form label {
    display: grid;
    gap: 8px;
}

.buyers-group-form input {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
}

.buyers-group-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.buyers-group-member {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.buyers-group-member input {
    width: 16px;
    height: 16px;
}

.buyers-group-members .buyer-group-checkbox {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 5px !important;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.buyers-group-members .buyer-group-checkbox:checked {
    border-color: #2563eb !important;
    background-color: #2563eb !important;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.9 3.05L4.55 7.4L2.1 4.95' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

.buyers-group-members .buyer-group-checkbox:focus,
.buyers-group-members .buyer-group-checkbox:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16) !important;
}

.buyers-group-actions {
    display: flex;
    justify-content: flex-end;
}

.buyers-group-actions [data-buyer-group-cancel-edit][hidden],
.buyers-group-actions [data-buyer-group-cancel-edit].hidden {
    display: none !important;
}

.buyer-group-row-actions,
.buyer-group-row-actions form {
    display: flex;
    align-items: center;
}

.buyer-group-row-actions {
    align-self: flex-start;
    line-height: 1;
}

.buyer-group-row-actions form {
    margin: 0;
    padding: 0;
}

.buyer-group-row-actions .btn-small {
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    line-height: 1;
}

.buyers-group-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.buyer-group-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.buyer-group-row-main {
    min-width: 0;
}

.buyer-group-row-title {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.buyer-group-row p {
    margin: 8px 0 0;
    color: var(--muted);
}

.btn-whatsapp {
    color: #ffffff;
    background: linear-gradient(180deg, #25d366 0%, #1fa855 100%);
    border-color: #1fa855;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.16);
}

.btn-whatsapp:hover {
    background: linear-gradient(180deg, #2dde70 0%, #1f9f52 100%);
}

.btn-icon-whatsapp {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M20.5 3.6A10.2 10.2 0 0 0 12.1 0C6.5 0 2 4.5 2 10.1c0 1.9.5 3.7 1.5 5.3L2 24l8.8-1.5c1.5.8 3.2 1.2 4.9 1.2 5.6 0 10.1-4.5 10.1-10.1 0-2.7-1.1-5.3-3-7.2Zm-8.4 17.1c-1.6 0-3.1-.4-4.4-1.3l-.3-.2-5.2.9.9-5.1-.2-.3a8.4 8.4 0 0 1-1.3-4.5c0-4.6 3.8-8.3 8.4-8.3 2.2 0 4.2.9 5.8 2.4a8.2 8.2 0 0 1 2.5 5.9c0 4.6-3.7 8.4-8.2 8.4Zm4.7-6.2c-.3-.2-1.8-.9-2-.9-.3-.1-.5-.2-.8.2-.2.3-.7.9-.8 1.1-.1.2-.3.2-.6.1-.3-.2-1.2-.4-2.3-1.4-.9-.8-1.4-1.8-1.5-2.1-.1-.3 0-.5.1-.7.1-.1.2-.3.3-.4.1-.1.2-.3.3-.5.1-.2 0-.4 0-.6-.1-.2-.8-1.8-1.1-2.5-.3-.7-.6-.6-.8-.6h-.7c-.2 0-.6.1-.9.4-.3.3-1.1 1-1.1 2.5s1.1 2.9 1.3 3.1c.2.2 2.1 3.4 5.2 4.7.7.3 1.3.5 1.8.7.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2.1-1.4.3-.7.3-1.3.2-1.4-.1-.1-.3-.2-.6-.4Z'/%3E%3C/svg%3E");
}

@media (max-width: 1120px) {
    .buyer-public-hero,
    .buyer-public-content-grid {
        grid-template-columns: 1fr;
    }

    .buyer-public-metrics,
    .buyer-public-summary-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .signup-onboarding {
        padding: calc(var(--header-height, 86px) + 24px) 14px 42px;
    }

    .signup-wizard-card {
        min-height: auto;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .signup-role-grid,
    .signup-company-fields {
        grid-template-columns: 1fr;
    }

    .signup-role-card {
        min-height: 168px;
    }

    .signup-step-actions,
    .signup-submit-row {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .signup-step-actions .btn,
    .signup-step-actions button,
    .signup-submit-row .btn,
    .signup-submit-row button {
        width: 100%;
        justify-content: center;
    }

    .buyer-public-hero,
    .buyer-public-form-card,
    .buyer-public-quotes-card,
    .buyer-public-summary-panel {
        padding: 18px;
    }

    .buyer-public-metrics,
    .buyer-public-summary-panel,
    .buyer-public-form-grid {
        grid-template-columns: 1fr;
    }

    .buyer-public-section-header,
    .buyer-public-form-actions,
    .buyer-public-delivery-row,
    .buyer-public-quote-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .buyer-public-modal-actions {
        flex-direction: column;
    }

    .buyer-cotado-photo-wrap {
        min-height: 140px;
    }

    .buyer-cotado-photo {
        height: 140px;
    }
}

/* Landing helpers for the v2-style home only */
.carousel-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: clamp(240px, 29.5vw, 460px);
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 24px 60px -38px rgba(15, 47, 78, 0.42);
}

.carousel-container > div[data-carousel-item] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-container picture,
.carousel-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-container img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .carousel-container {
    aspect-ratio: 1080 / 675;
    min-height: 0;
    height: auto;
    border-radius: 0;
  }

  .carousel-container img {
    object-fit: cover;
    object-position: center center;
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.animate-scroll {
  display: flex;
  animation: scroll 40s linear infinite;
  will-change: transform;
}

.whatsapp-icon {
  position: fixed !important;
  right: -700px !important;
  bottom: 28px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 9999px;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(15, 47, 78, 0.24));
}

.whatsapp-icon a {
  display: block;
}

.whatsapp-icon img {
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: block;
  object-fit: cover;
}

.custom-promo-bg {
  background-color: #213c78;
  background-image: linear-gradient(90deg, #213c78 0%, #209a99 100%);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

body.landing-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

body.landing-shell .public-content > * {
  width: 100% !important;
}

@media only screen and (max-width: 569px) {
  .whatsapp-icon {
    inset: auto -150px 20px auto !important;
    right: -150px !important;
    left: auto !important;
    top: auto !important;
    width: 52px;
    height: 52px;
  }

  .whatsapp-icon img {
    width: 52px;
    height: 52px;
  }
}

/* Internal Tailwind shell helpers */
body.internal-shell .site-header,
body.internal-shell .landing-fixed-header {
  position: fixed;
  top: var(--header-inset);
  left: var(--header-inset);
  right: var(--header-inset);
  z-index: 99999;
}

body.internal-shell .landing-header-shell {
  position: relative;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 47, 78, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 44px -32px rgba(15, 47, 78, 0.36);
}

body.internal-shell .landing-header-inner {
  padding: 12px 20px;
}

body.internal-shell .landing-brand-logo {
  max-height: 38px;
}

body.internal-shell .internal-menu-toggle {
  color: #6b7280;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.internal-shell .internal-menu-toggle:hover {
  color: #003882;
  background: rgba(15, 47, 78, 0.06);
}

body.internal-shell .internal-menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 56, 130, 0.18);
}

body.internal-shell .internal-header-title-gradient {
  background: linear-gradient(90deg, #003882 0%, #004b9c 42%, #359D9E 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.internal-shell #sidebar {
  left: var(--header-inset);
  top: 96px;
  bottom: var(--header-inset);
  border-radius: 28px;
  border: 1px solid rgba(15, 47, 78, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px -32px rgba(15, 47, 78, 0.36);
}

body.internal-shell #mobile-overlay {
  top: 96px;
  left: var(--header-inset);
  right: var(--header-inset);
  bottom: var(--header-inset);
  border-radius: 28px;
}

body.internal-shell #internal-main {
  margin-left: 0;
  padding-left: calc(265px);
}

body.internal-shell #internal-main.md\:ml-0 {
  padding-left: 0;
}

@media (max-width: 767.98px) {
  body.internal-shell #sidebar {
    left: var(--header-inset);
    right: var(--header-inset);
    width: auto;
    top: 96px;
    bottom: var(--header-inset);
  }

  body.internal-shell #internal-main {
    padding-left: 0;
  }
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.42);
  border-radius: 20px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(75, 85, 99, 0.55);
}

.internal-shell .internal-nav-link,
.internal-shell .internal-subnav-link {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 0.75rem;
  color: rgb(75 85 99);
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.internal-shell .internal-cifrao-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/cifrao.svg") no-repeat center / contain;
  mask: url("/cifrao.svg") no-repeat center / contain;
  flex: 0 0 1.25rem;
}

.internal-shell .internal-nav-link {
  padding: 0.75rem 1rem;
}

.internal-shell .internal-subnav-link {
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
}

.internal-shell .internal-collab-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('/share.png') center / contain no-repeat;
  mask: url('/share.png') center / contain no-repeat;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}

.internal-shell .internal-forn-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('/forn.svg') center / contain no-repeat;
  mask: url('/forn.svg') center / contain no-repeat;
  opacity: 1;
  transform: none;
}

.internal-shell .internal-compradores-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('/comprador.svg') center / contain no-repeat;
  mask: url('/comprador.svg') center / contain no-repeat;
  opacity: 1;
  transform: none;
}

.internal-shell .internal-saving-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-block;
  background: transparent url('/saving.svg?v=202606261305') center / contain no-repeat;
  flex: 0 0 1.75rem;
  filter: brightness(0) saturate(100%) invert(34%) sepia(13%) saturate(695%) hue-rotate(176deg) brightness(88%) contrast(84%);
  opacity: 1;
  transform: none;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.internal-shell .internal-nav-link:hover,
.internal-shell .internal-subnav-link:hover {
  background: rgba(249, 250, 251, 0.95);
  color: #003882;
}

.internal-shell .internal-nav-link:hover .internal-cifrao-icon,
.internal-shell .internal-nav-link.is-active .internal-cifrao-icon {
  background-color: #003882;
}

.internal-shell .internal-nav-link:hover .internal-saving-icon,
.internal-shell .internal-nav-link.is-active .internal-saving-icon {
  background-color: transparent;
  filter: brightness(0) saturate(100%) invert(16%) sepia(100%) saturate(2449%) hue-rotate(202deg) brightness(87%) contrast(101%);
}

.internal-shell .internal-nav-link.is-active,
.internal-shell .internal-subnav-link.is-active {
  background: rgba(0, 56, 130, 0.06);
  color: #003882;
}

.dark .internal-shell .internal-nav-link,
.dark .internal-shell .internal-subnav-link {
  color: rgb(156 163 175);
}

.dark .internal-shell .internal-nav-link:hover,
.dark .internal-shell .internal-subnav-link:hover {
  background: rgba(55, 65, 81, 0.55);
  color: #7CE495;
}

.dark .internal-shell .internal-nav-link:hover .internal-cifrao-icon,
.dark .internal-shell .internal-nav-link.is-active .internal-cifrao-icon {
  background-color: #7CE495;
}

.dark .internal-shell .internal-nav-link:hover .internal-saving-icon,
.dark .internal-shell .internal-nav-link.is-active .internal-saving-icon {
  background-color: transparent;
  filter: brightness(0) saturate(100%) invert(83%) sepia(42%) saturate(559%) hue-rotate(72deg) brightness(97%) contrast(91%);
}

.dark .internal-shell .internal-nav-link.is-active,
.dark .internal-shell .internal-subnav-link.is-active {
  background: rgba(0, 56, 130, 0.20);
  color: #7CE495;
}

.internal-shell [data-sidebar-group-toggle][aria-expanded="true"] .group-caret {
  transform: rotate(180deg);
}

.internal-shell .card,
.internal-shell .buyer-panel,
.internal-shell .buyers-list-card,
.internal-shell .buyers-filter-card,
.internal-shell .buyer-dashboard-panel,
.internal-shell .buyer-purchase-panel {
  border-radius: 1rem;
  border: 1px solid rgb(229 231 235);
  background: rgb(255 255 255);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dark .internal-shell .card,
.dark .internal-shell .buyer-panel,
.dark .internal-shell .buyers-list-card,
.dark .internal-shell .buyers-filter-card,
.dark .internal-shell .buyer-dashboard-panel,
.dark .internal-shell .buyer-purchase-panel {
  border-color: rgb(55 65 81);
  background: rgb(31 41 55);
}

.internal-shell .buyers-filter-card,
.internal-shell .buyers-list-head,
.internal-shell .section-head {
  background: rgba(249, 250, 251, 0.5);
}

.internal-shell .buyer-hero .section-head,
.internal-shell .buyer-hero .buyer-hero-head {
  background: transparent !important;
}

.dark .internal-shell .buyers-filter-card,
.dark .internal-shell .buyers-list-head,
.dark .internal-shell .section-head {
  background: rgba(31, 41, 55, 0.5);
}

.dark .internal-shell .buyer-hero .section-head,
.dark .internal-shell .buyer-hero .buyer-hero-head {
  background: transparent !important;
}

.internal-shell .buyers-filter-card.embedded-filter-card,
.internal-shell .embedded-filter-card {
  padding: 14px 22px 8px 22px;
  margin: 0 0 12px;
  border: 0 !important;
  border-top: 1px solid #eef2f7 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.dark .internal-shell .buyers-filter-card.embedded-filter-card,
.dark .internal-shell .embedded-filter-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(55, 65, 81, 0.7) !important;
  box-shadow: none !important;
}

body.internal-shell .buyers-page .embedded-filter-card,
body.internal-shell .suppliers-page .embedded-filter-card,
body.internal-shell .products-page .embedded-filter-card {
  padding-left: 0 !important;
}

.internal-shell input,
.internal-shell select,
.internal-shell textarea {
  border-radius: 0.75rem;
}

.internal-shell input:focus,
.internal-shell select:focus,
.internal-shell textarea:focus {
  outline: 2px solid rgba(0, 56, 130, 0.25);
  border-color: #003882;
}

.internal-shell .buyer-row,
.internal-shell .collab-row,
.internal-shell .supplier-row,
.internal-shell .product-row,
.internal-shell tbody tr {
  transition: background 0.16s ease;
}

.internal-shell .buyer-row:hover,
.internal-shell .collab-row:hover,
.internal-shell .supplier-row:hover,
.internal-shell .product-row:hover,
.internal-shell tbody tr:hover {
  background: rgba(249, 250, 251, 0.85);
}

.dark .internal-shell .buyer-row:hover,
.dark .internal-shell .collab-row:hover,
.dark .internal-shell .supplier-row:hover,
.dark .internal-shell .product-row:hover,
.dark .internal-shell tbody tr:hover {
  background: rgba(55, 65, 81, 0.45);
}

.internal-shell .hero-card,
.internal-shell .dashboard-hero,
.internal-shell .buyers-hero,
.internal-shell .buyer-hero,
.internal-shell .buyer-dashboard-hero,
.internal-shell .buyer-purchases-hero,
.internal-shell .buyer-purchase-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  color: #fff;
  background: linear-gradient(90deg, #003882 0%, #004b9c 42%, #359D9E 100%) !important;
  box-shadow: 0 18px 44px rgba(0, 56, 130, 0.16);
}

body.internal-shell.supplier-shell .supplier-approved-buyers-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .supplier-collab-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .supplier-orders-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .supplier-products-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .supplier-routes-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .supplier-special-prices-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .supplier-users-page > .hero-card:has(.eyebrow-pill),
body.internal-shell.supplier-shell .product-page > .hero-card:has(.eyebrow-pill) {
  padding: 14px !important;
}

.internal-shell .hero-card::before,
.internal-shell .dashboard-hero::before,
.internal-shell .buyers-hero::before,
.internal-shell .buyer-hero::before,
.internal-shell .buyer-dashboard-hero::before,
.internal-shell .buyer-purchases-hero::before,
.internal-shell .buyer-purchase-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 50%, rgba(255, 255, 255, 0.16), transparent 23%),
    radial-gradient(circle at 100% 0%, rgba(124, 228, 149, 0.14), transparent 28%);
}

.internal-shell .hero-card::after,
.internal-shell .dashboard-hero::after,
.internal-shell .buyers-hero::after,
.internal-shell .buyer-hero::after,
.internal-shell .buyer-dashboard-hero::after,
.internal-shell .buyer-purchases-hero::after,
.internal-shell .buyer-purchase-hero::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -2.5rem;
  width: 13rem;
  height: 13rem;
  pointer-events: none;
  opacity: 0.12;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13 5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-8 2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z'/%3E%3C/svg%3E");
}

.internal-shell .hero-card > *,
.internal-shell .dashboard-hero > *,
.internal-shell .buyers-hero > *,
.internal-shell .buyer-hero > *,
.internal-shell .buyer-dashboard-hero > *,
.internal-shell .buyer-purchases-hero > *,
.internal-shell .buyer-purchase-hero > * {
  position: relative;
  z-index: 1;
}

.internal-shell .hero-card h1,
.internal-shell .hero-card h2,
.internal-shell .hero-card h3,
.internal-shell .dashboard-hero h1,
.internal-shell .dashboard-hero h2,
.internal-shell .buyers-hero h1,
.internal-shell .buyers-hero h2,
.internal-shell .buyer-hero h1,
.internal-shell .buyer-hero h2,
.internal-shell .buyer-dashboard-hero h1,
.internal-shell .buyer-purchases-hero h1,
.internal-shell .buyer-purchase-hero h1 {
  color: #fff !important;
}

.internal-shell .buyer-hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.internal-shell .buyer-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.internal-shell .buyer-hero .muted {
  margin: 0;
  line-height: 1.45;
}

.internal-shell .hero-card p,
.internal-shell .hero-card .muted,
.internal-shell .dashboard-hero p,
.internal-shell .dashboard-hero .muted,
.internal-shell .buyers-hero p,
.internal-shell .buyers-hero .muted,
.internal-shell .buyer-hero p,
.internal-shell .buyer-hero .muted,
.internal-shell .buyer-dashboard-hero p,
.internal-shell .buyer-purchases-hero p,
.internal-shell .buyer-purchase-hero p {
  color: rgba(219, 234, 254, 0.94) !important;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 172px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(90deg, #003882 0%, #064a92 42%, #359d9e 100%) !important;
  box-shadow: 0 18px 34px rgba(0, 56, 130, 0.16);
}

body.internal-page-dashboard .dashboard-page .dashboard-hero::before {
  background:
    radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 96% 14%, rgba(124, 228, 149, 0.12), transparent 26%);
}

body.internal-page-dashboard .dashboard-page .dashboard-hero::after {
  right: -12px;
  bottom: -48px;
  width: 260px;
  height: 260px;
  opacity: 0.16;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.internal-page-dashboard .dashboard-page .dashboard-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero p {
  max-width: 560px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero-export {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 168px;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #003882;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 26, 61, 0.14);
}

body.internal-page-dashboard .dashboard-page .dashboard-hero-export-button:hover {
  transform: translateY(-2px);
  color: #003882;
  box-shadow: 0 20px 40px rgba(0, 26, 61, 0.18);
}

body.internal-shell.supplier-shell .hero-card .dashboard-hero-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffffff !important;
  color: #003882 !important;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 26, 61, 0.14);
}

body.internal-shell.supplier-shell .hero-card .dashboard-hero-export-button:hover {
  transform: translateY(-2px);
  color: #003882 !important;
  box-shadow: 0 20px 40px rgba(0, 26, 61, 0.18);
}

body.internal-shell.buyer-shell .hero-card .dashboard-hero-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffffff !important;
  color: #003882 !important;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 26, 61, 0.14);
}

body.internal-shell.buyer-shell .hero-card .dashboard-hero-export-button:hover {
  transform: translateY(-2px);
  color: #003882 !important;
  box-shadow: 0 20px 40px rgba(0, 26, 61, 0.18);
}

body.internal-shell.buyer-shell .buyer-orders-new-order-button,
body.internal-shell.buyer-shell .buyer-orders-new-order-button:visited,
body.internal-shell.buyer-shell .buyer-orders-new-order-button:hover,
body.internal-shell.buyer-shell .buyer-orders-new-order-button:focus {
  color: #003882 !important;
}

body.internal-shell.buyer-shell.dark .buyer-orders-new-order-button,
body.internal-shell.buyer-shell.dark .buyer-orders-new-order-button:visited,
body.internal-shell.buyer-shell.dark .buyer-orders-new-order-button:hover,
body.internal-shell.buyer-shell.dark .buyer-orders-new-order-button:focus {
  color: #7CE495 !important;
}

body.internal-shell.buyer-shell .buyer-orders-filter-button,
body.internal-shell.buyer-shell .buyer-orders-filter-button:hover,
body.internal-shell.buyer-shell .buyer-orders-filter-button:focus {
  background: #1f8b53 !important;
  border: 1px solid #1f8b53 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(31, 139, 83, 0.18);
}

body.internal-shell.buyer-shell .buyer-orders-filter-button:hover {
  background: #1a7746 !important;
  border-color: #1a7746 !important;
}

body.internal-shell.buyer-shell .buyer-orders-search-field .buyer-orders-search-input {
  padding-left: 48px !important;
}

body.internal-shell.buyer-shell .buyers-page .buyers-hero-actions > .status-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.internal-shell.buyer-shell.dark .buyers-page .buyers-hero-actions > .status-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.internal-shell.buyer-shell .buyer-purchase-page .buyer-collab-special-row {
  border-color: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 12px 24px rgba(239, 68, 68, 0.08);
}

body.internal-shell.buyer-shell.dark .buyer-purchase-page .buyer-collab-special-row,
body.internal-shell.buyer-shell.dark .buyer-purchase-page .buyer-collab-special-row * {
  border-color: rgba(248, 113, 113, 0.32) !important;
}

.store-order-row {
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.store-order-row:hover > td {
  background: rgba(248, 250, 252, 0.82);
}

.store-order-recurring-row,
.store-order-recurring-row:hover {
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.78);
}

.store-order-recurring-row > td,
.store-order-recurring-row:hover > td {
  background: #fffbeb !important;
}

.store-order-recurring-row > td:first-child {
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.78);
}

.dark .store-order-recurring-row > td,
.dark .store-order-recurring-row:hover > td,
body.dark .store-order-recurring-row > td,
body.dark .store-order-recurring-row:hover > td {
  background: rgba(120, 53, 15, 0.24) !important;
}

.store-order-recurring-chip {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: #fef3c7;
  padding: 0.25rem 0.625rem;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.dark .store-order-recurring-chip,
body.dark .store-order-recurring-chip {
  border-color: rgba(251, 191, 36, 0.36);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.buyer-order-status-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.buyer-order-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.buyer-order-status-pendente {
  background: #fef3c7;
  border-color: #fde68a;
  color: #a16207;
}

.dark .buyer-order-status-pendente {
  background: rgba(113, 63, 18, 0.4);
  border-color: #78350f;
  color: #fbbf24;
}

.buyer-order-status-pendente::before {
  background: #eab308;
}

.buyer-order-status-aceito {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

.dark .buyer-order-status-aceito {
  background: rgba(19, 78, 74, 0.4);
  border-color: #134e4a;
  color: #5eead4;
}

.buyer-order-status-aceito::before {
  background: #14b8a6;
}

.buyer-order-status-faturado {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.dark .buyer-order-status-faturado {
  background: rgba(30, 58, 138, 0.4);
  border-color: #1e3a8a;
  color: #60a5fa;
}

.buyer-order-status-faturado::before {
  background: #3b82f6;
}

.buyer-order-status-em-entrega {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.dark .buyer-order-status-em-entrega {
  background: rgba(76, 29, 149, 0.35);
  border-color: #4c1d95;
  color: #c4b5fd;
}

.buyer-order-status-em-entrega::before {
  background: #8b5cf6;
}

.buyer-order-status-entregue {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
}

.dark .buyer-order-status-entregue {
  background: rgba(20, 83, 45, 0.4);
  border-color: #14532d;
  color: #4ade80;
}

.buyer-order-status-entregue::before {
  background: #22c55e;
}

.buyer-order-status-cancelado {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.dark .buyer-order-status-cancelado {
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(127, 29, 29, 0.5);
  color: #f87171;
}

.buyer-order-status-cancelado::before {
  background: #ef4444;
}

.buyer-order-status-neutro {
  background: #eef2f7;
  border-color: #dbe4ef;
  color: #475569;
}

.dark .buyer-order-status-neutro {
  background: rgba(51, 65, 85, 0.5);
  border-color: #334155;
  color: #cbd5e1;
}

.buyer-order-status-neutro::before {
  background: #64748b;
}

body.internal-page-dashboard .dashboard-page .dashboard-hero-cart {
  display: none;
}

@media (max-width: 760px) {
  body.internal-page-dashboard .dashboard-page .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 20px;
  }

  body.internal-page-dashboard .dashboard-page .dashboard-hero-export {
    justify-content: flex-start;
    min-width: 0;
  }
}

.cotacao-page .hero-card,
.cotado-page .hero-card,
.products-page .buyers-hero,
.buyers-page .buyers-hero,
.suppliers-page .buyers-hero {
  margin-top: 6px !important;
}

body.internal-shell.supplier-shell .supplier-collab-page,
body.internal-shell.supplier-shell .supplier-settings-page {
  width: min(1240px, calc(100% - 40px)) !important;
  margin: -6px auto 24px !important;
  gap: 12px !important;
}

body.internal-shell.supplier-shell .supplier-settings-page {
  margin: 0 auto 24px !important;
}

body.internal-shell.supplier-shell .supplier-settings-page > .supplier-settings-hero-offset {
  margin-top: -6px !important;
}

body.internal-shell.supplier-shell .supplier-collab-page > .buyers-hero {
  margin-top: 0 !important;
}

body.internal-shell.supplier-shell .supplier-collab-page > .hero-card + .buyers-list-card,
body.internal-shell.supplier-shell .supplier-settings-page > .hero-card + form,
body.internal-shell.supplier-shell .supplier-settings-page > .alert + form {
  margin-top: 12px !important;
}

body.internal-shell.supplier-shell.internal-page-content .supplier-approved-buyers-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .supplier-collab-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .supplier-orders-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .supplier-products-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .supplier-routes-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .supplier-special-prices-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .supplier-users-page > .hero-card,
body.internal-shell.supplier-shell.internal-page-content .product-page > .hero-card {
  padding-top: clamp(1.5rem, 2.2vw, 2rem) !important;
  padding-bottom: clamp(1.5rem, 2.2vw, 2rem) !important;
}

body.internal-shell.supplier-shell .supplier-collab-page .status-pill {
  align-items: center;
  flex-direction: row;
  justify-content: center;
  white-space: nowrap;
}

body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-muted-row {
  background: #f3f4f6 !important;
}

body.internal-shell.supplier-shell .supplier-collab-page tbody tr,
body.internal-shell.supplier-shell .supplier-collab-page tbody tr:hover {
  transition: none !important;
}

body.internal-shell.supplier-shell .supplier-collab-page tbody tr:not(.supplier-collab-muted-row):not(.supplier-collab-list-row):hover {
  background: transparent !important;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .section-head,
body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .buyers-list-head {
  gap: 8px;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table th,
body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table td {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.86rem;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table th:first-child,
body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table td:first-child {
  padding-left: 14px;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table th:last-child,
body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table td:last-child {
  padding-right: 14px;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .supplier-collab-delivery-table .status-pill {
  padding-inline: 8px;
  min-height: 28px;
  font-size: 0.72rem;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .buyer-purchases-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body.internal-shell.supplier-shell .supplier-collab-delivery-column-active .buyer-purchases-icon-button svg {
  width: 16px;
  height: 16px;
}

body.internal-shell.supplier-shell .supplier-collab-list-row:hover {
  background: rgba(249, 250, 251, 0.92) !important;
}

body.internal-shell.supplier-shell .supplier-collab-list-row:hover td {
  background: rgba(249, 250, 251, 0.92) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-list-row:hover,
body.internal-shell.supplier-shell.dark .supplier-collab-list-row:hover {
  background: rgba(51, 65, 85, 0.55) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-list-row:hover td,
body.internal-shell.supplier-shell.dark .supplier-collab-list-row:hover td {
  background: rgba(51, 65, 85, 0.55) !important;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table {
  table-layout: fixed;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table-finalized {
  table-layout: auto;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table-finalized th,
body.internal-shell.supplier-shell .supplier-collab-buyers-table-finalized td {
  width: auto !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(1),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(1) {
  width: 30%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(2),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(2) {
  width: 12%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(3),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(3) {
  width: 9%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(4),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(4) {
  width: 10%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(5),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(5) {
  width: 11%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(6),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(6) {
  width: 14%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table th:nth-child(7),
body.internal-shell.supplier-shell .supplier-collab-buyers-table td:nth-child(7) {
  width: 14%;
}

body.internal-shell.supplier-shell .supplier-collab-buyers-table td,
body.internal-shell.supplier-shell .supplier-collab-buyers-table th {
  overflow: hidden;
  text-overflow: ellipsis;
}
body.internal-shell.supplier-shell .program-item-stream {
  margin-left: 18px;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  padding: 4px 0 4px 18px;
}

body.internal-shell.supplier-shell .program-item-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.internal-shell.supplier-shell .program-item-table td {
  padding: 14px 16px;
  vertical-align: top;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.dark body.internal-shell.supplier-shell .program-item-table td,
body.internal-shell.supplier-shell.dark .program-item-table td {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-top-color: rgba(51, 65, 85, 0.9);
}

body.internal-shell.supplier-shell .program-item-table tr:first-child td {
  border-top: 1px solid rgba(191, 219, 254, 0.85);
}

.dark body.internal-shell.supplier-shell .program-item-table tr:first-child td,
body.internal-shell.supplier-shell.dark .program-item-table tr:first-child td {
  border-top-color: rgba(96, 165, 250, 0.3);
}

body.internal-shell.supplier-shell .program-item-rail {
  width: 22px;
  min-width: 22px;
  padding: 0 !important;
  position: relative;
  background: transparent !important;
}

body.internal-shell.supplier-shell .program-item-rail::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -14px;
  bottom: -14px;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
}

.dark body.internal-shell.supplier-shell .program-item-rail::before,
body.internal-shell.supplier-shell.dark .program-item-rail::before {
  background: rgba(71, 85, 105, 0.95);
}

body.internal-shell.supplier-shell .program-item-rail::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #003882;
  box-shadow: 0 0 0 3px rgba(0, 56, 130, 0.10);
}

.dark body.internal-shell.supplier-shell .program-item-rail::after,
body.internal-shell.supplier-shell.dark .program-item-rail::after {
  background: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

body.internal-shell.supplier-shell .program-item-cell {
  width: 22%;
}

body.internal-shell.supplier-shell .program-item-cell-wide {
  width: auto;
}

body.internal-shell.supplier-shell .program-item-table strong {
  word-break: break-word;
}


body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-special-row > td {
  background: #ffffff !important;
  border-top: 1px solid rgba(239, 68, 68, 0.65) !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.65) !important;
}

body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-special-row > td:first-child {
  border-left: 1px solid rgba(239, 68, 68, 0.65) !important;
}

body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-special-row > td:last-child {
  border-right: 1px solid rgba(239, 68, 68, 0.65) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-muted-row,
body.internal-shell.supplier-shell.dark .supplier-collab-page tr.supplier-collab-muted-row {
  background: rgba(30, 41, 59, 0.72) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-special-row > td,
body.internal-shell.supplier-shell.dark .supplier-collab-page tr.supplier-collab-special-row > td {
  background: rgba(15, 23, 42, 0.98) !important;
  border-top-color: rgba(248, 113, 113, 0.75) !important;
  border-bottom-color: rgba(248, 113, 113, 0.75) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-special-row > td:first-child,
body.internal-shell.supplier-shell.dark .supplier-collab-page tr.supplier-collab-special-row > td:first-child {
  border-left-color: rgba(248, 113, 113, 0.75) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-page tr.supplier-collab-special-row > td:last-child,
body.internal-shell.supplier-shell.dark .supplier-collab-page tr.supplier-collab-special-row > td:last-child {
  border-right-color: rgba(248, 113, 113, 0.75) !important;
}

.dark body.internal-shell.supplier-shell .supplier-collab-page tbody tr:not(.supplier-collab-muted-row):hover,
body.internal-shell.supplier-shell.dark .supplier-collab-page tbody tr:not(.supplier-collab-muted-row):hover {
  background: transparent !important;
}

/* Melhorias de Design para o Painel de Perfil Lateral */
.user-profile-panel {
  padding: 20px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px);
  border-radius: 16px;
}

.user-profile-core {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.user-profile-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.user-profile-avatar span {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.user-profile-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-profile-info strong {
  font-size: 0.95rem !important;
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-info p.muted {
  margin: 0 !important;
  font-size: 0.78rem !important;
  color: rgba(219, 234, 254, 0.8) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-role-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-profile-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  gap: 12px;
  margin-top: 4px;
}

.user-profile-actions .collab-admin-hero-button {
  width: 100%;
  text-align: center;
}

.user-profile-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.user-profile-logout:hover {
  color: #ffb3b3 !important; /* Destaque sutil de perigo ao passar o mouse */
}

.buyer-order-items-hover {
  cursor: default;
}

.buyer-order-items-hover:hover,
.buyer-order-items-hover:focus-within {
  background: rgba(15, 56, 130, 0.05);
}

.buyer-order-items-popover {
  position: fixed;
  left: var(--buyer-order-items-popover-left, 0);
  top: var(--buyer-order-items-popover-top, 0);
  z-index: 9990;
  width: min(360px, 86vw);
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.buyer-order-items-hover:hover .buyer-order-items-popover,
.buyer-order-items-hover:focus-within .buyer-order-items-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dark .buyer-order-items-popover {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

/* Ajuste responsivo para manter alinhado em telas menores */
@media (max-width: 760px) {
  .user-profile-actions {
    flex-direction: column;
  }
}

html {
  scroll-behavior: smooth;
}

body.internal-shell .admin-control-tower {
  display: grid;
  gap: 14px;
  padding: 14px;
}

body.internal-shell .admin-detail-stack {
  display: grid;
  gap: 12px;
}

body.internal-shell .admin-detail-stack .admin-timeline-card {
  margin-top: 0;
}

body.internal-shell .admin-control-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

body.internal-shell .admin-control-top > .admin-status-card {
  grid-column: auto;
}

body.internal-shell .admin-status-card,
body.internal-shell .admin-health-card,
body.internal-shell .admin-actions-card,
body.internal-shell .admin-support-card,
body.internal-shell .admin-related-item,
body.internal-shell .admin-kpi-card,
body.internal-shell .admin-step {
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

body.internal-shell .admin-status-card {
  min-height: 0;
  padding: 12px 14px;
  display: grid;
  gap: 7px;
}

body.internal-shell .admin-status-card.is-healthy {
  border-color: rgba(31, 139, 83, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}

body.internal-shell .admin-status-card.is-warning {
  border-color: rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

body.internal-shell .admin-status-card.is-blocked {
  border-color: rgba(224, 63, 63, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fff2f2 100%);
}

body.internal-shell .admin-card-label-row,
body.internal-shell .admin-status-meta,
body.internal-shell .admin-step,
body.internal-shell .admin-related-item,
body.internal-shell .admin-support-card,
body.internal-shell .admin-action-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.internal-shell .admin-status-value {
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #001a3d;
}

body.internal-shell .admin-status-value.is-awaiting-delivery {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  text-align: center;
}

body.internal-shell .admin-status-message {
  margin: 0;
  color: #5a6d86;
  font-size: 0.85rem;
  line-height: 1.32;
  max-width: 62ch;
}

body.internal-shell .admin-status-meta {
  margin-top: 0;
  padding-top: 0;
  color: #3f536d;
  font-size: 0.88rem;
}

body.internal-shell .admin-status-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  margin-top: 0;
  border-top: 1px solid rgba(203, 213, 225, 0.7);
}

body.internal-shell .admin-status-actions strong {
  display: block;
  margin-top: 1px;
  font-size: 0.9rem;
  color: #001a3d;
}

body.internal-shell .admin-status-actions p {
  margin: 3px 0 0;
  color: #5f748d;
  font-size: 0.8rem;
  line-height: 1.25;
}

body.internal-shell .admin-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 56, 130, 0.18);
  background: rgba(0, 56, 130, 0.06);
  color: #003882;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

body.internal-shell .admin-right-stack {
  display: grid;
  gap: 10px;
}

body.internal-shell .admin-health-card,
body.internal-shell .admin-actions-card {
  padding: 12px;
  display: grid;
  gap: 8px;
}

body.internal-shell .admin-health-card.is-healthy {
  border-color: rgba(31, 139, 83, 0.18);
  background: #f7fbf8;
}

body.internal-shell .admin-health-card.is-warning {
  border-color: rgba(255, 159, 10, 0.18);
  background: #fffaf0;
}

body.internal-shell .admin-health-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #001a3d;
}

body.internal-shell .admin-health-list {
  margin: 0;
  padding-left: 16px;
  color: #47607d;
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
}

body.internal-shell .admin-health-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.internal-shell .admin-actions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.internal-shell .admin-health-badges span,
body.internal-shell .admin-related-item span,
body.internal-shell .admin-support-card span,
body.internal-shell .admin-action-button span:last-child,
body.internal-shell .admin-step-note,
body.internal-shell .admin-kpi-card small {
  color: #5f748d;
}

body.internal-shell .admin-health-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
}

body.internal-shell .admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.internal-shell .admin-action-button {
  min-height: 48px;
  padding: 10px 12px;
  justify-content: flex-start;
  text-decoration: none;
  color: #001a3d;
  font-weight: 800;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #fff;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.internal-shell .admin-action-button:hover,
body.internal-shell .admin-kpi-card:hover,
body.internal-shell .admin-related-item:hover,
body.internal-shell .admin-support-card:hover,
body.internal-shell .admin-step:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 56, 130, 0.22);
  box-shadow: 0 14px 30px rgba(15, 47, 78, 0.08);
}

body.internal-shell .admin-action-icon,
body.internal-shell .admin-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #eff4fb;
  color: #003882;
  flex: 0 0 auto;
}

body.internal-shell .admin-action-icon svg,
body.internal-shell .admin-step-icon svg {
  width: 15px;
  height: 15px;
}

body.internal-shell .admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.internal-shell .admin-kpi-card {
  padding: 12px 14px;
  text-decoration: none;
  display: grid;
  gap: 5px;
  min-height: 92px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.internal-shell .admin-kpi-card strong {
  color: #001a3d;
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.internal-shell .admin-kpi-card small {
  font-size: 0.74rem;
  line-height: 1.4;
}

body.internal-shell .admin-stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  padding: 0;
  overflow: visible;
}

body.internal-shell .admin-step {
  min-width: 0;
  padding: 10px 10px 11px;
  text-decoration: none;
  display: grid;
  gap: 6px;
  position: relative;
}

body.internal-shell .admin-step.current {
  border-color: rgba(0, 56, 130, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
}

body.internal-shell .admin-step.done {
  border-color: rgba(31, 139, 83, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf5 100%);
}

body.internal-shell .admin-step.pending {
  opacity: 0.82;
  background: #fafbfd;
}

body.internal-shell .admin-step.blocked {
  border-color: rgba(224, 63, 63, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%);
}

body.internal-shell .admin-step-label {
  font-weight: 900;
  color: #001a3d;
  font-size: 0.84rem;
  line-height: 1.2;
  min-width: 0;
}

body.internal-shell .admin-step-connector {
  display: none;
}

body.internal-shell .admin-link-groups {
  display: grid;
  gap: 10px;
}

body.internal-shell .admin-link-group {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.internal-shell .admin-link-group-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 2px;
}

body.internal-shell .admin-related-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.internal-shell .admin-related-item,
body.internal-shell .admin-support-card {
  padding: 10px 11px;
  text-decoration: none;
  align-items: flex-start;
  justify-content: flex-start;
  display: grid;
  gap: 2px;
  min-height: 72px;
  border-radius: 14px;
}

body.internal-shell .admin-related-item strong,
body.internal-shell .admin-support-card strong {
  color: #001a3d;
  font-size: 0.92rem;
  line-height: 1.2;
}

body.internal-shell .admin-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.internal-shell .admin-related-item span,
body.internal-shell .admin-support-card span {
  font-size: 0.78rem;
  line-height: 1.35;
}

body.internal-shell .admin-table-shell {
  display: grid;
  gap: 10px;
}

body.internal-shell .admin-table-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

body.internal-shell .admin-table-tools {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

body.internal-shell .admin-table-search {
  display: grid;
  gap: 4px;
}

body.internal-shell .admin-table-search span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7f98;
}

body.internal-shell .admin-table-search input {
  min-width: min(300px, 70vw);
  height: 38px;
  border-radius: 12px;
  border: 1px solid #d7dfeb;
  background: #fbfdff;
  padding: 0 14px;
  color: #001a3d;
  outline: none;
}

body.internal-shell .admin-table-search input:focus {
  border-color: rgba(0, 56, 130, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 56, 130, 0.08);
}

body.internal-shell .admin-table-shell .table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  overflow: auto;
}

body.internal-shell .admin-table-shell .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
}

body.internal-shell .admin-table-shell .data-table th,
body.internal-shell .admin-table-shell .data-table td {
  padding: 10px 10px;
  font-size: 0.85rem;
  vertical-align: middle;
}

body.internal-shell .admin-table-shell .data-table th {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

body.internal-shell .admin-table-shell .data-table tbody tr:hover td {
  background: #f8fbff;
}

body.internal-shell .admin-timeline-card {
  padding: 14px;
}

body.internal-shell .admin-timeline-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  display: grid;
  gap: 10px;
  position: relative;
}

body.internal-shell .admin-timeline-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 56, 130, 0.18), rgba(53, 157, 158, 0.22));
}

body.internal-shell .admin-timeline-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

body.internal-shell .admin-timeline-marker {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid rgba(0, 56, 130, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 56, 130, 0.08);
  position: relative;
  z-index: 1;
}

body.internal-shell .admin-timeline-entry {
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

body.internal-shell .admin-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

body.internal-shell .admin-timeline-head span {
  color: #6a7d96;
  font-size: 0.76rem;
  white-space: nowrap;
}

body.internal-shell .admin-timeline-entry p {
  margin: 6px 0 0;
  color: #50647f;
  line-height: 1.4;
  font-size: 0.88rem;
}

body.internal-shell .admin-timeline-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  color: #5f748d;
}

.flatpickr-calendar {
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.96);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar .flatpickr-innerContainer {
  background: #ffffff;
}

.flatpickr-calendar .flatpickr-month,
.flatpickr-calendar .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-weekday {
  color: #0f172a;
  fill: #0f172a;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-calendar .flatpickr-current-month .numInputWrapper span.arrowDown {
  border-color: rgba(100, 116, 139, 0.55);
}

.flatpickr-calendar .flatpickr-day {
  border-radius: 12px;
  color: #0f172a;
}

.flatpickr-calendar .flatpickr-day:hover {
  background: rgba(0, 56, 130, 0.08);
  border-color: rgba(0, 56, 130, 0.18);
}

.flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
  color: #cbd5e1;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange,
.flatpickr-calendar .flatpickr-day.selected:hover,
.flatpickr-calendar .flatpickr-day.startRange:hover,
.flatpickr-calendar .flatpickr-day.endRange:hover {
  background: #003882;
  border-color: #003882;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 56, 130, 0.2);
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.selected:hover,
.flatpickr-calendar .flatpickr-day.selected:focus,
.flatpickr-calendar .flatpickr-day.today.selected,
.flatpickr-calendar .flatpickr-day.today.selected:hover,
.flatpickr-calendar .flatpickr-day.today.selected:focus,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.startRange:hover,
.flatpickr-calendar .flatpickr-day.startRange:focus,
.flatpickr-calendar .flatpickr-day.endRange,
.flatpickr-calendar .flatpickr-day.endRange:hover,
.flatpickr-calendar .flatpickr-day.endRange:focus {
  color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-day.is-first-delivery-available {
  background: rgba(85, 197, 149, 0.14);
  border-color: rgba(85, 197, 149, 0.6);
  box-shadow: inset 0 0 0 1px rgba(85, 197, 149, 0.8);
}

.flatpickr-calendar .flatpickr-day.is-first-delivery-available:hover {
  background: rgba(85, 197, 149, 0.2);
}

.flatpickr-input[readonly] {
  cursor: text;
}

body.internal-shell .notification-center {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.internal-shell .notification-bell {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body.internal-shell .notification-bell:hover,
body.internal-shell .notification-bell:focus-visible {
  border-color: rgba(0, 56, 130, 0.35);
  color: #003882;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  outline: none;
}

body.internal-shell .notification-bell-icon {
  width: 20px;
  height: 20px;
}

body.internal-shell .help-wizard-button {
  flex: 0 0 auto;
}

body.help-wizard-open {
  overflow: hidden;
}

body.help-wizard-open .site-header,
body.help-wizard-open #sidebar,
body.help-wizard-open #mobile-overlay {
  z-index: 100 !important;
  pointer-events: none;
  user-select: none;
}

body.help-wizard-open #internal-main {
  z-index: 1 !important;
}

.help-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  transition: opacity 180ms ease;
}

.help-wizard-overlay.is-open {
  opacity: 1;
}

.help-wizard-drawer {
  position: fixed;
  top: 96px;
  right: 0;
  bottom: var(--header-inset);
  z-index: 99990;
  width: min(460px, 100vw);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  background: #ffffff;
  color: #0f172a;
  border-left: 1px solid #dbe4ef;
  border-radius: 24px 0 0 24px;
  box-shadow: -24px 0 60px -36px rgba(15, 47, 78, 0.45);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.help-wizard-drawer.is-open {
  transform: translateX(0);
}

.help-wizard-head,
.help-wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe4ef;
}

.help-wizard-foot {
  border-top: 1px solid #dbe4ef;
  border-bottom: 0;
}

.help-wizard-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.help-wizard-head-icon,
.help-wizard-close {
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: #0f2f4e;
}

.help-wizard-head-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f8fafc;
}

.help-wizard-head-icon svg,
.help-wizard-close svg {
  width: 21px;
  height: 21px;
}

.help-wizard-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-wizard-head h2 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 850;
}

.help-wizard-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.help-wizard-close:hover,
.help-wizard-close:focus-visible {
  background: #f8fafc;
  border-color: rgba(15, 47, 78, 0.2);
}

.help-wizard-search {
  padding: 16px 20px 10px;
}

.help-wizard-search input {
  width: 100%;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 650;
}

.help-wizard-search input:focus {
  border-color: #003882;
  box-shadow: 0 0 0 3px rgba(0, 56, 130, 0.12);
}

.help-wizard-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}

.help-wizard-quicknav a {
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f2f4e;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.help-wizard-body {
  overflow: auto;
  padding: 2px 20px 20px;
  scroll-behavior: smooth;
}

.help-wizard-page-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 900;
}

.help-wizard-description {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.65;
}

.help-wizard-section {
  margin-top: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #f8fafc;
  padding: 15px;
}

.help-wizard-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 900;
}

.help-wizard-section-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  color: #0f2f4e;
  border: 1px solid #dbe4ef;
}

.help-wizard-section-icon svg {
  width: 17px;
  height: 17px;
}

.help-wizard-section p,
.help-wizard-section li {
  color: #475569;
  line-height: 1.58;
  font-size: 0.92rem;
}

.help-wizard-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.help-wizard-section p {
  margin: 0;
}

.help-wizard-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.help-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-wizard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  background: #1f8b53;
  color: #ffffff !important;
  padding: 9px 13px;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.help-wizard-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
}

.help-wizard-pager button {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #0f2f4e;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.help-wizard-loading,
.help-wizard-empty {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #f8fafc;
  padding: 18px;
  color: #64748b;
  font-weight: 750;
}

.dark .help-wizard-drawer {
  background: #0f172a;
  color: #f8fafc;
  border-left-color: #334155;
}

.dark .help-wizard-head,
.dark .help-wizard-foot {
  border-color: #334155;
}

.dark .help-wizard-head-icon,
.dark .help-wizard-close,
.dark .help-wizard-search input,
.dark .help-wizard-quicknav a,
.dark .help-wizard-section,
.dark .help-wizard-section-icon,
.dark .help-wizard-pager button,
.dark .help-wizard-loading,
.dark .help-wizard-empty {
  border-color: #334155;
  background: #111827;
  color: #f8fafc;
}

.dark .help-wizard-head h2,
.dark .help-wizard-page-title,
.dark .help-wizard-section h3 {
  color: #f8fafc;
}

.dark .help-wizard-head p,
.dark .help-wizard-description,
.dark .help-wizard-section p,
.dark .help-wizard-section li,
.dark .help-wizard-pager {
  color: #cbd5e1;
}

.dark .help-wizard-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(120, 53, 15, 0.28);
}

@media (max-width: 1024px) {
  .help-wizard-drawer {
    width: min(100vw, 720px);
  }
}

@media (max-width: 640px) {
  .help-wizard-drawer {
    top: 0;
    bottom: 0;
    width: 100vw;
    border-left: 0;
    border-radius: 0;
  }

  .help-wizard-head,
  .help-wizard-foot,
  .help-wizard-search,
  .help-wizard-quicknav,
  .help-wizard-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

body.internal-shell .notification-count {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e03f3f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 3px #fff;
}

body.internal-shell .notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 80;
  width: min(420px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

body.internal-shell .notification-panel-head,
body.internal-shell .notification-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

body.internal-shell .notification-panel-foot {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 0;
}

body.internal-shell .notification-panel-foot a,
body.internal-shell .notification-link-button,
body.internal-shell .notification-item-actions a,
body.internal-shell .notification-item-actions button,
body.internal-shell .notification-row-actions a,
body.internal-shell .notification-row-actions button {
  border: 0;
  background: transparent;
  color: #003882;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

body.internal-shell .notification-tabs,
body.internal-shell .notification-status-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 0;
}

body.internal-shell .notification-status-filter {
  padding-top: 8px;
  padding-bottom: 10px;
}

body.internal-shell .notification-tabs button,
body.internal-shell .notification-status-filter button {
  flex: 0 0 auto;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

body.internal-shell .notification-tabs button.is-active,
body.internal-shell .notification-status-filter button.is-active {
  border-color: rgba(0, 56, 130, 0.3);
  background: rgba(0, 56, 130, 0.08);
  color: #003882;
}

body.internal-shell .notification-list {
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
}

body.internal-shell .notification-item,
body.internal-shell .notification-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px;
}

body.internal-shell .notification-item.is-unread,
body.internal-shell .notification-row.is-unread {
  border-color: rgba(0, 56, 130, 0.12);
  background: rgba(0, 56, 130, 0.045);
}

body.internal-shell .notification-category-icon,
body.internal-shell .notification-row-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: #94a3b8;
}

body.internal-shell .notification-item.priority-high .notification-category-icon,
body.internal-shell .notification-row.priority-high .notification-row-dot {
  background: #e03f3f;
}

body.internal-shell .notification-item.priority-medium .notification-category-icon,
body.internal-shell .notification-row.priority-medium .notification-row-dot {
  background: #359d9e;
}

body.internal-shell .notification-item.priority-low .notification-category-icon,
body.internal-shell .notification-row.priority-low .notification-row-dot {
  background: #94a3b8;
}

body.internal-shell .notification-item-head,
body.internal-shell .notification-row-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: start;
}

body.internal-shell .notification-item-head strong,
body.internal-shell .notification-row-head strong {
  min-width: 0;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.25;
}

body.internal-shell .notification-item-head time,
body.internal-shell .notification-row-head time {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.72rem;
  white-space: nowrap;
}

body.internal-shell .notification-item p,
body.internal-shell .notification-row p {
  margin: 5px 0 8px;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.35;
}

body.internal-shell .notification-item-actions,
body.internal-shell .notification-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.internal-shell .notification-empty {
  display: grid;
  gap: 4px;
  padding: 22px 16px;
  text-align: center;
  color: #64748b;
}

body.internal-shell .notification-empty strong {
  color: #334155;
}

body.internal-shell .notifications-history-page {
  display: grid;
  gap: 16px;
}

body.internal-shell .notifications-history-header,
body.internal-shell .notifications-history-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

body.internal-shell .notifications-history-filters {
  flex-wrap: wrap;
}

body.internal-shell .notifications-history-filters label {
  display: grid;
  min-width: 180px;
  gap: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

body.internal-shell .notifications-history-filters select {
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 10px 12px;
}

body.internal-shell .notifications-history-list {
  display: grid;
  gap: 8px;
}

body.internal-shell .notifications-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #64748b;
}

@media (max-width: 700px) {
  body.internal-shell .notification-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 74px;
    width: auto;
  }

  body.internal-shell .notifications-history-header,
  body.internal-shell .notifications-history-filters {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1280px) {
  body.internal-shell .admin-kpi-grid,
  body.internal-shell .admin-related-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.internal-shell .admin-actions-grid {
    grid-template-columns: 1fr;
  }

  body.internal-shell .admin-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.internal-shell .admin-control-top,
  body.internal-shell .admin-kpi-grid,
  body.internal-shell .admin-support-grid,
  body.internal-shell .admin-actions-grid,
  body.internal-shell .admin-related-bar {
    grid-template-columns: 1fr;
  }

  body.internal-shell .admin-stepper {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  body.internal-shell .admin-step {
    min-width: 140px;
    flex: 0 0 140px;
  }

  body.internal-shell .admin-table-controls {
    align-items: start;
    flex-direction: column;
  }

  body.internal-shell .admin-table-search input {
    min-width: 100%;
  }
}

