﻿/* Kas & Rekening â€” reconciliation styles */

/* â”€â”€ Reconciliation rows â”€â”€ */
.kas-rekon-section {
  margin-bottom: 12px;
}

.kas-rekon-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.kas-rekon-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

/* Left label can shrink; right amount never wraps */
.kas-rekon-row > span:first-child {
  flex: 1;
  min-width: 0;
}

.kas-rekon-row > span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.kas-rekon-row:last-child {
  border-bottom: none;
}

.kas-rekon-total {
  font-weight: 700;
  font-size: 15px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
  border-bottom: none;
}

.kas-rekon-divider {
  height: 2px;
  background: var(--border);
  margin: 12px 0;
}

.kas-rekon-selisih {
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
  padding-top: 4px;
}

.kas-rekon-note {
  font-size: 12px;
  margin-top: 6px;
  opacity: .85;
}

/* â”€â”€ Table: ensure name column never collapses â”€â”€ */
#page-kas-rekening .tw table {
  min-width: 460px;
}

#page-kas-rekening .tw table th:first-child,
#page-kas-rekening .tw table td:first-child {
  min-width: 160px;
}

/* â”€â”€ Stat grid: orphan 3rd card spans full width on mobile â”€â”€ */
@media (max-width: 768px) {
  #kas-stats .sc:nth-child(3) {
    grid-column: 1 / -1;
  }
}
