/* Appointment index table styles */

/* Custom styles that can't be replaced with Bulma */
.registerable-filter-column,
.extra-data-filter-column {
  width: 40px; /* No exact Bulma equivalent */
}

.filter-icon {
  font-size: 14px;
  color: #666;
  transition: color 0.2s ease;
}

.registerable-filter-container:hover .filter-icon,
.extra-data-filter-container:hover .filter-icon {
  color: #3273dc;
}

.registerable-dropdown-hover,
.extra-data-dropdown-hover {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  min-width: 160px;
  max-width: 300px;
}

/* Right-align for columns near the right edge */
th:nth-last-child(-n+2) .registerable-dropdown-hover,
th:nth-last-child(-n+2) .extra-data-dropdown-hover {
  left: auto;
  right: 0;
  transform: none;
}

/* Prevent bottom overflow */
.registerable-dropdown-hover,
.extra-data-dropdown-hover {
  max-height: 300px;
  overflow-y: auto;
}

/* Alternative positioning for bottom overflow */
.registerable-filter-container.dropdown-up .registerable-dropdown-hover,
.extra-data-filter-container.dropdown-up .extra-data-dropdown-hover {
  top: auto;
  bottom: 100%;
}

.registerable-filter-container:hover .registerable-dropdown-hover,
.extra-data-filter-container:hover .extra-data-dropdown-hover {
  opacity: 1;
  visibility: visible;
}

.registerable-dropdown-hover .checkbox,
.extra-data-dropdown-hover .checkbox {
  font-size: 12px;
}

.registerable-dropdown-hover .label.is-small,
.extra-data-dropdown-hover .label.is-small {
  font-size: 11px;
  font-weight: 600;
}

/* Metadata button styling */
.button.is-ghost {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.button.is-ghost:hover,
.button.is-ghost:focus {
  background: none;
  color: #3273dc;
  box-shadow: none;
}

.button.is-ghost:active {
  background: none;
  box-shadow: none;
}

/* Metadata overlay styling */
#metadata-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

#metadata-overlay.is-active {
  display: flex;
}

/* Table width management - Allow Group column to wrap */
.sortable-table td:nth-child(4),
.sortable-table th:nth-child(4) {
  max-width: 150px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

/* Also allow Course column to wrap if needed */
.sortable-table td:nth-child(2),
.sortable-table th:nth-child(2) {
  max-width: 200px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

/* Allow Title column to wrap */
.sortable-table td:nth-child(3),
.sortable-table th:nth-child(3) {
  max-width: 180px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}
