hn_cloud_web/smz-web/css/work/smallSubManagement/stat/personnelStatView.css

210 lines
3.2 KiB
CSS
Raw Permalink Normal View History

2025-11-27 16:55:35 +08:00
body {
background-color: #f2f2f2;
font-family: "Microsoft YaHei", Arial, sans-serif;
}
.container {
padding: 20px;
width: 99%;
margin: 0 auto;
}
/* 人员信息区域 */
.personnel-info-section {
background: white;
padding: 25px;
border-radius: 6px;
margin-bottom: 20px;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
display: flex;
align-items: flex-start;
gap: 20px;
}
.personnel-avatar {
flex-shrink: 0;
}
.avatar-img {
width: 80px;
height: 80px;
border-radius: 6px;
object-fit: cover;
border: 2px solid #e6e6e6;
}
.personnel-details {
flex: 1;
}
.info-grid {
display: flex;
flex-direction: column;
gap: 15px;
}
.info-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 10px;
}
.info-item {
display: flex;
align-items: center;
font-size: 14px;
}
.info-label {
margin-right: 10px;
min-width: 80px;
color: #666;
font-weight: normal;
}
.info-value {
color: #333;
font-weight: 500;
}
.status-active {
color: #5fb878;
}
.status-inactive {
color: #ff5722;
}
/* 区块样式 */
.section {
background: white;
border-radius: 6px;
margin-bottom: 20px;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}
.section-header {
padding: 15px 5px;
border-bottom: 1px solid #e6e6e6;
position: relative;
margin-left: 10px;
}
.section-header::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 20px;
background: #1e9fff;
}
.section-title {
font-size: 16px;
font-weight: bold;
color: #333;
margin-left: 15px;
}
.section-content {
padding: 10px 10px 60px 10px;
}
.search-bar {
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
/* 考勤类型样式 */
.attendance-type-piece {
color: #1e9fff;
}
.attendance-type-daily {
color: #5fb878;
}
.attendance-type-fixed {
color: #ffb800;
}
.attendance-type-rest {
color: #ff5722;
}
.attendance-type-absent {
color: #ff5722;
font-weight: bold;
}
/* DataTables样式调整 */
.dataTables_wrapper {
margin-top: 20px;
}
.dataTables_length {
margin-bottom: 20px;
}
.dataTables_filter {
margin-bottom: 20px;
}
.dataTables_info {
padding-top: 8px;
}
.dataTables_paginate {
padding-top: 8px;
}
table.dataTable {
border-collapse: collapse;
width: 100% !important;
}
table.dataTable thead th {
background-color: #f8f8f8;
font-weight: 600;
border-bottom: 1px solid #ddd;
padding: 12px 8px;
}
table.dataTable tbody td {
padding: 10px 8px;
border-bottom: 1px solid #eee;
}
table.dataTable tbody tr:hover {
background-color: #f5f5f5;
}
/* 响应式设计 */
@media (max-width: 768px) {
.personnel-info-section {
flex-direction: column;
text-align: center;
}
.info-row {
grid-template-columns: 1fr;
gap: 10px;
}
.search-bar {
flex-direction: column;
align-items: stretch;
}
.search-bar input,
.search-bar select {
width: 100%;
margin-bottom: 10px;
}
}