.tab {
  display: none;
  /* Bottom padding raised from 24px → calc(96px + safe-area) so the
     last row of action buttons (WhatsApp / Save / Print on Bills, etc.)
     is not clipped by the Windows taskbar, by mobile browser dynamic
     chrome, or by the iOS home-indicator safe area. The 96px alone
     covers desktop OS taskbars; env(safe-area-inset-bottom) adds the
     iOS notch/home-bar inset on top. height: 100vh is intentionally
     kept — replacing it is a larger refactor with risk of breaking
     inner-scroll on Android. See REVIEW_ISSUES STG-WALK-6 in the
     staging clone for full context. */
  padding: 70px 16px calc(96px + env(safe-area-inset-bottom, 0px)) 16px;
  max-width: 480px;
  min-height: 100vh;
  height: 100vh;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--light-bg);
  position: relative;
}

.tab.active {
  display: block;
}

.tab h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.tab h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.tab h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Sub-tab navigation style */
.sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card-bg);
}

.sub-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: var(--light-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.sub-tab:hover {
  background: var(--border-color);
}

.sub-tab.active {
  background: var(--primary-gradient);
  color: white;
}

