/* 排班表样式 - 根据图片样式重写 */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 30px;
    table-layout: fixed;
}

/* 表头样式 - 灰色背景 */
.schedule-table thead th {
    background: #0d4a94;
    color: #fff;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* 科室列样式 - 固定宽度 */
.department-cell {
    background: #0d4a94;
    font-weight: bold;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    width: 80px;
    padding: 8px 5px;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* 时段列样式 - 固定宽度 */
.time-cell {
    background: #f9f9f9;
    font-weight: bold;
    text-align: center;
    width: 60px;
    vertical-align: middle;
    color: #333;
    padding: 8px 5px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* 医生名字单元格 */
.doctor-cell {
    padding: 8px 5px;
    border: 1px solid #ddd;
    vertical-align: top;
    min-height: 50px;
}

/* 医生名字样式 - 简洁显示 */
.doctor-name {
    display: block;
    margin: 2px 0;
    padding: 3px 5px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.doctor-name:hover {
    background-color: #e8f3fa;
    color: #0168b7;
}

/* 空单元格样式 */
.empty-cell {
    display: block;
    margin: 2px 0;
    padding: 3px 5px;
    font-size: 13px;
    line-height: 1.3;
    color: #999;
    font-style: italic;
}

/* 隔行变色 - 非常浅的灰色 */
.schedule-table tbody tr.row-odd {
    background-color: white;
}

.schedule-table tbody tr.row-even {
    background-color: #fafafa;
}

/* 鼠标悬停效果 */
.schedule-table tbody tr:hover {
    background-color: #f0f9ff !important;
}

/* 医生详情弹窗样式 */
.doctor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
/* 普通门诊样式 */
.regular-clinic {
    display: block;
    margin: 2px 0;
    padding: 3px 5px;
    font-size: 13px;
    line-height: 1.3;
    color: #0168b7;
    font-weight: bold;
    text-align: center;
    background-color: #f0f9ff;
    border: 1px solid #c2e0ff;
    border-radius: 3px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e74c3c;
}

.modal-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.doctor-photo {
    flex-shrink: 0;
    width: 140px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    background-color: #f5f5f5;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-info h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 20px;
    font-weight: bold;
}

.info-item {
    margin-bottom: 12px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #0168b7;
}

.info-item strong {
    color: #333;
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
}

.info-item span {
    color: #666;
    line-height: 1.5;
}

/* 表格列宽调整 */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
    width: 80px; /* 科室列 */
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
    width: 60px; /* 时段列 */
}

/* 星期列平均分配剩余宽度 */
.schedule-table th:nth-child(n+3),
.schedule-table td:nth-child(n+3) {
    width: calc((100% - 140px) / 7);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .schedule-table {
        font-size: 13px;
    }
    
    .doctor-name {
        font-size: 12px;
    }
    
    .department-cell,
    .time-cell {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .doctor-photo {
        width: 120px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .doctor-info h3 {
        font-size: 18px;
    }
    
    .info-item {
        padding: 6px;
        font-size: 14px;
    }
}