/* 医生排班插件 - 前端样式 */
.doctor-schedule-frontend {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.doctor-schedule-frontend h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.schedule-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

#schedule-week-range {
    font-weight: bold;
    min-width: 200px;
    text-align: center;
    font-size: 16px;
}

.schedule-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    border: 1px solid #2c6ecb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-table th {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #2c6ecb;
    font-weight: bold;
    background-color: #125646;
    color: white;
}

/* 科室列（第一列） */
.schedule-table th:first-child {
    background-color: #a8c6f5;
    color: #1a365d;
}

/* 时间段列（第二列） */
.schedule-table th:nth-child(2) {
    background-color: #f1f8ff;
    color: #000;
}

.schedule-table td {
    border: 1px solid #d1e0ff;
    padding: 10px 8px;
    height: 70px;
    vertical-align: middle;
    font-size: 14px;
    text-align: center;
}

/* 科室单元格（第一列） */
.schedule-table td:first-child {
    background-color: #e3f0ff;
    font-weight: bold;
    text-align: center;
    color: #1a365d;
}

/* 时间段单元格（第二列） */
.schedule-table td:nth-child(2) {
    background-color: #f9fcff;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.schedule-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.schedule-cell .doctor-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #1a365d;
    font-size: 15px;
}

.schedule-cell .notes {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
}

.schedule-cell.no-data {
    color: #999;
    font-style: italic;
}

/* 按钮样式 */
.schedule-controls .button {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #2c6ecb;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.schedule-controls .button:hover {
    background: #e5e5e5;
}

.loading {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #666;
}

.error {
    padding: 20px;
    text-align: center;
    color: #d94a4a;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .schedule-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .schedule-controls {
        flex-wrap: wrap;
    }
    
    .button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .schedule-table th, 
    .schedule-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }
    
    .schedule-cell .doctor-name {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .doctor-schedule-frontend {
        padding: 15px;
    }
    
    .schedule-controls {
        flex-direction: column;
    }
    
    #schedule-week-range {
        margin: 10px 0;
    }
    
    .schedule-table th, 
    .schedule-table td {
        padding: 6px 3px;
        font-size: 0.8em;
    }
}