﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 10px; /* Vertically center the text there */
}

.form-group-inline {
    padding-right: 15px;
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1300px) {
    .container {
        width: 1270px;
    }
}

@media (min-width: 1400px) {
    .container {
        width: 1370px;
    }
}

@media (min-width: 1900px) {
    .container {
        width: 1750px;
    }
}

.dropdown:hover .menu-top {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        -webkit-border-radius: 0 6px 6px 6px;
        -moz-border-radius: 0 6px 6px 6px;
        border-radius: 0 6px 6px 6px;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > a:after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #cccccc;
        margin-top: 5px;
        margin-right: -10px;
    }

    .dropdown-submenu:hover > a:after {
        border-left-color: #ffffff;
    }

    .dropdown-submenu .pull-left {
        float: none;
    }

        .dropdown-submenu.pull-left > .dropdown-menu {
            left: -100%;
            margin-left: 10px;
            -webkit-border-radius: 6px 0 6px 6px;
            -moz-border-radius: 6px 0 6px 6px;
            border-radius: 6px 0 6px 6px;
        }


/*
 * Rotate the text and position it.
 * 1. Put on the GPU to ensure the text is rendered correctly
 */
.flag-text-yuanben {
    color: #fff;
    display: inline-block;
    top: 21px;
    left: 0;
    z-index: 1;
    text-transform: uppercase;
    width: 32px;
    text-align: center;
    background-color: #2b59b9;
}

.flag-text-kaobei {
    color: #fff;
    display: inline-block;
    top: 21px;
    left: 0;
    z-index: 1;
    text-transform: uppercase;
    width: 32px;
    text-align: center;
    background-color: #688391;
}

.flag-text-fanying {
    color: #fff;
    display: inline-block;
    top: 21px;
    left: 0;
    z-index: 1;
    text-transform: uppercase;
    width: 32px;
    text-align: center;
    background-color: #ab66bf;
}

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

.li-add {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s var(--n-bezier);
    border-style: dashed !important;
    border-width: 1.5px
}

    .li-add:hover {
        background-color: #e0e0e0 !important;
    }

.li-unselect {
    padding: 10px;
    margin: 5px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #83978445; /* 按钮描边样式 */
    transition: background-color 0.3s;
    cursor: pointer;
}

.li-tips {
    padding: 7px 10px;
    margin: 5px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #83978445; /* 按钮描边样式 */
    transition: background-color 0.3s;
    color: darkgoldenrod;
}

    .li-unselect a {
        color: #383639;
    }

    .li-unselect:hover {
        background-color: #e0e0e0;
    }

    .li-unselect a:hover {
        text-decoration: none;
    }

.li-select {
    background-color: rgb(245 245 245);
    border: 1px solid #4CAF50; /* 按钮描边样式 */
}

.li-select a{
    color: forestgreen;
}

.ul-first-level {
    list-style-type: none !important;

}

    .ul-first-level ul {
        list-style-type: none !important;
    }

    .ul-first-level li:hover .second-level {
        padding: 10px;
        margin: 5px;
        opacity: 1;
        max-height: 100px; /* 设置一个足够大的值，以展开所有内容 */
    }

.ul-second {
    padding-inline-start: 10px;
    padding-right:2px;
}

    .ul-second li {
        /*padding: 8px;*/
        margin: 3px;
        font-size: 12px;
    }

.second-level {
    padding: 0;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease; /* 过渡效果 */
}


.table-container {
    height: 600px; /* 设置合适的高度 */
    overflow: auto;
}

.thead-sticky {
    position: sticky;
    top: -1px;
    background-color: whitesmoke; /* 可以根据自己的需求设置背景颜色 */
}

.table th {
    border-top: none;
    font-weight: 600;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.btn-sm {
    margin-right: 5px;
}

.alert {
    margin-top: 1rem;
}

.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.form-check {
    margin-bottom: 0.5rem;
}