body.arq-modal-open{overflow:hidden!important}.arq-overlay{position:fixed;inset:0;z-index:2147483600;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(1,7,18,.82);backdrop-filter:blur(8px)}.arq-overlay.open{display:flex}.arq-dialog{display:flex;flex-direction:column;width:min(1760px,98vw);height:min(920px,95vh);overflow:hidden;border:1px solid #1d4668;border-radius:18px;background:#071729;color:#e6edf7;box-shadow:0 30px 100px #000b;font-family:Inter,system-ui,sans-serif}.arq-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid #17344f}.arq-head h2{margin:0;font-size:23px;font-weight:950;letter-spacing:.04em}.arq-head p{margin:5px 0 0;color:#8da2b9;font-size:12px}.arq-head-actions{display:flex;align-items:center;gap:9px}.arq-head-actions strong{margin-right:12px;font-size:13px}.arq-head-actions button,.arq-days,.arq-dialog footer button{height:42px;border:1px solid #294761;border-radius:9px;background:#10243a;color:#dbeafe;padding:0 15px;font-weight:800}.arq-head-actions button{width:44px;padding:0}.arq-days{display:flex;align-items:center;border-color:#32618a;color:#bfdbfe}.arq-legend{display:flex;align-items:center;gap:28px;margin:12px 16px 8px;padding:11px 16px;border:1px solid #163650;border-radius:10px;background:#091c2f;color:#a9b8c9;font-size:12px}.arq-legend span{display:flex;align-items:center;gap:8px}.arq-legend b{margin-left:auto;border:1px solid #294761;border-radius:7px;padding:7px 11px;color:#cbd5e1}.arq-box{width:20px;height:17px;border:1px solid;border-radius:4px}.arq-box.available{border-color:#16875f;background:#0c382f}.arq-box.sold{border-color:#e23c56;background:#402134}.arq-dot{width:10px;height:10px;border-radius:50%}.arq-dot.rate{background:#f8fafc}.arq-dot.base{background:#34d399}.arq-summary{display:flex;align-items:center;gap:10px;margin:8px 16px 10px;color:#b8c9dd;font-size:12px}.arq-summary i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#12365c;color:#7dd3fc}.arq-content{flex:1;min-height:0;overflow:auto;margin:0 16px;border:1px solid #173650;border-radius:12px;background:#08192a}.arq-table-wrap{min-width:1300px}.arq-content table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.arq-content th,.arq-content td{border-right:1px solid #19354d;border-bottom:1px solid #19354d}.arq-content thead th{position:sticky;top:0;z-index:4;height:80px;background:#101f32;text-align:center}.arq-content thead th:first-child{left:0;z-index:6;width:210px;text-align:left;padding-left:18px}.arq-content thead th:nth-child(2){width:75px}.arq-content thead th small,.arq-content thead th b{display:block}.arq-content thead th small{color:#748aa1;font-size:9px}.arq-content thead th b{margin:3px 0;color:#e7edf7;font-size:17px}.arq-content thead th.weekend b{color:#fbbf24}.arq-content thead th em{display:block;color:#38bdf8;font-size:8px;font-style:normal}.arq-content tbody th{position:sticky;left:0;z-index:3;padding:14px 17px;background:#101f32;text-align:left}.arq-content tbody th b,.arq-content tbody th small{display:block}.arq-content tbody th b{font-size:13px}.arq-content tbody th small{margin-top:5px;color:#60778f;font-family:monospace;font-size:9px}.arq-kind{width:75px;background:#101f32;color:#94a3b8;text-align:center;font-size:11px;font-weight:900}.arq-kind small{display:block;margin-top:3px;overflow:hidden;color:#536b83;font-size:7px;text-overflow:ellipsis}.arq-content td{height:58px;padding:7px;text-align:center}.arq-avl{display:grid;place-items:center;height:36px;border:1px solid;border-radius:7px;font-weight:900}.arq-avl.available{border-color:#176a51;background:#102f31;color:#34d399}.arq-avl.sold{border-color:#a92f49;background:#3d2034;color:#fb7185}.arq-rate b{display:block;color:#f1f5f9;font-family:ui-monospace,monospace;font-size:12px}.arq-rate span{display:block;margin-top:5px;font-size:8px;font-weight:850}.arq-rate .up,.arq-rate .same{color:#34d399}.arq-rate .down{color:#f59e0b}.arq-rate-row td{background:#0b1828}.arq-dialog footer{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-top:1px solid #17344f;color:#8195ab;font-size:11px}.arq-loading,.arq-error,.arq-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;height:100%;min-height:300px;color:#8fa5bc}.arq-loading i{font-size:28px;color:#38bdf8}.arq-error{color:#fda4af}.arq-error button{border:1px solid #be344f;border-radius:8px;background:#42192a;color:#fecdd3;padding:9px 15px}.arq-open-button{display:inline-flex!important;align-items:center!important;gap:7px!important;height:36px!important;padding:0 11px!important;border:1px solid #256b78!important;border-radius:9px!important;background:#0d3441!important;color:#a5f3fc!important;font-size:9.5px!important;font-weight:900!important;white-space:nowrap!important}.arq-open-button:hover{background:#125060!important;color:#ecfeff!important}@media(max-width:760px){.arq-overlay{padding:0}.arq-dialog{width:100vw;height:100dvh;border-radius:0}.arq-head{align-items:flex-start;padding:13px}.arq-head h2{font-size:16px}.arq-head-actions strong{display:none}.arq-legend{gap:12px;overflow:auto}.arq-legend b{display:none}.arq-content{margin:0 8px}.arq-open-button span{display:none}}
/* V2 — 14-day view with synchronized horizontal scrolling. */
.arq-content thead th:nth-child(2){position:sticky;left:210px;z-index:6;background:#101f32}.arq-content tbody .arq-kind{position:sticky;left:210px;z-index:3;background:#101f32}
.arq-top-scroll{height:14px;margin:0 16px 6px;overflow-x:auto;overflow-y:hidden;border-radius:8px;background:#071422;scrollbar-color:#2c5877 #091827;scrollbar-width:thin}.arq-top-scroll[hidden]{display:none}.arq-top-scroll>div{height:1px}.arq-top-scroll::-webkit-scrollbar,.arq-content::-webkit-scrollbar{height:11px;width:11px}.arq-top-scroll::-webkit-scrollbar-track,.arq-content::-webkit-scrollbar-track{background:#091827;border-radius:8px}.arq-top-scroll::-webkit-scrollbar-thumb,.arq-content::-webkit-scrollbar-thumb{background:#2c5877;border:2px solid #091827;border-radius:8px}.arq-content{scroll-behavior:smooth;overscroll-behavior:contain}.arq-table-wrap{min-width:1930px!important}

/* V3 — open as a right-side horizontal drawer, matching View Insights. */
.arq-overlay{align-items:stretch!important;justify-content:flex-end!important;padding:0!important;background:rgba(1,7,18,.58)!important;backdrop-filter:blur(5px)!important}.arq-overlay.open .arq-dialog{animation:arqDrawerIn .28s cubic-bezier(.2,.82,.25,1) both}.arq-dialog{width:min(1900px,96vw)!important;height:100dvh!important;max-height:none!important;border-top:0!important;border-right:0!important;border-bottom:0!important;border-radius:22px 0 0 22px!important;box-shadow:-30px 0 100px rgba(0,0,0,.68)!important;transform-origin:right center}@keyframes arqDrawerIn{from{transform:translateX(100%);opacity:.72}to{transform:translateX(0);opacity:1}}@media(max-width:760px){.arq-dialog{width:100vw!important;border-left:0!important;border-radius:0!important}}

/* V4 — date navigation lives inside the drawer and reloads only this view. */
.arq-date-nav{display:flex;align-items:center;height:42px;border:1px solid #294761;border-radius:10px;background:#0a1c2e;overflow:hidden}.arq-date-nav button{height:40px!important;width:auto!important;min-width:40px!important;padding:0 11px!important;border:0!important;border-right:1px solid #263f56!important;border-radius:0!important;background:transparent!important;color:#cbd5e1!important;font-size:10px!important}.arq-date-nav button:hover{background:#15324c!important;color:#fff!important}.arq-date-nav label{position:relative;display:flex;align-items:center;gap:7px;height:40px;padding:0 10px;color:#5eead4}.arq-date-nav input{width:112px;border:0;outline:0;background:transparent;color:#e2e8f0;font-size:11px;font-weight:850;color-scheme:dark}.arq-date-nav input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.7}@media(max-width:1180px){.arq-head-actions>strong{display:none}.arq-date-nav input{width:104px}}@media(max-width:760px){.arq-head-actions{gap:5px}.arq-date-nav #arqToday{display:none}.arq-date-nav input{width:100px}.arq-days{display:none}}

/* V5 — fit all displayed days inside the drawer without horizontal dragging. */
.arq-top-scroll{display:none!important}.arq-table-wrap{min-width:0!important;width:100%!important}.arq-content table{width:100%!important;min-width:0!important}.arq-content thead th:first-child{width:180px!important}.arq-content thead th:nth-child(2){left:180px!important;width:62px!important}.arq-content tbody .arq-kind{left:180px!important;width:62px!important}.arq-content tbody th{width:180px!important}.arq-content th,.arq-content td{min-width:0!important}.arq-content td{padding:6px!important}.arq-rate b{font-size:clamp(9px,.7vw,12px)!important}.arq-rate span{font-size:clamp(7px,.5vw,8px)!important}.arq-avl{height:34px!important}

/* V6 — guarded AVL, RATE and Stop Sell editing. */
.arq-legend button{margin-left:auto;height:34px;border:1px solid #287292;border-radius:8px;background:#103148;color:#bae6fd;padding:0 12px;font-size:9px;font-weight:900}.arq-edit-input{box-sizing:border-box;width:100%;outline:0;text-align:center;font-weight:900}.arq-edit-input:focus{border-color:#38bdf8!important;box-shadow:0 0 0 3px rgba(56,189,248,.12)}.arq-edit-input.draft,.arq-stop.draft{border-color:#fbbf24!important;box-shadow:0 0 0 2px rgba(251,191,36,.15)}.arq-rate-input{height:34px;border:1px solid #31506a;border-radius:7px;background:#0d2032;color:#f8fafc;font-family:ui-monospace,monospace;font-size:11px}.arq-stop{width:100%;height:32px;border:1px solid;border-radius:7px;font-size:9px;font-weight:950}.arq-stop.open{border-color:#176a51;background:#102f31;color:#34d399}.arq-stop.closed{border-color:#a92f49;background:#3d2034;color:#fb7185}.arq-stop:disabled{cursor:default;opacity:.88}.arq-stop-row td{background:#091522}.arq-footer-actions{display:flex;gap:8px}.arq-footer-actions #arqSave{border-color:#059669;background:#047857;color:#fff}.arq-footer-actions #arqSave:disabled{opacity:.45}.arq-footer-actions #arqCancelDraft{border-color:#92400e;background:#3b1f12;color:#fde68a}

/* V7 — mobile AVL & Rate: readable fixed columns and scrollable dates. */
@media(max-width:760px){
  .arq-head{display:grid!important;grid-template-columns:minmax(92px,120px) minmax(0,1fr);align-items:start!important;gap:10px!important;padding:12px!important}
  .arq-head>div:first-child{min-width:0}.arq-head h2{font-size:18px!important;line-height:1.15}.arq-head p{font-size:10px!important;line-height:1.45}
  .arq-head-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 48px 48px;gap:7px!important;min-width:0;width:100%}
  .arq-date-nav{min-width:0;width:100%;height:48px}.arq-date-nav button{min-width:44px!important;height:46px!important}.arq-date-nav label{min-width:0;flex:1;height:46px;padding:0 8px}.arq-date-nav input{min-width:0;width:100%!important;font-size:12px!important}
  .arq-head-actions>#arqReload,.arq-head-actions>#arqClose{width:48px!important;height:48px!important;border-radius:11px!important}.arq-days{display:none!important}
  .arq-legend{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px!important;margin:10px 10px 7px!important;padding:10px 12px!important;overflow:visible!important}.arq-legend span{min-width:0;font-size:11px}.arq-legend button{grid-column:1/-1;width:100%;margin:1px 0 0!important;height:40px!important}
  .arq-summary{align-items:flex-start;margin:9px 12px!important;font-size:11px;line-height:1.45}.arq-summary i{flex:0 0 25px}
  .arq-content{margin:0 8px!important;overflow:auto!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}.arq-table-wrap{width:max-content!important;min-width:100%!important}.arq-content table{width:auto!important;min-width:638px!important;table-layout:fixed!important}
  .arq-content thead th:first-child{left:0!important;width:126px!important;min-width:126px!important;padding:0 10px!important}.arq-content thead th:nth-child(2){left:126px!important;width:68px!important;min-width:68px!important}.arq-content tbody th{left:0!important;width:126px!important;min-width:126px!important;padding:10px!important}.arq-content tbody .arq-kind{left:126px!important;width:68px!important;min-width:68px!important;padding:5px!important}
  .arq-content thead th:nth-child(n+3),.arq-content tbody td:not(.arq-kind){width:110px!important;min-width:110px!important;max-width:110px!important;scroll-snap-align:start}.arq-content td{height:58px!important;padding:6px 8px!important}
  .arq-content tbody th b{overflow-wrap:anywhere;font-size:12px!important}.arq-content tbody th small{font-size:8px!important}.arq-rate b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important}.arq-rate span{min-height:20px;line-height:1.25;font-size:8px!important}.arq-avl{height:36px!important;font-size:16px}.arq-stop{font-size:9px!important}
  .arq-dialog footer{gap:8px;padding:10px 12px!important}.arq-dialog footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arq-footer-actions{flex:0 0 auto}.arq-footer-actions button{padding:0 12px!important}
}

/* V8 — detect and repair Channex AVL that differs from local physical inventory. */
.arq-summary:has(.arq-repair){margin:8px 16px 10px;padding:10px 12px;border:1px solid #ef4444;border-radius:10px;background:#351826;color:#fecaca;box-shadow:0 0 18px rgba(239,68,68,.13)}
.arq-summary:has(.arq-repair) i{background:#7f1d2d;color:#fecaca}
.arq-repair{margin-left:auto;min-height:34px;border:1px solid #fb7185;border-radius:8px;background:#9f1239;color:#fff;padding:0 13px;font-size:10px;font-weight:950;white-space:nowrap}
.arq-repair:disabled{opacity:.55}.arq-mismatch-cell{background:rgba(127,29,45,.16)!important}
.arq-avl.mismatch{border-color:#fb7185!important;background:#4c1729!important;color:#fff!important;box-shadow:0 0 0 2px rgba(251,113,133,.16),0 0 16px rgba(244,63,94,.2)}
.arq-avl-expected{display:block;margin-top:4px;color:#fda4af;font-size:8px;font-weight:900}
@media(max-width:760px){.arq-summary:has(.arq-repair){flex-wrap:wrap}.arq-repair{width:100%;margin-left:35px}}

/* V9 — flag sellability conflicts: positive AVL while the displayed primary rate plan is Stop Sell. */
.arq-sell-conflict-cell{background:rgba(127,29,45,.18)!important}.arq-stop.conflict{border-color:#fb7185!important;background:#57172c!important;color:#fff!important;box-shadow:0 0 0 2px rgba(251,113,133,.18),0 0 16px rgba(244,63,94,.24)}
.arq-stop-warning{display:block;margin-top:4px;color:#fda4af;font-size:7px;font-weight:950;line-height:1.2}
