:root {
  --zt-navy: #0b3d5c;
  --zt-navy-2: #0f4f75;
  --zt-accent: #1a8f6e;
  --zt-bg: #eef2f6;
  --zt-sidebar: #0b3d5c;
}

body.app-body {
  background: var(--zt-bg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--zt-sidebar), #072a40);
  flex-shrink: 0;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.15rem;
}

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

#page-content {
  min-width: 0;
  min-height: 100vh;
}

.stat-card {
  border: 0;
  border-radius: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 40, 70, 0.08);
}

.stat-card .stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--zt-navy);
}

.stat-card .stat-label {
  color: #6c757d;
  font-size: 0.85rem;
}

.btn-zt {
  background: var(--zt-accent);
  border-color: var(--zt-accent);
  color: #fff;
}

.btn-zt:hover {
  background: #157a5e;
  border-color: #157a5e;
  color: #fff;
}

.table-responsive {
  border-radius: 0.75rem;
  background: #fff;
}

.auth-wrap {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(26, 143, 110, 0.18), transparent 40%),
    linear-gradient(160deg, #0b3d5c 0%, #0f4f75 45%, #eef2f6 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.receipt-stage {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1.5rem;
}

.receipt-paper {
  background: transparent;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    z-index: 1040;
    left: -260px;
    transition: left 0.2s ease;
  }
  #sidebar.show {
    left: 0;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1035;
  }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 4mm;
  }
  .sidebar,
  .topbar,
  .no-print,
  footer {
    display: none !important;
  }
  #page-content,
  main {
    padding: 0 !important;
    margin: 0 !important;
  }
  .receipt-stage {
    display: block !important;
    padding: 0 !important;
  }
  .receipt-paper {
    border: 0 !important;
    box-shadow: none !important;
    max-width: 80mm;
    width: 80mm;
    margin: 0 auto;
  }
}