/* /opt/dashboard/public/css/hypotheses_modal.css */

#hypotheses-modal .hypotheses-modal {
  width: clamp(920px, calc(100vw - 32px), 1180px);
}

#hypotheses-modal .hypotheses-modal__header {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

#hypotheses-modal .hypotheses-modal__head-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

#hypotheses-modal .hypotheses-modal__tabs {
  width: 330px;
  max-width: min(330px, calc(100vw - 210px));
}

#hypotheses-modal .hypotheses-create-btn {
  height: 30px;
  padding: 0 16px;
  white-space: nowrap;
}

#hypotheses-modal .hypotheses-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

#hypotheses-modal .hypotheses-modal__main,
#hypotheses-modal .hypotheses-modal__details {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}

#hypotheses-modal .hypotheses-modal__main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#hypotheses-modal .hypotheses-modal__details {
  display: flex;
  overflow: hidden;
}

#hypotheses-modal .hypotheses-modal__toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

#hypotheses-modal .hypotheses-modal__search {
  display: grid;
  gap: 6px;
}

#hypotheses-modal .hypotheses-modal__toolbar .prices-modal-input {
  text-align: left;
}

#hypotheses-modal .hypotheses-modal__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  grid-auto-rows: max-content;
  gap: 8px;
  align-content: start;
}

#hypotheses-modal .hypotheses-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: var(--text-muted);
}

#hypotheses-modal .hypotheses-empty__title {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 750;
}

#hypotheses-modal .hypotheses-empty__text {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.35;
}

#hypotheses-modal .hypotheses-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  min-height: 0;
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

#hypotheses-modal .hypotheses-card.is-selected {
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.12);
}

#hypotheses-modal .hypotheses-card__main {
  grid-column: 1 / -1;
  min-width: 0;
  padding-right: 0;
}

#hypotheses-modal .hypotheses-card__title {
  appearance: none;
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 170px);
  min-height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  cursor: text;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#hypotheses-modal .hypotheses-card__description {
  appearance: none;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  cursor: text;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#hypotheses-modal .hypotheses-card__description.is-empty {
  color: rgba(161, 161, 170, 0.72);
}

#hypotheses-modal .hypotheses-card__title-input,
#hypotheses-modal .hypotheses-card__description-input {
  width: 100%;
  text-align: left;
  resize: vertical;
}

#hypotheses-modal .hypotheses-card__title-input {
  min-height: 40px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

#hypotheses-modal .hypotheses-card__description-input {
  min-height: 72px;
  margin-top: 4px;
  line-height: 1.35;
}

#hypotheses-modal .hypotheses-card__meta {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 160px;
  justify-content: flex-end;
  color: rgba(161, 161, 170, 0.9);
  font-size: 11px;
}

#hypotheses-modal .hypotheses-card__meta span {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
}

#hypotheses-modal .hypotheses-card__footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
  min-height: 20px;
}

#hypotheses-modal .hypotheses-card__created {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 11px;
  line-height: 1.2;
}

#hypotheses-modal .hypotheses-card__created span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

#hypotheses-modal .hypotheses-card__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  cursor: default;
}

#hypotheses-modal .hypotheses-card__btn {
  flex: 0 0 auto;
}

#hypotheses-modal .hypotheses-card__btn svg {
  width: 16px;
  height: 16px;
}

#hypotheses-modal .hypotheses-card__btn--danger {
  color: rgba(255, 105, 97, 0.95);
}

@media (max-width: 920px) {
  #hypotheses-modal .hypotheses-modal__body {
    grid-template-columns: 1fr;
  }

  #hypotheses-modal .hypotheses-modal__details {
    min-height: 320px;
  }

  #hypotheses-modal .hypotheses-card__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  #hypotheses-modal .hypotheses-modal__toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  #hypotheses-modal .hypotheses-create-btn {
    justify-self: stretch;
  }
}
