/* Gastos, comisiones y agentes (modulos85.js): del reloj (240 px) al escritorio, en claro y en oscuro. Usa las variables del Administrativo. */

.g85-barra { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.g85-barra .campo { margin: 0; min-width: 0; }
.g85-barra input, .g85-barra select { min-height: 44px; }
.g85-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; align-items: center; }
.g85-botones .btn { min-height: 44px; }
.g85-acc .btn, .g85-acc .btn.chico { min-height: 40px; }
td.g85-acc { text-align: right; white-space: nowrap; }
td.g85-acc .btn + .btn { margin-left: 6px; }
.g85-inactivo td { opacity: .62; }

.g85-mas { margin: 12px 0 4px; border: 1px solid var(--regla); border-radius: 12px; padding: 4px 14px 10px; background: color-mix(in srgb, var(--papel-2) 40%, transparent); }
.g85-mas > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.g85-mas[open] > summary { border-bottom: 1px solid var(--regla); margin-bottom: 10px; }

.g85-aviso { background: var(--ambar-fondo); color: var(--ambar); border: 1px solid color-mix(in srgb, var(--ambar) 40%, transparent); }
.g85-sin { white-space: nowrap; }
.g85-pie { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.g85-pct { width: 110px; max-width: 100%; min-height: 44px; text-align: right; padding: 0 10px; }

.g85-regla { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--regla); }
.g85-regla .rejilla-2 { align-items: end; }
.g85-regla input, .g85-regla select, .g85-liq input, .g85-liq select { min-height: 44px; }
.g85-check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 6px 0; }
.g85-check input { width: 22px; height: 22px; min-height: 0; }
.g85-liq .campo { margin-bottom: 10px; }

#g85-form input, #g85-form select, #g85-conc input, #g85-conc select { min-height: 44px; }
#k85-tabla input[type=checkbox] { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .g85-barra { align-items: stretch; }
  .g85-barra .campo { flex: 1 1 140px; }
  .g85-botones { margin-left: 0; width: 100%; }
  .g85-botones .btn { flex: 1 1 140px; }
  .g85-pie { flex-direction: column; align-items: stretch; }
  .g85-pct { width: 90px; }
  td.g85-acc { white-space: normal; }
  td.g85-acc .btn { margin: 2px 0; }
}
@media (max-width: 380px) {
  .g85-botones .btn, .g85-barra .campo { flex-basis: 100%; }
  .g85-pct { width: 72px; }
}
