/* The entire schedule is isolated from theme colors for guaranteed contrast. */
.hds-published-schedule{direction:rtl!important;margin:24px 0!important;padding:14px!important;border:1px solid #d7dee8!important;border-radius:16px!important;background:#f8fafc!important;color:#0f172a!important;color-scheme:light!important}.hds-published-schedule,.hds-published-schedule *{box-sizing:border-box}.hds-published-schedule .hds-schedule-title{margin:0 0 14px!important;color:#0f172a!important;background:transparent!important;text-shadow:none!important}.hds-published-schedule .hds-matrix-shell{--hds-doctor-width:170px;--hds-head-height:100px;--hds-row-height:52px;position:relative!important;width:100%!important;isolation:isolate!important}.hds-published-schedule .hds-table-scroll{overflow:auto!important;border:1px solid #cbd5e1!important;border-radius:12px!important;background:#fff!important;-webkit-overflow-scrolling:touch}.hds-published-schedule .hds-doctor-matrix{direction:rtl!important;border-collapse:separate!important;border-spacing:0!important;width:max-content!important;min-width:max-content!important;table-layout:fixed!important;background:#fff!important;color:#0f172a!important;font-size:13px!important}.hds-published-schedule .hds-doctor-matrix th,.hds-published-schedule .hds-doctor-matrix td{border-bottom:1px solid #dbe2ea!important;border-left:1px solid #e7edf4!important;text-align:center!important;text-shadow:none!important}.hds-published-schedule .hds-doctor-matrix thead th{height:var(--hds-head-height)!important;background:#111827!important;color:#fff!important}.hds-published-schedule .hds-day-col{width:28px!important;min-width:28px!important;max-width:28px!important;padding:0!important;vertical-align:top!important}.hds-published-schedule .hds-day-head-inner{height:var(--hds-head-height)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;padding:5px 0 4px!important}.hds-published-schedule .hds-day-number{display:block!important;color:#fff!important;font-size:10px!important;font-weight:800!important;line-height:1!important}.hds-published-schedule .hds-day-name{display:block!important;color:#e5e7eb!important;font-size:9px!important;font-weight:600!important;line-height:1!important;writing-mode:vertical-rl!important;-webkit-writing-mode:vertical-rl!important;text-orientation:mixed!important;transform:rotate(180deg)!important;white-space:nowrap!important}.hds-published-schedule .hds-doctor-matrix tbody tr{height:var(--hds-row-height)!important}.hds-published-schedule .hds-doctor-matrix tbody td{height:var(--hds-row-height)!important;padding:0!important;vertical-align:top!important;background:#fff!important;color:#0f172a!important}.hds-published-schedule .hds-doctor-matrix tbody tr:nth-child(even) td{background:#eef2f7!important;color:#0f172a!important}.hds-published-schedule .hds-day-cell-content{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;padding:2px 0 0!important;direction:ltr!important;line-height:1!important}.hds-published-schedule .hds-empty-cell{color:#64748b!important;font-size:9px!important}.hds-published-schedule .hds-shift-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:19px!important;min-height:18px!important;margin:0!important;padding:2px!important;border:1px solid #1d4ed8!important;border-radius:6px!important;background:#dbeafe!important;box-shadow:none!important;color:#1e3a8a!important;font-weight:900!important;font-size:8px!important;line-height:1!important;direction:ltr!important;text-decoration:none!important}.hds-published-schedule .hds-shift-chip.hds-weight-2{border-color:#9a3412!important;background:#ffedd5!important;color:#7c2d12!important}.hds-published-schedule .hds-source-doctor-col{width:var(--hds-doctor-width)!important;min-width:var(--hds-doctor-width)!important;max-width:var(--hds-doctor-width)!important;color:transparent!important;background:transparent!important;border-left:0!important}.hds-published-schedule .hds-source-doctor-col *{color:transparent!important}.hds-published-schedule .hds-frozen-doctors{position:absolute!important;top:0!important;right:0!important;z-index:80!important;width:var(--hds-doctor-width)!important;background:#fff!important;border-left:2px solid #94a3b8!important;box-shadow:-10px 0 18px -16px rgba(15,23,42,.95)!important;pointer-events:none!important;overflow:hidden!important}.hds-published-schedule .hds-frozen-head,.hds-published-schedule .hds-frozen-row{display:flex!important;align-items:center!important;width:100%!important;padding:7px 14px!important;text-align:right!important;overflow:hidden!important;border-bottom:1px solid #dbe2ea!important;text-shadow:none!important}.hds-published-schedule .hds-frozen-head{height:var(--hds-head-height)!important;background:#111827!important;color:#fff!important;font-weight:800!important;align-items:flex-end!important;padding-bottom:12px!important}.hds-published-schedule .hds-frozen-row{height:var(--hds-row-height)!important;background:#fff!important;color:#0f172a!important}.hds-published-schedule .hds-frozen-row:nth-child(odd){background:#eef2f7!important;color:#0f172a!important}.hds-published-schedule .hds-frozen-row strong{color:inherit!important;font-weight:700!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:782px){.hds-published-schedule{padding:8px!important}.hds-published-schedule .hds-matrix-shell{--hds-doctor-width:112px;--hds-head-height:94px;--hds-row-height:48px}.hds-published-schedule .hds-day-col{width:24px!important;min-width:24px!important;max-width:24px!important}.hds-published-schedule .hds-day-number{font-size:9px!important}.hds-published-schedule .hds-day-name{font-size:8px!important}.hds-published-schedule .hds-shift-chip{min-width:17px!important;min-height:16px!important;padding:1px!important;font-size:7px!important;border-radius:5px!important}.hds-published-schedule .hds-frozen-head,.hds-published-schedule .hds-frozen-row{padding:6px 8px!important;font-size:12px!important}.hds-published-schedule .hds-frozen-row strong{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;white-space:normal!important;overflow:hidden!important}}

/* v1.1.9: exact header placement — number top, weekday bottom, both centered */
.hds-published-schedule .hds-doctor-matrix .hds-day-col{
  position:relative!important;
  overflow:hidden!important;
}
.hds-published-schedule .hds-doctor-matrix .hds-day-head-inner{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:var(--hds-head-height)!important;
  padding:0!important;
  margin:0!important;
}
.hds-published-schedule .hds-doctor-matrix .hds-day-number{
  position:absolute!important;
  top:5px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  white-space:nowrap!important;
}
.hds-published-schedule .hds-doctor-matrix .hds-day-name{
  position:absolute!important;
  bottom:5px!important;
  left:50%!important;
  right:auto!important;
  margin:0!important;
  padding:0!important;
  transform:translateX(-50%) rotate(180deg)!important;
  transform-origin:center center!important;
  text-align:center!important;
}
@media(max-width:782px){
  .hds-published-schedule .hds-doctor-matrix .hds-day-number{top:4px!important}
  .hds-published-schedule .hds-doctor-matrix .hds-day-name{bottom:4px!important}
}



/* v1.2.2: robust two-axis sticky table (header + doctor names) */
.hds-matrix-shell > .hds-table-scroll,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll{
  position:relative!important;
  overflow:auto!important;
  max-height:min(74vh,780px)!important;
  overscroll-behavior:contain!important;
  transform:none!important;
  contain:none!important;
  isolation:isolate!important;
}
.hds-doctor-matrix thead th,
.hds-published-schedule .hds-doctor-matrix thead th{
  position:-webkit-sticky!important;
  position:sticky!important;
  top:0!important;
  z-index:70!important;
  background:#111827!important;
  background-clip:padding-box!important;
}
.hds-doctor-matrix .hds-doctor-col,
.hds-published-schedule .hds-doctor-matrix .hds-doctor-col,
.hds-doctor-matrix .hds-source-doctor-col,
.hds-published-schedule .hds-doctor-matrix .hds-source-doctor-col{
  position:-webkit-sticky!important;
  position:sticky!important;
  right:0!important;
  z-index:60!important;
  width:var(--hds-doctor-width)!important;
  min-width:var(--hds-doctor-width)!important;
  max-width:var(--hds-doctor-width)!important;
  box-sizing:border-box!important;
  padding:7px 14px!important;
  text-align:right!important;
  vertical-align:middle!important;
  color:#0f172a!important;
  background:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  border-left:2px solid #94a3b8!important;
  box-shadow:-9px 0 16px -15px rgba(15,23,42,.95)!important;
  background-clip:padding-box!important;
  transform:none!important;
  contain:none!important;
  -webkit-backface-visibility:visible!important;
  backface-visibility:visible!important;
}
.hds-doctor-matrix .hds-source-doctor-col *,
.hds-published-schedule .hds-doctor-matrix .hds-source-doctor-col *{color:inherit!important}
.hds-doctor-matrix thead .hds-doctor-col,
.hds-published-schedule .hds-doctor-matrix thead .hds-doctor-col,
.hds-doctor-matrix thead .hds-source-doctor-col,
.hds-published-schedule .hds-doctor-matrix thead .hds-source-doctor-col{
  top:0!important;
  right:0!important;
  z-index:100!important;
  color:#fff!important;
  background:#111827!important;
  vertical-align:bottom!important;
  padding-bottom:12px!important;
}
.hds-doctor-matrix tbody tr:nth-child(even) .hds-doctor-col,
.hds-published-schedule .hds-doctor-matrix tbody tr:nth-child(even) .hds-doctor-col,
.hds-doctor-matrix tbody tr:nth-child(even) .hds-source-doctor-col,
.hds-published-schedule .hds-doctor-matrix tbody tr:nth-child(even) .hds-source-doctor-col{
  background:#eef2f7!important;
}
.hds-frozen-doctors{display:none!important}
.hds-doctor-matrix thead .hds-day-col.hds-holiday-day,
.hds-published-schedule .hds-doctor-matrix thead .hds-day-col.hds-holiday-day{
  background:#991b1b!important;
  color:#fff!important;
}
.hds-doctor-matrix thead .hds-day-col.hds-holiday-day .hds-day-name,
.hds-published-schedule .hds-doctor-matrix thead .hds-day-col.hds-holiday-day .hds-day-name{color:#fee2e2!important}
.hds-doctor-matrix tbody td.hds-holiday-day,
.hds-doctor-matrix tbody tr:nth-child(even) td.hds-holiday-day,
.hds-published-schedule .hds-doctor-matrix tbody td.hds-holiday-day,
.hds-published-schedule .hds-doctor-matrix tbody tr:nth-child(even) td.hds-holiday-day{
  background:#fee2e2!important;
  color:#7f1d1d!important;
}
@media(max-width:782px){
  .hds-matrix-shell > .hds-table-scroll,
  .hds-published-schedule .hds-matrix-shell > .hds-table-scroll{max-height:72vh!important}
  .hds-doctor-matrix .hds-doctor-col,
  .hds-published-schedule .hds-doctor-matrix .hds-doctor-col,
  .hds-doctor-matrix .hds-source-doctor-col,
  .hds-published-schedule .hds-doctor-matrix .hds-source-doctor-col{padding:6px 8px!important;font-size:12px!important}
}

/* v1.2.3: the whole first row must stay sticky, not only the corner cell */
.hds-doctor-matrix thead tr > th.hds-day-col,
.hds-published-schedule .hds-doctor-matrix thead tr > th.hds-day-col{
  position:-webkit-sticky!important;
  position:sticky!important;
  top:0!important;
  z-index:70!important;
  background:#111827!important;
  background-clip:padding-box!important;
}
.hds-doctor-matrix thead tr > th.hds-day-col.hds-holiday-day,
.hds-published-schedule .hds-doctor-matrix thead tr > th.hds-day-col.hds-holiday-day{
  background:#991b1b!important;
}


/* v1.2.4: high-contrast frontend table scrollbar */
.hds-matrix-shell > .hds-table-scroll,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll{
  scrollbar-width:thin!important;
  scrollbar-color:#64748b #e2e8f0!important;
  scrollbar-gutter:stable!important;
}
.hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar{
  width:12px!important;
  height:12px!important;
}
.hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-track,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-track{
  background:#e2e8f0!important;
  border-radius:999px!important;
}
.hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-thumb,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-thumb{
  background:#64748b!important;
  border:3px solid #e2e8f0!important;
  border-radius:999px!important;
  min-height:36px!important;
}
.hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-thumb:hover,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-thumb:hover{
  background:#334155!important;
}
.hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-corner,
.hds-published-schedule .hds-matrix-shell > .hds-table-scroll::-webkit-scrollbar-corner{
  background:#e2e8f0!important;
}
