/* Tabelas de Entregas e Controles de Quantidade */
.table-header { display: grid; grid-template-columns: 1.2fr 2fr 1.5fr 1fr; gap: 16px; padding: 12px 20px; font-weight: 600; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.table-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 20px; display: grid; grid-template-columns: 1.2fr 2fr 1.5fr 1fr; gap: 16px; align-items: center; margin-top: 8px; font-size: 15px; }

.item-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: none; padding-bottom: 0; }
.item-row h4 { margin: 0 0 4px 0; font-size: 15px; }
.item-row span { color: var(--muted); font-size: 13px; }

.qty-ctrl { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.qty-ctrl button { background: transparent; border: none; color: var(--text); font-weight: bold; cursor: pointer; padding: 4px 10px; border-radius: 4px;}
.qty-ctrl button:hover { background: var(--track); }
.qty-ctrl div { width: 36px; text-align: center; font-weight: 600; font-size: 14px; }

.link-danger { color: #d93025; text-decoration: underline; cursor: pointer; font-size: 13px; background: none; border: none; padding: 0; }

/* Tela de Assinatura */
.signature-area { height: 140px; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg); margin-top: 12px; position: relative; color: var(--muted); font-style: italic; }
.signature-area.signed { font-family: 'Brush Script MT', cursive; font-size: 38px; font-style: normal; color: var(--text); }
.clear-sig { position: absolute; bottom: -28px; right: 0; font-size: 13px; color: var(--text); cursor: pointer; text-decoration: underline; background: none; border: none; }

@media (max-width: 760px) {
  .table-header { display: none; }
  .table-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
}