.store-manager-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.store-manager-list article {
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.store-manager-list small,
.store-manager-list span {
  color: #d7e8e1;
  font-size: 11px;
}
.store-manager-list strong {
  font-size: 13px;
}
@media (max-width: 650px) {
  .store-manager-list {
    display: grid;
  }
  .store-manager-list article {
    min-width: 0;
  }
}
:root {
  --green-950: #001e62;
  --green-900: #003f8f;
  --green-800: #0055a5;
  --green-700: #0066b3;
  --lime: #ec7000;
  --canvas: #eef1f4;
  --paper: #fff;
  --ink: #17382f;
  --muted: #5d6874;
  --line: #cfd6dd;
  --soft: #f3f5f7;
  --danger: #a53131;
  --shadow: 0 18px 50px rgba(0, 63, 143, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--canvas);
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 0,
      rgba(236, 112, 0, 0.12),
      transparent 32rem
    ),
    linear-gradient(180deg, #f8fafc 0, var(--canvas) 48%, #e4e8ed 100%);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
}
.topbar {
  height: 76px;
  background: linear-gradient(110deg, var(--green-950), var(--green-800));
  color: #fff;
  box-shadow: 0 6px 22px rgba(0, 30, 98, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  height: 100%;
  max-width: 1080px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(207, 218, 229, 0.75);
  border-radius: 13px;
  background: #e8ecef;
}
.opportunity-tabs button.active,
.primary-button {
  background: linear-gradient(120deg, #003f8f, #005eb8);
}
.opportunity-tabs button.active {
  box-shadow: inset 0 -4px 0 #ec7000, 0 5px 14px rgba(0, 63, 143, 0.2);
}
.eyebrow {
  color: #d45f00;
}

/* A tela alterada de primeiro acesso cumpre a fonte visível mínima de 13 px
   sem modificar o cabeçalho ou os rótulos das demais telas congeladas. */
body[data-portal-screen="activate"] .brand small,
body[data-portal-screen="reset"] .brand small,
body[data-portal-screen="activate"] footer,
body[data-portal-screen="reset"] footer,
#activate .eyebrow,
#reset .eyebrow {
  font-size: 13px;
}
.hero .eyebrow {
  color: #ffd4ad;
}
/* Paleta definitiva: azul para oportunidade de compra e laranja para
   cobertura suficiente, preservando o significado operacional. */
.purchase-table-wrap thead,
.supplier-purchase-table th,
.quotation-card th {
  background: #e7f0f9;
  color: #173f6b;
  box-shadow: 0 2px 0 #bfd1e3;
}
.direct-purchase-table tr.purchase-needed,
.abc-product-table tr.purchase-needed,
.supplier-purchase-table tr.status-green {
  background: #edf5fc;
}
.direct-purchase-table tr.purchase-not-needed,
.abc-product-table tr.purchase-not-needed,
.supplier-purchase-table tr.status-red {
  background: #fff5eb;
}
.purchase-legend .needed i {
  background: #dcecf9;
  border-color: #a9c9e5;
}
.purchase-legend .not-needed i {
  background: #ffead8;
  border-color: #efbd91;
}
.direct-purchase-table .c-product small {
  color: #155b94;
}
.direct-purchase-table tr.purchase-not-needed .c-product small {
  color: #a64b00;
}
@media (max-width: 560px) {
  .topbar-inner {
    padding: 0 10px;
  }
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand small,
.brand b {
  display: block;
}
.brand b {
  font-size: 16px;
}
.brand small {
  margin-top: 2px;
  color: #dbe7f6;
  font-size: 12px;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--green-950);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
main {
  width: min(1080px, calc(100% - 32px));
  margin: 34px auto;
  min-height: calc(100vh - 170px);
}
.card,
.hero {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-card {
  max-width: 520px;
  margin: 7vh auto 0;
}
.auth-heading {
  text-align: center;
}
.auth-heading p {
  max-width: 420px;
  margin: 10px auto 0;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green-700);
}
h1 {
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  margin: 10px 0 8px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}
p,
small {
  color: var(--muted);
  line-height: 1.55;
}
.section-title p {
  margin: 0;
}
.section-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 24px;
}
.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #e7f0f9;
  color: var(--green-800);
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 700;
  flex: 0 0 auto;
}
.form-stack {
  display: grid;
  gap: 18px;
  margin: 26px auto 0;
  max-width: 760px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #2e4054;
}
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aeb9c4;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #8794a1;
}
input:focus,
textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.13);
  background: #fff;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 38px;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--green-800);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.password-toggle:hover {
  background: #edf4fb;
}
.password-toggle:focus-visible {
  outline: 3px solid rgba(0, 102, 179, 0.24);
  outline-offset: 1px;
}
.password-toggle.visible:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}
button,
.lookup-button {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.primary-button {
  min-width: 210px;
  min-height: 46px;
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 63, 143, 0.22);
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 63, 143, 0.3);
}
.centered-button {
  justify-self: center;
}
.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 9px 16px;
}
.secondary-button {
  min-width: 210px;
  min-height: 44px;
  background: #edf4fb;
  border: 1px solid #9cb9d4;
  color: var(--green-900);
}
.secondary-button:hover {
  background: #e1edf8;
  border-color: var(--green-700);
}
.centered-action {
  display: block;
  margin: 16px auto 0;
}
.text-button {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  background: transparent;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hidden {
  display: none !important;
}
.error {
  color: var(--danger);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
}
.success-text {
  color: var(--green-700);
  font-weight: 700;
  text-align: center;
}
.hero {
  background: linear-gradient(125deg, var(--green-950), var(--green-700));
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -60px;
  top: -120px;
  background: rgba(236, 112, 0, 0.18);
}
.hero .eyebrow,
.hero p {
  color: #e1ebf7;
}
.hero p {
  margin-bottom: 0;
}
.hero h1 {
  position: relative;
  z-index: 1;
}
.supplier-performance-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  width: min(1080px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}
.supplier-performance-card header,
.supplier-score-overview,
.supplier-performance-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.supplier-performance-card header div,
.supplier-score-overview > div:first-child {
  display: grid;
  gap: 2px;
}
.supplier-performance-card small,
.supplier-performance-card span,
.supplier-performance-card p {
  color: #e8f1ee;
  font-size: 11px;
}
.supplier-performance-card strong {
  color: #fff;
}
.supplier-status {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.supplier-status.active { background: #d4ef6d; color: #17382f; }
.supplier-status.blocked { background: #ffd7d7; color: #8e2626; }
.supplier-score-overview > div:first-child > strong { font-size: 28px; }
.supplier-score-progress { flex: 1; max-width: 650px; }
.supplier-score-progress [role="progressbar"] {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.supplier-score-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #98caca, var(--lime));
}
.supplier-stage-track,
.supplier-score-components {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.supplier-stage-track { margin-top: 6px; }
.supplier-stage-track span { opacity: 0.45; text-align: center; }
.supplier-stage-track span.reached { opacity: 1; font-weight: 800; }
.supplier-stage-track span.gold { color: #ffe38a; }
.supplier-score-components article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}
.supplier-sales-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.supplier-sales-comparison article {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.08);
}
.supplier-sales-comparison .positive strong,
.supplier-sales-comparison .positive span { color: #d4ef6d; }
.supplier-sales-comparison .negative strong,
.supplier-sales-comparison .negative span { color: #ffd2c2; }
.supplier-sales-comparison.pending { grid-template-columns: 1fr; }
.supplier-performance-card footer { flex-wrap: wrap; }
.supplier-performance-card footer small { flex-basis: 100%; }
.supplier-score-progress i {
  background: linear-gradient(90deg, #6ea8dc, #ec7000);
}
@media (max-width: 700px) {
  .supplier-performance-card { width: 100%; }
  .supplier-performance-card header,
  .supplier-score-overview,
  .supplier-performance-card footer { align-items: stretch; flex-direction: column; }
  .supplier-score-progress { width: 100%; max-width: none; }
  .supplier-score-components { grid-template-columns: repeat(2, 1fr); }
  .supplier-sales-comparison { grid-template-columns: 1fr; }
}
.tabs {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin: 18px 0;
  padding: 4px;
}
.tabs button {
  background: #dfe9e5;
  color: var(--green-900);
  white-space: nowrap;
  min-height: 42px;
}
.tabs button.active {
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 5px 14px rgba(18, 72, 58, 0.2);
}
.opportunity-tabs button {
  flex: 1;
  font-size: 15px;
}
.portal-secondary-menu {
  margin: -7px 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}
.portal-secondary-menu summary {
  padding: 12px 16px;
  color: var(--green-900);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.portal-secondary-menu summary::-webkit-details-marker {
  display: none;
}
.portal-secondary-menu summary:after {
  content: "+";
  float: right;
  font-size: 18px;
}
.portal-secondary-menu[open] summary:after {
  content: "−";
}
.secondary-tabs {
  margin: 0;
  padding: 0 10px 10px;
  border-top: 1px solid var(--line);
}
.secondary-tabs button {
  font-size: 12px;
  min-height: 38px;
  padding: 9px 13px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.section-head input {
  max-width: 340px;
}
.catalog {
  display: grid;
  gap: 10px;
}
.product {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--soft);
}
.product b {
  color: var(--green-800);
}
.product span:last-child {
  color: var(--muted);
  font-size: 12px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--soft);
}
legend {
  padding: 0 7px;
  font-size: 13px;
  font-weight: 700;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.check input {
  width: auto;
  min-height: auto;
}
.ean-panel {
  border: 1px solid #bfd3ca;
  border-radius: 15px;
  background: linear-gradient(135deg, #f0f8f4, #f8fbef);
  padding: 17px;
  display: grid;
  gap: 14px;
}
.ean-panel strong,
.ean-panel small {
  display: block;
}
.ean-panel small {
  margin-top: 4px;
}
.ean-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.lookup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-align: center;
  background: #fff;
  border: 1px solid #a9c4b8;
  color: var(--green-900);
  font-size: 13px;
}
.lookup-button:hover {
  border-color: var(--green-700);
  background: #edf7f3;
}
.lookup-button.disabled {
  pointer-events: none;
  opacity: 0.55;
}
#portal {
  width: min(1500px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.portal-tabs {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(20, 72, 58, 0.07);
}
.portal-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.portal-tabs button span {
  font-size: 12px;
}
.purchase-dashboard {
  padding: 24px;
}
.dashboard-head {
  align-items: flex-end;
}
.catalog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.catalog-actions input {
  width: 310px;
}
.catalog-actions select {
  min-height: 46px;
  border: 1px solid #acbfb7;
  border-radius: 11px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 4px 0 18px;
}
.dashboard-stats article,
.dashboard-stats .curve-stat {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}
.dashboard-stats .curve-stat:hover,
.dashboard-stats .curve-stat.active {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(36, 113, 90, 0.14);
  transform: translateY(-1px);
}
.dashboard-stats .curve-stat small {
  display: block;
  margin-top: 4px;
  color: var(--green-700);
  font-size: 9px;
  font-weight: 850;
}
.dashboard-stats span,
.dashboard-stats strong {
  display: block;
}
.dashboard-stats span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 750;
}
.dashboard-stats strong {
  font-size: 24px;
  margin-top: 4px;
}
.dashboard-stats .red {
  background: #fff0ed;
  border-color: #efc2ba;
}
.dashboard-stats .yellow {
  background: #fff9df;
  border-color: #ead995;
}
.dashboard-stats .green {
  background: #eaf7ef;
  border-color: #b9dcc7;
}
.purchase-table-wrap {
  position: relative;
  overflow: visible;
  overflow-anchor: none;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.supplier-purchase-table,
.quotation-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
}
.purchase-table-wrap thead {
  position: sticky;
  top: 142px;
  z-index: 12;
  background: #e7efeb;
}
.supplier-purchase-table th,
.supplier-purchase-table td,
.quotation-card th,
.quotation-card td {
  padding: 10px 11px;
  border-bottom: 1px solid #dce6e2;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}
.supplier-purchase-table th,
.quotation-card th {
  position: static;
  background: #e7efeb;
  color: #31584d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 0 #c7d7d0;
}
.supplier-purchase-table td small,
.supplier-purchase-table td b,
.quotation-card td small,
.quotation-card td b {
  display: block;
}
.supplier-purchase-table td small,
.quotation-card td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.supplier-purchase-table .num,
.quotation-card .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.purchase-table-wrap .supplier-purchase-table th:first-child,
.purchase-table-wrap .supplier-purchase-table td:first-child {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}
.purchase-table-wrap .supplier-purchase-table td:first-child > input[type="checkbox"],
.purchase-table-wrap .supplier-purchase-table td:first-child > input[type="radio"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--green-700);
  vertical-align: middle;
}
.supplier-purchase-table tr.status-red {
  background: #fff0ed;
}
.supplier-purchase-table tr.status-yellow {
  background: #fff9e7;
}
.supplier-purchase-table tr.status-green {
  background: #eaf7ef;
}
.supplier-purchase-table tbody tr:hover {
  filter: brightness(0.985);
}
.status-pill {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.status-pill.red {
  background: #f0c1ba;
  color: #842e25;
}
.status-pill.yellow {
  background: #f4dfa0;
  color: #765600;
}
.status-pill.green {
  background: #badfc8;
  color: #1c6338;
}
.privacy-note {
  margin: 13px 2px 0;
  font-size: 12px;
}
.empty-row {
  text-align: center !important;
  padding: 30px !important;
  color: var(--muted);
}
.catalog-search-box {
  display: flex;
  align-items: stretch;
}
.catalog-search-box input {
  border-radius: 11px 0 0 11px;
}
.catalog-search-box button {
  width: 48px;
  padding: 0;
  border-radius: 0 11px 11px 0;
  background: var(--green-900);
  color: #fff;
  font-size: 18px;
}
.purchase-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}
.purchase-controls > div:first-child {
  margin-right: auto;
}
.purchase-controls b,
.purchase-controls small {
  display: block;
}
.purchase-controls small {
  font-size: 11px;
}
.visit-period-label {
  color: var(--green-900);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.coverage-buttons {
  display: flex;
  gap: 7px;
}
.coverage-buttons button {
  padding: 9px 14px;
  background: #dfe9e5;
  color: var(--green-900);
}
.coverage-buttons button.active {
  background: var(--green-900);
  color: #fff;
}
.coverage-fixed {
  display: grid;
  gap: 1px;
  min-width: 118px;
  padding: 8px 14px;
  border: 1px solid #b8c8d6;
  border-radius: 9px;
  background: #e7f0f8;
  color: var(--green-900);
  text-align: center;
}
.coverage-fixed b {
  font-size: 14px;
}
.coverage-fixed small {
  font-size: 9px;
}
.purchase-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.purchase-controls label input {
  width: auto;
  min-height: auto;
}
.purchase-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: -7px 0 12px;
  font-size: 11px;
  font-weight: 800;
}
.purchase-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.purchase-legend i {
  width: 14px;
  height: 14px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.purchase-legend .needed i {
  background: #eaf7ef;
  border-color: #b9dcc7;
}
.purchase-legend .not-needed i {
  background: #fff0ed;
  border-color: #efc2ba;
}
.direct-purchase-table {
  min-width: 1180px;
}
.direct-purchase-table tr.purchase-needed {
  background: #eaf7ef;
}
.direct-purchase-table tr.purchase-not-needed {
  background: #fff0ed;
}
.direct-purchase-table tr.selected-product {
  box-shadow: inset 4px 0 0 var(--green-700);
}
.direct-purchase-table .product-code {
  white-space: nowrap;
}
.direct-purchase-table .product-barcode {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.direct-purchase-table .c-product {
  min-width: 240px;
}
.direct-purchase-table .c-product small {
  font-weight: 800;
  color: #2a7048;
}
.direct-purchase-table tr.purchase-not-needed .c-product small {
  color: #9b302b;
}
.c-number {
  min-width: 98px;
  min-height: 40px;
  padding: 8px 9px;
}
.suggested-quantity {
  font-size: 14px !important;
  font-weight: 850;
}
.direct-purchase-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px 0 2px;
}
.direct-purchase-footer label {
  font-size: 11px;
}
.order-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
  gap: 10px;
  margin: 0 0 15px;
}
.direct-draft-warning{margin:0 0 14px;padding:11px 13px;border:1px solid #e7c76a;border-left:5px solid #d58a00;border-radius:8px;background:#fff8df;color:#654800;font-size:12px;line-height:1.45}.direct-draft-warning b{font-weight:900}
.order-summary article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8ed;
}
.order-summary small,
.order-summary strong,
.order-summary span {
  display: block;
}
.order-summary small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.order-summary strong {
  font-size: 16px;
  margin: 4px 0;
}
.order-summary span {
  font-size: 10px;
  color: var(--muted);
}
.order-summary .grade.red {
  border-color: #e7a8a1;
  background: #fff0ed;
}
.order-summary .grade.yellow {
  border-color: #e4ce76;
  background: #fff9df;
}
.order-summary .grade.green {
  border-color: #9fd0b1;
  background: #eaf7ef;
}
.product-photo {
  width: 64px;
  min-height: 58px;
  border: 1px dashed #9db9ac;
  border-radius: 9px;
  background: #fff;
  color: var(--green-800);
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  padding: 5px;
}
.product-photo span {
  font-size: 20px;
}
.product-photo small {
  font-size: 8px !important;
  margin: 0 !important;
}
.lowest-paid b,
.lowest-paid small {
  display: block;
}
.lowest-paid b {
  font-variant-numeric: tabular-nums;
}
.relation-button {
  padding: 7px 9px;
  border: 1px solid #ddb6af;
  background: #fff;
  color: #8f332b;
  font-size: 10px;
}
.catalog-actions .secondary-button {
  min-width: auto;
  white-space: nowrap;
}
.approval-queue {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.approval-queue article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: var(--soft);
}
.approval-queue small,
.approval-queue b {
  display: block;
}
.approval-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.approval-steps span {
  padding: 8px;
  border-radius: 8px;
  background: #e1e8e5;
  color: #6f7d77;
  text-align: center;
  font-size: 10px;
  font-weight: 850;
}
.approval-steps span.done {
  background: #c7ead3;
  color: #1a6136;
}
.order-card header {
  grid-template-columns: 1fr auto auto;
}
.order-card header small {
  display: block;
  margin-top: 4px;
}
.order-grade {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff5c9;
  border: 3px solid #d9b849;
}
.order-grade b {
  font-size: 18px;
  line-height: 1;
}
.order-grade small {
  font-size: 8px;
  margin: 0 !important;
}
.order-card footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
}
.order-card footer strong {
  margin-right: auto;
}
.order-card footer button {
  padding: 9px 11px;
  background: #e4efea;
  color: var(--green-900);
}
.order-card footer small {
  max-width: 250px;
  font-size: 9px;
}
.money-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.supplier-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.supplier-page-grid .supplier-summary {
  grid-template-columns: 1fr;
}
.supplier-qr-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  text-align: center;
}
.supplier-qr-card img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 10px auto;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 12px;
}
.supplier-qr-card p {
  font-size: 12px;
  color: var(--muted);
}
.supplier-qr-card > div {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.supplier-qr-card .lookup-button,
.supplier-qr-card button {
  min-height: 42px;
  padding: 10px 14px;
}
.quotation-list {
  display: grid;
  gap: 18px;
}
.quotation-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.quotation-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--soft);
}
.quotation-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
}
.quote-status {
  padding: 7px 9px;
  border-radius: 999px;
  background: #dfe9e5;
  font-size: 10px;
  font-weight: 850;
}
.quote-status.open {
  background: #d6f0df;
  color: #176237;
}
.quote-status.completed {
  background: #dce8f5;
  color: #28577e;
}
.quote-status.expired,
.quote-status.closed {
  background: #efe3e0;
  color: #87463b;
}
.quotation-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}
.quotation-footer label {
  font-size: 11px;
}
.quotation-result {
  padding: 0 16px 12px;
  margin: 0;
  font-weight: 700;
}
.empty-state {
  padding: 26px;
  text-align: center;
  border: 1px dashed #b7c8c1;
  border-radius: 13px;
  background: var(--soft);
}
.empty-state b,
.empty-state small {
  display: block;
}
.supplier-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.supplier-summary article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 18px;
}
.supplier-summary small,
.supplier-summary strong,
.supplier-summary span {
  display: block;
}
.supplier-summary strong {
  font-size: 17px;
  margin: 6px 0;
}
.supplier-summary span {
  color: var(--muted);
  font-size: 13px;
}
.notice {
  border: 1px solid #d5bd65;
  background: #fff8dc;
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 14px;
}
.success {
  border-color: #74aa8c;
  background: #eef8f2;
}
footer {
  text-align: center;
  padding: 18px 16px 24px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-actions {
    display: grid;
  }
  .catalog-actions input {
    width: 100%;
  }
  .quotation-footer,
  .direct-purchase-footer {
    grid-template-columns: 1fr 1fr;
  }
  .supplier-summary {
    grid-template-columns: 1fr;
  }
  .supplier-page-grid {
    grid-template-columns: 1fr;
  }
  .supplier-qr-card {
    max-width: 360px;
  }
  .portal-tabs button {
    min-width: 150px;
  }
  .purchase-controls {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .purchase-controls > div:first-child {
    width: 100%;
    margin-right: 0;
  }
  .order-summary {
    grid-template-columns: 1fr 1fr;
  }
  .approval-queue article {
    grid-template-columns: 1fr;
  }
  .order-card footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .order-card footer small {
    max-width: none;
    width: 100%;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 68px;
  }
  .topbar-inner {
    padding: 0 16px;
  }
  .brand b {
    font-size: 14px;
  }
  .mark {
    width: 38px;
    height: 38px;
  }
  main {
    width: min(100% - 24px, 1080px);
    margin: 18px auto;
  }
  .card,
  .hero {
    padding: 21px;
    border-radius: 16px;
  }
  .auth-card {
    margin-top: 4vh;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: grid;
  }
  .section-head input {
    max-width: none;
  }
  .product {
    grid-template-columns: 68px 1fr;
  }
  .product span:last-child {
    grid-column: 2;
  }
  .ean-actions {
    grid-template-columns: 1fr;
  }
  .lookup-button {
    min-height: 45px;
  }
  fieldset {
    grid-template-columns: repeat(2, 1fr);
  }
  .primary-button {
    width: min(100%, 280px);
  }
  .tabs {
    margin: 14px 0;
  }
  .tabs button {
    flex: 1;
  }
  .section-title {
    margin-bottom: 18px;
  }
  .purchase-dashboard {
    padding: 14px;
  }
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
  .quotation-footer,
  .direct-purchase-footer {
    grid-template-columns: 1fr;
  }
  .quotation-card > header {
    align-items: flex-start;
  }
  .quote-status {
    flex: 0 0 auto;
  }
  .visit-period-label {
    width: 100%;
  }
  .coverage-buttons {
    width: 100%;
  }
  .coverage-buttons button {
    flex: 1;
  }
}
@media (max-width: 420px) {
  .brand small {
    display: none;
  }
  .card,
  .hero {
    padding: 18px;
  }
  .auth-heading p {
    font-size: 14px;
  }
  fieldset {
    grid-template-columns: 1fr;
  }
  .tabs button {
    padding: 10px 12px;
    font-size: 12px;
  }
}
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #acbfb7;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: 0;
}
.profile-card {
  max-width: 840px;
  margin: 3vh auto 0;
}
.profile-card fieldset {
  display: block;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.check.consent {
  margin: 10px 0;
  align-items: flex-start;
}
.check.consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.profile-card label > small {
  font-weight: 400;
}
.section-title > #edit-profile {
  margin-left: auto;
  min-width: auto;
}
@media (max-width: 700px) {
  .check-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}
.representation-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.representation-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: #edf6f2;
  border: 1px solid #9fbeaf;
  color: var(--green-900);
}
.representation-list small {
  font-weight: 600;
}
.supplier-qr-stack {
  display: grid;
  gap: 16px;
}
.quote-qr-link {
  min-height: auto;
  padding: 8px 11px;
  font-size: 11px;
}
@media (max-width: 700px) {
  .quotation-card > header .quote-qr-link {
    order: 3;
    width: 100%;
  }
}
.abc-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.abc-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.abc-card > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--soft);
}
.abc-card h3 {
  margin: 5px 0;
}
.abc-target {
  text-align: right;
}
.abc-target small,
.abc-target strong,
.abc-target span {
  display: block;
}
.abc-target strong {
  font-size: 21px;
  margin: 3px 0;
}
.abc-target span {
  font-size: 10px;
  color: var(--muted);
}
.abc-card form {
  padding: 16px;
}
.abc-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.abc-fields label {
  font-size: 10px;
}
.abc-fields input {
  min-height: 40px;
}
.abc-card .quotation-result {
  padding: 10px 0 0;
}
@media (max-width: 900px) {
  .abc-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .abc-card > header {
    align-items: flex-start;
    display: grid;
  }
  .abc-target {
    text-align: left;
  }
  .abc-fields {
    grid-template-columns: 1fr;
  }
}
.abc-product-table {
  min-width: 1220px;
}
.abc-product-table tr.purchase-needed {
  background: #eaf7ef;
}
.abc-product-table tr.purchase-not-needed {
  background: #fff0ed;
}
.abc-product-table tr.selected-product {
  box-shadow: inset 4px 0 0 var(--green-700);
}
.abc-proposal-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr));
  gap: 11px;
  align-items: end;
  margin-top: 15px;
}
.abc-proposal-footer label {
  font-size: 10px;
}
.abc-proposal-footer input {
  min-height: 40px;
}
.abc-proposal-footer .primary-button {
  justify-self: end;
}
.quote-workspace {
  border-top: 4px solid var(--green-700);
}
.quote-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 15px 16px;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
}
.quote-schedule article,
.quote-order-summary article {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  background: #fff;
}
.quote-schedule small,
.quote-schedule strong,
.quote-order-summary small,
.quote-order-summary strong,
.quote-order-summary span {
  display: block;
}
.quote-schedule small,
.quote-order-summary small {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
}
.quote-schedule strong {
  margin-top: 5px;
}
.quote-schedule .remaining {
  background: #eaf7ef;
  text-align: center;
}
.quote-schedule .remaining strong {
  color: var(--green-800);
  font-size: 17px;
}
.quote-order-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
  padding: 15px 16px 5px;
}
.quote-order-summary strong {
  font-size: 18px;
  margin: 4px 0;
}
.quote-order-summary span {
  font-size: 10px;
  color: var(--muted);
}
.quote-order-summary .quote-total {
  background: #f7f8df;
  border-color: #d5d8a0;
}
.quote-mark-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 16px;
}
.quote-mark-actions button {
  background: #e4efea;
  color: var(--green-900);
  padding: 9px 12px;
}
.quote-products-table {
  min-width: 1050px;
}
.quote-contact {
  margin: 0 16px 14px;
  padding: 13px 15px;
  border: 1px solid #cfdba0;
  border-radius: 12px;
  background: #f9fbe8;
}
.quote-contact b,
.quote-contact span,
.quote-contact small {
  display: block;
}
.quote-contact span {
  margin: 4px 0;
}
.quote-contact small {
  font-size: 10px;
}
@media (max-width: 900px) {
  .abc-proposal-footer {
    grid-template-columns: 1fr 1fr;
  }
  .quote-schedule,
  .quote-order-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .abc-proposal-footer,
  .quote-schedule,
  .quote-order-summary {
    grid-template-columns: 1fr;
  }
  .abc-proposal-footer .primary-button {
    justify-self: stretch;
  }
}
.relationship-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
.buyer-card,
.service-script {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  background: var(--soft);
}
.buyer-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.buyer-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}
.buyer-card h3,
.service-script h3 {
  margin: 5px 0;
}
.service-script ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-request {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}
.relationship-timeline {
  display: grid;
  gap: 9px;
}
.relationship-timeline article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  border-left: 4px solid #9fcbb9;
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--soft);
}
.relationship-timeline time {
  font-size: 12px;
  font-weight: 800;
}
.relationship-timeline b,
.relationship-timeline small {
  display: block;
}
.kiosk-mode [download] {
  display: none !important;
}
@media (max-width: 800px) {
  .relationship-grid,
  .contact-request {
    grid-template-columns: 1fr;
  }
}
@media print {
  .topbar,
  .tabs,
  #edit-profile,
  button,
  .contact-request,
  footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .card {
    box-shadow: none;
    border: 0;
  }
}
.photo-actions {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.photo-actions > button {
  padding: 4px 7px;
  border: 1px solid #9db9ac;
  background: #fff;
  color: var(--green-800);
  font-size: 9px;
}
.data-refresh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #cfe0d8;
  border-radius: 14px;
  background: #f5fbf8;
  color: #315448;
  font-size: 0.88rem;
}
.data-refresh-bar.pending {
  border-color: #e6c96f;
  background: #fff9e8;
  color: #6d5814;
}
.data-refresh-bar.refreshing {
  opacity: 0.72;
}
.data-refresh-bar .secondary-button {
  width: auto;
  white-space: nowrap;
  padding: 8px 12px;
}
@media (max-width: 640px) {
  .data-refresh-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .data-refresh-bar .secondary-button {
    width: 100%;
  }
}

/* Sugestões e cotações: leitura sem rolagem lateral em tablet e celular. */
@media (max-width: 900px) {
  #portal {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }
  .opportunity-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .opportunity-tabs button {
    min-width: 0;
    padding: 10px 7px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }
  .purchase-table-wrap {
    overflow: visible;
    max-height: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
  .purchase-table-wrap .supplier-purchase-table,
  .purchase-table-wrap .quotation-card table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .purchase-table-wrap thead {
    display: none;
    position: static;
  }
  .purchase-table-wrap tbody {
    display: grid;
    gap: 12px;
  }
  .purchase-table-wrap tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(20, 72, 58, 0.07);
  }
  .purchase-table-wrap tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .purchase-table-wrap .supplier-purchase-table td:first-child {
    width: auto;
    min-width: 0;
    max-width: none;
    text-align: left;
  }
  .purchase-table-wrap tbody td:not(.empty-row)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #49675e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .purchase-table-wrap tbody .c-product,
  .purchase-table-wrap tbody .lowest-paid,
  .purchase-table-wrap tbody .empty-row {
    grid-column: 1 / -1;
  }
  .purchase-table-wrap tbody .c-product {
    min-width: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(49, 88, 77, 0.16);
    border-bottom: 1px solid rgba(49, 88, 77, 0.16);
  }
  .purchase-table-wrap .code-stack,
  .purchase-table-wrap .abc-price-reference,
  .purchase-table-wrap .c-number,
  .purchase-table-wrap input {
    width: 100%;
    min-width: 0;
  }
  .purchase-table-wrap .product-photo {
    width: 100%;
    max-width: 96px;
  }
  .purchase-table-wrap .photo-actions {
    justify-items: start;
  }
  .purchase-table-wrap .num {
    text-align: left;
  }
  .quote-workspace > header {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .quote-workspace > header > div {
    grid-column: 1 / -1;
  }
  .quote-mark-actions,
  .quotation-mark-actions {
    justify-content: stretch;
  }
  .quote-mark-actions button,
  .quotation-mark-actions button {
    flex: 1;
  }
}

@media (max-width: 560px) {
  #portal {
    width: calc(100% - 12px);
  }
  .opportunity-tabs {
    gap: 5px;
    padding: 5px;
  }
  .opportunity-tabs button {
    min-height: 50px;
    padding: 7px 4px;
    font-size: 10px;
  }
  .opportunity-tabs button span {
    display: none;
  }
  .purchase-dashboard {
    padding: 12px;
  }
  .purchase-table-wrap tbody tr {
    gap: 9px 10px;
    padding: 12px;
  }
  .purchase-table-wrap tbody td:not(.empty-row)::before {
    font-size: 8px;
  }
  .purchase-table-wrap .product-photo {
    min-height: 48px;
  }
  .purchase-table-wrap .money-input,
  .purchase-table-wrap .c-number {
    font-size: 16px;
  }
  .quote-workspace > header {
    grid-template-columns: 1fr;
  }
  .quote-qr-link,
  .quote-status {
    width: 100%;
    justify-content: center;
  }
}
.mix-product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 38, 31, 0.68);
}
.mix-product-modal.hidden {
  display: none;
}
.mix-product-card {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 35, 28, 0.3);
}
.mix-product-card .section-head {
  align-items: flex-start;
}
.mix-product-card .section-head p {
  max-width: 570px;
  margin: 6px 0 0;
  color: var(--muted);
}
.mix-product-card .catalog-search-box {
  margin-bottom: 12px;
}
.mix-product-card .catalog-search-box input {
  width: 100%;
  max-width: none;
}
.product-photo-card {
  width: min(820px, 100%);
}
.photo-bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}
.photo-bank {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--green-900);
  text-decoration: none;
}
.photo-bank:hover,
.photo-bank:focus-visible {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(36, 113, 90, 0.13);
}
.photo-bank.recommended {
  background: #eef8f3;
  border-color: #a8cbbb;
}
.photo-bank span,
.photo-bank small {
  color: var(--muted);
  font-size: 11px;
}
.product-photo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.product-photo-form .primary-button {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .photo-bank-grid,
  .product-photo-form {
    grid-template-columns: 1fr;
  }
  .product-photo-card {
    padding: 18px;
  }
  .product-photo-form .primary-button {
    width: 100%;
  }
}
.mix-product-card .quotation-result {
  padding: 4px 0 10px;
}
.mix-product-results {
  display: grid;
  gap: 9px;
}
.mix-product-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.mix-product-result b,
.mix-product-result span,
.mix-product-result small {
  display: block;
}
.mix-product-result span {
  margin: 3px 0;
  color: var(--ink);
}
.mix-product-result small {
  color: var(--muted);
}
.mix-product-result button {
  white-space: nowrap;
}
.mix-product-empty {
  padding: 24px;
  text-align: center;
  border: 1px dashed #b7c8c1;
  border-radius: 12px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .mix-product-card {
    padding: 18px;
  }
  .mix-product-result {
    grid-template-columns: 1fr;
  }
  .mix-product-result button {
    width: 100%;
  }
}
.order-unit-cell .unit-label {
  display: block;
  height: 14px;
  margin: 0 0 4px;
  color: var(--green-800);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
}
.order-unit-cell .suggested-order {
  width: 100%;
}
.direct-purchase-table:not(.abc-product-table):not(.quote-opportunity-table)
  th:nth-child(8),
.direct-purchase-table:not(.abc-product-table):not(.quote-opportunity-table)
  th:nth-child(9),
.abc-product-table th:nth-child(9),
.abc-product-table th:nth-child(10) {
  width: 125px;
}
.direct-purchase-table .order-unit-cell .c-number {
  display: block;
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 0;
}
.supplier-sales-message {
  margin: 0 0 15px;
  border: 1px solid #a8cdb9;
  border-radius: 14px;
  padding: 14px 17px;
  background: linear-gradient(135deg, #edf8f2, #f8fae8);
  color: var(--green-900);
}
.supplier-sales-message span,
.supplier-sales-message strong,
.supplier-sales-message p {
  display: block;
}
.supplier-sales-message span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.supplier-sales-message strong {
  margin: 3px 0;
  font-size: 17px;
}
.supplier-sales-message p {
  margin: 0;
  color: #315448;
  font-size: 13px;
}
.supplier-sales-message.closing {
  margin: 14px 0;
  text-align: center;
  border-color: #88ba9e;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
}
.supplier-sales-message.closing strong {
  font-size: 16px;
}
.supplier-sales-message.closing span {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #f4f8d8;
}
@media (max-width: 600px) {
  .supplier-sales-message {
    padding: 13px 14px;
  }
  .supplier-sales-message strong {
    font-size: 15px;
  }
}
.quote-opportunity-table {
  min-width: 1040px;
  table-layout: fixed;
}
.quote-opportunity-table th:nth-child(1) {
  width: 44px;
}
.quote-opportunity-table th:nth-child(2) {
  width: 76px;
}
.quote-opportunity-table th:nth-child(3) {
  width: 174px;
}
.quote-opportunity-table th:nth-child(4) {
  width: 270px;
}
.quote-opportunity-table th:nth-child(5) {
  width: 105px;
}
.quote-opportunity-table th:nth-child(6) {
  width: 110px;
}
.quote-opportunity-table th:nth-child(7),
.quote-opportunity-table th:nth-child(8) {
  width: 125px;
}
.quote-opportunity-table .order-unit-cell {
  vertical-align: top;
  padding-top: 14px;
}
.quote-opportunity-table .order-unit-cell .unit-label {
  height: 14px;
  margin-bottom: 4px;
}
.quote-opportunity-table .order-unit-cell .c-number {
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 0;
}
.quote-opportunity-table td {
  vertical-align: top;
}
.quote-opportunity-table .money-input,
.quote-products-table .money-input,
.direct-purchase-table .money-input {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.quote-opportunity-controls {
  margin-top: 0;
}
.legacy-quotation-list {
  margin-top: 22px;
}
.legacy-quotation-list:not(:has(.quotation-card)) {
  margin-top: 10px;
}
.quotation-order-summary {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.3fr;
  gap: 12px;
  margin: 0 0 8px;
}
.quotation-order-summary article {
  min-height: 100px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.quotation-order-summary small,
.quotation-order-summary strong,
.quotation-order-summary span {
  display: block;
}
.quotation-order-summary > article > small {
  color: #49675e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.quotation-order-summary > article > strong {
  margin: 8px 0 4px;
  font-size: 19px;
}
.quotation-order-summary > article > span {
  color: var(--muted);
  font-size: 10px;
}
.quotation-score .score-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
}
.quotation-score .score-line strong {
  min-width: 38px;
  font-size: 22px;
}
.quotation-score .score-line span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.score-dot {
  width: 34px;
  height: 34px;
  border: 5px solid #c7d2ce;
  border-radius: 50%;
  background: #f5f8f7;
  box-shadow: inset 0 0 0 4px #fff;
}
.quotation-score.red .score-dot {
  border-color: #d35f58;
  background: #f7d3cf;
}
.quotation-score.yellow .score-dot {
  border-color: #e0b63f;
  background: #fff0b9;
}
.quotation-score.green .score-dot {
  border-color: #4aa875;
  background: #ccebd8;
}
.score-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #526b63;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.score-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.score-legend i.red {
  background: #d35f58;
}
.score-legend i.yellow {
  background: #e0b63f;
}
.score-legend i.green {
  background: #4aa875;
}
.quotation-live-total {
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.quotation-live-total strong {
  font-size: 24px !important;
}
.quotation-live-total.active {
  border-color: #4e9fce;
  background: linear-gradient(135deg, #e8f6ff, #ccecff);
  box-shadow: 0 10px 24px rgba(37, 125, 178, 0.22);
  transform: translateY(-2px);
}
.quotation-live-total.active:after {
  content: "R$";
  position: absolute;
  right: -8px;
  top: -18px;
  color: rgba(31, 115, 166, 0.12);
  font-size: 70px;
  font-weight: 900;
}
.quotation-live-total.active small,
.quotation-live-total.active strong,
.quotation-live-total.active span {
  position: relative;
  z-index: 1;
  color: #164f70;
}
.quotation-mark-actions {
  padding: 6px 0 10px;
}
.quotation-mark-actions button {
  border: 1px solid #a9c4b8;
  background: #fff;
}
@media (max-width: 850px) {
  .quotation-order-summary {
    grid-template-columns: 1fr 1fr;
  }
  .quotation-live-total {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .quotation-order-summary {
    grid-template-columns: 1fr;
  }
  .quotation-live-total {
    grid-column: auto;
  }
  .score-legend {
    white-space: normal;
    flex-wrap: wrap;
  }
}
.abc-price-reference {
  min-width: 190px;
}
.abc-price-reference span,
.price-comparison {
  display: block;
  max-width: 210px;
  color: #527067;
  font-size: 9px;
  line-height: 1.35;
}
.price-comparison {
  min-height: 25px;
  margin-top: 4px;
}
.abc-price-reference span:not(:empty),
.price-comparison.warning {
  padding: 5px 7px;
  border-radius: 7px;
  background: #e8f6ff;
  color: #185b7d;
  font-weight: 800;
}
.price-comparison.warning {
  background: #d9effc;
  color: #154f6d;
}
.portal-store-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #315448;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.portal-store-control select {
  width: auto;
  min-width: 190px;
  min-height: 38px;
  padding: 7px 10px;
}
.required-mark {
  color: #b3261e;
  font-size: 14px;
}
.camera-search-box .camera-search-button {
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--green-700);
}
.quotation-search-box {
  width: min(390px, 45vw);
  margin-left: auto;
}
.quotation-search-box input {
  width: 100%;
  min-width: 0;
}
.portal-summary-header {
  max-height: 760px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 0.28s ease,
    opacity 0.2s ease;
}
.portal-header-toggle {
  display: block;
  width: auto;
  margin: -5px 0 6px auto;
  padding: 6px 11px;
  border: 1px solid #b7cec3;
  background: #eef6f2;
  color: var(--green-900);
  font-size: 10px;
}
.portal-header-collapsed .portal-summary-header {
  max-height: 0;
  opacity: 0;
}
.portal-header-collapsed .portal-header-toggle {
  margin-top: 0;
}
.opportunity-tabs {
  position: sticky;
  top: 74px;
  z-index: 20;
  padding: 6px;
  border-radius: 14px;
  background: rgba(242, 247, 244, 0.96);
  backdrop-filter: blur(8px);
}
.abc-bonus-control {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.abc-bonus-control .abc-bonus-switch,
.abc-bonus-control .abc-bonus-types label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.abc-bonus-control .abc-bonus-switch input,
.abc-bonus-control .abc-bonus-types input {
  width: auto;
  min-height: auto;
}
.abc-bonus-types {
  display: flex;
  gap: 12px;
}
.code-stack {
  min-width: 145px;
}
.code-stack b,
.code-stack small {
  display: block;
}
.code-stack small {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.lowest-paid small + small {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #cbd9d3;
  color: #1f684d;
  font-weight: 800;
}
.quote-products-table th:nth-child(2) {
  width: 76px;
}
.quote-products-table th:nth-child(3) {
  min-width: 170px;
}
.quote-products-table th:nth-child(7) {
  width: 125px;
}
.abc-product-table th:nth-child(2) {
  width: 76px;
}
.abc-product-table th:nth-child(4) {
  min-width: 170px;
}
@media (max-width: 640px) {
  .quotation-search-box {
    width: 100%;
    margin-left: 0;
  }
  .opportunity-tabs {
    top: 68px;
  }
  .portal-store-control {
    width: 100%;
    justify-content: space-between;
  }
  .portal-store-control select {
    min-width: 0;
    flex: 1;
  }
}
