 /* ============================================================
 * Utilities Bunker — Business Loan Calculator (v2.1)
 * File: /assets/css/modules/calculators/financialcalculators/business-loan-calculator.v2.1.css
 * Purpose:
 * - Tool-only layout polish (no toolkit edits)
 * - Mobile-first, 44x44 touch targets, clamp typography
 * ============================================================ */

/* Tool-scoped tokens */
:root{
  --blc-radius: 16px;
  --blc-gap: 14px;
  --blc-soft: rgba(0,0,0,.06);
}

/* Header row helper */
.ub-headrow{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

/* Subsections inside tool card */
.ub-hr{
  border:none;
  border-top:1px solid var(--ub-border);
  margin:14px 0;
}

/* Two-column section inside tool (fees / extras) */
.ub-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--blc-gap);
}
@media (max-width: 980px){
  .ub-split{
    grid-template-columns: 1fr;
  }
}

/* Output table wrapper */
.ub-amort{
  border:1px solid var(--ub-border);
  border-radius: var(--blc-radius);
  background: var(--ub-surface-2);
  padding: 12px;
}
.ub-amort-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.ub-amort-meta{
  font-family: var(--ub-mono);
  font-weight: 950;
  font-size: 12px;
  color: var(--ub-muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--ub-border);
  background: var(--ub-card-bg);
  min-height: 44px;
  display:flex;
  align-items:center;
}

/* Scroll region for table (a11y) */
.ub-amort-tablewrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid var(--ub-border);
  background: var(--ub-card-bg);
}

/* Table baseline (tool-local; safe if toolkit has none) */
.ub-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.ub-table th,
.ub-table td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--ub-border);
  text-align: left;
  white-space: nowrap;
}
.ub-table th{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ub-muted);
  background: var(--ub-surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.ub-table tbody tr:last-child td{
  border-bottom: none;
}
.ub-table tbody tr:hover td{
  background: var(--ub-surface-2);
}

/* Gap row styling */
.ub-rowgap td{
  text-align:center;
  padding: 12px 10px;
}

/* Show work formatting (mono, readable) */
.ub-work{
  font-family: var(--ub-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
}

/* Tighten chips in this tool (still 44px+) */
.ub-chip{
  min-height: var(--ub-hit);
}

/* Slightly reduce overly-wide inputs on desktop without breaking toolkit */
@media (min-width: 1025px){
  .ub-field input[type="number"]{
    max-width: 100%;
  }
}

/* Small screens polish */
@media (max-width: 520px){
  .ub-amort-meta{
    width:100%;
    justify-content:center;
  }
  .ub-table th,
  .ub-table td{
    padding: 9px 8px;
  }
}