/* Cotações de compra, Modelos de e-mails de compras e Relatórios de compras (Estoque).
   A moldura (barra de ferramentas, estado vazio, tabela) vem de estoque.css; aqui ficam só o
   formulário da cotação, o aviso dos modelos e os detalhes de tabela. Prefixo qt-. */
.qt-page { font-family: 'Source Sans Pro', 'Source Sans 3', system-ui, sans-serif; color: #222529; }
.qt-page .button .stock-icon { width: 14px; height: 14px; }

.qt-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.qt-card { background: #fff; border: 1px solid #dfe2e6; border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.qt-card-title { margin: 0; font-size: 15px; font-weight: 600; color: #0f1b24; }
.qt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.qt-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qt-wide { grid-column: 1 / -1; }
.qt-label { font-size: 13px; color: #616a71; }
.qt-label b { color: #c9302c; font-weight: 600; }
.qt-input { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid #c7ced4; border-radius: 3px; background: #fff; font: inherit; font-size: 14px; color: #262b2f; }
textarea.qt-input { resize: vertical; }
.qt-input:focus-visible { outline: 2px solid #0f1921; outline-offset: 1px; }
.qt-input[readonly] { background: #f6f6f6; }
.qt-row { display: flex; align-items: center; gap: 8px; }
.qt-item-row > select { flex: 0 0 120px; }
.qt-item-row > input[type='number'] { flex: 0 0 110px; }
.qt-item-row > input:not([type]), .qt-item-row > input[type='text'] { flex: 1 1 auto; }
.qt-rows, .qt-suppliers { display: flex; flex-direction: column; gap: 8px; }
.qt-supplier { border: 1px solid #e6e9ec; border-radius: 4px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.qt-supplier-head > input { flex: 1 1 0; min-width: 0; }
.qt-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.qt-price { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #616a71; }
.qt-money { text-align: right; }
.qt-supplier-foot { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.qt-supplier-foot .qt-price { width: 160px; }
.qt-chosen { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.qt-total-label { margin-left: auto; font-size: 13px; color: #616a71; }
.qt-total { color: #0f1b24; font-size: 15px; }
.qt-icon-button { min-width: 34px; min-height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.qt-icon-button .stock-icon { width: 14px; height: 14px; }
.qt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-actions .button:disabled { cursor: not-allowed; }
.qt-error { margin: 0; color: #c9302c; font-size: 13px; }
.qt-note { margin: 0; padding: 10px 14px; background: #f6f6f6; border: 1px solid #dfe2e6; border-radius: 4px; font-size: 13px; }

.qt-row-actions { display: flex; gap: 4px; white-space: nowrap; }
.qt-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Faixa de aviso dos modelos de e-mails (fechável). */
.qt-info { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 44px 10px 16px;
  background: #f6f6f6; border: 1px solid #dfe2e6; border-radius: 3px; font-size: 13px; line-height: 1.35; }
.qt-info p { margin: 0; }
.qt-info-icon { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #0f1921; color: #fff; }
.qt-info-icon .stock-icon { width: 13px; height: 13px; }
.qt-info-link { text-decoration: underline; cursor: help; }
.qt-info .stock-alert-close { position: absolute; top: 8px; right: 10px; }
.qt-templates th:last-child, .qt-templates td:last-child { width: 110px; }
.qt-count-label { font-weight: 600; }

@media (max-width: 760px) {
  .qt-grid { grid-template-columns: 1fr; }
  .qt-item-row { flex-wrap: wrap; }
  .qt-item-row > select, .qt-item-row > input[type='number'] { flex: 1 1 120px; }
}
