/* Custom CSS for Spreadsheet Grid & Print styling */

/* Sticky Header and Left Column styling */
#scheduleTable th, #scheduleTable td {
  border: 1px solid #cbd5e1;
  padding: 0;
  height: 32px;
  min-width: 36px;
  vertical-align: middle;
}

/* Fixed left columns */
.sticky-col-left-1 {
  position: sticky;
  left: 0;
  z-index: 20;
  background-color: #ffffff;
}

.sticky-col-left-2 {
  position: sticky;
  left: 170px;
  z-index: 20;
  background-color: #ffffff;
}

/* Fixed right totals columns */
.sticky-col-right {
  position: sticky;
  right: 0;
  z-index: 20;
  background-color: #f8fafc;
}

/* Weekend Column Styling */
.is-weekend {
  background-color: #f1f5f9 !important;
}

.is-sunday {
  background-color: #e2e8f0 !important;
}

/* Cell Input / Badge */
.shift-cell-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.shift-cell-content:hover {
  filter: brightness(0.95);
  box-shadow: inset 0 0 0 2px #0284c7;
}

.shift-cell-content.selected-cell {
  box-shadow: inset 0 0 0 2.5px #0284c7 !important;
  z-index: 10;
}

/* Shift badge colors matching PDF original */
.shift-M { background-color: #e0f2fe; color: #0369a1; }
.shift-M13 { background-color: #bae6fd; color: #0284c7; }
.shift-M4 { background-color: #e0f2fe; color: #0369a1; }
.shift-P { background-color: #ffedd5; color: #c2410c; }
.shift-P1 { background-color: #fef3c7; color: #d97706; }
.shift-N { background-color: #e0e7ff; color: #4338ca; font-weight: 800; }
.shift-R { background-color: #f3f4f6; color: #6b7280; font-weight: 400; }
.shift-F { background-color: #dcfce7; color: #15803d; font-weight: 700; }
.shift-S { background-color: #ccfbf1; color: #0f766e; }
.shift-MAL { background-color: #fee2e2; color: #b91c1c; font-weight: 800; }

/* Combined/Double shift badges */
.shift-MP1, .shift-M-P1 { background-color: #dbeafe; color: #1e40af; }
.shift-P2N, .shift-P2-N { background-color: #e0e7ff; color: #3730a3; }
.shift-PN, .shift-P-N { background-color: #c7d2fe; color: #312e81; }
.shift-M13P1 { background-color: #dbeafe; color: #1d4ed8; }
.shift-M4P1 { background-color: #dbeafe; color: #2563eb; }

/* Cell note indicator dot */
.cell-note-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ef4444;
}

/* Print CSS setup */
@media print {
  body {
    background: white;
    color: black;
  }
  header, #secondaryBanner, button, #cellEditMenu, .no-print {
    display: none !important;
  }
  #gridScrollContainer {
    overflow: visible !important;
    max-height: none !important;
  }
  #scheduleTable {
    font-size: 9px !important;
    width: 100% !important;
  }
  #scheduleTable th, #scheduleTable td {
    height: 22px !important;
    min-width: 20px !important;
    border: 1px solid #64748b !important;
  }
}
