/* 报表管理页面样式 */
.report-container {
    width: 100%;
    height: calc(100% - 50px);
    padding: 0;
    box-sizing: border-box;
    color: #fff;
}

/* 修改报表头部区域样式 */
.report-header {
    background: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

/* 报表类型选择区 */
.report-tabs {
    display: flex;
    padding: 0;
    background: none;
    margin: 0;
    border-bottom: none;
    position: relative;
    top: 0;
    left: 0;
}

.tab-btn {
    background: rgba(0, 186, 255, 0.1);
    border: 1px solid rgba(0, 186, 255, 0.3);
    border-bottom: 1px solid rgba(0, 186, 255, 0.3);
    border-radius: 0;
    padding: 15px 40px;
    margin-right: 0;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: none;
}

.tab-btn:first-child {
    border-radius: 5px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 5px 0 0;
}

.tab-btn:hover {
    background: rgba(0, 186, 255, 0.3);
}

.tab-btn.active {
    background: rgba(0, 186, 255, 0.4);
    border-bottom: 1px solid rgba(0, 24, 60, 0.5);
}

/* 报表操作区 */
.report-actions {
    display: flex;
    justify-content: space-between;
    margin: 0 0 20px 0;
    background: rgba(0, 24, 60, 0.5);
    padding: 15px;
    border-radius: 0 0 5px 5px;
    border-top: none;
}

.search-box {
    display: flex;
    width: 50%;
}

/* 筛选下拉框样式 */
.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(0, 186, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 4px 0 0 4px;
    height: 36px;
    font-size: 14px;
    min-width: 120px;
}

/* 修改搜索框样式，使其与筛选框配合 */
.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 186, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 0;
    border-left: none;
    height: 36px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 15px;
    background: rgba(0, 186, 255, 0.3);
    border: 1px solid rgba(0, 186, 255, 0.3);
    border-left: none;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s;
    height: 36px;
    font-size: 14px;
    font-weight: bold;
}

.search-box button:hover {
    background: rgba(0, 186, 255, 0.5);
}

#addNewBtn {
    padding: 8px 20px;
    background: rgba(0, 186, 255, 0.3);
    border: 1px solid rgba(0, 186, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    height: 36px;
    font-size: 14px;
    font-weight: bold;
}

#addNewBtn:hover {
    background: rgba(0, 186, 255, 0.5);
}

/* 报表内容区 */
.report-content {
    display: none;
    background: rgba(0, 24, 60, 0.5);
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    overflow-x: auto;
}

.report-content.active {
    display: block;
}

/* 报表表格样式 */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #fff;
    font-size: 14px;
}

.report-table th, .report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 186, 255, 0.3);
}

.report-table th {
    background-color: rgba(0, 24, 60, 0.7);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    font-size: 15px;
}

.report-table th:hover {
    background-color: rgba(0, 24, 60, 0.9);
}

.report-table th::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
}

.report-table th.sort-asc::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}

.report-table th.sort-desc::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
}

.report-table tr:nth-child(even) {
    background-color: rgba(0, 24, 60, 0.3);
}

.report-table tr:nth-child(odd) {
    background-color: rgba(0, 24, 60, 0.2);
}

.report-table tr:hover {
    background-color: rgba(0, 186, 255, 0.2);
}

.report-table .edit-btn, .report-table .delete-btn {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.report-table .edit-btn {
    background-color: #3498db;
    color: white;
}

.report-table .edit-btn:hover {
    background-color: #2980b9;
}

.report-table .delete-btn {
    background-color: #e74c3c;
    color: white;
}

.report-table .delete-btn:hover {
    background-color: #c0392b;
}

.empty-table {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

/* 操作按钮 */
.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    background: rgba(0, 186, 255, 0.2);
    border: 1px solid rgba(0, 186, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: bold;
}

.action-btn:hover {
    background: rgba(0, 186, 255, 0.4);
}

.action-btn.delete {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.action-btn.delete:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    padding: 5px 10px;
    margin: 0 5px;
    background: rgba(0, 186, 255, 0.2);
    border: 1px solid rgba(0, 186, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.pagination button:hover {
    background: rgba(0, 186, 255, 0.4);
}

.pagination button.active {
    background: rgba(0, 186, 255, 0.5);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: #1d1f33;
    border: 1px solid rgba(0, 186, 255, 0.3);
    margin: 5% auto;
    padding: 20px;
    width: 60%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 186, 255, 0.2);
    color: #fff;
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* 删除确认模态框样式 */
.delete-modal {
    max-width: 400px;
    text-align: center;
    padding: 30px;
}

.delete-modal h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.delete-modal p {
    margin-bottom: 25px;
    font-size: 16px;
}

.delete-modal .form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.delete-modal button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#confirmDeleteBtn {
    background-color: #e74c3c;
    color: white;
}

#confirmDeleteBtn:hover {
    background-color: #c0392b;
}

#cancelDeleteBtn {
    background-color: #7f8c8d;
    color: white;
}

#cancelDeleteBtn:hover {
    background-color: #95a5a6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 186, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 4px;
    height: 36px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.form-actions button {
    padding: 8px 20px;
    margin: 0 10px;
    background: rgba(0, 186, 255, 0.3);
    border: 1px solid rgba(0, 186, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: bold;
}

.form-actions button:hover {
    background: rgba(0, 186, 255, 0.5);
}

.form-actions .cancel-btn,
#cancelDeleteBtn {
    background: rgba(150, 150, 150, 0.3);
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.form-actions .cancel-btn:hover,
#cancelDeleteBtn:hover {
    background: rgba(150, 150, 150, 0.5);
}

#confirmDeleteBtn {
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

#confirmDeleteBtn:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* 修复头部样式 */
.head {
    height: 80px;
    background: url(/static/images/head_bg.png) no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    z-index: 100;
}

.head h1 {
    color: #fff;
    text-align: center;
    font-size: 34px;
    line-height: 80px;
    margin: 0;
}

.head .time {
    position: absolute;
    top: 0;
    right: 30px;
    line-height: 80px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

/* 修复头部按钮样式 */
.head .logout-btn, .head .home-btn {
    position: absolute;
    top: 20px;
    background: rgba(0, 186, 255, 0.1);
    border: 1px solid rgba(0, 186, 255, 0.3);
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.head .logout-btn {
    left: 150px;
    right: auto;
}

.head .home-btn {
    left: 20px;
}

.head .logout-btn:hover, .head .home-btn:hover {
    background: rgba(0, 186, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.head .logout-btn a, .head .home-btn a {
    color: white !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.icon-logout, .icon-home {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    vertical-align: middle;
    margin-right: 8px;
    filter: brightness(1.2);
}

.icon-logout {
    background: url('/static/images/logout.png') no-repeat;
}

.icon-home {
    background: url('/static/images/home.png') no-repeat;
}

/* 修改报表头部区域和标签样式 */
.mainbox {
    padding: 0;
    margin: 0;
    width: 100%;
    height: calc(100% - 80px);
}

/* 添加通知提示框样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    z-index: 1100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.success {
    background-color: rgba(40, 167, 69, 0.9);
    border-left: 5px solid #28a745;
}

.notification.error {
    background-color: rgba(220, 53, 69, 0.9);
    border-left: 5px solid #dc3545;
}

.notification.info {
    background-color: rgba(0, 123, 255, 0.9);
    border-left: 5px solid #007bff;
}

.close-notification {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 20px;
    line-height: 16px;
    cursor: pointer;
}

/* 添加字体样式 */
body, table, input, select, button {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
} 