/* ==========================================
   GASTOS VARIOS (gastos.css)
   Usa los paneles y botones de flota.css
   ========================================== */
#gasto_item, #gasto_patente { display: none !important; }
.gastos { max-width: 1000px; margin: 0 auto; }
.gastos-form { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr 1fr 140px 130px; gap: 10px; align-items: end; }
.gastos-form > div { min-width: 0; }
.gastos-form input, .gastos-form .custom-select, .gastos-form .calendario-wrap { margin-bottom: 0; }
.gastos-form input { text-transform: none; height: 34px; padding-top: 6px; padding-bottom: 6px; }
.gastos-form .custom-select-trigger { height: 34px; padding-top: 8px; padding-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gastos-oculto { display: none; }
.gastos-iva { height: 34px; }
.gastos-iva button { font-size: 12px; font-weight: 500; }
.gastos-iva button.activo { font-weight: 600; }
#btnGuardarGasto { margin: 0; height: 34px; padding: 0 10px; font-size: 12px; background: var(--accent-cyan); color: #000; font-weight: 600; border-color: var(--accent-cyan); }

.gastos-tabla-wrap { max-height: 360px; overflow-y: auto; margin-bottom: 0; }
.gastos-tabla thead th { position: sticky; top: 0; z-index: 1; }
.gastos-tabla th:nth-child(n+4), .gastos-tabla td:nth-child(n+4) { text-align: right; }
.gastos-tabla td { font-variant-numeric: tabular-nums; white-space: nowrap; color: #ddd; font-weight: normal; }
.gastos-tabla td:nth-child(2) { white-space: normal; }
.gastos-tabla td:nth-child(6) { color: #fff; font-weight: 600; }
.gastos-tabla tfoot td { font-weight: 600; color: var(--accent-cyan); border-top: 1px solid #333; }
.gastos-tabla .sin-iva { font-size: 10px; color: #888; margin-left: 4px; }

@media (max-width: 760px) {
    .gastos-form { grid-template-columns: 1fr 1fr; }
    .gastos-form > div:nth-child(2), .gastos-form > #gasto_otro_box, .gastos-form > #gasto_patente_box, #btnGuardarGasto { grid-column: 1 / -1; }
}
/* Listas desplegables más altas: se ven las 4 patentes sin scroll */
#pantalla-gastos .custom-options { max-height: 260px; }
/* Escribir ítem: busca en la lista mientras se escribe */
.gasto-buscar { position: relative; }
.gasto-sugerencias { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 5px; max-height: 220px; overflow-y: auto; z-index: 99;
    background: #111; border: 1px solid var(--accent-cyan); border-radius: 6px; box-shadow: 0 0 12px rgba(0, 210, 255, .35), 0 15px 30px rgba(0, 0, 0, .9); }
.gasto-sugerencias.visible { display: block; }
.gasto-sugerencias .custom-option { cursor: pointer; }
.gasto-nuevo { padding: 10px 12px; font-size: 12px; color: var(--accent-cyan); }
