:root {
  --font-size-rate: 1.50;
}

html,
body {
  height: 100%;
}
body {
  display: flex;
  color: #000000;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #f5f5f5;
}

.notice {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 0px;
}

.form-admin {
  width: 100%;
  max-width: 490px;
  padding: 15px;
  margin: auto;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}
.form-signin .form-floating:focus-within {
  z-index: 2;
}

.offcanvas-end.show {
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
}
.offcanvas-end {
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  width: 250px;
}
.navbar {
  min-width: 360px !important;

  padding-top: 10px;
  background-color: #f5f5f5;
}
.nav-link {
  padding: 0.5rem;
}
.navbar-toggler {
  padding: 0.25rem 0.68rem;
}
.navbar-toggler:hover {
  box-shadow: 0 0 0 0.06rem;
}
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0.05rem;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
.has-navbar {
  margin-top: 4rem !important;
}
.keyword-search {
  max-width: 15rem !important;
}

.offcanvas-body {
  color: #6c757d;
  background-color: #f5f5f5;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover {
  cursor: unset;
  color: rgba(255, 255, 255, 1);
  background-color: rgba(109, 132, 180, 1);
}
.nav-sidebar a:hover {
  color: rgba(109, 132, 180, 1);
  background-color: rgba(109, 132, 180, 0.2);
}

.user {
  color: #f5f5f5;
  background-color: rgba(109, 132, 180, 1);
  font-size: calc(0.6rem * var(--font-size-rate));
  font-weight: bold;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  margin-bottom: 0.5rem;
}
.message {
  font-size: calc(0.6rem * var(--font-size-rate));
}
.row > .col-1 {
  text-align: center;
  font-size: calc(0.6rem * var(--font-size-rate));
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.result > [class^="col-"] {
  font-size: calc(0.6rem * var(--font-size-rate));
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.result > .title {
  background-color: rgba(239, 239, 239, 1);
}
.label {
  color: #000000;
  font-size: calc(0.6rem * var(--font-size-rate));
  font-weight: bold;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.graph > .col-1 {
  height: 190px;
}
.time > .col-1 {
  font-size: calc(0.7rem * var(--font-size-rate));
  font-weight: bold;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}
.status-info {
  background-color: rgba(0, 207, 111, 1);
}
.status-warinig {
  background-color: rgba(241, 207, 19, 1);
}
.status-alert {
  background-color: rgba(248, 54, 62, 1);
}
.status-unknown-text {
  color: rgba(255, 255, 255, 0.3);
}
.status-info-text {
  color: rgba(0, 207, 111, 1);
}
.status-warinig-text {
  color: rgba(241, 207, 19, 1);
}
.status-alert-text {
  color: rgba(255, 54, 62, 1);
}
.status-alert-text-result {
  color: rgba(236, 25, 25, 1);
}
.status-alert-text-time {
  color: rgba(255, 0, 0, 1);
}


.centering-title {
  display: inline-flex;
  align-items: end;
}

/* テーブルの省略スタイル */
.table-ellipsis-l {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.table-ellipsis-m {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.table-ellipsis-s {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}


.sort-asc svg {
  display: inline;
}
.sort-desc svg {
  display: inline;
}
.sort-icon {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: middle;
}


.button-fixed {
  white-space: nowrap;
}



/* 通常は横並び */
.filter-container .group-1,
.filter-container .group-2 {
    display: flex;
    flex-wrap: nowrap;
}

.form-text-end {
  text-align: right !important;
  padding-left: 0;
  padding-right: 0;
}

/* 画面が狭い時、グループごとに上下に並べる */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }

    .group-1, .group-2 {
        width: 100%;
        justify-content: flex-start;
    }

    .group-1 select, .group-2 input, .group-2 button {
        width: 100%; /* 各アイテムが横幅いっぱいに広がる */
    }

    .group-2 .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .form-text-end {
      text-align: center !important;
    }
  
}



/* 520px以下のときはすべて一列に並べる。ただし日付範囲は横並びのまま */
@media (max-width: 520px) {
  .filter-container {
    flex-direction: column;
  }

  .group-1, .group-2 {
    flex-direction: column;
  }

  .group-1 select, .group-2 input, .group-2 button {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 日付範囲の調整 */
  .group-2 .d-flex {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }

  /* 日付入力フィールドの幅制御 */
  .group-2 .d-flex input {
    width: calc(50% - 15px); /* 日付フィールドを等間隔にし、固定幅の空白と合うよう調整 */
  }

  /* 一括PDFボタンの幅が広がらないようにする */
  .group-2 button {
    width: auto; /* ボタンの幅が内容に合わせて自動調整される */
  }

}
