:root {
  --ink: #17243b;
  --muted: #78859a;
  --line: #e8edf4;
  --canvas: #f5f7fb;
  --blue: #3567d6;
  --blue-dark: #2857c3;
}

table tbody > tr.balance-row-outstanding > *,
table tfoot > tr.balance-row-outstanding > * {
  background-color: #fff1f0 !important;
}

table tbody > tr.balance-row-credit > *,
table tfoot > tr.balance-row-credit > * {
  background-color: #eaf7ed !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  font-size: 15px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .metric-value {
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.btn {
  border-radius: 9px;
  font-weight: 600;
}

.btn-primary {
  border-color: var(--blue);
  background: var(--blue);
}

.btn-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(53, 103, 214, .28);
  outline-offset: 2px;
  box-shadow: none;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  z-index: 1030;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 28px 18px 20px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand-lockup, .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-lockup {
  padding: 0 8px;
  margin-bottom: 48px;
}

.brand-lockup:hover, .auth-brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #4d7fe9, #2857c3);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(53, 103, 214, .2);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.brand-name, .brand-caption {
  display: block;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.brand-caption {
  margin-top: 2px;
  color: #8d99aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-label, .topbar-eyebrow, .page-eyebrow, .date-label {
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.sidebar-label {
  padding: 0 10px;
  margin-bottom: 10px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: #657187;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s ease, background .15s ease;
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--blue);
  background: #eff4ff;
}

.sidebar-link.active {
  font-weight: 700;
}

.nav-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: #98a4b7;
  background: #f3f5f9;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.sidebar-link.active .nav-mark {
  color: #fff;
  background: var(--blue);
}

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  background: #f7f9fc;
  border: 1px solid #edf1f6;
  border-radius: 10px;
}

.sidebar-note strong, .sidebar-note small {
  display: block;
}

.sidebar-note strong {
  color: #38465c;
  font-size: 11px;
}

.sidebar-note small {
  margin-top: 3px;
  color: #8a96a8;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 3px;
  background: #2fb77a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #def5e9;
}

.app-main {
  min-height: 100vh;
  margin-left: 252px;
}

.app-topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
}

.topbar-context span {
  display: block;
}

.topbar-eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.topbar-title {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.topbar-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #3a64bd;
  background: #eaf0ff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.account-name {
  max-width: 180px;
  overflow: hidden;
  color: #566276;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 6px 10px;
  color: #748096;
  font-size: 11px;
}

.btn-logout:hover {
  color: #c23e4e;
  background: #fff1f2;
}

.btn-menu {
  color: #536177;
  border: 1px solid var(--line);
  background: #fff;
}

.app-content {
  width: min(100%, 1500px);
  padding: 36px 40px 48px;
  margin: 0 auto;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 40px 22px;
  color: #9aa5b5;
  font-size: 10px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-eyebrow {
  margin-bottom: 8px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -1.1px;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-date {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.heading-date strong {
  color: #566276;
  font-size: 11px;
  font-weight: 600;
}

.date-label {
  font-size: 8px;
}

.metric-card, .content-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(23, 36, 59, .025);
}

.metric-card {
  min-height: 150px;
  padding: 20px;
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-label {
  color: #718096;
  font-size: 11px;
  font-weight: 600;
}

.metric-symbol {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.symbol-blue { color: #3968ce; background: #edf3ff; }
.symbol-green { color: #23865d; background: #e9f8f0; }
.symbol-amber { color: #ad7521; background: #fff5e3; }
.symbol-violet { color: #7956bd; background: #f3efff; }

.metric-value {
  margin-top: 15px;
  color: #1b2940;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.metric-value.currency-value {
  font-size: clamp(17px, 1.7vw, 23px);
  letter-spacing: -.6px;
}

.metric-value.balance-outstanding { color: #dc3545; }
.metric-value.balance-credit { color: #198754; }
.metric-value.balance-zero { color: #212529; }

.metric-footnote {
  margin-top: 7px;
  color: #9aa5b5;
  font-size: 10px;
}

.content-card {
  padding: 22px;
}

.content-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.content-card-heading h2 {
  margin: 0;
  color: #26354d;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.content-card-heading p {
  margin: 5px 0 0;
  color: #94a0b0;
  font-size: 10px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: #718198;
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.chart-series-billed { background: #8498ba; }
.chart-series-collected { background: #18a88f; }
.chart-series-income { background: #5884e3; }
.chart-series-expenses { background: #ef9b55; }

.trend-chart-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.trend-chart, .report-trend-chart {
  display: grid;
  grid-auto-columns: minmax(38px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  min-width: 560px;
}

.report-trend-chart {
  min-width: max(100%, 560px);
}

.trend-chart-month {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trend-chart-bars {
  display: flex;
  width: 100%;
  height: 180px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 0;
  border-bottom: 1px solid #e8edf4;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #f1f4f8 44px, transparent 45px);
}

.trend-chart-bar {
  width: min(13px, 32%);
  border-radius: 4px 4px 0 0;
  transition: height .2s ease;
}

.trend-chart-label {
  color: #77859a;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.chart-empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: #8290a4;
  font-size: 13px;
  text-align: center;
}

.expense-chart {
  display: grid;
  gap: 16px;
}

.expense-chart-row {
  min-width: 0;
}

.expense-chart-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #58677d;
  font-size: 11px;
}

.expense-chart-label span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-chart-label strong {
  flex: 0 0 auto;
  color: #34425a;
  font-weight: 700;
}

.expense-chart-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f3f8;
}

.expense-chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5884e3, #18a88f);
}

.equipment-section {
  padding-top: 20px;
  border-top: 1px solid #edf1f6;
}

.equipment-entry {
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fbfcfe;
}

.balance-chart-plot {
  position: relative;
  width: 100%;
  height: 180px;
}

.balance-chart-axis {
  position: absolute;
  top: 50%;
  right: 4px;
  left: 4px;
  border-top: 1px dashed #cbd4e1;
}

.balance-chart-bar {
  position: absolute;
  right: 25%;
  bottom: 50%;
  width: 50%;
  min-height: 1px;
  border-radius: 4px 4px 0 0;
  background: #18a88f;
}

.balance-chart-bar.balance-chart-negative {
  top: 50%;
  bottom: auto;
  border-radius: 0 0 4px 4px;
  background: #e47a73;
}

.text-link {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-table {
  --bs-table-bg: transparent;
}

.dashboard-table thead th {
  padding: 11px 10px;
  color: #9aa5b5;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .45px;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #f0f3f7;
  font-size: 11px;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.receipt-pill {
  padding: 5px 7px;
  color: #5571ad;
  background: #f1f5fd;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.customer-cell, .amount-cell {
  color: #34425a !important;
  font-weight: 700;
}

.date-cell {
  color: #78859a !important;
  white-space: nowrap;
}

.quick-actions {
  display: grid;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  color: var(--ink);
  border-bottom: 1px solid #f0f3f7;
}

.quick-action:last-child {
  border-bottom: 0;
}

.quick-action:hover strong, .quick-action:hover .action-arrow {
  color: var(--blue);
}

.action-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  color: #8491a5;
  background: #f4f6fa;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.quick-action strong, .quick-action small {
  display: block;
}

.quick-action strong {
  color: #35435a;
  font-size: 11px;
}

.quick-action small {
  margin-top: 3px;
  color: #98a3b2;
  font-size: 9px;
}

.action-arrow {
  margin-left: auto;
  color: #a4afbd;
  font-size: 15px;
}

.empty-state {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8491a5;
  text-align: center;
}

.empty-state-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #6684ca;
  background: #eff4ff;
  border-radius: 12px;
  font-size: 18px;
}

.empty-state strong {
  color: #35435a;
  font-size: 12px;
}

.empty-state > span:last-of-type {
  margin-top: 4px;
  font-size: 10px;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(53, 103, 214, .09), transparent 48%),
    var(--canvas);
}

.auth-brand {
  margin-bottom: 25px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.auth-content {
  width: min(100%, 470px);
}

.auth-login-card {
  width: 100%;
}

.filter-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.filter-panel > summary::-webkit-details-marker {
  display: none;
}

.filter-panel > summary::after {
  color: var(--muted);
  content: "Show";
  font-size: 12px;
  font-weight: 600;
}

.filter-panel[open] > summary::after {
  content: "Hide";
}

.filter-panel > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.auth-content .card {
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(23, 36, 59, .07) !important;
}

.auth-content .card-body {
  padding: 34px !important;
}

.auth-content h3 {
  color: #1b2940;
  font-size: 21px;
  letter-spacing: -.6px;
}

.auth-footnote {
  margin: 22px 0 0;
  color: #98a3b2;
  font-size: 10px;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: absolute;
    top: 76px;
    right: 0;
    bottom: auto;
    width: 100%;
    min-height: 0;
    padding: 16px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 18px rgba(23, 36, 59, .06);
  }

  .app-sidebar .brand-lockup, .app-sidebar .sidebar-note {
    display: none;
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    padding: 0 24px;
  }

  .app-content {
    padding: 30px 24px 40px;
  }

  .app-footer {
    padding: 0 24px 20px;
  }
}

@media (max-width: 575.98px) {
  .app-topbar {
    min-height: 66px;
    padding: 0 16px;
  }

  .app-content {
    padding: 24px 16px 32px;
  }

  .app-footer {
    padding: 0 16px 16px;
  }

  .account-name {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .heading-date {
    display: none;
  }

  .metric-card {
    min-height: 138px;
    padding: 16px;
  }

  .metric-value {
    font-size: 25px;
  }

  .content-card {
    padding: 17px;
  }

  .auth-content .card-body {
    padding: 25px !important;
  }
}

:root {
  --ink: #17243b;
  --muted: #718198;
  --line: #e5ebf3;
  --canvas: #f3f6fb;
  --blue: #3567d6;
  --blue-dark: #2857c3;
  --teal: #12a89a;
  --surface-shadow: 0 8px 26px rgba(27, 47, 79, .055);
}

body {
  background:
    radial-gradient(ellipse at 92% 0, rgba(53, 103, 214, .055), transparent 34rem),
    var(--canvas);
}

.app-sidebar {
  color: #e7eefb;
  background: linear-gradient(165deg, #10213e 0%, #142b4c 62%, #123a52 100%);
  border-right: 0;
  box-shadow: 8px 0 30px rgba(13, 30, 55, .08);
}

.brand-lockup, .brand-lockup:hover {
  color: #f7faff;
}

.brand-mark {
  background: linear-gradient(145deg, #20c6b3, #3567d6);
  box-shadow: 0 8px 20px rgba(18, 168, 154, .22);
}

.brand-caption, .sidebar-label {
  color: #8fa4c1;
}

.sidebar-link {
  color: #bac8dc;
}

.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(55, 119, 222, .28), rgba(31, 191, 176, .12));
}

.sidebar-link.active {
  box-shadow: inset 3px 0 #35c9ba;
}

.nav-mark {
  color: #a9bad3;
  background: rgba(255, 255, 255, .09);
  font-size: 13px;
}

.sidebar-link.active .nav-mark {
  color: #fff;
  background: linear-gradient(145deg, #24bbaa, #3474e0);
}

.sidebar-note {
  color: #e8f1ff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
}

.sidebar-note strong {
  color: #e8f1ff;
}

.sidebar-note small {
  color: #a8bbd5;
}

.status-dot {
  background: #3dd5a0;
  box-shadow: 0 0 0 3px rgba(61, 213, 160, .17);
}

.app-topbar {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
}

.app-content {
  padding-top: 32px;
}

.app-content h1, .app-content h2, .app-content h3 {
  color: #1b2b45;
  letter-spacing: -.45px;
}

.app-content h2 {
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 800;
}

.metric-card, .content-card, .app-content .card {
  border-color: #e4eaf3;
  border-radius: 15px;
  box-shadow: var(--surface-shadow);
}

.app-content .card-header {
  border-bottom-color: #edf1f6;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 78px;
  height: 78px;
  content: "";
  background: linear-gradient(145deg, rgba(53, 103, 214, .09), rgba(18, 168, 154, .08));
  border-radius: 50%;
}

.metric-symbol {
  position: relative;
  z-index: 1;
}

.metric-value {
  color: #1d3151;
}

.app-content .table {
  --bs-table-striped-bg: #f8faff;
  --bs-table-hover-bg: #f1f6ff;
}

.app-content .table thead th {
  padding-top: 13px;
  padding-bottom: 13px;
  color: #64748b;
  background: #f5f8fc;
  border-bottom-color: #e5ebf3;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-content .table tbody td {
  border-color: #edf1f6;
}

.app-content .table tbody tr {
  transition: background-color .15s ease;
}

.app-content .form-label {
  color: #3f506a;
  font-size: 12px;
  font-weight: 650;
}

.app-content .form-control, .app-content .form-select {
  min-height: 40px;
  border-color: #dce4ef;
  border-radius: 9px;
  color: #243650;
  background-color: #fff;
}

.app-content textarea.form-control {
  min-height: unset;
}

.app-content .form-control:focus, .app-content .form-select:focus {
  border-color: #7aa0ec;
  box-shadow: 0 0 0 .22rem rgba(53, 103, 214, .12);
}

.app-content .btn-primary {
  background: linear-gradient(135deg, #3977e5, #315ecb);
  border-color: #3567d6;
  box-shadow: 0 4px 11px rgba(53, 103, 214, .16);
}

.app-content .btn-primary:hover {
  background: linear-gradient(135deg, #2f69d4, #264faf);
  border-color: #2857c3;
}

.app-content .btn-outline-primary {
  color: #315fc0;
  border-color: #cbd9f3;
  background: #f8faff;
}

.app-content .btn-outline-primary:hover {
  color: #fff;
  border-color: #3567d6;
  background: #3567d6;
}

.app-content .alert {
  border: 0;
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(27, 47, 79, .04);
}

.app-content .badge {
  padding: .45em .7em;
  border-radius: 6px;
  font-weight: 650;
}

.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select {
  min-height: 35px;
  padding: 5px 10px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}

.dataTables_wrapper .dt-info,
.dataTables_wrapper .dt-search,
.dataTables_wrapper .dt-length {
  color: #738198;
  font-size: 12px;
}

.app-footer {
  color: #8492a8;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    background: linear-gradient(165deg, #10213e 0%, #142b4c 62%, #123a52 100%);
  }
}

@media (max-width: 575.98px) {
  .app-content h2 {
    font-size: 21px;
  }

  .app-content .table {
    font-size: 12px;
  }
}

.app-sidebar {
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(192, 211, 239, .3) transparent;
  scrollbar-width: thin;
}

.app-topbar {
  position: sticky;
  z-index: 1020;
  top: 0;
}

.sidebar-link,
.app-content .card,
.metric-card,
.content-card,
.app-content .btn,
.app-content .form-control,
.app-content .form-select {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease,
    transform .18s ease;
}

.app-content .card:not(.filter-panel):hover,
.metric-card:hover,
.content-card:hover {
  border-color: #d7e2f1;
  box-shadow: 0 12px 30px rgba(27, 47, 79, .075);
}

.app-content .btn:not(:disabled):active {
  transform: translateY(1px);
}

.app-content .table-responsive {
  border-radius: 0 0 15px 15px;
}

.app-content .table tbody tr:last-child > * {
  border-bottom-width: 0;
}

.app-content .filter-panel {
  overflow: hidden;
}

.app-content .filter-panel > summary {
  min-height: 52px;
  padding: 14px 18px;
  color: #33445f;
  font-weight: 700;
}

.opening-balance-panel {
  padding: 20px;
  background: linear-gradient(135deg, #f8faff, #f2fbfa);
  border: 1px solid #dfe9f3;
  border-radius: 14px;
}

.opening-balance-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #5478bb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.opening-balance-panel h3 {
  color: #243650;
}

.opening-balance-panel .input-group-text {
  color: #65768e;
  background: #f7f9fc;
  border-color: #dce4ef;
  border-radius: 9px 0 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.opening-balance-panel .input-group .form-control {
  border-radius: 0 9px 9px 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.app-content .card-header {
  position: relative;
  background: linear-gradient(110deg, #fff 0%, #fbfcff 100%);
}

.app-content .card-header::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, #3e78e2, #20b8a8);
  border-radius: 0 3px 3px 0;
}

.metric-card {
  border-top: 3px solid var(--metric-accent, #3977e5);
}

.row > [class*="col"]:nth-child(4n + 2) .metric-card {
  --metric-accent: #14a892;
}

.row > [class*="col"]:nth-child(4n + 3) .metric-card {
  --metric-accent: #e7a236;
}

.row > [class*="col"]:nth-child(4n) .metric-card {
  --metric-accent: #8b67d5;
}

.metric-card .symbol-blue {
  color: #3567d6;
  background: #edf3ff;
}

.metric-card .symbol-green {
  color: #12816c;
  background: #e5f8f2;
}

.metric-card .symbol-amber {
  color: #a76b13;
  background: #fff4df;
}

.metric-card .symbol-violet {
  color: #7653be;
  background: #f2edff;
}

.app-content .btn-success {
  border-color: #15936e;
  background: linear-gradient(135deg, #1ba981, #118765);
  box-shadow: 0 4px 11px rgba(17, 135, 101, .14);
}

.app-content .btn-warning {
  border-color: #e7a236;
  background: linear-gradient(135deg, #ffc451, #efa92d);
}

.app-content .btn-danger {
  border-color: #d94d61;
  background: linear-gradient(135deg, #e76576, #d94d61);
}

.app-content .btn-success:hover,
.app-content .btn-warning:hover,
.app-content .btn-danger:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.app-content .alert-success {
  color: #116c53;
  background: linear-gradient(110deg, #e8f8f1, #f3fcf8);
}

.app-content .alert-warning {
  color: #845b15;
  background: linear-gradient(110deg, #fff5df, #fffbf1);
}

.app-content .alert-danger {
  color: #9c3444;
  background: linear-gradient(110deg, #fff0f1, #fff8f8);
}

.app-content .alert-info {
  color: #235b82;
  background: linear-gradient(110deg, #eaf6ff, #f5fbff);
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 12px 0;
}

.column-visibility-menu {
  width: min(280px, calc(100vw - 36px));
  max-height: min(60vh, 420px);
  overflow-y: auto;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(27, 47, 79, .16);
}

.column-visibility-menu .dropdown-item {
  padding: 8px 10px;
  color: #3567d6;
}

.column-visibility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #43536b;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
}

.column-visibility-item:hover {
  color: #244eaa;
  background: #f1f5ff;
}

.column-visibility-item .form-check-input {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.asset-tag {
  display: inline-flex;
  padding: 5px 8px;
  color: #355fae;
  background: #edf3ff;
  border: 1px solid #dfe9ff;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
}

.asset-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 8px 20px;
}

.asset-profile-list > div {
  padding: 12px 8px;
  border-bottom: 1px solid #edf1f6;
}

.asset-profile-list dt {
  margin-bottom: 4px;
  color: #8491a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.asset-profile-list dd {
  margin: 0;
  color: #33445f;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.asset-profile-list .asset-profile-notes {
  grid-column: 1 / -1;
  border-bottom: 0;
}

@media (max-width: 575.98px) {
  .table-toolbar {
    padding-right: 8px;
    padding-left: 8px;
  }

  .asset-profile-list {
    grid-template-columns: 1fr;
  }
}