/* =============================================================================
 * wf-agent-fixes.css — layout fixes written by the autonomous fix agent
 * -----------------------------------------------------------------------------
 * Loaded AFTER wf-ui.css. The agent may only APPEND blocks here, one per report, and only for a
 * screen it measured in a real browser (autonomy/css-lane.mjs, autonomy/layout-probe.mjs).
 *
 * Every block starts with a header the validator reads:
 *     lane-block: <issue number> scope=#page-<screen>
 * and every selector in it must name that screen's own id. Layout properties only; nothing may
 * be hidden. test/agent_fixes_css_test.js re-checks this whole file on every CI run, so a hand
 * edit cannot weaken the rules either.
 *
 * Empty until the first report is fixed this way.
 * ===========================================================================*/

/* lane-block: 514 scope=#page-ccinstall — [CRITICAL] Did you see this. This is in ‘CC installments’. Thats resol */
#page-ccinstall .tbl-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
#page-ccinstall table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}
#page-ccinstall table th,
#page-ccinstall table td {
  min-width: 72px;
  padding: 6px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  font-size: 13px;
}
#page-ccinstall table th:last-child,
#page-ccinstall table td:last-child {
  min-width: 132px;
}
#page-ccinstall .act-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
}
#page-ccinstall .act-btns .ib {
  min-width: 32px;
  min-height: 32px;
}
#page-ccinstall .badge {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}
@media (max-width: 768px) {
  #page-ccinstall table th,
  #page-ccinstall table td {
    min-width: 64px;
    padding: 4px 6px;
    font-size: 12px;
  }
  #page-ccinstall table th:last-child,
  #page-ccinstall table td:last-child {
    min-width: 148px;
  }
  #page-ccinstall .act-btns .ib {
    min-width: 44px;
    min-height: 44px;
  }
}

/* lane-block: 524 scope=#page-ccinstall — [CRITICAL] Overlap issue on phones, needs fixing. */
@media (max-width: 640px) {
  #page-ccinstall #cciStats.g4 > .stat-card > .stat-val { grid-column: 1;
    grid-row: auto;
    margin: 4px 0 0;
    text-align: left;
    min-width: 0;
    line-height: 1.15; }
}

/* lane-block: 541 scope=#page-liquidity — [HIGH] Layout overlap on phones: liquidity */
@media (max-width: 640px) {
  #page-liquidity #liqStats > .stat-card > .stat-val { grid-column: 1;
    grid-row: auto;
    margin: 2px 0 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.25; }
}

/* lane-block: 554 scope=#page-dashboard — [HIGH] Layout overlap on phones: dashboard */
#page-dashboard .wf-runway-cause { display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px; }

/* lane-block: 658 scope=#page-ccinstall — [HIGH] Layout overlap on phones: CC Instalments */
#page-ccinstall .wf-ctab-amt { white-space: normal;
  line-height: 1.4; }

/* lane-block: 659 scope=#page-cconetime — [HIGH] Layout overlap on phones: CC one-time charges */
#page-cconetime .wf-ctab { grid-template-columns: 1fr; }
#page-cconetime .wf-ctab-name { grid-column: 1; }
#page-cconetime .wf-ctab-meta { grid-column: 1; }
#page-cconetime .wf-ctab-due { grid-column: 1; }
