/* One schedule, the existing wide container and semantic table in both modes. */
html body.omedica-schedule-page .omedica-document-info > *,
html body.omedica-schedule-page .wp-block-post-content > * {max-width:var(--wp--style--global--wide-size);}
.omedica-specialist-schedule {min-width:0;}
.omedica-schedule-toolbar {display:flex;align-items:center;gap:var(--space-sm);overflow-x:auto;padding:4px;margin:0 -4px var(--space-sm);scroll-padding-inline:4px;}
.omedica-schedule-days {display:flex;flex:none;gap:var(--space-xs);}
.omedica-schedule-toolbar > button {margin-inline-start:auto;flex:none;white-space:nowrap;}
.omedica-specialist-schedule button {font:inherit;min-width:44px;min-height:44px;padding:var(--space-xs) var(--space-sm);border:1px solid var(--wp--preset--color--border);border-radius:var(--wp--custom--radius--sm);background:var(--wp--preset--color--background);color:var(--wp--preset--color--text);cursor:pointer;}
.omedica-specialist-schedule button[aria-pressed=true] {background:var(--wp--preset--color--action);border-color:var(--wp--preset--color--action);color:var(--wp--preset--color--background);}
.omedica-specialist-schedule :is(button,.omedica-schedule-scroll):focus-visible {outline:3px solid var(--wp--preset--color--action);outline-offset:1px;}
.omedica-schedule-scroll {max-width:100%;overflow-x:auto;isolation:isolate;}
.omedica-specialist-schedule table {border-collapse:collapse;width:100%;table-layout:fixed;}
.omedica-specialist-schedule caption {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.omedica-specialist-schedule :is(th,td) {padding:var(--space-sm);border:0;text-align:left;vertical-align:top;word-break:normal;overflow-wrap:normal;hyphens:none;white-space:pre-line;}
.omedica-specialist-schedule tr {border-bottom:1px solid var(--wp--preset--color--border);}
.omedica-specialist-schedule th {font-weight:600;}
.omedica-specialist-schedule [hidden] {display:none!important;}
.omedica-specialist-schedule:not([data-mode=day]) table {min-width:calc(18rem + 7 * 11rem);}
.omedica-specialist-schedule:not([data-mode=day]) th:first-child {width:18rem;position:sticky;left:0;background:var(--wp--preset--color--background);z-index:1;}
.omedica-specialist-schedule[data-mode=day] th:first-child {width:62%;}
.omedica-schedule-notes {white-space:pre-line;}

@media(max-width:767px){
 .omedica-schedule-toolbar {display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;gap:var(--space-sm);padding:var(--wp--custom--focus--offset);margin:0 0 var(--space-md);}
 .omedica-schedule-days {display:flex;flex-wrap:wrap;gap:var(--space-xs);}
 .omedica-schedule-days > button {flex:1 0 var(--wp--custom--interaction--touch-target);padding-inline:var(--space-xs);}
 .omedica-schedule-toolbar > button {margin:0;justify-self:stretch;white-space:normal;}
 .omedica-specialist-schedule[data-mode=day] th:first-child {width:58%;}
 .omedica-specialist-schedule[data-mode=day] :is(th,td) {padding:var(--space-sm) var(--space-xs);overflow-wrap:break-word;white-space:pre-line;}
 .omedica-specialist-schedule[data-mode=day] td {font-variant-numeric:tabular-nums;}
 .omedica-specialist-schedule:not([data-mode=day]) th:first-child {width:10rem;}
 .omedica-specialist-schedule:not([data-mode=day]) table {min-width:calc(10rem + 7 * 9rem);}
}
