/* Vecinos (ui/vecinos-ui.js): carga de listas, márgenes, resultados y confirmaciones */
.vc-capa { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vc-fondo { position: absolute; inset: 0; background: rgba(20, 21, 25, .45); }
.vc-modal { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 20px; border-radius: 20px; background: var(--surface, #fff); color: var(--tinta, #141519); font-family: var(--font); box-shadow: 0 20px 60px rgba(20, 21, 25, .25); }
.vc-modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vc-modal h2 { margin: 0; font-size: 17px; font-weight: 700; }
.vc-x { width: 32px; height: 32px; border: 0; border-radius: 999px; background: var(--hundido, #F2F3F6); font-size: 18px; line-height: 1; cursor: pointer; color: inherit; }
.vc-nota { margin: 10px 0; font-size: 12.5px; color: var(--tinta-2, #5B5F6B); }
.vc-texto { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--linea, #E3E5EA); border-radius: 12px; background: var(--hundido, #F2F3F6); font: 12.5px ui-monospace, Menlo, monospace; color: inherit; resize: vertical; }
.vc-fila { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 10px 0; }
.vc-archivo, .vc-fecha { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.vc-fecha input { height: 36px; padding: 0 10px; border: 1px solid var(--linea, #E3E5EA); border-radius: 10px; font: inherit; background: #fff; }
.vc-ok { margin: 8px 0 4px; font-size: 13px; font-weight: 600; color: var(--menta-gt, #1F5A3C); }
.vc-muestra { list-style: none; margin: 0 0 8px; padding: 0; font-size: 12.5px; }
.vc-muestra li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--linea, #E3E5EA); }
.vc-errores { margin: 6px 0; font-size: 12px; color: var(--rosa-gt, #6F2A47); }
.vc-acciones { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.vc-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--hundido, #F2F3F6); color: var(--tinta, #141519); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; transition: transform .12s; }
.vc-btn:active { transform: scale(.97); }
.vc-btn:disabled { opacity: .45; cursor: not-allowed; }
.vc-btn:focus-visible, .vc-x:focus-visible { outline: 2px solid var(--tinta, #141519); outline-offset: 2px; }
.vc-btn-tinta { background: var(--tinta, #141519); color: #fff; }
.vc-btn-chico { height: auto; min-height: 28px; padding: 4px 10px; font-size: 12px; max-width: 100%; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }

.vc-resumen { font-size: 12px; color: var(--tinta-2, #5B5F6B); }
.vc-vacio { opacity: .7; }

.vc-mg-num { display: flex; gap: 12px; flex-wrap: wrap; }
.vc-mg-num label, .vc-mg-cat { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.vc-mg-num input, .vc-mg-cat input { height: 36px; width: 120px; padding: 0 10px; border: 1px solid var(--linea, #E3E5EA); border-radius: 10px; font: inherit; background: #fff; }
.vc-mg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

.vc-etq { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--durazno-g, #FCE3CC); color: var(--durazno-gt, #6E4516); font-size: 10px; font-weight: 600; white-space: nowrap; }
.vc-linea { display: block; margin-top: 2px; font-size: 11px; font-style: normal; color: var(--tinta-3, #8A8E99); }
/* Bloque de confirmación en la ficha (columna de 224 px a 1280 px de ancho): baja de línea, nunca desborda */
.vc-acc { display: block; min-width: 0; max-width: 100%; }
.vc-acc:empty { display: none; }
.vc-conf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; max-width: 100%; margin-top: 4px; }
.vc-precio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; max-width: 100%; font-size: 12px; font-weight: 600; }
.vc-precio input { width: 100px; max-width: 100%; min-width: 0; height: 28px; padding: 0 8px; border: 1px solid var(--linea, #E3E5EA); border-radius: 8px; font: inherit; box-sizing: border-box; }
.vc-calc { flex: 1 1 100%; min-width: 0; font-size: 11.5px; color: var(--tinta-2, #5B5F6B); overflow-wrap: anywhere; }
.vc-linea, .vc-etq { min-width: 0; overflow-wrap: anywhere; }
/* En "Pidió en el chat" (rejilla de 2 columnas) la línea del vecino y los botones ocupan toda la fila */
.fc-pedido .vc-linea, .fc-pedido .vc-acc { grid-column: 1 / -1; padding-left: 24px; }
