/* RichHome admin order detail V3: additive layout only. Original status and action UI untouched. */
#order-detail-body.rh-od-enhanced{min-width:0;overflow-wrap:anywhere;color:#233548}
.rh-od-top{display:grid;gap:12px;margin-bottom:18px}
.rh-od-hero{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;background:linear-gradient(120deg,#edf4f9,#f8fbfe);border:1px solid #d9e5ef;padding:16px;border-radius:13px}
.rh-od-eyebrow{display:block;color:#526d83;font-size:11px;margin-bottom:5px}
.rh-od-hero h3{font-size:19px;font-weight:700;line-height:1.35;margin:0;white-space:normal}
.rh-od-hero h3 small{font-size:12px;font-weight:500;color:#63798b;margin-left:6px}
.rh-od-hero p{font-size:12px;margin:7px 0 0;line-height:1.6;color:#516779;white-space:normal}
.rh-od-tag{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #d5e0e9;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:600;background:#f6f9fb;color:#3d607b}
.rh-od-hero-state{background:#e2f1fc;border-color:#bdddf5;color:#175c87}
.rh-od-panel{min-width:0;border:1px solid #dde6ed;background:#fff;border-radius:12px;padding:14px 15px}
.rh-od-panel-title{display:flex;gap:7px;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.rh-od-panel-title h3{font-size:15px;font-weight:700;color:#243b50;margin:0}
.rh-od-panel-title>span{font-size:11px;color:#718496;white-space:nowrap}
.rh-od-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rh-od-progress-item+.rh-od-progress-item{margin-top:13px;padding-top:12px;border-top:1px solid #e6edf2}
.rh-od-progress-head{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:11px}
.rh-od-progress-head strong{font-size:13px;white-space:normal}
.rh-od-current{background:#e9f4fb;color:#175b83}
.rh-od-steps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.rh-od-step{display:flex;flex-direction:column;gap:5px;align-items:center;min-width:0;font-size:11px;color:#718496;text-align:center;white-space:nowrap}
.rh-od-step-dot{width:26px;height:26px;border:1px solid #dce4eb;background:#f3f6f9;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#80909d}
.rh-od-step.done .rh-od-step-dot{background:#e2f3ea;color:#176b4b;border-color:#b5dbc7}
.rh-od-step.done{color:#335b49}
.rh-od-step.current .rh-od-step-dot{outline:2px solid #318768;outline-offset:1px}
.rh-od-schedule-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid #eef2f5;font-size:12px}
.rh-od-schedule-item:first-child{border-top:0;padding-top:0}
.rh-od-schedule-item>div{min-width:0}
.rh-od-schedule-item strong{display:block;white-space:normal;font-size:12px}
.rh-od-schedule-item small{display:block;font-size:11px;color:#81909d;margin-top:4px}
.rh-od-schedule-date{text-align:right}
.rh-od-schedule-type{display:block;font-size:11px;color:#526f88;margin-bottom:4px}
.rh-od-note{border:1px solid #e6edf2;background:#fafcfd;border-radius:9px;padding:11px;margin-top:8px;font-size:12px}
.rh-od-note:first-child{margin-top:0}
.rh-od-note-meta{font-size:11px;color:#708399;line-height:1.5;margin-bottom:9px}
.rh-od-note-label{font-size:12px;font-weight:700;color:#294761;margin:9px 0 4px}
.rh-od-note p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:0;color:#34495d;line-height:1.7}
.rh-od-previous{margin-top:9px;border-top:1px solid #e5ebf0;padding-top:8px}
.rh-od-previous>summary{list-style:revert;cursor:pointer;color:#3d617d;font-size:12px;padding:3px 0}
.rh-od-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.rh-od-photo{display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;min-width:0;aspect-ratio:1;background:#f0f5f8;border:1px solid #dbe4ec;border-radius:10px;padding:0;color:#4f6980}
.rh-od-photo img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.rh-od-photo small{z-index:1;position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#000b);color:white;padding:14px 3px 4px;font-size:10px;line-height:1.25;white-space:normal;text-align:center}
.rh-od-photo-placeholder{font-size:11px;white-space:normal;padding:3px}
.rh-od-photo-hint{font-size:11px;color:#6b7e90;margin:10px 0 0;line-height:1.6}
.rh-od-more{display:block;margin:12px auto 0;font-size:12px;border-radius:7px}
.rh-od-muted,.rh-od-loading{font-size:12px;color:#798b99;margin:3px 0;line-height:1.65;white-space:normal}
.rh-od-error{font-size:12px;color:#ae3131;margin:0 0 5px;white-space:normal}
.rh-od-info-label{font-size:15px;margin:16px 0 9px;color:#2b465e}
#order-detail-body.rh-od-enhanced>.order-detail-grid{padding:14px 15px;border:1px solid #e0e7ed;border-radius:11px;background:#fafcfe}
#order-detail-body.rh-od-enhanced>.order-section{border:1px solid #e0e7ed;border-radius:11px;padding:13px 15px;margin-top:12px;background:#fff}
#order-detail-body.rh-od-enhanced>.order-section h3{font-size:14px;font-weight:700}
.rh-od-viewer{width:min(900px,97vw);max-width:97vw;max-height:95vh;background:#15202b;border:0;border-radius:13px;padding:8px;color:#fff;overflow:hidden}
.rh-od-viewer::backdrop{background:rgba(0,0,0,.82)}
.rh-od-viewer-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 5px;gap:10px;font-size:13px}
.rh-od-viewer-bar button{border-radius:7px;padding:6px 12px}
.rh-od-viewer-stage{display:flex;gap:5px;justify-content:center;align-items:center;height:min(78vh,800px)}
.rh-od-viewer-stage img{min-width:0;max-width:calc(100% - 96px);max-height:100%;width:auto;height:auto;object-fit:contain}
.rh-od-viewer-stage button{width:42px;flex:none;border-radius:8px;font-size:23px}
@media(max-width:760px){
  .rh-od-cards{grid-template-columns:1fr}
  .rh-od-steps{overflow-x:auto;grid-template-columns:repeat(8,minmax(60px,1fr));padding:3px 2px 8px}
  .rh-od-panel{padding:12px}
  .rh-od-hero{padding:12px;flex-wrap:wrap}
  .rh-od-hero h3{font-size:17px}
  .rh-od-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rh-od-schedule-item{gap:8px}
  .rh-od-viewer-stage img{max-width:calc(100% - 76px)}
  .rh-od-viewer-stage button{width:32px;padding:6px}
}

/* RH_ORDER_COLLAB_DETAIL_V1: compact card, wrap long organization names on mobile. */
.rh-od-collab-panel{border-color:#d2e3ef;background:#f9fcff}
.rh-od-collab-panel .rh-od-panel-title{align-items:center;margin-bottom:7px}
.rh-od-collab-row{display:grid;grid-template-columns:minmax(90px,115px) minmax(0,1fr);gap:8px;padding:6px 0;font-size:12px;line-height:1.6;border-top:1px solid #e7eef4}
.rh-od-collab-row>strong{font-weight:600;color:#486478}
.rh-od-collab-row>div{display:flex;flex-wrap:wrap;gap:4px 12px;min-width:0;overflow-wrap:anywhere}
.rh-od-collab-row>div>span{max-width:100%;white-space:normal}
.rh-od-collab-row small{color:#677d90;font-size:11px}
.rh-od-collab-panel .rh-od-error{margin-top:6px}
@media(max-width:480px){.rh-od-collab-row{grid-template-columns:92px minmax(0,1fr);gap:6px}}
