.db-sync-for-excel-wrap {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: #1e1e1e;
  font-size: 15px;
  line-height: 1.5;
}
.db-sync-for-excel-wrap .notice {
  margin: 0;
}
.db-sync-for-excel-wrap h1 {
  margin: 0;
  font-size: 28px;
  color: #fff;
}

.db-sync-for-excel-wrap h1 strong {
  font-weight: 600;
}

.db-sync-for-excel-scroll-container {
    overflow-x: auto;
    width: 100%;
}

.preview-table {
    display: table;
    min-width: 1200px;
    border-collapse: collapse;
}
.db-sync-for-excel-select-wide {
  width: 100%;
  max-width: 600px;
}
.db-sync-for-excel-header-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}
.db-sync-for-excel-header-logo {
  width: 40px;
  vertical-align: top;
}
.db-sync-for-excel-hr-spacing {
  margin: 30px 0;
}
.db-sync-for-excel-fullwidth {
  width: 100%;
}
.db-sync-for-excel-top-margin {
  margin-top: 20px;
}
.visually-hidden {
  visibility: hidden;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.db-sync-for-excel-wrap h1 span {
  font-weight: 400;
  opacity: 0.9;
}
.db-sync-for-excel-wrap .form-table th {
  width: 150px;
  font-weight: 600;
  color: #2c3338;
  vertical-align: middle;
}
.db-sync-for-excel-header-title {
  margin: 0;
  font-size: 28px;
}

.db-sync-for-excel-header-title strong {
  font-weight: 600;
}

.db-sync-for-excel-header-title span {
  font-weight: 400;
  opacity: 0.9;
}

.db-sync-for-excel-debug-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.db-sync-for-excel-loading {
  display: none;
  text-align: center;
  padding: 20px;
}
.db-sync-for-excel-wrap .box {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-top: 20px;
}
.db-sync-for-excel-wrap .box h2 {
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.db-sync-for-excel-wrap .preview-table {
  display: table;
  overflow-x: auto;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  background: #fff;
  padding: 0;
  table-layout: auto;
  width: 100%;
}
.db-sync-for-excel-wrap .preview-table th,
.db-sync-for-excel-wrap .preview-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: max-content;
}
.cell-updated {
  background-color: #fff4d1 !important;
  font-weight: bold;
}
.db-sync-for-excel-wrap table.widefat td,
.db-sync-for-excel-wrap table.widefat th {
  word-break: break-word;
  vertical-align: top;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  border-left: 1px solid #eee;
  width: max-content !important;
}
.db-sync-for-excel-wrap table.widefat thead {
  background-color: #f9fafb;
}
.db-sync-for-excel-wrap table.widefat th {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
  border-top: 0;
}
.db-sync-for-excel-wrap .db-sync-for-excel-section.import-log table.widefat th:nth-child(1),
.db-sync-for-excel-wrap .db-sync-for-excel-section.import-log table.widefat td:nth-child(1),
.db-sync-for-excel-wrap .db-sync-for-excel-section.import-log table.widefat th:nth-child(2),
.db-sync-for-excel-wrap .db-sync-for-excel-section.import-log table.widefat td:nth-child(2) {
  width: 140px !important;
  max-width: 140px;
  white-space: nowrap;
  font-size: 13px;
  color: #666;
}
.db-sync-for-excel-wrap .db-sync-for-excel-section.import-log table.widefat th:nth-child(3),
.db-sync-for-excel-wrap .db-sync-for-excel-section.import-log table.widefat th:nth-child(3) {
  width: auto !important;
  font-size: 14px;
}
.db-sync-for-excel-wrap .select2-selection--multiple {
  font-size: 14px;
  min-height: 48px;
  padding: 10px 14px;
  align-items: center;
  background-color: #fff !important;
}
.db-sync-for-excel-wrap .select2-container--default .select2-selection--multiple {
  border-color: #ccd0d4 !important;
  box-shadow: none !important;
}
.db-sync-for-excel-wrap .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #66afe9 !important;
  box-shadow: 0 0 5px rgba(102, 175, 233, 0.6) !important;
}
.db-sync-for-excel-wrap .button {
  background-color: #007cba;
  border-color: #007cba;
  color: #fff;
  font-weight: 600;
  border-radius: 4px !important;
  padding: 8px 16px !important;
}
.db-sync-for-excel-wrap .button:hover {
  background-color: #006ba1;
  border-color: #006ba1;
}
.db-sync-for-excel-wrap .button.button-secondary {
  background-color: #f3f4f6;
  border-color: #d0d5dd;
  color: #1e1e1e;
}
.db-sync-for-excel-wrap .button.button-secondary:hover {
  background-color: #e5e7eb;
  border-color: #d0d5dd;
}
.db-sync-for-excel-wrap .button.button-danger {
  background-color: #dc3545;
  border-color: #b02a37;
  color: #fff;
}
.db-sync-for-excel-wrap .button.button-danger:hover {
  background-color: #b02a37;
  border-color: #922026;
}
.db-sync-for-excel-wrap textarea {
  border-radius: 4px;
  border-color: #ccd0d4;
  font-size: 14px;
  background-color: #fff;
  padding: 8px 12px;
  width: 100%;
  max-width: 100%;
}
.db-sync-for-excel-wrap input[type="text"],
.db-sync-for-excel-wrap input[type="file"],
.db-sync-for-excel-wrap select {
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 8px 12px;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  background-color: #fff;
}
.submit {
  padding: 0 !important;
}
/* Color the menu icon green */
#adminmenu .toplevel_page_db-sync-for-excel .dashicons-before:before {
  color: #46b450 !important;
}
/* Modern Select2 styling for multiple selections */
/* Modern Select2 styling for multiple selections */
.select2-container--default .select2-selection--multiple {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  min-height: 48px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Modern tag appearance for Select2 multiple choices */
.select2-container--default
.select2-selection--multiple
.select2-selection__choice {
  background-color: #2563eb;
  border: none;
  border-radius: 20px;
  color: #fff;
  padding: 6px 12px;
  margin: 4px 6px 4px 0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.select2-container--default
.select2-selection--multiple
.select2-selection__choice__remove {
  color: #fff;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.select2-container--default
.select2-selection--multiple
.select2-selection__choice__remove:hover {
  color: #ffdddd;
}
/* Select2 fixes: spacing and alignment */
.select2-container {
  max-width: 100%;
}
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #66afe9;
  outline: 0;
  box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}
.select2-container .select2-selection--multiple .select2-search--inline {
  width: auto !important;
}
.select2-container .select2-selection--multiple .select2-search__field {
  min-width: 200px !important;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #0073aa;
  border: none;
  border-radius: 3px;
  color: #fff;
  padding: 4px 8px;
  margin: 4px 6px 4px 0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 100%;
  padding-left: 25px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 0px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  order: 2;
  cursor: pointer;
  height: 100%;
  width: max-content;
  padding-left: 6px;
  padding-right: 6px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  background: #053a53;
  color: #ffffff;
}
.select2-container--default .select2-results > .select2-results__options {
  max-height: 280px;
  overflow-y: auto;
}
.db-sync-for-excel-wrap
  .select2-container--default
  .select2-selection--multiple
  .select2-search__field {
  margin-top: 6px;
  font-size: 14px;
}

.db-sync-for-excel-nav-tabs {
  background: #ffffff;
  padding: 0;
  gap: 20px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 0 1px rgb(0 0 0/13%),0 1px 3px rgb(0 0 0/10%);
}


.nav-tab {
  background: none !important;
  border: none !important;
  color: #333 !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent !important;
  margin: 0;
}

.nav-tab:hover {
  color: #000337 !important;
}

.nav-tab-active {
  color: #000337 !important;
  border-bottom: 2px solid #000337 !important;
}

.nav-tab i.fa-solid {
  font-size: 15px !important;
  margin-right: 6px !important;
  position: relative !important;
  top: 1px !important;
}

.db-sync-for-excel-header {
  background: linear-gradient(to right, #000040, #030712);
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
}

.db-sync-for-excel-header-meta {
  font-size: 13px;
  color: #fff;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}


.db-sync-for-excel-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

#message.updated, .notice-success {
    background-color: #e6ffed !important;
    color: #0f5132 !important;
    border-left: 4px solid #198754;
    font-weight: 500;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
}

.notice-error {
    background-color: #f8d7da !important;
    color: #842029 !important;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
}

.notice-info {
    background-color: #e7f1ff !important;
    color: #084298 !important;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    padding: 1px 12px;
    margin: 15px 0;
}

.notice-warning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
    border-left: 4px solid #ffca2c;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
}

.db-sync-for-excel-grid.wp-list-table {
  width: max-content; /* sorgt für horizontales Scrollen */
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* wichtig für dynamische Spalten */
}

/*----------------------Mobile--------------------*/

@media (max-width: 768px) {
  .db-sync-for-excel-wrap .form-table th {
    display: block;
    width: auto;
    margin-bottom: 6px;
  }

  .db-sync-for-excel-wrap .form-table td {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }

  .db-sync-for-excel-nav-tabs {
    overflow-x: auto;
  }

  .db-sync-for-excel-wrap .box {
    padding: 15px;
  }

  .db-sync-for-excel-wrap .select2-selection--multiple {
    font-size: 14px;
    padding: 10px;
  }

  /* .nav-tab-wrapper is no longer used for the new tab structure */

  .nav-tab {
    width: 100% !important;
    justify-content: center !important;
    text-align: center;
  }

  .db-sync-for-excel-wrap table.widefat th:nth-child(1),
  .db-sync-for-excel-wrap table.widefat td:nth-child(1),
  .db-sync-for-excel-wrap table.widefat th:nth-child(2),
  .db-sync-for-excel-wrap table.widefat td:nth-child(2),
  .db-sync-for-excel-wrap table.widefat th:nth-child(3),
  .db-sync-for-excel-wrap table.widefat td:nth-child(3) {
    display: block;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
  }

  .db-sync-for-excel-wrap table.widefat thead {
    display: none;
  }

  .db-sync-for-excel-wrap table.widefat tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
  }

  .db-sync-for-excel-wrap .button {
    width: 100%;
    padding: 10px !important;
    font-size: 16px;
  }
}

/*----------------------Mobile--------------------*/
.db-sync-for-excel-wrap .preview-table thead th {
    white-space: nowrap;
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Force black text color for all WordPress admin notices (success, warning, error, info, etc.) */
.notice,
.notice * {
  color: #3d3d3d !important;
  margin: 0 !important;
}

/* Modern styling for sheet dropdown */
.db-sync-for-excel-sheet-dropdown.select2-hidden-accessible + .select2-container {
  font-size: 15px;
  line-height: 1.5;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.db-sync-for-excel-sheet-select .select2-container {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  padding: 6px 12px;
  height: 42px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
}



.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}
/* Enterprise-Grade Sheet-Dropdown-Komponenten Styles */

.db-sync-for-excel-sheet-select {
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.db-sync-for-excel-sheet-select.select2-visible {
  display: block;
  opacity: 1;
}

.db-sync-for-excel-sheet-select label {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5em;
  color: #1d2327;
  font-size: 15px;
}

.db-sync-for-excel-sheet-select label i.fa-table {
  margin-right: 6px;
  color: #2271b1;
  font-size: 15px;
  position: relative;
  top: 1px;
}

.db-sync-for-excel-sheet-dropdown {
  width: 100%;
  max-width: 400px;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccd0d4;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.db-sync-for-excel-sheet-dropdown:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}
.db-sync-for-excel-import-warning {
  background: #fff3cd;
  color: #856404;
  padding: 12px 16px;
  border-left: 4px solid #ffeeba;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.db-sync-for-excel-import-warning i {
  margin-right: 8px;
  font-size: 16px;
  color: #ffc107;
}

.db-sync-for-excel-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.db-sync-for-excel-feedback-slot {
  font-weight: 500;
  color: #0f5132;
  font-size: 14px;
  padding: 6px 10px;
  background-color: #e6ffed;
  border-left: 4px solid #198754;
  border-radius: 4px;
  display: inline-block;
  animation: fadein 0.3s ease-in-out;
}

.db-sync-for-excel-error-message {
  position: relative;
  font-weight: 500;
  color: #842029;
  font-size: 14px;
  padding: 6px 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  border-left-width: 4px;
  border-radius: 4px;
  display: inline-block;
  animation: fadein 0.3s ease-in-out;
}

.db-sync-for-excel-error-message .dismiss {
  position: absolute;
  top: 4px;
  right: 8px;
  cursor: pointer;
  color: inherit;
}

.db-sync-for-excel-error-details {
  display: inline-block;
  max-height: 4.5em;
  overflow: hidden;
}

.db-sync-for-excel-error-message.expanded .db-sync-for-excel-error-details {
  max-height: none;
}

.db-sync-for-excel-error-message .show-more {
  display: none;
  margin-left: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #842029;
}

.db-sync-for-excel-error-message.truncated .show-more {
  display: inline-block;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.select2-prepare {
  visibility: visible;
}

/* Modern professional styling for Select2 single dropdowns (2025-ready) */
.select2-container--default .select2-selection--single {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background-color: #fefefe;
  /* Remove forced height override to prevent extra spacing */
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #4094f7;
  box-shadow: 0 0 0 2px rgba(64, 148, 247, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #111827;
  font-size: 15px;
  font-weight: 400;
  padding-left: 0;
  line-height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6b7280;
  font-weight: 400;
  line-height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.select2-dropdown {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border: 1px solid #d1d5db;
  overflow: hidden;
}

.select2-results__option {
  padding: 10px 14px;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.select2-results__option--highlighted {
  background-color: #f0f9ff;
  color: #111827;
}

.select2-results__option--selected {
  background-color: #e5f3ff;
  font-weight: 500;
}

.js-hide-until-select2 {
  visibility: hidden;
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.db-sync-for-excel-cell-stacked {
  display: flex;
  flex-direction: column;
}

.db-sync-for-excel-select-wrapper {
  display: flex;
  align-items: center;
  min-height: 38px;
}

.db-sync-for-excel-align-middle th {
  vertical-align: middle;
}
.db-sync-for-excel-restore-header {
  vertical-align: baseline !important;
}

.db-sync-for-excel-export-header {
  vertical-align: top !important;
}

.select2-selection--multiple .select2-search__field::placeholder {
  color: #6b7280;
  opacity: 1;
  font-weight: 400;
}

.select2-selection--multiple .select2-search__field {
  min-width: 100% !important;
}

.select2-selection--multiple .select2-search__field:empty:before {
  content: attr(placeholder);
  color: #999;
}

/* Ensure visibility and display for Select2 components */
.select2-hidden-accessible + .select2-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Consistent design for Select2 single dropdowns */
.select2-container--default .select2-selection--single {
  background-color: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 8px 14px;
  height: auto;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Platzhalter Styling */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6b7280;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* Eingabefeld Rendering */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #111827;
  font-size: 15px;
  font-weight: 400;
  padding-left: 0;
  line-height: 1.4;
}

/* Arrow positioning for dropdown */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  position: absolute;
  width: 24px;
  height: 24px;
}

/* Dropdownbox visuelles Upgrade */
.select2-dropdown {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border: 1px solid #d1d5db;
  overflow: hidden;
}

/* Dropdownoptionen Styling */
.select2-results__option {
  padding: 10px 14px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

/* Hover and selection states */
.select2-results__option--highlighted {
  background-color: #f0f9ff;
  color: #111827;
}

.select2-results__option--selected {
  background-color: #e5f3ff;
  font-weight: 500;
}
.js-hide-until-select2 {
  visibility: hidden;
  height: 0;
  min-height: 0;
  overflow: hidden;
}

/* Responsive layout for DB Sync for Microsoft Excel */
.db-sync-for-excel-section .select2-container {
  min-width: 100% !important;
  width: auto !important;
}

@media (max-width: 768px) {
  .db-sync-for-excel-section table,
  .db-sync-for-excel-section tr,
  .db-sync-for-excel-section td,
  .db-sync-for-excel-section th {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .db-sync-for-excel-section tr {
    margin-bottom: 16px;
  }

  .db-sync-for-excel-section th {
    margin-bottom: 4px;
    font-weight: 600;
  }

  .db-sync-for-excel-section td {
    margin-bottom: 16px;
  }

  .db-sync-for-excel-section select,
  .db-sync-for-excel-section input,
  .db-sync-for-excel-section button,
  .db-sync-for-excel-section .select2-container {
    width: 100% !important;
    box-sizing: border-box;
  }

  .db-sync-for-excel-section .notice {
    width: 100%;
    box-sizing: border-box;
  }

  .db-sync-for-excel-section {
    padding: 12px;
  }
  .db-sync-for-excel-header-meta {
    text-align: right;
  }
}

@media (max-width: 480px) {
  .db-sync-for-excel-section th {
    font-size: 14px;
  }

  .db-sync-for-excel-section td {
    margin-bottom: 12px;
  }

  .db-sync-for-excel-section .button {
    padding: 8px 12px;
  }

  .db-sync-for-excel-section .notice {
    font-size: 14px;
    padding: 8px;
  }

.db-sync-for-excel-section {
    padding: 10px;
  }
}

.live-edit-grid-wrapper {
  overflow-x: auto;
  max-width: 100%;
  max-height: 400px;
  margin-top: 20px;
  border: 1px solid #c3c4c7;
}
.live-edit-grid td.cell-edited {
  background: #fff3cd;
}
.live-edit-grid td.read-only {
  background: #f9f9f9;
  color: #666;
}

.live-edit-grid {
  border: none !important;
  width: 100%;
  font-size: 14px;
}

.db-sync-for-excel-section h2 {
  margin: 0 0 1rem;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-edit-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.live-edit-grid th,
.live-edit-grid td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
}
.live-edit-grid thead th {
  position: sticky;
  top: 0;
  background: #f3f4f6;
  z-index: 1;
  font-weight: 600;
}
.live-edit-grid td[contenteditable]:focus {
  outline: 2px solid #007cba;
}
.live-edit-grid tr:hover {
  background-color: #fcfcfc;
}
.live-edit-grid tr:nth-child(even) {
  background-color: #f9fafb;
}
.live-edit-footer {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 1rem;
}
#live-edit-pagination {
  margin-top: 10px;
 }
@media (max-width: 600px) {
  .db-sync-for-excel-live-edit {
    margin-top: 1rem;
  }
}


.db-sync-for-excel-backup-restore-label {
  vertical-align: baseline !important;
}

.db-sync-for-excel-live-edit td.column-dynamic,
.db-sync-for-excel-live-edit th.column-dynamic {
  max-width: 280px;
  min-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto;
}

.db-sync-for-excel-formula-bar {
  display: none;
  margin: 15px 0;
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#live-edit-formula-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  border: none;
  background: transparent;
  margin: 0;
}

.live-edit-grid td.active-cell {
  outline: 2px solid #007cba;
}

#live-edit-loading-spinner {
  margin-top: 12px;
  text-align: center;
 }

.db-sync-for-excel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: db-sync-for-excel-fade-in 0.25s ease;
}

.db-sync-for-excel-modal {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: db-sync-for-excel-scale-in 0.25s ease;
}

.db-sync-for-excel-modal p {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.db-sync-for-excel-modal .modal-icon {
  color: #007aff;
}

.db-sync-for-excel-modal-buttons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.db-sync-for-excel-modal-buttons .button {
  padding: 5px 20px;
  border-radius: 6px;
  font-size: 14px;
}

.db-sync-for-excel-modal-buttons .button-primary {
  background-color: #007cba;
  border: none;
}

.db-sync-for-excel-modal-buttons .button-primary:hover {
  background-color: #006ba1;
}

.db-sync-for-excel-modal-buttons .button-secondary {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #555;
}

.db-sync-for-excel-modal-buttons .button-secondary:hover {
  background: #007cba;
  color: #ffffff;
  border: 1px solid #007cba;
}

.db-sync-for-excel-modal.confirmed {
  animation: db-sync-for-excel-confirm-pulse 0.25s ease forwards;
}

.db-sync-for-excel-feedback-wrapper {
  width: 100%;
  margin-top: 10px;
}

@keyframes db-sync-for-excel-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes db-sync-for-excel-scale-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes db-sync-for-excel-confirm-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); }
  100% { transform: scale(0.9); opacity: 0; }
}

