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;
}

.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: 140px;*/
/*}*/

td {
    vertical-align: middle;
}

.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;
    }
}