/* Controles de compra e IVA y estados de entrega: texto, selección y color. */
.cost-tax-summary{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:8px 0;font-size:.86rem}.cost-tax-summary strong{font-variant-numeric:tabular-nums}.cost-tax-summary .tax-warning{background:#fff4d3;color:#74500a}.cost-estimate{padding:14px;border:1px solid #c9d9d4;border-radius:10px;background:#f4faf7;margin:12px 0}.cost-estimate strong{display:block;font-size:1.12rem}.cost-estimate small{display:block;margin-top:5px}.cost-batch{width:100%;min-width:690px}.cost-batch input,.cost-batch select{width:100%;min-width:90px}.cost-batch th{text-align:left}.cost-batch td{vertical-align:top;padding:10px 7px}.cost-batch td:first-child{max-width:260px}.cost-batch td:first-child small{display:block;margin-top:5px}.cost-batch [data-cost-field="proveedor"]{margin-top:8px}.cost-batch .cost-batch-value{white-space:nowrap}.cost-batch-total{display:flex;flex-wrap:wrap;gap:10px 26px}.cost-batch-total strong{display:inline}.delivery-state-field{border:0;padding:0;margin:0;min-width:0;grid-column:1/-1}.delivery-state-field legend{font-weight:600;font-size:.85rem;margin-bottom:8px}.delivery-states{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.delivery-states button{min-height:37px;padding:7px 10px;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:8px;font-size:.83rem}.delivery-states button::before{content:"○";display:inline-block;margin-right:6px;font-weight:700}.delivery-states button[aria-pressed="true"]::before{content:"✓"}.delivery-states button[data-state="pendiente"]{border-color:#c4a354;color:#735115;background:#fff9e7}.delivery-states button[data-state="en_ruta"]{border-color:#719dd2;color:#1c4e87;background:#edf5ff}.delivery-states button[data-state="entregada"]{border-color:#64a181;color:#1c6543;background:#e9f8ee}.delivery-states button[data-state="cancelada"]{border-color:#bd8490;color:#8c3045;background:#fff0f3}.delivery-states button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:1px;font-weight:700}.delivery-states button:focus-visible{outline:3px solid #172c59;outline-offset:3px}.delivery-states button:disabled{opacity:.72;cursor:default}.delivery-state-hint{font-size:.8rem;color:#536375;display:block;margin-top:5px}.purchase-quantity-label{font-size:.82rem;color:#506070}
@media(max-width:640px){.cost-batch,.cost-batch tbody{display:block;min-width:0;width:100%}.cost-batch thead{display:none}.cost-batch tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px;border-bottom:2px solid #dce6ef}.cost-batch td{display:block;min-width:0;border:0;padding:7px 4px}.cost-batch td:nth-child(-n+3){grid-column:1/-1;max-width:none}.cost-batch td:not(:first-child)::before{display:block;font-size:.76rem;font-weight:600;margin-bottom:6px;color:#536375}.cost-batch td:nth-child(2)::before{content:"Costo por unidad"}.cost-batch td:nth-child(3)::before{content:"IVA del importe"}.cost-batch td:nth-child(4)::before{content:"Alícuota %"}.cost-batch td:nth-child(5)::before{content:"Costo final / unidad"}.cost-batch input,.cost-batch select{min-width:0}.cost-batch td:first-child strong{display:block}.cost-batch-total{display:block}.cost-batch-total span{display:block;margin-bottom:8px}}

/* Agenda: el contenido deja margen para campos, acciones y foco del teclado. */
#content>.panel:has(#agendaSearch){padding:22px}#agendaList{display:grid;gap:14px;margin-top:18px}.agenda-card{padding:18px;margin:0}.agenda-card p{overflow-wrap:anywhere}.agenda-card button{min-height:42px}#content>.panel:has(#agendaSearch)>.panel{padding:18px;margin:16px 0}#content>.panel:has(#agendaSearch) .actions{margin-top:16px}.delivery-states{gap:9px;padding:3px;margin-inline:-3px}.delivery-states>button{flex:0 1 auto}.delivery-state-field .delivery-states{margin-bottom:8px}
@media(max-width:599px){#content>.panel:has(#agendaSearch){padding:16px}.agenda-card,#content>.panel:has(#agendaSearch)>.panel{padding:14px}.delivery-states>button{flex:1 1 125px;min-height:42px}.cost-batch .cost-batch-value{white-space:normal;overflow-wrap:anywhere}}
