/* ONCORR — shared non-design helpers (Round 40): page-load progress bar, busy state, small fixes. Loaded everywhere
   except the main landing page and the sign-in pages. The Apple look itself is oncorr-apple.css (WNTK and LetUsKnow only). */
.ap-progress{position:fixed;inset:0 0 auto 0;z-index:9999;height:2.5px;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#3f5bb0,#60a5fa);box-shadow:0 0 8px rgba(96,165,250,.6);opacity:0;pointer-events:none}
.ap-progress.is-on{opacity:1;animation:apBar 8s cubic-bezier(.08,.8,.2,1) forwards}
.ap-progress.is-done{transform:scaleX(1)!important;opacity:0;animation:none;transition:transform .2s ease,opacity .3s ease .1s}
@keyframes apBar{0%{transform:scaleX(0)}20%{transform:scaleX(.45)}100%{transform:scaleX(.92)}}
form.is-sending button[type=submit][aria-busy=true]{opacity:.7;cursor:progress}
.es .es-nav a{white-space:nowrap}
@media (prefers-reduced-motion:reduce){.ap-progress.is-on{animation:none;transform:scaleX(.6)}}

/* Round 43 — portal sidebar stays visible from 900 px wide (it used to hide below 1024 px and look "missing"). */
@media (min-width:900px) and (max-width:1023.98px){
  body.pp-panel>div.min-h-full{display:flex}
  body.pp-panel #panel-sidebar{position:sticky!important;top:0;height:100vh;width:14.5rem;transform:none!important;visibility:visible!important;flex-shrink:0}
  body.pp-panel .pp-topbar>button.tb-btn:first-child{display:none}
  body.pp-panel>div.min-h-full>div.fixed.inset-0{display:none!important}
}

/* Round 44: phone overflow fixes found by the all-admin audit */
.ee-layout{grid-template-columns:minmax(0,1fr)}
.app-main :is(div,span,label).flex:has(>input[type=date]){flex-wrap:wrap}
.app-main .font-mono{overflow-wrap:anywhere}
/* Round 45: phone overflow fixes found by the organizer audit */
.app-main fieldset{min-width:0}
.app-main .ui-card-head>*{min-width:0;max-width:100%}.app-main .ui-card-head select{max-width:100%}
.app-main label.flex:has(>select){flex-wrap:wrap;max-width:100%}.app-main label.flex>select{min-width:0;max-width:100%}

/* Round 49b: proposal price lines turn into small cards when their column is narrow (supplier request page) */
.oc-lines{container-type:inline-size}
@container (max-width:620px){
.oc-lines table,.oc-lines tbody,.oc-lines tfoot{display:block;width:100%}
.oc-lines thead{display:none}
.oc-lines tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;padding:12px;border-bottom:1px solid rgba(118,118,128,.18)}
.oc-lines tbody td{display:block;min-width:0;padding:0!important;border:0!important}
.oc-lines tbody td:nth-child(1){grid-column:1/-1}
.oc-lines tbody td:nth-child(6){grid-column:4;grid-row:2;align-self:end}
.oc-lines tbody td:nth-child(5){grid-column:1/4;text-align:start!important;font-size:13px;font-weight:600}
.oc-lines tbody td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:600;color:#64748b}
.oc-lines tbody td:nth-child(5)::before{display:inline;margin:0 6px 0 0}
.oc-lines tfoot tr{display:flex;justify-content:space-between;padding:12px;font-weight:600}
.oc-lines tfoot td{padding:0!important;border:0!important}.oc-lines tfoot td:empty{display:none}
}
