/* CARELOG Services: independent from Google Calendar */
.services-portal main{max-width:1160px;margin:0 auto;padding:clamp(12px,3vw,28px)}
.services-portal .wf-card{border-radius:14px;box-shadow:0 2px 16px #152c4412;padding:clamp(16px,3vw,28px)}
.services-portal h1{font-size:clamp(23px,3vw,32px);margin:0 0 12px}
.services-portal .portal-help{color:#43586b;line-height:1.65}
.services-portal #portalQr{display:flex;justify-content:center;padding:18px;background:#fff;border-radius:12px}
.services-portal #portalQr svg{max-width:min(100%,320px);height:auto}
.services-portal #portalMessage:not(:empty){padding:12px;border:1px solid #dbb6aa;border-radius:8px;background:#fff7f4;color:#7c2e1b}
.services-portal .roster-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.services-portal .roster-matrix{min-width:760px}
.services-portal .roster-switch{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.services-portal button{min-height:44px}
@media(max-width:600px){.services-portal header{flex-wrap:wrap;gap:8px}.services-portal .wf-card{padding:16px}.services-portal input[type=month]{max-width:100%}}

/* HF8: native read-only month calendar, independent from admin calendar library */
.services-portal main{max-width:1500px}.services-portal #portalRoster{overflow:visible}
.services-portal .roster-switch button[aria-pressed=true]{background:#165b78;color:white;border-color:#165b78}
.services-portal .care-month{margin:20px 0 28px}.services-portal .care-weekheads,.services-portal .care-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.services-portal .care-weekheads span{text-align:center;font-weight:700;padding:8px 0;color:#456477}
.services-portal .care-day{min-width:0;min-height:105px;border:1px solid #dce5ed;border-radius:8px;padding:7px;background:white;overflow-wrap:anywhere}
.services-portal .care-blank{background:#f2f6fa;border-color:transparent}.services-portal .care-day-top{display:flex;justify-content:space-between;align-items:baseline;gap:4px;flex-wrap:wrap;border-bottom:1px solid #edf1f5;padding-bottom:4px;margin-bottom:6px}
.services-portal .care-day-top small{font-size:9px;color:#667d8e}.services-portal .care-shift{display:flex;gap:5px;align-items:flex-start;font-size:11px;line-height:1.3;padding:3px 0;border-bottom:1px solid #f0f3f5;min-width:0}
.services-portal .care-shift .roster-code{background:#e6f2f6;color:#174e6a;font-weight:700;padding:2px 4px;border-radius:4px;flex-shrink:0}.services-portal .care-shift span:last-child{min-width:0;overflow-wrap:anywhere}
.services-portal .roster-scroll{overflow-x:auto;max-width:100%}.services-portal .roster-matrix{min-width:1000px}.services-portal .roster-matrix td,.services-portal .roster-matrix th{padding:6px;text-align:center}.services-portal .roster-matrix th:first-child{text-align:left;position:sticky;left:0;background:#f3f7fa;z-index:2}
@media(max-width:750px){.services-portal .care-weekheads,.services-portal .care-days{gap:2px}.services-portal .care-day{min-height:72px;padding:3px;border-radius:4px}.services-portal .care-shift{display:block;font-size:9px}.services-portal .care-shift .roster-code{display:inline-block;margin-right:2px}.services-portal .care-day-top small{font-size:8px}.services-portal #portalRoster{padding:9px}}
