:root {
  --navy: #0b1f3a;
  --navy-2: #112b4e;
  --blue: #1769e0;
  --bg: #f4f7fb;
  --text: #172033;
  --muted: #6b778c;
  --sidebar: 260px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: linear-gradient(180deg, var(--navy), #071628);
  padding: 24px 16px;
  color: #fff;
  z-index: 1040;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 0 8px 28px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2682ff, #55b9ff);
  font-size: 1.35rem;
  box-shadow: 0 8px 25px #0064d766;
}
.brand strong {
  display: block;
  font-size: 1.08rem;
}
.brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: #9fb7d2;
}
.nav-label {
  font-size: 0.66rem;
  color: #7690ad;
  letter-spacing: 1.5px;
  padding: 0 13px 10px;
}
.sidebar .nav-link {
  color: #acc0d6;
  border-radius: 10px;
  padding: 11px 13px;
  margin: 2px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}
.sidebar .nav-link:hover {
  color: #fff;
  background: #ffffff0d;
}
.sidebar .nav-link.active {
  background: linear-gradient(90deg, #1769e0, #2385ed);
  color: #fff;
  box-shadow: 0 8px 20px #0064d744;
}
.sidebar .nav-link i {
  font-size: 1.05rem;
  width: 20px;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #ffffff18;
  padding: 18px 12px 0;
  display: grid;
  gap: 12px;
}
.sidebar-logout {
  border: 0;
  background: none;
  padding: 0;
  color: #c5d4e4;
}
.sidebar-logout:hover {
  color: #fff;
}
.sidebar-footer small {
  color: #607994;
}
.app-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  background: #fff;
  padding: 0 28px;
  border-bottom: 1px solid #e7ecf3;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.content-area {
  padding: 28px;
  flex: 1;
}
.app-footer {
  padding: 18px 28px;
  color: var(--muted);
  font-size: 0.8rem;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #1769e0, #55b9ff);
}
.card {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 4px 18px #1b385f0d;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #edf1f5;
  padding: 18px 20px;
  border-radius: 15px 15px 0 0 !important;
}
.kpi-card {
  overflow: hidden;
  position: relative;
}
.kpi-card .card-body {
  padding: 21px;
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.kpi-label {
  color: var(--muted);
  font-size: 0.82rem;
}
.kpi-value {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.table {
  font-size: 0.87rem;
}
.table > thead th {
  background: #f8fafc;
  color: #667085;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  border-bottom: 1px solid #e8edf3;
  padding: 12px;
}
.table > tbody td {
  padding: 13px 12px;
  vertical-align: middle;
  border-color: #edf1f5;
}
.table-hover > tbody > tr:hover > * {
  background: #f8fbff;
}
.form-control,
.form-select {
  border-color: #dde3eb;
  border-radius: 9px;
  padding: 0.63rem 0.75rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #7bb0f5;
  box-shadow: 0 0 0 0.2rem #1769e01a;
}
.btn {
  border-radius: 9px;
}
.btn-primary {
  background: #1769e0;
  border-color: #1769e0;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.filter-card {
  padding: 17px;
  margin-bottom: 20px;
}
.amount-deposit {
  color: #138a56;
  font-weight: 700;
}
.amount-withdrawal {
  color: #dc4c4c;
  font-weight: 700;
}
.detail-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.detail-value {
  font-weight: 600;
}
.receipt {
  max-width: 760px;
  margin: auto;
  background: #fff;
  padding: 32px;
}
.print-only {
  display: none;
}
.login-page {
  min-height: 100vh;
  background: linear-gradient(115deg, #071a31 0%, #0b2d56 55%, #1769e0 100%);
  display: grid;
  place-items: center;
  padding: 25px;
  position: relative;
  overflow: hidden;
}
.login-page:before,
.login-page:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff0b;
}
.login-page:before {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
}
.login-page:after {
  width: 350px;
  height: 350px;
  bottom: -170px;
  left: -100px;
}
.login-shell {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1fr 440px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 35px 80px #00102466;
  position: relative;
  z-index: 1;
}
.login-visual {
  background: linear-gradient(145deg, #0b2342, #1259ad);
  padding: 55px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-form {
  padding: 50px 45px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-logo i {
  font-size: 2rem;
}
.mini-stat {
  border: 1px solid #ffffff25;
  background: #ffffff0d;
  border-radius: 13px;
  padding: 16px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #e9edf3;
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  transition: 0.15s;
}
.quick-action:hover {
  border-color: #8eb9f3;
  background: #f5f9ff;
  transform: translateY(-1px);
}
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 10px 0 40px #00102455;
  }
  .app-main {
    margin-left: 0;
  }
  .content-area {
    padding: 20px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .topbar {
    padding: 0 16px;
  }
  .content-area {
    padding: 15px;
  }
  .page-title-row {
    align-items: stretch;
    flex-direction: column;
  }
  .login-form {
    padding: 35px 25px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .app-footer,
  .no-print,
  .alert {
    display: none !important;
  }
  .app-main {
    margin: 0;
  }
  .content-area {
    padding: 0;
  }
  .receipt,
  .card {
    box-shadow: none;
  }
  .print-only {
    display: block;
  }
  .table {
    font-size: 10pt;
  }
  body {
    background: #fff;
  }
}
