/* Crosscut Hub — Ops board (Schedule). Builds on app.css + hub-theme.css tokens; dark mode via hub-dark.css tokens. */
.ops-stats { margin-bottom: 14px; } .ops-stats .card.risk { box-shadow: inset 0 3px 0 #2f6fd6, var(--shadow); }
.ops { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1180px) { .ops { grid-template-columns: minmax(0, 1fr) 320px; } }
.ops-board { padding: 0; overflow: hidden; }
.ops-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ops-grid { position: relative; }
.ops-head { display: flex; position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.ops-lab { position: sticky; left: 0; z-index: 2; flex: 0 0 190px; width: 190px; background: var(--paper); padding: 10px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ops-head .ops-lab { font: 600 12px/1 var(--text); color: var(--muted); }
.ops-lab .nm { display: flex; align-items: baseline; gap: 6px; min-width: 0; } .ops-lab b { font-size: 15px; color: var(--charcoal); flex: none; } .ops-lab .nm span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ops-lab .u { height: 5px; border-radius: 9px; background: var(--fill-2); margin-top: 4px; overflow: hidden; } .ops-lab .u i { display: block; height: 100%; background: var(--orange); border-radius: 9px; }
.ops-lab small { font-size: 11px; color: var(--muted); }
.ops-day { flex: none; text-align: center; padding: 8px 2px 6px; border-right: 1px solid color-mix(in srgb, var(--line) 60%, transparent); display: flex; flex-direction: column; gap: 2px; }
.ops-day b { font: 600 11.5px/1 var(--text); color: var(--muted); } .ops-day > span { font: 700 13px/1.2 var(--text); color: var(--charcoal); }
.ops-day.today > span, .ops-day.today b { color: var(--orange-2); } .ops-day.today { box-shadow: inset 0 -3px 0 var(--orange); }
.ops-day.sun { opacity: .5; }
.hw { font-size: 13px; line-height: 1.2; display: flex; gap: 3px; justify-content: center; align-items: baseline; flex-wrap: wrap; } .hw span { font-weight: 600; font-size: 12px; color: var(--ink); } .hw small { width: 100%; font-size: 10.5px; color: #2f6fd6; font-weight: 700; }
.hw.bad small { color: var(--red); } .hw.none { color: var(--line); }
.ops-row { display: flex; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.ops-lane { position: relative; display: flex; flex: none; }
.ops-cell { flex: none; height: 100%; border-right: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.ops-cell.sun { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 40%, transparent) 6px 7px); }
.ops-cell.today { background: rgba(248,156,51,.07); }
.ops-bar { position: absolute; top: 8px; bottom: 8px; border-radius: 12px; padding: 8px 10px 6px; background: var(--orange); color: #231f1a; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.10); cursor: grab; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 3px; }
.ops-bar:hover { box-shadow: 0 2px 6px rgba(0,0,0,.14), 0 12px 28px rgba(0,0,0,.16); }
.ops-bar b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ops-bar span { font-size: 11.5px; white-space: nowrap; display: flex; gap: 3px; align-items: center; opacity: .85; }
.ops-bar em { font-style: normal; font-weight: 700; font-size: 10px; background: rgba(0,0,0,.14); border-radius: 99px; padding: 1px 5px; } .ops-bar em.none { background: transparent; font-weight: 600; opacity: .7; }
.ops-bar.in_progress { background: #3E8E5E; color: #fff; } .ops-bar.in_progress em { background: rgba(255,255,255,.22); }
.ops-bar.complete { background: var(--fill-2); color: var(--muted); }
.ops-bar.hold { background: repeating-linear-gradient(135deg, var(--fill-2) 0 8px, var(--fill) 8px 16px); color: var(--ink); cursor: pointer; box-shadow: none; }
.ops-bar .wx { position: absolute; top: auto; bottom: 3px; font-style: normal; font-size: 12px; line-height: 1; opacity: .95; }
.ops-bar .grip { position: absolute; right: 0; top: 0; bottom: 0; width: 14px; cursor: ew-resize; } .ops-bar .grip::after { content: ""; position: absolute; right: 5px; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px; background: rgba(0,0,0,.22); }
.ops-bar.dragging { opacity: .35; }
.ops-ghost { position: fixed; z-index: 90; pointer-events: none; transform: rotate(-1.5deg) scale(1.03); box-shadow: 0 20px 50px rgba(0,0,0,.35) !important; opacity: .95; top: 0; left: 0; }
.ops-preview { position: absolute; top: 6px; bottom: 6px; border-radius: 12px; border: 2px dashed var(--orange); background: rgba(248,156,51,.12); pointer-events: none; display: flex; align-items: flex-end; padding: 0 8px 4px; font: 700 11.5px/1 var(--text); color: var(--orange-2); }
.ops-preview.bad { border-color: var(--red); background: rgba(201,75,59,.12); color: var(--red); }
body.ops-dragging, body.ops-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.ops-hint { font-size: 12.5px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
/* To book queue */
.ops-queue { align-self: start; position: sticky; top: calc(var(--nav-h) + 10px); max-height: calc(100vh - var(--nav-h) - 30px); overflow: auto; transition: box-shadow .2s; }
.ops-queue.drop { box-shadow: inset 0 0 0 3px var(--orange), var(--shadow); }
.ops-q { border-radius: 12px; padding: 12px; background: var(--ground); margin-bottom: 8px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; transition: transform .15s, box-shadow .15s; }
.ops-q:hover { box-shadow: var(--shadow-hi); transform: translateY(-1px); }
.ops-q .t { display: flex; justify-content: space-between; gap: 8px; } .ops-q .t b { color: var(--charcoal); } .ops-q .t span { font-weight: 700; color: var(--charcoal); }
.ops-q .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ops-q .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; } .ops-q .tags span { font: 700 11px/1.6 var(--text); padding: 0 7px; border-radius: 6px; background: var(--fill-2); color: var(--ink); }
.ops-q .tags .ok { background: rgba(62,142,94,.15); color: var(--green); } .ops-q .tags .meh { background: rgba(248,156,51,.16); color: var(--orange-2); } .ops-q .tags .bad { background: rgba(201,75,59,.14); color: var(--red); }
.ops-q.ops-ghost { width: 260px !important; }
/* job sheet */
.ops-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ops-facts div { background: var(--fill); border-radius: 12px; padding: 10px 12px; } .ops-facts span { display: block; font-size: 12px; color: var(--muted); } .ops-facts b { font-size: 15px; color: var(--charcoal); }
.ops-wx { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ops-wx > div { border-radius: 12px; padding: 10px; background: var(--fill); display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ops-wx b { font-size: 13px; color: var(--charcoal); } .ops-wx i { font-style: normal; font-size: 22px; } .ops-wx em { font-style: normal; font-weight: 700; color: var(--charcoal); } .ops-wx small { color: var(--muted); font-size: 11.5px; } .ops-wx small.r { color: var(--red); font-weight: 700; }
.ops-wx > div.bad { background: rgba(201,75,59,.12); } .ops-wx > div.meh { background: rgba(248,156,51,.12); }
.ops-crew { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-crew button { border: 0; border-radius: 999px; padding: 6px 12px 6px 6px; background: var(--fill); color: var(--ink); font: 600 13.5px/1 var(--text); display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.ops-crew em { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); font-size: 11px; font-weight: 700; }
.ops-crew button[aria-pressed="true"] { background: var(--solid); color: #fff; } .ops-crew button[aria-pressed="true"] em { background: var(--orange); color: #231f1a; }
@media (max-width: 719px) { .ops-lab { flex-basis: 120px; width: 120px; padding: 8px; } .ops-lab .nm span { display: none; } .ops-grid { } .ops-queue { position: static; max-height: none; } }

.ops-nav { gap: 8px; margin-left: auto; flex-wrap: nowrap; } .ops-nav .seg button { white-space: nowrap; }
@media (max-width: 719px) { .ops-nav { margin-left: 0; width: 100%; flex-wrap: wrap; } .ops-nav .seg button { padding: 7px 9px; } .ops-stats .num { font-size: 24px; } }
