/* RPC ACL Patient Portal v0.12.0 - Weekly Check-In */
.weekly-checkin-card{
  position:relative;z-index:5;padding:17px;border-radius:20px;background:#fff;
  border:1px solid rgba(219,231,240,.85);box-shadow:0 10px 30px rgba(35,75,106,.07);
  scroll-margin-top:18px
}
.weekly-checkin-card.due{border-top:4px solid #21b742}
.weekly-checkin-kicker{font-size:7px;font-weight:950;letter-spacing:.1em;color:#1c9f3b;margin-bottom:8px}
.weekly-checkin-title{display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center}
.weekly-checkin-title h2{margin:0;color:#092454;font-size:17px}
.weekly-checkin-title p{margin:3px 0 0;color:#6f84a2;font-size:9px;line-height:1.4}
.weekly-checkin-icon,.weekly-checkin-complete-icon{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#dff6e3;color:#18a73a;font-size:22px;font-weight:950
}
.weekly-checkin-form{display:grid;gap:10px;margin-top:14px}
.weekly-checkin-question{display:block;padding:10px;border:1px solid #e1e9ee;border-radius:11px;background:#fbfdfe}
.weekly-checkin-question>span{display:block;margin-bottom:7px;color:#183b61;font-size:9px;font-weight:850;line-height:1.35}
.weekly-checkin-question select,.weekly-checkin-question textarea{
  width:100%;box-sizing:border-box;border:1px solid #d4e0e7;border-radius:8px;background:#fff;color:#173b56;padding:9px;font:inherit
}
.weekly-checkin-question textarea{min-height:70px;resize:vertical}
.weekly-range-row{display:grid;grid-template-columns:1fr 52px;gap:9px;align-items:center}
.weekly-range-row input{width:100%;accent-color:#20b93c}
.weekly-range-row output{font-size:9px;font-weight:900;color:#092454;text-align:right}
.weekly-checkin-note{padding:8px 9px;border-radius:8px;background:#eef6fb;color:#547187;font-size:7.5px;line-height:1.45}
.weekly-checkin-safety{font-size:7px;color:#8a633f;background:#fff5ea;border-radius:8px;padding:8px;line-height:1.4}
.weekly-checkin-submit{height:48px;margin-top:0;font-size:12px}
.weekly-checkin-complete-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center}
.weekly-checkin-complete-row strong{display:block;color:#173b56;font-size:10px}
.weekly-checkin-complete-row small{display:block;margin-top:2px;color:#7b8c99;font-size:7px}
.weekly-checkin-ok,.weekly-checkin-review{padding:5px 7px;border-radius:999px;font-size:7px;font-weight:900}
.weekly-checkin-ok{background:#e8f5e4;color:#3e7037}
.weekly-checkin-review{background:#fff0e6;color:#a05432}
.weekly-programme-lock{padding:11px;border-radius:10px;background:#fff5e9;border:1px solid #edd3b6;color:#86552c}
.weekly-programme-lock strong{display:block;font-size:9px}
.weekly-programme-lock span{display:block;margin:4px 0 8px;font-size:7.5px;line-height:1.4}
.weekly-checkin-locked .mobile-day-tabs,.weekly-checkin-locked .programme-card{opacity:.32;filter:grayscale(.25)}
.weekly-checkin-clinician-panel{margin-top:12px}
.clinician-weekly-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.clinician-weekly-head>div>span{display:block;font-size:7px;font-weight:950;letter-spacing:.08em;color:#74838d}
.clinician-weekly-head>div>strong{display:block;margin-top:3px;font-size:11px;color:#173b56}
.clinician-weekly-head>span{padding:5px 8px;border-radius:999px;font-size:7px;font-weight:900}
.clinician-weekly-head .ok{background:#e8f5e4;color:#3e7037}
.clinician-weekly-head .review{background:#fff0e6;color:#a05432}
.clinician-weekly-head .pending{background:#eef3f6;color:#667b88}
.clinician-weekly-setting{display:flex;gap:8px;align-items:end;padding:10px;margin-bottom:10px;border-radius:9px;background:#f4f7f9}
.clinician-weekly-setting label{flex:1}
.clinician-weekly-setting label span{display:block;margin-bottom:4px;font-size:7px;font-weight:900;color:#73838d;text-transform:uppercase;letter-spacing:.05em}
.clinician-weekly-setting select{width:100%;padding:8px;border:1px solid #d5dfe5;border-radius:7px;background:#fff}
.weekly-history{display:grid;gap:8px}
.weekly-history-row{
  display:grid;grid-template-columns:86px repeat(5,minmax(70px,1fr));gap:7px;padding:9px;
  border:1px solid #e0e7eb;border-radius:9px;background:#fff
}
.weekly-history-row.flag{border-left:4px solid #dd6a3b;background:#fffaf7}
.weekly-history-row>div span{display:block;font-size:6.5px;color:#7b8992}
.weekly-history-row>div strong{display:block;margin-top:2px;font-size:8px;color:#173b56;text-transform:capitalize}
.weekly-history-comment,.weekly-history-alert{grid-column:1/-1}
.weekly-history-comment{padding-top:6px;border-top:1px solid #edf1f3}
.weekly-history-comment strong{text-transform:none!important;line-height:1.4}
.weekly-history-alert{padding:6px 8px;border-radius:7px;background:#fff0e6;color:#9a5436;font-size:7.5px;font-weight:850}
@media(max-width:760px){
  .weekly-history-row{grid-template-columns:1fr 1fr}
  .weekly-history-row>div:first-child{grid-column:1/-1}
  .clinician-weekly-setting{display:block}
  .clinician-weekly-setting button{margin-top:8px;width:100%}
}
