/* Area ampla para conferencia de NF-e de entrada. */
.inbound-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.inbound-list .table-row--inbound {
  min-height: 78px;
}

.inbound-invoice-workspace .form-footer {
  position: static;
  inset: auto;
  z-index: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.inbound-dfe-card > .form-footer {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.inbound-list .table-row--inbound {
  grid-template-columns: minmax(120px, 0.85fr) minmax(160px, 1.35fr) minmax(0, 0.8fr) minmax(86px, auto) minmax(104px, auto) minmax(112px, auto);
  gap: 8px;
  padding: 10px;
}

.inbound-list .table-row--inbound .row-actions {
  justify-content: flex-end;
}

.inbound-list .inbound-view-button {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .inbound-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .inbound-list .table-row--inbound {
    grid-template-columns: minmax(112px, 0.8fr) minmax(150px, 1.2fr) minmax(0, 0.65fr) minmax(82px, auto) minmax(96px, auto) minmax(106px, auto);
    gap: 7px;
    padding: 9px;
  }

  .inbound-list .inbound-view-button {
    padding: 0 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 880px) {
  .inbound-list .table-row--inbound {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "invoice action"
      "supplier action"
      "company total"
      "status action";
    align-items: center;
    gap: 7px 10px;
    padding: 12px;
  }

  .inbound-list .table-row--inbound > :nth-child(1) { grid-area: invoice; }
  .inbound-list .table-row--inbound > :nth-child(2) { grid-area: supplier; }
  .inbound-list .table-row--inbound > :nth-child(3) { grid-area: company; }
  .inbound-list .table-row--inbound > :nth-child(4) { grid-area: total; }
  .inbound-list .table-row--inbound > :nth-child(5) { grid-area: status; }
  .inbound-list .table-row--inbound > :nth-child(6) { grid-area: action; align-self: stretch; }
  .inbound-list .inbound-view-button { height: 100%; }
}

.inbound-finalize-options label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.inbound-finalize-options label:hover {
  border-color: rgba(217, 180, 91, 0.4);
  background: var(--surface);
}

.inbound-finalize-options input[type="checkbox"] {
  width: 21px;
  min-width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 0;
  padding: 0;
  accent-color: var(--green-700);
}

.inbound-finalize-options label > span {
  display: grid;
  gap: 3px;
}

.inbound-finalize-options label strong {
  font-size: 0.88rem;
}

.inbound-finalize-options label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.inbound-finalize-options label:has(input:checked) {
  border-color: rgba(48, 158, 94, 0.5);
  background: var(--green-soft);
}

.inbound-finalize-options label:has(input:disabled) {
  cursor: default;
  opacity: 0.72;
}

.inbound-entry-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.inbound-entry-type > div {
  display: grid;
  gap: 3px;
}

.inbound-entry-type strong {
  font-size: 0.88rem;
}

.inbound-entry-type small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.inbound-entry-type select {
  width: min(100%, 250px);
  min-width: 230px;
}

.inbound-entry-type.is-packaging {
  border-color: rgba(201, 135, 75, 0.5);
  background: rgba(201, 135, 75, 0.1);
}

.inbound-payment-plan {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(48, 158, 94, 0.42);
  border-radius: 10px;
  background: var(--green-soft);
}

.inbound-payment-plan-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.inbound-payment-plan-head > div {
  display: grid;
  gap: 3px;
}

.inbound-payment-plan-head small,
.inbound-payment-plan-head > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.inbound-payment-plan-head > span {
  color: var(--green-800);
  text-align: right;
}

.inbound-payment-plan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.inbound-payment-plan-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 10px;
  border: 1px solid rgba(48, 158, 94, 0.25);
  border-radius: 8px;
  background: var(--surface);
}

.inbound-payment-plan-list article span,
.inbound-payment-plan-list article small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.inbound-payment-plan-list article strong {
  grid-row: span 2;
  align-self: center;
  color: var(--green-800);
  font-size: 0.94rem;
}

.inbound-origin-verification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(218, 155, 28, 0.42);
  border-radius: 10px;
  background: rgba(218, 155, 28, 0.08);
}

.inbound-origin-verification > div {
  display: grid;
  gap: 3px;
}

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

.inbound-origin-verification strong {
  color: var(--text);
  font-size: 0.86rem;
}

.inbound-origin-verification small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.inbound-origin-verification.is-confirmed {
  border-color: rgba(48, 158, 94, 0.42);
  background: var(--green-soft);
}

@media (max-width: 640px) {
  .inbound-entry-type {
    align-items: stretch;
    flex-direction: column;
  }

  .inbound-entry-type select {
    width: 100%;
    min-width: 0;
  }

  .inbound-origin-verification {
    align-items: stretch;
    flex-direction: column;
  }

  .inbound-origin-actions {
    justify-content: stretch;
  }

  .inbound-origin-actions .button {
    flex: 1 1 190px;
  }
}
