html,
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    overflow: hidden;
    height: 100%;
    background-color: #eee;
    overflow: hidden;
    user-select: none;
}

.head {
    height: 40px;
    background-color: #333;
    color: #ddd;
    text-align: center;
    line-height: 40px;
    top: 0;
    left: 0;
    user-select:none;
}

.head h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}
div.menu{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px !important;
    color: #ddd;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    z-index: 999999;
    pointer-events: all;
}
div.menu:hover .item{
    color: #eee;
    transform: translateX(0);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.menu h1{
    font-size: 26px;
    padding: 0 10px;
    width: 50px;
}
.menu .item{
    top: 0;
    transform: translateX(-200%);
    cursor: pointer;
    width: 120px;
    transition: 0.5s;
    background-color: #222;
    max-height: 0;
    overflow: hidden;
}

.menu .item p{
    display: block;
    line-height: 40px;
    margin: 0 auto;
    border-bottom: 1px solid #444;
    background-color: #222;
    transition: 0.3s;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu .item p:hover{
    background-color: #666;
    color: #fff;
}
#swal2-title{
    font-size: 18px !important;
}
.msg-readlist {
    font-size: 15px;
    transition: 0.3s;
}
.msg-readlist span{
    font-size: 14px;
}
.msg-header{
    display: grid;
    color: #ddd;
    grid-template-columns: repeat(11, 1fr);
    background-color: #333;
}
.msg-content{
    overflow-y: scroll;
    height: 600px;
}
.msg-item{
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    padding: 0 5px;
    border-bottom: 1px solid #ccc;
}
.msg-item:hover{
    background-color: #ddd;
}
.msg-item h1{
    font-size: 14px;
    cursor: pointer;
}
.msg-delete{
    text-shadow:
        1px 1px 0 #456ec0,    /* 左上亮 */
        2px 2px 2px #eee6f5,  /* 右下暗 */
        0 1px 0 #fff,
        0 2px 0 #333;
        font-weight: bold;
        height: 35px;
        width: 35px;
        padding: 10px 10px;
        border-radius: 10%;
        transition: 0.3s;
        cursor: pointer;
}
.msg-delete:hover{
    background-color: #aaa;
    font-size: 18px;
}


.nav-link:hover{
    color: #e97489;
    text-decoration: underline;
    background-color: #bbb;
}


.swal2-actions{
    margin: 0 auto !important;
}

.readmsg {
    position: absolute;
    top: 0;
    right: 0;
    color: #ddd;
    padding: 0 20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 999999;
    pointer-events: all;
    height: 40px;
}
.readmsg span{
    font-size: 15px;
    color: #e97489;
    
} 
.readmsg span:nth-child(2){
    animation: slatecX 250ms linear infinite;
    display: inline-block;
}  
@keyframes slatecX {
    from {
        opacity: 0.7;
        transform: rotate(-15deg);
    }
    to {
        opacity: 1;
        transform: rotate(15deg);
    }
}
.readmsg:hover{
    background-color: #555;
}

.now-time {
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 14px !important;
    color: #ddd;
    padding: 0 10px;
}
.user-login {
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 14px !important;
    color: #ddd;
    padding: 0 10px;
}
.user-icon{
    display: inline-block;  /* 使span元素支持transform */
    animation: spinBall 2s linear infinite;
    border-radius: 50%;
}
@keyframes spinBall {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.buttons {
    position: absolute;
    top: 0;
    right: 10px;
    padding: 0 10px;
    z-index: 99999;
    pointer-events: all;
}

.buttons button {
    /* margin-left: 10px; */
    color: #ddd;
    font: 14px Marlett;
    background-color: transparent;
    border: none;
    height: 38px;
    width: 38px;
    cursor: pointer;
    border-radius: 2px;
}
.buttons button:hover {
    background-color: #666;
    border: 1px solid #666;
    color: #f00;
}

.body {
    position: absolute;
    top: 40px;
    bottom: 24px;
    left: 0;
    right: 0;
    overflow: auto;
    margin: 0 auto;
}
.body table {
    border-collapse: collapse;
    table-layout: fixed; /* 固定表格布局 */
    margin: 5px auto;
    min-width: none;
    text-align: center;
}
.body thead {
    padding: 0;
    color: #ddd;

}
.body thead th {
    position: sticky; /* 固定位置 */
    top: -1px; /* 距离顶部 0 */
    background-color: #2c4688;
    color: #ddd;
    font-weight: bold;  
    padding: 0 5px;
    
}
.table tbody tr {
    color: #1aa282;
    font-size: 14px;
}

/* 为所有列设置默认宽度 */
th, td {
    min-width: 5%;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #ddd;
}
/* 鼠标悬停时显示完整内容 */
td:hover {
    overflow: visible;
    white-space: normal;
    position: relative;
    color: rgb(58, 13, 136);
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
}

.disabled-row {
    pointer-events: none;
    display: none;
    cursor: not-allowed;
}

.toast-msg {
    position: absolute;
    left: 0;
    right: 0;
    background-color: #eee;
    color: #e97489;
    bottom: 80px;
    opacity: 0.9;
    overflow: hidden;
    --animation-duration: 15s; /* 默认值 */
}

.toast-wrapper {
    display: inline-flex;
    width: max-content;
    animation: toast-scroll var(--animation-duration) linear infinite;
}

.toast-content {
    white-space: nowrap;
    padding: 10px 20px;
    margin: 0;
}

@keyframes toast-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.foot {
    height: 24px;
    position: absolute;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 24px;
    bottom: 0px;
    opacity: 0.9;
}
.foot h1 {
    margin: 0 auto;
    font-size: 12px;
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4693cf;
    z-index: 999999;
    opacity: 0.6;
}
/* HTML: <div class="loader"></div> */
.loader {
    width: 100px;
    height: 45px;
    position: relative;
    margin: 30% auto;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    box-shadow: 0 0 0 50px;
    clip-path: polygon(-50px -20px, 10% -12px, 20% 0, calc(50% - 15px) 0, calc(50% - 10px) -20px, calc(50% - 8px) -15px, calc(50% + 8px) -15px, calc(50% + 10px) -20px, calc(50% + 15px) 0, 80% 0, 90% -12px, calc(100% + 50px) -20px, 100% 80%, calc(100% + 10px) calc(100% + 10px), 60% 100%, 50% calc(100% + 15px), 40% 100%, -10px calc(100% + 10px), 0 80%);
}

.loader:after {
    animation: l9 1s infinite;
    transform: perspective(300px) translateZ(0px)
}

@keyframes l9 {
    to {
        transform: perspective(300px) translateZ(100px);
        opacity: 0
    }
}
#swal2-title{
    font-size: 22px;
}
