@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.ttf") format("truetype")
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.ttf") format("truetype")
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.ttf") format("truetype")
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.ttf") format("truetype")
}

:root {
  --primary: #0668ed;
  --primary-dark: #0759ca;
  --navy: #101d42;
  --ink: #101828;
  --muted: #30456f;
  --soft-muted: #667085;
  --border: #e5eaf2;
  --page: #fbfcfe;
  --green: #12b76a;
  --orange: #ff910b;
  --purple: #7654ed;
  --sidebar: 258px;
  --card-shadow: 0 2px 5px rgba(16, 24, 40, .035), 0 1px 2px rgba(16, 24, 40, .025)
}

* {
  box-sizing: border-box
}

html,
body {
  min-height: 100%;
  margin: 0
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1031;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e7ecf3;
  padding: 35px 19px 16px 10px
}

.brand {
  height: 66px;
  padding-left: 24px;
  display: flex;
  align-items: flex-start
}

.brand-logo {
  display: block;
  width: 151px;
  height: auto
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.nav-item {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 25px;
  color: #29426d;
  border-left: 2px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: .15s ease
}

.nav-item i {
  width: 17px;
  font-size: 17px;
  text-align: center
}

.nav-item:hover {
  background: #f4f8ff;
  color: var(--primary)
}

.nav-item.active {
  color: #0568ee;
  background: #edf4ff;
  border-left-color: #086cff;
  font-weight: 600
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0 5px
}

.upgrade-card {
  position: relative;
  margin: 0 9px 19px;
  padding: 21px 18px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .015)
}

.upgrade-card h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px
}

.upgrade-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #344b75;
  margin: 0 0 15px
}

.upgrade-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #dbf5e7;
  color: #16aa56;
  display: grid;
  place-items: center;
  font-size: 14px
}

.upgrade-btn {
  height: 38px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary);
  box-shadow: 0 2px 3px rgba(0, 88, 215, .15)
}

.sidebar-divider {
  height: 1px;
  background: #edf0f5;
  margin: 0 9px 14px
}

/* .profile-dropdown {
  padding: 0 5px
} */

.profile-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 0;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--ink)
}

.avatar {
  width: 43px;
  height: 43px;
  border-radius: 10%;
  object-fit: cover;
  border: 1px solid #e7ecf4
}

.profile-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 11px;
  line-height: 1.35
}

.profile-copy strong {
  font-size: 13px;
  font-weight: 600
}

.profile-copy small {
  font-size: 12px;
  color: #42567a
}

.profile-button>.bi {
  margin-left: auto;
  color: #35507c;
  font-size: 12px
}

.profile-dropdown .dropdown-menu {
  font-size: 13px;
  min-width: 178px;
  border: 1px solid var(--border);
  border-radius: 8px
}

.dashboard-main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 38px 30px 33px;
  background: radial-gradient(circle at 68% 0%, rgba(244, 248, 255, .75), transparent 32%), var(--page)
}

.topbar {
  min-height: 45px;
  margin: 0 1px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between
}

.welcome-copy {
  display: flex;
  align-items: flex-start
}

.welcome-copy h1 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.45px;
  margin: 0 0 5px;
  font-weight: 700;
  color: #111827
}

.welcome-copy p {
  font-size: 13px;
  color: #314871;
  margin: 0
}

.topbar-actions {
  display: flex;
  gap: 19px;
  align-items: center;
  margin-top: 1px
}

.date-selector,
.notification-button,
.new-payment-btn,
.period-selector {
  border: 1px solid #e1e7f0;
  background: #fff;
  color: #17315e
}

.date-selector {
  height: 45px;
  min-width: 223px;
  padding: 0 16px 0 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 500
}

.date-selector>.bi:first-child {
  font-size: 16px
}

.date-selector>.bi:last-child {
  margin-left: auto;
  font-size: 12px
}

.notification-button {
  height: 45px;
  width: 45px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 19px
}

.notification-button b {
  position: absolute;
  top: -5px;
  right: -1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
  background: #f04438;
  border: 1px solid #fff
}

.new-payment-btn {
  height: 45px;
  border: 0;
  border-radius: 8px;
  background: #0769ee;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 88, 215, .18)
}

.new-payment-btn .button-chevron {
  margin-left: 8px;
  font-size: 11px
}

.date-menu {
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px
}

.notification-menu {
  width: 330px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0
}

.notification-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #edf0f4
}

.notification-head strong {
  font-size: 14px
}

.notification-head .btn {
  font-size: 11px;
  padding: 0;
  color: var(--primary);
  text-decoration: none
}

.notification-entry {
  display: flex;
  gap: 11px;
  padding: 12px 15px;
  color: var(--ink);
  text-decoration: none
}

.notification-entry:hover {
  background: #f8faff
}

.notification-entry>i {
  font-size: 16px
}

.notification-entry span {
  display: flex;
  flex-direction: column;
  font-size: 12px
}

.notification-entry strong {
  font-size: 12px
}

.notification-entry small {
  color: var(--soft-muted);
  font-size: 11px;
  margin-top: 2px
}

.mobile-menu {
  display: none
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px
}

.kpi-card {
  height: 125px;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--card-shadow);
  padding: 23px 17px;
  display: flex;
  align-items: flex-start;
  gap: 17px
}

.kpi-icon {
  width: 59px;
  height: 59px;
  flex: 0 0 59px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  font-size: 27px
}

.kpi-icon.green {
  color: #13b75e;
  background: #e8f8ee
}

.kpi-icon.blue {
  color: #0b6cff;
  background: #edf4ff
}

.kpi-icon.orange {
  color: #ff8900;
  background: #fff4e6
}

.kpi-content {
  padding-top: 0;
  min-width: 0
}

.kpi-content p {
  font-size: 13px;
  font-weight: 500;
  color: #14294f;
  white-space: nowrap;
  margin: 0 0 5px
}

.kpi-content h2 {
  font-size: 22px;
  letter-spacing: -.5px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  margin: 0 0 9px
}

.kpi-content>div {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap
}

.positive {
  color: #10aa58;
  font-size: 12px;
  font-weight: 600
}

.positive i {
  font-size: 9px;
  margin-right: 3px
}

.comparison {
  color: #34476d;
  font-size: 12px
}

.dashboard-grid {
  display: grid;
  gap: 16px
}

.dashboard-grid>* {
  min-width: 0
}

.charts-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  margin-bottom: 19px
}

.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--card-shadow)
}

.collections-card,
.channels-card {
  height: 323px;
  padding: 14px 21px 13px
}

.card-heading {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.card-heading h2 {
  margin: 0;
  color: #111f43;
  font-size: 16px;
  letter-spacing: -.2px;
  font-weight: 700
}

.collections-heading {
  border-bottom: 1px solid #e3e8f0
}

.period-selector {
  height: 32px;
  border-radius: 7px;
  padding: 0 11px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 11px
}

.period-selector i {
  font-size: 10px
}

.collection-metric {
  padding-top: 11px
}

.collection-metric>span {
  display: block;
  color: #435678;
  font-size: 12px;
  margin-bottom: 3px
}

.collection-metric>div {
  display: flex;
  align-items: center;
  gap: 18px
}

.collection-metric strong {
  font-size: 22px;
  letter-spacing: -.5px;
  color: #111827
}

.collection-metric em {
  font-style: normal;
  color: #0ca85a;
  font-size: 13px;
  font-weight: 600
}

.collection-metric em i {
  font-size: 10px;
  margin-right: 3px
}

.line-chart-wrap {
  height: 180px;
  margin-top: 2px;
  position: relative
}

.channels-content {
  height: 244px;
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0
}

.donut-wrap {
  width: 177px;
  height: 177px;
  flex: 0 0 177px;
  margin-left: 3px;
  position: relative
}

.channel-legend {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding-right: 2px
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 33px 101px;
  align-items: center;
  gap: 8px;
  color: #294168;
  font-size: 13px;
  white-space: nowrap
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.legend-item strong {
  font-weight: 600;
  color: #182b4e;
  text-align: right
}

.legend-item span:last-child {
  text-align: right;
  color: #3a5077
}

.bottom-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr)
}

.transactions-card {
  height: 381px;
  overflow: hidden
}

.table-heading {
  height: 58px;
  padding: 0 21px;
  border-bottom: 1px solid #edf1f5
}

.view-all {
  color: #0069f1;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap
}

.view-all i {
  font-size: 13px;
  margin-left: 3px
}

.transactions-scroll {
  overflow-x: auto
}

.transactions-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 580px
}

.transactions-table th {
  text-align: left;
  height: 42px;
  padding: 0 21px;
  color: #405576;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap
}

.transactions-table td {
  height: 48px;
  padding: 0 21px;
  border-bottom: 1px solid #eef1f5;
  color: #182b4c;
  font-size: 11px;
  white-space: nowrap
}

.transactions-table th:nth-child(1),
.transactions-table td:nth-child(1) {
  width: 30%
}

.transactions-table th:nth-child(2),
.transactions-table td:nth-child(2) {
  width: 20%
}

.transactions-table th:nth-child(3),
.transactions-table td:nth-child(3) {
  width: 14%
}

.transactions-table th:nth-child(4),
.transactions-table td:nth-child(4) {
  width: 20%
}

.transactions-table th:nth-child(5),
.transactions-table td:nth-child(5) {
  width: 11%
}

.transactions-table th:nth-child(6),
.transactions-table td:nth-child(6) {
  width: 14%
}

.customer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #15223d;
  font-weight: 500
}

.initials {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px
}

.initials.me {
  background: #dceaff;
  color: #0668ed
}

.initials.gs {
  background: #eee8ff;
  color: #6f40d8
}

.initials.am {
  background: #f1e5ff;
  color: #7d3be1
}

.initials.dj {
  background: #eff1f4;
  color: #344054
}

.initials.bc {
  background: #fff0dc;
  color: #e87900
}

.channel-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #344d75
}

.channel-cell i {
  font-size: 12px
}

.status {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500
}

.status.success {
  color: #0b9f54;
  background: #e8f8ee
}

.status.pending {
  color: #f47a04;
  background: #fff2df
}

.date-cell {
  font-size: 9px !important;
  color: #405576 !important
}

.right-stack {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.receivables-card {
  height: 154px;
  padding: 9px 21px
}

.receivables-heading {
  height: 41px
}

.receivables-metrics {
  display: grid;
  grid-template-columns: 1.2fr 1.12fr .82fr;
  gap: 13px;
  padding-top: 18px
}

.receivable-metric {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  min-width: 0
}

.receivable-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  border-radius: 11px;
  font-size: 19px
}

.receivable-icon.blue {
  color: #056cff;
  background: #eaf3ff
}

.receivable-icon.red {
  color: #f13432;
  background: #ffedef
}

.receivable-icon.green {
  color: #10a955;
  background: #e8f8ee
}

.receivable-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap
}

.receivable-copy span {
  color: #405577;
  font-size: 10px
}

.receivable-copy strong {
  color: #15203a;
  font-size: 16px;
  letter-spacing: -.2px
}

.quick-actions-card {
  height: 210px;
  padding: 9px 21px
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 11px
}

.quick-action {
  height: 59px;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 0 21px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fff;
  color: #172442;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: .15s ease
}

.quick-action:hover {
  border-color: #b6d2ff;
  background: #f9fbff;
  transform: translateY(-1px)
}

.quick-action strong {
  font-size: 12px;
  font-weight: 600
}

.quick-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex: 0 0 40px;
  font-size: 20px
}

.quick-icon.blue {
  color: #066eff;
  background: #edf4ff
}

.quick-icon.green {
  color: #0eae5a;
  background: #e9f8ef
}

.quick-icon.purple {
  color: #7f41ff;
  background: #f2edff
}

.quick-icon.orange {
  color: #ff8900;
  background: #fff4e8
}

.modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(16, 24, 40, .15)
}

.modal-header {
  padding: 18px 21px;
  border-bottom-color: #edf0f4
}

.modal-header .modal-title {
  font-weight: 700;
  color: #13203e
}

.modal-body {
  padding: 19px 21px
}

.modal-intro {
  font-size: 13px;
  color: #667085;
  margin-bottom: 18px
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #344054
}

.form-control {
  border-color: #d9e1ec;
  font-size: 13px;
  box-shadow: none
}

.form-control:focus {
  border-color: #8bbaf9;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .1)
}

.modal-footer {
  padding: 13px 21px;
  border-top-color: #edf0f4
}

.modal-footer .btn {
  font-size: 13px
}

.wallet-account-card {
  padding: 15px 16px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #f0faf6)
}

.wallet-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
  font-size: 10px;
  margin-bottom: 6px
}

.wallet-copy-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e4f1;
  border-radius: 6px;
  background: #fff;
  color: #1268ee;
  cursor: pointer
}

.wallet-account-card > strong {
  display: block;
  color: #07144d;
  font-size: 20px;
  letter-spacing: .5px
}

.wallet-account-card > p {
  margin: 6px 0 0;
  color: #009c61;
  font-size: 11px;
  font-weight: 600
}

.wallet-account-card > p span {
  color: #637096;
  font-weight: 400
}

.wallet-generate-button {
  display: inline-flex;
  align-items: center;
  gap: 7px
}

.toast {
  background: #102044;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .16)
}

.toast-body {
  font-size: 13px
}

.toast-body i {
  color: #37d282
}

.loading-card {
  position: relative;
  overflow: hidden
}

.loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-100%)
}

body.is-loading .loading-card::after {
  opacity: 1;
  animation: shine 1.1s ease-in-out infinite
}

@keyframes shine {
  to {
    transform: translateX(100%)
  }
}

.offcanvas {
  width: 278px
}

.offcanvas-header {
  padding: 25px 23px 14px
}

.mobile-logo {
  width: 50%
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.mobile-nav .nav-item {
  padding-left: 18px
}

.mobile-nav .nav-item span {
  display: block
}

@media (max-width:1300px) {
  :root {
    --sidebar: 220px
  }

  .app-sidebar {
    padding-right: 14px
  }

  .brand {
    padding-left: 16px
  }

  .nav-item {
    padding-left: 19px
  }

  .kpi-card {
    padding: 20px 14px;
    gap: 12px
  }

  .kpi-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px
  }

  .kpi-content h2 {
    font-size: 19px
  }

  .charts-grid,
  .bottom-grid {
    grid-template-columns: 1.05fr .95fr
  }

  .legend-item {
    grid-template-columns: 12px minmax(110px, 1fr) 30px 88px;
    gap: 7px
  }

  .quick-action {
    padding: 0 14px;
    gap: 12px
  }
}

@media (max-width:1080px) {
  :root {
    --sidebar: 78px
  }

  .app-sidebar {
    padding: 24px 10px 14px
  }

  .brand {
    height: 70px;
    padding: 0;
    justify-content: center
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: left
  }

  .nav-item {
    justify-content: center;
    padding: 0;
    border-left: 0;
    border-radius: 7px;
    gap: 0
  }

  .nav-item span,
  .upgrade-card h2,
  .upgrade-card p,
  .upgrade-card .upgrade-btn,
  .profile-copy,
  .profile-button>.bi {
    display: none
  }

  .upgrade-card {
    height: 52px;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    display: grid;
    place-items: center;
    background: transparent;
    box-shadow: none
  }

  .upgrade-icon {
    position: static;
    width: 36px;
    height: 36px
  }

  .sidebar-divider {
    margin: 0 0 14px
  }

  .profile-dropdown {
    /* padding: 0; */
    display: flex;
    justify-content: center
  }

  .profile-button {
    width: auto
  }

  .charts-grid,
  .bottom-grid {
    grid-template-columns: 1fr
  }

  .channels-card {
    height: 270px
  }

  .channels-content {
    justify-content: flex-start
  }

  .right-stack {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .quick-actions-card,
  .receivables-card {
    height: 210px
  }

  .receivables-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 9px
  }

  .quick-actions {
    grid-template-columns: 1fr
  }

  .quick-action {
    height: 42px
  }

  .quick-icon {
    width: 30px;
    height: 30px;
    font-size: 16px
  }

  .topbar-actions {
    gap: 10px
  }

  .date-selector {
    min-width: 190px
  }

  /* .new-payment-btn {
    min-width: 175px
  } */
}

@media (max-width:760px) {
  :root {
    --sidebar: 0
  }

  .app-sidebar {
    display: none
  }

  .dashboard-main {
    margin-left: 0;
    padding: 22px 16px
  }

  .topbar {
    margin: 0 0 25px;
    gap: 16px;
    flex-direction: column
  }

  .mobile-menu {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin-right: 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #163562;
    background: #fff;
    font-size: 20px
  }

  .welcome-copy h1 {
    font-size: 18px
  }

  .welcome-copy p {
    font-size: 12px
  }

  .topbar-actions {
    width: 100%;
    margin: 0;
    gap: 9px
  }

  .date-selector {
    height: 42px;
    min-width: 0;
    flex: 1;
    padding: 0 11px;
    gap: 7px
  }

  .date-range-label {
    font-size: 11px
  }

  .notification-button {
    height: 42px;
    width: 42px;
    flex: 0 0 42px
  }

  .new-payment-btn {
    height: 42px;
    /* min-width: 42px; */
    /* width: 42px; */
    padding: 0;
    flex: 0 0 42px
  }

  .new-payment-btn span,
  .new-payment-btn .button-chevron {
    display: none
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px
  }

  .kpi-card {
    min-height: 112px;
    padding: 15px 12px;
    gap: 11px
  }

  .kpi-icon {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
    border-radius: 15px;
    font-size: 20px
  }

  .kpi-content p {
    white-space: normal;
    font-size: 11px;
    min-height: 29px;
    margin-bottom: 1px
  }

  .kpi-content h2 {
    font-size: 16px;
    margin-bottom: 5px
  }

  .kpi-content>div {
    gap: 6px
  }

  .positive,
  .comparison {
    font-size: 10px
  }

  .charts-grid {
    gap: 14px;
    margin-bottom: 14px
  }

  .collections-card,
  .channels-card {
    height: 310px;
    padding: 12px 14px
  }

  .card-heading h2 {
    font-size: 15px
  }

  .collection-metric strong {
    font-size: 20px
  }

  .line-chart-wrap {
    height: 171px
  }

  .channels-content {
    gap: 10px
  }

  .donut-wrap {
    width: 132px;
    height: 132px;
    flex-basis: 132px;
    margin: 0
  }

  .channel-legend {
    gap: 10px
  }

  .legend-item {
    grid-template-columns: 9px minmax(0, 1fr) 28px;
    gap: 6px;
    font-size: 10px
  }

  .legend-item span:last-child {
    display: none
  }

  .legend-dot {
    width: 8px;
    height: 8px
  }

  .bottom-grid {
    gap: 14px
  }

  .transactions-card {
    height: 380px
  }

  .right-stack {
    display: flex;
    gap: 14px
  }

  .receivables-card {
    height: auto;
    min-height: 180px
  }

  .receivables-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .receivable-metric:last-child {
    grid-column: 1/-1
  }

  .quick-actions-card {
    height: 202px
  }

  .quick-action {
    padding: 0 12px
  }

  .notification-menu {
    width: min(330px, calc(100vw - 32px))
  }
}

@media (max-width:400px) {
  .date-range-label {
    font-size: 10px
  }

  .kpi-grid {
    grid-template-columns: 1fr
  }

  .kpi-content p {
    min-height: 0
  }

  .receivables-metrics {
    grid-template-columns: 1fr
  }

  .receivable-metric:last-child {
    grid-column: auto
  }
}

.payments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(390px, .95fr);
  gap: 16px
}

/* .payments-table-card {
  height: 704px;
  overflow: hidden
} */

.payments-table-heading {
  height: 70px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #edf1f5
}

.payments-filters {
  display: flex;
  align-items: center;
  gap: 12px
}

.filter-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #dfe6f0;
  border-radius: 7px;
  background: #fff;
  color: #1d3764;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap
}

.filter-button i {
  font-size: 12px
}

.payments-scroll {
  /* height: 570px; */
  overflow-x: auto
}

.payments-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse
}

.payments-table th {
  height: 43px;
  padding: 0 16px;
  color: #243b66;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  background: #fff;
  white-space: nowrap
}

.payments-table td {
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
  color: #10264c;
  font-size: 11px;
  white-space: nowrap
}

.payments-table th:nth-child(1),
.payments-table td:nth-child(1) {
  width: 17%
}

.payments-table th:nth-child(2),
.payments-table td:nth-child(2) {
  width: 21%
}

.payments-table th:nth-child(3),
.payments-table td:nth-child(3) {
  width: 13%;
  font-weight: 600
}

.payments-table th:nth-child(4),
.payments-table td:nth-child(4) {
  width: 18%
}

.payments-table th:nth-child(5),
.payments-table td:nth-child(5) {
  width: 13%
}

.payments-table th:nth-child(6),
.payments-table td:nth-child(6) {
  width: 14%
}

.payments-table th:nth-child(7),
.payments-table td:nth-child(7) {
  width: 7%;
  text-align: center
}

.payments-table td:first-child {
  color: #25406f
}

.row-action {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0d2450;
  display: inline-grid;
  place-items: center
}

.row-action:hover {
  background: #f4f8ff;
  color: var(--primary)
}

.status.failed {
  color: #f04438;
  background: #ffedef
}

.payments-pagination {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  color: #30466d;
  font-size: 12px
}

.payments-pagination nav {
  display: flex;
  gap: 6px
}

.page-control {
  width: 31px;
  height: 31px;
  border: 1px solid #dce6f2;
  border-radius: 6px;
  background: #fff;
  color: #28446f;
  font-size: 12px
}

.page-control.active {
  border-color: #0d6efd;
  background: #eef5ff;
  color: #075fe4;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, .1) inset
}

.page-control.disabled {
  color: #b5c2d4
}

.payments-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.payment-side-card {
  padding: 16px 21px
}

.payment-channels-card {
  height: 264px
}

.payment-channels-card .channels-content {
  height: 196px;
  gap: 22px
}

.payment-channels-card .donut-wrap {
  width: 144px;
  height: 144px;
  flex-basis: 144px;
  margin-left: 0
}

.payment-channels-card .channel-legend {
  gap: 17px
}

.payment-status-card {
  height: 198px
}

.status-overview {
  padding-top: 11px;
  padding-bottom: 11px;
}

.status-row {
  height: 45px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 58px 112px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf1f5;
  color: #31476f;
  font-size: 12px
}

.status-row:last-child {
  border-bottom: 0
}

.status-row strong {
  font-size: 12px;
  color: #14294f;
  text-align: right
}

.status-row em {
  font-style: normal;
  color: #31476f;
  text-align: right;
  font-size: 12px
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px
}

.status-icon.green {
  color: #12b76a;
  background: #e9f8ef
}

.status-icon.orange {
  color: #f79009;
  background: #fff4e6
}

.status-icon.red {
  color: #f04438;
  background: #ffedef
}

.payment-quick-card {
  height: 210px
}

.payment-quick-card .quick-actions {
  margin-top: 11px
}

@media (max-width:1300px) {
  .payments-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, .95fr)
  }

  .payments-table th,
  .payments-table td {
    padding: 0 12px
  }

  .payment-channels-card .channels-content {
    gap: 14px
  }

  .payment-channels-card .donut-wrap {
    width: 132px;
    height: 132px;
    flex-basis: 132px
  }

  .status-row {
    grid-template-columns: 28px minmax(0, 1fr) 46px 98px
  }
}

@media (max-width:1080px) {
  .payments-layout {
    grid-template-columns: 1fr
  }

  .payments-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .payment-channels-card {
    height: 270px
  }

  .payment-quick-card {
    height: 210px
  }

  .payment-status-card {
    height: 210px
  }
}

@media (max-width:760px) {
  .payments-layout {
    gap: 14px
  }

  .payments-table-card {
    height: auto
  }

  .payments-table-heading {
    height: auto;
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px
  }

  .payments-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px
  }

  .payments-scroll {
    height: auto
  }

  .payments-table {
    min-width: 700px
  }

  .payments-pagination {
    height: auto;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px
  }

  .payments-side-stack {
    display: flex
  }

  .payment-side-card {
    padding: 13px 14px
  }

  .payment-channels-card {
    height: 310px
  }

  .payment-channels-card .channels-content {
    height: 232px
  }

  .payment-channels-card .donut-wrap {
    width: 132px;
    height: 132px;
    flex-basis: 132px
  }

  .status-row {
    grid-template-columns: 28px minmax(0, 1fr) 46px 94px
  }

  .payment-status-card {
    height: 198px
  }
}

@media (max-width:400px) {
  .status-row {
    grid-template-columns: 28px minmax(0, 1fr) 40px
  }

  .status-row em {
    display: none
  }
}

.dashboard-page {
  overflow-x: hidden
}

.dashboard-page .channels-card {
  overflow: hidden
}

.dashboard-page .channels-content {
  min-width: 0
}

.dashboard-page .channel-legend {
  overflow: hidden
}

.dashboard-page .legend-item {
  grid-template-columns: 10px minmax(112px, 1fr) 34px minmax(82px, 96px);
  column-gap: 8px
}

.dashboard-page .legend-item span {
  min-width: 0
}

.dashboard-page .legend-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis
}

.dashboard-page .legend-item span:last-child {
  overflow: hidden;
  text-overflow: clip
}

/* Pixel-fidelity pass: lock the desktop scale, spacing, and overflow to the supplied Collecxa mockups. */
html {
  overflow-x: hidden
}

body {
  overflow-x: hidden;
  background: #f8fafc;
  color: #071534;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision
}

.app-sidebar {
  width: 258px;
  padding: 38px 19px 16px 10px;
  border-right-color: #e3e9f2
}

.brand {
  height: 73px;
  padding-left: 23px
}

.brand-logo {
  width: 153px
}

.sidebar-nav {
  gap: 2px
}

.nav-item {
  height: 48px;
  margin: 0 0 2px;
  padding: 0 25px;
  border-radius: 8px;
  color: #1f3b68;
  font-size: 14px;
  font-weight: 500
}

.nav-item i {
  font-size: 17px;
  color: #163a70
}

.nav-item.active {
  background: #edf4ff;
  color: #0668ed;
  border-left: 2px solid #0668ed
}

.nav-item.active i {
  color: #0668ed
}

.upgrade-card {
  margin: 0 9px 20px;
  padding: 21px 18px 18px;
  border-color: #dae4ef;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025)
}

.upgrade-card h2 {
  font-size: 14px;
  color: #101828
}

.upgrade-card p {
  font-size: 12px;
  color: #30476f
}

.profile-button {
  padding-top: 5px
}

.avatar {
  width: 43px;
  height: 43px
}

.dashboard-main {
  margin-left: 258px;
  padding: 39px 30px 32px;
  background: #fbfcfe
}

.topbar {
  margin: 0 1px 36px;
  align-items: flex-start
}

.welcome-copy h1 {
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: -.38px;
  font-weight: 700;
  color: #090f1f
}

.welcome-copy p {
  font-size: 13px;
  color: #263e68
}

.topbar-actions {
  gap: 18px
}

.date-selector {
  width: 224px;
  min-width: 224px;
  height: 45px;
  border-color: #dce4ee;
  border-radius: 8px;
  font-size: 12px;
  color: #10284f
}

.notification-button {
  width: 45px;
  height: 45px;
  border-color: #dce4ee;
  border-radius: 8px;
  color: #0d2752
}

.notification-button b {
  top: -6px;
  right: -2px;
  background: #f04438
}

.new-payment-btn {
  /* width: 200px; */
  /* min-width: 200px; */
  height: 45px;
  border-radius: 8px;
  background: #0668ed;
  font-weight: 500
}

.kpi-grid {
  gap: 16px;
  margin-bottom: 20px
}

.kpi-card {
  height: 125px;
  border-color: #e1e7ef;
  border-radius: 9px;
  padding: 24px 17px 20px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .035), 0 1px 2px rgba(16, 24, 40, .03)
}

.kpi-icon {
  width: 59px;
  height: 59px;
  flex-basis: 59px;
  border-radius: 24px;
  font-size: 27px
}

.kpi-content p {
  font-size: 13px;
  color: #12264d;
  margin-bottom: 5px
}

.kpi-content h2 {
  font-size: 22px;
  letter-spacing: -.45px;
  margin-bottom: 9px;
  color: #070d1d
}

.positive {
  color: #079f50
}

.comparison {
  color: #263e68
}

.app-card {
  border-color: #e1e7ef;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .035), 0 1px 2px rgba(16, 24, 40, .03)
}

.charts-grid,
.bottom-grid {
  gap: 16px;
  grid-template-columns: minmax(0, 1.065fr) minmax(0, .935fr)
}

.collections-card,
.channels-card {
  height: 323px;
  padding: 14px 21px 13px
}

.card-heading h2 {
  font-size: 16px;
  color: #101b3c
}

.line-chart-wrap {
  height: 179px
}

.donut-wrap {
  width: 177px;
  height: 177px;
  flex-basis: 177px
}

.channels-content {
  gap: 30px;
  overflow: hidden
}

.channel-legend {
  overflow: hidden
}

.legend-item {
  grid-template-columns: 10px minmax(128px, 1fr) 36px minmax(94px, 101px);
  gap: 8px;
  font-size: 13px
}

.legend-item span {
  min-width: 0
}

.legend-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis
}

.legend-item span:last-child {
  overflow: hidden;
  text-overflow: clip
}

.transactions-card {
  height: 381px
}

.transactions-table th {
  font-size: 10px;
  color: #3d5274
}

.transactions-table td {
  font-size: 11px;
  color: #10264c
}

.status {
  border-radius: 5px
}

.receivables-card {
  height: 154px
}

.quick-actions-card {
  height: 210px
}

.quick-action {
  height: 59px;
  border-radius: 8px
}

.payments-layout {
  grid-template-columns: minmax(0, 1.67fr) minmax(390px, .95fr);
  gap: 16px
}

/* .payments-table-card {
  height: 704px
} */

.payments-page .payment-channels-card {
  height: 264px
}

.payments-page .payment-status-card {
  height: 198px
}

.payments-page .payment-quick-card {
  height: 210px
}

.payments-page .channels-content {
  gap: 22px
}

.payments-page .donut-wrap {
  width: 144px;
  height: 144px;
  flex-basis: 144px
}

.payments-table th {
  font-size: 11px;
  color: #243b66
}

.payments-table td {
  font-size: 11px
}

.filter-button {
  border-color: #dce4ee;
  color: #1a335e
}

.row-action i {
  font-size: 14px
}

@media (min-width:1500px) {
  .dashboard-main {
    padding-left: 30px;
    padding-right: 30px
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .channels-card {
    min-width: 0
  }

  .payments-layout {
    grid-template-columns: minmax(0, 1.64fr) minmax(390px, .96fr)
  }
}

@media (max-width:1300px) {
  .dashboard-main {
    margin-left: 220px
  }

  .app-sidebar {
    width: 220px
  }

  .brand-logo {
    width: 142px
  }

  .legend-item {
    grid-template-columns: 10px minmax(110px, 1fr) 34px minmax(78px, 88px)
  }
}

@media (max-width:1080px) {
  .dashboard-main {
    margin-left: 78px
  }

  .app-sidebar {
    width: 78px
  }
}

@media (max-width:760px) {
  .dashboard-main {
    margin-left: 0
  }

  .brand-logo {
    width: 145px
  }

  .topbar-actions {
    gap: 9px
  }

  .date-selector {
    width: auto;
    min-width: 0
  }

  /* .new-payment-btn {
    width: 42px;
    min-width: 42px
  } */
}

/* Mockup correction pass: tighten desktop density and icon weight to match the supplied reference. */
@media (min-width:1081px) {
  :root {
    --sidebar: 258px
  }

  body {
    font-size: 14px
  }

  .app-sidebar {
    width: 258px;
    min-width: 258px;
    padding: 35px 19px 16px 10px
  }

  .dashboard-main {
    margin-left: 258px;
    padding: 38px 30px 33px
  }

  .brand {
    height: 66px;
    padding-left: 24px
  }

  .brand-logo {
    width: 151px
  }

  .nav-item {
    height: 49px;
    gap: 17px;
    padding: 0 25px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500
  }

  .nav-item i {
    width: 17px;
    min-width: 17px;
    font-size: 17px;
    line-height: 1;
    color: #173968;
    -webkit-text-stroke: .15px currentColor
  }

  .nav-item.active {
    font-weight: 600;
    background: #edf4ff;
    color: #0668ed
  }

  .nav-item.active i {
    color: #0668ed
  }

  .welcome-copy h1 {
    font-size: 20px
  }

  .welcome-copy p {
    font-size: 13px
  }

  .date-selector {
    width: 223px;
    min-width: 223px;
    font-size: 12px
  }

  .notification-button {
    width: 45px;
    height: 45px
  }

  .new-payment-btn {
    /* width: 200px;
    min-width: 200px; */
    white-space: nowrap;
    font-size: 13px;
    line-height: 1
  }

  .new-payment-btn span {
    white-space: nowrap
  }

  .new-payment-btn .button-chevron {
    flex: 0 0 auto
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px
  }

  .kpi-card {
    height: 125px;
    padding: 23px 17px;
    gap: 15px;
    overflow: hidden
  }

  .kpi-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 21px;
    font-size: 23px
  }

  .kpi-content {
    min-width: 0;
    max-width: calc(100% - 67px)
  }

  .kpi-content p {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip
  }

  .kpi-content h2 {
    font-size: 22px;
    white-space: nowrap
  }

  .kpi-content>div {
    gap: 11px
  }

  .positive,
  .comparison {
    font-size: 12px;
    white-space: nowrap
  }

  .charts-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1.065fr) minmax(0, .935fr);
    gap: 16px
  }

  .collections-card,
  .channels-card {
    height: 323px
  }

  .channels-card {
    min-width: 0
  }

  .channels-content {
    min-width: 0;
    overflow: hidden
  }

  .donut-wrap {
    width: 177px;
    height: 177px;
    flex: 0 0 177px
  }

  .legend-item {
    grid-template-columns: 10px minmax(112px, 1fr) 34px minmax(96px, 106px);
    font-size: 13px
  }

  .legend-item span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis
  }

  .legend-item span:last-child {
    overflow: hidden;
    text-overflow: clip
  }

  .payments-layout {
    grid-template-columns: minmax(0, 1.67fr) minmax(390px, .95fr)
  }

  .payments-page .payment-channels-card .legend-item {
    grid-template-columns: 10px minmax(110px, 1fr) 34px minmax(96px, 104px)
  }
}

@media (min-width:1081px) and (max-width:1360px) {
  .dashboard-main {
    padding-left: 24px;
    padding-right: 24px
  }

  .kpi-card {
    padding-left: 15px;
    padding-right: 13px;
    gap: 12px
  }

  .kpi-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 19px;
    font-size: 21px
  }

  .kpi-content {
    max-width: calc(100% - 60px)
  }

  .kpi-content h2 {
    font-size: 20px
  }

  .kpi-content p {
    font-size: 12px
  }

  .comparison,
  .positive {
    font-size: 11px
  }

  .new-payment-btn {
    width: 186px;
    min-width: 186px
  }

  .date-selector {
    width: 210px;
    min-width: 210px
  }

  .legend-item {
    grid-template-columns: 10px minmax(96px, 1fr) 33px minmax(72px, 84px)
  }
}

/* Independent sidebar scrolling. */
.app-sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent
}

.app-sidebar::-webkit-scrollbar {
  width: 6px
}

.app-sidebar::-webkit-scrollbar-track {
  background: transparent
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
  background: #aebbd0
}

@media (max-width:760px) {
  .app-sidebar {
    overflow: visible
  }
}

/* Font Awesome sidebar icons: bold provider glyphs, aligned to the mockup nav rhythm. */
.nav-item i.fa-solid,
.nav-item i.fa-regular {
  display: inline-flex;
  width: 18px;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: none !important;
  color: currentColor !important;
  -webkit-mask: none !important;
  mask: none !important;
  font-size: 16px;
  line-height: 1;
  -webkit-text-stroke: .28px currentColor
}

.nav-item i.fa-solid::before,
.nav-item i.fa-regular::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important
}

.nav-item[data-page="Payments"] i.fa-solid {
  font-size: 15px
}

.nav-item[data-page="Customers"] i.fa-solid,
.nav-item[data-page="Reports"] i.fa-solid {
  font-size: 15.5px
}

.nav-item[data-page="Integrations"] i.fa-solid {
  font-size: 15px
}

.nav-item.active i.fa-solid {
  color: #0668ed !important
}

/* Customers page. */
.kpi-icon.purple {
  color: #7d3bf2;
  background: #f2eafe
}

.customers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.74fr) minmax(390px, .96fr);
  gap: 16px
}

.customers-table-card {
  height: 731px;
  overflow: hidden
}

.customers-table-heading {
  height: 70px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #edf1f5
}

.customers-filters {
  display: flex;
  align-items: center;
  gap: 10px
}

.search-field {
  height: 34px;
  width: 166px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #dfe6f0;
  border-radius: 7px;
  background: #fff;
  color: #5e7193;
  display: flex;
  align-items: center;
  gap: 8px
}

.search-field i {
  font-size: 12px
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1b335d;
  font-size: 11px
}

.search-field input::placeholder {
  color: #7b8ba7
}

.customers-scroll {
  height: 597px;
  overflow-x: auto
}

.customers-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse
}

.customers-table th {
  height: 43px;
  padding: 0 16px;
  color: #243b66;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  background: #fff;
  white-space: nowrap
}

.customers-table td {
  height: 57px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
  color: #10264c;
  font-size: 11px;
  white-space: nowrap
}

.customers-table th:nth-child(1),
.customers-table td:nth-child(1) {
  width: 21%
}

.customers-table th:nth-child(2),
.customers-table td:nth-child(2) {
  width: 23%
}

.customers-table th:nth-child(3),
.customers-table td:nth-child(3) {
  width: 13%
}

.customers-table th:nth-child(4),
.customers-table td:nth-child(4) {
  width: 14%;
  font-weight: 600
}

.customers-table th:nth-child(5),
.customers-table td:nth-child(5) {
  width: 13%;
  font-weight: 600
}

.customers-table th:nth-child(6),
.customers-table td:nth-child(6) {
  width: 9%
}

.customers-table th:nth-child(7),
.customers-table td:nth-child(7) {
  width: 7%;
  text-align: center
}

.customer-email {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #203964;
  line-height: 1.3
}

.customer-email small {
  font-size: 11px;
  color: #294570
}

.segment-badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600
}

.segment-badge.corporate {
  color: #0668ed;
  background: #eaf3ff
}

.segment-badge.education {
  color: #09984d;
  background: #e8f8ee
}

.segment-badge.government {
  color: #733ee6;
  background: #f2edff
}

.segment-badge.individual {
  color: #e27505;
  background: #fff2df
}

.segment-badge.sme {
  color: #f36f05;
  background: #fff0e3
}

.customers-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.customer-side-card {
  padding: 16px 21px
}

.customer-segment-card {
  height: 248px
}

.segment-content {
  height: 180px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden
}

.customer-donut-wrap {
  width: 140px;
  height: 140px;
  flex: 0 0 140px
}

.segment-legend {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.segment-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 38px 45px;
  align-items: center;
  gap: 8px;
  color: #294168;
  font-size: 12px;
  white-space: nowrap
}

.segment-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis
}

.segment-item strong {
  font-size: 12px;
  text-align: right;
  color: #14294f
}

.segment-item em {
  font-style: normal;
  text-align: right;
  color: #294168;
  font-size: 11px
}

.top-customers-card {
  height: 248px
}

.top-customers-list {
  padding-top: 10px
}

.top-customer-row {
  height: 37px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf1f5;
  color: #243b66;
  font-size: 12px
}

.top-customer-row:last-child {
  border-bottom: 0
}

.top-customer-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.top-customer-row strong {
  text-align: right;
  color: #102044;
  font-size: 12px
}

.top-customer-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px
}

.top-customer-icon.blue {
  color: #0668ed;
  background: #eaf3ff
}

.top-customer-icon.green {
  color: #10a955;
  background: #e8f8ee
}

.top-customer-icon.pink {
  color: #e13d94;
  background: #ffecf6
}

.top-customer-icon.cyan {
  color: #0891b2;
  background: #e8f8fd
}

.customer-quick-card {
  height: 197px
}

.customer-quick-card .quick-actions {
  margin-top: 11px
}

.customers-page .new-payment-btn {
  width: 183px;
  min-width: 183px
}

.customers-page .kpi-card {
  height: 126px
}

.customers-page .kpi-icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 23px;
  font-size: 23px
}

.customers-page .kpi-content {
  max-width: calc(100% - 69px)
}

@media (max-width:1300px) {
  .customers-layout {
    grid-template-columns: minmax(0, 1.58fr) minmax(350px, .95fr)
  }

  .customers-table th,
  .customers-table td {
    padding: 0 12px
  }

  .search-field {
    width: 150px
  }

  .segment-content {
    gap: 15px
  }

  .customer-donut-wrap {
    width: 128px;
    height: 128px;
    flex-basis: 128px
  }

  .segment-item {
    grid-template-columns: 10px minmax(0, 1fr) 34px 39px
  }

  .top-customer-row {
    grid-template-columns: 28px minmax(0, 1fr) 88px
  }

  .customers-page .kpi-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 21px
  }

  .customers-page .kpi-content {
    max-width: calc(100% - 60px)
  }
}

@media (max-width:1080px) {
  .customers-layout {
    grid-template-columns: 1fr
  }

  .customers-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .customer-quick-card {
    height: 210px
  }

  .customer-segment-card,
  .top-customers-card {
    height: 270px
  }

  .segment-content {
    height: 202px
  }

  .customers-side-stack .customer-quick-card {
    grid-column: 1/-1
  }

  .customers-page .new-payment-btn {
    min-width: 175px
  }
}

@media (max-width:760px) {
  .customers-layout {
    gap: 14px
  }

  .customers-table-card {
    height: auto
  }

  .customers-table-heading {
    height: auto;
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px
  }

  .customers-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px
  }

  .search-field {
    min-width: 180px
  }

  .customers-scroll {
    height: auto
  }

  .customers-table {
    min-width: 760px
  }

  .customers-pagination {
    height: auto;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px
  }

  .customers-side-stack {
    display: flex
  }

  .customer-side-card {
    padding: 13px 14px
  }

  .customer-segment-card {
    height: 310px
  }

  .segment-content {
    height: 232px;
    gap: 12px
  }

  .customer-donut-wrap {
    width: 132px;
    height: 132px;
    flex-basis: 132px
  }

  .segment-legend {
    gap: 10px
  }

  .segment-item {
    grid-template-columns: 9px minmax(0, 1fr) 30px 37px;
    gap: 6px;
    font-size: 10px
  }

  .top-customers-card {
    height: 248px
  }

  .customer-quick-card {
    height: 202px
  }

  .customers-page .new-payment-btn {
    width: 42px;
    min-width: 42px
  }
}

@media (max-width:400px) {
  .segment-item {
    grid-template-columns: 9px minmax(0, 1fr) 28px
  }

  .segment-item em {
    display: none
  }

  .top-customer-row {
    grid-template-columns: 28px minmax(0, 1fr) 82px
  }
}

.initials.fg {
  background: #d9f4fb;
  color: #07849d
}

.initials.gf {
  background: #dcf7e9;
  color: #10a955
}

.initials.zv {
  background: #e8e5ff;
  color: #5e45d7
}

.initials.sa {
  background: #fde8f4;
  color: #d93684
}

.initials.ns {
  background: #dff5fd;
  color: #0786a4
}

/* Settings, users, roles, and integrations pages. */
.negative {
  color: #f04438;
  font-size: 12px;
  font-weight: 600
}

.negative i {
  font-size: 9px;
  margin-right: 3px
}

.settings-tabs {
  height: 52px;
  margin: 0 0 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .02)
}

.settings-tabs a {
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #183462;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent
}

.settings-tabs a.active {
  color: #0668ed;
  border-bottom-color: #0668ed
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, .98fr);
  gap: 18px
}

.settings-form-card {
  min-height: 650px;
  padding: 22px 24px
}

.settings-form-card h2,
.info-card h2,
.admin-side-card h2,
.list-card h2,
.help-card h2 {
  font-size: 16px;
  color: #101b3c;
  font-weight: 700;
  margin: 0 0 8px
}

.settings-form-card>p,
.info-card p,
.help-card p {
  font-size: 12px;
  color: #30476f;
  margin: 0 0 22px
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px
}

.settings-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #14294f;
  font-size: 12px;
  font-weight: 500
}

.settings-form-grid input,
.settings-form-grid select {
  height: 36px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  padding: 0 13px;
  color: #10264c;
  background: #fff;
  font-size: 12px
}

.settings-form-card hr {
  margin: 27px 0 18px;
  border-color: #e4e9f0;
  opacity: 1
}

.settings-form-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #101b3c;
  margin: 0 0 12px
}

.pref-row {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f5
}

.pref-row span {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.pref-row strong {
  font-size: 12px;
  color: #14294f
}

.pref-row small {
  font-size: 11px;
  color: #40577e
}

.pref-row .form-check-input {
  width: 34px;
  height: 18px;
  margin: 0;
  border: 0;
  background-color: #cbd5e1
}

.pref-row .form-check-input:checked {
  background-color: #0968e9
}

.save-settings {
  width: 108px;
  height: 34px;
  margin-top: 27px;
  font-size: 12px
}

.settings-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.info-card {
  position: relative;
  min-height: 168px;
  padding: 24px 22px 18px 73px
}

.info-icon {
  position: absolute;
  left: 22px;
  top: 21px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px
}

.info-icon.blue,
.status-icon.blue {
  color: #0668ed;
  background: #eaf3ff
}

.info-icon.purple,
.status-icon.purple {
  color: #7d3bf2;
  background: #f2eafe
}

.info-icon.green {
  color: #10a955;
  background: #e8f8ee
}

.info-icon.red {
  color: #f04438;
  background: #ffedef
}

.info-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 18px 0 0;
  font-size: 12px
}

.info-card dt {
  font-weight: 500;
  color: #30476f
}

.info-card dd {
  text-align: right;
  margin: 0;
  color: #183462
}

.outline-action {
  width: 100%;
  height: 35px;
  border: 1px solid #0668ed;
  border-radius: 6px;
  background: #fff;
  color: #0668ed;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.outline-action i {
  margin-right: 8px
}

.outline-action.danger {
  border-color: #ff4d4f;
  color: #f04438
}

.admin-kpis {
  margin-bottom: 18px
}

.admin-layout,
.integrations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, .94fr);
  gap: 18px
}

.admin-table-card {
  height: 665px;
  overflow: hidden
}

.roles-table-card {
  height: 606px;
  overflow: hidden
}

.admin-table-heading {
  height: 70px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #edf1f5
}

.admin-scroll {
  height: 522px;
  overflow-x: auto
}

.roles-scroll {
  height: 462px
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse
}

.admin-table th {
  height: 43px;
  padding: 0 16px;
  color: #243b66;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  background: #fff;
  white-space: nowrap
}

.admin-table td {
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
  color: #10264c;
  font-size: 11px;
  white-space: nowrap
}

.roles-table td {
  height: 78px
}

.admin-side-stack,
.integrations-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.admin-side-card {
  height: 217px;
  padding: 22px 24px
}

.mini-chart-row {
  height: 150px;
  display: flex;
  align-items: center;
  gap: 28px
}

.mini-donut {
  width: 132px;
  height: 132px;
  flex: 0 0 132px
}

.segment-legend.compact {
  gap: 14px
}

.segment-legend.compact .segment-item {
  grid-template-columns: 10px minmax(0, 1fr) auto
}

.segment-legend.compact .segment-item em {
  display: none
}

.activity-card .status-row,
.permissions-card .status-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  height: 42px
}

.activity-card .status-row em {
  font-size: 10px
}

.admin-quick-card {
  height: 192px;
  padding: 9px 21px
}

.integrations-page .settings-tabs:first-of-type {
  margin-bottom: 18px
}

.integration-tabs {
  gap: 30px
}

.integration-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px
}

.integrations-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, .94fr)
}

.integrations-table-card {
  height: 674px;
  overflow: hidden
}

.integration-scroll {
  height: 528px;
  overflow-x: auto
}

.integrations-table {
  min-width: 850px
}

.integrations-table td {
  height: 64px
}

.brand-cell {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle
}

.paystack {
  background: #143a69
}

.flutter,
.zapier {
  background: #ff8a00
}

.quickbooks {
  background: #22a447
}

.xero {
  background: #1aa9e8
}

.mailchimp {
  background: #f6cf00;
  color: #111
}

.slack {
  background: #25c2a0
}

.twilio {
  background: #ff3030
}

.small-square {
  width: 29px;
  height: 29px;
  margin-right: 7px;
  border: 1px solid #dbe5f1;
  border-radius: 6px;
  background: #fff;
  color: #153566
}

.connect-btn {
  height: 27px;
  padding: 0 12px;
  border: 1px solid #0668ed;
  border-radius: 6px;
  background: #fff;
  color: #0668ed;
  font-size: 11px;
  font-weight: 600
}

.dot-status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px
}

.list-card {
  height: 248px;
  padding: 18px 22px
}

.list-card .top-customer-row {
  grid-template-columns: 28px minmax(0, 1fr) 90px
}

.list-card .view-all {
  display: inline-block;
  margin-top: 10px
}

.help-card {
  height: 126px;
  padding: 18px 22px
}

.help-card .outline-action {
  margin-top: 8px
}

.status-icon.red {
  color: #f04438;
  background: #ffedef
}

@media (max-width:1300px) {

  .settings-layout,
  .admin-layout,
  .integrations-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .95fr)
  }

  .settings-tabs {
    gap: 22px
  }

  .settings-form-card {
    padding: 20px
  }

  .admin-table th,
  .admin-table td {
    padding: 0 12px
  }

  .mini-chart-row {
    gap: 14px
  }

  .mini-donut {
    width: 116px;
    height: 116px;
    flex-basis: 116px
  }

  .integration-kpis {
    max-width: none
  }

  .integration-tabs {
    gap: 24px
  }

  .list-card .top-customer-row {
    grid-template-columns: 28px minmax(0, 1fr) 78px
  }
}

@media (max-width:1080px) {

  .settings-layout,
  .admin-layout,
  .integrations-layout {
    grid-template-columns: 1fr
  }

  .settings-side-stack,
  .admin-side-stack,
  .integrations-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .info-card.danger,
  .admin-quick-card,
  .help-card {
    grid-column: 1/-1
  }

  .integration-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:760px) {
  .mobile-hide {
    display: none;
  }

  .settings-tabs {
    height: auto;
    padding: 0 14px;
    gap: 20px
  }

  .settings-tabs a {
    height: 48px
  }

  .settings-layout,
  .admin-layout,
  .integrations-layout {
    gap: 14px
  }

  .settings-form-grid {
    grid-template-columns: 1fr
  }

  .settings-side-stack,
  .admin-side-stack,
  .integrations-side-stack {
    display: flex
  }

  .settings-form-card {
    min-height: 0;
    padding: 18px 16px
  }

  .info-card {
    padding: 20px 16px 16px 61px
  }

  .admin-table-card,
  .roles-table-card,
  .integrations-table-card {
    height: auto
  }

  .admin-table-heading {
    height: auto;
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px
  }

  .admin-scroll,
  .roles-scroll,
  .integration-scroll {
    height: auto
  }

  .admin-table {
    min-width: 760px
  }

  .integrations-table {
    min-width: 850px
  }

  .integration-kpis {
    grid-template-columns: 1fr
  }

  .mini-chart-row {
    justify-content: flex-start
  }

  .activity-card .status-row {
    grid-template-columns: 28px minmax(0, 1fr)
  }

  .activity-card .status-row em {
    display: none
  }
}

/* Login, accounting, and invoice pages. */
.kpi-icon.red {
  color: #f04438;
  background: #ffedef
}

.green-cta {
  background: #0ca85a !important
}

.login-page {
  min-height: 100vh;
  background: #fff;
  color: #071534
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .86fr
}

.login-brand-panel {
  position: relative;
  padding: 54px 58px 38px;
  overflow: hidden;
  border-right: 1px solid #e5eaf2;
  background: linear-gradient(180deg, #fff 0%, #fafdff 100%)
}

.login-logo {
  width: 168px;
  margin-bottom: 20px
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dce5f0;
  border-radius: 7px;
  color: #10284f;
  font-size: 13px;
  background: #fbfdff
}

.trust-pill i,
.login-security i {
  color: #10a955
}

.login-brand-panel h1 {
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 700;
  color: #101944;
  margin: 24px 0 18px
}

.login-brand-panel h1 span {
  color: #12a85b
}

.login-copy {
  max-width: 410px;
  color: #263e68;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 20px
}

.feature-list {
  display: grid;
  gap: 24px;
  max-width: 360px
}

.feature-list>div {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px
}

.feature-list strong {
  font-size: 14px;
  color: #101944
}

.feature-list p {
  grid-column: 2;
  color: #263e68;
  font-size: 13px;
  line-height: 1.5;
  margin: 5px 0 0
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  border: 1px solid
}

.feature-icon.green {
  color: #10a955;
  background: #ecfbf2;
  border-color: #cceedd
}

.feature-icon.blue {
  color: #0668ed;
  background: #edf4ff;
  border-color: #cce0ff
}

.feature-icon.purple {
  color: #7d3bf2;
  background: #f2eafe;
  border-color: #e1d1ff
}

.feature-icon.orange {
  color: #ff8900;
  background: #fff5e8;
  border-color: #ffdca8
}

.device-art {
  position: absolute;
  right: 44px;
  bottom: 110px;
  width: 520px;
  height: 330px
}

.laptop {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 420px;
  height: 255px;
  padding: 24px 24px 18px 78px;
  border: 10px solid #111;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 24, 40, .22);
  transform: perspective(700px) rotateY(-7deg) rotateX(2deg)
}

.laptop:after {
  content: "";
  position: absolute;
  left: -35px;
  right: -35px;
  bottom: -22px;
  height: 20px;
  border-radius: 0 0 45px 45px;
  background: linear-gradient(#d9dee6, #a9b1bd)
}

.mini-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #10284f
}

.mini-sidebar {
  position: absolute;
  left: 18px;
  top: 48px;
  bottom: 20px;
  width: 42px;
  background: #f2f6fc;
  border-radius: 5px
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 18px
}

.mini-cards i {
  height: 42px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fbfdff
}

.mini-chart {
  height: 86px;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: linear-gradient(150deg, transparent 40%, rgba(16, 183, 106, .16)), repeating-linear-gradient(0deg, #fff, #fff 20px, #edf1f5 21px)
}

.mini-table {
  display: grid;
  gap: 6px;
  margin-top: 12px
}

.mini-table i {
  height: 10px;
  border-radius: 4px;
  background: #edf4ff
}

.phone {
  position: absolute;
  right: 12px;
  bottom: -4px;
  width: 104px;
  height: 204px;
  border: 8px solid #111;
  border-radius: 26px;
  background: #fff;
  padding: 24px 10px 10px;
  box-shadow: 0 18px 38px rgba(16, 24, 40, .28)
}

.phone b {
  display: block;
  font-size: 10px;
  margin-bottom: 11px
}

.phone i {
  display: block;
  height: 24px;
  margin: 7px 0;
  border-radius: 6px;
  background: #eef5ff
}

.login-security {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  color: #10284f;
  font-size: 14px
}

.login-security a {
  color: #079f50;
  text-decoration: none
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #fff
}

.signin-card {
  width: min(95%, 530px);
  padding: 60px 48px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .07)
}

.signin-card h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #101944;
  margin: 0 0 12px
}

.signin-card>p {
  text-align: center;
  color: #526487;
  margin-bottom: 42px
}

.signin-card label {
  display: block;
  color: #101944;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px
}

.signin-card label>a {
  float: right;
  color: #079f50;
  text-decoration: none
}

.input-wrap {
  height: 52px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  padding: 0 16px;
  color: #7282a2
}

.input-wrap input {
  border: 0;
  outline: 0;
  flex: 1;
  color: #10284f
}

.input-wrap button {
  border: 0;
  background: transparent;
  color: #7282a2
}

.remember {
  display: flex !important;
  gap: 11px;
  align-items: center
}

.remember input {
  width: 18px;
  height: 18px
}

.signin-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 7px;
  background: #10a85b;
  color: #fff;
  font-weight: 700;
  font-size: 16px
}

.divider {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7282a2
}

.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e5eaf2
}

.divider span {
  padding: 0 18px
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.social-row button {
  height: 52px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  background: #fff;
  color: #10284f;
  font-weight: 500
}

.google-mark {
  font-size: 22px;
  color: #4285f4;
  margin-right: 12px
}

.ms-mark {
  display: inline-grid;
  grid-template-columns: 9px 9px;
  gap: 2px;
  margin-right: 12px;
  vertical-align: -2px
}

.ms-mark i {
  width: 9px;
  height: 9px
}

.ms-mark i:nth-child(1) {
  background: #f25022
}

.ms-mark i:nth-child(2) {
  background: #7fba00
}

.ms-mark i:nth-child(3) {
  background: #00a4ef
}

.ms-mark i:nth-child(4) {
  background: #ffb900
}

.create-account {
  text-align: center !important;
  margin: 40px 0 0 !important
}

.create-account a {
  color: #079f50
}

.login-copyright {
  margin-top: 48px;
  color: #526487
}

.finance-layout,
.invoice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(360px, .9fr);
  gap: 18px
}

.finance-main {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.cashflow-card {
  height: 325px;
  padding: 18px 22px
}

.cashflow-card .card-heading {
  height: 34px
}

.cash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 18px 0
}

.cash-metrics>div {
  border-left: 1px solid #dce4ee;
  padding-left: 14px
}

.cash-metrics>div:first-child {
  border-left-color: #10a955
}

.cash-metrics span {
  display: block;
  color: #243b66;
  font-size: 12px;
  margin-bottom: 8px
}

.cash-metrics strong {
  font-size: 20px
}

.cash-chart-wrap {
  height: 160px
}

.chart-accounts-card {
  height: 388px;
  overflow: hidden
}

.account-scroll {
  height: 244px;
  overflow-x: auto
}

.finance-side,
.invoice-side {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.account-summary-card,
.invoice-overview {
  height: 216px;
  padding: 22px 24px
}

.account-summary-card h2,
.invoice-overview h2 {
  font-size: 16px;
  font-weight: 700;
  color: #101b3c
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 26px
}

.summary-donut {
  position: relative;
  width: 140px;
  height: 140px;
  flex: 0 0 140px
}

.summary-donut b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 18px
}

.summary-donut small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #30476f
}

.accounting-transactions {
  height: 312px
}

.finance-txn {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 82px 76px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #edf1f5;
  font-size: 10px;
  color: #183462
}

.finance-txn p {
  margin: 0;
  line-height: 1.35
}

.finance-txn em {
  font-style: normal;
  color: #294570
}

.finance-txn b {
  text-align: right
}

.finance-txn small {
  display: block;
  font-weight: 500;
  color: #526487;
  margin-top: 4px
}

.accounting-quick {
  height: 172px
}

.accounting-upgrade {
  background: #f6fffa
}

.accounting-upgrade .upgrade-btn {
  background: #10a85b
}

.invoice-tabs {
  gap: 34px
}

.invoice-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.invoice-kpis .kpi-card {
  height: 113px
}

.invoice-kpis .kpi-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 22px
}

.invoice-kpis .kpi-content h2 {
  font-size: 19px
}

.invoices-table-card {
  height: 680px;
  overflow: hidden
}

.invoice-filters {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  border-bottom: 1px solid #edf1f5
}

.invoice-search {
  width: 220px
}

.invoice-scroll {
  height: 524px;
  overflow-x: auto
}

.invoice-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse
}

.invoice-table th {
  height: 44px;
  padding: 0 16px;
  color: #243b66;
  font-size: 11px;
  font-weight: 500;
  text-align: left
}

.invoice-table td {
  height: 62px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
  color: #10264c;
  font-size: 11px;
  white-space: nowrap
}

.invoice-table a {
  color: #0668ed;
  font-weight: 700
}

.invoice-table .customer span small {
  display: block;
  color: #294570;
  font-size: 10px;
  margin-top: 3px
}

.invoice-table input[type=checkbox] {
  width: 16px;
  height: 16px;
  border: 1px solid #cbd5e1
}

.status.draft {
  color: #344054;
  background: #eef2f7
}

.invoice-overview {
  height: 224px
}

.invoice-overview .card-heading {
  height: 34px
}

.invoice-overview .view-all {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-weight: 700
}

.invoice-activity {
  height: 260px
}

.invoice-quick {
  height: 180px
}

@media (max-width:1300px) {
  .mobile-hide {
    display: none;
  }

  .login-brand-panel {
    padding-left: 46px
  }

  .device-art {
    right: 12px;
    transform: scale(.88);
    transform-origin: right bottom
  }

  .finance-layout,
  .invoice-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .95fr)
  }

  .invoice-kpis {
    gap: 10px
  }

  .invoice-kpis .kpi-card {
    padding: 18px 12px;
    gap: 10px
  }

  .invoice-filters {
    gap: 12px
  }

  .summary-content {
    gap: 14px
  }

  .summary-donut {
    width: 124px;
    height: 124px;
    flex-basis: 124px
  }
}

@media (max-width:1080px) {
  .login-shell {
    grid-template-columns: 1fr
  }

  .login-brand-panel {
    min-height: 760px
  }

  .login-form-panel {
    padding: 34px 20px
  }

  .finance-layout,
  .invoice-layout {
    grid-template-columns: 1fr
  }

  .finance-side,
  .invoice-side {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .accounting-quick,
  .invoice-quick {
    grid-column: 1/-1
  }

  .invoice-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:760px) {
  .mobile-hide {
    display: none;
  }

  .login-brand-panel {
    padding: 32px 22px;
    min-height: 900px
  }

  .login-logo {
    margin-bottom: 44px
  }

  .login-brand-panel h1 {
    font-size: 34px
  }

  .device-art {
    left: 0;
    right: auto;
    bottom: 100px;
    transform: scale(.68);
    transform-origin: left bottom
  }

  .login-security {
    left: 22px;
    right: 22px;
    gap: 12px;
    flex-direction: column
  }

  .signin-card {
    padding: 34px 22px
  }

  .social-row {
    grid-template-columns: 1fr
  }

  .finance-side,
  .invoice-side {
    display: flex
  }

  .invoice-kpis {
    grid-template-columns: 1fr
  }

  .invoice-filters {
    height: auto;
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px
  }

  .invoice-search {
    width: 100%
  }

  .chart-accounts-card,
  .invoices-table-card {
    height: auto
  }

  .account-scroll,
  .invoice-scroll {
    height: auto
  }
}

/* Login page device mockup uses the real dashboard page inside the laptop and phone screens. */
.dashboard-device-art {
  right: 20px;
  bottom: 116px;
  width: 570px;
  height: 348px
}

.dashboard-laptop {
  left: 0;
  bottom: 0;
  width: 455px;
  height: 276px;
  padding: 0;
  border: 10px solid #101010;
  border-bottom-width: 16px;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(16, 24, 40, .24);
  transform: perspective(780px) rotateY(-7deg) rotateX(2deg)
}

.dashboard-laptop:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 44px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: #171717;
  transform: translateX(-50%);
  z-index: 2
}

.dashboard-laptop:after {
  left: -42px;
  right: -42px;
  bottom: -30px;
  height: 24px;
  background: linear-gradient(180deg, #f5f7fa, #aab3bf 58%, #7f8792);
  box-shadow: 0 10px 18px rgba(16, 24, 40, .18)
}

.device-screen,
.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fbfcfe
}

.device-screen iframe,
.phone-screen iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  pointer-events: none;
  transform-origin: 0 0
}

.device-screen iframe {
  width: 1536px;
  height: 1024px;
  transform: scale(.285)
}

.dashboard-phone {
  right: 8px;
  bottom: -1px;
  width: 112px;
  height: 210px;
  padding: 0;
  border: 7px solid #101010;
  border-radius: 27px;
  background: #101010;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(16, 24, 40, .3)
}

.dashboard-phone:before,
.dashboard-phone:after {
  display: none
}

.phone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 3;
  width: 42px;
  height: 10px;
  border-radius: 0 0 10px 10px;
  background: #101010;
  transform: translateX(-50%)
}

.phone-screen {
  inset: 7px;
  border-radius: 19px;
  background: #fff
}

.phone-screen iframe {
  width: 430px;
  height: 780px;
  transform: scale(.23)
}

@media (max-width:1300px) {
  .dashboard-device-art {
    right: -18px;
    transform: scale(.84);
    transform-origin: right bottom
  }
}

@media (max-width:1080px) {
  .dashboard-device-art {
    right: 24px;
    bottom: 120px;
    transform: scale(.92);
    transform-origin: right bottom
  }
}

@media (max-width:760px) {
  .dashboard-device-art {
    left: -18px;
    right: auto;
    bottom: 106px;
    transform: scale(.66);
    transform-origin: left bottom
  }
}

/* Login mockup bezel refinement. */
.dashboard-laptop {
  border-width: 5px;
  border-bottom-width: 8px;
  border-radius: 10px
}

.dashboard-laptop:before {
  top: 2px;
  width: 34px;
  height: 3px
}

.dashboard-laptop:after {
  bottom: -24px;
  height: 18px
}

.dashboard-phone {
  border-width: 4px;
  border-radius: 22px
}

.phone-screen {
  inset: 4px;
  border-radius: 17px
}

.phone-notch {
  top: 4px;
  width: 34px;
  height: 8px
}

/* Device compatibility pass: keeps every Collecxa page usable from wide desktop to small phones. */
img,
svg,
canvas,
iframe {
  max-width: 100%
}

.app-card,
.kpi-card,
.topbar,
.dashboard-grid,
.payments-layout,
.customers-layout,
.settings-layout,
.admin-layout,
.integrations-layout,
.finance-layout,
.invoice-layout {
  min-width: 0
}

.transactions-scroll,
.payments-scroll,
.customers-scroll,
.admin-scroll,
.roles-scroll,
.integration-scroll,
.account-scroll,
.invoice-scroll {
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain
}

.transactions-scroll:focus,
.payments-scroll:focus,
.customers-scroll:focus,
.admin-scroll:focus,
.roles-scroll:focus,
.integration-scroll:focus,
.account-scroll:focus,
.invoice-scroll:focus {
  outline: 2px solid rgba(6, 104, 237, .18);
  outline-offset: -2px
}

.topbar-actions>* {
  min-width: 0
}

.date-selector,
.new-payment-btn,
.filter-button,
.period-selector,
.quick-action {
  touch-action: manipulation
}

.search-field input,
.input-wrap input {
  min-width: 0
}

.modal-dialog {
  max-width: min(500px, calc(100vw - 24px));
  margin-left: auto;
  margin-right: auto
}

@media (max-width:1080px) {
  .app-sidebar {
    overflow-y: auto;
    overflow-x: hidden
  }

  .dashboard-main {
    padding-left: 22px;
    padding-right: 22px
  }

  .kpi-grid:not(.integration-kpis):not(.invoice-kpis) {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .payments-layout,
  .customers-layout,
  .settings-layout,
  .admin-layout,
  .integrations-layout,
  .finance-layout,
  .invoice-layout,
  .charts-grid,
  .bottom-grid {
    grid-template-columns: 1fr !important
  }

  .payments-side-stack,
  .customers-side-stack,
  .settings-side-stack,
  .admin-side-stack,
  .integrations-side-stack,
  .finance-side,
  .invoice-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
  }

  .payment-side-card,
  .customer-side-card,
  .admin-side-card,
  .list-card,
  .help-card,
  .account-summary-card,
  .invoice-overview,
  .quick-actions-card {
    min-width: 0
  }

  .quick-actions-card,
  .payment-quick-card,
  .customer-quick-card,
  .admin-quick-card,
  .accounting-quick,
  .invoice-quick,
  .help-card {
    grid-column: 1/-1
  }

  .payments-table-card,
  .customers-table-card,
  .admin-table-card,
  .roles-table-card,
  .integrations-table-card,
  .chart-accounts-card,
  .invoices-table-card {
    height: auto
  }

  .payments-scroll,
  .customers-scroll,
  .admin-scroll,
  .roles-scroll,
  .integration-scroll,
  .account-scroll,
  .invoice-scroll {
    height: auto;
    max-height: none
  }

  .channels-content,
  .segment-content,
  .summary-content,
  .mini-chart-row {
    min-width: 0
  }

  .invoice-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }

  .integration-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .login-shell {
    grid-template-columns: 1fr
  }

  .login-brand-panel {
    min-height: 720px
  }

  .login-form-panel {
    min-height: auto
  }

  .signin-card {
    width: min(530px, 95%)
  }
}

@media (max-width:760px) {
  body {
    font-size: 13px
  }

  .dashboard-main {
    padding: 20px 14px 26px
  }

  .topbar {
    gap: 14px;
    margin-bottom: 18px
  }

  .welcome-copy {
    width: 100%;
    align-items: flex-start
  }

  .welcome-copy>div {
    min-width: 0
  }

  .welcome-copy h1 {
    font-size: 24px;
    line-height: 1.2
  }

  .welcome-copy p {
    font-size: 14px;
    line-height: 1.45
  }

  .mobile-menu {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-right: 10px
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center
  }

  .date-selector {
    width: 100%;
    height: 44px;
    justify-content: flex-start
  }

  .date-selector>.bi:last-child {
    margin-left: auto
  }

  .notification-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    flex-basis: 44px
  }

  .new-payment-btn {
    height: 44px;
    flex-basis: 44px
  }

  .new-payment-btn span,
  .new-payment-btn .button-chevron {
    display: none !important
  }

  .kpi-grid,
  .integration-kpis,
  .invoice-kpis {
    grid-template-columns: 1fr !important;
    gap: 12px
  }

  .kpi-card,
  .customers-page .kpi-card,
  .invoice-kpis .kpi-card {
    height: auto;
    min-height: 118px;
    padding: 20px 18px;
    align-items: center
  }

  .kpi-icon,
  .customers-page .kpi-icon,
  .invoice-kpis .kpi-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 20px;
    font-size: 23px
  }

  .kpi-content {
    min-width: 0;
    max-width: none !important
  }

  .kpi-content p {
    white-space: normal;
    min-height: 0;
    font-size: 13px
  }

  .kpi-content h2 {
    font-size: 24px;
    line-height: 1.2;
    overflow-wrap: anywhere
  }

  .kpi-content>div {
    flex-wrap: wrap;
    white-space: normal
  }

  .charts-grid,
  .bottom-grid,
  .payments-layout,
  .customers-layout,
  .settings-layout,
  .admin-layout,
  .integrations-layout,
  .finance-layout,
  .invoice-layout {
    gap: 14px
  }

  .collections-card,
  .channels-card,
  .receivables-card,
  .quick-actions-card,
  .payment-side-card,
  .customer-side-card,
  .admin-side-card,
  .list-card,
  .help-card,
  .cashflow-card,
  .account-summary-card,
  .invoice-overview,
  .invoice-activity,
  .accounting-transactions {
    height: auto !important;
    min-height: 0;
    padding: 16px
  }

  .card-heading,
  .table-heading,
  .payments-table-heading,
  .customers-table-heading,
  .admin-table-heading {
    height: auto;
    min-height: 0;
    gap: 12px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column
  }

  .table-heading {
    padding: 16px
  }

  .payments-filters,
  .customers-filters,
  .invoice-filters {
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 4px
  }

  .invoice-filters {
    height: auto;
    min-height: 0;
    align-items: flex-start;
    flex-direction: row;
    padding: 16px
  }

  .search-field,
  .invoice-search,
  .integration-search {
    width: min(260px, 70vw);
    flex: 0 0 auto
  }

  .filter-button {
    height: 38px;
    flex: 0 0 auto
  }

  .line-chart-wrap {
    height: 210px
  }

  .channels-content,
  .segment-content,
  .summary-content,
  .mini-chart-row {
    height: auto !important;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    overflow: visible
  }

  .donut-wrap,
  .payment-channels-card .donut-wrap,
  .customer-donut-wrap,
  .summary-donut,
  .mini-donut {
    width: 160px;
    height: 160px;
    flex-basis: 160px;
    margin: 0
  }

  .channel-legend,
  .segment-legend {
    width: 100%;
    gap: 10px
  }

  .legend-item {
    grid-template-columns: 10px minmax(0, 1fr) auto !important;
    font-size: 12px
  }

  .legend-item span:last-child {
    display: none !important
  }

  .segment-item,
  .segment-legend.compact .segment-item {
    grid-template-columns: 10px minmax(0, 1fr) auto !important;
    font-size: 12px
  }

  .segment-item em {
    display: none
  }

  .right-stack,
  .payments-side-stack,
  .customers-side-stack,
  .settings-side-stack,
  .admin-side-stack,
  .integrations-side-stack,
  .finance-side,
  .invoice-side {
    display: flex;
    flex-direction: column
  }

  .receivables-metrics {
    grid-template-columns: 1fr !important;
    gap: 14px
  }

  .receivable-metric:last-child {
    grid-column: auto
  }

  .quick-actions {
    grid-template-columns: 1fr !important
  }

  .quick-action {
    height: 56px;
    padding: 0 14px
  }

  .payments-table,
  .customers-table,
  .admin-table,
  .integrations-table,
  .invoice-table,
  .transactions-table {
    min-width: 680px
  }

  .integrations-table {
    min-width: 760px
  }

  .invoice-table {
    min-width: 820px
  }

  .payments-pagination {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px
  }

  .payments-pagination nav {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px
  }

  .status-row,
  .activity-card .status-row,
  .permissions-card .status-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    height: auto;
    min-height: 44px
  }

  .status-row em {
    display: none
  }

  .top-customer-row,
  .list-card .top-customer-row {
    grid-template-columns: 28px minmax(0, 1fr) auto
  }

  .settings-tabs {
    border-radius: 8px;
    /* overflow-x: auto; */
    white-space: nowrap
  }

  .settings-form-grid {
    grid-template-columns: 1fr
  }

  .pref-row {
    height: auto;
    min-height: 58px;
    gap: 14px
  }

  .info-card dl {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .info-card dd {
    text-align: left
  }

  .login-brand-panel {
    min-height: auto;
    padding: 28px 20px 430px
  }

  .login-logo {
    width: 148px;
    margin-bottom: 36px
  }

  .trust-pill {
    height: auto;
    min-height: 32px
  }

  .login-brand-panel h1 {
    font-size: clamp(30px, 9vw, 40px);
    letter-spacing: -.5px
  }

  .login-copy {
    font-size: 15px;
    margin-bottom: 28px
  }

  .feature-list {
    max-width: none;
    gap: 18px
  }

  .feature-list>div {
    grid-template-columns: 48px 1fr
  }

  .feature-icon {
    width: 46px;
    height: 46px;
    font-size: 21px
  }

  .feature-list p {
    font-size: 12px
  }

  .dashboard-device-art {
    left: 10px !important;
    right: auto !important;
    bottom: 72px !important;
    transform: scale(.58) !important;
    transform-origin: left bottom !important
  }

  .login-security {
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 12px
  }

  .login-form-panel {
    padding: 24px 16px 34px
  }

  .signin-card {
    padding: 30px 20px
  }

  .signin-card h2 {
    font-size: 24px
  }

  .signin-card>p {
    margin-bottom: 28px
  }

  .input-wrap {
    height: 50px
  }

  .social-row {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .login-copyright {
    margin-top: 26px
  }

  .offcanvas {
    max-width: 86vw
  }

  .modal-footer {
    flex-wrap: wrap
  }

  .modal-footer .btn {
    flex: 1 1 140px
  }
}

@media (max-width:430px) {
  .dashboard-main {
    padding-left: 12px;
    padding-right: 12px
  }

  .welcome-copy h1 {
    font-size: 22px
  }

  .topbar-actions {
    grid-template-columns: minmax(0, 1fr) 42px 42px
  }

  .date-range-label {
    font-size: 11px;
    line-height: 1.2;
    text-align: center
  }

  .kpi-card {
    padding: 18px 16px
  }

  .kpi-icon {
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px !important
  }

  .kpi-content h2 {
    font-size: 22px
  }

  .line-chart-wrap {
    height: 190px
  }

  .donut-wrap,
  .payment-channels-card .donut-wrap,
  .customer-donut-wrap,
  .summary-donut,
  .mini-donut {
    width: 140px;
    height: 140px;
    flex-basis: 140px
  }

  .payments-table,
  .customers-table,
  .admin-table,
  .transactions-table {
    min-width: 640px
  }

  .invoice-table,
  .integrations-table {
    min-width: 760px
  }

  .page-control {
    width: 30px;
    height: 30px
  }

  .login-brand-panel {
    padding-bottom: 360px
  }

  .dashboard-device-art {
    transform: scale(.49) !important;
    bottom: 64px !important
  }

  .login-security {
    position: static;
    margin-top: 18px
  }

  .signin-card {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06)
  }
}

@media (max-width:360px) {
  .dashboard-main {
    padding-left: 10px;
    padding-right: 10px
  }

  .topbar-actions {
    gap: 7px
  }

  .date-selector {
    padding-left: 9px;
    padding-right: 9px
  }

  .date-selector>.bi:first-child {
    display: none
  }

  .kpi-card {
    gap: 12px
  }

  .kpi-content h2 {
    font-size: 20px
  }

  .quick-action strong {
    font-size: 11px
  }

  .filter-button {
    padding: 0 12px
  }

  .dashboard-device-art {
    transform: scale(.43) !important
  }

  .login-brand-panel {
    padding-bottom: 330px
  }
}

/* donut */
.chart-box {
  display: flex;
  align-items: center;
  gap: 35px;
  width: 100%;
}

.donut-wrap {
  width: 160px;
  height: 160px;
  min-width: 160px;
  position: relative;
}

.donut-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.channel-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(120px, 1fr) 55px 100px;
  align-items: center;
  column-gap: 10px;
  font-size: 14px;
  color: #102044;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-label {
  white-space: nowrap;
}

.legend-item strong {
  font-weight: 600;
  text-align: right;
}

.legend-amount {
  text-align: right;
  white-space: nowrap;
  color: #102044;
}

@media (max-width: 768px) {
  .chart-box {
    gap: 20px;
  }

  .donut-wrap {
    width: 130px;
    height: 130px;
    min-width: 130px;
  }

  .legend-item {
    grid-template-columns: 12px 1fr 45px auto;
  }
}

/* Profile, notifications, and reports pages. */
.account-topbar {
  align-items: flex-start
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 18px
}

.global-search {
  height: 44px;
  width: 260px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  color: #4f6386
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10284f;
  font-size: 13px
}

.global-search kbd {
  height: 22px;
  min-width: 38px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e0ec;
  border-radius: 5px;
  background: #f6f8fb;
  color: #516483;
  font-size: 11px;
  font-weight: 600
}

.company-switcher {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  color: #102044;
  font-size: 13px;
  font-weight: 600
}

.company-switcher span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcf7e9;
  color: #0668ed
}

.compact-company {
  min-width: 204px
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, .95fr);
  gap: 18px
}

.profile-main-stack,
.profile-side-stack,
.reports-main,
.reports-side {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.profile-info-card {
  min-height: 382px;
  padding: 22px 24px 0
}

.profile-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px
}

.profile-card-head h2,
.profile-quick-card h2,
.split-card-head h2,
.report-shortcuts-card h2,
.scheduled-reports-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #101b3c;
  margin: 0 0 7px
}

.profile-card-head p {
  font-size: 12px;
  color: #30476f;
  margin: 0
}

.profile-form-area {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 38px
}

.photo-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px
}

.profile-photo {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #edf2f7
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover
}

.profile-photo button {
  position: absolute;
  right: -2px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #dce4ee;
  border-radius: 50%;
  background: #fff;
  color: #10284f
}

.photo-uploader .outline-action {
  height: 34px
}

.photo-uploader small {
  font-size: 10px;
  color: #31476f;
  text-align: center
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px
}

.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #14294f;
  font-size: 12px;
  font-weight: 500
}

.profile-form input,
.profile-form select,
.phone-input {
  height: 38px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
  color: #10264c;
  font-size: 12px
}

.profile-form input,
.profile-form select {
  padding: 0 12px
}

.phone-input {
  display: flex;
  align-items: center;
  overflow: hidden
}

.phone-input button {
  height: 100%;
  width: 62px;
  border: 0;
  border-right: 1px solid #dce4ee;
  background: #fff;
  color: #10264c
}

.phone-input input {
  border: 0;
  flex: 1;
  height: 100%
}

.profile-form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 14px
}

.profile-form-actions .btn,
.bio-card .btn {
  height: 34px;
  font-size: 12px;
  padding: 0 22px
}

.bio-card,
.sessions-card {
  padding: 22px 24px
}

.bio-card textarea {
  width: 78%;
  height: 76px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  padding: 10px 12px;
  color: #10264c;
  font-size: 12px;
  display: block;
  margin-bottom: 17px
}

.session-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 168px 28px;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5eaf2;
  border-radius: 9px;
  padding: 12px 14px;
  color: #10284f;
  font-size: 12px
}

.session-row strong {
  display: block
}

.session-row small {
  display: block;
  color: #30476f;
  margin-top: 4px
}

.session-row em {
  font-style: normal;
  text-align: right
}

.session-danger {
  width: 206px;
  margin-top: 14px;
  color: #f04438 !important;
  border-color: #ff7b7b !important
}

.profile-side-card {
  min-height: 214px
}

.active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  background: #12b76a
}

.profile-quick-card {
  height: 242px;
  padding: 22px 24px
}

.profile-quick-card h2 {
  display: flex;
  align-items: center;
  gap: 14px
}

.profile-quick-card h2 .info-icon {
  position: static
}

.profile-quick-card a {
  height: 41px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  color: #10284f;
  text-decoration: none;
  font-size: 12px
}

.profile-quick-card a.danger {
  color: #f04438
}

.notifications-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: 18px
}

.notifications-list-card,
.activity-log-card {
  height: 806px;
  overflow: hidden
}

.split-card-head {
  height: 61px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f5
}

.split-card-head h2 span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: #d9f7e7;
  color: #09984d;
  font-size: 12px
}

.split-card-head>div {
  display: flex;
  align-items: center;
  gap: 12px
}

.mark-read {
  font-size: 12px;
  text-decoration: none
}

.notification-line {
  min-height: 81px;
  padding: 16px 20px 15px 24px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 52px 8px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #edf1f5
}

.notification-line strong {
  font-size: 12px;
  color: #101b3c
}

.notification-line p {
  margin: 5px 0 0;
  color: #233b66;
  font-size: 12px;
  line-height: 1.45
}

.notification-line time {
  align-self: start;
  color: #142a55;
  font-size: 12px;
  text-align: right
}

.notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px
}

.notice-icon.green {
  color: #12b76a;
  background: #e8f8ee
}

.notice-icon.blue {
  color: #0668ed;
  background: #edf4ff
}

.notice-icon.orange {
  color: #f79009;
  background: #fff4e6
}

.notice-icon.purple {
  color: #7d3bf2;
  background: #f2eafe
}

.notice-icon.red {
  color: #f04438;
  background: #ffedef
}

.unread {
  width: 7px;
  height: 7px;
  border-radius: 50%
}

.unread.green {
  background: #12b76a
}

.unread.blue {
  background: #0668ed
}

.notification-footer-link {
  display: block;
  text-align: center;
  margin-top: 28px
}

.activity-scroll {
  height: 645px;
  overflow-x: auto
}

.activity-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse
}

.activity-table th {
  height: 42px;
  padding: 0 18px;
  color: #243b66;
  font-size: 11px;
  font-weight: 500
}

.activity-table td {
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f5;
  color: #10264c;
  font-size: 11px;
  vertical-align: middle
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600
}

.activity-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%
}

.compact-date {
  width: 190px !important;
  min-width: 190px !important
}

.filter-button.square {
  width: 36px;
  padding: 0
}

.reports-actions {
  gap: 14px
}

.export-btn {
  height: 42px;
  padding: 0 20px
}

.report-tabs {
  gap: 34px
}

.reports-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.kpi-icon.teal {
  color: #0f9f91;
  background: #e7f8f5
}

.reports-kpis .kpi-card {
  height: 126px
}

.reports-kpis .kpi-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  font-size: 23px
}

.reports-kpis .kpi-content h2 {
  font-size: 18px
}

.reports-kpis .comparison {
  font-size: 11px
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, .95fr);
  gap: 18px
}

.report-chart-card {
  height: 292px;
  padding: 18px 22px
}

.report-chart-wrap {
  height: 210px
}

.revenue-category-card {
  height: 292px;
  padding: 18px 22px
}

.revenue-category-card .summary-content {
  height: 188px
}

.report-card-link {
  display: block;
  text-align: right
}

.report-table-card {
  height: 393px;
  overflow: hidden
}

.table-action {
  width: 68px
}

.report-table-scroll {
  height: 270px;
  overflow-x: auto
}

.report-customer-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse
}

.report-customer-table th {
  height: 42px;
  padding: 0 20px;
  color: #243b66;
  font-size: 11px;
  font-weight: 500;
  text-align: left
}

.report-customer-table td {
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #edf1f5;
  color: #10264c;
  font-size: 11px;
  white-space: nowrap
}

.report-customer-table .customer span small {
  display: block;
  font-size: 10px;
  color: #30476f;
  margin-top: 3px
}

.report-shortcuts-card {
  height: 286px;
  padding: 20px 22px
}

.report-shortcuts-card a {
  height: 48px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  padding: 0 12px;
  margin-top: -1px;
  text-decoration: none;
  color: #10264c;
  font-size: 12px
}

.report-shortcuts-card small {
  display: block;
  color: #30476f;
  margin-top: 3px
}

.report-shortcuts-card .quick-icon {
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 9px
}

.scheduled-reports-card {
  height: 110px;
  padding: 18px 22px
}

.scheduled-row {
  height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 62px 28px;
  align-items: center;
  gap: 12px;
  color: #10264c;
  font-size: 12px
}

.scheduled-row small {
  display: block;
  color: #30476f;
  margin-top: 3px
}

@media (max-width:1300px) {
  .account-actions {
    gap: 12px
  }

  .global-search {
    width: 220px
  }

  .company-switcher {
    padding: 0 11px
  }

  .profile-layout,
  .reports-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .95fr)
  }

  .notifications-layout {
    grid-template-columns: 1fr
  }

  .notifications-list-card,
  .activity-log-card {
    height: auto
  }

  .activity-scroll {
    height: auto
  }

  .reports-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .reports-actions .compact-company {
    display: none
  }

  .reports-layout {
    grid-template-columns: 1fr
  }

  .reports-side {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .scheduled-reports-card {
    grid-column: 1/-1
  }
}

@media (max-width:1080px) {
  .profile-layout {
    grid-template-columns: 1fr
  }

  .profile-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .profile-quick-card {
    grid-column: 1/-1
  }

  .profile-form-area {
    gap: 24px
  }

  .reports-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .reports-side {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .report-shortcuts-card,
  .scheduled-reports-card {
    grid-column: 1/-1
  }

  .account-actions .company-switcher {
    display: none
  }
}

@media (max-width:760px) {
  .account-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px
  }

  .global-search {
    width: 100%;
    height: 44px
  }

  .account-actions .notification-button {
    width: 44px
  }

  .profile-tabs,
  .report-tabs {
    gap: 24px
  }

  .profile-layout,
  .notifications-layout,
  .reports-layout {
    gap: 14px
  }

  .profile-info-card,
  .bio-card,
  .sessions-card,
  .profile-side-card,
  .profile-quick-card,
  .notifications-list-card,
  .activity-log-card,
  .report-chart-card,
  .revenue-category-card,
  .report-table-card,
  .report-shortcuts-card,
  .scheduled-reports-card {
    height: auto;
    min-height: 0;
    padding: 16px
  }

  .profile-form-area {
    grid-template-columns: 1fr
  }

  .profile-form {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .photo-uploader {
    align-items: flex-start
  }

  .profile-photo {
    width: 96px;
    height: 96px
  }

  .bio-card textarea {
    width: 100%;
    height: 120px
  }

  .session-row {
    grid-template-columns: 38px minmax(0, 1fr) 28px
  }

  .session-row .segment-badge,
  .session-row em {
    display: none
  }

  .session-danger {
    width: 100%
  }

  .profile-side-stack,
  .reports-side {
    display: flex;
    flex-direction: column
  }

  .split-card-head {
    height: auto;
    min-height: 64px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px
  }

  .split-card-head>div {
    width: 100%;
    overflow-x: auto
  }

  .notification-line {
    grid-template-columns: 42px minmax(0, 1fr) 46px;
    gap: 12px;
    padding: 14px 16px
  }

  .notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 20px
  }

  .notification-line .unread {
    display: none
  }

  .activity-scroll {
    height: auto
  }

  .activity-table {
    min-width: 700px
  }

  .compact-date {
    width: 180px !important;
    min-width: 180px !important
  }

  .reports-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px
  }

  .reports-actions .date-selector {
    grid-column: 1
  }

  .reports-actions .export-btn {
    display: none
  }

  .reports-actions .new-payment-btn span {
    display: none
  }

  .reports-kpis {
    grid-template-columns: 1fr
  }

  .reports-kpis .kpi-card {
    height: auto
  }

  .report-chart-wrap {
    height: 220px
  }

  .revenue-category-card .summary-content {
    height: auto
  }

  .report-table-scroll {
    height: auto
  }

  .report-customer-table {
    min-width: 720px
  }

  .report-card-link {
    text-align: left
  }

  .report-shortcuts-card a {
    height: auto;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px
  }

  .scheduled-row {
    grid-template-columns: 32px minmax(0, 1fr) 58px
  }
}

@media (max-width:430px) {
  .global-search kbd {
    display: none
  }

  .notification-line {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start
  }

  .notification-line time {
    grid-column: 2;
    text-align: left
  }

  .notice-icon {
    width: 38px;
    height: 38px
  }

  .activity-table,
  .report-customer-table {
    min-width: 660px
  }

  .profile-card-head {
    gap: 10px
  }

  .profile-form-actions {
    flex-direction: column
  }

  .profile-form-actions .btn {
    width: 100%
  }
}

/* Marcho bank-account management. */
.bank-kpis {
  margin-bottom: 18px
}

.bank-activity-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px
}

.bank-table {
  min-width: 900px
}

.bank-activity-table {
  min-width: 760px
}

.bank-name-cell {
  display: flex;
  align-items: center;
  gap: 10px
}

.bank-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  color: #0668ed;
  background: #eaf2ff;
  font-size: 14px
}

.bank-account-number {
  color: #294b7c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .02em
}

.bank-account-holder {
  max-width: 270px;
  overflow: hidden;
  font-size: 21px !important;
  text-overflow: ellipsis;
  white-space: nowrap
}

@media (max-width: 760px) {
  .bank-activity-kpis {
    grid-template-columns: 1fr
  }

  .bank-table,
  .bank-activity-table {
    min-width: 700px
  }
}

/* Marcho accounting management and journal-entry screens. */
.accounting-management-card,
.journal-entry-card {
  min-height: 0;
  overflow: hidden
}

.accounting-management-card .admin-table-heading {
  min-height: 80px;
  height: auto
}

.management-subtitle {
  margin: 4px 0 0;
  color: #6d7d96;
  font-size: 12px;
  font-weight: 400
}

.accounting-table-scroll,
.journal-lines-scroll {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain
}

.accounting-table-scroll {
  max-height: min(62vh, 570px)
}

.accounting-table {
  min-width: 860px
}

.ledger-indicator-table {
  min-width: 980px
}

.account-type-badge,
.status-pill,
.journal-reference-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap
}

.account-type-badge {
  padding: 6px 9px;
  background: #edf4ff;
  color: #1764cc
}

.account-type-badge.asset {
  background: #e8f8ef;
  color: #0b9d56
}

.account-type-badge.liability {
  background: #fff0e6;
  color: #e96b13
}

.account-type-badge.equity {
  background: #f1eaff;
  color: #7944d8
}

.account-type-badge.income {
  background: #e8f1ff;
  color: #0668ed
}

.account-type-badge.expense {
  background: #fff0f0;
  color: #e14242
}

.status-pill {
  padding: 6px 9px
}

.status-pill i {
  font-size: 8px
}

.status-pill.active {
  background: #e7f8ef;
  color: #079b53
}

.status-pill.inactive,
.status-pill.reversed {
  background: #fff0f0;
  color: #df4747
}

.status-pill.reversal {
  background: #f0ebff;
  color: #7542d6
}

.status-pill.reversal i,
.status-pill.reversed i {
  font-size: 11px
}

.indicator-description,
.journal-description {
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis
}

.journal-status-filter {
  appearance: auto;
  min-width: 120px
}

.journal-linked-reference {
  display: block;
  margin-top: 4px;
  color: #72819a;
  font-size: 10px
}

.journal-entry-card {
  padding: 24px
}

.journal-entry-heading,
.journal-lines-head,
.journal-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.journal-entry-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid #e9eef5
}

.journal-entry-heading h2,
.journal-lines-head h3 {
  margin: 0;
  color: #101b3c;
  font-size: 17px;
  font-weight: 700
}

.journal-entry-heading p,
.journal-lines-head p,
.modal-intro {
  margin: 5px 0 0;
  color: #667791;
  font-size: 12px;
  line-height: 1.5
}

.journal-reference-chip {
  padding: 8px 10px;
  color: #31517e;
  background: #f3f7fc
}

.journal-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) minmax(260px, 1.45fr);
  gap: 18px;
  margin: 24px 0
}

.journal-form-grid .form-label {
  color: #19345f;
  font-size: 12px;
  font-weight: 600
}

.journal-form-grid .form-control {
  min-height: 40px
}

.journal-description-field textarea {
  min-height: 40px;
  resize: vertical
}

.journal-lines-error {
  margin: 0 0 18px
}

.journal-lines-head {
  margin: 24px 0 12px
}

.journal-lines-scroll {
  border: 1px solid #e8edf4;
  border-radius: 10px
}

.journal-lines-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse
}

.journal-lines-table th,
.journal-lines-table td {
  padding: 10px;
  border-bottom: 1px solid #edf1f5;
  color: #19345f;
  font-size: 12px;
  text-align: left
}

.journal-lines-table thead th {
  color: #526785;
  font-size: 11px;
  font-weight: 600;
  background: #fbfcfe
}

.journal-lines-table td:first-child {
  min-width: 240px
}

.journal-lines-table td:nth-child(2),
.journal-lines-table td:nth-child(3) {
  min-width: 130px
}

.journal-lines-table td:nth-child(4) {
  min-width: 210px
}

.journal-lines-table tfoot th {
  color: #10264c;
  font-weight: 700;
  background: #f8fbff
}

.journal-lines-table tfoot tr:last-child th,
.journal-lines-table tfoot tr:last-child td {
  border-bottom: 0
}

.journal-balance-status {
  color: #df4747;
  font-size: 11px;
  font-weight: 600
}

.journal-balance-status.balanced {
  color: #079b53
}

.journal-form-actions {
  justify-content: flex-end;
  margin-top: 22px
}

.journal-reversal-reference {
  margin: 0 0 16px;
  color: #19345f;
  font-size: 13px
}

@media (max-width: 760px) {
  .accounting-tabs {
    gap: 20px;
    padding: 0 14px
  }

  .accounting-management-card,
  .journal-entry-card {
    padding: 16px
  }

  .accounting-management-card .admin-table-heading {
    padding: 0 0 14px
  }

  .management-subtitle {
    white-space: normal
  }

  .accounting-table-scroll {
    max-height: none;
    margin: 0 -16px
  }

  .accounting-table {
    min-width: 760px
  }

  .journal-entry-heading,
  .journal-lines-head {
    align-items: flex-start;
    flex-direction: column
  }

  .journal-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0
  }

  .journal-lines-head {
    margin-top: 18px
  }

  .journal-form-actions {
    justify-content: stretch
  }

  .journal-form-actions .btn {
    flex: 1
  }
}

/* Accounting dashboard: align the live data view with the dashboard composition. */
.finance-layout {
  align-items: start;
}

.accounting-transactions {
  height: 312px;
  padding: 14px 18px;
  overflow: hidden;
}

.accounting-transactions .card-heading {
  height: 36px;
}

.finance-txn {
  grid-template-columns: 30px minmax(0, 1fr) minmax(68px, .72fr) auto 76px;
  gap: 7px;
  min-height: 48px;
}

.finance-txn p,
.finance-txn em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-txn-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.finance-txn-status.received {
  color: #0b9f54;
  background: #e8f8ee;
}

.finance-txn-status.paid {
  color: #e45845;
  background: #fff0ee;
}

.finance-txn-status.posted {
  color: #2968be;
  background: #eaf2ff;
}

.accounting-empty-state {
  margin: 22px 0 0;
  color: #667994;
  font-size: 12px;
  text-align: center;
}

.accounting-quick {
  height: 172px;
  padding: 12px 14px;
}

.accounting-quick .card-heading {
  height: 29px;
}

.accounting-quick .quick-actions {
  gap: 8px;
  margin-top: 7px;
}

.accounting-quick .quick-action {
  height: 49px;
  gap: 10px;
  padding: 0 10px;
}

.accounting-quick .quick-icon {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  border-radius: 9px;
  font-size: 16px;
}

.accounting-quick .quick-action strong {
  font-size: 11px;
}

@media (max-width:1300px) {
  .finance-txn {
    grid-template-columns: 30px minmax(0, 1fr) auto 72px;
  }

  .finance-txn em {
    display: none;
  }
}

@media (max-width:1080px) {
  .accounting-transactions,
  .accounting-quick {
    height: auto;
    overflow: visible;
  }

  .accounting-transactions .card-heading {
    height: auto;
  }
}

/* Mobile navigation drawer: a dedicated, touch-friendly version of the desktop sidebar. */
@media (max-width:760px) {
  .mobile-sidebar {
    --bs-offcanvas-width: min(88vw, 340px);
    border: 0;
    border-radius: 0 22px 22px 0;
    box-shadow: 18px 0 50px rgba(15, 35, 74, .2);
    background: #fff;
  }

  .mobile-sidebar-header {
    min-height: 76px;
    padding: 16px 18px 16px 20px;
    border-bottom: 1px solid #eaf0f7;
    align-items: center;
  }

  .mobile-sidebar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }

  .mobile-sidebar .mobile-logo {
    width: 132px;
    max-width: 100%;
    height: auto;
  }

  .mobile-sidebar-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    color: #46607f;
    background: #f8fafc;
    font-size: 15px;
    transition: .15s ease;
  }

  .mobile-sidebar-close:hover,
  .mobile-sidebar-close:focus-visible {
    border-color: #bfd6fb;
    color: #0668ed;
    background: #edf4ff;
    outline: 0;
  }

  .mobile-sidebar-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 14px 12px;
    overflow-y: auto;
  }

  .mobile-sidebar-label {
    margin: 0 8px 9px;
    color: #7c8ca5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-sidebar .mobile-nav {
    gap: 4px;
  }

  .mobile-sidebar .mobile-nav .nav-item {
    min-height: 48px;
    height: auto;
    gap: 13px;
    justify-content: flex-start;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 12px;
    color: #29426d;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-sidebar .mobile-nav .nav-item i {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #294b7c !important;
    background: #f2f6fb !important;
    font-size: 14px;
    -webkit-text-stroke: 0;
  }

  .mobile-sidebar .mobile-nav .nav-item:hover,
  .mobile-sidebar .mobile-nav .nav-item:focus-visible {
    color: #0668ed;
    background: #f5f9ff;
    outline: 0;
  }

  .mobile-sidebar .mobile-nav .nav-item.active {
    border-color: #d7e6ff;
    border-left-color: #0668ed;
    color: #0668ed;
    background: #edf4ff;
    box-shadow: 0 5px 14px rgba(6, 104, 237, .08);
  }

  .mobile-sidebar .mobile-nav .nav-item.active i {
    color: #fff !important;
    background: #0668ed !important;
  }

  .mobile-sidebar-footer {
    padding: 14px;
    border-top: 1px solid #eaf0f7;
    background: linear-gradient(180deg, #fff, #f8fbff);
  }

  .mobile-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid #dfe8f4;
    border-radius: 14px;
    color: #172d53;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(29, 57, 97, .04);
  }

  .mobile-profile:hover,
  .mobile-profile:focus-visible {
    border-color: #bed6fb;
    color: #0668ed;
    outline: 0;
  }

  .mobile-profile-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 2px solid #e7effb;
    border-radius: 12px;
    object-fit: cover;
  }

  .mobile-profile-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.25;
  }

  .mobile-profile-copy small,
  .mobile-profile-copy em {
    overflow: hidden;
    color: #71829b;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-profile-copy strong {
    overflow: hidden;
    margin: 2px 0;
    color: #172d53;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-profile > .bi {
    color: #7490b5;
    font-size: 13px;
  }
}

/* Keeps the bank tables wider than the shared accounting defaults on desktop. */
.accounting-table.bank-table {
  min-width: 900px
}

.accounting-table.bank-activity-table {
  min-width: 760px
}

@media (max-width: 760px) {
  .accounting-table.bank-table,
  .accounting-table.bank-activity-table {
    min-width: 700px
  }
}

/* Marcho operational dashboards: expenses, donations and disbursements. */
.expense-topbar,
.charity-topbar {
  align-items: flex-start;
  gap: 20px;
}

.expense-topbar-actions,
.charity-topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.expense-top-search,
.charity-top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(320px, 30vw);
  height: 40px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #fff;
}

.expense-top-search i,
.charity-top-search i {
  margin-left: 13px;
  color: #7890b4;
  font-size: 14px;
}

.expense-top-search input,
.charity-top-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 10px;
  border: 0;
  outline: 0;
  color: #142c55;
  font-size: 12px;
  background: transparent;
}

.expense-export-button,
.charity-export-button {
  color: #16315e;
  border: 1px solid #d6e2f2;
  background: #fff;
  box-shadow: none;
}

.expense-export-button:hover,
.charity-export-button:hover {
  color: #0668ed;
  border-color: #bcd4fb;
  background: #f5f9ff;
}

.expense-kpis,
.charity-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 6px;
}

.expense-kpis .kpi-card,
.charity-kpis .kpi-card {
  min-height: 122px;
  padding: 20px;
}

.expense-kpis .kpi-content h2,
.charity-kpis .kpi-content h2 {
  font-size: clamp(18px, 1.45vw, 24px);
}

.expense-dashboard-layout,
.charity-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 382px);
  gap: 14px;
  margin-top: 14px;
}

.expense-main-column,
.charity-main-column,
.expense-side-stack,
.charity-side-stack {
  min-width: 0;
}

.expense-side-stack,
.charity-side-stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.expense-table-card,
.charity-table-card {
  overflow: hidden;
  padding: 0;
}

.expense-table-filters,
.charity-table-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 14px;
  border-bottom: 1px solid #edf2f8;
}

.expense-search-field,
.charity-search-field {
  flex: 1 1 250px;
  max-width: 310px;
}

.expense-filter-select,
.charity-filter-select {
  min-width: 130px;
  height: 36px;
  padding: 0 29px 0 11px;
  border: 1px solid #dce7f4;
  border-radius: 7px;
  color: #233d69;
  font-size: 11px;
  font-weight: 600;
  background-color: #fff;
}

.expense-table-scroll,
.charity-table-scroll {
  width: 100%;
  overflow: auto;
}

.expense-table,
.charity-table {
  width: 100%;
  min-width: 880px;
  margin: 0;
  border-collapse: collapse;
  color: #18325d;
}

.charity-table {
  min-width: 1100px;
}

.expense-table th,
.charity-table th {
  height: 47px;
  padding: 10px 14px;
  color: #3d557d;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  background: #f9fbfe;
}

.expense-table td,
.charity-table td {
  padding: 12px 14px;
  border-top: 1px solid #edf2f8;
  font-size: 11px;
  vertical-align: middle;
}

.expense-table tbody tr:hover,
.charity-table tbody tr:hover {
  background: #fbfdff;
}

.expense-table small,
.charity-table small {
  display: block;
  margin-top: 3px;
  color: #7184a4;
  font-size: 10px;
}

.expense-reference,
.charity-reference {
  display: block;
  color: #0668ed;
  font-size: 10px;
  font-weight: 700;
}

.expense-description strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #18325d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-bank,
.charity-person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expense-bank > span,
.charity-person > span:last-child {
  min-width: 0;
}

.expense-bank strong,
.charity-person strong {
  display: block;
  overflow: hidden;
  color: #18325d;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charity-initials {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: #0668ed;
  font-size: 10px;
  font-weight: 800;
  background: #eaf2ff;
}

.expense-status,
.charity-method,
.charity-category,
.charity-receipt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #25517a;
  font-size: 10px;
  font-weight: 700;
  background: #eff5ff;
  white-space: nowrap;
}

.charity-category {
  color: #3c36a4;
  background: #f0edff;
}

.charity-receipt {
  color: #0668ed;
  background: transparent;
}

.expense-empty,
.charity-empty {
  color: #8a9ab2;
}

.expense-pagination,
.charity-pagination {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid #edf2f8;
}

.expense-bottom-cards,
.charity-bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.expense-summary-card,
.expense-recent-card,
.expense-quick-card,
.charity-summary-card,
.charity-recent-card,
.charity-quick-card {
  min-height: 156px;
  padding: 16px;
}

.expense-period-chip,
.charity-period-chip {
  padding: 5px 8px;
  border: 1px solid #dce7f4;
  border-radius: 6px;
  color: #496281;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.expense-summary-values,
.charity-summary-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.expense-summary-values div,
.charity-summary-values div {
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid #e7eef7;
}

.expense-summary-values div:last-child,
.charity-summary-values div:last-child {
  border-right: 0;
}

.expense-summary-values small,
.charity-summary-values small {
  display: block;
  margin-bottom: 5px;
  color: #6c82a2;
  font-size: 10px;
}

.expense-summary-values strong,
.charity-summary-values strong {
  display: block;
  overflow: hidden;
  color: #16305c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-recent-list,
.charity-recent-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.expense-recent-list > div,
.charity-recent-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.expense-recent-icon,
.charity-recent-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
}

.expense-recent-icon.green,
.charity-recent-icon.green {
  color: #0a9f50;
  background: #e4f8ee;
}

.expense-recent-icon.blue,
.charity-recent-icon.blue {
  color: #0668ed;
  background: #eaf2ff;
}

.expense-recent-list strong,
.charity-recent-list strong {
  display: block;
  overflow: hidden;
  color: #1d3763;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-recent-list small,
.charity-recent-list small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #7285a3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-recent-list b,
.charity-recent-list b {
  color: #1a335e;
  font-size: 10px;
  white-space: nowrap;
}

.expense-quick-actions,
.charity-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.expense-quick-actions > *,
.charity-quick-actions > * {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #1b365f;
  font-size: 10px;
  text-align: center;
  background: transparent;
}

.expense-quick-actions strong,
.charity-quick-actions strong {
  overflow: hidden;
  max-width: 100%;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-category-card,
.charity-category-card,
.expense-trend-card,
.charity-trend-card,
.expense-top-card,
.charity-top-card {
  padding: 16px;
}

.expense-category-content,
.charity-category-content {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 178px;
  margin-top: 10px;
}

.expense-donut-wrap,
.charity-donut-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.expense-donut-total,
.charity-donut-total {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #1a335d;
  text-align: center;
}

.expense-donut-total strong,
.charity-donut-total strong {
  max-width: 108px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-donut-total small,
.charity-donut-total small {
  color: #7185a4;
  font-size: 10px;
}

.expense-category-legend,
.charity-category-legend {
  display: grid;
  gap: 10px;
}

.expense-category-legend > div,
.charity-category-legend > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #4b6183;
  font-size: 10px;
}

.expense-category-legend > div > span:nth-child(2),
.charity-category-legend > div > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-category-legend strong,
.charity-category-legend strong {
  color: #17315d;
  font-size: 10px;
  white-space: nowrap;
}

.expense-trend-card,
.charity-trend-card {
  min-height: 235px;
}

.expense-chart-legend,
.charity-chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 13px 0 4px 32px;
  color: #405a7e;
  font-size: 10px;
}

.expense-chart-legend span,
.charity-chart-legend span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #0668ed;
}

.charity-chart-legend span.green {
  background: #10a955;
}

.expense-trend-wrap,
.charity-trend-wrap {
  height: 166px;
}

.expense-top-list,
.charity-top-list {
  display: grid;
  gap: 11px;
  margin: 15px 0;
}

.expense-top-list > div,
.charity-top-list > div {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.expense-rank,
.charity-rank {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 5px;
  color: #0668ed;
  font-size: 10px;
  font-weight: 800;
  background: #edf4ff;
}

.expense-top-list strong,
.charity-top-list strong {
  overflow: hidden;
  color: #1b355f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-top-list b,
.charity-top-list b {
  color: #18315c;
  font-size: 10px;
  white-space: nowrap;
}

.expense-view-all,
.charity-view-all {
  display: block;
  padding: 11px;
  border: 1px solid #dce7f4;
  border-radius: 7px;
  color: #0668ed;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.expense-name {
  display: block;
  max-width: 200px;
  overflow: hidden;
  color: #18325d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-description {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.expense-status-chip.approved {
  color: #078847;
  background: #e2f7eb;
}

.expense-status-chip.pending {
  color: #d87407;
  background: #fff0de;
}

.expense-status-chip.rejected {
  color: #dc3a31;
  background: #ffebe9;
}

.expense-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.expense-approvals-card {
  min-height: 156px;
  padding: 16px;
}

.expense-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.expense-summary-metrics > div {
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid #e7eef7;
}

.expense-summary-metrics > div:last-child {
  border-right: 0;
}

.expense-summary-metrics span {
  display: block;
  margin-bottom: 5px;
  color: #6c82a2;
  font-size: 10px;
}

.expense-summary-metrics strong {
  display: block;
  overflow: hidden;
  color: #16305c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-approvals-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.expense-approval-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.expense-approval-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #0a9f50;
  background: #e4f8ee;
}

.expense-approval-row strong {
  display: block;
  overflow: hidden;
  color: #1d3763;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-approval-row small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #7285a3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-approval-row b {
  color: #1a335e;
  font-size: 10px;
  white-space: nowrap;
}

.expense-empty-state,
.charity-empty-state {
  margin: 12px 0;
  color: #7a8da9;
  font-size: 11px;
  text-align: center;
}

.charity-user-search {
  position: relative;
}

.charity-user-results {
  position: absolute;
  z-index: 1060;
  top: 100%;
  right: 12px;
  left: 12px;
  max-height: 190px;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(17, 44, 84, .13);
}

.charity-user-results button {
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  text-align: left;
}

.charity-user-results small {
  color: #7284a1;
  font-size: 11px;
}

@media (max-width: 1380px) {
  .expense-kpis,
  .charity-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .expense-dashboard-layout,
  .charity-dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .expense-category-content,
  .charity-category-content {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .expense-category-legend,
  .charity-category-legend {
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .expense-dashboard-layout,
  .charity-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .expense-side-stack,
  .charity-side-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .expense-category-content,
  .charity-category-content {
    grid-template-columns: 130px minmax(0, 1fr);
    justify-items: stretch;
  }
}

@media (max-width: 860px) {
  .expense-topbar,
  .charity-topbar {
    align-items: stretch;
  }

  .expense-topbar-actions,
  .charity-topbar-actions {
    justify-content: flex-start;
  }

  .expense-top-search,
  .charity-top-search {
    width: min(100%, 360px);
  }

  .expense-bottom-cards,
  .charity-bottom-cards,
  .expense-side-stack,
  .charity-side-stack {
    grid-template-columns: 1fr;
  }

  .expense-category-content,
  .charity-category-content {
    grid-template-columns: 145px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .expense-kpis,
  .charity-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .expense-kpis .kpi-card,
  .charity-kpis .kpi-card {
    min-height: 108px;
    padding: 14px;
  }

  .expense-kpis .kpi-icon,
  .charity-kpis .kpi-icon {
    width: 39px;
    height: 39px;
    margin-right: 10px;
  }

  .expense-kpis .kpi-content h2,
  .charity-kpis .kpi-content h2 {
    font-size: 16px;
  }

  .expense-kpis .kpi-content p,
  .charity-kpis .kpi-content p {
    font-size: 10px;
  }

  .expense-top-search,
  .charity-top-search {
    order: 3;
    width: 100%;
  }

  .expense-export-button span,
  .charity-export-button span {
    display: none;
  }

  .expense-table-filters,
  .charity-table-filters {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .expense-search-field,
  .charity-search-field {
    flex-basis: 100%;
    max-width: none;
  }

  .expense-filter-select,
  .charity-filter-select {
    flex: 1 1 44%;
    min-width: 0;
  }

  .expense-table,
  .charity-table {
    min-width: 800px;
  }

  .charity-table {
    min-width: 1040px;
  }

  .expense-category-content,
  .charity-category-content {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .expense-category-legend,
  .charity-category-legend {
    width: 100%;
  }

  .expense-summary-values,
  .charity-summary-values {
    gap: 5px;
  }
}

/* Charity reporting workspace. */
.report-topbar {
  align-items: flex-start;
  gap: 20px;
}

.report-topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-export-button {
  color: #16315e;
  border: 1px solid #d6e2f2;
  background: #fff;
  box-shadow: none;
}

.report-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 6px;
}

.report-kpis .kpi-card {
  min-height: 122px;
  padding: 19px;
}

.report-kpis .kpi-content h2 {
  font-size: clamp(17px, 1.38vw, 23px);
}

.charity-report-tabs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  border-bottom: 1px solid #e5edf6;
  white-space: nowrap;
}

.charity-report-tabs a {
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  color: #526887;
  font-size: 11px;
  font-weight: 700;
}

.charity-report-tabs a.active,
.charity-report-tabs a:hover {
  border-color: #0668ed;
  color: #0668ed;
}

.charity-report-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr) 276px;
  gap: 14px;
  margin-top: 14px;
}

.charity-performance-card,
.charity-financial-card,
.charity-ratios-card,
.charity-scheme-summary-card,
.charity-programs-card,
.charity-cashflow-card,
.charity-recent-transactions-card,
.charity-insights-card {
  min-width: 0;
  padding: 16px;
}

.charity-performance-card .card-heading p {
  margin: 4px 0 0;
  color: #7184a2;
  font-size: 10px;
}

.charity-performance-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 16px 0 5px 38px;
  color: #486080;
  font-size: 10px;
}

.charity-performance-legend span {
  width: 15px;
  height: 2px;
  border-radius: 2px;
}

.charity-performance-legend .donations {
  background: #10a955;
}

.charity-performance-legend .disbursements {
  background: #0668ed;
}

.charity-performance-legend .expenses {
  background: #ff9419;
}

.charity-performance-wrap {
  height: 250px;
}

.charity-financial-content {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 264px;
}

.charity-financial-donut {
  position: relative;
  width: 150px;
  height: 150px;
}

.charity-financial-donut > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #18325e;
  text-align: center;
}

.charity-financial-donut strong {
  max-width: 113px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charity-financial-donut small {
  color: #7284a1;
  font-size: 10px;
}

.charity-financial-legend {
  display: grid;
  gap: 14px;
}

.charity-financial-legend > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  color: #486080;
  font-size: 10px;
}

.charity-financial-legend strong {
  grid-column: 2;
  color: #17315d;
  font-size: 10px;
}

.charity-ratios {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.charity-ratios > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
  color: #294468;
  font-size: 10px;
}

.charity-ratios > div:last-child {
  border-bottom: 0;
}

.charity-ratios span {
  line-height: 1.35;
}

.charity-ratios small {
  display: block;
  color: #7b8da8;
}

.charity-ratios strong {
  flex: 0 0 auto;
  color: #0a9f50;
  font-size: 11px;
}

.charity-report-details {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(275px, .9fr) minmax(270px, .9fr);
  gap: 14px;
  margin-top: 14px;
}

.charity-report-table-scroll {
  width: 100%;
  overflow: auto;
}

.charity-report-table {
  width: 100%;
  min-width: 610px;
  margin-top: 10px;
  border-collapse: collapse;
  color: #294468;
}

.charity-report-table th {
  padding: 8px 9px;
  color: #637895;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  background: #f9fbfe;
}

.charity-report-table td {
  padding: 10px 9px;
  border-top: 1px solid #edf2f8;
  font-size: 10px;
  white-space: nowrap;
}

.charity-report-table td strong {
  color: #18315d;
  font-size: 10px;
}

.charity-program-list {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.charity-program-list > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 8px;
}

.charity-program-list strong {
  display: block;
  overflow: hidden;
  color: #1c365f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charity-program-list small {
  display: block;
  margin-top: 2px;
  color: #687f9f;
  font-size: 9px;
}

.charity-impact {
  display: flex;
  align-items: center;
  gap: 5px;
}

.charity-impact i {
  display: block;
  width: 54px;
  height: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: #e6edf6;
}

.charity-impact b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10a955;
}

.charity-impact em {
  color: #496382;
  font-size: 9px;
  font-style: normal;
}

.charity-cashflow-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.charity-cashflow-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f8;
  color: #294468;
  font-size: 10px;
}

.charity-cashflow-list strong {
  flex: 0 0 auto;
  color: #18315d;
  font-size: 11px;
}

.charity-cashflow-list .inflow span,
.charity-cashflow-list .inflow strong {
  color: #0a9f50;
}

.charity-cashflow-list .outflow span,
.charity-cashflow-list .outflow strong {
  color: #f04438;
}

.charity-cashflow-list .charity-net-flow {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #cfe0fa;
  border-radius: 7px;
  color: #0668ed;
  background: #edf5ff;
}

.charity-cashflow-list .charity-net-flow strong {
  color: #0668ed;
}

.charity-report-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, .8fr);
  gap: 14px;
  margin-top: 14px;
}

.charity-recent-transactions-table {
  min-width: 780px;
}

.charity-transaction-type {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 4px;
  color: #0668ed;
  font-size: 9px;
  font-weight: 700;
  background: #edf4ff;
}

.charity-transaction-type.donation {
  color: #0a9f50;
  background: #e5f8ee;
}

.charity-transaction-type.expense {
  color: #e06f08;
  background: #fff1df;
}

.charity-insights-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.charity-insights-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
}

.charity-insights-list > div > span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #0668ed;
  background: #edf4ff;
}

.charity-insights-list p {
  margin: 0;
  color: #405a7d;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1400px) {
  .report-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .charity-report-overview {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  }

  .charity-ratios-card {
    grid-column: 1 / -1;
  }

  .charity-ratios {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .charity-ratios > div {
    display: grid;
    gap: 5px;
    padding: 10px;
    border-right: 1px solid #edf2f8;
    border-bottom: 0;
  }
}

@media (max-width: 1120px) {
  .charity-report-details {
    grid-template-columns: 1fr 1fr;
  }

  .charity-scheme-summary-card {
    grid-column: 1 / -1;
  }

  .charity-report-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .report-topbar {
    align-items: stretch;
  }

  .report-topbar-actions {
    justify-content: flex-start;
  }

  .report-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .report-kpis .kpi-card {
    min-height: 108px;
    padding: 14px;
  }

  .report-kpis .kpi-icon {
    width: 39px;
    height: 39px;
    margin-right: 10px;
  }

  .report-kpis .kpi-content h2 {
    font-size: 16px;
  }

  .charity-report-overview,
  .charity-report-details {
    grid-template-columns: 1fr;
  }

  .charity-scheme-summary-card,
  .charity-ratios-card {
    grid-column: auto;
  }

  .charity-ratios {
    grid-template-columns: 1fr 1fr;
  }

  .charity-ratios > div {
    border-bottom: 1px solid #edf2f8;
  }

  .charity-financial-content {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .report-export-button span,
  .report-filter-trigger span {
    display: none;
  }
}

/* Live Marcho dashboard. */
.reports-main,
.reports-side {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.charity-workspace-tabs {
  margin-top: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.report-chart-card {
  height: 322px;
}

.report-chart-card .card-heading {
  align-items: flex-start;
}

.report-card-caption {
  margin: 4px 0 0;
  color: #7184a2;
  font-size: 10px;
}

.report-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 12px 0 5px 38px;
  color: #486080;
  font-size: 10px;
}

.report-chart-legend span {
  width: 15px;
  height: 2px;
  border-radius: 2px;
}

.report-chart-legend .donations {
  background: #10a955;
}

.report-chart-legend .disbursements {
  background: #0668ed;
}

.report-chart-legend .expenses {
  background: #ff9419;
}

.report-chart-legend .single {
  width: 15px;
}

.report-insight-card {
  height: auto;
  min-height: 118px;
}

.report-insight-card .scheduled-row {
  grid-template-columns: 32px minmax(0, 1fr);
  height: auto;
  padding-top: 4px;
}

.report-insight-card .scheduled-row small {
  line-height: 1.4;
}

@media (max-width: 760px) {
  .report-chart-card {
    height: auto;
  }

  .report-chart-wrap {
    height: 220px;
  }
}

/* Live Marcho dashboard. */
.live-dashboard-topbar {
  align-items: flex-start;
  gap: 20px;
}

.live-dashboard-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-report-button {
  color: #16315e;
  border: 1px solid #d6e2f2;
  background: #fff;
  box-shadow: none;
}

.live-dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
}

.live-dashboard-kpis .kpi-card {
  min-height: 126px;
  padding: 20px;
}

.live-dashboard-kpis .kpi-content h2 {
  font-size: clamp(18px, 1.5vw, 24px);
}

.live-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, .85fr);
  gap: 14px;
  margin-top: 14px;
}

.live-cashflow-card,
.live-mix-card,
.live-activity-card,
.live-summary-card,
.live-quick-card {
  min-width: 0;
  padding: 16px;
}

.live-cashflow-card .card-heading p {
  margin: 4px 0 0;
  color: #7184a2;
  font-size: 10px;
}

.live-cashflow-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 10px;
}

.live-cashflow-metrics > div {
  min-width: 0;
  padding: 0 15px;
  border-left: 2px solid #dce7f5;
}

.live-cashflow-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.live-cashflow-metrics .inflow {
  border-color: #10a955;
}

.live-cashflow-metrics .outflow {
  border-color: #ff9419;
}

.live-cashflow-metrics .net {
  border-color: #0668ed;
}

.live-cashflow-metrics span {
  display: block;
  color: #4b6281;
  font-size: 10px;
}

.live-cashflow-metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #18315d;
  font-size: clamp(15px, 1.4vw, 21px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-cashflow-metrics .net strong {
  color: #0668ed;
}

.live-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 16px 0 3px 48px;
  color: #4b6381;
  font-size: 10px;
}

.live-chart-legend span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
}

.live-chart-legend .inflow {
  background: #10a955;
}

.live-chart-legend .outflow {
  background: #ff6d10;
}

.live-chart-legend .net {
  background: #0668ed;
}

.live-cashflow-chart-wrap {
  height: 245px;
}

.live-mix-content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 290px;
}

.live-mix-donut {
  position: relative;
  width: 145px;
  height: 145px;
}

.live-mix-donut > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #18315d;
  text-align: center;
}

.live-mix-donut strong {
  font-size: 18px;
}

.live-mix-donut small {
  color: #7184a1;
  font-size: 10px;
}

.live-mix-legend {
  display: grid;
  gap: 15px;
}

.live-mix-legend > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  color: #496282;
  font-size: 10px;
}

.live-mix-legend strong {
  grid-column: 2;
  color: #17315d;
  font-size: 10px;
}

.live-dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr);
  gap: 14px;
  margin-top: 14px;
}

.live-activity-scroll {
  width: 100%;
  overflow: auto;
}

.live-activity-table {
  width: 100%;
  min-width: 820px;
  margin-top: 10px;
  border-collapse: collapse;
  color: #294468;
}

.live-activity-table th {
  padding: 8px 9px;
  color: #637895;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  background: #f9fbfe;
}

.live-activity-table td {
  padding: 10px 9px;
  border-top: 1px solid #edf2f8;
  font-size: 10px;
  white-space: nowrap;
}

.live-activity-table td a {
  color: #294468;
}

.live-activity-table td a:hover {
  color: #0668ed;
}

.live-activity-table strong {
  color: #18315d;
}

.live-dashboard-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.live-summary-list {
  display: grid;
  gap: 0;
  margin-top: 11px;
}

.live-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
  color: #476080;
  font-size: 11px;
}

.live-summary-list > div:last-child {
  border-bottom: 0;
}

.live-summary-list i {
  width: 18px;
  color: #0668ed;
}

.live-summary-list strong {
  color: #18315d;
}

.live-quick-card {
  min-height: 180px;
}

.live-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 15px;
}

.live-quick-actions a {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 6px;
  color: #1b365f;
  font-size: 10px;
  text-align: center;
}

.live-quick-actions strong {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .live-dashboard-grid,
  .live-dashboard-bottom {
    grid-template-columns: 1fr;
  }

  .live-dashboard-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .live-dashboard-topbar {
    align-items: stretch;
  }

  .live-dashboard-actions {
    justify-content: flex-start;
  }

  .live-dashboard-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .live-dashboard-kpis .kpi-card {
    min-height: 108px;
    padding: 14px;
  }

  .live-dashboard-kpis .kpi-icon {
    width: 39px;
    height: 39px;
    margin-right: 10px;
  }

  .live-dashboard-kpis .kpi-content h2 {
    font-size: 16px;
  }

  .dashboard-report-button span {
    display: none;
  }

  .live-cashflow-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-cashflow-metrics > div {
    padding: 0 0 0 11px;
  }

  .live-dashboard-side {
    grid-template-columns: 1fr;
  }

  .live-mix-content {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .expense-bottom-grid {
    grid-template-columns: 1fr;
  }
}
