/* Extensões operacionais do design system. Sem mudanças na tela de login. */
#modalRoot .modal.modal-with-footer {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  min-width: 0;
}
#modalRoot .modal-with-footer .modal-head {
  flex: 0 0 auto;
  min-width: 0;
}
#modalRoot .modal-with-footer .modal-body {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#modalRoot .modal-with-footer .detail-box {
  min-width: 0;
  overflow-wrap: anywhere;
}
#modalRoot .modal-footer {
  flex: 0 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
#modalRoot .workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}
#modalRoot .workflow-actions button,
#modalRoot .workflow-corrections button {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.35;
}
#modalRoot .workflow-corrections {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
#modalRoot .workflow-corrections summary {
  cursor: pointer;
  font-weight: 500;
}
#modalRoot .workflow-corrections > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#modalRoot .workflow-corrections summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 640px) {
  #modalRoot .modal.modal-with-footer {
    max-height: calc(100dvh - 24px);
  }
  #modalRoot .modal-footer {
    padding: 12px 16px;
  }
  #modalRoot .workflow-actions button {
    flex: 1 1 150px;
  }
}
@media (max-height: 480px) {
  #modalRoot .modal-with-footer .modal-head {
    padding: 10px 16px;
  }
  #modalRoot .modal-footer {
    padding: 8px 16px;
  }
}
#modalRoot .workflow-section {
  margin: 24px 0;
}
#modalRoot .workflow-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
#modalRoot .workflow-pr-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
#modalRoot .workflow-pr {
  display: flex;
  width: 100%;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  border-radius: 0;
}
#modalRoot .workflow-pr:last-child {
  border-bottom: 0;
}
#modalRoot .workflow-pr:hover {
  background: var(--panel2);
}
#modalRoot .workflow-pr > span:first-child {
  flex: 1;
  min-width: 0;
}
#modalRoot .workflow-pr strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
}
#modalRoot .workflow-pr .badge {
  flex-shrink: 0;
}
#modalRoot .workflow-pr-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#modalRoot .workflow-allocation {
  min-width: 620px;
  margin-top: 20px;
}
#modalRoot .workflow-allocation input[type='text'] {
  width: 150px;
  margin: 0;
}
#modalRoot .workflow-allocation input[type='checkbox'] {
  width: 18px;
  height: 18px;
}
#modalRoot .workflow-items {
  min-width: 0;
  table-layout: fixed;
}
#modalRoot .workflow-items th:first-child {
  width: 65%;
}
#modalRoot .workflow-items th {
  text-transform: none;
  letter-spacing: 0;
}
#modalRoot .workflow-items.with-remaining {
  min-width: 480px;
  table-layout: auto;
}
#modalRoot .workflow-items.with-remaining th:first-child {
  width: auto;
}
#modalRoot .workflow-items td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}
#modalRoot .workflow-items .item-sub {
  white-space: normal;
}
#modalRoot .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#modalRoot .data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel2);
}
#modalRoot .data-table :is(th, td) {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
#modalRoot .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
#modalRoot .workflow-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
#modalRoot .workflow-order > div {
  min-width: 0;
}
#modalRoot .workflow-order [data-order-number] {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  user-select: all;
}
#modalRoot .workflow-order p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#modalRoot .workflow-order button {
  flex-shrink: 0;
}
#modalRoot .workflow-feedback {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}
#modalRoot .quantity-complete {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--success);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
#modalRoot .quantity-complete svg {
  flex: 0 0 16px;
  margin-top: 2px;
}
#modalRoot .allocation-completed input[type='checkbox'] {
  opacity: 0.5;
  cursor: not-allowed;
}
#modalRoot .workflow-removed {
  margin: 20px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
#modalRoot .workflow-removed summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}
#modalRoot .editor-requester strong {
  display: block;
  font-size: 15px;
}
#modalRoot .workflow-note {
  overflow-wrap: anywhere;
}
#modalRoot .workflow-items td:first-child {
  overflow-wrap: anywhere;
}
#app .request-order-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
#app .request-order-title {
  font-size: 17px;
}
#app .request-brief {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  #modalRoot .workflow-pr {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  #modalRoot .workflow-pr > span:first-child {
    flex-basis: 100%;
  }
}
