:root {
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-header: #0f172a;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* ==================== LOGIN / SIGN UP SCREEN ==================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 410px;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.modern-auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 410px;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-auth-card .form-control {
  transition: all 0.2s ease;
  font-family: inherit;
}

.modern-auth-card .form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.18) !important;
  outline: none;
}

.modern-auth-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

.modern-auth-card button[type="submit"]:active {
  transform: translateY(0);
}

.auth-header {
  padding: 1.75rem 1.75rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.auth-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 0.3rem;
  margin: 1.25rem 1.75rem 0;
  border-radius: 10px;
}

.auth-tab-btn {
  padding: 0.55rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.auth-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #fecaca;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

/* ==================== ROLE SWITCHER IN AUTH CARD ==================== */
.auth-role-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1.15rem 1.75rem 0.25rem;
}

.auth-role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-muted);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-role-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.auth-role-btn.active[data-role="admin"] {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.auth-role-btn.active[data-role="user"] {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.auth-quick-fill {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.auth-quick-btn {
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.auth-quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.auth-sso-callout {
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 100%);
  border: 1px dashed #c4b5fd;
  border-radius: 12px;
  text-align: left;
}

.auth-sso-callout-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
}

.auth-sso-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #7c3aed;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.auth-sso-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.auth-sso-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.52rem 0.8rem;
  background: #ffffff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(109, 40, 217, 0.06);
  transition: all 0.2s ease;
}

.auth-sso-launch-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-admin {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.badge-user {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

/* ==================== ATTENDANCE & WORKING HOURS TRACKER ==================== */
.topbar-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: #f1f5f9;
  font-weight: 600;
}

.topbar-session-pill .session-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

.pulse-dot.away {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-yellow 1.8s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-yellow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.attendance-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.attendance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.attendance-user-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.attendance-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.attendance-user-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.attendance-user-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.attendance-role-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.attendance-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.attendance-status-pill.away {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.attendance-user-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.attendance-login-info {
  text-align: right;
  background: #f8fafc;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.att-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

.att-info-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}

.att-info-date {
  font-size: 0.74rem;
  color: #94a3b8;
}

.attendance-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.att-metric-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.att-metric-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.att-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.att-metric-title {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.att-metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.att-metric-value.text-blue {
  color: #2563eb;
}

.att-metric-value.text-orange {
  color: #d97706;
}

.att-metric-value.text-green {
  color: #059669;
}

.att-metric-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.attendance-progress-wrap {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.att-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.att-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.att-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* ==================== TOP NAVBAR ==================== */
.topbar {
  background: var(--bg-header);
  color: #ffffff;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 1.5rem auto;
  padding: 0 1.25rem 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  padding: 0.45rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn-danger-ghost:hover {
  background: var(--danger-bg);
}

/* Eye View Symbol Button */
.btn-view-symbol {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-view-symbol:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-icon-edit {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  transition: all 0.15s;
}
.btn-icon-edit:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #bfdbfe;
}

/* Section Headers */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

.page-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f8fafc;
}

.user-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-main);
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.phone-pill {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

/* Provider Badges */
.provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.provider-jio {
  background: #dbeafe;
  color: #1e40af;
}
.provider-vi {
  background: #fef3c7;
  color: #b45309;
}
.provider-custom {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.status-accepted {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #a7f3d0;
}
.status-rejected {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #fecaca;
}

.repeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid #ddd6fe;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

/* KPI Stats Grid inside Detail View */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.95rem;
  font-weight: 800;
  margin-top: 0.25rem;
  line-height: 1.1;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-total .stat-value { color: var(--primary); }
.stat-total .stat-icon { background: var(--primary-light); color: var(--primary); }

.stat-accepted .stat-value { color: var(--success); }
.stat-accepted .stat-icon { background: var(--success-bg); color: var(--success); }

.stat-rejected .stat-value { color: var(--danger); }
.stat-rejected .stat-icon { background: var(--danger-bg); color: var(--danger); }

.stat-repeated .stat-value { color: var(--purple); }
.stat-repeated .stat-icon { background: var(--purple-bg); color: var(--purple); }

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.tab-group {
  display: inline-flex;
  background: #e2e8f0;
  padding: 0.25rem;
  border-radius: 8px;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.search-input {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  min-width: 240px;
  outline: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.modal-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.35rem;
}

.modal-footer {
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.38rem;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.28rem;
}

.dropzone {
  border: 2px dashed #93c5fd;
  background: #eff6ff;
  border-radius: 10px;
  padding: 1.35rem;
  text-align: center;
  cursor: pointer;
}
.dropzone:hover {
  border-color: var(--primary);
  background: #dbeafe;
}

.hidden {
  display: none !important;
}

.call-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.call-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.empty-state {
  text-align: center;
  padding: 2.75rem 1.5rem;
  color: var(--text-muted);
}

/* ==================== YEAR & MONTH HORIZONTAL SELECTOR (IMAGE PATTERN) ==================== */
.ym-selector-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 0.95rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.ym-nav-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ym-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ym-nav-arrow:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.ym-nav-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 38px;
  padding: 0 1.35rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.28);
  letter-spacing: 0.5px;
  user-select: none;
}

.ym-nav-year:hover {
  background: var(--primary-hover);
}

.ym-months-container {
  position: relative;
  width: 100%;
}

.ym-months-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 0.75rem;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom styled horizontal scrollbar matching user screenshot */
.ym-months-bar::-webkit-scrollbar {
  height: 8px;
}

.ym-months-bar::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 6px;
}

.ym-months-bar::-webkit-scrollbar-thumb {
  background: #78716c;
  border-radius: 6px;
}

.ym-months-bar::-webkit-scrollbar-thumb:hover {
  background: #57534e;
}

.ym-month-pill {
  display: inline-block;
  padding: 0.52rem 1.2rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ym-month-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.ym-month-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ym-subtitle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-color);
}

.ym-report-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.ym-days-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ym-days-filter-wrap label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.ym-days-input {
  width: 150px;
  padding: 0.38rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
}
.ym-days-input:focus {
  border-color: var(--primary);
}

/* ==================== ATTRACTIVE DASHBOARD & NAVIGATION TABS ==================== */
.dash-tabs-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.dash-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.35rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  user-select: none;
}

.dash-tab-btn:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.dash-tab-btn.active {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-color: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.dash-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dash-tab-btn.active .dash-tab-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.dash-tab-texts {
  text-align: left;
}

.dash-tab-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.25;
}

.dash-tab-btn.active .dash-tab-title {
  color: #ffffff;
}

.dash-tab-desc {
  font-size: 0.76rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.dash-tab-btn.active .dash-tab-desc {
  color: #dbeafe;
}

/* Dashboard Quick Stats Header */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.dash-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.dash-kpi-card:hover {
  transform: translateY(-2px);
}

.dash-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.dash-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.dash-kpi-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ==================== ATTRACTIVE PEOPLE DIRECTORY (IMAGE DESIGN) ==================== */
.people-card-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.people-search-container {
  padding: 1.25rem 1.25rem 0.75rem;
}

.people-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.people-search-input-wrap svg {
  position: absolute;
  left: 1.1rem;
  color: #94a3b8;
  pointer-events: none;
}

.people-search-input {
  width: 100%;
  padding: 0.88rem 1rem 0.88rem 2.85rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.people-search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.people-count-bar {
  padding: 0.4rem 1.35rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.people-list-items {
  max-height: 520px;
  overflow-y: auto;
}

.people-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.people-row:last-child {
  border-bottom: none;
}

.people-row:hover {
  background: #f8fafc;
}

.people-row-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.people-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.people-avatar-circle.sn { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #4338ca; }
.people-avatar-circle.rm { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); color: #be185d; }
.people-avatar-circle.dp { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #15803d; }
.people-avatar-circle.jt { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #b45309; }
.people-avatar-circle.fb { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #6d28d9; }
.people-avatar-circle.vp { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); color: #0e7490; }
.people-avatar-circle.ad { background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%); color: #be123c; }

.people-details-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.people-details-phone {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 2px;
  font-family: inherit;
}

.people-role-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  margin-left: 0.5rem;
}

.people-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.people-call-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.people-call-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Floating Scroll Down Arrow Button matching image */
.people-scroll-down-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 1.15rem;
}

.btn-floating-down {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}

.btn-floating-down:hover {
  background: #f8fafc;
  transform: translateY(2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  color: #2563eb;
}

/* Additional Tab Panels */
.tab-content-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.tab-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

/* ==================== WHATSAPP SEPARATE SUB-TABS (CHAT & CALL SCREENSHOTS) ==================== */
.whatsapp-subtabs-nav {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.wa-subtab-btn {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wa-subtab-btn:hover {
  background: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12);
}

.wa-subtab-btn.active {
  background: #f0fdf4;
  border-color: #16a34a;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.18);
}

.wa-subtab-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.wa-subtab-btn.active .wa-subtab-icon {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.wa-subtab-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.wa-subtab-btn.active .wa-subtab-title {
  color: #15803d;
}

.wa-subtab-sub {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.wa-form-card {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08);
}

.auto-fetch-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-top: 0.35rem;
}

.screenshots-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.screenshot-thumb-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  background: #0f172a;
  aspect-ratio: 9/16;
  max-height: 200px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.screenshot-thumb-wrap:hover {
  transform: scale(1.03);
  border-color: var(--primary);
}

.screenshot-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-record-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Automated Screenshot Analysis & Pill Badges */
.auto-calc-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.85rem;
  animation: fadeIn 0.3s ease;
}

.auto-calc-indicator.call-calc-theme {
  background: #eff6ff;
  border-color: #93c5fd;
}

.auto-calc-icon {
  font-size: 1.35rem;
}

.auto-calc-result-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #15803d;
  margin-top: 2px;
}

.auto-calc-indicator.call-calc-theme .auto-calc-result-text {
  color: #1d4ed8;
}

/* Metric Badges for Uploaded Records */
.stat-pill-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-pill-red {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-pill-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-pill-total {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ==================== USER DAILY SHIFT ATTENDANCE & WORK HOURS TABLE ==================== */
.user-shifts-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
  animation: fadeIn 0.3s ease;
}

.user-shifts-card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-shifts-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-shifts-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.user-shifts-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.user-shifts-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==================== USER SHIFTS SEARCH & FILTER BAR ==================== */
.user-shifts-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  padding: 0.95rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.shifts-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shifts-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.shifts-filter-date-input {
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.shifts-filter-date-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shifts-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-shift-action {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-shift-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-shift-action.btn-shift-search {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.btn-shift-action.btn-shift-search:hover {
  background: #1d4ed8;
}

.btn-shift-action.btn-shift-reset {
  position: static;
  background: #ffffff;
  color: #64748b;
  border-color: #cbd5e1;
}

.btn-shift-action.btn-shift-reset:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.shifts-filter-select {
  padding: 0.45rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.shifts-filter-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shifts-filter-search-group {
  flex: 1;
  min-width: 180px;
}

.shifts-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.shifts-search-box svg {
  position: absolute;
  left: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
}

.shifts-search-input {
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 2.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: all 0.2s;
}

.shifts-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.user-shifts-table-responsive {
  overflow-x: auto;
  width: 100%;
}

.user-shifts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.user-shifts-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.user-shifts-table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #1e293b;
  vertical-align: middle;
  white-space: nowrap;
}

.user-shifts-table tbody tr:hover {
  background: #f8fafc;
}

.user-shifts-table tbody tr.active-shift-row {
  background: #f0fdf4;
}

.user-shifts-table tbody tr.active-shift-row:hover {
  background: #ecfdf5;
}

.shift-date-cell {
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shift-date-badge-today {
  font-size: 0.72rem;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.shift-time-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.shift-pill-logout-active {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.shift-pill-work {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}

.shift-pill-pending {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
  transition: all 0.3s ease;
}

.shift-pill-extra {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  background: #faf5ff;
  color: #7e22ce;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e9d5ff;
  transition: all 0.3s ease;
}

.shift-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.shift-status-tag.tag-progress {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.shift-status-tag.tag-completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.shift-status-tag.tag-overtime {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.btn-danger-soft {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.btn-danger-soft:hover {
  background: #fecaca;
  color: #991b1b;
  transform: translateY(-1px);
}

.text-purple {
  color: #7c3aed !important;
}

.btn-lock-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.4rem;
}

.btn-lock-preview-pill:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.15);
}
