.scroller {
  overflow-y: auto;
  max-height: 500px;
}
.scroller::-webkit-scrollbar {
  width: 4px;
}
.scroller::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}
.scroller::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Animasi Transisi Tombol */
.btn-filter {
  transition: all 0.2s ease;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Payment Grid Styling */
.grid-container {
  display: grid;
  grid-template-columns: 150px 1fr 120px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
}
.grid-header {
  background: #00ffff;
  color: #1e293b;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border: 1px solid #cbd5e1;
}
.grid-cell {
  padding: 8px;
  border: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}
.sticky-col {
  position: sticky;
  left: 0;
  background: white;
  z-index: 10;
  border-right: 2px solid #e2e8f0;
  min-width: 150px;
  justify-content: flex-start;
  padding-left: 16px;
  font-weight: 600;
}
.grid-footer {
  background: #00ffff;
  grid-column: 1 / span 2;
  padding: 10px;
  border-top: 2px solid #e2e8f0;
}
.grid-total {
  background: #00ff00;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border-top: 2px solid #e2e8f0;
}
.week-scroll {
  display: flex;
  overflow-x: auto;
}
.week-header-row {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.week-col {
  min-width: 40px;
  border-right: 1px solid #f1f5f9;
  text-align: center;
  font-size: 10px;
  padding: 4px 0;
}

/* Custom Checkbox */
.check-box {
  color: #64748b;
  font-size: 14px;
}
.check-box.checked {
  color: #10b981;
}

/* Sticky Refinements */
.sticky-left {
  position: sticky !important;
  left: 0;
  z-index: 25;
  background-color: #ffffff !important;
  background-clip: border-box !important;
  opacity: 1;
}
.sticky-right {
  position: sticky !important;
  right: 0;
  z-index: 25;
  background-color: #ffffff !important;
  background-clip: border-box !important;
  opacity: 1;
}
.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 45;
  background-clip: border-box !important;
}

/* Specific Header Sticky Fix */
th.sticky-top {
  background-color: #22d3ee !important;
  color: #0f172a !important;
}
th.sticky-left.sticky-top,
th.sticky-right.sticky-top {
  z-index: 60;
  background-color: #ffffff !important;
}

/* Highlight Week Column */
.bg-current-week {
  background-color: rgba(6, 182, 212, 0.08) !important;
}
.border-current-week {
  border-left: 2px solid rgba(6, 182, 212, 0.5) !important;
  border-right: 2px solid rgba(6, 182, 212, 0.5) !important;
}

/* Ensure table content doesn't bleed through borders */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
