/* V415: APS owns its two-axis freeze; global grid sticky rules must not wrap thead. */
#content .aps375-plan-table[data-no-system-grid]{border-collapse:separate!important;border-spacing:0!important;isolation:isolate}
#content .aps375-plan-table[data-no-system-grid] thead{position:static!important;top:auto!important;z-index:auto!important}
#content .aps375-plan-table[data-no-system-grid] thead th{position:sticky!important;top:0!important;z-index:20!important;background:#eaf0f8!important}
#content .aps375-plan-table[data-no-system-grid] thead th.aps377-frozen.aps378-frozen-head{position:sticky!important;top:0!important;left:var(--aps-frozen-left)!important;z-index:32!important;background:#eaf0f8!important;box-shadow:1px 0 #d8e1ed,0 1px #cbd8e8}
#content .aps375-plan-table[data-no-system-grid] tbody td.aps377-frozen{position:sticky!important;left:var(--aps-frozen-left)!important;z-index:8!important;background:#f8faff!important}
#content .aps375-plan-table[data-no-system-grid] tfoot td.aps377-frozen{position:sticky!important;left:var(--aps-frozen-left)!important;bottom:0!important;z-index:17!important;background:#fff3b8!important}
#content .aps375-plan-table[data-no-system-grid] thead th:last-child{position:sticky!important;right:0!important;left:auto!important;z-index:31!important}
#apsLinePlanCard:fullscreen #modal{position:fixed!important;inset:0!important;z-index:2147483647!important}
#apsLinePlanCard:fullscreen #modal .modal-card{max-height:calc(100vh - 32px);overflow:auto}

/* Compact line schedule filters; apply in normal and native fullscreen views. */
#apsLinePlanCard .aps375-plan-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;padding:8px 12px 4px;flex:0 0 auto;min-width:0}
#apsLinePlanCard .aps375-plan-title h3{margin:0;font-size:15px;white-space:nowrap}
#apsLinePlanCard .aps375-plan-title p{margin:0;font-size:11px;color:#66758e}
#apsLinePlanCard #apsFabricQueryStatus:empty{display:none}
#apsLinePlanCard #apsFabricQueryStatus{overflow-wrap:anywhere}
#apsLinePlanCard .aps375-plan-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;padding:6px 12px 10px}
#apsLinePlanCard .aps375-plan-head>label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;min-width:0;margin:0}
#apsLinePlanCard .aps375-plan-head>.aps-pool-factory{width:auto;flex:0 1 180px}
#apsLinePlanCard .aps375-plan-head>.aps377-group-filter{flex:0 1 138px;min-width:0}
#apsLinePlanCard .aps375-plan-head>.aps-table-filter{flex:1 1 200px;min-width:180px;width:auto}
#apsLinePlanCard .aps375-plan-head input,#apsLinePlanCard .aps375-plan-head select{box-sizing:border-box;height:32px;min-height:32px;min-width:0;width:100%;max-width:none;padding:0 8px;font-size:12px;border-radius:6px}
#apsLinePlanCard .aps375-head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:0 1 auto}
#apsLinePlanCard .aps375-plan-head button{box-sizing:border-box;height:32px;min-height:32px;margin:0;padding:0 9px;font-size:12px;line-height:1;white-space:nowrap}
#apsLinePlanCard .aps-owned-factory{display:flex;align-items:center;gap:6px;min-width:0;max-width:210px}
#apsLinePlanCard .aps-owned-factory b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){
 #apsLinePlanCard .aps375-plan-head>.aps-pool-factory,#apsLinePlanCard .aps375-plan-head>.aps377-group-filter{flex:1 1 140px}
 #apsLinePlanCard .aps375-plan-head>.aps-table-filter{flex:1 1 100%;min-width:0}
 #apsLinePlanCard .aps375-head-actions{flex:1 1 100%}
}
