.ent-page {
  padding: 12px;
}

.panel-scrollable {
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.ent-form-panel {
  margin-top: 12px;
  margin-bottom: 34px;
}

.panel-head {
  margin-bottom: 8px;

  .ent-head {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }
}

.dbp-panel {
  margin-top: 20px;
  padding: 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dbp-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
}

.secondary-btn {
  margin-top: 15px;
  border: none;
  border-radius: 8px;
  background: #eef2ff;
  color: #5b4de0;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}

.dbp-load-row {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.dbp-add-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 14px;
  background: #f8f9fc;
  border-radius: 10px;
  border: 1px dashed #d1d5db;
}

.dbp-add-row .btn {
  height: var(--button-height-s);
  min-width: 110px;
  background: var(--button-secondary-bg-default);
  color: var(--action-primary-default);
  border: 1px solid var(--action-primary-default);
  border-radius: var(--size-radius-m);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;

  &:hover:not(:disabled) {
    background: var(--bg-selected);
    border-color: var(--action-primary-hover);
    color: var(--action-primary-hover);
  }

  &:active:not(:disabled) {
    background: var(--bg-focus);
    border-color: var(--action-primary-active);
    color: var(--action-primary-active);
  }

  &:disabled {
    border-color: var(--button-primary-border-disabled);
    color: var(--button-primary-text-disabled);
    background: var(--button-secondary-bg-disabled);
    cursor: not-allowed;
  }
}

.dbp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dbp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;

  &:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
  }
}

.dbp-drag-handle {
  color: #9ca3af;
  cursor: grab;
}

.dbp-row-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}


.dbp-row-meta {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
}

.dbp-loading,
.dbp-empty {
  padding: 18px;
  text-align: center;
  border-radius: 8px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;

  &:hover {
    background: rgba(239, 68, 68, 0.1);
  }

  mat-icon {
    font-size: 20px;
  }
}