:root {
  --sidebar-bg: #0f172a;
  --sidebar-active: #1d4ed8;
  --page-bg: #f3f4f6;
}

body {
  background: var(--page-bg);
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 270px;
  background: var(--sidebar-bg);
  color: #fff;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  transition: transform .25s ease;
}

.sidebar-brand {
  padding: 1.2rem;
  display: flex;
  gap: .75rem;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-brand small {
  display: block;
  color: #cbd5e1;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--sidebar-bg);
  font-weight: 800;
}

.sidebar-nav {
  padding: 1rem;
}

.sidebar-nav a {
  color: #dbeafe;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .78rem 1rem;
  text-decoration: none;
  border-radius: .8rem;
  margin-bottom: .25rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--sidebar-active);
  color: #fff;
}

.sidebar-nav hr {
  border-color: rgba(255,255,255,.15);
}

.main-content {
  margin-left: 270px;
  flex: 1;
  min-width: 0;
}

.auth-content {
  width: 100%;
}

.stat-card {
  border: 0;
  border-radius: 1.1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.table-card {
  border: 0;
  border-radius: 1.1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.form-control,
.form-select,
.btn {
  border-radius: .75rem;
}

.auth-card {
  max-width: 430px;
  margin: 7vh auto;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.receipt-preview {
  max-width: 110px;
  border-radius: .75rem;
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}
