/* Responsive density: keep readable text and 44px touch targets. */
.ux-enabled [hidden]{display:none!important}.ux-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.ux-section{margin:12px 0;padding:18px}.ux-section>h2{margin:0 0 14px}.ux-section>summary{font-weight:700;cursor:pointer;min-height:44px;display:flex;align-items:center}.ux-section[open]>summary{margin-bottom:12px}.ux-fields>label{margin:0!important;min-width:0}.ux-fields input,.ux-fields select{min-height:44px;margin:5px 0 0;padding:9px 11px;width:100%;box-sizing:border-box}.ux-fields textarea{margin-top:5px;min-height:90px}.ux-new-entry .ux-fields>label:has([name=title]),.ux-new-entry .ux-fields>label:has([data-ux-client-search]){grid-column:1/-1}.ux-new-entry .ux-fields>button{align-self:end;min-height:44px}.ux-drafts{padding:12px 18px!important;background:#fffdf5}.ux-drafts>summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.ux-draft{padding:14px 0;border-top:1px solid #dce2e9;overflow-wrap:anywhere}.ux-draft p{margin:6px 0}.ux-draft small{display:block;margin:8px 0}.ux-preview{white-space:pre-wrap;max-width:95ch}.ux-draft-fields dd{margin:4px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}.ux-draft-fields dt{font-weight:700}.ux-photo-access{padding:12px 0;margin-bottom:12px;border-bottom:1px solid #dce2e9}.ux-photo-access button{font-weight:700;min-height:46px}.ux-photo-access small{display:block;margin-top:6px}.ux-enabled #hq-home{padding:14px 20px;border-width:2px!important}.ux-enabled #hq-home h2{font-size:1.25rem;margin:0}.ux-enabled #hq-home>.row{gap:14px}.ux-enabled #hq-home>p{margin:8px 0;font-size:.92rem}.ux-enabled #hq-home .hq-card{padding:12px 16px;margin:10px 0 0}.ux-enabled #hq-home .hq-card h3{font-size:1.06rem;margin:5px 0}.ux-enabled #hq-home .hq-card p{margin:5px 0}.ux-enabled #hq-home .hq-card small{margin-top:5px}.ux-enabled #record-form label{scroll-margin-top:24px}.ux-enabled button:focus-visible,.ux-enabled summary:focus-visible{outline:3px solid #23699b;outline-offset:3px}
@media(min-width:1000px){.ux-enabled #wf-drawer{width:min(1260px,96vw);max-width:96vw}.ux-enabled .wf-list-row,.ux-enabled .dy-entry,.ux-enabled .fl-job{padding:12px 8px;gap:18px}.ux-enabled .wf-list-row p,.ux-enabled .dy-entry p{margin:5px 0}.ux-enabled .process-summary{padding:12px;gap:12px}.ux-enabled .process-summary>div{gap:5px}.ux-enabled .qc-layout{gap:20px}.ux-enabled .qc-flow{padding:16px}.ux-enabled .qc-flow h2{font-size:1.25rem;margin:0 0 8px}.ux-enabled .qc-flow h3{font-size:1.1rem;margin:10px 0 5px}.ux-enabled .qc-flow p{margin:7px 0}.ux-enabled [data-entry-panel=presupuesto]>.panel{padding:16px}.ux-enabled .ux-client-form>.ux-section{max-width:100%}}
@media(max-width:760px){.ux-fields{grid-template-columns:minmax(0,1fr);gap:12px}.ux-section{padding:14px;margin:10px 0}.ux-enabled #record-form label{margin-top:10px;margin-bottom:12px}.ux-enabled #record-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.ux-enabled #record-form select{min-height:44px;padding:10px 12px}.ux-enabled #record-form .grid{gap:12px}.ux-enabled #record-form .panel{padding:14px}.ux-enabled #record-form p:empty{display:none}.ux-new-entry .ux-fields>label{grid-column:auto}.ux-enabled #hq-home{padding:12px}.ux-enabled #hq-home .hq-card{padding:12px}.ux-photo-access button{width:100%}.ux-draft .row{gap:8px}.ux-draft .row button{min-height:44px;white-space:normal}.ux-enabled .wf-drawer-bottom{gap:6px;padding:8px}.ux-enabled .wf-drawer-bottom button{padding:10px;min-height:46px;font-size:.95rem}}

.ux-new-record .entry-tabs,.ux-new-record .dy-tabs{display:none!important}

.ux-new-record .wf-drawer-bottom>details{display:none!important}

#ux-mobile-toggle{display:none}
#qdoc-conflict{overflow-wrap:anywhere}#qdoc-conflict details{background:#fff;padding:12px;color:#263d50}#qdoc-conflict details .tablewrap{max-width:100%}
#ux-inline-client{border:2px solid #b85800;background:#fffaf4}#ux-inline-client [role=status]:not(:empty){padding:10px;background:#fff0ce}
@media(max-width:760px){
 body.ux-enabled #ux-mobile-toggle{display:block;max-width:calc(100% - 10px);text-align:left;min-height:44px}
 body.ux-enabled .ux-mobile-navigation{display:none!important}
 body.ux-enabled.ux-menu-open .ux-mobile-navigation{display:flex!important;flex-direction:column;gap:5px;width:100%;position:relative;max-height:65vh;overflow:auto;background:#253643;padding:10px;box-sizing:border-box}
 body.ux-enabled .ux-mobile-navigation button{text-align:left;min-height:44px;width:100%}
 body.ux-enabled header.q7-signed{flex-wrap:wrap}body.ux-enabled header.q7-signed>div:first-child{flex:1;min-width:0}
 body.ux-enabled header.q7-signed #q7-brief{font-size:11px}
 body.ux-enabled header.q7-signed #ag-bell{display:inline-block;max-width:100%;font-size:12px}
 .hq-edit-context{padding:8px}#ux-inline-client .ux-fields{display:block}
}

@media(max-width:760px){body.ux-enabled #menu-toggle{display:none!important}body.ux-enabled #ux-mobile-toggle{order:6}body.ux-enabled .ux-mobile-navigation .dash-more>div{position:static;max-width:100%;width:100%;display:block}body.ux-enabled .ux-mobile-navigation .dash-more:not([open])>div{display:none}}
