/* ═══════════════════════════════════════════════════════════════════════
   SALAM HR — EMPLOYEE PORTAL
   Premium Glassmorphism Design System
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────────────────── */
:root {
  /* Salam Brand Colors */
  --salam-green-deep: #0A5F5C;
  --salam-green-darker: #0F2F2E;
  --salam-green-darkest: #081F1E;
  --salam-green-mid: #127B77;
  --salam-green-light: #1A9994;
  --salam-green-glow: #2FC5BF;
  
  --gold-primary: #D4AF37;
  --gold-light: #E8C962;
  --gold-deep: #A8871D;
  
  --text-primary: #F7F9F9;
  --text-secondary: rgba(247, 249, 249, 0.7);
  --text-muted: rgba(247, 249, 249, 0.45);
  
  --success: #4CAF50;
  --success-glow: rgba(76, 175, 80, 0.4);
  --warning: #FF9800;
  --warning-glow: rgba(255, 152, 0, 0.4);
  --danger: #E53935;
  --danger-glow: rgba(229, 57, 53, 0.4);
  
  /* Glass */
  --glass-bg: rgba(15, 47, 46, 0.45);
  --glass-border: rgba(212, 175, 55, 0.15);
  --glass-highlight: rgba(247, 249, 249, 0.08);
  
  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-hard: 0 25px 70px -15px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 8px 30px -5px rgba(212, 175, 55, 0.3);
  
  /* Fonts */
  --font-ar: 'Tajawal', -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  
  /* Motion */
  --ease-out-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --card-radius: 28px;
  --input-radius: 14px;
  --btn-radius: 18px;
}

/* ─── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ar);
  color: var(--text-primary);
  background: var(--salam-green-darkest);
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="ltr"] {
  font-family: var(--font-body);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════════════════ */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  background: 
    radial-gradient(ellipse at top right, rgba(18, 123, 119, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--salam-green-darkest) 0%, #061514 100%);
}

.bg-orbs {
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--salam-green-mid) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  opacity: 0.15;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--salam-green-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.orb-3 {
  animation-name: float-center;
}

@keyframes float-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 30px), calc(-50% - 20px)) scale(1.05); }
  66% { transform: translate(calc(-50% - 20px), calc(-50% + 30px)) scale(0.95); }
}

.bg-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOP ACTIONS BAR (Lang / Install / Notifications)
   ═══════════════════════════════════════════════════════════════════════ */

.top-actions {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

body[dir="ltr"] .top-actions {
  left: auto;
  right: 16px;
}

.top-btn {
  position: relative;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.top-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 230, 118, 0.35);
}
.top-btn:active {
  transform: scale(0.96);
}

.top-btn svg { flex-shrink: 0; }

.top-btn-label {
  font-size: 12px;
  font-weight: 700;
}

/* Install button: pulsing when offered */
.install-btn {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 200, 83, 0.10));
  border-color: rgba(0, 230, 118, 0.35);
  color: #00E676;
  animation: installPulse 2.5s ease-in-out infinite;
}
.install-btn:hover {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.28), rgba(0, 200, 83, 0.18));
}

@keyframes installPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
}

/* Notification button: red dot when not yet enabled */
.notif-btn {
  width: 44px;
  padding: 0;
}

.notif-dot {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #0A3D36;
  display: none;
}
.notif-btn.needs-permission .notif-dot { display: block; }
.notif-btn.granted {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.35);
  color: #00E676;
}

/* Lang toggle (now inside .top-actions, not fixed standalone) */
.lang-toggle {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

/* ═══════════════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════════════ */

.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ─── Brand Header ─────────────────────────────────────────────────────── */
.brand {
  text-align: center;
  animation: fadeInDown 0.8s var(--ease-out-expo);
}

.brand-logo {
  width: 120px;
  height: 90px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 24px rgba(0, 200, 83, 0.35));
  animation: logoFloat 4s ease-in-out infinite;
}

/* Full Salam logo (leaf + salam wordmark) - wider aspect ratio */
.brand-logo.brand-logo-full {
  width: 220px;
  height: 90px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-family: var(--font-ar);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[dir="ltr"] .brand-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -1px;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

body[dir="ltr"] .brand-subtitle {
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════════════
   GLASS CARD
   ═══════════════════════════════════════════════════════════════════════ */

.glass-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.2s both;
}

/* Inner highlight (top edge light) */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--glass-highlight) 20%, 
    rgba(212, 175, 55, 0.3) 50%, 
    var(--glass-highlight) 80%, 
    transparent 100%
  );
}

/* Gold accent corner */
.glass-card::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

body[dir="ltr"] .glass-card::after {
  right: auto;
  left: -1px;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════════════════════════════════
   STEPS SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */

.step {
  display: none;
  animation: stepIn 0.5s var(--ease-out-expo);
}

.step-active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.step-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--salam-green-darkest);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

body[dir="ltr"] .step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}

/* ─── Back Button ──────────────────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(247, 249, 249, 0.05);
  border: 1px solid rgba(247, 249, 249, 0.1);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: all 0.2s var(--ease-out-soft);
}

.back-btn:hover {
  background: rgba(247, 249, 249, 0.1);
  color: var(--text-primary);
  transform: translateX(3px);
}

body[dir="ltr"] .back-btn:hover {
  transform: translateX(-3px);
}

.back-btn svg {
  transform: scaleX(-1);
}

body[dir="ltr"] .back-btn svg {
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════════════════════════════ */

.input-group {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  color: var(--text-muted);
  display: flex;
}

body[dir="ltr"] .input-icon {
  right: auto;
  left: 16px;
}

.text-input {
  width: 100%;
  padding: 16px 48px 16px 18px;
  background: rgba(15, 47, 46, 0.5);
  border: 1px solid rgba(247, 249, 249, 0.1);
  border-radius: var(--input-radius);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.25s var(--ease-out-soft);
  outline: none;
}

body[dir="ltr"] .text-input {
  padding: 16px 18px 16px 48px;
}

.text-input::placeholder {
  color: var(--text-muted);
}

.text-input:focus {
  background: rgba(15, 47, 46, 0.8);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.text-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════════════════════════
   EMPLOYEE LIST
   ═══════════════════════════════════════════════════════════════════════ */

.employee-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.employee-list::-webkit-scrollbar {
  width: 6px;
}

.employee-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.employee-list::-webkit-scrollbar-track {
  background: transparent;
}

.employee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-soft);
  border: 1px solid transparent;
  background: rgba(247, 249, 249, 0.02);
  margin-bottom: 6px;
  animation: slideIn 0.4s var(--ease-out-expo) both;
}

.employee-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(-4px);
}

body[dir="ltr"] .employee-item:hover {
  transform: translateX(4px);
}

.employee-item:active {
  transform: scale(0.98);
}

.emp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--salam-green-mid), var(--salam-green-deep));
  border: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
  font-family: var(--font-body);
}

.emp-info {
  flex: 1;
  min-width: 0;
}

.emp-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-branch {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.emp-arrow {
  color: var(--text-muted);
  transition: all 0.2s var(--ease-out-soft);
}

.employee-item:hover .emp-arrow {
  color: var(--gold-primary);
  transform: translateX(-2px);
}

body[dir="ltr"] .emp-arrow {
  transform: scaleX(-1);
}

body[dir="ltr"] .employee-item:hover .emp-arrow {
  transform: scaleX(-1) translateX(-2px);
}

/* Loading state */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SELECTED EMPLOYEE CARD (Step 2)
   ═══════════════════════════════════════════════════════════════════════ */

.selected-employee {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(18, 123, 119, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  margin-bottom: 28px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--salam-green-darkest);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
  font-family: var(--font-body);
}

.selected-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.selected-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   PIN INPUT
   ═══════════════════════════════════════════════════════════════════════ */

.pin-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 12px;
  direction: ltr;
}

.pin-box {
  width: 46px;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-body);
  background: rgba(15, 47, 46, 0.5);
  border: 2px solid rgba(247, 249, 249, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease-out-soft);
  caret-color: var(--gold-primary);
}

.pin-box:focus {
  background: rgba(15, 47, 46, 0.9);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.pin-box.filled {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.pin-box.error {
  border-color: var(--danger);
  background: rgba(229, 57, 53, 0.1);
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.pin-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.error-message {
  text-align: center;
  font-size: 14px;
  color: var(--danger);
  font-weight: 600;
  height: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}

.error-message.active {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 3 — DASHBOARD
   ═══════════════════════════════════════════════════════════════════════ */

.welcome-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(247, 249, 249, 0.08);
}

.welcome-time {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.welcome-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.welcome-date {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Shift Info Box ───────────────────────────────────────────────────── */
.shift-info {
  background: linear-gradient(135deg, rgba(18, 123, 119, 0.25), rgba(15, 47, 46, 0.3));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shift-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.shift-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.shift-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-body);
  margin-bottom: 4px;
}

.shift-time {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

/* ─── Action Buttons ───────────────────────────────────────────────────── */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.action-btn {
  position: relative;
  padding: 22px 16px;
  border-radius: var(--btn-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s var(--ease-out-soft);
  overflow: hidden;
  border: 1px solid transparent;
}

.action-btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn-icon svg {
  width: 100%;
  height: 100%;
}

.action-btn-text {
  font-size: 14px;
}

.action-btn-time {
  font-size: 11px;
  opacity: 0.8;
  font-family: var(--font-body);
  font-weight: 500;
}

.action-btn-time:empty {
  display: none;
}

/* Check In */
.action-btn-in {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-color: rgba(76, 175, 80, 0.3);
  color: var(--success);
}

.action-btn-in:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1));
  border-color: var(--success);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px var(--success-glow);
}

.action-btn-in.checked {
  background: linear-gradient(135deg, var(--success), #388E3C);
  color: white;
  border-color: var(--success);
  box-shadow: 0 10px 25px -5px var(--success-glow);
}

/* Check Out */
.action-btn-out {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.03));
  border-color: rgba(229, 57, 53, 0.2);
  color: var(--danger);
}

.action-btn-out:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.2), rgba(229, 57, 53, 0.08));
  border-color: var(--danger);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px var(--danger-glow);
}

.action-btn-out.checked {
  background: linear-gradient(135deg, var(--danger), #C62828);
  color: white;
  border-color: var(--danger);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* ─── Status Box ───────────────────────────────────────────────────────── */
.status-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 47, 46, 0.5);
  border: 1px solid rgba(247, 249, 249, 0.08);
  border-radius: 14px;
  margin-bottom: 20px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 0 rgba(247, 249, 249, 0.3);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-box.success .status-indicator {
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success-glow);
}

.status-box.late .status-indicator {
  background: var(--warning);
  box-shadow: 0 0 0 0 var(--warning-glow);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.status-content {
  flex: 1;
}

.status-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-family: var(--font-body);
}

.status-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

/* ─── Logout ───────────────────────────────────────────────────────────── */
.logout-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease-out-soft);
}

.logout-btn:hover {
  background: rgba(229, 57, 53, 0.08);
  color: var(--danger);
}

body[dir="ltr"] .logout-btn svg {
  transform: none;
}

body[dir="rtl"] .logout-btn svg {
  transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.app-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  animation: fadeIn 1s var(--ease-out-expo) 1s both;
}

.app-footer strong {
  color: var(--gold-light);
  font-weight: 700;
}

.footer-dot {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(15, 47, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: var(--shadow-hard);
  z-index: 1000;
  transition: transform 0.4s var(--ease-spring);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: linear-gradient(135deg, var(--success), #388E3C);
  color: white;
}

.toast.error .toast-icon {
  background: linear-gradient(135deg, var(--danger), #C62828);
  color: white;
}

.toast.warning .toast-icon {
  background: linear-gradient(135deg, var(--warning), #F57C00);
  color: white;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

body[dir="ltr"] .employee-item {
  animation-name: slideInLtr;
}

@keyframes slideInLtr {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 420px) {
  .app-container {
    padding: 40px 16px 20px;
  }
  
  .glass-card {
    padding: 28px 22px;
  }
  
  .brand-title {
    font-size: 28px;
  }
  
  .welcome-time {
    font-size: 42px;
  }
  
  .pin-box {
    width: 42px;
    height: 52px;
    font-size: 20px;
  }
  
  .pin-container {
    gap: 6px;
  }
  
  .action-btn {
    padding: 18px 12px;
  }
}

@media (max-height: 700px) {
  .app-container {
    padding-top: 30px;
  }
  
  .brand {
    margin-bottom: 0;
  }
  
  .brand-logo {
    width: 64px;
    height: 64px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   REDUCED MOTION (Accessibility)
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  .orb {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* Employee Branch Poster (small banner)                                */
/* ═══════════════════════════════════════════════════════════════════ */
.emp-branch-poster {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;        /* Cinema-style — much bigger than 100px */
  max-height: 220px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5);
  border: 1px solid rgba(252, 211, 77, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emp-branch-poster:hover,
.emp-branch-poster:active {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(0,0,0,0.6);
  border-color: rgba(252, 211, 77, 0.45);
}

.emp-branch-poster-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) saturate(1.1);
  transition: filter 0.3s ease;
}

.emp-branch-poster:hover .emp-branch-poster-bg {
  filter: brightness(0.75) saturate(1.2);
}

.emp-branch-poster-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(10, 22, 40, 0.15) 0%, 
    rgba(10, 22, 40, 0.45) 60%,
    rgba(10, 22, 40, 0.85) 100%);
}

.emp-branch-poster-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px 20px;
}

.emp-branch-label {
  font-size: 11px;
  color: rgba(252, 211, 77, 0.9);
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.emp-branch-name {
  font-size: 28px;
  font-weight: 800;
  color: #FCD34D;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 24px rgba(252, 211, 77, 0.35);
  line-height: 1.1;
}

/* Expand hint — small icon in top corner */
.emp-branch-poster::before {
  content: '⤢';
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FCD34D;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
}

/* ─── Fullscreen lightbox for branch image ────────────────────────── */
.emp-branch-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  animation: fadeInLightbox 0.2s ease;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.emp-branch-fullscreen img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.emp-branch-fullscreen-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.emp-branch-fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.emp-branch-fullscreen-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 30px;
  color: #FCD34D;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(252, 211, 77, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════ */
/* Weekly Schedule Preview                                              */
/* ═══════════════════════════════════════════════════════════════════ */
.emp-week-schedule {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.emp-week-title {
  font-size: 14px;
  font-weight: 700;
  color: #FCD34D;
  margin-bottom: 12px;
  text-align: center;
}

.emp-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.emp-week-day {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  border: 0.5px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.emp-week-day.is-today {
  border-color: rgba(252, 211, 77, 0.5);
  background: rgba(252, 211, 77, 0.08);
  box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.15);
}

.emp-week-day-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-bottom: 4px;
}

.emp-week-day-num {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.emp-week-shift {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 0;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.5px;
}

.emp-week-shift.shift-am {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}
.emp-week-shift.shift-pm {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}
.emp-week-shift.shift-off {
  background: rgba(107, 114, 128, 0.25);
  color: rgba(255, 255, 255, 0.7);
}
.emp-week-shift.shift-vac {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}
.emp-week-shift.shift-empty {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   v1.1 ADDITIONS: Quick Actions + Modals (Monthly / Upload / Stats)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Quick Actions Row ─────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 14px;
}

.quick-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.quick-action-btn:hover,
.quick-action-btn:active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 230, 118, 0.35);
  transform: translateY(-1px);
}

.qa-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 200, 83, 0.08));
  color: #00E676;
}

.qa-icon svg { width: 20px; height: 20px; }

.qa-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

.qa-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ─── Modal Overlay ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 14, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 0;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: linear-gradient(180deg, rgba(15, 47, 46, 0.96), rgba(8, 28, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
}

.modal-overlay.show .modal-card {
  transform: translateY(0);
}

.modal-card-sm { max-width: 460px; }

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 24px;
  }
  .modal-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.18s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal-header {
  padding: 22px 22px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}

.modal-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.modal-body {
  padding: 18px 18px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-btn-primary {
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #042418;
  box-shadow: 0 6px 18px rgba(0, 230, 118, 0.25);
}
.modal-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 230, 118, 0.35);
}
.modal-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── Monthly Schedule ──────────────────────────────────────────────── */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.month-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.month-nav-btn:hover { background: rgba(0, 230, 118, 0.18); border-color: rgba(0, 230, 118, 0.4); }
.month-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.month-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  min-width: 140px;
  text-align: center;
  letter-spacing: 0.2px;
}

.month-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ms-pill {
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ms-pill .ms-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}
.ms-pill .ms-lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
  opacity: 0.85;
}

.ms-am  { background: rgba(16, 185, 129, 0.14); color: #34D399; }
.ms-pm  { background: rgba(59, 130, 246, 0.14); color: #60A5FA; }
.ms-off { background: rgba(107, 114, 128, 0.18); color: rgba(255,255,255,0.78); }
.ms-vac { background: rgba(245, 158, 11, 0.14); color: #FBBF24; }

.month-grid-wrapper {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
}

.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.month-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  position: relative;
  min-height: 200px;
}

.month-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.15s ease;
  position: relative;
  overflow: hidden;
  padding: 2px;
  /* Force LTR inside cells so AM/PM and numbers stay left-to-right even in Arabic */
  direction: ltr;
  unicode-bidi: isolate;
}

.month-cell.is-empty {
  background: transparent;
  border-color: transparent;
}

.month-cell .mc-num {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  font-family: 'Manrope', sans-serif;
}

.month-cell .mc-shift {
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.2px;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
}

.month-cell.has-am  { background: rgba(16, 185, 129, 0.20); color: #34D399; border-color: rgba(16, 185, 129, 0.3); }
.month-cell.has-pm  { background: rgba(59, 130, 246, 0.20); color: #60A5FA; border-color: rgba(59, 130, 246, 0.3); }
.month-cell.has-off { background: rgba(107, 114, 128, 0.18); color: rgba(255,255,255,0.6); }
.month-cell.has-vac { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border-color: rgba(245, 158, 11, 0.3); }

.month-cell.is-today {
  outline: 2px solid #00E676;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.18);
}

/* ─── Upload Modal ──────────────────────────────────────────────────── */
.upload-zone {
  display: block;
  width: 100%;
  min-height: 200px;
  border: 2px dashed rgba(0, 230, 118, 0.35);
  border-radius: 18px;
  background: rgba(0, 230, 118, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.upload-zone:hover {
  border-color: rgba(0, 230, 118, 0.6);
  background: rgba(0, 230, 118, 0.07);
}
.upload-zone.has-preview {
  border-style: solid;
  border-color: rgba(0, 230, 118, 0.5);
  padding: 0;
}

.upload-zone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 200, 83, 0.1));
  color: #00E676;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.upload-icon svg { width: 28px; height: 28px; }

.upload-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.upload-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.upload-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  background: #000;
}

.existing-photo {
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.18);
}
.existing-photo-label {
  font-size: 12px;
  font-weight: 700;
  color: #00E676;
  margin-bottom: 8px;
}
.existing-photo img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}
.existing-photo-meta {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ─── Stats Modal ───────────────────────────────────────────────────── */
.stats-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.stats-ring {
  position: relative;
  width: 150px;
  height: 150px;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 9;
}

.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-pct {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.ring-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 18px; height: 18px; }

.stat-icon-green  { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.stat-icon-amber  { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.stat-icon-blue   { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.stat-icon-violet { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.stats-extra {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 4px 14px;
}

.stats-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-extra-row:last-child { border-bottom: none; }

.se-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.se-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

/* Lock body scroll when modal open (works on iOS) */
body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Modal body itself should scroll smoothly on iOS */
.modal-body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ═══════════════════════════════════════════════════════════════════════
   v1.2 ADDITIONS: iOS Install Steps
   ═══════════════════════════════════════════════════════════════════════ */

.ios-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.ios-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #042418;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-step-content {
  flex: 1;
  min-width: 0;
}

.ios-step-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ios-step-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.ios-step-icon {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════
   v1.3 ADDITIONS: Improved iOS install modal
   ═══════════════════════════════════════════════════════════════════════ */

.ios-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 200, 83, 0.08));
  border: 1px solid rgba(0, 230, 118, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-step-icon-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-step-icon-row .ios-step-icon {
  margin-top: 0;
  width: 40px;
  height: 40px;
}

.ios-step-icon-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.ios-step-quote {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 10px;
  font-weight: 700;
  color: #93C5FD;
  font-size: 13px;
  text-align: center;
}

.ios-tip {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #FBBF24;
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.1 — Re-upload banner (when supervisor flagged the photo)
   ═══════════════════════════════════════════════════════════════════════ */

.reupload-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
}

.reupload-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.reupload-text {
  flex: 1;
  min-width: 0;
}

.reupload-title {
  font-size: 14px;
  font-weight: 800;
  color: #FBBF24;
  margin-bottom: 4px;
}

.reupload-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.reupload-note strong {
  color: #FCD34D;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.1.2 — Work Summary Box (replaces the old simple status box)
   ═══════════════════════════════════════════════════════════════════════ */

.work-summary {
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

/* Status colored states */
.work-summary.ws-success {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.10), rgba(0, 230, 118, 0.04));
  border-color: rgba(0, 230, 118, 0.3);
}

.work-summary.ws-late {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.04));
  border-color: rgba(245, 158, 11, 0.3);
}

.work-summary.ws-completed {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0.04));
  border-color: rgba(99, 102, 241, 0.3);
}

.work-summary.ws-off {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.03));
  border-color: rgba(148, 163, 184, 0.25);
}

.work-summary.ws-vac {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
  border-color: rgba(245, 158, 11, 0.25);
}

/* Status row (top of card) */
.ws-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.ws-success .ws-status-dot {
  background: #00E676;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
  animation: pulseDot 2s ease-in-out infinite;
}

.ws-late .ws-status-dot {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.ws-completed .ws-status-dot {
  background: #818CF8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.ws-off .ws-status-dot {
  background: rgba(148, 163, 184, 0.7);
}

.ws-vac .ws-status-dot {
  background: #FBBF24;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

.ws-status-text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.ws-success .ws-status-text   { color: #6EE7B7; }
.ws-late .ws-status-text      { color: #FCD34D; }
.ws-completed .ws-status-text { color: #A5B4FC; }
.ws-off .ws-status-text       { color: rgba(255, 255, 255, 0.7); }
.ws-vac .ws-status-text       { color: #FBBF24; }

/* Details grid (3 cells: in / out / hours) */
.ws-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-cell {
  text-align: center;
  padding: 4px 2px;
}

.ws-cell-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.ws-cell-value {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.ws-cell-hours .ws-cell-value {
  color: #00E676;
  font-size: 16px;
}

.ws-late .ws-cell-hours .ws-cell-value {
  color: #FCD34D;
}

.ws-completed .ws-cell-hours .ws-cell-value {
  color: #A5B4FC;
}

/* Soften the time value when no check-out yet */
.ws-cell-value.ws-pending {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.2 — Shift Swap UI
   ═══════════════════════════════════════════════════════════════════════ */

/* Tabs inside swap modal */
.swap-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}

.swap-tab {
  position: relative;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.swap-tab.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 230, 118, 0.06));
  color: #6EE7B7;
  box-shadow: 0 2px 6px rgba(0, 230, 118, 0.15);
}

.swap-tab-badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swap-tab-content {
  display: none;
}

.swap-tab-content.active {
  display: block;
}

/* Form sections */
.swap-section {
  margin-bottom: 16px;
}

.swap-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.swap-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  font-family: 'Manrope', sans-serif;
}

.swap-hint.has-shift {
  color: #6EE7B7;
  font-weight: 600;
}

.swap-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.swap-select:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.swap-select option {
  background: #0F2F2E;
  color: #fff;
}

.swap-textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 50px;
}

.swap-textarea:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.4);
}

/* Type cards (shift_swap vs day_swap) */
.swap-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.swap-type-card {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swap-type-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.swap-type-card.active {
  border-color: rgba(0, 230, 118, 0.55);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0.05));
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.18);
}

.stc-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.stc-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.swap-type-card.active .stc-title { color: #6EE7B7; }

.stc-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

/* Submit button */
.swap-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #042418;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swap-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.4);
}

.swap-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Request lists */
.swap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swap-empty {
  text-align: center;
  padding: 30px 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
}

.swap-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.swap-card.swap-card-pending-peer {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}

.swap-card.swap-card-pending-admin {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(96, 165, 250, 0.02));
}

.swap-card.swap-card-approved {
  border-color: rgba(0, 230, 118, 0.35);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.08), rgba(0, 230, 118, 0.02));
}

.swap-card.swap-card-rejected {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
  opacity: 0.7;
}

.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sc-from {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.sc-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.sc-status-pending-peer  { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.sc-status-pending-admin { background: rgba(96, 165, 250, 0.2); color: #60A5FA; }
.sc-status-approved      { background: rgba(0, 230, 118, 0.2); color: #6EE7B7; }
.sc-status-rejected      { background: rgba(239, 68, 68, 0.2); color: #F87171; }
.sc-status-cancelled     { background: rgba(148, 163, 184, 0.2); color: rgba(226, 232, 240, 0.7); }

.sc-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  margin-bottom: 10px;
  font-family: 'Manrope', sans-serif;
}

.sc-swap-side {
  flex: 1;
  text-align: center;
}

.sc-swap-shift {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sc-swap-shift.s-am  { background: #10B981; color: #022C22; }
.sc-swap-shift.s-pm  { background: #3B82F6; color: #fff; }
.sc-swap-shift.s-off { background: rgba(148,163,184,0.4); color: rgba(255,255,255,0.85); }
.sc-swap-shift.s-vac { background: #F59E0B; color: #451A03; }

.sc-swap-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.sc-swap-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
}

.sc-reason {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.5;
}

.sc-actions {
  display: flex;
  gap: 8px;
}

.sc-btn {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sc-btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.sc-btn-reject:hover { background: rgba(239, 68, 68, 0.2); }

.sc-btn-approve {
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #042418;
}
.sc-btn-approve:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3); }

.sc-btn-cancel {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.85);
  border-color: rgba(148, 163, 184, 0.25);
}
.sc-btn-cancel:hover { background: rgba(148, 163, 184, 0.2); }


/* ═══════════════════════════════════════════════════════════════════════
   v2.4 — Calendar-based Shift Swap UI
   ═══════════════════════════════════════════════════════════════════════ */

/* Step number badge in section labels */
.swap-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #042418;
  font-size: 12px;
  font-weight: 800;
  margin-inline-end: 8px;
  font-family: 'Manrope', sans-serif;
}

/* Two calendars side by side */
.swap-calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .swap-calendars {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.swap-cal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 10px;
}

.swap-cal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  gap: 2px;
}

.swap-cal-title {
  font-size: 12px;
  font-weight: 800;
  color: #FCD34D;
  letter-spacing: 0.3px;
}

.swap-cal-month {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.swap-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  padding: 0 2px;
}

.swap-cal-weekdays span {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.5px;
}

.swap-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Day cell */
.swap-day {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  border: 1.5px solid transparent;
  padding: 2px;
  min-height: 38px;
}

.swap-day-empty {
  cursor: default;
  background: transparent;
}

.swap-day-num {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.swap-day-shift {
  font-size: 8px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Shift colors */
.swap-day-am {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
}
.swap-day-am .swap-day-shift { color: #34D399; }

.swap-day-pm {
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
}
.swap-day-pm .swap-day-shift { color: #60A5FA; }

.swap-day-off {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.7);
}
.swap-day-off .swap-day-shift { color: rgba(226, 232, 240, 0.6); }

.swap-day-vac {
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
}
.swap-day-vac .swap-day-shift { color: #FBBF24; }

.swap-day-none {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.2);
}

/* Past days — disabled */
.swap-day-past {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Hover */
.swap-day:not(.swap-day-empty):not(.swap-day-past):hover {
  transform: scale(1.05);
  border-color: rgba(252, 211, 77, 0.4);
}

/* Selected day — glowing gold border */
.swap-day-selected {
  border-color: #FCD34D;
  box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.25), 0 0 12px rgba(252, 211, 77, 0.4);
  transform: scale(1.05);
  z-index: 2;
}

/* Today indicator */
.swap-day-today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background: #FCD34D;
  border-radius: 50%;
}

/* Legend */
.swap-cal-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}

.swap-cal-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.swap-cal-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.swap-cal-legend i.lg-am  { background: #10B981; }
.swap-cal-legend i.lg-pm  { background: #3B82F6; }
.swap-cal-legend i.lg-off { background: rgba(148, 163, 184, 0.5); }
.swap-cal-legend i.lg-vac { background: #F59E0B; }

/* Summary card — visual swap representation */
.swap-summary-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(0, 230, 118, 0.02));
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.swap-sum-side {
  text-align: center;
}

.swap-sum-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.swap-sum-shift {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.swap-sum-shift.s-am  { background: #10B981; color: #022C22; }
.swap-sum-shift.s-pm  { background: #3B82F6; color: #fff; }
.swap-sum-shift.s-off { background: rgba(148, 163, 184, 0.4); color: #fff; }
.swap-sum-shift.s-vac { background: #F59E0B; color: #451A03; }

.swap-sum-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
}

.swap-sum-arrow {
  font-size: 24px;
  color: #FCD34D;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.5 — Employee notification toggle button
   ═══════════════════════════════════════════════════════════════════════ */
.emp-notif-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  transition: all 0.2s ease;
}

.emp-notif-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 230, 118, 0.3);
}

.emp-notif-btn.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12), rgba(0, 230, 118, 0.04));
  border-color: rgba(0, 230, 118, 0.35);
}

.emp-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.emp-notif-btn.active .emp-notif-icon {
  background: rgba(0, 230, 118, 0.15);
  color: #6EE7B7;
}

.emp-notif-icon svg {
  width: 18px;
  height: 18px;
}

.emp-notif-text {
  flex: 1;
  min-width: 0;
}

.emp-notif-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.emp-notif-btn.active .emp-notif-title {
  color: #6EE7B7;
}

.emp-notif-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.emp-notif-status {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

.emp-notif-btn.active .emp-notif-status::before {
  content: '✓';
  color: #6EE7B7;
  opacity: 1;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════
   SHIFT PREFERENCES (طلبات الشهر القادم) — v2.12
   ═══════════════════════════════════════════════════════════════════════ */

.prefs-quota {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.1), rgba(252, 211, 77, 0.05));
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.prefs-quota-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}
.prefs-quota-count {
  color: #FCD34D;
  font-size: 16px;
  font-weight: 800;
}

.prefs-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}
.prefs-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body, inherit);
}
.prefs-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}
.prefs-tab.active {
  color: #FCD34D;
  border-bottom-color: #FCD34D;
}
.prefs-tab-badge {
  background: #EF4444;
  color: #FFF;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  display: inline-flex;
  justify-content: center;
}

.prefs-tab-content { display: none; }
.prefs-tab-content.active { display: block; }

/* Calendar */
.prefs-calendar-wrap {
  background: rgba(0, 0, 0, 0.25);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.prefs-calendar-header {
  text-align: center;
  margin-bottom: 12px;
}
.prefs-calendar-header h4 {
  margin: 0;
  color: #FCD34D;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.prefs-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.prefs-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.prefs-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.prefs-day {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #FFF;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  transition: all 0.15s;
  font-family: var(--font-body, inherit);
}
.prefs-day:hover:not(.prefs-day-empty) {
  background: rgba(252, 211, 77, 0.15);
  border-color: rgba(252, 211, 77, 0.5);
  transform: scale(1.05);
}
.prefs-day-empty {
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}
.prefs-day-num {
  font-size: 13px;
}
.prefs-day-weekend .prefs-day-num {
  color: #FCD34D;
}
.prefs-day-selected {
  background: rgba(252, 211, 77, 0.25) !important;
  border: 2px solid #FCD34D !important;
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.4);
}
.prefs-day-range {
  background: rgba(252, 211, 77, 0.14) !important;
  border-color: rgba(252, 211, 77, 0.4) !important;
}
.prefs-range-hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}
.prefs-day-badge {
  position: absolute;
  bottom: 2px;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.prefs-day-shift-am .prefs-day-badge { background: #10B981; color: #022C22; }
.prefs-day-shift-pm .prefs-day-badge { background: #3B82F6; color: #FFF; }
.prefs-day-shift-off .prefs-day-badge { background: #64748B; color: #FFF; }

/* Pending = pulsing border */
.prefs-day-pending {
  border: 1px dashed rgba(252, 211, 77, 0.5);
}
.prefs-day-approved {
  border: 1.5px solid #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}
.prefs-day-rejected {
  opacity: 0.4;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.prefs-day-applied {
  border: 1.5px solid #FCD34D;
  background: rgba(252, 211, 77, 0.1) !important;
}

/* Selected day picker */
.prefs-selected {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 14px;
  padding: 14px;
  animation: prefsSlideIn 0.25s ease-out;
}
@keyframes prefsSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prefs-selected-day {
  text-align: center;
  color: #FCD34D;
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.prefs-shift-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.prefs-shift-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #FFF;
  font-family: var(--font-body, inherit);
}
.prefs-shift-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.prefs-shift-btn.selected {
  border-color: #FCD34D;
  background: rgba(252, 211, 77, 0.15);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.3);
}
.prefs-shift-emoji {
  font-size: 24px;
}
.prefs-shift-label {
  font-size: 13px;
  font-weight: 800;
}
.prefs-shift-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.prefs-reason {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #FFF;
  padding: 10px 12px;
  font-size: 13px;
  resize: none;
  margin-bottom: 12px;
  font-family: var(--font-body, inherit);
  direction: rtl;
  text-align: right;
}
.prefs-reason:focus {
  outline: none;
  border-color: rgba(252, 211, 77, 0.5);
}

.prefs-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  border-radius: 12px;
  color: #022C22;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body, inherit);
}
.prefs-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.prefs-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* My Requests list */
.prefs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prefs-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 32px 12px;
  font-size: 13px;
}
.prefs-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.prefs-item-pending  { border-left: 3px solid #FCD34D; }
.prefs-item-approved { border-left: 3px solid #10B981; }
.prefs-item-rejected { border-left: 3px solid #EF4444; opacity: 0.7; }
.prefs-item-cancelled { border-left: 3px solid #94A3B8; opacity: 0.6; }
.prefs-item-applied  { border-left: 3px solid #3B82F6; }
.prefs-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.prefs-item-day {
  font-weight: 700;
  color: #FFF;
  font-size: 13px;
}
.prefs-item-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.prefs-status-pending  { background: rgba(252, 211, 77, 0.2); color: #FCD34D; }
.prefs-status-approved { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; }
.prefs-status-rejected { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; }
.prefs-status-cancelled { background: rgba(148, 163, 184, 0.2); color: #CBD5E1; }
.prefs-status-applied  { background: rgba(59, 130, 246, 0.2); color: #93C5FD; }
.prefs-item-shift {
  font-size: 14px;
  color: #FCD34D;
  font-weight: 700;
  margin-bottom: 4px;
}
.prefs-item-reason, .prefs-item-response {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.prefs-cancel-btn {
  margin-top: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #FCA5A5;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.prefs-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   ✅ v2.13 — EMPLOYEE NOTIFICATION HISTORY
   ═══════════════════════════════════════════════════════════════════════ */

.notif-history-btn {
  position: relative;
}

.notif-history-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: white;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 0 0 2px var(--bg);
}

.notif-history-employee-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}

.emp-notif-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: 10px;
  border-right: 3px solid #94A3B8;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  border-left: 0.5px solid rgba(255, 255, 255, 0.05);
}

.emp-notif-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.emp-notif-item-title {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex: 1;
}

.emp-notif-item-time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
  margin-top: 2px;
}

.emp-notif-item-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════
   ✅ v2.14 — iOS SAFE AREA + NOTCH HANDLING  (standalone "app" feel)
   ───────────────────────────────────────────────────────────────────────
   • مضاف في آخر الملف عمداً ليتجاوز القواعد السابقة بنفس الأولوية.
   • env(safe-area-inset-*) = 0 على الأجهزة بدون نوتش وعلى الكمبيوتر،
     فما يتغير شيء هناك — التأثير فقط على آيفونات النوتش.
   • يعمل مع status-bar-style = black-translucent + viewport-fit=cover.
   ═══════════════════════════════════════════════════════════════════════ */

/* الأزرار العلوية تنزل تحت الساعة/النوتش */
.top-actions {
  top: calc(16px + env(safe-area-inset-top));
  left: calc(16px + env(safe-area-inset-left));
}
body[dir="ltr"] .top-actions {
  left: auto;
  right: calc(16px + env(safe-area-inset-right));
}

/* الحاوية الرئيسية تحترم النوتش (أعلى) وشريط الهوم (أسفل) */
.app-container {
  padding-top: calc(60px + env(safe-area-inset-top));
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  padding-left: calc(20px + env(safe-area-inset-left));
  padding-right: calc(20px + env(safe-area-inset-right));
}

@media (max-width: 420px) {
  .app-container {
    padding-top: calc(40px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
}

@media (max-height: 700px) {
  .app-container {
    padding-top: calc(30px + env(safe-area-inset-top));
  }
}

/* التوست يبتعد عن شريط الهوم السفلي */
.toast {
  bottom: calc(30px + env(safe-area-inset-bottom));
}

/* المودالات السفلية (bottom sheet) تترك مساحة فوق شريط الهوم */
.modal-card {
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) {
  .modal-card { padding-bottom: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   طلب الإجازة السنوية — حقول التاريخ ومعاينة الأيام
   ═══════════════════════════════════════════════════════════════════ */
.leave-field {
  margin-bottom: 14px;
}
.leave-label {
  display: block;
  font-size: 13px;
  color: rgba(247, 249, 249, 0.7);
  margin-bottom: 6px;
}
.leave-date-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #F7F9F9;
  font-size: 15px;
  font-family: inherit;
}
.leave-date-input:focus {
  outline: none;
  border-color: rgba(0, 230, 118, 0.4);
}
.leave-days-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #6FDFA0;
}
.leave-days-preview strong {
  font-size: 18px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   مبيعاتي اليومية
   ═══════════════════════════════════════════════════════════════════ */
.sales-target-box { margin-bottom: 16px; }
.sales-target-row { display: flex; gap: 8px; }
.sales-target-row .leave-date-input { flex: 1; }
.sales-target-save {
  padding: 0 20px;
  background: rgba(0,230,118,0.15);
  border: 1px solid rgba(0,230,118,0.35);
  border-radius: 12px;
  color: #6FDFA0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.sales-target-save:hover { background: rgba(0,230,118,0.25); }

.sales-progress {
  text-align: center;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.sales-progress-pct { font-size: 40px; font-weight: 700; color: #6FDFA0; line-height: 1.1; }
.sales-progress-sub { font-size: 13px; color: rgba(247,249,249,0.6); margin-top: 4px; }

.sales-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 8px;
}
.sales-row-date { font-size: 13px; color: rgba(247,249,249,0.7); }
.sales-row-count { flex: 1; font-size: 15px; font-weight: 700; color: #F7F9F9; }
.sales-row-edit {
  padding: 5px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(247,249,249,0.7);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.sales-row-edit:hover { background: rgba(255,255,255,0.06); }

/* ── إضافة المبيعات: خانتان (شرائح / فايبر) ── */
.sales-add-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.sales-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sales-field-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(247,249,249,0.7);
}
.sales-add-btn { width: 100%; padding: 12px 0; text-align: center; }

.sales-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sales-date-row .sales-field-label { white-space: nowrap; }
.sales-date-row .leave-date-input { flex: 1; }

/* ── تفصيل الإجمالي تحت النسبة ── */
.sales-progress-split {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.sales-split-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.sales-split-chip.sim { background: rgba(0,230,118,0.15); color: #6FDFA0; border: 1px solid rgba(0,230,118,0.3); }
.sales-split-chip.fiber { background: rgba(90,184,240,0.15); color: #7EC8F5; border: 1px solid rgba(90,184,240,0.3); }

/* ── تفصيل داخل كل سطر ── */
.sales-row-counts { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.sales-chip {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}
.sales-chip.sim { background: rgba(0,230,118,0.12); color: #6FDFA0; }
.sales-chip.fiber { background: rgba(90,184,240,0.12); color: #7EC8F5; }

/* ── التعديل الداخلي للسطر ── */
.sales-row.editing { flex-wrap: wrap; gap: 8px; }
.sales-edit-fields { display: flex; gap: 8px; flex: 1; min-width: 0; }
.sales-edit-mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247,249,249,0.6);
}
.sales-edit-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #F7F9F9;
  font-size: 15px;
  font-family: inherit;
}
.sales-edit-actions { display: flex; gap: 6px; }
.sales-row-save {
  padding: 6px 16px;
  background: rgba(0,230,118,0.15);
  border: 1px solid rgba(0,230,118,0.35);
  border-radius: 8px;
  color: #6FDFA0;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.sales-row-save:hover { background: rgba(0,230,118,0.25); }
.sales-row-cancel {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(247,249,249,0.6);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.sales-row-cancel:hover { background: rgba(255,255,255,0.06); }

.sales-row-del {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: rgba(239,68,68,0.85);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.sales-row-del:hover { background: rgba(239,68,68,0.12); color: #F87171; }
