/* ===== Custom Properties ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #7c3aed;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --sidebar-width: 260px;
}

/* ===== Base ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--gray-900);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-700);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 0.925rem;
}

.sidebar-nav a:hover {
  background: var(--gray-800);
  color: white;
}

.sidebar-nav a.active {
  background: var(--primary);
  color: white;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-700);
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--gray-50);
}

/* ===== Mobile Sidebar ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
}

.hamburger-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  background: var(--gray-900);
  color: white;
  border: none;
  border-radius: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .hamburger-btn {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.925rem;
  z-index: 100;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  max-width: 400px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--danger);
}

.toast-info {
  background: var(--primary);
}

/* ===== Loading Overlay ===== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.modal-content {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== Color Dot ===== */
.color-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Stat Cards ===== */
.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ===== Employee Card ===== */
.employee-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s ease;
}

.employee-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Form Inputs ===== */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.925rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.925rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

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

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

.btn-secondary {
  background: white;
  color: var(--gray-700);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-300);
  font-size: 0.925rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--gray-50);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.empty-state svg {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--gray-300);
}

/* ===== Schedule Grid ===== */
.schedule-container {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.schedule-container.schedule-draft {
  border: 2px dashed var(--warning);
}

.schedule-container.schedule-published {
  border: 2px solid var(--success);
}

.schedule-grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 160px repeat(7, 1fr);
  min-width: 800px;
}

/* Header cells */
.schedule-header-cell {
  background: var(--gray-50);
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 2;
}

.schedule-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  padding-left: 1rem;
}

.schedule-date-num {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Employee name cells (sticky left) */
.schedule-name-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
  padding: 0.625rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
  overflow: hidden;
}

.schedule-name-cell.schedule-row-odd {
  background: var(--gray-50);
}

.schedule-emp-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-emp-hours {
  font-size: 0.7rem;
  color: var(--gray-400);
  font-weight: 400;
  white-space: nowrap;
}

/* Day cells */
.schedule-cell {
  padding: 0.375rem;
  border-bottom: 1px solid var(--gray-100);
  border-left: 1px solid var(--gray-100);
  min-height: 3.5rem;
  position: relative;
  cursor: pointer;
  transition: background 0.1s ease;
}

.schedule-cell.schedule-row-odd {
  background: var(--gray-50);
}

/* Empty cell: show "+" on hover */
.schedule-cell-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell-add-icon {
  font-size: 1.25rem;
  color: var(--gray-300);
  opacity: 0;
  transition: opacity 0.15s ease;
  font-weight: 300;
}

.schedule-cell-empty:hover {
  background: var(--primary-light);
}

.schedule-cell-empty:hover .cell-add-icon {
  opacity: 1;
  color: var(--primary);
}

/* Shift pill */
.shift-pill {
  background: white;
  border-left: 3px solid var(--primary);
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.shift-pill:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.shift-pill:last-child {
  margin-bottom: 0;
}

.shift-time {
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}

.shift-role {
  color: var(--gray-500);
  font-size: 0.7rem;
  margin-top: 0.125rem;
}

.shift-notes {
  color: var(--gray-400);
  font-size: 0.65rem;
  margin-top: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Status badge */
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-published {
  background: #d1fae5;
  color: #065f46;
}

/* Print-only header */
.print-only {
  display: none;
}

/* Touch devices: always show "+" */
@media (hover: none) {
  .cell-add-icon {
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 120px repeat(7, 100px);
  }

  .schedule-name-cell {
    font-size: 0.78rem;
    padding: 0.5rem;
  }

  .shift-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.375rem;
  }
}

/* ===== Availability Modal ===== */
.avail-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.avail-day-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
  width: 5rem;
  flex-shrink: 0;
}

.avail-status-group {
  display: inline-flex;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  overflow: hidden;
}

.avail-status-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  border: none;
  background: white;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
  border-right: 1px solid var(--gray-300);
}

.avail-status-btn:last-child {
  border-right: none;
}

.avail-status-btn:hover {
  background: var(--gray-50);
}

.avail-status-btn.avail-status-active {
  background: var(--primary);
  color: white;
}

.avail-times {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.25rem;
}

.avail-time-sep {
  font-size: 0.8rem;
  color: var(--gray-400);
  padding: 0 0.125rem;
}

@media (max-width: 500px) {
  .avail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .avail-day-label {
    width: auto;
  }

  .avail-times {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* ===== Schedule Grid — Availability Indicators ===== */
.schedule-cell-unavail {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(220, 38, 38, 0.07) 4px,
    rgba(220, 38, 38, 0.07) 8px
  ) !important;
}

.schedule-cell-unavail.schedule-row-odd {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(220, 38, 38, 0.07) 4px,
    rgba(220, 38, 38, 0.07) 8px
  ), var(--gray-50) !important;
}

.avail-indicator {
  display: inline-block;
  color: var(--warning);
  margin-left: 0.25rem;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  cursor: default;
  font-size: 0.75rem;
}

.avail-indicator::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.avail-indicator:hover::after {
  opacity: 1;
}

/* ===== Employee Card — Availability Summary ===== */
.emp-avail-summary {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

/* ===== Print Styles ===== */
@media print {
  @page { size: landscape; margin: 0.5in; }

  .sidebar,
  .sidebar-overlay,
  .hamburger-btn,
  .toast,
  #loading-overlay,
  .modal-overlay,
  .no-print {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  body {
    background: white !important;
  }

  .print-only {
    display: block !important;
    padding: 1rem 2rem 0;
  }

  .schedule-container {
    border: 1px solid var(--gray-300) !important;
    box-shadow: none !important;
  }

  .schedule-name-cell,
  .schedule-corner,
  .schedule-header-cell {
    position: static !important;
  }

  .cell-add-icon {
    display: none !important;
  }

  .shift-pill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-shadow: none;
  }

  .color-dot {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .schedule-cell.schedule-row-odd,
  .schedule-name-cell.schedule-row-odd {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ===== Dashboard — Snapshot Card ===== */
.snapshot-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
}

.snapshot-shift-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

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

/* ===== Dashboard — Alert Cards ===== */
.alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--danger);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.alert-card-amber {
  border-left-color: var(--warning);
}

.alert-card-blue {
  border-left-color: var(--primary);
}

/* ===== Dashboard — Stats Inline ===== */
.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* ===== Dashboard — Mini Grid ===== */
.mini-grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mini-grid {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  min-width: 600px;
}

.mini-grid-header {
  background: var(--gray-50);
  padding: 0.375rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.mini-grid-name {
  padding: 0.375rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.mini-grid-cell {
  padding: 0.25rem;
  border-bottom: 1px solid var(--gray-100);
  border-left: 1px solid var(--gray-100);
  min-height: 1.75rem;
}

.mini-grid-block {
  width: 100%;
  height: 0.5rem;
  border-radius: 2px;
  margin-bottom: 2px;
}

.mini-grid-block:last-child {
  margin-bottom: 0;
}

/* ===== Time Picker ===== */
.time-picker-group {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.time-picker-group select {
  padding: 0.625rem 0.375rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.925rem;
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: auto;
}

.time-picker-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.tp-hour {
  width: 4rem;
}

.tp-min {
  width: 4.5rem;
}

.tp-ampm {
  width: 4.5rem;
}

@media (max-width: 400px) {
  .tp-hour { width: 3.25rem; }
  .tp-min { width: 3.75rem; }
  .tp-ampm { width: 3.75rem; }
  .time-picker-group select {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }
}

/* ===== Pro Features — Modal ===== */
.pro-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pro-modal-overlay.modal-show {
  opacity: 1;
}

.pro-modal {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== Pro — Locked Button ===== */
.btn-pro-locked {
  background: white;
  color: var(--gray-500);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--gray-300);
  font-size: 0.925rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pro-locked:hover {
  border-color: var(--gray-400);
  color: var(--gray-600);
}

.pro-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* ===== Published Button ===== */
.btn-published {
  background: var(--success);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.925rem;
  font-weight: 500;
  cursor: default;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Employee Schedule (my-schedule) ===== */
.emp-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Grid wrapper */
.emp-grid-wrap {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.emp-grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.emp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-width: 630px;
}

/* Header cells */
.emp-grid-header {
  background: var(--gray-50);
  padding: 0.7rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  border-bottom: 2px solid var(--gray-200);
}

.emp-grid-header.emp-today {
  background: #eff6ff;
  color: #1d4ed8;
}

.emp-grid-date {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
  font-size: 0.68rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.emp-grid-header.emp-today .emp-grid-date {
  background: #bfdbfe;
  color: #1e40af;
}

/* Day cells */
.emp-grid-cell {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  border-left: 1px solid var(--gray-100);
  min-height: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.emp-grid-cell:first-child {
  border-left: none;
}

.emp-grid-cell.emp-today-col {
  background: #f0f7ff;
}

.emp-grid-cell-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 0.75rem;
}

/* Shift pill inside grid cell */
.emp-shift-pill {
  background: white;
  border-left: 3px solid var(--primary);
  border-radius: 0.3rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.emp-shift-pill-time {
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}

.emp-shift-pill-role {
  color: var(--gray-500);
  font-size: 0.65rem;
  margin-top: 1px;
}

.emp-shift-pill-notes {
  color: var(--gray-400);
  font-size: 0.6rem;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Acknowledge button & confirmed badge */
.btn-acknowledge {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  margin-top: 0.25rem;
  width: 100%;
  text-align: center;
}

.btn-acknowledge:hover {
  background: var(--primary);
  color: white;
}

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

.badge-confirmed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  margin-top: 0.25rem;
}

.badge-confirmed svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Mobile adjustments for employee grid */
@media (max-width: 640px) {
  .emp-grid {
    grid-template-columns: repeat(7, 90px);
  }

  .emp-grid-header {
    font-size: 0.72rem;
    padding: 0.6rem 0.3rem;
  }

  .emp-shift-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.375rem;
  }

  .btn-acknowledge {
    font-size: 0.62rem;
    padding: 0.2rem 0.375rem;
  }

  .badge-confirmed {
    font-size: 0.6rem;
    padding: 0.15rem 0.375rem;
  }
}

/* Shift pill acknowledged checkmark with tooltip */
.shift-ack-icon {
  display: inline-block;
  color: var(--success);
  margin-left: 0.25rem;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  cursor: default;
}

.shift-ack-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.shift-ack-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.shift-ack-icon:hover::after {
  opacity: 1;
}
