/*
 RPC SHOULDER PORTAL STYLE REVIEW V1
 Presentation-only overlay based on the approved RPC Style Review direction.
 No clinical, PROM, messaging, progression, token, exercise or database logic.
*/

/* ------------------------------------------------------------
   CLINICIAN VIEW
   ------------------------------------------------------------ */

body .clinician-app{
  background:#f5f8fa !important;
}

/* Light-green sidebar, as approved in the ACL work. */
body .clinician-app .clinic-sidebar{
  background:linear-gradient(180deg,#f2f8e9 0%,#e9f3dc 100%) !important;
  color:#002B4D !important;
  border-right:1px solid #d6e4c4 !important;
}

/* Exact RPC logo sits in a clean white brand card. */
body .clinician-app .sidebar-brand{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:96px !important;
  padding:8px !important;
  margin:0 2px 12px !important;
  background:#fff !important;
  border:1px solid #d9e6cc !important;
  border-radius:14px !important;
  box-shadow:0 5px 16px rgba(0,43,77,.05) !important;
}

body .clinician-app .sidebar-brand img.rpc-shoulder-exact-logo{
  width:150px !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
}

body .clinician-app .sidebar-nav{
  gap:5px !important;
  padding-top:4px !important;
}

body .clinician-app .sidebar-nav button{
  color:#123d58 !important;
  border-radius:11px !important;
  transition:background .14s ease, box-shadow .14s ease, color .14s ease !important;
}

body .clinician-app .sidebar-nav button i{
  color:#557568 !important;
}

body .clinician-app .sidebar-nav button:hover{
  background:#e2edd3 !important;
  color:#002B4D !important;
}

body .clinician-app .sidebar-nav button.active{
  background:#fff !important;
  color:#002B4D !important;
  box-shadow:inset 4px 0 0 #92D50B,0 3px 12px rgba(0,43,77,.05) !important;
}

body .clinician-app .sidebar-nav button.active i{
  color:#5d840e !important;
}

body .clinician-app .server-card{
  background:rgba(255,255,255,.66) !important;
  border-color:#d2dfc3 !important;
  color:#002B4D !important;
}

body .clinician-app .server-card>span,
body .clinician-app .server-card small{
  color:#5e746d !important;
}

body .clinician-app .server-status{
  color:#002B4D !important;
}

body .clinician-app .sidebar-logout{
  color:#002B4D !important;
}

body .clinician-app .clinic-header{
  background:#fff !important;
  border-bottom-color:#e3eaee !important;
}

body .clinician-app .clinic-eyebrow{
  color:#658b15 !important;
}

body .clinician-app .dashboard-heading h2,
body .clinician-app .clinic-header h1,
body .clinician-app .detail-panel h3{
  color:#002B4D !important;
}

body .clinician-app .add-patient-btn,
body .clinician-app .btn.primary{
  background:#92D50B !important;
  border-color:#92D50B !important;
  color:#002B4D !important;
}

body .clinician-app .patient-row:hover,
body .clinician-app .patient-row.selected{
  background:#f5f9ed !important;
}

body .clinician-app .patient-row.selected{
  box-shadow:inset 3px 0 0 #92D50B !important;
}

body .clinician-app .detail-tabs button.active{
  color:#557d0d !important;
  border-bottom-color:#92D50B !important;
}

body .clinician-app .patient-table-card,
body .clinician-app .patient-detail-card,
body .clinician-app .detail-panel,
body .clinician-app .feature-strip{
  border-color:#dce6e2 !important;
  border-radius:13px !important;
}

/* ------------------------------------------------------------
   PATIENT VIEW
   ------------------------------------------------------------ */

body .patient-page.patient-v080 .patient-phone-v080{
  background:linear-gradient(180deg,#fbfdf9 0%,#f2f7f4 100%) !important;
}

/* Give the full, uncropped logo enough room to be readable. */
body .patient-page.patient-v080 .patient-topbar{
  min-height:94px !important;
  height:auto !important;
  padding:7px 18px 6px !important;
  background:rgba(255,255,255,.98) !important;
  border-bottom:1px solid #e4ece7 !important;
}

body .patient-page.patient-v080 .patient-topbar img.rpc-shoulder-exact-logo{
  width:145px !important;
  height:auto !important;
  max-height:82px !important;
  object-fit:contain !important;
  object-position:left center !important;
  display:block !important;
}

/* Green Today hero, replacing the blue-heavy treatment. */
body .patient-page.patient-v080 .today-hero{
  background:
    radial-gradient(circle at 78% 30%,rgba(146,213,11,.20),transparent 31%),
    linear-gradient(180deg,#f8fced 0%,#edf7dc 56%,#dcebc3 100%) !important;
  border-bottom:1px solid rgba(0,43,77,.08) !important;
}

body .patient-page.patient-v080 .today-hero:before{
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(146,213,11,.10),
      rgba(146,213,11,.48),
      rgba(101,143,8,.18),
      transparent
    ) !important;
}

body .patient-page.patient-v080 .today-hero:after{
  background:
    linear-gradient(180deg,rgba(146,213,11,.03),rgba(101,143,8,.16)) !important;
}

body .patient-page.patient-v080 .today-eyebrow{
  color:#5f8614 !important;
}

body .patient-page.patient-v080 .today-hero h1{
  color:#002B4D !important;
}

body .patient-page.patient-v080 .today-hero p{
  color:#49667A !important;
}

body .patient-page.patient-v080 .today-move-forward{
  color:#5f8614 !important;
}

body .patient-page.patient-v080 .today-runner-mark{
  opacity:.15 !important;
  filter:saturate(.72) contrast(.92) !important;
  mix-blend-mode:multiply;
}

/* Keep the existing content/cards but harmonise their presentation. */
body .patient-page.patient-v080 .today-session-card,
body .patient-page.patient-v080 .mobile-card,
body .patient-page.patient-v080 .today-progress-card{
  border-color:#dde8e2 !important;
  box-shadow:0 8px 24px rgba(0,43,77,.055) !important;
}

/* "Your Focus This Week" remains its own card, but sits at the bottom. */
body .patient-page.patient-v080 #patientFocusCard{
  background:#f5f9ed !important;
  border-color:#dce8ca !important;
}

/* Keep mobile proportions sensible after enlarging the exact logo. */
@media(max-width:390px){
  body .patient-page.patient-v080 .patient-topbar{
    min-height:88px !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }

  body .patient-page.patient-v080 .patient-topbar img.rpc-shoulder-exact-logo{
    width:132px !important;
    max-height:76px !important;
  }

  body .clinician-app .sidebar-brand img.rpc-shoulder-exact-logo{
    width:142px !important;
  }
}
