/* ---- Rush Hour Desk (loads after app.css and match.css) ---- */
#cma-ld .rh-card { padding: 24px; }
#cma-ld .rh-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: -8px -8px 14px; padding: 8px; position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--ld-line); }
body.admin-bar #cma-ld .rh-bar { top: 32px; }
#cma-ld .rh-q { margin: 6px 0 0; font-size: 1.15rem; }
#cma-ld .rh-clock { flex: 0 0 120px; text-align: right; font-family: var(--ld-display); font-weight: 700; font-size: 2rem; color: var(--ld-navy); line-height: 1; }
#cma-ld .rh-clock.is-low { color: var(--ld-rust); }
#cma-ld .rh-clockbar { height: 6px; border-radius: 999px; background: var(--ld-line); margin-top: 8px; overflow: hidden; }
#cma-ld .rh-clockbar i { display: block; height: 100%; width: 100%; background: var(--ld-navy); transition: width .25s linear; }
#cma-ld .rh-clock.is-low .rh-clockbar i { background: var(--ld-rust); }
#cma-ld .rh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rh-ro {
  display: flex; align-items: stretch; gap: 10px; background: #fff;
  border: 2px solid var(--cma-line-strong, #CDD3DA); border-left: 6px solid var(--cma-navy, #1A334B);
  border-radius: 8px; padding: 10px 12px 10px 6px; list-style: none;
  font-family: var(--cma-body, Mulish), "Segoe UI", Arial, sans-serif; color: var(--cma-ink, #2C333D);
}
.rh-ro.is-held { border-left-color: var(--cma-rust, #B34839); background: #FDF6F4; }
.rh-ro.is-dragging { position: fixed; z-index: 100000; margin: 0; box-shadow: 0 18px 40px -12px rgba(18,36,56,.45); pointer-events: none; opacity: .96; }
#cma-ld .rh-placeholder { list-style: none; border: 2px dashed var(--ld-line-strong); border-radius: 8px; background: #F6F8FA; }
.rh-grip { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; color: #9AA3AD; }
.rh-grip svg { width: 12px; height: 20px; fill: currentColor; }
.rh-body { flex: 1; min-width: 0; }
.rh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.rh-no { font-family: var(--cma-display, Poppins), Arial, sans-serif; font-weight: 700; font-size: 14px; color: var(--cma-navy, #1A334B); }
.rh-svc { font-weight: 700; font-size: 15px; }
.rh-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; font-size: 13.5px; line-height: 1.3; }
.rh-fields > div { min-width: 0; overflow-wrap: anywhere; }
.rh-fields span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cma-ink-500, #6E7681); }
.rh-fields .rh-vin { grid-column: span 2; }
.rh-fields code { font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px; letter-spacing: .06em; background: #F1F3F5; color: var(--cma-ink, #2C333D); padding: 1px 4px; border-radius: 3px; }
.rh-sig { font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; font-weight: 400; font-size: 17px; color: var(--cma-navy, #1A334B); }
.rh-blank { display: inline-block; width: 70px; height: 1em; border-bottom: 1.5px solid #9AA3AD; }
.rh-side { flex: 0 0 150px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 8px; }
.rh-time { text-align: right; font-family: var(--cma-display, Poppins), Arial, sans-serif; font-weight: 700; font-size: 20px; color: var(--cma-rust, #B34839); line-height: 1.1; }
.rh-time span { display: block; font-family: var(--cma-body, Mulish), Arial, sans-serif; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cma-ink-500, #6E7681); }
.rh-tools { display: flex; gap: 6px; }
#cma-ld .rh-move, #cma-ld .rh-hold, .rh-ro .rh-move, .rh-ro .rh-hold {
  min-height: 40px; min-width: 40px; padding: 0 10px; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--cma-line-strong, #CDD3DA); background: #fff; color: var(--cma-navy, #1A334B);
  font-family: var(--cma-display, Poppins), Arial, sans-serif; font-weight: 700; font-size: 14px; line-height: 1;
  text-transform: none; letter-spacing: 0;
}
#cma-ld .rh-move:hover:not(:disabled), #cma-ld .rh-hold:hover { border-color: var(--ld-navy); background: #F6F8FA; color: var(--ld-navy); }
#cma-ld .rh-move:disabled { opacity: .35; cursor: default; }
#cma-ld .rh-hold[aria-pressed="true"], .rh-ro .rh-hold[aria-pressed="true"] { background: var(--cma-rust, #B34839); border-color: var(--cma-rust, #B34839); color: #fff; }
#cma-ld .rh-move:focus-visible, #cma-ld .rh-hold:focus-visible { outline: 3px solid var(--ld-rust-400); outline-offset: 2px; }
#cma-ld .rh-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
#cma-ld .rh-count { font-size: .9rem; color: var(--ld-ink-500); font-weight: 700; }

#cma-ld .rh-review { margin: 0 0 20px; border: 1px solid var(--ld-line); border-radius: 8px; padding: 10px 14px; }
#cma-ld .rh-review summary { cursor: pointer; font-family: var(--ld-display); font-weight: 600; color: var(--ld-navy); }
#cma-ld .rh-review ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
#cma-ld .rh-rev { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: .92rem; padding: 6px 0; border-top: 1px solid var(--ld-line); }
#cma-ld .rh-rev:first-child { border-top: 0; }
#cma-ld .rh-rev-time { font-family: var(--ld-display); font-weight: 700; color: var(--ld-rust); }
#cma-ld .rh-rev-main em { display: block; font-style: normal; color: var(--ld-rust-600); font-weight: 600; margin-top: 2px; }
#cma-ld .rh-rev-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
#cma-ld .rh-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
#cma-ld .rh-tag.ok { background: var(--ld-ok-bg); color: var(--ld-ok); }
#cma-ld .rh-tag.miss { background: var(--ld-rust-100); color: var(--ld-rust-600); }
#cma-ld .rh-tag.neutral { background: #F1F3F5; color: var(--ld-ink-500); }

@media (max-width: 700px) {
  #cma-ld .rh-card { padding: 16px 12px; }
  #cma-ld .rh-bar { flex-direction: column-reverse; gap: 8px; }
  #cma-ld .rh-clock { flex: none; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
  #cma-ld .rh-clockbar { flex: 1; margin: 0; }
  .rh-ro { flex-wrap: wrap; padding-left: 4px; }
  .rh-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-side { flex: 1 0 100%; flex-direction: row; align-items: center; padding-left: 32px; }
  .rh-time { text-align: left; }
  #cma-ld .rh-rev { grid-template-columns: 64px minmax(0, 1fr); }
  #cma-ld .rh-rev-tags { grid-column: 2; justify-content: flex-start; }
}
#cma-ld.ld-kiosk .rh-move, #cma-ld.ld-kiosk .rh-hold { min-height: 48px; min-width: 48px; font-size: 16px; }
body.cma-ld-kiosk-page #cma-ld .rh-bar { top: -24px; }
