.area-handover-legend {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid #dce4e7;
  border-radius: 10px;
  background: #f8fafb;
  color: #65737c;
  font-size: 10px;
}
.area-handover-legend > span,
.area-handover-status {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.area-handover-status:hover { transform: translateY(-1px); box-shadow: 0 4px 12px #17212a18; }
.area-handover-status:focus-visible { outline: 3px solid #118b7a44; outline-offset: 2px; }
.area-handover-legend .person-legend-title { margin-left: auto; }
.area-handover-legend .person-yellow b,
.area-handover-legend .person-red b,
.area-handover-legend .person-green b {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e3b01c;
  box-shadow: 0 0 0 3px #e3b01c22;
}
.area-handover-legend .person-red b { background: #d94438; box-shadow: 0 0 0 3px #d9443822; }
.area-handover-legend .person-green b { background: #20a66a; box-shadow: 0 0 0 3px #20a66a22; }
.area-handover-legend i,
.area-handover-status > i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8b959d;
  box-shadow: 0 0 0 3px #8b959d22;
}
.area-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.area-title-row h2 { min-width: 0; }
.area-handover-status {
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid #dce4e7;
  border-radius: 999px;
  background: #f5f7f8;
  color: #65737c;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
}
.area-handover-status > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.area-handover-status.orange { border-color: #f1c17c; background: #fff6e8; color: #945b0b; }
.area-handover-status.orange > i,
.area-handover-legend .orange i { background: #ed9418; box-shadow: 0 0 0 3px #ed941822; }
.area-handover-status.red { border-color: #efaaa4; background: #fff0ef; color: #a83228; }
.area-handover-status.red > i,
.area-handover-legend .red i { background: #d94438; box-shadow: 0 0 0 3px #d9443822; }
.area-handover-status.green { border-color: #8bd4b4; background: #eaf9f2; color: #176d4a; }
.area-handover-status.green > i,
.area-handover-legend .green i { background: #20a66a; box-shadow: 0 0 0 3px #20a66a22; }
.handover-detail-overlay {
  position: fixed;
  z-index: 270;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #101820dc;
  backdrop-filter: blur(3px);
}
.handover-detail-card {
  position: relative;
  width: min(570px,100%);
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  color: #17212a;
  box-shadow: 0 26px 80px #0007;
}
.handover-detail-close {
  position: absolute;
  right: 13px;
  top: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #eef2f3;
  color: #53636d;
  font-size: 24px;
}
.handover-detail-card>header>small,.handover-detail-message>small,.handover-detail-checklist header small { color: #118b7a; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.handover-detail-card h2 { margin: 4px 45px 10px 0; font-size: 25px; }
.handover-detail-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 20px; background: #f0f3f4; color: #65737c; font-size: 10px; font-weight: 850; }
.handover-detail-state>i { width: 10px; height: 10px; border-radius: 50%; background: #8b959d; }
.handover-detail-state.orange>i { background: #ed9418; }.handover-detail-state.red>i { background: #d94438; }.handover-detail-state.green>i { background: #20a66a; }
.handover-detail-message,.handover-detail-checklist,.handover-detail-empty { margin-top: 16px; padding: 14px; border: 1px solid #dde5e8; border-radius: 11px; background: #f7f9f9; }
.handover-detail-message p { margin: 7px 0 0; color: #344650; line-height: 1.55; white-space: pre-wrap; }
.handover-detail-message em { color: #7b888f; }
.handover-detail-checklist header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.handover-detail-checklist header b { color: #61717a; font-size: 10px; }
.handover-detail-checklist>div { display: flex; align-items: flex-start; gap: 9px; padding: 8px 4px; border-top: 1px solid #e3e9eb; font-size: 12px; }
.handover-detail-checklist>div i { color: #7b8990; font-style: normal; font-weight: 900; }.handover-detail-checklist>div.done i { color: #20a66a; }.handover-detail-checklist>div.done span { color: #748189; text-decoration: line-through; }
.handover-detail-empty { color: #67767f; text-align: center; }.handover-detail-empty.success { border-color: #9bd9bd; background: #edf9f3; color: #176d4a; }.handover-detail-empty.warning { border-color: #efd19e; background: #fff8ec; color: #895a18; }
.handover-detail-card>footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e2e8ea; }
.handover-detail-card>footer>div { display: grid; gap: 2px; }.handover-detail-card>footer strong { font-size: 11px; }.handover-detail-card>footer small { color: #75838b; font-size: 9px; }
.handover-detail-card>footer button { border: 0; border-radius: 9px; padding: 10px 13px; background: #118b7a; color: #fff; font-weight: 850; }
@media (max-width: 700px) {
  .area-handover-status { min-width: 38px; min-height: 38px; max-width: 145px; justify-content: center; padding: 0; }
  .area-handover-status > span { display: none; }
  .area-handover-legend { gap: 8px; }
  .area-handover-legend > strong { width: 100%; }
  .area-handover-legend .person-legend-title { margin-left: 0; }
  .handover-detail-card { padding: 18px; border-radius: 13px; }
  .handover-detail-card>footer { align-items: stretch; flex-direction: column; }
  .handover-detail-card>footer button { width: 100%; }
}
