.schedule-board { display: grid; gap: 20px; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.schedule-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.week-navigation { display: flex; align-items: center; gap: 10px; }
.week-navigation label { display: flex; align-items: center; gap: 9px; color: #565d57; font-size: 13px; font-weight: 700; }
.week-navigation input { border: 1px solid #d8d0c5; border-radius: 9px; padding: 9px 10px; color: var(--ink); }
.weekly-department { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(74, 57, 36, 0.04); }
.weekly-department > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #faf8f4; }
.weekly-department > header div { display: flex; align-items: baseline; gap: 10px; }
.weekly-department h2 { margin: 0; color: #343832; font-size: 17px; }
.weekly-department header span { color: var(--muted); font-size: 12px; }
.weekly-table-wrap { overflow-x: auto; }
.weekly-table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.weekly-table th, .weekly-table td { padding: 12px 8px; border-right: 1px solid #eee9e2; border-bottom: 1px solid #eee9e2; text-align: center; }
.weekly-table th:last-child, .weekly-table td:last-child { border-right: 0; }
.weekly-table tbody tr:last-child td { border-bottom: 0; }
.weekly-table th { background: #fff; color: #656b65; font-size: 12px; }
.weekly-table th strong, .weekly-table th small { display: block; }
.weekly-table th small { margin-top: 4px; color: #a09990; font-weight: 400; }
.weekly-table .doctor-column { width: 145px; text-align: left; padding-left: 18px; }
.weekly-table td.doctor-column strong, .weekly-table td.doctor-column small { display: block; }
.weekly-table td.doctor-column small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.weekly-table .capacity-column { width: 74px; }
.weekly-capacity { width: 58px; border: 1px solid #ddd5cb; border-radius: 8px; padding: 7px 6px; text-align: center; }
.week-day-slots { display: flex; justify-content: center; gap: 5px; }
.week-period { position: relative; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #dcd7cf; border-radius: 9px; background: #fff; color: #888; cursor: pointer; user-select: none; }
.week-period input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.week-period span { font-size: 12px; font-weight: 700; }
.week-period.active { border-color: var(--green); background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px rgba(31, 143, 126, 0.08); }
.week-period em { position: absolute; right: -5px; top: -7px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-style: normal; line-height: 15px; }
