/* WECHARGE Staff Station Hub */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #FF0044;
  --black: #1A0A00;
  --grey-label: #766D66;
  --grey-muted: #9A928C;
  --grey-border: #E2DCD6;
  --grey-placeholder: #C4C4C4;
  --grey-pill-bg: #F5F2EF;
  --white: #FFFFFF;
  --surface-base: #F8F7F4;
  --surface-card: #FDFCFA;
  --dot-color: rgba(0, 0, 0, 0.1);
  --green-text: #1B8A34;
  --green-bg: #39E75F1A;
  --green-border: #39E75F29;
  --green-dot: #39E75F;
  --red-text: #E5173F;
  --red-bg: #E5173F1A;
  --red-btn: #C30F33;
  --btn-dark: #18181B;
  --brand: #FF0044;
  --muted: #A89C99;
  --secondary: #766D66;
  --danger: #E5173F;
  --progress-track: #D7D8D5;
  --progress-fill: #3A3A39;
  --battery-icon: #8D8D8D;
  --overlay-circle: #F0F0F0;
  --loading-bg: #e0e0e0;
  --blue-spinner: #325FEC;
  --soc-bg: #39E75F14;
  --soc-border: #39E75F4D;
  --soc-fg: #39E75F;
  --pts-bg: #E2DCD6;
  --warning: #FF9500;
  --screen-bg: #FAFAFA;
  --card-shadow: 0px 1px 3px 0px #1A0A000F, 0px 0px 2px 0px #1A0A000A;
  --card-shadow-lg: 0px 2px 6px 0px #1A0A001A, 0px 1px 3px 0px #1A0A000F;
  --invoice-shadow: 0px 2px 6px 0px #0000003D, 0px 4px 12px -2px #00000029, 0px 0px 14px -2px #FF00440F;
}

body.staff-hub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background-color: var(--surface-base);
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--black);
}

body.staff-hub.staff-hub-invoice { background: var(--screen-bg); background-image: none; }

.staff-hub-shell { min-height: 100vh; display: flex; flex-direction: column; }
.staff-hub-page { max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; flex: 1; width: 100%; }
.dashboard-page { padding: 32px 24px 48px; }

/* Header */
.staff-hub-header {
  position: sticky; top: 0; z-index: 20; background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  box-shadow: 0 1px 3px rgba(26, 10, 0, 0.1);
  padding: 0 16px;
}
.staff-hub-header-bar { height: 48px; display: flex; align-items: center; }
.staff-hub-header-content { display: flex; align-items: center; width: 100%; }
.staff-hub-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; color: var(--black); text-decoration: none; flex-shrink: 0;
}
.staff-hub-back:hover { background: var(--surface-base); }
.staff-hub-back .ph-icon { font-size: 24px; }
.staff-hub-header-title {
  flex: 1; margin-left: 20px; font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.2px;
}
.staff-hub-header-meta {
  font-size: 14px; line-height: 20px; color: var(--muted); max-width: 38vw;
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0;
}

/* Dashboard */
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.station-name { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.3px; }
.top-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent; color: var(--black);
  cursor: pointer; border-radius: 50%; transition: background 0.15s; text-decoration: none;
}
.icon-btn:hover { background: var(--grey-pill-bg); }
.icon-btn .ph-icon { font-size: 28px; line-height: 1; }
.badge-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: var(--white); font-size: 11px; font-weight: 600;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

.hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 16/9; background: #ddd; touch-action: pan-y pinch-zoom; }
.hero-carousel { user-select: none; }
.hero-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}
.hero-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.7); border: none; padding: 0; cursor: pointer; }
.dot.active { width: 22px; background: var(--red); }

.quick-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.info-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--grey-pill-bg); border: 1px solid var(--grey-border); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--black); white-space: nowrap;
}
.info-pill .ph-icon { font-size: 16px; line-height: 1; }

.section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; }
.charging-points { display: flex; flex-direction: column; gap: 16px; }

.point-card {
  background: var(--white); border: 1px solid var(--grey-border); border-radius: 16px;
  box-shadow: var(--card-shadow); overflow: hidden;
}
.point-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 0;
}
.point-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.point-id { font-size: 12px; color: var(--grey-muted); margin-top: 2px; }
.point-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 400; white-space: nowrap;
}
.tag-neutral { background: var(--white); border: 1px solid var(--grey-border); color: var(--grey-label); }
.tag-grey { background: var(--grey-pill-bg); color: var(--grey-label); }
.tag-green { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green-text); }
.tag-red { background: var(--red-bg); color: var(--red-text); }
.tag .ph-icon { font-size: 12px; line-height: 1; }
.tag-green .status-dot { font-size: 8px; line-height: 1; color: var(--green-dot); }

.socket-list { padding: 4px 0; }
.socket { padding: 14px 16px; border-bottom: 1px solid var(--grey-border); }
.socket:last-child { border-bottom: none; }
.socket-main { display: flex; gap: 12px; margin-bottom: 12px; }
.socket-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grey-pill-bg); border: 1px solid var(--grey-border);
  display: flex; align-items: center; justify-content: center;
}
.socket-icon .ph-icon { font-size: 24px; color: var(--grey-label); }
.socket-info { flex: 1; min-width: 0; }
.socket-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.socket-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.socket-actions { display: flex; gap: 8px; }

.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: none; transition: opacity 0.15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-outline { background: var(--white); border: 1px solid var(--grey-border); color: var(--grey-label); box-shadow: var(--card-shadow); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-danger { background: var(--red-btn); color: var(--white); }
.btn .ph-icon { font-size: 16px; line-height: 1; }

/* Charge / Charging shared */
.charge-page {
  width: 100%; max-width: 720px; margin: 0 auto; flex: 1;
  display: flex; flex-direction: column; min-height: calc(100vh - 48px);
}
.charge-content { flex: 1; padding-bottom: 20px; }
.staff-charge-alert { margin: 12px 20px 0; }

.hero-wrap, .hero-section { display: flex; justify-content: center; margin: 20px 0; position: relative; overflow: visible; }
.hero-image {
  width: min(92vw, 360px); height: auto; object-fit: contain;
  margin-top: 8px; margin-bottom: 12px; position: relative; z-index: 1;
}
/* Match ev-charging publicCharging/startScreen.js: top = 51vw - 46vw - 10vw */
.red-glow {
  position: absolute;
  width: min(96.6vw, 399px);
  height: min(46vw, 190px);
  top: clamp(-24px, calc(51vw - 46vw - 10vw), 0px);
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 100% at 50% 100%,
    rgba(255, 0, 68, 1) 0%,
    rgba(255, 0, 68, 0.92) 16%,
    rgba(255, 0, 68, 0.78) 32%,
    rgba(255, 0, 68, 0.6) 47%,
    rgba(255, 0, 68, 0.4) 61%,
    rgba(255, 0, 68, 0.22) 76%,
    rgba(255, 0, 68, 0.08) 89%,
    transparent 100%
  );
  pointer-events: none;
  animation: glowPulse 2.22s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { opacity: 0.55; transform: translateX(-50%) scale(0.94); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.progress-section { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.progress-row {
  display: flex; align-items: center; gap: 8px; width: 92%; max-width: 640px; margin-top: 20px;
}
.battery-icon .ph-icon { font-size: 20px; color: var(--battery-icon); line-height: 1; }
.progress-track { flex: 1; height: 12px; background: var(--progress-track); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%; background: var(--progress-fill); border-radius: 60px;
  transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.gun-hint { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--muted); text-align: center; }
.meta-hint { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; padding: 0 20px; }
.connector-hints { text-align: center; margin-top: 4px; }
.connector-hints .gun-hint { margin-top: 0; }
.connector-hints .meta-hint { margin-top: 2px; line-height: 13px; }

.session-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  width: 92%; max-width: 640px; margin: 8px auto 0;
}
.session-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: -0.15px;
}
.session-pill.soc { background: var(--soc-bg); border: 1px solid var(--soc-border); color: var(--soc-fg); }
.session-pill.pts { background: var(--pts-bg); color: var(--black); }
.session-pill .ph-icon { font-size: 14px; line-height: 1; }

.charge-metrics {
  width: 92%; max-width: 640px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 0;
}
.metrics-row { display: flex; gap: 16px; margin-bottom: 16px; }
.metrics-row:last-child { margin-bottom: 0; }
.metric-card {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 4px 16px; background: var(--surface-card);
  border: 1px solid var(--grey-border); border-radius: 16px; box-shadow: var(--card-shadow-lg); text-align: center;
}
.metric-card.large { min-height: 87px; }
.metric-card.small { min-height: 80px; }
.metric-accent {
  position: absolute; top: 8px; width: 48px; height: 3px; border-radius: 999px; background: var(--brand);
}
.metric-value {
  font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -0.015em; color: var(--black); margin-top: 10px;
}
.metric-value.small {
  font-size: 20px; line-height: 28px; letter-spacing: -0.01em; margin-top: 0;
  white-space: nowrap;
}
.metric-label { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0.01em; color: var(--muted); }

.charge-footer { padding: 0 24px 20px; }
.start-btn, .stop-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px; border: none; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 24px;
  letter-spacing: -0.5px; cursor: pointer; transition: opacity 0.15s; color: var(--white);
}
.start-btn { background: var(--btn-dark); }
.stop-btn { background: var(--danger); }
.start-btn:hover:not(:disabled), .stop-btn:hover:not(:disabled) { opacity: 0.88; }
.start-btn:disabled, .stop-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.start-btn .ph-icon, .stop-btn .ph-icon { font-size: 20px; line-height: 1; }
.start-btn-loading { display: inline-flex; align-items: center; gap: 8px; }

.warning-banner {
  display: none; align-items: center; gap: 8px; width: 100%; padding: 10px 20px;
  background: var(--warning); color: var(--white); font-size: 14px; font-weight: 500; line-height: 20px;
}
.warning-banner.visible { display: flex; }
.warning-banner .ph-icon { font-size: 20px; flex-shrink: 0; }

/* Plug overlay */
.charge-screen-header { position: sticky; top: 0; z-index: 30; }
.charge-overlay-panel {
  flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 48px);
  background-color: var(--surface-base);
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1.25px, transparent 1.25px);
  background-size: 24px 24px;
}
.charge-overlay-body {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: space-evenly; padding: 24px;
}
.plug-circle {
  width: 120px; height: 120px; border-radius: 50%; background: var(--overlay-circle);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0;
}
.plug-circle img { width: 120px; height: 120px; object-fit: contain; }
.overlay-headline {
  font-size: 28px; font-weight: 600; line-height: 36px; text-align: center;
  color: var(--black); margin-bottom: 24px; margin-top: -20px;
}
.overlay-details { align-self: stretch; width: 100%; }
.detail-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0;
}
.detail-divider { height: 1px; background: var(--grey-border); }
.detail-label { flex: 0.4; font-size: 16px; line-height: 22px; color: var(--muted); }
.detail-value { flex: 0.6; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--black); text-align: right; }
.charge-overlay-footer { padding: 10px 24px 24px; }
.charge-btn {
  width: 100%; padding: 16px 24px; border: none; border-radius: 999px;
  background: var(--black); color: var(--white); font-family: inherit;
  font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer; transition: opacity 0.15s;
}
.charge-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.charge-btn:hover:not(:disabled) { opacity: 0.88; }

/* Invoice */
.invoice-page {
  width: 100%; max-width: min(100%, 720px); margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column;
}
.invoice-content {
  flex: 1; width: 100%; padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 32px) 24px;
}
.brand-wrap { display: flex; justify-content: center; margin-top: 20px; margin-bottom: 14px; padding: 16px 0 10px; }
.brand-logo { height: 22px; width: auto; }
.status-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.status-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--green-text);
  background: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.status-icon .ph-icon { font-size: 24px; line-height: 1; color: var(--green-text); }
.status-title { font-size: 20px; font-weight: 600; color: var(--black); }
.invoice-card {
  width: 100%; margin: 0 auto; background: #CCFFD733; border-radius: 20px;
  padding: 0 clamp(16px, 4vw, 28px) clamp(16px, 3vw, 24px); box-shadow: var(--invoice-shadow); overflow: hidden;
}
.card-top-border {
  height: 4px; background: var(--green-text);
  margin: 0 calc(-1 * clamp(16px, 4vw, 28px)) 18px;
}
.invoice-block { display: flex; flex-direction: column; gap: 10px; }
.section-divider { height: 1px; background: var(--grey-border); margin: 12px 0; }
.invoice-detail-row, .invoice-total-row {
  display: flex; align-items: center; justify-content: space-between;
}
.invoice-detail-label {
  flex: 0.9; font-size: clamp(12px, 1.6vw, 14px); font-weight: 400; color: var(--muted); line-height: 1.4;
}
.invoice-detail-value-wrap { flex: 1.1; padding-left: 12px; text-align: left; min-width: 0; }
.invoice-detail-value {
  font-size: clamp(12px, 1.6vw, 14px); font-weight: 400; color: var(--black); line-height: 1.4; word-break: break-word;
}
.invoice-detail-value.success { color: var(--green-text); font-weight: 500; }
.invoice-total-row { margin-bottom: 4px; }
.invoice-total-label {
  flex: 0.9; font-size: clamp(18px, 2.8vw, 22px); font-weight: 700; color: var(--black); line-height: 1.3;
}
.invoice-total-value {
  font-size: clamp(18px, 2.8vw, 22px); font-weight: 700; color: var(--green-text); line-height: 1.3;
}
.invoice-footer {
  display: flex; gap: 10px; width: 100%; max-width: min(100%, 720px); margin: 0 auto;
  padding: 10px clamp(16px, 5vw, 32px) 22px;
}
.done-btn, .save-btn {
  flex: 1; min-height: 52px; padding: 16px 24px; border-radius: 30px;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s; display: inline-flex; align-items: center; justify-content: center;
}
.done-btn { background: var(--white); border: 1px solid var(--black); color: var(--black); }
.save-btn { background: var(--btn-dark); border: none; color: var(--white); }
.done-btn:hover, .save-btn:hover { opacity: 0.88; }

.save-success-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 0 20px; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.save-success-overlay::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.save-success-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.save-success-toast {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; background: var(--surface-base); border-radius: 999px;
  box-shadow: var(--card-shadow-lg); max-width: min(100%, 420px);
  transform: translateY(6px) scale(0.98); transition: transform 0.22s ease;
}
.save-success-overlay.visible .save-success-toast { transform: translateY(0) scale(1); }
.save-success-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.save-success-icon .ph-icon { font-size: 16px; line-height: 1; color: var(--white); }
.save-success-text { font-size: 14px; font-weight: 500; color: var(--black); line-height: 1.3; white-space: nowrap; }

/* Loading */
.loading-overlay {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
}
.loading-overlay.visible { display: flex; }
.loading-overlay-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loading-overlay-text { font-size: 16px; font-weight: 600; color: var(--black); }
.loading-overlay-subtext { font-size: 14px; color: var(--muted); }
.spinner {
  border: 2px solid rgba(26, 10, 0, 0.15); border-top-color: var(--blue-spinner);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Misc */
.alert-error {
  background: var(--red-bg); color: var(--red-text); border: 1px solid #f5c2c7;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px;
}

/* Confirm dialog */
.staff-dialog-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(26, 10, 0, 0.45);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.staff-dialog-backdrop.visible { display: flex; }
.staff-dialog {
  width: 100%; max-width: 360px; background: var(--white); border-radius: 16px;
  padding: 24px; box-shadow: 0 12px 40px rgba(26, 10, 0, 0.18);
}
.staff-dialog-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--black); }
.staff-dialog-message {
  font-size: 14px; line-height: 20px; color: var(--secondary); margin-bottom: 20px;
}
.staff-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.staff-dialog-btn {
  border: none; background: transparent; font-family: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 999px;
}
.staff-dialog-btn-cancel { color: var(--secondary); }
.staff-dialog-btn-danger { background: var(--black); color: var(--white); }
.staff-dialog-btn-cancel:hover { color: var(--black); }
.staff-dialog-btn-danger:hover { opacity: 0.85; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--grey-muted); }
.empty-text { font-size: 14px; color: var(--grey-muted); text-align: center; padding: 12px 0; }

/* Login */
.staff-login-page {
  display: flex; flex-direction: column; min-height: 100vh; max-width: 480px;
  margin: 0 auto; padding: 40px 28px 32px;
}
.staff-login-header { margin-bottom: 36px; flex-shrink: 0; }
.staff-login-logo { height: 28px; width: auto; display: block; }
.staff-login-title {
  margin-top: 32px; font-size: 32px; font-weight: 700; color: var(--black);
  letter-spacing: -0.5px; line-height: 1.15;
}
.staff-login-alert {
  margin-bottom: 20px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  color: var(--red-text); background: var(--red-bg); border: 1px solid #E5173F33;
}
.staff-login-form { display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; }
.staff-login-field { display: flex; flex-direction: column; gap: 8px; }
.staff-login-field label { font-size: 13px; font-weight: 400; color: var(--grey-label); }
.staff-login-input-wrap {
  display: flex; align-items: center; background: var(--white); border: 1px solid var(--grey-border);
  box-shadow: var(--card-shadow); border-radius: 12px; height: 52px; padding: 0 14px; gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.staff-login-input-wrap .ph-icon {
  flex-shrink: 0; font-size: 20px; color: var(--grey-label); line-height: 1;
}
.staff-login-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit;
  color: var(--black); background: transparent; min-width: 0;
}
.staff-login-input-wrap input::placeholder { color: var(--grey-placeholder); }
.staff-login-toggle-password {
  background: none; border: none; cursor: pointer; padding: 4px; display: flex;
  align-items: center; color: var(--grey-label); flex-shrink: 0;
}
.staff-login-toggle-password .ph-icon { font-size: 20px; color: var(--grey-label); line-height: 1; }
.staff-login-toggle-password:hover .ph-icon { color: var(--black); }
.staff-login-spacer { flex: 1; }
.staff-login-footer { padding-bottom: 8px; flex-shrink: 0; }
.staff-login-remember {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  cursor: pointer; user-select: none;
}
.staff-login-remember input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px;
  border: 1.5px solid var(--grey-border); border-radius: 50%; cursor: pointer;
  position: relative; flex-shrink: 0; transition: border-color 0.15s, background 0.15s;
}
.staff-login-remember input[type="checkbox"]:checked {
  border-color: var(--black); background: var(--black);
}
.staff-login-remember input[type="checkbox"]:checked::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 8px; height: 8px;
  background: var(--white); border-radius: 50%;
}
.staff-login-remember span { font-size: 14px; font-weight: 400; color: var(--grey-label); }
.staff-login-btn {
  width: 100%; height: 48px; background: var(--black); color: var(--white);
  border: none; border-radius: 999px; font-size: 16px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: opacity 0.15s; letter-spacing: 0.2px;
}
.staff-login-btn:hover { opacity: 0.85; }
.staff-login-btn:active { opacity: 0.7; }

/* History */
.history-content { flex: 1; padding: 16px 20px 32px; max-width: 720px; margin: 0 auto; width: 100%; }
.history-header-title { font-size: 20px; font-weight: 700; line-height: 28px; margin-left: 20px; }
.history-section-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.08px; margin-bottom: 10px; color: var(--black);
}
.history-card {
  background: var(--surface-card); border: 1px solid var(--grey-border); border-radius: 20px;
  box-shadow: var(--card-shadow-lg); margin-bottom: 20px;
}
.overview-card { padding: 20px 16px; margin-bottom: 20px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.overview-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.overview-icon .ph-icon { font-size: 22px; color: var(--secondary); line-height: 1; }
.overview-value { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--black); word-break: break-word; }
.overview-value.small { font-size: 15px; }
.overview-label { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 16px; }

.breakdown-card { padding: 16px 20px; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.breakdown-left { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.completed { background: var(--green-text); }
.status-dot.failed { background: var(--red-text); }
.status-dot.stopped { background: #E89B0C; }
.breakdown-label { font-size: 14px; font-weight: 400; color: var(--muted); }
.breakdown-value { font-size: 14px; font-weight: 700; color: var(--black); }

.month-navigator { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.month-nav-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--black); cursor: pointer; border-radius: 50%;
  text-decoration: none;
}
.month-nav-btn:disabled { color: #C4C4C4; cursor: not-allowed; }
.month-nav-btn:not(:disabled):hover { background: rgba(26, 10, 0, 0.05); }
.month-nav-btn .ph-icon { font-size: 20px; line-height: 1; }
.month-nav-text { font-size: 14px; font-weight: 400; line-height: 20px; color: var(--secondary); }

.empty-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; padding: 12px 0; }
.session-list { margin-top: 10px; }
.session-card {
  background: var(--surface-card); border: 1px solid var(--grey-border); border-radius: 16px;
  padding: 16px; margin-bottom: 10px; box-shadow: var(--card-shadow-lg);
}
.session-card--clickable {
  cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.session-card--clickable:hover {
  border-color: rgba(26, 10, 0, 0.2);
  box-shadow: 0px 4px 14px -2px rgba(0, 0, 0, 0.12);
}
.session-card--clickable:focus-visible {
  outline: 2px solid var(--green-text); outline-offset: 2px;
}
.session-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.session-date { font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: -0.08px; color: var(--black); }
.session-type-icon .ph-icon { font-size: 24px; color: var(--secondary); line-height: 1; }
.session-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.session-location {
  flex: 1; font-size: 12px; line-height: 16px; letter-spacing: 0.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.session-time { font-size: 12px; line-height: 16px; letter-spacing: 0.5px; color: var(--muted); flex-shrink: 0; }
.session-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.session-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--grey-border); background: rgba(26, 10, 0, 0.05);
}
.session-chip .ph-icon { font-size: 16px; color: var(--secondary); line-height: 1; }
.session-chip-text {
  font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0.12px; color: var(--secondary);
}

.history-invoice-overlay {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.history-invoice-modal {
  width: 100%; max-width: min(100%, 400px);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 1;
}
/* Same light base as live invoice page so #CCFFD733 composites identically */
.history-invoice-card-surface {
  background: var(--screen-bg);
  border-radius: 20px;
}
.history-invoice-card-surface .card-top-border {
  display: none;
}
.history-invoice-card-surface .invoice-card {
  padding-top: clamp(16px, 3vw, 24px);
}
.history-invoice-done {
  width: 100%; min-height: 52px; padding: 16px 24px; border: none; border-radius: 30px;
  background: #F1FBF3; color: var(--black); font-family: inherit;
  font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer;
  transition: opacity 0.15s ease;
  box-shadow: var(--invoice-shadow);
}
.history-invoice-done:hover { opacity: 0.88; }

@media (max-width: 400px) {
  .overview-value { font-size: 15px; }
  .overview-value.small { font-size: 13px; }
  .metrics-row { gap: 8px; }
  .metric-card { padding: 4px 10px; min-width: 0; }
  .metric-value.small { font-size: 18px; line-height: 24px; }
}

/* Notifications */
.notifications-content { flex: 1; padding: 10px 0 24px; max-width: 720px; margin: 0 auto; width: 100%; }
.notifications-header-title { font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: -0.2px; margin-left: 20px; }
.notifications-section-label {
  margin: 10px 20px; font-size: 12px; font-weight: 500; line-height: 16px;
  letter-spacing: 0.5px; color: var(--secondary);
}
.notification-list { list-style: none; padding: 0 20px; }
.notification-item {
  position: relative; overflow: hidden; margin-bottom: 20px; touch-action: pan-y;
}
.notification-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: var(--surface-card); border: 1px solid #EAE5E0; border-radius: 16px;
  box-shadow: var(--card-shadow-lg); transition: transform 0.2s ease, opacity 0.2s ease;
}
.notification-card.is-dragging {
  cursor: grabbing; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: none;
}
.notification-card.is-dismissing { opacity: 0; transform: scaleY(0.6); pointer-events: none; }
.notification-icon {
  flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center;
  justify-content: center; margin-top: 1px;
}
.notification-icon .ph-icon { font-size: 24px; line-height: 1; }
.notification-icon.charging .ph-icon { color: #C01235; }
.notification-icon.payment .ph-icon { color: var(--green-text); }
.notification-icon.calendar .ph-icon,
.notification-icon.fault .ph-icon { color: #8A5A00; }
.notification-body { flex: 1; min-width: 0; }
.notification-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.notification-title {
  flex: 1; font-size: 16px; font-weight: 500; line-height: 20px; letter-spacing: 0.5px; color: var(--black);
}
.notification-time {
  flex-shrink: 0; font-size: 12px; font-weight: 400; line-height: 20px;
  letter-spacing: 0.06px; color: #A89C99;
}
.notification-description {
  margin-top: 5px; font-size: 12px; font-weight: 400; line-height: 16px;
  letter-spacing: 0.06px; color: var(--secondary);
}
.notifications-empty-state {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center;
}
.notifications-empty-state.visible { display: flex; }
.notifications-empty-icon {
  width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px;
}
.notifications-empty-icon .ph-icon {
  font-size: 72px; color: var(--secondary); opacity: 0.45; line-height: 1;
}
.notifications-empty-text { font-size: 18px; font-weight: 500; color: var(--secondary); }
.notifications-snackbar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 688px; margin: 0 auto;
  padding: 14px 16px; background: #333333; color: var(--white); border-radius: 8px;
  font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 100;
}
.notifications-snackbar.visible { opacity: 1; transform: translateY(0); }

/* History / notifications (shared legacy) */

.ph-icon { line-height: 1; }

@media (min-width: 640px) {
  .dashboard-page { padding: 40px 32px 56px; }
  .station-name { font-size: 20px; }
  .status-title { font-size: 24px; }
  .brand-logo { height: 26px; }
  .invoice-detail-value-wrap { padding-left: 16px; }
}
