/* Rótulos e controles compartilhados. Carregar depois dos estilos das telas. */
.field,
.access-field {
  min-width: 0;
  color: #303a40;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  gap: 8px;
}

.field[hidden],
.access-field[hidden] {
  display: none;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
  color: #303a40;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.field-label .optional,
.field-label .muted,
.field-label small,
.field > .optional {
  color: #5d6872;
  font-size: 12px;
  font-weight: 400;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field select,
.field textarea,
.access-field input,
.access-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #81909e;
  border-radius: 8px;
  background: #fff;
  color: #253440;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  padding: 11px 12px;
  box-shadow: none;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field select,
.access-field input,
.access-field select {
  height: 44px;
}

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

.field input::placeholder,
.field textarea::placeholder,
.access-field input::placeholder,
.input-with-icon input::placeholder {
  color: #687580;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.access-field input:focus,
.access-field select:focus {
  border-color: #245bc0;
  box-shadow: 0 0 0 3px #245bc01c;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.access-field input:focus-visible,
.access-field select:focus-visible {
  outline: 2px solid #245bc0;
  outline-offset: 2px;
}

.field input[readonly],
.field input:disabled,
.field select:disabled,
.field textarea:disabled,
.access-field input:disabled,
.access-field select:disabled {
  background: #f1f4f6;
  color: #54616c;
}

.field-hint,
.field .field-hint,
.access-field small {
  margin: 0;
  color: #5d6872;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.input-with-icon {
  border-color: #81909e;
}

.input-with-icon > .icon {
  color: #5e7182;
}

.input-with-icon:focus-within {
  border-color: #245bc0;
  box-shadow: 0 0 0 3px #245bc01c;
}

.input-with-icon input {
  color: #253440;
}

/* O orçamento mantém uma coluna de trabalho e um resumo curto. */
.quote-editor .editor-layout,
.editor-layout.quote-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 24px;
}

.quote-editor .quote-form {
  padding: 26px;
  min-width: 0;
  overflow: visible;
}

.quote-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.quote-section-heading h2 {
  margin: 0;
  color: #263744;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.quote-section-heading > span:first-child:not(.optional) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eaf1fb;
  color: #315b8e;
  font-size: 12px;
  font-weight: 650;
}

.quote-section-heading > h2 {
  flex: 1;
}

.quote-section-heading > .optional {
  color: #5d6872;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.quote-section + .quote-section {
  padding-top: 25px;
  margin-top: 26px;
  border-top: 1px solid #e0e6eb;
}

.quote-fields,
.quote-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.quote-fields > .full,
.quote-fields > .quote-client-field,
.quote-fields > .quote-terms,
.quote-fields > .quote-customer-modes,
.quote-fields > .customer-picker,
.quote-fields > .selected-customer-card,
.quote-terms > .full,
.quote-client-field,
.quote-fields > #prospect-field,
.quote-fields > #selected-customer {
  grid-column: 1 / -1;
}

.quote-terms > .field,
.quote-fields > .field {
  margin: 0;
  min-width: 0;
}

.quote-terms .field-label {
  white-space: nowrap;
  flex-wrap: nowrap;
}

.quote-terms .field > input,
.quote-terms .field > select {
  margin: 0;
}

.quote-installments:empty {
  display: none;
}

.quote-installment-fields {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
}

.quote-installment-fields legend {
  padding: 0 4px;
  font-weight: 600;
}

.quote-installment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  align-items: end;
  gap: 8px;
  width: 100%;
}

.quote-installment-row .field {
  margin: 0;
}

.quote-installment-row .icon-button {
  width: 38px;
  height: 44px;
}

@media (max-width: 480px) {
  .quote-installment-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }
  .quote-installment-row .field {
    grid-column: 1;
  }
  .quote-installment-row .icon-button {
    grid-column: 2;
    grid-row: 2;
  }
}

.quote-client-field {
  min-width: 0;
}

.quote-customer-modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 100%;
  padding: 3px;
  margin-bottom: 0;
  border: 1px solid #cad4df;
  border-radius: 8px;
  background: #f1f4f8;
}

.quote-customer-modes button {
  height: 34px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #506575;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.quote-customer-modes button:hover {
  color: #245bc0;
}

.quote-customer-modes button[aria-pressed="true"] {
  border-color: #c3d2e4;
  background: #fff;
  color: #204f96;
  font-weight: 600;
  box-shadow: 0 1px 3px #263e5910;
}

.quote-fields > .quote-customer-modes {
  justify-self: start;
  margin-bottom: 0;
}

.customer-picker {
  position: relative;
  min-width: 0;
}

.customer-search,
[data-product-search="standard"] .product-autocomplete {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #81909e;
  border-radius: 8px;
  background: #fff;
}

.customer-search input,
.field .customer-search input,
[data-product-search="standard"] .product-autocomplete input,
:is(.quote-editor,[data-product-search="standard"]) .field .input-with-icon input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #253440;
  font-size: 13px;
  font-weight: 400;
  outline: none;
}

.customer-search:focus-within,
[data-product-search="standard"] .product-autocomplete:focus-within {
  border-color: #245bc0;
  box-shadow: 0 0 0 3px #245bc01c;
}

.customer-search > .icon {
  width: 18px;
  height: 18px;
  color: #5e7182;
}

#customer-suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 340px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #b9c8d7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px #263e591c;
}

#customer-suggestions[hidden] {
  display: none;
}

/* Rótulo de 20px + intervalo de 8px + controle de 44px. A lista abre
   sob a busca mesmo quando há a ação Cancelar troca abaixo do campo. */
.customer-picker > #customer-suggestions {
  top: 78px;
}

.customer-search kbd,
[data-product-search="standard"] .product-autocomplete kbd {
  flex-shrink: 0;
  color: #5f7282;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.customer-change-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: #526573;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.customer-change-note > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-change-note .button {
  flex-shrink: 0;
  height: 32px;
  padding: 0 8px;
  font-size: 11px;
}

.customer-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #263744;
  text-align: left;
  cursor: pointer;
}

.customer-suggestion:hover,
.customer-suggestion[aria-selected="true"],
.customer-suggestion.selected {
  background: #edf3fc;
  color: #1e4e9e;
}

.customer-option-copy {
  flex: 1;
  min-width: 0;
}

.customer-suggestion strong {
  display: block;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.customer-suggestion small,
.customer-option-meta {
  display: block;
  margin-top: 3px;
  color: #5b6d7c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.customer-suggestions-message,
#customer-suggestions > .no-suggestions,
#customer-suggestions > .suggestions-empty {
  padding: 15px 12px;
  color: #526573;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.selected-customer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c6d5e4;
  border-radius: 9px;
  background: #f4f8fd;
}

.selected-customer-copy {
  flex: 1;
  min-width: 0;
}

.selected-customer-copy strong {
  display: block;
  color: #233c52;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.selected-customer-copy small,
.selected-customer-copy p {
  display: block;
  margin-top: 4px;
  color: #546b7d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.selected-customer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.selected-customer-actions .button {
  height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.quote-editor #selected-customer:empty {
  display: none;
}

.autocomplete-wrap .product-suggestions {
  top: calc(100% + 6px);
  border-color: #b9c8d7;
  box-shadow: 0 10px 28px #263e591c;
}

.autocomplete-wrap .product-suggestions .suggestion {
  min-height: 60px;
}

.autocomplete-wrap .product-suggestions .suggestion:hover,
.autocomplete-wrap .product-suggestions .suggestion.selected,
.autocomplete-wrap .product-suggestions .suggestion[aria-selected="true"] {
  background: #edf3fc;
}

.autocomplete-wrap .product-suggestions .suggestion strong,
.autocomplete-wrap .product-suggestions .suggestion b {
  color: #263744;
  font-size: 12px;
  font-weight: 600;
}

.autocomplete-wrap .product-suggestions .suggestion small {
  color: #5b6d7c;
  font-size: 11px;
}

.quote-stock-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-top: 10px;
  color: #5b6d7c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.quote-stock-meta strong {
  color: #456359;
  font-weight: 500;
}

.quote-stock-meta .text-button {
  padding: 2px 0;
  font-size: 11px;
}

.quote-stock-meta small {
  margin-left: auto;
  color: #5b6d7c;
  font-size: 10px;
}

.quote-stock-meta.is-stale strong {
  color: #8a5c2a;
}

.quote-editor .editor-items {
  margin: 20px 0 0;
  min-width: 0;
}

.quote-editor .editor-items table {
  min-width: 560px;
}

.quote-editor .editor-items th {
  color: #495b68;
  font-size: 11px;
  font-weight: 600;
}

.quote-editor .editor-items td {
  vertical-align: middle;
}

.quote-editor .editor-items .number-input {
  width: 88px;
  height: 40px;
  border-color: #81909e;
  border-radius: 7px;
  color: #253440;
  font-size: 13px;
}

.quote-editor .editor-items .number-input.qty {
  width: 64px;
}

.quote-editor .empty-items {
  padding: 28px 15px;
  border: 1px dashed #c6d0d8;
  border-radius: 9px;
  background: #fafbfd;
}

.quote-editor .empty-items h3 {
  color: #4c606f;
  font-size: 13px;
  font-weight: 500;
}

.quote-editor .quote-notes,
.quote-editor .quote-note {
  margin: 24px 0 0;
}

.quote-editor .quote-notes textarea,
.quote-editor .quote-note textarea {
  min-height: 88px;
}

.quote-editor .quote-terms > .quote-notes {
  margin: 0;
}

.quote-document-id {
  display: block;
  margin-top: 8px;
  color: #5b6d7c;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.quote-editor .quote-summary {
  padding: 24px;
  position: sticky;
  top: 22px;
}

.quote-editor .quote-summary h2 {
  margin: 0 0 20px;
  color: #303f4b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.quote-editor .quote-summary .summary-row {
  align-items: baseline;
  gap: 12px;
  margin: 13px 0;
  color: #5b6974;
  font-size: 12px;
  line-height: 1.5;
}

.quote-editor .quote-summary .summary-row strong {
  color: #303f4b;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.quote-editor .quote-summary .summary-total {
  padding: 19px 0;
  margin: 17px 0 15px;
}

.quote-editor .quote-summary .summary-total span {
  color: #465b6a;
  font-size: 12px;
}

.quote-editor .quote-summary .summary-total strong {
  color: #1f3f6c;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.quote-editor .quote-summary .full-button {
  height: 44px;
  font-size: 13px;
}

.quote-editor .summary-hint {
  margin-top: 13px;
  color: #5d6872;
  font-size: 11px;
  line-height: 1.6;
}

.quote-editor .summary-hint:empty,
.quote-editor .form-error:empty {
  display: none;
}

.quote-editor .form-error:not(:empty) {
  margin-top: 16px;
}

.crm-form .field,
.order-delivery-panel .field {
  color: #303a40;
  font-size: 13px;
  font-weight: 600;
}

.crm-form-grid .field-hint,
.crm-editor-note {
  color: #5d6872;
}

/* Desconto comercial: modo explícito, preço bruto sempre preservado. */
.quote-discount-bar {
  display: grid;
  gap: 12px;
}

.quote-discount-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.quote-discount-modes {
  display: flex;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid #cad4df;
  border-radius: 8px;
  background: #f1f4f8;
}

.quote-discount-modes .button {
  height: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #506575;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.quote-discount-modes .button:hover {
  color: #245bc0;
}

.quote-discount-modes .button[aria-pressed="true"] {
  border-color: #c3d2e4;
  background: #fff;
  color: #204f96;
  font-weight: 600;
  box-shadow: 0 1px 3px #263e5910;
}

.quote-total-discount {
  width: min(100%, 210px);
  margin: 0;
}

.quote-discount-input {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.quote-editor .quote-discount-input select,
.quote-editor .quote-discount-input input[type="number"],
.quote-editor .field .quote-discount-input input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid #81909e;
  border-radius: 7px;
  background: #fff;
  color: #253440;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.quote-editor .quote-total-discount .quote-discount-input input[type="number"],
.quote-editor .quote-total-discount .quote-discount-input select {
  height: 44px;
  min-height: 44px;
  font-size: 13px;
}

.quote-editor .quote-discount-input input:focus,
.quote-editor .field .quote-discount-input input[type="number"]:focus,
.quote-editor .quote-discount-input select:focus {
  border-color: #245bc0;
  box-shadow: 0 0 0 3px #245bc01c;
}

.quote-editor .quote-discount-input input:focus-visible,
.quote-editor .quote-discount-input select:focus-visible {
  outline: 2px solid #245bc0;
  outline-offset: 2px;
}

.quote-editor .editor-items .quote-items-table.has-discount {
  min-width: 690px;
}

.quote-editor .editor-items .quote-items-table.has-discount td:first-child {
  min-width: 150px;
}

.quote-editor .editor-items .quote-items-table.has-discount .number-input.price {
  width: 80px;
}

.quote-editor .editor-items .quote-items-table.has-discount .number-input.qty {
  width: 56px;
}

.quote-items-table .quote-item-discount {
  width: 175px;
  min-width: 175px;
}

.quote-items-table .quote-item-discount-readonly {
  width: 130px;
  min-width: 130px;
}

.quote-items-table .quote-item-discount .quote-discount-input {
  width: 154px;
}

.quote-line-discount {
  display: block;
  margin-top: 5px;
  color: #5b6d7c;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.quote-discount-error:not(:empty) {
  margin: 12px 0 0;
}

.quote-summary-amounts {
  margin-top: 18px;
  padding-top: 7px;
  border-top: 1px solid #e0e6eb;
}

.quote-editor #summary-discount {
  color: #315e4d;
}

@media (max-width: 1120px) {
  .quote-editor .editor-layout,
  .editor-layout.quote-editor {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }

  .quote-editor .quote-form,
  .quote-editor .quote-summary {
    padding: 21px;
  }

  .selected-customer-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .selected-customer-actions {
    margin-left: auto;
  }
}

@media (max-width: 960px) {
  .quote-editor .editor-layout,
  .editor-layout.quote-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-editor .quote-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .field select,
  .field textarea,
  .access-field input,
  .access-field select,
  .customer-search input,
  .field .customer-search input,
  [data-product-search="standard"] .product-autocomplete input,
  :is(.quote-editor,[data-product-search="standard"]) .field .input-with-icon input[type="search"] {
    font-size: 16px;
  }

  .quote-editor .quote-form,
  .quote-editor .quote-summary {
    padding: 19px;
  }

  .quote-fields,
  .quote-terms {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .quote-fields > *,
  .quote-terms > * {
    min-width: 0;
  }

  .quote-section + .quote-section {
    padding-top: 21px;
    margin-top: 22px;
  }

  .quote-section-heading h2 {
    font-size: 15px;
  }

  .quote-section-heading > .optional {
    max-width: 115px;
    font-size: 10px;
  }

  .selected-customer-card {
    gap: 11px;
    padding: 13px;
  }

  .selected-customer-copy {
    min-width: 150px;
  }

  .selected-customer-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .selected-customer-actions .button {
    height: 36px;
  }

  .customer-suggestion {
    gap: 9px;
    padding: 10px 8px;
  }

  .customer-suggestion .avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  #customer-suggestions {
    max-height: 300px;
  }

  .quote-stock-meta small {
    flex-basis: 100%;
    margin-left: 0;
  }

  .quote-editor .editor-items {
    overflow-x: auto;
  }

  .quote-editor .editor-items .number-input {
    font-size: 16px;
  }

  .quote-total-discount {
    width: 100%;
  }

  .quote-discount-modes {
    width: 100%;
  }

  .quote-discount-modes .button {
    flex: 1;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  .quote-total-discount > .quote-discount-input {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .quote-editor .quote-discount-input select,
  .quote-editor .quote-discount-input input[type="number"],
  .quote-editor .field .quote-discount-input input[type="number"],
  .quote-editor .quote-total-discount .quote-discount-input input[type="number"],
  .quote-editor .quote-total-discount .quote-discount-input select {
    font-size: 16px;
  }

  .quote-items-table .quote-item-discount .quote-discount-input {
    grid-template-columns: 78px minmax(0, 1fr);
    width: 168px;
  }

  .quote-editor .quote-summary .summary-total strong {
    font-size: 29px;
  }
}

/* Cadastro por nomes e finalidade. Direção AQQ/unslop: Damir Sokolovsky, CC BY 4.0. */
.customer-create-form .modal-intro { margin-bottom: 24px; }
.customer-form-section { min-width: 0; }
.customer-form-section + .customer-form-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #e0e6eb;
}
.customer-form-section h3 {
  margin: 0 0 16px;
  color: #303a40;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.customer-form-grid, .customer-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.customer-location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.customer-form-grid > .full { grid-column: 1 / -1; }
.customer-create-form .field { margin: 0; }
.customer-create-form .field-hint {
  color: #5d6872;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.customer-display-name { margin-top: 16px; }
.customer-display-name summary {
  width: fit-content;
  max-width: 100%;
  color: #3b5d86;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
.customer-display-name summary .optional { color: #5d6872; font-weight: 400; }
.customer-display-name[open] > .field { margin-top: 12px; }
.customer-street { margin-top: 16px !important; }
.municipality-picker { position: relative; min-width: 0; }
[data-municipality-options] {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid #b9c8d7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px #263e5918;
}
[data-municipality-options][hidden] { display: none; }
.municipality-option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #263744;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.municipality-option:hover, .municipality-option[aria-selected="true"] {
  background: #edf3fc;
  color: #1e4e9e;
}
.municipality-message {
  padding: 12px;
  color: #526573;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}
.customer-create-form .form-error:empty { display: none; }
.customer-create-form .form-error:not(:empty) { margin-top: 20px; }
.customer-create-form .modal-actions { margin-top: 24px; }
@media (max-width: 640px) {
  .customer-form-grid, .customer-location-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-form-grid > .full { grid-column: auto; }
  .customer-display-name summary { font-size: 14px; }
  .municipality-option { min-height: 44px; font-size: 16px; }
}

/* Integração gerencial AQQ — direção unslop, Damir Sokolovsky, CC BY 4.0. */
.totvs-connection summary{cursor:pointer;font-size:16px;font-weight:600;padding:4px 0 16px;}
.totvs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.totvs-fields>.field:first-child{grid-column:1/-1;}
.totvs-check{display:flex;align-items:flex-start;gap:12px;margin:20px 0;color:#303a40;line-height:1.5;}
.totvs-check input{width:18px;height:18px;flex:none;margin-top:3px;}
.integration-card+.integration-card{margin-top:20px;}
.freight-summary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:16px 20px;margin:16px 0;background:#fff;border:1px solid #e0e5e8;border-radius:12px;}
.freight-summary strong{font-variant-numeric:tabular-nums;}
@media(max-width:640px){.totvs-fields{grid-template-columns:1fr;}.totvs-check{font-size:14px;}}
@media(max-width:640px){
 .topbar{gap:8px;}
 .topbar .breadcrumb{min-width:0;flex:1;}
 .topbar .breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .header-actions{gap:8px;flex-shrink:0;}
 .header-actions [data-route="integration"]{min-width:32px;padding:8px;}
 .header-actions [data-route="integration"] span{display:none;}
}

/* Escritas comerciais: mesma direção AQQ/unslop, sem nova navegação. */
.erp-dialog{width:720px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.erp-dialog form>p,.erp-dialog .totvs-fields{margin-bottom:20px}
.erp-dialog .totvs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.erp-dialog .totvs-check{display:flex;align-items:flex-start;gap:8px;margin:16px 0;line-height:1.5}
.erp-dialog .totvs-check input{flex:none;margin-top:4px}

.erp-quote-edit.quote-form {
  --erp-edit-padding: 24px;
  container: erp-quote / inline-size;
  padding: var(--erp-edit-padding);
  overflow: visible;
}

.erp-quote-edit .erp-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.erp-quote-edit .erp-edit-layout :is(.erp-edit-items-column,.erp-edit-section) { min-width: 0; }
.erp-quote-edit form > .form-error { margin-block: 12px 0; }
.erp-quote-edit .erp-edit-items-column > .erp-edit-section + .erp-edit-section { margin-top: 24px; }

.erp-quote-edit .erp-edit-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 12px;
}

.erp-quote-edit .erp-edit-section h2 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.erp-quote-edit .erp-edit-heading h2 { margin-inline-end: auto; }

.erp-quote-edit :is(.erp-edit-count,[data-erp-removal-count]) {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.erp-quote-edit [data-erp-removal-count] { color: #913c30; }

.erp-quote-edit .erp-edit-section > .data-scope {
  margin: 8px 0 12px;
  font-size: 12px;
}

.erp-quote-edit .erp-product-search { max-width: 480px; }

.quote-product-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.quote-product-tools > .autocomplete-wrap { flex: 1 1 220px; min-width: 0; }
.quote-product-tools > .room-picker-button { min-height: 40px; }
.quote-editor .quote-product-tools > .room-picker-button { min-height: 44px; }
.room-picker-items {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.room-picker-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  overflow-wrap: anywhere;
}
.room-picker-items li + li { border-top: 1px solid var(--line); }
.room-picker-items li > div:last-child { text-align: right; }
.room-picker-items small { display: block; color: var(--muted); margin-top: 2px; }
.room-picker-message { margin-top: 10px; }

.erp-quote-edit .product-autocomplete {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
}

.erp-quote-edit .product-autocomplete:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.erp-quote-edit #product-search {
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.erp-quote-edit #product-suggestions {
  top: calc(100% + 4px);
  max-height: min(320px, 50dvh);
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid #c3cdc7;
  border-radius: 8px;
  box-shadow: 0 8px 24px #27332f14;
}

.erp-quote-edit #product-suggestions .suggestion {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) max-content 16px;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
  border-radius: 4px;
}

.erp-quote-edit #product-suggestions .suggestion:is(:hover,.selected,[aria-selected="true"]) {
  background: #edf2f8;
}

.erp-quote-edit #product-suggestions .product-symbol {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.erp-quote-edit #product-suggestions .product-symbol .icon,
.erp-quote-edit #product-suggestions .suggestion > .icon {
  width: 16px;
  height: 16px;
}

.erp-quote-edit #product-suggestions .suggestion-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}

.erp-quote-edit #product-suggestions .suggestion-copy > strong {
  flex-basis: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-quote-edit #product-suggestions :is(.suggestion-copy > strong,.suggestion > b) {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.erp-quote-edit #product-suggestions .suggestion > b {
  align-self: center;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.erp-quote-edit #product-suggestions .suggestion-copy > small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.erp-quote-edit #product-suggestions .suggestion-copy > .stock-slot { margin: 0; }
.erp-quote-edit #product-suggestions .stock-label { padding: 0 4px; font-size: 10px; }
.erp-quote-edit #product-suggestions .small-empty { padding: 12px; }

.erp-quote-edit .erp-price-review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 12px;
}

.erp-quote-edit .erp-item-list {
  container: erp-items / inline-size;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
}

.erp-quote-edit .erp-item-grid {
  display: grid;
  grid-template-columns: minmax(124px, 1fr) minmax(84px, .35fr) 68px 132px minmax(84px, .35fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.erp-quote-edit .erp-item-columns {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--bg);
  border-radius: 7px 7px 0 0;
  color: #53615c;
  font-size: 12px;
}

.erp-quote-edit .erp-item-columns > :is(:nth-child(2),:nth-child(5)) { text-align: right; }
.erp-quote-edit .erp-item-rows { list-style: none; margin: 0; padding: 0; }
.erp-quote-edit .erp-item-row { min-height: 56px; border-top: 1px solid var(--line); }
.erp-quote-edit .erp-item-row:last-child { border-radius: 0 0 7px 7px; }
.erp-quote-edit .erp-item-row > * { min-width: 0; }

.erp-quote-edit .erp-item-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.35;
}

.erp-quote-edit .erp-item-product > strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.erp-quote-edit .erp-item-product > small {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.erp-quote-edit .erp-item-row :is(.erp-item-unit,.erp-item-total) {
  text-align: right;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.erp-quote-edit .erp-item-unit { color: #53615c; }
.erp-quote-edit .erp-item-total { color: var(--ink); font-weight: 600; }

.erp-quote-edit .erp-item-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html:root .erp-quote-edit .erp-item-row input:is([type="number"],[type="date"]) {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid #98a69e;
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  scroll-margin-block-end: 76px;
}

.erp-quote-edit .erp-item-action { justify-self: end; }
.erp-quote-edit .erp-item-remove .icon { width: 16px; height: 16px; }
.erp-quote-edit .erp-item-remove:not(:disabled):hover {
  color: #913c30;
  background: #f7e9e5;
}

.erp-quote-edit :is([data-erp-remove-icon],[data-erp-undo-icon],[data-erp-removal-note],[data-erp-removal-count])[hidden] {
  display: none;
}

.erp-quote-edit .erp-item-row[data-removed] {
  background: #fcf3f0;
  box-shadow: inset 2px 0 #b9614f;
}

.erp-quote-edit .erp-item-row[data-removed] .erp-item-product > strong { text-decoration: line-through; }
.erp-quote-edit .erp-item-row[data-removed] [data-erp-removal-note] { color: #913c30; font-weight: 500; }
.erp-quote-edit .erp-item-row[data-removed] input:disabled { color: #53615c; background: #fff8f6; }

.erp-quote-edit .erp-new-items .erp-item-list { border-color: #c9ddd0; }
.erp-quote-edit .erp-new-items .erp-item-columns { background: #eef5ef; }
.erp-quote-edit .erp-new-items .erp-item-row { background: #f8fbf8; }

.erp-quote-edit .erp-new-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  padding: 4px 12px;
  color: var(--green);
  font-size: 12px;
}

.erp-quote-edit .erp-new-subtotal strong { font-size: 14px; font-weight: 600; }
.erp-quote-edit .erp-new-subtotal small { color: var(--muted); font-size: 11px; }

.erp-quote-edit .erp-edit-settings {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
}

.erp-quote-edit .erp-edit-terms { grid-template-columns: 1fr; gap: 12px; }
.erp-quote-edit .erp-edit-terms > .field:first-child { grid-column: auto; }
.erp-quote-edit .erp-tes-controls { margin-top: 16px; }
.erp-quote-edit .erp-tes-controls > .data-scope { font-size: 12px; }

.erp-quote-edit .erp-edit-settings :is(.erp-edit-terms,.erp-tes-controls) .field {
  gap: 4px;
}

.erp-quote-edit .erp-edit-settings .field :is(input,select):not([type="checkbox"]):not([type="radio"]) {
  height: 36px;
  min-height: 36px;
  padding: 4px 8px;
}

html:root .erp-quote-edit .erp-edit-settings .tes-code-entry > .button {
  min-height: 36px;
  padding: 4px 8px;
  font-size: 12px;
}

.erp-quote-edit .erp-quote-discount {
  min-width: 0;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.erp-quote-edit .erp-quote-discount > h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.erp-quote-edit .erp-discount-toolbar {
  display: grid;
  max-width: 320px;
  gap: 8px;
}

.erp-quote-edit .erp-quote-discount .field { gap: 4px; margin: 0; }
.erp-quote-edit .erp-quote-discount .field :is(input,select) {
  width: 100%;
  min-width: 0;
}

.erp-quote-edit :is(.erp-discount-total,.erp-discount-items) {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.erp-quote-edit .erp-discount-total { max-width: 216px; }
.erp-quote-edit .erp-discount-total:not([hidden]) { display: grid; gap: 4px; }
.erp-quote-edit .erp-discount-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
}
.erp-quote-edit :is(.erp-discount-entry input,.erp-discount-original span) { font-variant-numeric: tabular-nums; }
.erp-quote-edit .erp-discount-current:not([hidden]) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.erp-quote-edit .erp-discount-current strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.erp-quote-edit .erp-discount-items { max-width: 400px; margin-top: 12px; }
.erp-quote-edit .erp-discount-items > legend { padding: 0; margin-bottom: 8px; }
.erp-quote-edit .erp-discount-items .erp-discount-search { margin-bottom: 8px; }
.erp-quote-edit .erp-discount-item-scroll {
  max-height: min(320px, 48dvh);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.erp-quote-edit .erp-discount-item-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.erp-quote-edit .erp-discount-list { margin: 0; padding: 0; list-style: none; }
.erp-quote-edit .erp-discount-item { padding: 8px; overflow-wrap: anywhere; }
.erp-quote-edit .erp-discount-item + .erp-discount-item { border-top: 1px solid var(--line); }
.erp-quote-edit .erp-discount-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}
.erp-quote-edit .erp-discount-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.erp-quote-edit .erp-discount-item-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 1.2fr);
  align-items: end;
  gap: 8px;
  margin-top: 4px;
}
.erp-quote-edit .erp-discount-original span {
  display: block;
  font-size: 13px;
  line-height: 20px;
}
.erp-quote-edit .erp-discount-item-scroll [data-erp-discount-empty] { margin: 0; padding: 12px; }
.erp-quote-edit .erp-discount-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 12px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.erp-quote-edit .erp-discount-amounts > div { flex: 0 1 116px; }
.erp-quote-edit .erp-discount-amounts dt { color: var(--muted); font-size: 12px; }
.erp-quote-edit .erp-discount-amounts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.erp-quote-edit .erp-discount-amounts > div:last-child dd { color: var(--green); }
.erp-quote-edit .erp-quote-discount .erp-discount-amounts {
  display: grid;
  max-width: 400px;
  gap: 4px;
}
.erp-quote-edit .erp-quote-discount .erp-discount-amounts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}
.erp-quote-edit .erp-quote-discount .erp-discount-amounts > div:last-child {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 4px;
}
.erp-quote-edit .erp-quote-discount .erp-discount-amounts dd {
  margin: 0;
  font-size: 13px;
  text-align: right;
}
.erp-quote-edit .erp-discount-error { margin-top: 8px; }
.erp-quote-edit .erp-discount-rounding { margin-top: 8px; }
.erp-quote-edit > .erp-discount-amounts { margin-bottom: 12px; }

.erp-quote-edit .erp-edit-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 20px calc(-1 * var(--erp-edit-padding)) calc(-1 * var(--erp-edit-padding));
  padding: 12px var(--erp-edit-padding);
  border-color: var(--line);
  border-radius: 0 0 12px 12px;
  background: var(--surface);
}

@container erp-quote (min-width: 640px) and (max-width: 999px) {
  .erp-quote-edit .erp-edit-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container erp-quote (min-width: 1000px) {
  .erp-quote-edit .erp-edit-layout { grid-template-columns: minmax(0, 1fr) minmax(264px, 280px); }
}

@container erp-items (max-width: 599px) {
  .erp-quote-edit .erp-item-columns { display: none; }
  .erp-quote-edit .erp-item-row:first-child { border-top: 0; border-radius: 7px 7px 0 0; }
  .erp-quote-edit .erp-item-row:only-child { border-radius: 7px; }
  .erp-quote-edit .erp-item-row {
    grid-template-columns: minmax(56px, 1fr) minmax(48px, .6fr) minmax(116px, 1.65fr) minmax(56px, 1fr);
    grid-template-areas: "product product product action" "unit qty delivery total";
    align-items: end;
  }
  .erp-quote-edit .erp-item-product { grid-area: product; align-self: center; }
  .erp-quote-edit .erp-item-unit { grid-area: unit; }
  .erp-quote-edit .erp-item-quantity { grid-area: qty; }
  .erp-quote-edit .erp-item-delivery { grid-area: delivery; }
  .erp-quote-edit .erp-item-total { grid-area: total; }
  .erp-quote-edit .erp-item-action { grid-area: action; align-self: start; }
  .erp-quote-edit .erp-item-row .erp-item-unit { text-align: left; }
  .erp-quote-edit .erp-item-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 2px;
    overflow: visible;
    clip-path: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
  }
  html:root .erp-quote-edit .erp-item-remove { width: 40px; height: 40px; }
}

@container erp-items (max-width: 431px) {
  .erp-quote-edit .erp-item-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
    grid-template-areas: "product product product action" "qty delivery delivery delivery" "unit unit total total";
  }
}

@media (max-width: 640px) {
  .erp-quote-edit.quote-form { --erp-edit-padding: 12px; }
  .erp-quote-edit #product-suggestions .suggestion { grid-template-columns: minmax(0, 1fr) max-content 16px; }
  .erp-quote-edit #product-suggestions .product-symbol { display: none; }
}
.erp-actions .modal-actions{flex-wrap:wrap;margin-top:16px}
.erp-actions .erp-operation{margin:16px 0;flex-wrap:wrap}
.erp-blockers{padding-left:20px;line-height:1.7;margin-top:16px}
.erp-tes-controls>.data-scope{margin-bottom:12px}
.tes-search-field{display:flex;flex-direction:column;gap:8px}
.tes-code-entry{display:flex;align-items:center;gap:8px;min-width:0}
.tes-code-entry>input{flex:1;min-width:64px!important}
.tes-code-entry>.button{flex:none;min-height:44px;white-space:nowrap;padding:10px 12px}
.quote-terms>.tes-search-open,.totvs-fields>.tes-search-open{grid-column:1/-1}
.tes-reference{border:1px solid #cbd5d2;border-radius:10px;padding:16px;background:#f8faf9;color:#303a40;font-weight:400;min-width:0}
.tes-reference[hidden]{display:none}
.tes-reference-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}
.tes-reference-heading>strong{font-size:15px;font-weight:600}
.tes-reference>.field{margin-top:16px;display:flex;flex-direction:column;gap:6px}
.tes-reference-source{font-size:11px;color:#5d6872;margin:12px 0}
.tes-result{background:#fff;border:1px solid #dde4e0;border-radius:8px;overflow:hidden;margin-top:10px}
.tes-result-select{width:100%;border:0;background:#fff;text-align:left;padding:12px 14px;display:flex;flex-direction:column;gap:8px;color:#253440;cursor:pointer}
.tes-result-select:hover,.tes-result-select:focus-visible{background:#edf4f0}
.tes-result-select:focus-visible{outline:2px solid #245bc0;outline-offset:-2px}
.tes-result-title{display:flex;align-items:baseline;gap:12px;line-height:1.5;font-size:14px}
.tes-result-title>strong{font-size:16px;flex:none;font-variant-numeric:tabular-nums}
.tes-result-title>span{overflow-wrap:anywhere}
.tes-result-meta{display:flex;gap:4px 14px;flex-wrap:wrap;color:#5d6872;font-size:11px;line-height:1.6}
.tes-result-meta b{font-weight:500;color:#303a40}
.tes-use-label{font-size:11px;font-weight:600;color:#315947}
.tes-result-details{border-top:1px solid #e5eae7;padding:0 14px}
.tes-result-details>summary{font-size:12px;padding:10px 0;cursor:pointer;font-weight:500}
.tes-result-details>.field{display:flex;flex-direction:column;gap:6px;margin:4px 0 12px}
.tes-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:0}
.tes-field-grid>div{border-top:1px solid #e5eae7;min-width:0;padding:10px 0}
.tes-field-grid dt{font-size:11px;color:#5d6872;font-weight:500;overflow-wrap:anywhere}
.tes-field-grid dt>small{font-size:10px;font-weight:400;margin-left:4px;color:#75816f}
.tes-field-grid dd{font-size:12px;color:#253440;margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.tes-empty{color:#75816f;font-weight:400}
.tes-search-message{font-size:13px;line-height:1.7;margin:16px 0;color:#5d6872}
.tes-search-message[role=alert]{color:#9c382b}
.tes-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:12px;color:#5d6872}
.tes-pagination>div{display:flex;gap:8px}
@media(max-width:640px){.tes-code-entry{flex-wrap:wrap}.tes-code-entry>input{flex-basis:90px}.tes-code-entry>.button{flex-grow:1}.tes-reference{padding:12px}.tes-reference-heading{align-items:flex-start;flex-wrap:wrap}.tes-reference-heading .button{font-size:12px;padding:6px;min-height:36px}.tes-field-grid{grid-template-columns:1fr}.tes-pagination{align-items:flex-start;flex-direction:column}.tes-result-select{padding:12px}.tes-result-title{gap:8px}}
.erp-update-lines{margin-top:24px}
.erp-update-lines legend{font-size:14px;font-weight:500;padding:0 8px}
@media(max-width:640px){.erp-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:20px}.erp-dialog .totvs-fields{grid-template-columns:1fr}.erp-actions .modal-actions{justify-content:flex-start}.erp-actions .section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}}

.quote-submit-result{border-top:1px solid #d4dcd6;margin-top:16px;padding-top:16px;font-size:12px;line-height:1.6}
.quote-submit-result>strong{display:block;font-size:14px;font-weight:600;color:#27332f}
.quote-submit-result>p{margin:8px 0 0;color:#5d6872;overflow-wrap:anywhere}
.quote-submit-result>.button{margin-top:12px;width:100%}

.toast .button{color:inherit;background:transparent;border-color:#ffffff55;white-space:nowrap;font-size:12px;flex:none}
[data-orders-refresh-status]:empty{display:none}
[data-orders-refresh-status]{margin:0 0 16px}
