/* ============================================================
   PCD Payroll Portal — Shared Styles
   Color palette: Navy #0a1628 | Teal #00d4ff | White #ffffff
   ============================================================ */

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

:root {
  --navy: #0a1628;
  --navy-mid: #0d1e38;
  --navy-light: #1a2e4a;
  --teal: #00d4ff;
  --teal-dark: #00a8cc;
  --teal-glow: rgba(0, 212, 255, 0.15);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f0f4f8;
  --gray-200: #e2eaf3;
  --gray-300: #c8d6e5;
  --gray-500: #64748b;
  --gray-700: #334155;
  --text: #1e293b;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 0.95rem; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 255, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--teal);
}

.login-logo .logo-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--teal);
}

.login-logo h1 {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-logo p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover:not(:disabled) { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-teal {
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
}
.btn-teal:hover:not(:disabled) { background: var(--teal-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover:not(:disabled) { border-color: var(--navy); background: var(--gray-100); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid #fca5a5;
}
.btn-danger:hover:not(:disabled) { background: #fecaca; }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1.5px solid #86efac;
}
.btn-success:hover:not(:disabled) { background: #bbf7d0; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; width: 100%; justify-content: center; }

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-open { background: #dbeafe; color: #1d4ed8; }
.badge-closed { background: var(--gray-100); color: var(--gray-500); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.875rem;
}

thead th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

tbody td {
  padding: 0.75rem 1rem;
  color: var(--text);
}

.table-empty {
  text-align: center;
  padding: 2.5rem !important;
  color: var(--gray-500);
  font-style: italic;
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.card-header h2, .card-header h3 {
  color: var(--navy);
}

/* ============================================================
   STAT CARDS (dashboard)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.stat-card .stat-sub {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.app-header {
  background: var(--navy);
  color: var(--white);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
}

.app-header .logo .logo-dot {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header .logo .logo-dot svg { width: 18px; height: 18px; fill: var(--navy); }

.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header .user-name {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.app-header .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.app-header .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--teal-dark); border-bottom-color: var(--teal-dark); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   ADMIN LAYOUT (sidebar)
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 220px;
  background: var(--navy-mid);
  flex-shrink: 0;
  padding: 1.25rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.sidebar-item.active {
  color: var(--teal);
  background: rgba(0, 212, 255, 0.08);
  border-left-color: var(--teal);
}

.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-item.active svg { opacity: 1; }

.main-content {
  flex: 1;
  padding: 1.75rem;
  min-width: 0;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 { color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--gray-100); color: var(--text); }

.modal-body { padding: 1.5rem; }

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  animation: slideIn 0.25s ease;
  border-left: 4px solid var(--teal);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

.toast.removing {
  animation: fadeOut 0.3s ease forwards;
}

/* ============================================================
   LOADING
   ============================================================ */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--gray-500);
  gap: 0.75rem;
}

/* ============================================================
   FILTERS ROW
   ============================================================ */
.filters-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.filters-row .form-group {
  margin-bottom: 0;
  min-width: 160px;
}

.filters-row .form-group label { font-size: 0.8125rem; }

/* ============================================================
   PAY AMOUNT DISPLAY
   ============================================================ */
.pay-preview {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-preview .pay-label { font-size: 0.875rem; opacity: 0.75; }
.pay-preview .pay-value { font-size: 1.5rem; font-weight: 700; color: var(--teal); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); font-size: 0.875rem; }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal-dark); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'SF Mono', 'Consolas', monospace; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }

/* ============================================================
   EMPLOYEE DASHBOARD LAYOUT
   ============================================================ */
.employee-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

/* ============================================================
   PAYROLL SUMMARY
   ============================================================ */
.payroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payroll-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.payroll-card h4 { color: var(--gray-500); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.payroll-card .value { font-size: 2rem; font-weight: 700; color: var(--navy); }
.payroll-card .value.money { color: var(--success); }

/* ============================================================
   REPORTS PAGE
   ============================================================ */
.report-employee-section {
  margin-bottom: 1.5rem;
}

.report-employee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.report-employee-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; display: flex; overflow-x: auto; padding: 0.5rem 0; }
  .sidebar-item { padding: 0.625rem 1rem; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .sidebar-item.active { border-left: none; border-bottom-color: var(--teal); }
  .main-content { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filters-row { gap: 0.5rem; }
  .filters-row .form-group { min-width: 130px; }
  .app-header .user-name { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 1.75rem 1.25rem; }
}

/* Study Checklist */
.study-checklist {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  background: var(--surface);
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.study-check-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.study-check-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  padding: 0.25rem 0.4rem 0.15rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.study-check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: background 0.15s;
}
.study-check-item:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text);
}
.study-check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.study-check-item input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}
.study-check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: 2px solid #0a1628;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.study-check-item:has(input:checked) {
  color: var(--text);
  font-weight: 600;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 5px;
}

/* ============================================================
   SCHEDULE GRID
   ============================================================ */
.schedule-grid { display: grid; grid-template-columns: 160px repeat(7, 1fr); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.schedule-grid-header { background: #0a1628; color: #fff; padding: 0.5rem; font-size: 0.8rem; font-weight: 600; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.schedule-grid-emp { padding: 0.5rem 0.75rem; font-size: 0.85rem; font-weight: 500; border-bottom: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); background: var(--gray-50); display: flex; align-items: flex-start; min-height: 60px; }
.schedule-cell { padding: 0.25rem; border-bottom: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); min-height: 60px; background: #fff; }
.shift-pill { display: flex; flex-direction: column; padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.72rem; cursor: pointer; margin-bottom: 2px; position: relative; }
.shift-pill.regular { background: rgba(0,212,255,0.18); border-left: 3px solid var(--teal); color: var(--teal); }
.shift-pill.extra { background: rgba(251,191,36,0.18); border-left: 3px solid #f59e0b; color: #fbbf24; }
.shift-pill:hover { opacity: 0.85; }
.shift-pill .shift-actions { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 0.25rem; z-index: 50; gap: 0.25rem; }
.shift-pill:hover .shift-actions { display: flex; }

/* Employee schedule calendar (employee.html) */
.emp-schedule-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.emp-schedule-header { background: #0a1628; color: #fff; padding: 0.5rem; font-size: 0.8rem; font-weight: 600; text-align: center; }
.emp-schedule-header.today-header { color: var(--teal); border-bottom: 2px solid var(--teal); }
.today-num { color: var(--teal) !important; font-weight: 800 !important; }
.emp-schedule-cell { padding: 0.375rem; border-bottom: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); min-height: 70px; background: #fff; }
.emp-schedule-cell:nth-child(7n) { border-right: none; }
.emp-schedule-cell .cell-date { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); margin-bottom: 0.25rem; }
.emp-schedule-cell.today { background: rgba(0,212,255,0.06); }
.emp-schedule-cell.other-month { opacity: 0.4; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.month-cell { padding: 0.25rem; border-bottom: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); min-height: 50px; background: #fff; font-size: 0.75rem; }
.month-cell:nth-child(7n) { border-right: none; }
.month-cell .cell-day { font-weight: 600; color: var(--gray-500); margin-bottom: 2px; }
.month-cell.today { background: rgba(0,212,255,0.06); }
.month-cell.other-month { opacity: 0.35; }
.month-cell .extra-dot { display: inline-block; width: 6px; height: 6px; background: #f59e0b; border-radius: 50%; margin-right: 2px; }
.month-cell .regular-dot { display: inline-block; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; margin-right: 2px; }

/* ============================================================
   TOGGLE SWITCH
   ============================================================ */
.toggle-switch { display:flex; align-items:center; gap:0.75rem; cursor:pointer; }
.toggle-switch input { opacity:0; width:0; height:0; position:absolute; }
.toggle-slider { position:relative; display:inline-block; width:44px; height:24px; background:#334155; border-radius:12px; transition:0.2s; flex-shrink:0; }
.toggle-slider::before { content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:0.2s; }
.toggle-switch input:checked + .toggle-slider { background:#f59e0b; }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }
.toggle-label { font-size:0.875rem; color:var(--gray-500); font-weight:500; }

/* ============================================================
   SCHEDULE CHIPS & MONTH GRID (admin)
   ============================================================ */
.schedule-chip { display:inline-flex; align-items:center; gap:0.25rem; padding:0.15rem 0.4rem; border-radius:4px; font-size:0.72rem; font-weight:600; cursor:pointer; margin:1px; max-width:100%; overflow:hidden; white-space:nowrap; }
.schedule-chip.regular { background:rgba(0,212,255,0.2); color:var(--teal); border:1px solid rgba(0,212,255,0.3); }
.schedule-chip.extra { background:rgba(245,158,11,0.2); color:#f59e0b; border:1px solid rgba(245,158,11,0.3); }
.month-grid-cell { min-height:80px; padding:0.25rem; border-right:1px solid var(--gray-200); border-bottom:1px solid var(--gray-200); cursor:pointer; transition:background 0.15s; vertical-align:top; }
.month-grid-cell:hover { background:rgba(0,212,255,0.05); }
.month-grid-cell.today { background:rgba(0,212,255,0.08); }
.month-grid-cell.other-month { opacity:0.4; }
.month-day-num { font-size:0.75rem; font-weight:600; margin-bottom:0.2rem; color:var(--gray-500); }
.month-day-num.today-num { color:var(--teal); font-weight:800; }

/* Admin schedule week view */
.admin-week-grid { display:grid; grid-template-columns:160px repeat(7,1fr); border:1px solid var(--gray-200); border-radius:8px; overflow:hidden; }
.admin-week-header { background:#0a1628; color:#fff; padding:0.5rem; font-size:0.8rem; font-weight:600; text-align:center; border-right:1px solid rgba(255,255,255,0.1); }
.admin-week-emp { padding:0.5rem 0.75rem; font-size:0.85rem; font-weight:500; border-bottom:1px solid var(--gray-200); border-right:1px solid var(--gray-200); background:var(--gray-50); display:flex; align-items:flex-start; min-height:60px; }
.admin-week-cell { padding:0.25rem; border-bottom:1px solid var(--gray-200); border-right:1px solid var(--gray-200); min-height:60px; background:#fff; }
.admin-week-cell.today { background:rgba(0,212,255,0.06); }

/* Copy week panel */
.copy-week-panel { display:none; align-items:center; gap:0.75rem; padding:0.75rem 1rem; background:var(--gray-50); border:1px solid var(--gray-200); border-radius:8px; margin-bottom:1rem; flex-wrap:wrap; }
.copy-week-panel.visible { display:flex; }
