:root {
  --navy: #16324f;
  --navy-dark: #0f2338;
  --accent: #2e86ab;
  --green: #1e8a5f;
  --red: #c0392b;
}

body {
  background: #f4f6f9;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.topbar {
  background: var(--navy);
}

.sidebar {
  width: 240px;
  min-height: calc(100vh - 56px);
  flex-shrink: 0;
}

.sidebar .nav-link {
  color: rgba(255,255,255,.75);
  padding: .55rem 1rem;
  border-radius: 6px;
  margin-bottom: 2px;
  font-size: .93rem;
}

.sidebar .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.sidebar .nav-link.active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: -260px;
    z-index: 1030;
    transition: left .2s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,.2);
  }
  .sidebar.show { left: 0; }
}

.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
}

.stat-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.bg-income { background: var(--green); }
.bg-expense { background: var(--red); }
.bg-balance { background: var(--navy); }
.bg-profit { background: var(--accent); }

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.table thead th {
  background: #eef1f5;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #555;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 14px;
}

/* Receipt / SOA print styles */
.receipt-copy {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}
.receipt-table th, .receipt-table td {
  padding: 6px 8px;
}
@media print {
  .no-print, .sidebar, nav, footer { display:none !important; }
  .content-area { padding:0 !important; }
  body { background:#fff; }
  .receipt-copy { border: 1px dashed #999; }
}
