/* registrar / annotation / devise レルム共通のカスタムスタイル (.css 直配信 / Propshaft)。
   旧 users_application.scss (users 取り込み) + users.scss を実体 .css 化。
   Bootstrap 5 本体は bootstrap.min.css、日付入力は flatpickr.min.css をレイアウトで直リンクする。 */

.error-text {
  color: #C44D4D;
  font-weight: bold;
}

.error-msg {
  color: #C44D4D;
  margin: 1em 0 1em 0;
}

.error-link {
  border-bottom: 1px solid #C44D4D;
}

.error-link:hover {
  font-weight: bold;
}

.caseInputData__btn button.btn-disabled {
  min-width: 120px;
  opacity: .5;
}

.caseInputData__btn button.btn-registration {
  min-width: 120px;
}

.caseFooter__btn button.btn-registration {
  min-width: 120px;
}

.caseFooter__btn button.btn-disabled {
  min-width: 120px;
  opacity: .5;
}

/* 有害事象の新規追加ボタンに btn-add を追加して対応 */
.caseDataList__title .btn-add {
  margin: 0 0 0 25px;
}


/* ヘッダー固定時の背景色と同じにする */
header.header__nav {
  background: #efefef;
}

/* ヘッダーと要素が被らないようにするための調整 */
.container__main.content-main {
  margin-top: 30px;
}

/* 一覧だけの画面用のヘッダー固定時の設定 */
.container__main.content-main.list-main {
  padding: 210px 60px 0;
  margin-top: 0;
}

/* 一覧だけだがタイトルありの画面用のヘッダー固定時の設定 */
.container__main.content-main.list-title {
  padding: 200px 60px 0;
}

/* リリース後、お知らせが見切れる事象が発生した件で
   急遽対応時に書いたもの */
.container__main.content-main.list-announce {
  padding: 210px 60px 0;
}

@media (max-width: 1279px) {
  .container__main.content-main.list-main {
    padding: 0px 15px 0;
  }

  .container__main.content-main.list-title {
    padding: 0px 15px 0;
  }

  /* リリース後、お知らせが見切れる事象が発生した件で
     急遽対応時に書いたもの */
  .container__main.content-main.list-announce {
    padding: 0px 15px 0;
  }
}

/* 一覧の検索用 */

/* メインタイトルのマージンを0にする */
.container__mainTitle.is-search {
  margin: 0 0 0;
}

/* 検索項目で領域が狭くなるのでテーブル高さを低くする */
/* アノテーションの症例一覧 */
.main__tableList.is-search {
  max-height: calc(100vh - 290px);
}
/* 症例登録の症例一覧 */
.main__tableList.is-search-registar {
  max-height: calc(100vh - 320px);
}

.emptyMessage {
  width: 100%;
  text-align: center;
  margin-top: 100px;
}

/* 一覧だけの画面用のヘッダー固定時の設定 */
.container__main.content-main.list-main.is-search {
  padding: 155px 30px 0;
  margin-top: 0;
}

.search {
  width: 100%;
  min-width: 1390px;
  display: flex;
  margin-bottom: 10px;
}

.search > div.input{
  margin: 0 20px 0 0;
}

.search div.input label:first-child {
  font-size: 16px;
  font-weight: bold;
}

.search div input[type=text],
.search div input[type=date],
.search div button {
  height: 30px;
  border: 1px #C9C9C9 solid;
  border-radius: 6px;
  padding-left: 10px;
}

.search div button {
  height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 0;
}

.search div button.clear-cal {
  background: #ccc;
  border: 1px #C9C9C9 solid;
  border-radius: 9px;
  cursor: pointer;
}

.search div button[type=submit] {
  height: 55px;
  padding: 5px 30px;
  background: #5190C2;
  color: #FFF;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.search > div.buttonBox {
  display: flex;
  align-items: center;
}

.search div.dateBox {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search span.dateTitle {
  width: 50px;
  text-align: right;
}

@media (max-width: 1279px) {
  .container__main.content-main.list-main.is-search {
    padding: 20px 10px 0;
  }
}

/* 横並びから除外パターンの説明文箇所のリンクを .caseDataList__item_text にあわせる */
.caseDataList__item.caseDataList__item_text a {
  color: #469CCE;
}

/* ログイン画面用 */
.container_login {
  min-height: 1024px;
}

/* ログイン画面の注意書き */
.login__supported_browser {
  padding: 0 0 0 30px;
}

.login__supported_browser p {
  line-height: 2;
  padding-top: 10px;
}

/* flash メッセージで追加 */
.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 40px 0 20px;
}

.alert-danger {
  color: #571515;
  background-color: #edd4d4;
  border-color: #e6c3c3;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 40px 0 20px;
}

.alert-flash-danger {
  color: #571515;
  background-color: #edd4d4;
  border-color: #e6c3c3;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 0 0 20px;
}

.alert-flash-return-image {
  color: #533f03;
  background-color: #fff3cd;
  border-color: #ffeeba;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 0 0 20px;
}

/* selectBox に inputText と同じCSSをあてる */
.caseDataList__item table td.inputSelect {}

.inputSelect__wrap {
  display: inline-block;
  width: 100%;
}

.inputSelect__label select {
  padding: 10px;
  font-size: 16px;
  background-color: #fff;
  border: solid #C9C9C9 1px;
  border-radius: 6px;
  width: 100%;
}

/* textarea に inputText と同じCSSをあてる */
.caseDataList__item table td.inputTextArea {}

.inputTextArea__wrap {
  display: inline-block;
  width: 100%;
}

.inputTextArea__label textarea {
  padding: 10px;
  font-size: 16px;
  background-color: #fff;
  border: solid #C9C9C9 1px;
  border-radius: 6px;
  width: 100%;
}

.inputTextArea__label textarea.inputText__readOnly {
  border: none;
  outline: none;
}

.copy_date {
  cursor: pointer;
  font-weight: bold;
  color: #469CCE;
}

.accordion-btn {
  cursor: pointer;
}

.drug-name-accordion-btn {
  display: flex;
  justify-content: space-between;
  width: 80%;
  padding: 10px 10px;
  font-size: 20px;
  border-bottom: #469CCE solid 2px;
}

.dose-change-accordion-btn {
  display: flex;
  justify-content: space-between;
  width: 20%;
  margin: 0 1% 10px 0;
  padding: 10px 25px;
  font-weight: bold;
  color: #fff;
  background-color: #469CCE;
  border: #469CCE solid 1px;
  border-radius: 20px;
}

.all-accordion {
  margin-left: 20px;
}

.all-accordion-sentence {
  font-weight: bold;
}

.all-accordion-btn {
  width: 50px;
  height: 50px;
  background-color: #469CCE;
  padding: 10px;
  font-weight: bold;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.alert-text {
  color: #c4ae4d;
  font-weight: bold;
}

.alert-msg {
  color: #c4ae4d;
  margin: 1em 0 1em 0;
}

/* ログイン画面のロゴ */
.centerBox__login__logo {
  margin: 0 0 20px;
  overflow: hidden;
}

.login__logo {
  padding: 0 25%;
}

.login__logo img {
  height: auto;
  width: 100%;
  border-radius: 10px;
}

@media (max-width: 1279px) {
  .login__logo {
    padding: 0 40%;
  }
}

.title_drug_name {
  width: 80%;
  text-align: left;
}

.coordinate-btn {
  width: 50%;
  padding: 10px 25px;
  font-weight: bold;
  background-color: #4fabe0;
  border: #4fabe0 solid 1px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.dialog__biopsyImage {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.btn-biopsy-image-close,
.btn-annotation-window-close {
  background-color: #5a5d60;
}

.annotationSave_dialog__editConfirm {
  z-index: 20;
}

.back-btn {
  margin-right: 15px;
}

.loadingWrap {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0.6;
}

.loading {
  width: 6em;
  height: 6em;
  border-top: 1em solid rgba(23, 116, 192, 0.2);
  border-right: 1em solid rgba(23, 116, 192, 0.2);
  border-bottom: 1em solid rgba(23, 116, 192, 0.2);
  border-left: 1em solid rgba(23, 116, 192, 1);
  animation: loaderAnime 1s infinite linear;
  border-radius: 50%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: 10;
}

@keyframes loaderAnime {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.dialog__biopsyImage__content {
  display: flex;
}

.dialog__biopsyImage__btn {
  width: calc(100% - 1036.8px);
  padding: 10px
}

.dialog__biopsyImage__btn button {
  width: 100% !important;
  margin-bottom: 10px;
  font-size: 18px;
  max-width: 450px;
}

.annotation-window {
  display: flex;
}

.annotation-canvas {
  flex: 1;
}

.annotation-window-btn {
  flex: 1;
  width: calc(100% - 1036.8px);
  padding: 10px
}

.annotation-window-btn button {
  width: 100% !important;
  margin-bottom: 10px;
  font-size: 18px;
  max-width: 450px;
}

/* アノテーションの横幅を縮ませるとボタンを画像の下に表示する */
@media (max-width: 1199px) {
  .annotation-window {
    display: block;
  }

  .annotation-window-btn {
    width: 100%;
  }
}

.centerBox__title__for__annotation {
  padding: 15px 20px;
  background-color: #e6ffe2;
}

.centerBox__title__for__annotation h2 {
  font-size: 18px;
  font-weight: bold;
}

.btn-to-clinical-case-list {
  background-color: #31a957;
}

.conditional-required {
  display: none;
}

.ref-image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.ref-image-modal-content {
  display: block;
  width: 50%;
  max-width: 50%;
}

.btn-ref-image-modal-close {
  margin: 10px 0 0 10px;
  background-color: #5a5d60;
}

/* 参照用項目の入力項目のスタイルを変更 */
.caseDataList__item.caseDataList__item_reference table th {
  background-color: #676d72;
  color: #fff;
}

/* 参照用項目のタイトル項目のスタイルを変更 */
.reference__view div.caseDataList__title {
  margin-top: 1px;
}

/* 参照用項目の背景のスタイルを変更 */
.reference__view {
  background-color: #afb5bc;
  border-radius: 10px;
  margin-top: 20px;
  padding-top: 5px;
  padding-left: 15px;
  padding-right: 3px;
  padding-bottom: 15px;
}

/* 参照用項目の症例情報 */
.reference__clinicalcase {
  padding-right: 15px;
}

/* 参照項目のユーザー情報 */
.userinforeference__view {
  background-color: #afb5bc;
  border-radius: 10px;
  padding-top: 1px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}


/* お問い合わせ　タイトルと本文を画面幅で改行させるように */
.contact__content {
  word-wrap: break-word; /* 古いブラウザのサポート */
  overflow-wrap: break-word; /* 長い単語を折り返す */
  word-break: break-word; /* 単語の途中でも適切に改行 */
}
