html:not(.regab-project-detail-route) [data-regab-section-tabs],
html:not(.regab-project-detail-route) [data-regab-section-context],
html:not(.regab-project-detail-route) [data-regab-sections-banner],
html:not(.regab-project-detail-route) #regab-sections-simple-overview,
html:not(.regab-project-detail-route) #regab-sections-map-overview {
  display: none !important;
}

.regab-sections-sidebar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.regab-sections-sidebar-label {
  padding: 0 13px 2px;
  color: #62778b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.regab-sections-sidebar-list {
  display: grid;
  gap: 2px;
}

.regab-sections-nav-item {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #91a5b9;
  cursor: pointer;
  transition: 0.18s ease;
}

.regab-sections-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #3d5368;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.regab-sections-nav-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.regab-sections-nav-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
}

.regab-sections-nav-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #62778b;
}

.regab-sections-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.regab-sections-nav-item.is-active {
  color: #fff;
  background: #12304d;
  box-shadow: inset 3px 0 #5a92f3;
}

.regab-sections-nav-item.is-active .regab-sections-nav-dot {
  background: #5a92f3;
}

.regab-sections-nav-item.is-active small {
  color: #9bb4c8;
}

.regab-sections-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: stretch;
}

.regab-sections-nav-row.is-active .regab-sections-nav-main-btn {
  color: #fff;
  background: #12304d;
  box-shadow: inset 3px 0 #5a92f3;
}

.regab-sections-nav-row.is-active .regab-sections-nav-main-btn .regab-sections-nav-dot {
  background: #5a92f3;
}

.regab-sections-nav-row.is-active .regab-sections-nav-main-btn small {
  color: #9bb4c8;
}

.regab-sections-nav-main-btn {
  min-width: 0;
}

.regab-sections-nav-tools {
  display: grid;
  grid-auto-flow: column;
  gap: 2px;
  align-content: center;
  padding-right: 4px;
}

.regab-sections-tool-btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7f94a8;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.regab-sections-tool-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.regab-sections-tool-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.regab-sections-hint {
  margin: 0;
  color: #6e7c90;
  font-size: 12px;
  line-height: 1.4;
}
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.regab-sections-field textarea {
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #c9d7ea;
  border-radius: 9px;
  background: #fff;
  color: #1d2f44;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.regab-sections-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.regab-sections-modal-danger {
  min-height: 38px;
  margin-right: auto;
  padding: 0 14px;
  border: 1px solid #efc2c2;
  border-radius: 9px;
  background: #fff5f5;
  color: #a33434;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.regab-sections-modal-danger:hover {
  background: #ffe8e8;
}

.regab-section-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #f3f8ff;
  color: #355070;
  font-size: 13px;
}
.regab-section-context strong {
  color: #1f4f96;
  font-weight: 800;
}

html.regab-section-edit-scroll-lock,
body.regab-section-edit-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.regab-section-edit-scroll-lock {
  touch-action: none;
}

.regab-section-edit-modal .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.regab-section-edit-modal .modal-head .icon-button {
  font-size: 22px;
  line-height: 1;
  color: #355070;
  cursor: pointer;
}
.regab-section-edit-modal .document-form-grid .span-2 {
  grid-column: 1 / -1;
}
.regab-section-edit-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.regab-section-reorder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.regab-section-reorder-hint {
  margin: 0;
  color: #5b6b7c;
  font-size: 13px;
  line-height: 1.4;
}

.regab-section-tab-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}

.regab-section-tab-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5b6b7c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.regab-section-tab-move:hover:not(:disabled) {
  background: #eef4fd;
  border-color: #cbd9ef;
  color: #205bb6;
}

.regab-section-tab-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.regab-simple-tile-moves {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.regab-simple-tile-move {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #f8fafc;
  color: #355070;
  font-weight: 700;
  cursor: pointer;
}

.regab-simple-tile-move:hover:not(:disabled) {
  background: #eaf2ff;
  border-color: #b9d0f4;
  color: #205bb6;
}

.regab-simple-tile-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.regab-sections-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d7e3f2;
  border-radius: 12px;
  background: #f5f9ff;
}

.regab-sections-banner.is-section {
  border-color: #c5d8f5;
  background: linear-gradient(180deg, #eef5ff, #f7faff);
}

.regab-sections-banner-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.regab-sections-banner-copy strong {
  color: #1d2f44;
  font-size: 13px;
  font-weight: 700;
}

.regab-sections-banner-copy span {
  color: #5f7388;
  font-size: 12px;
  line-height: 1.4;
}

.regab-sections-banner-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c9d7ea;
  border-radius: 8px;
  background: #fff;
  color: #24384d;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.regab-sections-banner-btn:hover {
  border-color: #9eb6d4;
  background: #f8fbff;
}

.regab-sections-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 32, 0.46);
}

.regab-sections-modal {
  width: min(480px, 100%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 18, 32, 0.28);
  overflow: hidden;
}

.regab-sections-modal-head {
  padding: 18px 18px 10px;
  display: grid;
  gap: 4px;
}

.regab-sections-modal-head strong {
  color: #1d2f44;
  font-size: 16px;
}

.regab-sections-modal-head p {
  margin: 0;
  color: #5f7388;
  font-size: 13px;
  line-height: 1.4;
}

.regab-sections-modal-form {
  padding: 8px 18px 18px;
  display: grid;
  gap: 12px;
}

.regab-sections-field {
  display: grid;
  gap: 6px;
  color: #24384d;
  font-size: 12px;
  font-weight: 650;
}

.regab-sections-field input,
.regab-sections-field select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c9d7ea;
  border-radius: 9px;
  background: #fff;
  color: #1d2f44;
  font-size: 14px;
  font-weight: 500;
}

.regab-sections-copy-box {
  padding: 12px;
  border: 1px solid #d7e3f2;
  border-radius: 10px;
  background: #f7faff;
  display: grid;
  gap: 8px;
}

.regab-sections-copy-title {
  color: #1d2f44;
  font-size: 12px;
  font-weight: 750;
}

.regab-sections-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #31475d;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.regab-sections-check input {
  margin-top: 2px;
}

.regab-sections-modal-cancel,
.regab-sections-modal-submit {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.regab-sections-modal-cancel {
  border: 1px solid #c9d7ea;
  background: #fff;
  color: #24384d;
}

.regab-sections-modal-submit {
  border: 0;
  background: #1f6feb;
  color: #fff;
}

.regab-sections-modal-submit:disabled,
.regab-sections-modal-cancel:disabled {
  opacity: 0.6;
  cursor: default;
}

[data-regab-sections-shell] {
  display: none !important;
}

.regab-ba-detail-map {
  width: 100%;
  min-height: 330px;
}

.regab-ba-detail-midlabel {
  background: transparent !important;
  border: 0 !important;
}
.regab-ba-detail-midlabel span {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: #94a3b8;
  color: #f8fafc;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 34, 53, .18);
}
.regab-ba-detail-midlabel.is-focused span {
  background: #205bb6;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(23, 34, 53, .28);
}

@media screen {
  :is(html.theme-dark, html[data-theme="dark"], body.theme-dark, body.force-dark) :is(
    .regab-section-context,
    .regab-sections-banner,
    .regab-sections-banner.is-section,
    .regab-sections-modal,
    .regab-section-edit-modal
  ) {
    background: #0d2438;
    border-color: #284b6b;
    color: #edf6ff;
    box-shadow: none;
  }

  :is(html.theme-dark, html[data-theme="dark"], body.theme-dark, body.force-dark) :is(
    .regab-section-context strong,
    .regab-sections-banner-copy strong,
    .regab-sections-modal-head strong,
    .regab-sections-copy-title,
    .regab-sections-field,
    .regab-sections-check
  ) {
    color: #edf6ff;
  }

  :is(html.theme-dark, html[data-theme="dark"], body.theme-dark, body.force-dark) :is(
    .regab-section-context span,
    .regab-sections-banner-copy span,
    .regab-sections-modal-head p,
    .regab-sections-hint
  ) {
    color: #9fb5cc;
  }

  :is(html.theme-dark, html[data-theme="dark"], body.theme-dark, body.force-dark) :is(
    .regab-sections-field input,
    .regab-sections-field select,
    .regab-sections-field textarea,
    .regab-section-edit-modal input,
    .regab-section-edit-modal select,
    .regab-section-edit-modal textarea
  ) {
    background: #071827;
    border-color: #284b6b;
    color: #edf6ff;
  }

  :is(html.theme-dark, html[data-theme="dark"], body.theme-dark, body.force-dark) :is(
    .regab-sections-copy-box,
    .regab-sections-banner-btn,
    .regab-sections-modal-cancel
  ) {
    background: #102b43;
    border-color: #315776;
    color: #edf6ff;
  }

  :is(html.theme-dark, html[data-theme="dark"], body.theme-dark, body.force-dark) :is(
    .regab-sections-banner-btn:hover,
    .regab-sections-modal-cancel:hover
  ) {
    background: #1a3a57;
    border-color: #527da3;
  }
}
