/**
 * ingate Commission Platform v2: Mobile Employee Portal Styles
 * Extracted to stylesheet for CSP compliance without unsafe-inline
 */

.employee-portal {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 0;
}
.mobile-header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  padding: 14px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
}
.mobile-app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand-navy-text);
  font-size: 14px;
}
.mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(72px + env(safe-area-inset-bottom, 16px)) 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.m-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.gate-hero {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.gate-user-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.user-name {
  font-weight: 700;
  color: var(--brand-navy-text);
  font-size: 15px;
}
.gate-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.gate-big-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy-text);
  font-variant-numeric: tabular-nums;
}
.gate-track-wrap { margin-top: 10px; }
.gate-track {
  height: 8px;
  background: var(--bg-surface-hover);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.gate-fill {
  height: 100%;
  background: var(--brand-cyan);
}
.gate-meta-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.next-band-callout {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.band-threshold-highlight {
  font-weight: 700;
  color: var(--brand-navy-text);
  font-variant-numeric: tabular-nums;
}
.waterfall-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.waterfall-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-hairline);
  font-size: 12px;
}
.step-left { display: flex; flex-direction: column; }
.step-label { font-weight: 600; color: var(--text-primary); }
.step-sub { font-size: 10px; color: var(--text-muted); }
.step-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.step-total-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--border-hairline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.sale-item:last-child { border-bottom: none; }
.prod-code {
  display: inline-block;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-surface-hover);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}
[dir="rtl"] .prod-code { margin-left: 0; margin-right: 4px; }
.what-if-box {
  background: var(--bg-canvas);
  border: 1px dashed var(--border-hairline-strong);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.what-if-title {
  font-weight: 700;
  color: var(--brand-navy-text);
  font-size: 13px;
}
.what-if-desc {
  font-size: 12px;
  color: var(--text-secondary);
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  min-width: 52px;
  min-height: 48px;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-tab.active {
  color: var(--brand-navy-text);
  font-weight: 700;
  position: relative;
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 20px;
  height: 2px;
  background: var(--brand-cyan);
  border-radius: 2px;
}
