/* Undistributed lessons panel styling */
.board-area {
  padding-bottom: 450px;
}

.undistributed-panel-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 430px;
  z-index: 1020;
  padding: 0 1rem 0.5rem 1rem;
  background: var(--bg-page);
}

.undistributed-panel-fixed .card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  height: 100%;
}

.undistributed-panel-fixed .card-body {
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 52px);
}

.undistributed-panel-fixed .undistributed-list-wrapper {
  overflow-y: auto;
  max-height: none;
  flex: 1;
}

.undistributed-item {
  cursor: grab;
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  padding: 7px 10px;
  transition: all var(--transition-fast);
}

.undistributed-item:hover {
  background: var(--bg-hover);
  border-color: #2B7DDD;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.undistributed-item:active {
  cursor: grabbing;
}

.undistributed-item.dragging {
  opacity: 0.6;
  transform: scale(1.02);
}

.undistributed-item .fw-bold {
  font-size: 0.85rem;
  font-weight: 700 !important;
  color: var(--text-main);
}

.undistributed-item .small {
  font-size: 0.75rem;
}

.undistributed-item .text-success {
  color: #24B771 !important;
  font-weight: 600;
}

.undistributed-item .text-danger {
  color: #FF2B2B !important;
  font-weight: 600;
}

.undistributed-bundle {
  background: var(--bg-input) !important;
  border: 2px solid #2B7DDD;
}

.undistributed-list-wrapper ul.list-group {
  padding: 0;
  margin: 0;
}

.undistributed-list-wrapper .list-group-item {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem !important;
}

.filter-col {
  flex: 1;
  min-width: 120px;
}

.badge-kpk-warning {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #FFC107 !important;
}

.badge.bg-warning.text-dark {
  background: rgba(255, 193, 7, 0.25) !important;
  color: #FFC107 !important;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

@media (max-width: 768px) {
  .board-area {
    padding-bottom: 460px;
  }

  .undistributed-panel-fixed {
    height: 440px;
    padding: 0 0.5rem 0.5rem 0.5rem;
  }
  
  .filters-row {
    flex-direction: column;
  }
  
  .filter-col {
    width: 100%;
  }
}
