.live-edit-toolbar {
  display: block;
  margin-top: 16px;
  padding-top: 10px;
  text-align: right;
  border-top: 1px dashed #ddd;
}

.live-edit-toolbar .dropdown-menu {
  left: auto;
  right: 0;
  text-align: left;
}


.live-edit-toolbar .dropdown-menu > li > .live-edit-menu-button {
  display: block;
  width: 100%;
  padding: 3px 20px;
  clear: both;
  border: 0;
  background: transparent;
  color: #333;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: left;
  white-space: nowrap;
}

.live-edit-toolbar .dropdown-menu > li > .live-edit-menu-button:hover,
.live-edit-toolbar .dropdown-menu > li > .live-edit-menu-button:focus {
  background-color: #f5f5f5;
  color: #262626;
  text-decoration: none;
  outline: 0;
}

.live-block {
  position: relative;
  margin-top: 10px;
}

.live-block-text {
  padding: 10px 12px;
  border-left: 4px solid #1abc9c;
  background: #f9f9f9;
}

.live-block-text p:first-child {
  padding-top: 0 !important;
}

.live-block-image {
  min-height: 32px;
}

.live-edit-delete-block {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  opacity: 0.9;
}

.live-block-image .live-edit-delete-block {
  top: 8px;
  right: 8px;
}

.live-edit-inline-textarea {
  min-height: 160px;
  resize: vertical;
}

.live-edit-inline-editor {
  display: block;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #bfe8df;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #333;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.live-edit-inline-editor-title {
  margin-bottom: 4px;
  color: #235f55;
  font-weight: 700;
}

.live-edit-inline-editor-help {
  margin-bottom: 8px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}

.live-edit-inline-editor-actions {
  margin-top: 8px;
  text-align: right;
}

.live-edit-inline-editor-actions .btn + .btn {
  margin-left: 6px;
}

.live-edit-inline-editor .live-edit-error {
  margin-bottom: 8px;
}

.live-edit-insert-toolbar .live-edit-inline-editor {
  margin-top: 8px;
  margin-bottom: 2px;
}

.live-edit-error {
  white-space: pre-line;
}


.live-edit-upload-status {
  margin-bottom: 10px;
}

.live-edit-upload-progress {
  margin: 12px 0 0;
}

.live-edit-file-list {
  max-height: 150px;
  margin: 8px 0 0;
  padding-left: 20px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.5;
}

.live-edit-image-selection {
  margin-bottom: 4px;
}

#live-edit-submit-image[disabled] {
  cursor: not-allowed;
}


.live-edit-block-actions {
  position: static;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
  opacity: 0.95;
}

.live-edit-block-actions .btn {
  line-height: 1.2;
  padding: 2px 6px;
}

.live-edit-block-actions .live-edit-delete-block {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  opacity: 1;
}


.live-edit-block-actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.live-edit-block-rotating {
  position: relative;
}

.live-edit-block-busy-indicator {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: #235f55;
  font-weight: 700;
  pointer-events: none;
}

.live-edit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(35, 95, 85, 0.25);
  border-top-color: #1abc9c;
  border-radius: 50%;
  animation: live-edit-spin 0.8s linear infinite;
}

@keyframes live-edit-spin {
  to {
    transform: rotate(360deg);
  }
}

body.live-edit-inline-editing #page-top,
body.live-edit-inline-editing #pageTop,
body.live-edit-inline-editing #pagetop,
body.live-edit-inline-editing #page_top,
body.live-edit-inline-editing #back-to-top,
body.live-edit-inline-editing #backToTop,
body.live-edit-inline-editing #scroll-top,
body.live-edit-inline-editing #scrollTop,
body.live-edit-inline-editing .page-top,
body.live-edit-inline-editing .pageTop,
body.live-edit-inline-editing .pagetop,
body.live-edit-inline-editing .page_top,
body.live-edit-inline-editing .back-to-top,
body.live-edit-inline-editing .backToTop,
body.live-edit-inline-editing .scroll-top,
body.live-edit-inline-editing .scrollTop,
body.live-edit-inline-editing .go-top,
body.live-edit-inline-editing .goTop,
body.live-edit-inline-editing .totop,
body.live-edit-inline-editing .to-top,
body.live-edit-inline-editing [data-live-edit-back-to-top="1"] {
  display: none !important;
  pointer-events: none !important;
}

.live-edit-block-updated {
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
  transition: outline-color 0.7s ease;
}


.live-edit-insert-toolbar {
  margin: 8px 0 12px;
  padding: 6px 8px;
  text-align: right;
  border: 1px dashed #d7e7e4;
  border-radius: 4px;
  background: rgba(26, 188, 156, 0.06);
}

.live-edit-insert-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-edit-insert-label {
  display: inline-block;
  color: #607d78;
  font-size: 12px;
  vertical-align: middle;
}

.live-edit-insert-toolbar .btn {
  line-height: 1.2;
  padding: 2px 8px;
}

.live-edit-supervisor-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 8px 12px;
  background: rgba(35, 95, 85, 0.96);
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.live-edit-supervisor-header__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-edit-supervisor-header__label {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-edit-supervisor-header__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.live-edit-supervisor-header__link:hover,
.live-edit-supervisor-header__link:focus {
  color: #fff;
  opacity: 0.82;
}


.live-edit-supervisor-header__status {
  flex-basis: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.live-edit-supervisor-header__status.is-warning {
  background: rgba(255, 193, 7, 0.18);
  color: #fff7d1;
}

body.live-edit-supervisor-header-active {
  padding-top: 46px;
}

body.live-edit-supervisor-header-active.live-edit-filesystem-warning-active {
  padding-top: 86px;
}

.live-edit-supervisor-header__link {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.live-edit-report-modal .modal-dialog {
  width: auto;
  max-width: none;
  margin: 12px;
}

.live-edit-report-modal .modal-content {
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

.live-edit-report-modal .modal-body {
  flex: 1 1 auto;
  max-height: calc(100vh - 150px);
  overflow: auto;
  background: #f7faf9;
}

.live-edit-report-loading {
  padding: 24px;
  border: 1px solid #d9e7e4;
  border-radius: 8px;
  background: #fff;
  color: #44645f;
  text-align: center;
  font-weight: 700;
}

.live-edit-report-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.live-edit-report-toolbar label {
  margin-bottom: 0;
  color: #44645f;
}

.live-edit-report-select {
  width: auto;
  min-width: 260px;
}

.live-edit-report-target {
  color: #23423d;
}

.live-edit-report-destination {
  font-weight: 700;
}

.live-edit-report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.live-edit-report-card,
.live-edit-report-panel {
  border: 1px solid #d9e7e4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35, 95, 85, 0.08);
}

.live-edit-report-card {
  padding: 14px;
}

.live-edit-report-card__label {
  color: #607d78;
  font-size: 13px;
}

.live-edit-report-card__value {
  margin-top: 4px;
  color: #235f55;
  font-size: 28px;
  font-weight: 700;
}

.live-edit-report-panel {
  margin-top: 14px;
  padding: 14px;
  overflow-x: auto;
}

.live-edit-report-panel h5 {
  margin-top: 0;
  color: #23423d;
  font-weight: 700;
}

.live-edit-report-table {
  margin-bottom: 0;
  background: #fff;
}

.live-edit-report-table th {
  color: #44645f;
  white-space: nowrap;
}

.live-edit-report-table td {
  vertical-align: top;
}

.live-edit-report-table--recent td:nth-child(2),
.live-edit-report-table--recent td:nth-child(3),
.live-edit-report-path {
  max-width: 420px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .live-edit-report-modal .modal-dialog {
    margin: 0;
  }

  .live-edit-report-modal .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .live-edit-report-modal .modal-body {
    max-height: calc(100vh - 132px);
  }

  .live-edit-report-select {
    width: 100%;
    min-width: 0;
  }
}
