/* Column Options modal — global (applies when modal is moved to body by jQuery/Bootstrap) */

.column-options-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transform: scale(0.6);
  transform-origin: right center;
}

.column-options-link:hover,
.column-options-link:focus,
.column-options-link:active {
  color: #b82218 !important;
  background: transparent;
  text-decoration: underline;
  box-shadow: none;
  outline: none;
}

.column-options-link .column-options-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.column-options-link span {
  color: #DA291C;
  font-weight: 500;
}

#columnOptionsModal.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

#columnOptionsModal .column-options-modal-dialog {
  margin: auto !important;
  max-width: 680px;
  width: calc(100% - 2rem);
  min-height: 0 !important;
  height: auto !important;
}

#columnOptionsModal .column-options-modal-dialog.modal-dialog-centered {
  min-height: 0 !important;
  height: auto !important;
}

#columnOptionsModal .column-options-modal-content {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#columnOptionsModal .column-options-modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 0.875rem 1.25rem;
}

#columnOptionsModal .column-options-modal-header .modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

#columnOptionsModal .column-options-modal-body {
  padding: 0.875rem 1.25rem 1.125rem;
  font-size: 13px;
}

#columnOptionsModal .btn-column-options-save {
  background-color: #DA291C;
  border: 1px solid #DA291C;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 4px;
}

#columnOptionsModal .btn-column-options-save:hover,
#columnOptionsModal .btn-column-options-save:focus {
  background-color: #b82218;
  border-color: #b82218;
  color: #fff;
}

#columnOptionsModal .column-options-table {
  width: 100%;
}

#columnOptionsModal .column-options-table-header,
#columnOptionsModal .column-options-table-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
}

#columnOptionsModal .column-options-table-header {
  padding: 0 0 8px;
  border-bottom: 1px solid #ced4da;
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
}

#columnOptionsModal .column-options-table-body {
  max-height: 520px;
  overflow-y: auto;
}

#columnOptionsModal .column-options-table-row {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

#columnOptionsModal .column-options-col-reorder {
  width: 44px;
  flex: 0 0 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#columnOptionsModal .column-options-col-view {
  width: 60px;
  flex: 0 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#columnOptionsModal .column-options-col-name {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding-right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#columnOptionsModal .column-options-row-drag-over {
  background-color: #f8f9fa;
}

#columnOptionsModal .column-options-row-dragging {
  opacity: 0.55;
}

#columnOptionsModal .column-options-drag-handle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #8c9196;
  cursor: grab;
  line-height: 1;
}

#columnOptionsModal .column-options-drag-handle:hover {
  color: #5f6368;
}

#columnOptionsModal .column-options-drag-handle:active {
  cursor: grabbing;
  color: #DA291C;
}

#columnOptionsModal .column-options-drag-handle-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#columnOptionsModal .column-options-drag-icon {
  display: block;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

#columnOptionsModal .column-options-checkbox {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  min-height: 15px;
  max-width: 15px;
  max-height: 15px;
  margin: 0;
  padding: 0;
  accent-color: #0d6efd;
  cursor: pointer;
  flex-shrink: 0;
  transform: scale(1);
}

#columnOptionsModal .column-options-checkbox:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#columnOptionsModal .column-options-label {
  font-size: 13px;
  color: #212529;
  line-height: 1.25;
  font-weight: 400;
}

#columnOptionsModal .column-options-label.locked {
  color: #6c757d;
}
