/* ============================================================
   DANGOFE OS LIQUID V2 — gastos.css
   Módulo GASTOS POR TÉCNICO (DANGOFE-CAJA-043 · v1.0.43)
   Estética Liquid Glass: reutiliza el estilo del sistema y añade
   la capa propia del módulo (prefijo ga-).
   ============================================================ */

.ga-wrap { display: flex; flex-direction: column; gap: 16px; }

/* ---------- encabezado ---------- */
.ga-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ga-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.5rem; }
.ga-sub { margin: 4px 0 0; opacity: .75; font-size: .92rem; line-height: 1.45; }

/* ---------- tarjetas ---------- */
.ga-card {
  border-radius: 18px; padding: 16px 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 14px;
}

/* ---------- formulario ---------- */
.ga-form { display: flex; flex-wrap: wrap; gap: 12px; }
.ga-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 180px; min-width: 150px; }
.ga-field--wide { flex-basis: 100%; }
.ga-field label { font-size: .82rem; opacity: .78; }
.ga-field input, .ga-field select, .ga-field textarea {
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; font: inherit; font-size: .9rem;
  outline: none; transition: border-color .15s ease; width: 100%; box-sizing: border-box;
}
.ga-field input:focus, .ga-field select:focus, .ga-field textarea:focus { border-color: rgba(99,132,255,.65); }
.ga-field textarea { resize: vertical; min-height: 58px; }
.ga-formzone { display: flex; flex-direction: column; gap: 12px; }

/* ---------- botones ---------- */
.ga-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; cursor: pointer;
  font: inherit; font-size: .9rem; backdrop-filter: blur(8px); transition: all .18s ease;
}
.ga-btn:hover { background: var(--glass-bg-active); }
.ga-btn:disabled { opacity: .5; cursor: not-allowed; }
.ga-btn--primary { background: rgba(99,132,255,.28); border-color: rgba(99,132,255,.55); font-weight: 600; }
.ga-btn--primary:hover { background: rgba(99,132,255,.4); }
.ga-btn--danger { background: rgba(255,99,99,.22); border-color: rgba(255,99,99,.5); }
.ga-btn--danger:hover { background: rgba(255,99,99,.34); }
.ga-btn--sm { padding: 6px 11px; font-size: .82rem; border-radius: 10px; }

/* ---------- filtros ---------- */
.ga-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ga-filtros .ga-field { flex: 0 1 150px; }

/* ---------- lista ---------- */
.ga-lista { display: flex; flex-direction: column; gap: 10px; }
.ga-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.ga-item .ga-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; min-width: 0; }
.ga-item .ga-body strong { font-size: 1rem; }
.ga-item .ga-body small { opacity: .72; font-size: .82rem; }

/* ---------- distintivos de estado ---------- */
.ga-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  border: 1px solid var(--glass-border); background: var(--glass-bg-strong);
}
.ga-badge--registrado    { background: rgba(148,163,184,.22); border-color: rgba(148,163,184,.5); }
.ga-badge--enviado       { background: rgba(99,132,255,.22);  border-color: rgba(99,132,255,.5); }
.ga-badge--revisado      { background: rgba(56,189,248,.22);  border-color: rgba(56,189,248,.5); }
.ga-badge--aprobado      { background: rgba(74,222,128,.22);  border-color: rgba(74,222,128,.5); }
.ga-badge--rechazado     { background: rgba(255,99,99,.22);   border-color: rgba(255,99,99,.5); }
.ga-badge--contabilizado { background: rgba(192,132,252,.22); border-color: rgba(192,132,252,.5); }

/* ---------- total y utilidades ---------- */
.ga-total { font-size: 1.05rem; font-weight: 700; margin: 4px 0 0; text-align: right; }
.ga-cargando, .ga-vacio {
  padding: 30px 18px; border-radius: 16px; text-align: center; opacity: .82;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ga-error { color: #ff8f8f; font-size: .9rem; display: flex; align-items: center; gap: 6px; padding: 14px; }
.ga-nomas { opacity: .6; font-size: .82rem; text-align: center; padding: 8px; }
