/* Datasources page – clean, full-width layout */

.app-main--datasources {
  padding: 0;
  min-height: calc(100vh - var(--layout-header-h, 64px) - 120px);
  background: #f1f5f9;
}

.datasources-page {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

/* Header strip – full width */
.datasources-page__header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px 16px;
}

.datasources-page__header-inner {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.datasources-page__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.datasources-page__header-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

@media (min-width: 768px) {
  .datasources-page__header {
    padding: 16px 20px 18px;
  }
}


.datasources-page__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #5b7bc0;
}

.datasources-page__header-icon svg {
  display: block;
}

.datasources-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.datasources-page__intro {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.datasources-page__add-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: #5b7bc0;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(91, 123, 192, 0.25);
}

.datasources-page__add-btn:hover {
  background: #4a6baf;
  box-shadow: 0 2px 8px rgba(91, 123, 192, 0.35);
}

.datasources-page__add-btn:focus-visible {
  outline: 2px solid #5b7bc0;
  outline-offset: 2px;
}

.datasources-page__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.datasources-page__header-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.datasources-page__header-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Import popup */
.import-phase {
  display: block;
}

.import-phase[hidden] {
  display: none !important;
}

.import-popup-illustration {
  flex-shrink: 0;
  width: calc(100% + 40px);
  margin: 0 -20px 16px;
  height: 200px;
  overflow: hidden;
  box-sizing: border-box;
}

.import-popup-illustration[hidden] {
  display: none !important;
}

.import-popup-illustration__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.datasources-hint {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.import-file-input {
  padding: 6px 0;
}

/* Drag-and-drop file zone (import & replace) */
.file-drop-zone {
  position: relative;
  min-height: 80px;
  padding: 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.file-drop-zone:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}
.file-drop-zone:focus-visible {
  outline: 2px solid #5b7bc0;
  outline-offset: 2px;
}
.file-drop-zone.is-dragover {
  border-color: #5b7bc0;
  background: #eff6ff;
}
.file-drop-zone__hint {
  font-size: 0.875rem;
  color: #64748b;
  pointer-events: none;
}
.file-drop-zone__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  pointer-events: none;
}
.file-drop-zone__name:empty {
  display: none;
}
.file-drop-zone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.import-loading {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.import-success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.import-success-msg__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
}

.import-success-msg__icon svg {
  display: block;
}

.import-phase2-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 12px;
}

.import-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.datasources-popup__container--import {
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.datasources-popup__container--import .datasources-popup__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.datasources-popup__container--create {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.datasources-popup__container--create .datasources-popup__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.datasources-popup__footer--sticky {
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.import-phase2-section {
  margin-bottom: 16px;
}

.import-header-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #64748b;
  user-select: none;
}

.import-header-toggle__cb {
  margin: 0;
  cursor: pointer;
}

.import-header-toggle__label {
  font-weight: 500;
}

.import-header-row-wrap {
  margin-top: 10px;
}

.import-header-row-wrap[hidden] {
  display: none !important;
}

.import-header-select {
  max-width: 120px;
}

.import-columns-wrap {
  margin-top: 0;
}

.import-columns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.import-columns-table th,
.import-columns-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.import-columns-table thead th {
  font-weight: 600;
  color: #64748b;
  background: transparent;
  font-size: 0.75rem;
}

.import-columns-table__th-num {
  width: 28px;
}

.import-columns-table__th-name {
  min-width: 0;
}

.import-columns-table__th-type {
  width: 100px;
}

/* Content area – no horizontal padding so the card runs full width */
.datasources-page__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  margin-top: 0;
  padding-top: 0;
  box-sizing: border-box;
}

/* Card container for list / table */
.datasources-card {
  margin-top: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.datasources-card--table {
  border-radius: 0;
}

/* Selection bar for bulk actions */
.datasources-selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.datasources-selection-bar[hidden] {
  display: none !important;
}

.datasources-selection-bar__count {
  font-size: 0.8125rem;
  color: #475569;
  margin-right: 8px;
}

.datasources-btn--danger {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
}

.datasources-btn--danger:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Table layout – minimalist */
.datasources-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.datasources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: fixed;
}

.datasources-table thead th {
  text-align: left;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.datasources-table__th-cb {
  width: 40px;
  min-width: 40px;
  text-align: center;
  padding: 10px 8px;
}

.datasources-table__th-name {
  width: 28%;
}

.datasources-table__th-meta {
  width: 10%;
  min-width: 56px;
}

.datasources-table__th-date {
  width: 14%;
  min-width: 100px;
}

.datasources-table__th-open,
.datasources-table__th-actions {
  width: 120px;
  min-width: 120px;
}

.datasources-table__row {
  transition: background 0.1s;
}

.datasources-table__row:hover {
  background: #f8fafc;
}

.datasources-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}

.datasources-table__td-cb {
  text-align: center;
  padding: 10px 8px;
}

.datasources-table__cb {
  margin: 0;
  cursor: pointer;
}

.datasources-table__td-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.datasources-table__name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.datasources-table__name-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #64748b;
}

.datasources-table__name-icon--table {
  background: #e2e8f0;
  color: #5b7bc0;
}

.datasources-table__name-icon--spreadsheet {
  background: #dcfce7;
  color: #16a34a;
}

.datasources-table__name-icon svg {
  display: block;
}

.datasources-table__name-link {
  flex: 1;
  min-width: 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datasources-table__name-link:hover {
  color: #5b7bc0;
  text-decoration: underline;
}

.datasources-table__name-label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  color: #64748b;
  background: #f1f5f9;
}

.datasources-table__name-label--table {
  color: #475569;
  background: #e2e8f0;
}

.datasources-table__name-label--spreadsheet {
  color: #166534;
  background: #dcfce7;
}

.datasources-table__td-name .datasources-table__name-label {
  margin-left: 2px;
}

.datasources-table__td-meta {
  color: #64748b;
}

.datasources-table__td-date {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.datasources-table__td-open {
  padding: 10px 12px;
}

.datasources-table__open-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5b7bc0;
  text-decoration: none;
}

.datasources-table__open-link:hover {
  text-decoration: underline;
}

.datasources-btn--link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  color: #5b7bc0;
  text-decoration: none;
}

.datasources-btn--link:hover {
  text-decoration: underline;
}

.datasources-table__replace-btn {
  margin-left: 12px;
}

/* Replace spreadsheet popup */
.replace-popup-hint {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* List (legacy / empty state) */
.datasources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.datasources-list > li {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
}

.datasources-list > li:last-child {
  border-bottom: none;
}

.datasources-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  min-height: 56px;
  transition: background 0.15s;
}

.datasources-list__item:hover {
  background: #f8fafc;
}

.datasources-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
}

.datasources-list__icon svg {
  display: block;
}

.datasources-list__wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.datasources-list__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datasources-list__meta {
  font-size: 0.8125rem;
  color: #64748b;
}

.datasources-list__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.datasources-list__open {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.datasources-list__open:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.datasources-list__open:focus-visible {
  outline: 2px solid #5b7bc0;
  outline-offset: 2px;
}

.datasources-list__delete {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.datasources-list__delete:hover {
  color: #dc2626;
  background: #fef2f2;
}

.datasources-list__delete:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Empty state */
.datasources-empty {
  text-align: center;
  padding: 48px 24px 56px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.datasources-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: #f1f5f9;
  border-radius: 12px;
  position: relative;
}

.datasources-empty__icon::after {
  content: '';
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.datasources-empty__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

.datasources-empty__text {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

.datasources-empty__btn {
  margin: 0;
}

/* Popup – hidden by default; only visible when [hidden] is removed */
.datasources-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.datasources-popup:not([hidden]) {
  display: flex;
}

.datasources-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.datasources-popup__container {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.datasources-popup__container--viewer {
  max-width: 900px;
  max-height: 88vh;
}

.datasources-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.datasources-popup__header--import {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0;
  border-bottom: none;
}

.datasources-popup__header--import .datasources-popup__header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -8px -4px 0 0;
}

.datasources-popup__header--import .datasources-popup__title--below {
  margin: 0 0 16px;
  padding: 0;
}

/* Create table popup header: same layout as import */
.datasources-popup__header--create {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0;
  border-bottom: none;
}

.datasources-popup__header--create .datasources-popup__header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -8px -4px 0 0;
}

.datasources-popup__header--create .datasources-popup__title--below {
  margin: 0 0 16px;
  padding: 0;
}

.create-popup-illustration {
  flex-shrink: 0;
  width: calc(100% + 40px);
  margin: 0 -20px 16px;
  height: 200px;
  overflow: hidden;
  box-sizing: border-box;
}

.create-popup-illustration__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.datasources-popup__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #2b2b2b;
}

.datasources-popup__close {
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
}

.datasources-popup__close:hover {
  color: #2b2b2b;
  background: rgba(0, 0, 0, 0.06);
}

.datasources-popup__content {
  padding: 20px;
}

.datasources-field {
  margin-bottom: 16px;
}

.datasources-structure-header,
.datasources-viewer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.datasources-structure-header .datasources-label,
.datasources-viewer-section-header .datasources-label {
  margin-bottom: 0;
}

.datasources-structure-wrap,
.datasources-data-wrap {
  overflow: auto;
  max-height: 220px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fafafa;
}

.datasources-data-wrap {
  max-height: 280px;
}

.datasources-structure-table,
.datasources-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.datasources-structure-table th,
.datasources-structure-table td,
.datasources-data-table th,
.datasources-data-table td {
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: middle;
}

.datasources-structure-table th,
.datasources-data-table th {
  background: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
}

.datasources-structure-num {
  width: 2em;
  color: #64748b;
}

.datasources-input--cell,
.datasources-select--type {
  width: 100%;
  min-width: 80px;
  padding: 4px 8px;
  font-size: 12px;
}

.datasources-select {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.datasources-btn--small {
  padding: 4px 10px;
  font-size: 12px;
}

.datasources-btn--icon {
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1.2;
  background: transparent;
  color: #94a3b8;
}

.datasources-btn--icon:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.datasources-viewer-content {
  padding: 16px 20px;
}

.datasources-viewer-section {
  margin-bottom: 20px;
}

.datasources-viewer-section .datasources-label {
  margin-bottom: 6px;
}

.datasources-viewer-section-header {
  margin-bottom: 6px;
}

.datasources-viewer-data-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.datasources-data-table .datasources-input--cell {
  min-width: 60px;
}

.datasources-data-table__actions-head {
  width: 40px;
}

.datasources-data-table__header-type {
  font-weight: 500;
  color: #64748b;
  font-size: 0.9em;
}

.datasources-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.datasources-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.datasources-type-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.datasources-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
}

.datasources-type-option input {
  margin: 0;
}

.datasources-panel {
  margin-top: 14px;
}

.datasources-file-wrap {
  display: inline-block;
}

.datasources-file-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 13px;
  cursor: pointer;
}

.datasources-file-btn:hover {
  background: #e2e8f0;
}

.datasources-file-wrap input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.datasources-file-status {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

.datasources-preview-wrap {
  margin-top: 12px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fafafa;
}

.datasources-preview-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.datasources-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.datasources-preview-table th,
.datasources-preview-table td {
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.datasources-preview-table th {
  background: #f1f5f9;
  font-weight: 600;
}

.datasources-manual-columns,
.datasources-manual-rows {
  margin-bottom: 14px;
}

.datasources-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.datasources-popup__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
}

.datasources-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.datasources-btn--secondary {
  background: #f1f5f9;
  color: #334155;
}

.datasources-btn--secondary:hover {
  background: #e2e8f0;
}

.datasources-btn--primary {
  background: #5b7bc0;
  color: #fff;
}

.datasources-btn--primary:hover {
  background: #4a6baf;
}

.datasources-btn:focus-visible {
  outline: 2px solid #5b7bc0;
  outline-offset: 2px;
}
