@import url('/assets/css/00-tokens.css?v=0.0.66');
@import url('/assets/css/01-base.css?v=0.0.66');
@import url('/assets/css/02-layout.css?v=0.0.66');
@import url('/assets/css/03-components.css?v=0.0.66');
@import url('/assets/css/04-pages.css?v=0.0.66');

.legal-view {
  min-height: calc(100vh - 220px);
}

.legal-form {
  min-height: calc(100vh - 220px);
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.legal-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 340px);
  max-height: calc(100vh - 340px);
}

.legal-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.legal-editor-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.legal-editor-block > span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.legal-editor-block textarea {
  flex: 1;
  min-height: 0;
  height: 100%;
  resize: none;
  overflow: auto;
}

.legal-form__actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .legal-view,
  .legal-form {
    min-height: auto;
  }

  .legal-panel {
    min-height: auto;
    max-height: none;
  }

  .legal-editor-grid {
    grid-template-columns: 1fr;
  }

  .legal-editor-block textarea {
    min-height: 180px;
    height: auto;
    resize: vertical;
  }
}


/* v0.0.66 */
.backoffice-tab {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #6f6659;
}

.backoffice-tab--active {
  background: transparent;
  border-color: #2f281f;
  color: #2f281f;
}

.crm-inline-item--empty {
  color: #7b7468;
}


/* v0.0.66 */
.backoffice-tabs-bar {
  position: relative;
  z-index: 20;
  background: #fffdf9;
  border-bottom: 1px solid rgba(210, 204, 196, 0.9);
  backdrop-filter: none;
}

.backoffice-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 52px;
  margin: 0;
  flex-wrap: wrap;
}

.backoffice-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 4px;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7b7468;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.backoffice-tab:hover,
.backoffice-tab:focus-visible {
  background: transparent !important;
  color: #2f281f;
  box-shadow: none !important;
  transform: none !important;
}

.backoffice-tab--active {
  background: transparent !important;
  border-color: #2f281f !important;
  color: #2f281f;
}

.crm-contact-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.crm-contact-panel__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece3d6;
}

.crm-inline-item {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
