/* 表单样式 */
form {
    margin: 0 auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form h1 {
    color: #AB3223;
    text-align: center;
    margin-bottom: 4px;
}

form label {
    display: block;
    margin: 5px 0 5px;
    color: #8C3F2E;
    font-weight: bold;
}

form input[type="text"],
form input[type="date"],
form input[type="submit"],
form button {
    width: 100%;
    box-sizing: border-box;
}

form button[type="submit"] {
    margin-top: 4px;
    background-color: #AB3223;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button[type="submit"]:hover {
    background-color: #93311F;
}


h1,
h2 {
    font-size: 20px;
    text-align: center;
    color: #5F0001;
    font-family: "Arial", sans-serif;
}

@media (max-width: 600px) {

    /* 平板或以上屏幕 */
    #AccessRecords {
        max-width: 360px;
        /* 中等屏幕最大宽度 */
    }
}

@media (min-width: 600px) {

    /* 平板或以上屏幕 */
    #AccessRecords {
        max-width: 560px;
        /* 中等屏幕最大宽度 */
    }
}

@media (min-width: 1200px) {

    /* 大屏幕 */
    #AccessRecords {
        max-width: 900px;
        /* 大屏幕最大宽度 */
    }
}

#AccessRecords {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 1px;
    background-color: #FFF28B;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    scrollbar-width: thin;
    /* Firefox: 设置滚动条为细 */
    scrollbar-color: #CF6B30 #FFE9D3;
    /* Firefox: 滚动条颜色 */
}

label {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

input[type="text"],
input[type="date"] {
    width: 200px;
    padding: 8px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    outline: none;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #0FA3FF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

tr:last-child td {
    border-bottom: none;
}

.batch-operations {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
}

/* 全选复选框样式 */
#select-all {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* 批量按钮基础样式 */
.batch-button {
    padding: 3px 6px;
    margin: 0 3px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

/* 通过按钮样式 */
#batch-approve {
    background-color: #4CAF50;
    color: white;
}

#batch-approve:hover {
    background-color: #45a049;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 拒绝按钮样式 */
#batch-reject {
    background-color: #f44336;
    color: white;
}

#batch-reject:hover {
    background-color: #d32f2f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 消息选择复选框样式 */
.message-select {
    margin: 0 8px 0 5px;
    width: 14px;
    height: 14px;
}

.bubble {
    display: inline-block;
    padding: 10px 16px;
    background-color: #05FF78;
    color: #fff;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    border-radius: 20px;
    animation: bubbleAnimation 0.5s ease-in-out infinite alternate;
}

@keyframes bubbleAnimation {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

/* 通过按钮样式 */
.approve-button {
    background-color: #4CAF50;
    /* 绿色背景 */
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    margin: 2px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.approve-button:hover {
    background-color: #45a049;
    /* 悬停深绿色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.approve-button::before {
    content: "✓ ";
    /* 添加对勾图标 */
}

/* 拒绝按钮样式 */
.reject-button {
    background-color: #f44336;
    /* 红色背景 */
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    margin: 2px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.reject-button:hover {
    background-color: #d32f2f;
    /* 悬停深红色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reject-button::before {
    content: "✗ ";
    /* 添加叉号图标 */
}

/* 统一按钮交互效果 */
.approve-button:active,
.reject-button:active {
    transform: translateY(1px);
}

.delete-link {
    font-size: 15px;
    display: inline-block;
    padding: 2px 6px;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.delete-link:hover,
.logout-link:hover {
    text-decoration: underline;
    /* 鼠标悬停下划线 */
}

.nickname {
    font-size: 19px;
    font-weight: bold;
    color: #333;
}

.container {
    max-height: 320px;
    margin: 4px;
    padding: 4px;
    border: 2px solid #f1db77;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}


.error {
    color: red;
    text-align: center;
}

p {
    font-size: 16px;
    color: #c1440e;
    /* 使用中国传统色彩 */
    font-family: "Microsoft YaHei", sans-serif;
    /*选择中文字体增加高级感*/
    line-height: 1;
}

table th,
table td,
tr {
    white-space: nowrap;
    font-size: 14px;
    padding: 4px;
    text-align: center;
    border: 1px solid #AB3223;
    color: #AB3223;
}

table th {
    font-weight: bold;
}

td:nth-child(2) {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 费用记录表格样式 */
.expense-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expense-table th,
.expense-table td {
    padding: 5px 6px;
    text-align: left;
}

.expense-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

.expense-table tbody tr:hover {
    background-color: #f5f5f5;
}

.checkbox-cell {
    text-align: center;
}

/* 自定义复选框样式 */
.checkbox-label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.styled-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #eee;
    border-radius: 3px;
    transition: all 0.3s;
}

.checkbox-label:hover input~.checkmark {
    background-color: #ccc;
}

.checkbox-label input:checked~.checkmark {
    background-color: #4CAF50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked~.checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.no-record {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}


/* 拖动时的行样式 */
.ui-sortable-helper {
    background-color: #fffacd !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
    z-index: 1;
    border: 1px dashed #ffa500;
}

/* 拖动时的占位位置样式 */
.ui-sortable-placeholder {
    background-color: #f0f8ff;
    border: 2px dashed #4682b4;
    visibility: visible !important;
    height: 40px !important;
}

.ui-sortable-helper {
    display: table;
}

input[type="text"],
input[type="date"],
select {
    padding: 5px;
    border: 1px solid #AB3223;
    border-radius: 3px;
    max-width: 300px;
}

input[type="submit"],
button[type="button"] {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #AB3223;
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #93311F;
    /* 使用中国传统色作为提交按钮悬停背景颜色 */
}

#toggleButton {
    padding: 5px 10px;
    background-color: #AB3223;
    /* 使用中国传统色作为提交按钮背景颜色 */
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#toggleButton:hover {
    background-color: #93311F;
    /* 使用中国传统色作为提交按钮悬停背景颜色 */
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

.delete-button {
    background-color: #D20003;
    color: white;
    padding: 1px 2px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
}

.delete-button:hover {
    background-color: #7B0002;
    /* 鼠标悬停时的更深红色 */
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #7a2f1d;
    /* 边框颜色 */
    background-color: #f6e8d3;
    /* 背景颜色 */
    box-shadow: 2px 2px 5px #888888;
    border-radius: 5px;
}

#tButton {
    padding: 5px 8px;
    font-size: 13px;
    cursor: pointer;
    background-color: #f0c239;
    color: #733F00;
    border: none;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    margin-bottom: 2px;
    text-align: center;
}

input[type="file"]::file-selector-button {
    width: 87px;
    height: 32px;
    font-size: 14px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    padding: 8px 10px;
    transition: all 0.5s;
    white-space: nowrap;
    background-color: #E4F7FF;
    /* 中国色 */
    color: #000;
    border: 1px solid #409eff;
}

tr#total-salary-row td {
    color: green;
}

/* WebKit浏览器的滚动条样式 */
#AccessRecords::-webkit-scrollbar {
    height: 3px;
    /* 设置横向滚动条的高度 */
}

#AccessRecords::-webkit-scrollbar-track {
    background: #FFE9D3;
    /* 滚动条轨道背景 */
}

#AccessRecords::-webkit-scrollbar-thumb {
    background: #CF6B30;
    /* 滚动条滑块背景 */
    border-radius: 4px;
    /* 滚动条滑块圆角 */
}

#AccessRecords::-webkit-scrollbar-thumb:hover {
    background: #A65B20;
    /* 鼠标悬停时的滑块背景 */
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFFAEB;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 999;
}