
.left-panel {
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tabs-parent {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
}

.tabs {
  border-bottom: 1px solid #d9d9d9;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 20;
  background: #fff;
}

.tab {
  border: none !important;
  background: #f6f6f6 !important;
  color: #111 !important;      
  font-weight: 600;
  padding: 16px 22px;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}

.tab--selected {
  background: #fff !important;
  color: #111 !important;
}

.tab:not(.tab--selected) {
  color: #666 !important;
}

.tabs-parent .tab-content {
  padding: 0 !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.left-panel .ag-root-wrapper {
  border: 0 !important;
}

.left-panel .ag-theme-alpine,
.left-panel .ag-theme-quartz {
  border: 0 !important;
}

.mechanism-tab-content {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.constants-tab-content,
.concetrations-tab-content {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.constants-main-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 8px 0 8px;
  box-sizing: border-box;
}

.mechanism-tab-content::before,
.constants-tab-content::before,
.concetrations-tab-content::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
  z-index: 3;
}

.mechanism-footer,
.constants-footer,
.concetrations-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px 10px 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mechanism-footer__spacer,
.constants-footer__spacer,
.concetrations-footer__spacer {
  flex: 1 1 auto;
}

.mechanism-clear-btn,
.constants-clear-btn,
.concetrations-clear-btn,
.constants-temp-default-btn {
  min-width: 96px;
  min-height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  border-radius: 14px !important;
  padding: 6px 14px !important;
  font-weight: 500;
}
