* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.login-container .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-container .form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.login-container .btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container .btn:hover {
    background: #2980b9;
}

.login-container .error-message {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-container .login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-container .checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
}

.login-container .checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.login-container .checkbox-label:hover {
    color: #333;
}

/* ========== 扫码签到页面样式 ========== */

.scan-checkin-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.scan-checkin-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.scan-checkin-container .subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.scan-checkin-container .qr-code-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.scan-checkin-container .qr-code-box {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.scan-checkin-container .qr-code-box canvas {
    display: block;
}

.scan-checkin-container .qr-code-label {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.scan-checkin-container .qr-url {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.scan-checkin-container .qr-url input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

.scan-checkin-container .manual-checkin {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.scan-checkin-container .manual-checkin h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.scan-checkin-container .manual-checkin .form-group {
    margin-bottom: 15px;
}

.scan-checkin-container .manual-checkin .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.scan-checkin-container .manual-checkin .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.scan-checkin-container .manual-checkin .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.scan-checkin-container .manual-checkin .message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.scan-checkin-container .manual-checkin .message.success {
    background: #d4edda;
    color: #155724;
}

.scan-checkin-container .manual-checkin .message.error {
    background: #f8d7da;
    color: #721c24;
}

.scan-checkin-container .tips {
    padding: 15px;
    background: #e7f3ff;
    border-radius: 8px;
    font-size: 13px;
    color: #31708f;
}

.scan-checkin-container .tips p {
    margin: 5px 0;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding-top: 20px;
}

.sidebar .logo {
    text-align: center;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.sidebar .nav-menu {
    list-style: none;
}

.sidebar .nav-menu li {
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar .nav-menu li:hover {
    background: #34495e;
}

.sidebar .nav-menu li.active {
    background: #3498db;
}

.sidebar .nav-menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar .nav-menu li.logout {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

.main-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #2ecc71;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

.editable-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.editable-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.editable-input::placeholder {
    color: #aaa;
}

.schedule-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-table th, .schedule-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.schedule-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.schedule-table .time-slot {
    width: 80px;
    background: #f8f9fa;
    font-weight: 500;
}

.schedule-table .day-header {
    width: 14%;
}

.schedule-table .schedule-cell {
    min-height: 60px;
    position: relative;
}

.schedule-table .editable-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.schedule-table .editable-cell:hover {
    background-color: #f0f8ff;
}

.schedule-item {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-item.occupied {
    background: #e74c3c;
}

.attendance-card {
    text-align: center;
    padding: 40px;
}

.attendance-card .status {
    font-size: 24px;
    margin-bottom: 20px;
}

.attendance-card .status.success {
    color: #27ae60;
}

.attendance-card .status.pending {
    color: #f39c12;
}

.attendance-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s;
}

.attendance-btn:hover {
    transform: scale(1.05);
}

.attendance-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slot-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
}

.slot-item.current-slot {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.current-badge {
    background: #4caf50;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 6px;
}

.statistics-container {
    margin-bottom: 20px;
}

.statistics-container .filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.statistics-container .filter-row select,
.statistics-container .filter-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.statistics-container .actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
}

.statistics-table th, .statistics-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.statistics-table th {
    background: #3498db;
    color: white;
}

.statistics-table .total-row {
    background: #f8f9fa;
    font-weight: bold;
}

.user-form {
    max-width: 600px;
}

.user-form .form-group {
    margin-bottom: 15px;
}

.user-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.user-form .form-group input,
.user-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.dashboard-card .number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-card .label {
    color: #7f8c8d;
    font-size: 14px;
}

.dashboard-card.blue .number { color: #3498db; }
.dashboard-card.green .number { color: #27ae60; }
.dashboard-card.orange .number { color: #f39c12; }
.dashboard-card.red .number { color: #e74c3c; }

@media print {
    .sidebar,
    .actions,
    .filter-row,
    .schedule-toolbar,
    .attendance-toolbar,
    .toolbar-row,
    .time-slot-panel,
    .holiday-panel,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    table {
        border-collapse: collapse;
    }
    
    table th, table td {
        border: 1px solid #333;
    }
    
    body.print-mode-table .records-card,
    body.print-mode-table .attendance-toolbar {
        display: none !important;
    }
    
    body.print-mode-records .printable-card,
    body.print-mode-records .attendance-toolbar {
        display: none !important;
    }
}

/* ========== 新排班管理系统样式 ========== */

/* 工具栏 */
.schedule-toolbar {
    padding: 15px 20px;
}

.toolbar-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-item label {
    font-weight: 500;
}

.toolbar-item input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 时间段管理面板 */
.time-slot-panel {
    border: 2px solid #3498db;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.panel-header span {
    font-size: 18px;
    font-weight: 600;
}

.time-slots-list {
    margin-bottom: 20px;
}

.time-slot-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.time-slot-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.time-slot-item.disabled {
    opacity: 0.5;
}

.slot-color {
    width: 8px;
    height: 40px;
    border-radius: 4px;
    margin-right: 15px;
}

.slot-info {
    flex: 1;
}

.slot-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.slot-apply-to {
    display: inline-block;
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.slot-time {
    display: block;
    color: #666;
    font-size: 13px;
}

.slot-actions {
    display: flex;
    gap: 8px;
}

/* 时间段表单 */
.slot-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.slot-form h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-row .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-picker {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #333;
    box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 日历导航 */
.calendar-nav {
    padding: 15px 20px;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.calendar-header span {
    font-size: 18px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.calendar-grid {
    max-width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    padding: 8px;
    font-weight: 600;
    color: #666;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #e8f4fd;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.today {
    background: #3498db;
    color: white;
}

.calendar-day.selected {
    background: #27ae60;
    color: white;
}

.calendar-day.has-schedule {
    background: #fff3e0;
}

.calendar-day.has-schedule.today {
    background: #3498db;
}

.calendar-day.selected.has-schedule {
    background: #27ae60;
}

.schedule-count {
    font-size: 11px;
    color: #f39c12;
    margin-top: 2px;
}

.calendar-day.today .schedule-count,
.calendar-day.selected .schedule-count {
    color: rgba(255,255,255,0.8);
}

/* 排班详情 */
.schedule-detail {
    padding: 15px 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.detail-header span {
    font-size: 18px;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 10px;
}

.schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-card {
    border: 1px solid #e0e0e0;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    overflow: hidden;
}

.card-time-slot {
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.time-slot-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-slot-name {
    font-weight: 600;
    font-size: 15px;
}

.time-slot-range {
    color: #666;
    font-size: 14px;
}

.card-content {
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.student-section {
    flex: 1;
}

.student-section label,
.room-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
    font-size: 13px;
}

.selected-students {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    min-height: 36px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.selected-students:hover {
    background: #e8e8e8;
}

.room-section {
    min-width: 150px;
}

.room-section select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮样式增强 */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-outline {
    background: white;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.student-modal {
    width: 450px;
}

.copy-modal {
    width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-search {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
}

.student-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.student-item:hover {
    background: #f8f9fa;
}

.student-item.selected {
    background: #e3f2fd;
    border-color: #3498db;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-weight: 500;
}

.student-username {
    font-size: 12px;
    color: #666;
}

.student-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #3498db;
}

.student-item.selected .student-checkbox {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-info {
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

/* Toast 消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 空消息 */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-item {
        width: 100%;
    }
    
    .toolbar-item input[type="date"] {
        width: 100%;
    }
    
    .toolbar-item .btn {
        width: 100%;
    }
    
    .calendar-day {
        padding: 5px;
        min-height: 40px;
        font-size: 13px;
    }
    
    .card-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .room-section {
        width: 100%;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* ========== 日历排班表样式 ========== */

.calendar-schedule {
    padding: 15px 20px;
}

/* 排班网格表头 */
.schedule-grid-header {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 5px;
}

.schedule-grid-header .day-header {
    width: 80px;
    min-width: 80px;
    padding: 10px 8px;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-align: center;
    border-right: 1px solid #ddd;
}

.time-slots-header {
    flex: 1;
    display: flex;
}

.time-slot-header {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    border-left: 3px solid #3498db;
    background: #f8f9fa;
    min-width: 80px;
}

.time-slot-header .slot-time {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #333;
}

.time-slot-header .slot-name {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 排班网格主体 */
.schedule-grid-body {
    max-height: 600px;
    overflow-y: auto;
}

.schedule-week-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.schedule-day-cell {
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.schedule-day-cell.other-month {
    background: #fafafa;
    opacity: 0.6;
}

.schedule-day-cell.today {
    background: #e3f2fd;
}

.day-header-cell {
    width: 80px;
    min-width: 80px;
    padding: 8px;
    text-align: center;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.day-header-cell .day-num {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.day-header-cell .day-name {
    display: block;
    font-size: 11px;
    color: #666;
}

.schedule-day-cell.today .day-header-cell {
    background: #3498db;
}

.schedule-day-cell.today .day-num,
.schedule-day-cell.today .day-name {
    color: white;
}

/* 时间段单元格 */
.day-slots {
    flex: 1;
    display: flex;
}

.schedule-slot-cell {
    flex: 1;
    padding: 6px 4px;
    border-left: 3px solid #3498db;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid #eee;
}

.schedule-slot-cell:hover {
    background: #e8f4fd !important;
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slot-empty {
    font-size: 20px;
    color: #ccc;
    font-weight: bold;
}

.slot-students {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    word-break: break-all;
    line-height: 1.3;
}

.slot-room {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}

/* 编辑模态框 */
.edit-modal {
    width: 400px;
}

.selected-students-display {
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    min-height: 40px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

/* 月份选择器 */
.toolbar-item input[type="month"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* ========== 统计表格样式 ========== */
.printable-card {
    padding: 25px;
}

.table-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.table-subtitle {
    text-align: left;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-left: 10px;
}

.stats-table-wrapper {
    overflow-x: auto;
}

.stats-grid-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
    font-size: 13px;
}

.stats-grid-table th,
.stats-grid-table td {
    border: 1px solid #333;
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
}

.stats-grid-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.stats-grid-table .col-no {
    width: 50px;
    min-width: 50px;
}

.stats-grid-table .col-name {
    width: 80px;
    min-width: 80px;
}

.stats-grid-table .col-date {
    width: 45px;
    min-width: 45px;
}

.stats-grid-table .col-total {
    width: 80px;
    min-width: 80px;
    font-weight: bold;
}

.stats-grid-table .col-salary {
    width: 80px;
    min-width: 80px;
    font-weight: bold;
    color: #27ae60;
}

.stats-grid-table .date-row th {
    font-size: 12px;
}

.stats-grid-table .empty-day {
    background: #f0f0f0;
}

/* ========== 排班表格样式 ========== */
.schedule-grid-card {
    padding: 25px;
}

.schedule-grid-wrapper {
    overflow-x: auto;
}

.schedule-grid-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
    font-size: 13px;
}

.schedule-grid-table th,
.schedule-grid-table td {
    border: 1px solid #333;
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
}

.schedule-grid-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.schedule-grid-table .col-time {
    width: 120px;
    min-width: 120px;
    text-align: left;
    padding-left: 10px;
}

.schedule-grid-table .col-date {
    width: 50px;
    min-width: 50px;
}

.schedule-grid-table .date-row th {
    font-size: 12px;
}

.schedule-grid-table .schedule-row .col-time {
    border-left: 4px solid #3498db;
}

.schedule-grid-table .schedule-cell {
    min-height: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.schedule-grid-table .schedule-cell:hover:not(.empty-day) {
    background: #e8f4fd !important;
}

.schedule-grid-table .empty-day {
    background: #f0f0f0;
    cursor: default;
}

.schedule-grid-table .weekend {
    background: #fff3e0;
}

.schedule-grid-table .weekend:hover {
    background: #ffe0b2;
}

.schedule-grid-table .holiday {
    background: #ffcdd2;
}

.schedule-grid-table .holiday:hover {
    background: #ef9a9a;
}

.time-slot-name {
    font-weight: 600;
    font-size: 13px;
    display: block;
}

.time-slot-range {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.cell-students {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    display: block;
    word-break: break-all;
    line-height: 1.3;
}

.cell-students .normal-checkin {
    color: #27ae60;
}

.cell-students .admin-checkin {
    color: #e67e22;
}

/* ========== 评价表格样式 ========== */
.eval-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.eval-table th,
.eval-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: center;
}

.eval-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.eval-table tr:hover {
    background: #f5f7fa;
}

.eval-table select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* ========== 统计页面筛选样式 ========== */
.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== 评价统计卡片样式 ========== */
.eval-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-qualified {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.stat-unqualified {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.stat-basic {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
}

.stat-excellent {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.stat-pending {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.stat-total {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.eval-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.eval-badge.excellent {
    background: #9b59b6;
    color: white;
}

.eval-badge.qualified {
    background: #27ae60;
    color: white;
}

.eval-badge.basic {
    background: #f39c12;
    color: white;
}

.eval-badge.unqualified {
    background: #e74c3c;
    color: white;
}

.eval-badge.pending {
    background: #95a5a6;
    color: white;
}

.eval-result-text {
    font-size: 14px;
    font-weight: 500;
}

.eval-result-text.excellent {
    color: #9b59b6;
}

.eval-result-text.qualified {
    color: #27ae60;
}

.eval-result-text.basic {
    color: #f39c12;
}

.eval-result-text.unqualified {
    color: #e74c3c;
}

.eval-result-text.pending {
    color: #95a5a6;
}

/* ========== 移动端响应式设计 ========== */
@media (max-width: 768px) {
    /* 侧边栏 */
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: #2c3e50;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        font-size: 18px;
        cursor: pointer;
    }
    
    /* 主内容区域 */
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        padding-top: 60px;
    }
    
    /* 卡片 */
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* 表格容器 */
    .stats-table-wrapper,
    .schedule-grid-wrapper,
    .eval-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 表格字体 */
    .stats-grid-table,
    .schedule-grid-table,
    .eval-grid-table {
        font-size: 11px;
    }
    
    .stats-grid-table th,
    .stats-grid-table td,
    .schedule-grid-table th,
    .schedule-grid-table td,
    .eval-grid-table th,
    .eval-grid-table td {
        padding: 4px 2px;
    }
    
    /* 列宽调整 */
    .stats-grid-table .col-no,
    .schedule-grid-table .col-time {
        min-width: 40px;
    }
    
    .stats-grid-table .col-name,
    .eval-grid-table .col-name {
        min-width: 60px;
    }
    
    .stats-grid-table .col-date,
    .schedule-grid-table .col-date {
        min-width: 35px;
    }
    
    .stats-grid-table .col-total {
        min-width: 50px;
    }
    
    /* 按钮 */
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    /* 工具栏 */
    .toolbar-row,
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .toolbar-item,
    .filter-item {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-item input,
    .filter-item input,
    .toolbar-item select,
    .filter-item select {
        width: 100%;
    }
    
    /* 表单 */
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
    }
    
    /* 仪表盘卡片 */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card .number {
        font-size: 28px;
    }
    
    /* 评价统计 */
    .eval-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    /* 模态框 */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    /* 学生列表 */
    .student-list {
        max-height: 40vh;
    }
    
    .student-item {
        padding: 10px;
    }
    
    /* 时间段面板 */
    .time-slot-panel {
        padding: 15px;
    }
    
    .time-slot-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .slot-actions {
        justify-content: flex-start;
    }
    
    /* 签到页面 */
    .attendance-card {
        padding: 20px 15px;
    }
    
    .attendance-status {
        font-size: 16px;
    }
    
    .attendance-info p {
        font-size: 14px;
    }
    
    /* 打印样式 */
    @media print {
        .sidebar,
        .mobile-menu-btn {
            display: none !important;
        }
        
        .main-content {
            margin-left: 0;
            padding: 0;
        }
    }
}

/* 桌面端隐藏移动菜单按钮 */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ========== 签到表样式 ========== */
.attendance-toolbar {
    margin-bottom: 20px;
}

.attendance-grid-wrapper {
    overflow-x: auto;
}

.attendance-grid-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
    font-size: 13px;
}

.attendance-grid-table th,
.attendance-grid-table td {
    border: 1px solid #333;
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
}

.attendance-grid-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.attendance-grid-table .col-time {
    width: 120px;
    min-width: 120px;
    text-align: left;
    padding-left: 10px;
}

.attendance-grid-table .col-date {
    width: 50px;
    min-width: 50px;
}

.attendance-grid-table .date-row th {
    font-size: 12px;
}

.attendance-grid-table .attendance-row .col-time {
    border-left: 4px solid #3498db;
}

.attendance-grid-table .attendance-cell {
    min-height: 50px;
    transition: background 0.2s;
}

.attendance-grid-table .attendance-cell:hover {
    background: #e8f4fd !important;
}

.attendance-grid-table .empty-day {
    background: #f0f0f0;
}

.attendance-grid-table .weekend {
    background: #fff3e0;
}

.attendance-grid-table .weekend:hover {
    background: #ffe0b2;
}

.attendance-grid-table .holiday {
    background: #ffcdd2;
}

.attendance-grid-table .holiday:hover {
    background: #ef9a9a;
}

/* 今日统计 */
.today-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.today-stats .stat-item {
    flex: 1;
    min-width: 150px;
}

/* 签到记录表格 */
.records-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.records-table th,
.records-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: center;
}

.records-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.records-table tr:hover {
    background: #f5f7fa;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .attendance-grid-table {
        font-size: 11px;
    }
    
    .attendance-grid-table .col-time {
        min-width: 80px;
    }
    
    .attendance-grid-table .col-date {
        min-width: 35px;
    }
    
    .today-stats {
        flex-direction: column;
    }
    
    .records-table {
        font-size: 12px;
    }
    
    .records-table th,
    .records-table td {
        padding: 8px 4px;
    }
}