/* gl-ops: booking files, the GDS import queue and contracts ready to invoice */
.gl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-block-end: 14px; }
.gl-kpi { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.gl-kpi span { font-size: 12.5px; color: var(--muted, #6b7280); }
.gl-kpi b { font-size: 20px; font-variant-numeric: tabular-nums; }
.gl-kpi--hi { border-color: color-mix(in srgb, #16a34a 35%, transparent); background: color-mix(in srgb, #16a34a 5%, var(--card, #fff)); }
.gl-pos { color: #15803d; }
.gl-neg { color: #b91c1c; }
.gl-tag--ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: #166534; }
.gl-tag--warn { background: color-mix(in srgb, #d97706 16%, transparent); color: #92400e; }

/* the file editor: a wide line grid that scrolls sideways on small screens */
.glf .glf-head { flex-wrap: wrap; align-items: flex-end; }
.glf-wrap { overflow-x: auto; max-width: 100%; }
.glf-lines { min-width: 1500px; }
.glf-lines td { padding: 4px 3px; vertical-align: middle; }
.glf-lines .in { min-width: 0; width: 100%; padding-inline: 6px; }
.glf-lines td:nth-child(1) { width: 110px; } .glf-lines td:nth-child(2) { width: 170px; }
.glf-lines td:nth-child(3) { width: 150px; } .glf-lines td:nth-child(4) { width: 140px; }
.glf-lines td:nth-child(6) { width: 60px; } .glf-lines td:nth-child(8) { width: 130px; }
.glf-lines td:nth-child(9) { width: 160px; } .glf-lines td:nth-child(11), .glf-lines td:nth-child(12) { width: 100px; }
.glf-c { text-align: center; }
.glf-c input { width: 18px; height: 18px; cursor: pointer; }
.glf-pr { font-variant-numeric: tabular-nums; min-width: 80px; }
.glf-tot { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.glf-meta p { margin: 4px 0; }
.glf-docs { margin: 10px 0; padding-inline-start: 18px; line-height: 1.9; }

/* the import queue upload box */
.gq-up { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-block-end: 14px;
  border: 1px dashed var(--line, #cbd5e1); border-radius: 12px; background: var(--card, #fff); }
.gq-up > div { flex: 1 1 320px; }
.gq-up p { margin: 4px 0 0; font-size: 13px; }
.gq-sel, #gq_all { width: 16px; height: 16px; cursor: pointer; }

@media (max-width: 640px) {
  .gl-kpi b { font-size: 17px; }
  .glf .glf-head .fld { flex: 1 1 100%; }
}
