/* common.css - 公共样式（适用于 pbs.php 和 kspbs.php） */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: url(/templets2020/images/bg.png) repeat-x top #f4f4f4;
}

.tips {
    color: #6c7ca1;
    font-size: 13px;
    line-height: 36px;
}

.shift-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0;
    margin-bottom:15px;
}
.shift-info e { color: #666;}
.shift-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 300;
}

.h2title {
    color: #055ad7;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    border-left: 5px #055ad7 solid;
    padding-left: 10px;
}

.bcname {
    color: #fff;
    padding: 0px 2px;
    border-radius: 3px;
    margin-right: 2px;
}

.bctime {
    color: #6c7ca1;
    letter-spacing: -0.5px;
}

.schedule-table,.container-doctor {
    margin: 0 auto;
    max-width: 1160px;
    background-color: #fff;
    border-radius: 10px;
    padding:15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.container-doctor { margin-top: 20px;}

.schedule-table .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.schedule-table .table th,
.schedule-table .table td {
    text-align: center;
    padding: 15px 10px;
    border: 1px solid #ddd;
}

.schedule-table .table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.doctor-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-item {
    padding: 5px 10px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #e7e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.doctor-item a {
    color: #333;
    text-decoration: none;
}
.doctor-item:hover a {color: #fff;}

.doctor-item span {
    padding: 2px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    margin-left: 5px;
}

.doctor-item span e {
    background-color: #ff0000;
    padding: 1px;
    border-radius: 3px;
    margin-left: 2px;
}

.doctor-item:hover {
    transform: scale(1);
    background-color: #ee6100;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .doctor-item {
        font-size: 14px;
    }

    .doctor-info {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .doctor-item {
    }
}
.doctor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.doctor-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 60%;
    float: left;
}

.kslink {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-top: 5px;
}

/* common.css - 新增部分 */

.doctor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.doctor-row .doctor-info {
    flex: 1 1 auto;
    min-width: 60%;
}
.doctor-row .kslink {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-top: 5px;
}

/* common.css 新增 */

/* 医生行通用样式 */
.doctor-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.doctor-row .doctor-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-row .kslink {
    flex-shrink: 0;
    margin-left: 15px;
    white-space: nowrap;
    color: #666;
}

.doctor-row .kslink:visited {
    color: #666;
    text-decoration: none;
}

.kslink {
    flex-shrink: 0;
    color: #666;
    margin-left: 15px;
    white-space: nowrap;
}

.schedule-table .table tr td a.kslink {
    width: 20%;
    display: block;
    float: right;
    min-height: 30px;
    text-align: right;
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 30px;
}
.schedule-table .table tr td a.kslink:visited {
    color: #666;
    text-decoration: none;
}
.schedule-table .table tr td a.kslink:hover {
    color: #1f80ff;
    text-decoration: none;
}
.schedule-table .table tr td a.kslink:active {
    text-decoration: none;
}

.classnameliste { display: block; width: 100%;}

.calendar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    position: relative;
}

.calendar-arrow {
    flex: 0 0 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(63, 63, 63, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.calendar-arrow:hover {
    color: #333;
    transform: scale(1.1);
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    overflow-x: hidden;
    padding: 5px 0;
    scrollbar-width: none;
    flex: 1;
}

.calendar-container::-webkit-scrollbar {
    display: none;
}