/* Dashboard Clinic · Agenda semanal */
#page-dashboard .home-week-agenda{
  margin:0 0 22px;
  overflow:hidden;
  border:1px solid #dfe6ee!important;
  border-radius:17px!important;
  background:#fff;
  box-shadow:none!important;
}
#page-dashboard .home-agenda-heading{
  gap:20px;
  min-height:76px;
}
#page-dashboard .home-agenda-heading>div:first-child{
  display:grid;
  gap:5px;
}
#page-dashboard .home-agenda-heading>div:first-child>small{
  color:#667085;
  font-size:12px;
  font-weight:600;
  text-transform:capitalize;
}
#page-dashboard .home-agenda-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
#page-dashboard .home-agenda-controls>button{
  min-width:38px;
  height:38px;
  padding:0 12px;
  border:1px solid #d8e2eb;
  border-radius:9px;
  background:#fff;
  color:#28516f;
  font:700 14px/1 'Roboto',sans-serif;
  cursor:pointer;
}
#page-dashboard .home-agenda-controls>button:hover{
  border-color:#8fb9dc;
  background:#f3f8fd;
}
#page-dashboard .home-agenda-controls .home-agenda-today{
  color:#1768ad;
}
#page-dashboard .home-agenda-controls .home-agenda-refresh{
  border-color:#1768ad;
  background:#1768ad;
  color:#fff;
}
#page-dashboard .home-agenda-controls .home-agenda-refresh:hover{
  background:#105a98;
}
#page-dashboard .home-agenda-controls>label{
  display:flex;
  align-items:center;
  gap:7px;
  height:38px;
  padding:0 9px 0 12px;
  border:1px solid #d8e2eb;
  border-radius:9px;
  color:#667085;
  font-size:12px;
  font-weight:600;
}
#page-dashboard .home-agenda-controls input{
  width:132px;
  border:0;
  outline:0;
  background:transparent;
  color:#1f3448;
  font:600 12px/1 'Roboto',sans-serif;
}
#page-dashboard .home-agenda-days{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  padding:14px 18px;
  border-bottom:1px solid #e8edf2;
  background:#f7f9fc;
}
#page-dashboard .home-agenda-day{
  position:relative;
  display:grid;
  place-items:center;
  gap:4px;
  min-width:0;
  min-height:76px;
  padding:9px 6px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#667085;
  cursor:pointer;
  font-family:'Roboto',sans-serif;
}
#page-dashboard .home-agenda-day:hover{
  border-color:#bed5e8;
  background:#fff;
}
#page-dashboard .home-agenda-day small{
  font-size:12px;
  font-weight:700;
  text-transform:capitalize;
}
#page-dashboard .home-agenda-day strong{
  color:#243b53;
  font-family:'Montserrat',sans-serif;
  font-size:20px;
}
#page-dashboard .home-agenda-day span{
  font-size:11px;
  font-weight:600;
}
#page-dashboard .home-agenda-day.is-today::after{
  content:'';
  position:absolute;
  top:8px;
  right:8px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#1d72c9;
}
#page-dashboard .home-agenda-day.is-selected{
  border-color:#1768ad;
  background:#1768ad;
  color:#dbefff;
  box-shadow:0 5px 14px rgba(23,104,173,.18);
}
#page-dashboard .home-agenda-day.is-selected strong{
  color:#fff;
}
#page-dashboard .home-agenda-day.is-selected::after{
  background:#fff;
}
#page-dashboard .home-week-agenda .home-agenda-status{
  padding:10px 22px;
  border-bottom:1px solid #edf0f4;
  background:#fff;
  color:#667085;
  font-size:12px;
  font-weight:600;
}
#page-dashboard .home-week-agenda .home-agenda-list{
  max-height:390px;
  overflow-y:auto;
  scrollbar-gutter:stable;
}
#page-dashboard .home-week-agenda .home-agenda-row{
  grid-template-columns:120px minmax(0,1fr) 20px;
  min-height:68px;
  padding:11px 24px;
}
#page-dashboard .home-week-agenda .home-agenda-row>time{
  font-size:13px;
}
#page-dashboard .home-week-agenda .home-agenda-row>time small{
  font-size:11px;
}
#page-dashboard .home-week-agenda .home-agenda-row>span>strong{
  font-size:14px;
}
#page-dashboard .home-week-agenda .home-agenda-row>span>small{
  font-size:11px;
}
@media(max-width:850px){
  #page-dashboard .home-agenda-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  #page-dashboard .home-agenda-controls{
    width:100%;
    justify-content:flex-start;
  }
  #page-dashboard .home-agenda-days{
    grid-template-columns:repeat(7,minmax(68px,1fr));
    overflow-x:auto;
    padding:12px;
  }
}
@media(max-width:560px){
  #page-dashboard .home-agenda-heading{
    padding:15px;
  }
  #page-dashboard .home-agenda-controls{
    display:grid;
    grid-template-columns:38px 1fr 38px;
  }
  #page-dashboard .home-agenda-controls>label{
    grid-column:1 / -1;
    justify-content:space-between;
  }
  #page-dashboard .home-agenda-controls .home-agenda-refresh{
    grid-column:1 / -1;
  }
  #page-dashboard .home-agenda-day{
    min-height:70px;
  }
  #page-dashboard .home-week-agenda .home-agenda-row{
    grid-template-columns:1fr 18px;
    gap:8px;
    padding:12px 15px;
  }
  #page-dashboard .home-week-agenda .home-agenda-row>time{
    grid-column:1 / -1;
  }
}

#page-dashboard .home-week-agenda .home-agenda-row.is-unidentified,
#page-dashboard .home-week-agenda .home-agenda-row.is-identified{
  grid-template-columns:120px minmax(180px,1fr) auto;
  cursor:default;
}
#page-dashboard .home-agenda-patient-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
#page-dashboard .home-agenda-patient-actions button{
  min-height:36px;
  padding:0 13px;
  border:1px solid #abc7df;
  border-radius:9px;
  background:#fff;
  color:#1768ad;
  font:700 13px/1 'Roboto',sans-serif;
  white-space:nowrap;
  cursor:pointer;
}
#page-dashboard .home-agenda-patient-actions button:hover{
  background:#f0f7fd;
}
#page-dashboard .home-agenda-patient-actions .create,
#page-dashboard .home-agenda-patient-actions .open-patient{
  border-color:#1768ad;
  background:#1768ad;
  color:#fff;
}
#page-dashboard .home-agenda-patient-actions .create:hover,
#page-dashboard .home-agenda-patient-actions .open-patient:hover{
  background:#105a98;
}
@media(max-width:760px){
  #page-dashboard .home-week-agenda .home-agenda-row.is-unidentified,
  #page-dashboard .home-week-agenda .home-agenda-row.is-identified{
    grid-template-columns:1fr;
    gap:9px;
  }
  #page-dashboard .home-week-agenda .home-agenda-row.is-unidentified>time,
  #page-dashboard .home-week-agenda .home-agenda-row.is-identified>time{
    grid-column:1;
  }
  #page-dashboard .home-agenda-patient-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}
@media(max-width:420px){
  #page-dashboard .home-agenda-patient-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  #page-dashboard .home-agenda-patient-actions button{
    width:100%;
  }
}

/* Separate the agenda empty-state title and explanation at every screen size. */
#page-dashboard .home-week-agenda .home-agenda-empty{
  display:grid;
  min-height:0;
  align-items:start;
  justify-content:stretch;
  gap:6px;
  padding:18px 22px;
  text-align:left;
  background:#f8fafc;
  color:#667085;
}
#page-dashboard .home-week-agenda .home-agenda-empty strong{
  display:block;
  color:#344054;
  font-size:14px;
  font-weight:700;
  line-height:1.3;
}
#page-dashboard .home-week-agenda .home-agenda-empty span{
  display:block;
  min-width:0;
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
#page-dashboard .home-week-agenda .home-agenda-empty button{
  justify-self:start;
}
#page-dashboard .home-week-agenda .home-agenda-empty.is-error strong{
  color:#b42318;
}
@media(max-width:560px){
  #page-dashboard .home-week-agenda .home-agenda-empty{
    padding:16px 15px;
  }
}

/* Trial shipment status belongs beside the patient, in both NEXO and Full. */
#page-dashboard .home-week-agenda .home-agenda-lab{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:8px;padding:8px 10px;border-radius:9px;max-width:100%;overflow-wrap:anywhere;line-height:1.4}
#page-dashboard .home-week-agenda .home-agenda-lab.is-success{background:#e5f6ee;color:#096b4c}
#page-dashboard .home-week-agenda .home-agenda-lab.is-warning{background:#fff3dc;color:#875200}
#page-dashboard .home-week-agenda .home-agenda-lab b{font-size:12px;font-weight:700}
#page-dashboard .home-week-agenda .home-agenda-lab small{font-size:12px;color:inherit}
