/* Scoped layout corrections. Existing colours, navigation and business actions are preserved. */
.content-shell,.content-shell>*,.content-shell form,.content-shell fieldset{min-width:0}
.content-shell img,.content-shell video{max-width:100%}
.content-shell :is(.table-wrap,.table-container,.table-responsive,.table-wrapper){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.ot-responsive-scroll:focus-visible{outline:2px solid #0b64f0;outline-offset:2px}
@media(max-width:900px){
 .content-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea),dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){font-size:16px!important;max-width:100%;min-width:0;box-sizing:border-box}
 .content-shell :is(h1,h2,h3),.content-shell :is(.cw-card,.oxc-card,.card-title){overflow-wrap:anywhere}
 .content-shell :is(.cw-search,.cw-filters,.form-row,.filter-row){min-width:0;max-width:100%}
 .content-shell :is(.cw-search,.cw-filters,.form-row,.filter-row)>*{min-width:0;max-width:100%}
 .content-shell :is(.toolbar,.page-header,.page-head,.form-actions,.actions-row){flex-wrap:wrap;gap:10px}
 .content-shell :is(.cw-tabs,.profile-tabs){flex-wrap:wrap}
 dialog[open]{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);box-sizing:border-box;overscroll-behavior:contain}
 .content-shell :is(button,.btn,.primary-button,.secondary-button){min-height:40px}
 .ot-agenda [data-day]{min-height:36px}
}
@media(max-width:600px){
 /* Keep identity in the existing top navigation row, releasing a full line for the page. */
 .content>.topbar{height:0!important;min-height:0!important;flex-basis:0!important;padding:0!important}
 .content>.topbar .user-card{position:fixed;top:calc(19px + env(safe-area-inset-top));left:74px;max-width:calc(100vw - 218px);padding:6px 9px;border-radius:14px;z-index:35;overflow:hidden}
 .content>.topbar .user-card>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-ot-responsive="buscador"] .page .tabs,body[data-ot-responsive="mis-licitaciones"] .page .tabs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;gap:6px;padding:3px 2px 9px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 body[data-ot-responsive="buscador"] .page .tabs>.tab,body[data-ot-responsive="mis-licitaciones"] .page .tabs>.tab{flex:0 0 auto!important;width:auto!important;min-height:44px!important;white-space:nowrap;padding:9px 12px!important;border-radius:12px}
 body[data-ot-responsive="mi-perfil"] .page .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:3px}
 body[data-ot-responsive="mi-perfil"] .page .tabs>.tab{flex:0 0 auto;min-height:44px;padding:10px;font-size:12px}
 .content-shell :is(.company-watch,.tender-management-page){padding-inline:0}
 .cw-hero{padding:18px!important;gap:14px!important}.cw-hero h1{font-size:26px!important}
 .cw-summary{gap:18px!important}.cw-tabs button{padding:10px 12px!important}
 .content-shell :is(.form-actions,.actions-row)>button{flex:1 1 auto}
 .ot-org-personal .toolbar{padding:0;gap:8px}
 .ot-org-personal .board-nav{margin-top:4px}
 .ot-org-detail-action{display:flex;align-items:center;justify-content:center;width:100%;margin:10px 0 0;min-height:44px}
}
@media(max-height:500px) and (max-width:1000px){
 .oxs{height:100dvh!important;max-height:100dvh!important}.oxs-brand{padding-block:4px!important}.oxs-foot{padding-block:4px!important}
 .oxs-foot{max-height:44dvh;overflow-y:auto;overscroll-behavior:contain}
 .content-shell :is(h1,.page-title){font-size:24px}
}
@media(prefers-reduced-motion:reduce){.content-shell *{scroll-behavior:auto!important}}
