body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

#_dash-app-content {
  height: 100vh !important;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}


/*.btn-toggle:hover,*/
/*.btn-toggle:focus {*/
/*    color: rgba(0, 0, 0, .85);*/
/*    background-color: #86b7fe;*/
/*}*/

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  /*    color: var(--bs-primary-border-subtle);*/
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}

/* 按钮不进行换行显示 */
.btn-no-wrap {
  white-space: nowrap; /* 防止换行 */
  overflow: hidden; /* 隐藏溢出部分 */
  text-overflow: ellipsis; /* 显示省略号（可选） */
}

.nave-link {
  padding: .1875rem .5rem;
  margin-top: .125rem;
}

/*.btn-toggle-nav a:hover,*/
/*.btn-toggle-nav a:focus,*/
.nave-link:hover,
.nave-link:focus {
  color: var(--bs-primary) !important;
  background-color: var(--bs-primary-bg-subtle);
}

.nave-link.active,
.nave-link.active {
  color: var(--bs-primary);
  background-color: var(--bs-primary-bg-subtle);
}

/*.nav-link.active,*/
/*.nav-link.active {*/
/*    background-color: #86b7fe;*/
/*    border-radius: 0.375rem;*/
/*}*/

/*.nave-item:hover,*/
/*.nave-item:focus{*/
/*    background-color: #86b7fe;*/
/*    color: black;*/
/*    border-radius: 0.375rem;*/
/*}*/

/*.nave-item.active{*/
/*    background-color: #86b7fe;*/
/*    border-radius: 0.375rem;*/
/*}*/

.scrollarea {
  overflow-y: auto;
}

@media (min-width: 768px) {

  /* 在黑夜模式下应用的 CSS 样式 */
  th,
  td {
    /*使用text-align属性来设置表格标题的对齐方式*/
    text-align: center !important;
  }
}

@media (max-width: 768px) {

  th,
  td {
    display: block;
    width: 100%;
    text-align: center !important;
  }

  th {
    text-align: center;
    font-weight: bold;
  }
}

table .select-column {
  width: 60px;
}

table .action-column {
  width: 20%;
}

td {
  vertical-align: middle;
}

td.text-sm {
  white-space: nowrap; /* 不换行 */
  overflow: hidden; /* 超出隐藏 */
  text-overflow: ellipsis; /* 添加省略号 */
  max-width: 300px; /* 控制最大宽度 */
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bs-secondary);
}

.w-18 {
  width: 18rem
}

.h-card.h-left .card {
  flex-direction: row !important;
}

.h-card .h-image {
  flex: 1;
  margin: auto;
}

.h-card .h-image img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.h-card.h-left .h-content {
  flex: 2;
}

.h-card.h-row-1 .card {
  flex-basis: calc(100% - 1rem);
}

.h-card.h-row-2 .card {
  flex-basis: calc(50% - 1rem);
}

.h-card.h-row-3 .card {
  flex-basis: calc(33.33333333% - 1rem);
}

.h-card.h-row-4 .card {
  flex-basis: calc(25% - 1rem);
}

.h-card.h-row-5 .card {
  flex-basis: calc(20% - 1rem);
}

.h-card.h-row-6 .card {
  flex-basis: calc(16.66666666% - 1rem);
}

.h-card.h-row-7 .card {
  flex-basis: calc(14.28571428% - 1rem);
}

.h-card.h-row-8 .card {
  flex-basis: calc(33.33333333% - 1rem);
}

.h-card.h-row-9 .card {
  flex-basis: calc(12.5% - 1rem);
}

.h-card.h-row-10 .card {
  flex-basis: calc(10% - 1rem);
}

@media only screen and (max-width: 767px) {
  .h-card .card.w-18.d-flex.flex-column {
    flex-basis: calc(100% - 1rem) !important;
    flex-direction: column !important;
  }

  .h-card .h-image {
    flex: 1 !important;
  }

  .h-card .h-content {
    flex: 2 !important;
  }
}

.h-card.h-content-1 .h-content {
  flex: 1;
}

.h-card.h-content-2 .h-content {
  flex: 2;
}

.h-card.h-content-3 .h-content {
  flex: 3;
}

.h-card.h-content-4 .h-content {
  flex: 4;
}

.h-card.h-content-5 .h-content {
  flex: 5;
}

.h-card.h-content-6 .h-content {
  flex: 6;
}

.h-card.h-content-7 .h-content {
  flex: 7;
}

.h-card.h-content-8 .h-content {
  flex: 8;
}

.h-card.h-content-9 .h-content {
  flex: 9;
}

.h-card.h-content-10 .h-content {
  flex: 10;
}

.h-card.h-image-50 .h-image {
  height: 50px;
}

.h-card.h-image-100 .h-image {
  height: 100px;
}

.h-card.h-image-150 .h-image {
  height: 150px;
}

.h-card.h-image-200 .h-image {
  height: 200px;
}

.h-card.h-image-250 .h-image {
  height: 250px;
}

.h-card.h-image-300 .h-image {
  height: 300px;
}

.h-card.h-image-350 .h-image {
  height: 350px;
}

.h-card.h-image-400 .h-image {
  height: 400px;
}

.h-card.h-image-450 .h-image {
  height: 450px;
}

.h-card.h-image-500 .h-image {
  height: 500px;
}

.h-card.h-image-550 .h-image {
  height: 550px;
}

.h-card.h-image-600 .h-image {
  height: 600px;
}

.h-card.h-image-650 .h-image {
  height: 650px;
}

/* 修改dash的loading状态 */
._dash-loading {
  margin: auto;
  color: transparent;
  width: 0;
  height: 0;
  text-align: center;
}

._dash-loading::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2rem;
  color: black;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner-border 0.75s linear infinite;
  animation: spinner-border 0.75s linear infinite;
  margin-top: 2rem;
}

/* 修改loading ending */

/*.dropdown-item:hover {*/
/*    background-color: #86b7fe;*/
/*}*/

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  font-weight: 800;
  color: #000000;
  border-bottom-width: 2px;
  border-bottom-color: #f97316;
}

.bg-completed {
  background-color: #29b063;
}

.bg-uncompleted {
  background-color: #ffad04;
}

.custom-link {
  text-decoration: none;
  color: white;
}

.custom-link:hover {
  color: gray;
}


/* style.css */
/* 对于屏幕宽度小于600px的设备应用这些样式 */
@media screen and (max-width: 600px) {
  .text-mobile {
    display: block;
  }

  .text-pc {
    display: none;
  }
}

/* 对于屏幕宽度大于或等于600px的设备应用这些样式 */
@media screen and (min-width: 600px) {
  .text-mobile {
    display: none;
  }

  .text-pc {
    display: block;
  }
}

/* 以下为登录页面的css样式 */

/* 外层容器 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #ffffff;
  padding: 40px 20px; /* 给上下左右预留空间 */
  box-sizing: border-box;
  overflow-y: auto; /* 当内容过多时允许滚动 */
}

/* 登录框本体 */
.login-wrapper {
  width: 100%;
  max-width: 350px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 40px 30px 60px 30px;
  /*box-shadow: 13px 13px 20px #cbced1, -13px -13px 20px #fff;*/
}

.logo {
  width: 80px;
  margin: auto;
}

.logo img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  /*box-shadow: 0px 0px 3px #5f5f5f,*/
  /*0px 0px 0px 5px #ecf0f3,*/
  /*8px 8px 15px #a7aaa7,*/
  /*-8px -8px 15px #fff;*/
}

.login-wrapper .name {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 1.3px;
  padding-left: 10px;
  color: #555;
}

.login-wrapper .form-field input {
  width: 100%;
  display: block;
  border: none;
  outline: none;
  background: none;
  font-size: 1.2rem;
  color: #666;
  padding: 10px 15px 10px 10px;
  /* border: 1px solid red; */
}

.login-wrapper .form-field {
  padding-left: 10px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #fff;
}

.login-wrapper .form-field .fas {
  color: #555;
}

/*.login-wrapper .btn {*/
/*  box-shadow: none;*/
/*  width: 100%;*/
/*  height: 40px;*/
/*  background-color: #03A9F4;*/
/*  color: #fff;*/
/*  border-radius: 25px;*/
/*  box-shadow: 3px 3px 3px #b1b1b1,*/
/*  -3px -3px 3px #fff;*/
/*  letter-spacing: 1.3px;*/
/*}*/

/*.login-wrapper .btn:hover {*/
/*  background-color: #039BE5;*/
/*}*/

.login-wrapper a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #03A9F4;
}

.login-wrapper a:hover {
  color: #039BE5;
}

@media (max-width: 380px) {
  .login-wrapper {
    margin: 30px 20px;
    padding: 40px 15px 15px 15px;
  }
}
