.schedule-page{max-width:1320px}.schedule-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff,#f7f4ff);border:1px solid #ececf2}.schedule-hero h1{margin:8px 0;font-size:34px}.schedule-hero p{margin:0;color:#6b7280}.schedule-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.schedule-stats article{background:#fff;border:1px solid #ececf2;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.schedule-stats span{display:block;color:#6b7280;font-size:13px;margin-bottom:9px}.schedule-stats strong{font-size:28px}.schedule-controls{padding:16px 20px}.schedule-main-tabs,.calendar-view-tabs{display:flex;gap:4px;background:#f1f5f9;padding:4px;border-radius:12px;width:max-content}.schedule-tab,.calendar-view-tabs button{border:0;background:transparent;border-radius:9px;padding:9px 15px;font-weight:700;color:#64748b;cursor:pointer}.schedule-tab.is-active,.calendar-view-tabs button.is-active{background:#fff;color:#5b21b6;box-shadow:0 1px 4px rgba(15,23,42,.12)}.schedule-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:12px;align-items:end;margin-top:16px}.schedule-filters label,.date-jump,.schedule-form-grid>label{display:flex;flex-direction:column;gap:6px}.schedule-filters label span,.date-jump span,.schedule-form-grid label>span{font-size:12px;font-weight:700;color:#475569}.schedule-filters select,.date-jump input,.schedule-form-grid input,.schedule-form-grid select,.schedule-form-grid textarea{width:100%;border:1px solid #dbe2ea;border-radius:10px;background:#fff;padding:10px 12px;color:#1f2937;font:inherit}.schedule-section{overflow:hidden}.section-heading,.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2,.calendar-toolbar h2{margin:0;font-size:22px}.section-heading p{margin:5px 0 0;color:#6b7280}.date-jump{min-width:160px}.date-jump.compact{min-width:145px}.schedule-table-wrap{overflow:auto}.schedule-table{width:100%;border-collapse:collapse;min-width:850px}.schedule-table th,.schedule-table td{padding:13px 12px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle}.schedule-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc}.schedule-table td{font-size:14px}.doctor-cell strong,.doctor-cell small{display:block}.doctor-cell small,.muted{color:#64748b;margin-top:4px}.status-pill,.publication-pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.status-available{background:#dcfce7;color:#166534}.status-low{background:#fef3c7;color:#92400e}.status-full,.status-cancelled{background:#fee2e2;color:#991b1b}.status-unavailable{background:#e2e8f0;color:#475569}.publication-pill{margin-left:5px;background:#ede9fe;color:#5b21b6}.table-actions{display:flex;gap:6px}.table-actions button{border:1px solid #dbe2ea;background:#fff;border-radius:8px;padding:6px 9px;cursor:pointer}.table-actions .danger{color:#b91c1c}.empty-schedule{text-align:center!important;padding:38px!important;color:#64748b}.calendar-toolbar{flex-wrap:wrap}.calendar-nav{display:flex;align-items:center;gap:8px}.calendar-nav>button{width:36px;height:36px;border:1px solid #dbe2ea;background:#fff;border-radius:9px;font-size:20px;cursor:pointer}.calendar-nav #calendarToday{width:auto;font-size:13px;font-weight:700;padding:0 13px}.calendar-nav h2{margin-left:6px}.calendar-canvas{border:1px solid #e2e8f0;border-radius:14px;overflow:auto;background:#fff}.month-weekdays,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr))}.month-weekdays div{padding:10px;text-align:center;background:#f8fafc;color:#64748b;font-size:12px;font-weight:800;border-right:1px solid #e2e8f0}.month-day{min-height:130px;border-top:1px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:8px;background:#fff}.month-day.is-other{background:#f8fafc;color:#94a3b8}.month-day.is-today{box-shadow:inset 0 0 0 2px #7c3aed}.month-day__number{font-size:12px;font-weight:800;margin-bottom:5px}.calendar-event{display:block;width:100%;border:0;border-left:4px solid var(--event-color,#5b21b6);background:#f5f3ff;background:color-mix(in srgb,var(--event-color,#5b21b6) 12%,white);border-radius:6px;padding:5px 6px;margin:3px 0;text-align:left;font-size:11px;color:#1e293b;cursor:pointer;overflow:hidden}.calendar-event strong,.calendar-event small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event small{margin-top:2px;color:#64748b}.more-events{font-size:11px;color:#5b21b6;font-weight:700}.time-calendar{min-width:850px}.time-head,.time-row{display:grid;grid-template-columns:72px repeat(var(--days),minmax(130px,1fr))}.time-head>div{padding:10px;text-align:center;background:#f8fafc;border-right:1px solid #e2e8f0;font-size:12px;font-weight:800}.time-row{min-height:64px;border-top:1px solid #e2e8f0}.time-label{padding:7px;color:#64748b;font-size:11px;text-align:right;border-right:1px solid #e2e8f0}.time-cell{padding:3px;border-right:1px solid #e2e8f0;min-width:0}.time-cell .calendar-event{font-size:11px}.schedule-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px}.schedule-modal.hidden{display:none}.schedule-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56)}.schedule-modal__dialog{position:relative;width:min(850px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.3);padding:22px}.schedule-modal__header,.schedule-modal__actions{display:flex;justify-content:space-between;align-items:center;gap:16px}.schedule-modal__header{margin-bottom:18px}.schedule-modal__header h2{margin:7px 0 0}.icon-btn{border:0;background:#f1f5f9;border-radius:9px;width:36px;height:36px;font-size:24px;cursor:pointer}.schedule-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.schedule-form-grid fieldset{grid-column:1/-1;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.schedule-form-grid legend{font-size:12px;font-weight:800;color:#475569}.weekday-checks{display:flex;gap:7px;flex-wrap:wrap}.weekday-checks label{display:flex;align-items:center;gap:5px;padding:7px 9px;background:#f8fafc;border-radius:8px;font-size:12px}.weekday-checks input{width:auto}.schedule-form-grid fieldset small{display:block;margin-top:8px;color:#64748b}.form-wide{grid-column:1/-1}.schedule-modal__actions{justify-content:flex-end;margin-top:20px;padding-top:16px;border-top:1px solid #e2e8f0}.hidden{display:none!important}@media(max-width:900px){.schedule-filters{grid-template-columns:repeat(2,1fr)}.schedule-stats{grid-template-columns:repeat(2,1fr)}.calendar-toolbar{align-items:flex-start}.calendar-view-tabs{order:3}}@media(max-width:620px){.schedule-hero{align-items:flex-start;flex-direction:column}.schedule-hero h1{font-size:28px}.schedule-stats,.schedule-filters,.schedule-form-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.calendar-nav{flex-wrap:wrap}.calendar-nav h2{width:100%;margin:4px 0}.schedule-modal{padding:8px}.schedule-modal__dialog{padding:16px}.form-wide,.schedule-form-grid fieldset{grid-column:auto}.month-weekdays,.month-grid{min-width:820px}}

.schedule-doctor-groups{display:grid;gap:12px}.schedule-doctor-group{overflow:hidden;border:1px solid #e2e8f0;border-left:5px solid var(--doctor-color,#5b21b6);border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.04)}.schedule-doctor-group__header{display:flex;align-items:center;gap:10px;padding:0 14px}.doctor-group-main{display:grid;grid-template-columns:18px minmax(190px,1.4fr) 72px minmax(190px,1fr) auto 24px;align-items:center;gap:15px;flex:1;width:100%;padding:15px 0;border:0;background:transparent;color:#17233b;text-align:left;cursor:pointer}.doctor-group-main>i{width:12px;height:12px;border-radius:50%;background:var(--doctor-color,#5b21b6);box-shadow:0 0 0 4px color-mix(in srgb,var(--doctor-color,#5b21b6) 15%,white)}.doctor-group-identity strong,.doctor-group-identity small,.doctor-group-next small,.doctor-group-next strong,.doctor-group-next span,.doctor-group-summary small{display:block}.doctor-group-identity strong{font-size:16px}.doctor-group-identity small,.doctor-group-next small,.doctor-group-summary small{margin-top:3px;color:#64748b;font-size:11px}.doctor-group-summary{text-align:center}.doctor-group-summary b{font-size:20px}.doctor-group-next strong{margin:2px 0;font-size:12px}.doctor-group-next span{color:#475569;font-size:12px}.doctor-group-chevron{font-size:20px;color:#64748b;transition:transform .18s}.schedule-doctor-group.is-open .doctor-group-chevron{transform:rotate(180deg)}.doctor-group-edit,.doctor-series-tools button{border:1px solid #c4b5fd;border-radius:9px;background:#fff;padding:8px 10px;color:#5b21b6;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}.schedule-doctor-group__body{border-top:1px solid #e2e8f0;background:#fcfdff}.doctor-schedule-table{min-width:760px}.doctor-series-tools{display:grid;gap:7px;padding:12px 14px;border-bottom:1px solid #e2e8f0;background:#faf8ff}.doctor-series-tools>p{margin:0 0 2px;color:#64748b;font-size:12px}.doctor-series-tools>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 10px;border:1px solid #e9e4ff;border-radius:9px;background:#fff}.doctor-series-tools span strong,.doctor-series-tools span small{display:block}.doctor-series-tools span small{margin-top:2px;color:#64748b;font-size:11px}@media(max-width:900px){.doctor-group-main{grid-template-columns:16px minmax(170px,1fr) 60px auto 22px}.doctor-group-next{display:none}.schedule-doctor-group__header{align-items:stretch}.doctor-group-edit{align-self:center}}@media(max-width:650px){.schedule-doctor-group__header{align-items:stretch;flex-direction:column;padding:0 12px 12px}.doctor-group-main{grid-template-columns:16px 1fr auto 20px;padding:13px 0 5px}.doctor-group-summary{display:none}.doctor-group-status{justify-self:end}.doctor-group-edit{width:100%}.doctor-series-tools>div{align-items:flex-start;flex-direction:column}.doctor-series-tools button{width:100%}}
.time-head{position:sticky;top:0;z-index:6;display:grid;grid-template-columns:72px repeat(var(--days),minmax(130px,1fr));background:#f8fafc}.time-axis-corner{border-right:1px solid #e2e8f0}.time-grid{display:grid;grid-template-columns:72px repeat(var(--days),minmax(130px,1fr));height:960px}.time-axis{display:grid;grid-template-rows:repeat(15,64px);border-right:1px solid #e2e8f0;background:#fff}.time-axis>div{padding:7px 8px;color:#64748b;font-size:11px;text-align:right;border-bottom:1px solid #e2e8f0}.time-day-column{position:relative;height:960px;border-right:1px solid #e2e8f0;background-color:#fff;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 63px,#e2e8f0 63px,#e2e8f0 64px)}.time-day-column>.calendar-event--timed{position:absolute;z-index:3;top:var(--event-top,0);left:calc(var(--event-left,0%) + 3px);width:calc(var(--event-width,100%) - 6px);height:var(--event-height,60px);min-height:28px;margin:0;padding:7px 8px;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--event-color,#5b21b6) 28%,white);border-left:4px solid var(--event-color,#5b21b6);box-shadow:0 2px 7px rgba(15,23,42,.09);overflow:hidden}.time-day-column>.calendar-event--timed:hover{z-index:5;filter:saturate(1.08);box-shadow:0 5px 14px rgba(15,23,42,.15)}.time-day-column>.calendar-event--timed strong,.time-day-column>.calendar-event--timed small{white-space:normal;line-height:1.2}.time-day-column>.calendar-event--timed small+small{margin-top:3px}.timed-status{display:block;width:max-content;max-width:100%;margin-top:5px;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:900;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timed-status.status-available{background:#dcfce7;color:#166534}.timed-status.status-pending{background:#fef3c7;color:#92400e}.timed-status.status-unavailable{background:#e2e8f0;color:#475569}.timed-status.status-cancelled{background:#fee2e2;color:#991b1b}.calendar-event--compact{padding:4px 6px!important}.calendar-event--compact .timed-specialty{display:none!important}.calendar-event--compact .timed-status{margin-top:2px;padding:1px 4px;font-size:8px}
