/* Compact, read-only order-detail timeline. Scoped to the admin order modal. */
#order-detail-body > .rh-order-current{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:10px 18px;margin:16px 0 14px;padding:13px 17px;
  border:1px solid #d8e4ed;border-radius:12px;background:#f7fafc;
}
.rh-order-current-state{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.rh-order-current-label{font-size:12px;font-weight:700;color:#607589}
.rh-order-current-status{font-size:17px;font-weight:850;color:#183d57}
.rh-order-current-progress{font-size:13px;color:#385c73;font-weight:750;line-height:1.5}
.rh-timeline-main{
  border:1px solid #d8e4ee;border-radius:13px;
  background:#fff;padding:19px 22px;margin:0 0 14px;
}
.rh-timeline-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.rh-timeline-title-area h3{margin:0 0 5px!important;color:#1c3c53;font-size:18px;line-height:1.4}
.rh-timeline-title-area p{margin:0;color:#75869a;font-size:12px}
.rh-timeline-sort{
  color:#647f94;background:#f0f4f8;border-radius:15px;
  font-size:11px;font-weight:750;white-space:nowrap;padding:5px 10px
}
.rh-timeline-list{margin:0;min-width:0}
.rh-timeline-date{
  padding:12px 0 7px 25px;color:#547088;
  font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;
}
.rh-timeline-date:first-child{padding-top:3px}
.rh-timeline-item{
  display:grid;grid-template-columns:18px minmax(0,1fr);
  column-gap:10px;padding:0;min-width:0;
}
.rh-timeline-marker{position:relative;display:flex;justify-content:center;align-items:flex-start;padding-top:15px}
.rh-timeline-marker::before{content:"";position:absolute;top:18px;bottom:-20px;left:8px;width:2px;background:#e2eaf0}
.rh-timeline-dot{position:relative;z-index:1;display:block;width:10px;height:10px;border-radius:50%;background:#5b819e;border:2px solid #fff;box-shadow:0 0 0 1px #b5cad9}
.rh-timeline-item:last-child .rh-timeline-marker::before{bottom:0}
.rh-timeline-content{min-width:0;padding:10px 13px 12px;margin:0 0 7px;background:#fafcfe;border:1px solid #e6edf2;border-radius:9px}
.rh-timeline-item-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:4px}
.rh-timeline-item-top time{color:#6a7f90;font-size:12px;font-variant-numeric:tabular-nums;font-weight:750}
.rh-timeline-tag{
  color:#48667b;background:#ecf3f8;padding:2px 7px;
  font-weight:750;font-size:11px;border-radius:10px
}
.rh-timeline-item[data-category="REVIEW"] .rh-timeline-dot,
.rh-timeline-item[data-category="SETTLEMENT"] .rh-timeline-dot{background:#407a69}
.rh-timeline-item[data-category="TRANSFER"] .rh-timeline-dot{background:#ad7343}
.rh-timeline-item[data-category="EXTRA"] .rh-timeline-dot{background:#ad7343}
.rh-timeline-event-title{display:block;font-size:14px;color:#223f55;font-weight:850;line-height:1.5;overflow-wrap:anywhere}
.rh-timeline-actor{font-size:12px;color:#567186;margin-top:2px}
.rh-timeline-description{margin:5px 0 0;font-size:12px;color:#5c7282;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.rh-timeline-empty{margin:8px 0 15px;padding:12px;color:#73879a;font-size:13px}
.rh-timeline-gap{
  margin:10px 0 12px 28px;padding:12px 14px;
  border:1px dashed #cedce6;border-radius:9px;background:#f8fafc;
  color:#607b90;font-size:12px;font-weight:750;line-height:1.5;text-align:center;
}
.rh-timeline-footer{display:flex;flex-wrap:wrap;gap:9px;padding:11px 0 0 28px}
.rh-timeline-footer button{
  cursor:pointer;font:inherit;font-size:12px;font-weight:800;
  min-height:37px;border-radius:8px;padding:8px 13px
}
/* High-contrast timeline actions. Explicit text color prevents inherited hover styles. */
#order-detail-body .rh-timeline-main .rh-timeline-footer button.rh-timeline-more{
  background:#1e567d;border:1px solid #1e567d;color:#ffffff;
}
.rh-timeline-more[hidden]{display:none!important}
#order-detail-body .rh-timeline-main .rh-timeline-footer button.rh-timeline-archive-button{
  background:#eef4f8;border:1px solid #bbcfdd;color:#214761;
}
#order-detail-body .rh-timeline-main .rh-timeline-footer button.rh-timeline-more:hover,
#order-detail-body .rh-timeline-main .rh-timeline-footer button.rh-timeline-more:focus-visible{
  background:#123f60;border-color:#123f60;color:#ffffff;
}
#order-detail-body .rh-timeline-main .rh-timeline-footer button.rh-timeline-archive-button:hover,
#order-detail-body .rh-timeline-main .rh-timeline-footer button.rh-timeline-archive-button:focus-visible{
  background:#d8e8f2;border-color:#9db8cc;color:#14384f;
}
#order-detail-body .rh-timeline-main .rh-timeline-footer button:focus-visible{
  outline:3px solid #d28a37;outline-offset:2px;
}
#order-detail-body .rh-timeline-main .rh-timeline-footer button{
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.rh-timeline-note{margin:10px 0 0;padding:6px 0;color:#90764c;font-size:12px;line-height:1.5}
#order-detail-body > .rh-order-archive{
  border:1px solid #e0e8ee;border-radius:10px;
  margin:14px 0 18px;background:#fff;overflow:clip;
}
.rh-order-archive > summary{
  cursor:pointer;list-style:none;padding:14px 16px;
  font-size:13px;font-weight:800;color:#49677c;background:#f8fafb;
}
.rh-order-archive > summary::-webkit-details-marker{display:none}
.rh-order-archive > summary::before{content:"▸";display:inline-block;margin-right:10px;transition:transform .15s ease}
.rh-order-archive[open] > summary::before{transform:rotate(90deg)}
.rh-order-archive-content{padding:4px 14px 16px}
.rh-order-archive-content > .order-section,
.rh-order-archive-content > details.order-section{margin:10px 0;padding:12px 0}
#order-detail-body > .rh-order-essential-action{margin-top:13px}
@media(max-width:680px){
  #order-detail-body > .rh-order-current{margin:12px 0;padding:11px 12px}
  .rh-timeline-main{padding:14px 12px}
  .rh-timeline-header{margin-bottom:9px}
  .rh-timeline-date{padding-left:21px}
  .rh-timeline-item{grid-template-columns:15px minmax(0,1fr);column-gap:7px}
  .rh-timeline-marker::before{left:6px}
  .rh-timeline-content{padding:9px 10px}
  .rh-timeline-footer{padding-left:20px}
  .rh-order-archive-content{padding:3px 9px 12px}
}
@media(prefers-reduced-motion:reduce){
  .rh-order-archive > summary::before,
  #order-detail-body .rh-timeline-main .rh-timeline-footer button{transition:none}
}