/* R73 — compact appointment cards: first name, phone/source icons, note icon. */
.appointment-card.appointment-card-v2{
  position:relative;
  display:block;
  width:138px;
  max-width:100%;
  height:108px;
  min-width:0;
  min-height:108px;
  padding:7px 9px 8px;
  border-radius:11px;
  overflow:hidden;
}
.appointment-card-v2 .appointment-card-primary{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  padding-right:44px;
}
.appointment-card-v2 .appointment-card-name{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.25;
  font-weight:900;
}
.appointment-card-v2 .appointment-card-hn,
.appointment-card-v2 .appointment-card-meta,
.appointment-card-v2 .appointment-card-detail,
.appointment-card-v2 .appointment-card-note,
.appointment-card-v2 .appointment-card-notification{
  display:none!important;
}
.appointment-card-v2-hn{
  margin-top:4px;
  color:#17324d;
  font-size:11px;
  line-height:1.25;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.appointment-card-v2-row{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  width:max-content;
  max-width:calc(100% - 2px);
  margin-top:4px;
  color:#52666c;
  font-size:10px;
  line-height:1.25;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.appointment-card-v2-row>span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.appointment-card-v2-phone{
  color:#0f766e;
  text-decoration:none;
  font-variant-numeric:tabular-nums;
}
.appointment-card-v2-phone:hover{
  color:#075f59;
  text-decoration:underline;
}
.appointment-card-v2-icon{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
}
.appointment-card-v2-icon svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.appointment-card-v2-phone .appointment-card-v2-icon svg path:first-child{
  fill:currentColor;
  stroke:none;
}
.appointment-card-v2-channel{
  color:#52666c;
}
.appointment-card-v2-note{
  position:static;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:5px;
  width:100%;
  min-width:0;
  min-height:22px;
  margin-top:4px;
  padding:3px 5px;
  border:1px solid #f5c98b;
  border-radius:6px;
  background:#fff8e7;
  color:#8a5a12;
  font:inherit;
  text-align:left;
  cursor:default;
}
.appointment-card-v2-note .appointment-card-v2-icon,
.appointment-card-v2-note .appointment-card-v2-icon svg{
  flex:0 0 auto;
  width:13px;
  height:13px;
  margin-top:1px;
}
.appointment-card-v2-note-text{
  display:-webkit-box;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  color:#7c5a21;
  font-size:9px;
  line-height:1.25;
  font-weight:800;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.appointment-card-new-patient.appointment-card-v2{
  border-left-color:#0ea5e9;
}
.appointment-card-returning.appointment-card-v2{
  border-left-color:#14b8a6;
}
@media(max-width:767px){
  .appointment-card.appointment-card-v2{
    width:100%;
    height:118px;
    min-height:118px;
  }
  .appointment-card-v2 .appointment-card-name{font-size:13px}
  .appointment-card-v2-hn{font-size:12px}
  .appointment-card-v2-row{font-size:11px}
  .appointment-card-v2-note{width:100%;min-height:24px}
  .appointment-card-v2-note-text{font-size:10px}
}
/* R81 — non-stigmatizing caution state, separate from patient name. */
.appointment-card-v2-warning{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:20px;
  margin-top:4px;
  border:1px solid #fed7aa;
  border-radius:999px;
  padding:2px 7px;
  background:#fff7ed;
  color:#9a3412;
  font-size:9px;
  font-weight:800;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}



/* R82 — warning badge below delete. */
.appointment-card-v2.status-late{border-left-color:#f59e0b!important}
.appointment-card-v2.has-warning .appointment-card-v2-warning{
  position:absolute;
  top:34px;
  right:7px;
  z-index:2;
  max-width:90px;
  margin:0;
  font-size:8.5px;
}
.appointment-card-v2-warning.is-blacklist{
  border-color:#fecaca;
  background:#fff1f2;
  color:#b91c1c;
}
.appointment-card-v2-warning.is-late{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#c2410c;
}
.appointment-card-v2.has-warning .appointment-card-v2-hn,
.appointment-card-v2.has-warning .appointment-card-v2-row{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  padding-right:92px;
}

/* R82.1 — room-board warning specificity. */
#appointmentBoard.appointment-room-board .appointment-room-lane .appointment-card.appointment-card-v2.status-late{border-left-color:#f59e0b!important}
#appointmentBoard.appointment-room-board .appointment-room-lane .appointment-card.appointment-card-v2 .appointment-card-v2-warning.is-blacklist{border-color:#fecaca!important;background:#fff1f2!important;color:#b91c1c!important}
#appointmentBoard.appointment-room-board .appointment-room-lane .appointment-card.appointment-card-v2 .appointment-card-v2-warning.is-late{border-color:#fed7aa!important;background:#fff7ed!important;color:#c2410c!important}


/* R82.14 — pending reschedule badge below delete. */
.appointment-card-reschedule-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  border:1px solid #ef4444;
  border-radius:999px;
  padding:2px 7px;
  background:#fff1f2;
  color:#b91c1c;
  font-size:8.5px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
}
.appointment-card-v2.has-reschedule .appointment-card-reschedule-badge{
  position:absolute;
  top:34px;
  right:7px;
  z-index:3;
}
.appointment-card-v2.has-reschedule.has-warning .appointment-card-v2-warning{
  top:58px;
}
.appointment-card-v2.has-reschedule .appointment-card-v2-hn,
.appointment-card-v2.has-reschedule .appointment-card-v2-row{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  padding-right:94px;
}
