/* =========================================================
   CASH & BANK MODULE CSS
   File: assets/css/cashbook.css
   Purpose: Premium treasury dashboard styles scoped to .cash-bank-page
   IMPORTANT: No global/nav/sidebar/router styling is defined here.
   ========================================================= */

/* ==================== MODULE TOKENS ==================== */
.cash-bank-page {
  --cb-primary: #2563eb;
  --cb-primary-dark: #1d4ed8;
  --cb-primary-soft: #eff6ff;
  --cb-cash: #059669;
  --cb-cash-soft: #ecfdf5;
  --cb-bank: #2563eb;
  --cb-bank-soft: #eff6ff;
  --cb-payment: #dc2626;
  --cb-payment-soft: #fef2f2;
  --cb-transfer: #f97316;
  --cb-transfer-soft: #fff7ed;
  --cb-reconciliation: #7c3aed;
  --cb-reconciliation-soft: #f5f3ff;
  --cb-text: #0f172a;
  --cb-muted: #64748b;
  --cb-border: #e2e8f0;
  --cb-surface: #ffffff;
  --cb-bg: #f8fafc;
  --cb-shadow: 0 9px 28px rgba(15, 23, 42, 0.055);
  display: grid;
  gap: 20px;
  min-width: 0;
  color: var(--cb-text);
}

/* ==================== COMMON CONTROLS ==================== */
.cash-bank-page button,
.cash-bank-page input,
.cash-bank-page select {
  font: inherit;
}

.cash-bank-page button {
  cursor: pointer;
}

.cash-bank-page .cb-primary-btn,
.cash-bank-page .cb-secondary-btn,
.cash-bank-page .cb-period-btn {
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cash-bank-page .cb-primary-btn {
  border: 1px solid var(--cb-primary);
  padding: 0 17px;
  color: #fff;
  background: var(--cb-primary);
  box-shadow: 0 10px 18px rgba(37, 99, 235, .16);
}

.cash-bank-page .cb-primary-btn:hover {
  background: var(--cb-primary-dark);
  border-color: var(--cb-primary-dark);
  transform: translateY(-1px);
}

.cash-bank-page .cb-primary-btn--small {
  height: 40px;
  padding: 0 15px;
}

.cash-bank-page .cb-secondary-btn,
.cash-bank-page .cb-period-btn {
  border: 1px solid var(--cb-border);
  background: #fff;
  color: #172554;
  padding: 0 15px;
}

.cash-bank-page .cb-secondary-btn:hover,
.cash-bank-page .cb-period-btn:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.cash-bank-page .cb-icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  display: grid;
  place-items: center;
}

.cash-bank-page .cb-icon-btn:hover {
  background: #f1f5f9;
}

/* ==================== HEADER ==================== */
.cash-bank-page .cb-header {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cash-bank-page .cb-header h1 {
  margin: 0 0 4px;
  color: #10183e;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 800;
}

.cash-bank-page .cb-header p {
  margin: 0;
  color: #53658d;
  font-size: 13px;
  font-weight: 500;
}

.cash-bank-page .cb-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cash-bank-page .cb-new-wrap {
  position: relative;
}

.cash-bank-page .cb-new-menu {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 7px);
  width: 235px;
  padding: 7px;
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all .16s ease;
}

.cash-bank-page .cb-new-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cash-bank-page .cb-new-menu a {
  height: 42px;
  padding: 0 11px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #1e293b;
  font-size: 13px;
  font-weight: 650;
}

.cash-bank-page .cb-new-menu a:hover {
  color: var(--cb-primary);
  background: var(--cb-primary-soft);
}

/* ==================== KPI CARDS ==================== */
.cash-bank-page .cb-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 16px;
}

.cash-bank-page .cb-kpi {
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid var(--cb-border);
  background: var(--cb-surface);
  padding: 21px 15px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: var(--cb-shadow);
}

.cash-bank-page .cb-kpi__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.cash-bank-page .cb-kpi--cash .cb-kpi__icon,
.cash-bank-page .cb-kpi--receipt .cb-kpi__icon { color: var(--cb-cash); background: var(--cb-cash-soft); }
.cash-bank-page .cb-kpi--bank .cb-kpi__icon,
.cash-bank-page .cb-kpi--flow .cb-kpi__icon { color: var(--cb-bank); background: var(--cb-bank-soft); }
.cash-bank-page .cb-kpi--payment .cb-kpi__icon { color: var(--cb-payment); background: var(--cb-payment-soft); }

.cash-bank-page .cb-kpi__body {
  min-width: 0;
}

.cash-bank-page .cb-kpi__body > span {
  display: block;
  color: #52648e;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 10px;
}

.cash-bank-page .cb-kpi__body strong {
  display: block;
  margin-bottom: 9px;
  color: #10183e;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.cash-bank-page .cb-kpi__body small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #607295;
  font-size: 10px;
  font-weight: 650;
}

.cash-bank-page .cb-kpi__body small.is-up i { color: var(--cb-cash); }
.cash-bank-page .cb-kpi__body small.is-down i { color: var(--cb-payment); }

/* ==================== MAIN LAYOUT ==================== */
.cash-bank-page .cb-layout {
  display: block;
  min-width: 0;
}

.cash-bank-page .cb-main {
  width: 100%;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.cash-bank-page .cb-card,
.cash-bank-page .cb-filter-card,
.cash-bank-page .cb-side-card {
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  background: var(--cb-surface);
  box-shadow: var(--cb-shadow);
}

.cash-bank-page .cb-card__header {
  min-height: 47px;
  border-bottom: 1px solid #edf2f7;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cash-bank-page .cb-card__header h2,
.cash-bank-page .cb-side-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #10183e;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.cash-bank-page .cb-card__header h2 i {
  color: var(--cb-primary);
}

.cash-bank-page .cb-card__actions {
  display: flex;
  gap: 10px;
}

.cash-bank-page .cb-card__actions .cb-secondary-btn {
  height: 34px;
  min-width: 83px;
  padding: 0 12px;
}

/* ==================== FILTER TOOLBAR ==================== */
.cash-bank-page .cb-filter-card {
  overflow: hidden;
}

.cash-bank-page .cb-filter-grid {
  padding: 18px 17px 12px;
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(122px, .88fr) minmax(135px, .9fr) minmax(130px, .9fr) minmax(220px, 1.26fr) auto;
  gap: 13px;
  align-items: end;
}

.cash-bank-page .cb-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cash-bank-page .cb-field > span {
  color: #162554;
  font-size: 11px;
  font-weight: 750;
}

.cash-bank-page .cb-field input,
.cash-bank-page .cb-field select {
  width: 100%;
  height: 38px;
  min-width: 0;
  border-radius: 7px;
  border: 1px solid #d5deeb;
  padding: 0 12px;
  color: #15224b;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  background: #fff;
}

.cash-bank-page .cb-field input:focus,
.cash-bank-page .cb-field select:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.cash-bank-page .cb-field--search > div {
  position: relative;
}

.cash-bank-page .cb-field--search i {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 12px;
  color: #607295;
  font-size: 12px;
}

.cash-bank-page .cb-field--search input {
  padding-left: 34px;
}

.cash-bank-page .cb-field--dates > div {
  height: 38px;
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #d5deeb;
  border-radius: 7px;
  padding: 0 8px;
}

.cash-bank-page .cb-field--dates > div:focus-within {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.cash-bank-page .cb-field--dates input {
  height: 34px;
  border: 0;
  padding: 0 3px;
  box-shadow: none !important;
}

.cash-bank-page .cb-field--dates i {
  color: #7690bf;
  font-size: 10px;
}

.cash-bank-page .cb-filter-actions {
  min-width: 166px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.cash-bank-page .cb-filter-actions .cb-secondary-btn {
  height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

.cash-bank-page .cb-chips {
  min-height: 43px;
  padding: 8px 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #eef2f7;
  overflow-x: auto;
}

.cash-bank-page .cb-chips strong {
  margin-right: 7px;
  color: #162554;
  white-space: nowrap;
  font-size: 11px;
}

.cash-bank-page .cb-chips button {
  height: 27px;
  border-radius: 7px;
  border: 1px solid #dfe7f1;
  background: #fff;
  color: #4e618c;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
}

.cash-bank-page .cb-chips button.active {
  color: var(--cb-primary);
  border-color: #bfd7ff;
  background: #eff6ff;
}

/* ==================== MY ACCOUNTS ==================== */
.cash-bank-page .cb-accounts {
  padding-bottom: 9px;
}

.cash-bank-page .cb-account-grid {
  padding: 13px 15px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 13px;
}

.cash-bank-page .cb-account {
  min-height: 101px;
  padding: 13px 12px 11px;
  border: 1px solid var(--cb-border);
  border-radius: 9px;
  background: #fff;
}

.cash-bank-page .cb-account__top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cash-bank-page .cb-account__icon {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.cash-bank-page .cb-account--cash .cb-account__icon {
  color: var(--cb-cash);
  background: var(--cb-cash-soft);
}

.cash-bank-page .cb-account--bank .cb-account__icon {
  color: var(--cb-bank);
  background: var(--cb-bank-soft);
}

.cash-bank-page .cb-account__title {
  display: grid;
  min-width: 0;
  flex: 1;
}

.cash-bank-page .cb-account__title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #10204d;
  font-size: 12px;
}

.cash-bank-page .cb-account__title span {
  margin-top: 2px;
  color: #6a7b9b;
  font-size: 10px;
}

.cash-bank-page .cb-account__balance {
  margin-top: 13px;
  color: var(--cb-cash);
  font-size: 16px;
  font-weight: 750;
}

.cash-bank-page .cb-account--bank .cb-account__balance {
  color: var(--cb-bank);
}

.cash-bank-page .cb-view-all {
  border: 0;
  margin: 0 auto;
  height: 28px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cb-primary);
  font-size: 11px;
  font-weight: 700;
}

/* ==================== TRANSACTION TABLE ==================== */
.cash-bank-page .cb-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.cash-bank-page .cb-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}

.cash-bank-page .cb-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 36px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  padding: 0 12px;
  text-align: left;
  color: #52648e;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.cash-bank-page .cb-table thead th.right {
  text-align: right;
}

.cash-bank-page .cb-table tbody td {
  height: 42px;
  border-bottom: 1px solid #edf2f7;
  padding: 0 12px;
  color: #23345e;
  font-size: 11px;
  vertical-align: middle;
}

.cash-bank-page .cb-table tbody tr:hover td {
  background: #f8fbff;
}

.cash-bank-page .cb-nowrap {
  white-space: nowrap;
}

.cash-bank-page .cb-table-account {
  white-space: nowrap;
  color: #172554;
  font-weight: 700;
}

.cash-bank-page .cb-type {
  min-width: 67px;
  height: 23px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.cash-bank-page .cb-type.is-receipt { color: var(--cb-cash); background: var(--cb-cash-soft); border: 1px solid #bbe9d2; }
.cash-bank-page .cb-type.is-payment { color: var(--cb-payment); background: var(--cb-payment-soft); border: 1px solid #fecaca; }
.cash-bank-page .cb-type.is-transfer { color: var(--cb-primary); background: var(--cb-primary-soft); border: 1px solid #bfdbfe; }
.cash-bank-page .cb-type.is-adjustment { color: var(--cb-reconciliation); background: var(--cb-reconciliation-soft); border: 1px solid #ddd6fe; }

.cash-bank-page .cb-reference {
  color: var(--cb-primary);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.cash-bank-page .cb-reference:hover {
  text-decoration: underline;
}

.cash-bank-page .cb-narration {
  max-width: 250px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cash-bank-page .cb-amount {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.cash-bank-page .cb-amount.is-receipt,
.cash-bank-page .cb-amount.is-positive { color: var(--cb-cash); }

.cash-bank-page .cb-amount.is-payment,
.cash-bank-page .cb-amount.is-negative { color: var(--cb-payment); }

.cash-bank-page .cb-row-menu {
  position: relative;
}

.cash-bank-page .cb-row-menu__options {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 20;
  width: 120px;
  padding: 5px;
  border: 1px solid var(--cb-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(15,23,42,.14);
  display: none;
}

.cash-bank-page .cb-row-menu__options.open {
  display: grid;
}

.cash-bank-page .cb-row-menu__options a,
.cash-bank-page .cb-row-menu__options button {
  border: 0;
  background: transparent;
  height: 31px;
  border-radius: 6px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #24365e;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}

.cash-bank-page .cb-row-menu__options a:hover,
.cash-bank-page .cb-row-menu__options button:hover {
  background: #f1f5f9;
}

.cash-bank-page .cb-row-menu__options .danger {
  color: var(--cb-payment);
}

.cash-bank-page .cb-empty {
  height: 112px !important;
  color: var(--cb-muted) !important;
  text-align: center;
  font-size: 13px !important;
}

.cash-bank-page .cb-empty i {
  margin-right: 7px;
}

.cash-bank-page .cb-table-footer {
  min-height: 50px;
  padding: 0 17px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  color: #52648e;
  font-size: 11px;
  font-weight: 600;
}

.cash-bank-page .cb-footer-tools {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cash-bank-page .cb-footer-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cash-bank-page .cb-footer-tools select {
  height: 32px;
  min-width: 55px;
  border: 1px solid var(--cb-border);
  border-radius: 7px;
  padding: 0 8px;
  color: #172554;
}

.cash-bank-page .cb-pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cash-bank-page .cb-pagination button {
  height: 33px;
  min-width: 33px;
  border: 1px solid var(--cb-border);
  border-radius: 6px;
  background: #fff;
  color: #172554;
  font-size: 11px;
  font-weight: 650;
}

.cash-bank-page .cb-pagination button.active {
  border-color: var(--cb-primary);
  background: var(--cb-primary);
  color: #fff;
}

.cash-bank-page .cb-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ==================== ANALYTICS SIDEBAR ==================== */
.cash-bank-page .cb-side-card {
  padding: 15px;
}

.cash-bank-page .cb-side-card h2 {
  margin-bottom: 14px;
}

.cash-bank-page .cb-side-card h2 i {
  color: var(--cb-primary);
}

.cash-bank-page .cb-side-card h2 small {
  color: #52648e;
  font-size: 10px;
  margin-left: 2px;
}

.cash-bank-page .cb-summary__row {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #52648e;
  font-size: 10px;
  font-weight: 650;
}

.cash-bank-page .cb-summary__row strong {
  color: #172554;
  font-size: 10px;
  font-weight: 750;
}

.cash-bank-page .cb-summary__row strong.cash { color: var(--cb-cash); }
.cash-bank-page .cb-summary__row strong.bank { color: var(--cb-bank); }
.cash-bank-page .cb-summary__row strong.payment { color: var(--cb-payment); }

.cash-bank-page .cb-summary__row.is-total {
  margin: 5px 0;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.cash-bank-page .cb-donut-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cash-bank-page .cb-donut {
  width: 91px;
  height: 91px;
  flex: 0 0 91px;
  border-radius: 50%;
  background: conic-gradient(var(--cb-cash) 0 var(--cash), var(--cb-bank) var(--cash) 100%);
  display: grid;
  place-items: center;
}

.cash-bank-page .cb-donut__inside {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  background: #fff;
  text-align: center;
}

.cash-bank-page .cb-donut__inside small {
  color: #52648e;
  font-size: 9px;
}

.cash-bank-page .cb-donut__inside strong {
  color: #10183e;
  font-size: 9px;
}

.cash-bank-page .cb-donut__legend {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.cash-bank-page .cb-donut__legend > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}

.cash-bank-page .cb-donut__legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cash-bank-page .cb-donut__legend i.is-cash { background: var(--cb-cash); }
.cash-bank-page .cb-donut__legend i.is-bank { background: var(--cb-bank); }

.cash-bank-page .cb-donut__legend span {
  color: #172554;
  font-weight: 700;
}

.cash-bank-page .cb-donut__legend span small {
  display: block;
  margin-top: 4px;
  color: #52648e;
}

.cash-bank-page .cb-donut__legend strong {
  color: #52648e;
}

.cash-bank-page .cb-bar-row {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.cash-bank-page .cb-bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #53658d;
  font-size: 10px;
  font-weight: 700;
}

.cash-bank-page .cb-bar-row > div:first-child strong {
  color: #10183e;
}

.cash-bank-page .cb-progress {
  height: 6px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.cash-bank-page .cb-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.cash-bank-page .cb-progress--receipt i { background: var(--cb-cash); }
.cash-bank-page .cb-progress--payment i { background: var(--cb-payment); }
.cash-bank-page .cb-progress--transfer i { background: var(--cb-primary); }

.cash-bank-page .cb-shortcuts a {
  height: 44px;
  margin-top: 7px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 30px 1fr 10px;
  gap: 9px;
  align-items: center;
  padding: 0 9px;
  color: #53658d;
  text-decoration: none;
}

.cash-bank-page .cb-shortcuts a:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.cash-bank-page .cb-shortcuts a > i:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 12px;
}

.cash-bank-page .cb-shortcuts i.cash { color: var(--cb-cash); background: var(--cb-cash-soft); }
.cash-bank-page .cb-shortcuts i.bank { color: var(--cb-bank); background: var(--cb-bank-soft); }
.cash-bank-page .cb-shortcuts i.transfer { color: var(--cb-transfer); background: var(--cb-transfer-soft); }
.cash-bank-page .cb-shortcuts i.reconciliation { color: var(--cb-reconciliation); background: var(--cb-reconciliation-soft); }

.cash-bank-page .cb-shortcuts span {
  display: grid;
  gap: 2px;
}

.cash-bank-page .cb-shortcuts strong {
  color: #172554;
  font-size: 10px;
}

.cash-bank-page .cb-shortcuts small {
  color: #52648e;
  font-size: 9px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1380px) {
  .cash-bank-page .cb-kpis { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
  .cash-bank-page .cb-filter-grid { grid-template-columns: repeat(3, minmax(175px, 1fr)); }
  .cash-bank-page .cb-filter-actions { min-width: 0; }
  .cash-bank-page .cb-account-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}

@media (max-width: 1120px) {
  .cash-bank-page .cb-layout { display: block; }
}

@media (max-width: 820px) {
  .cash-bank-page .cb-header { flex-direction: column; }
  .cash-bank-page .cb-kpis { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .cash-bank-page .cb-filter-grid,
  .cash-bank-page .cb-account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cash-bank-page { gap: 14px; }
  .cash-bank-page .cb-header__actions,
  .cash-bank-page .cb-primary-btn { width: 100%; }
  .cash-bank-page .cb-header__actions { flex-direction: column; align-items: stretch; }
  .cash-bank-page .cb-new-wrap { width: 100%; }
  .cash-bank-page .cb-kpis { grid-template-columns: 1fr; }
  .cash-bank-page .cb-chips { padding-inline: 12px; }
  .cash-bank-page .cb-card__header,
  .cash-bank-page .cb-table-footer { align-items: flex-start; flex-direction: column; padding: 12px; }
  .cash-bank-page .cb-footer-tools { width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; }
}
