/* Reutiliza los marcos, formularios y botones corporativos de contabilidad. */
html.ocp-company-profile-open,html.ocp-company-profile-open body{overflow:hidden!important;overscroll-behavior:none}
.cp-dialog{width:min(800px,calc(100vw - 28px))}
.cp-context{padding:11px 13px;margin:0 0 18px;background:var(--gl-subtle);border-radius:6px;min-width:0}
.cp-context small,.cp-context strong{display:block;color:var(--gl-text);overflow-wrap:anywhere}.cp-context small{font-size:10px;letter-spacing:.08em;color:var(--gl-muted);margin-bottom:4px}.cp-context strong{font-size:14px}
.cp-section{font-size:15px;color:var(--gl-text);padding:0;margin:18px 0 13px}
.cp-tax-fields{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:14px;min-width:0}
.cp-identity-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 20px;flex-wrap:wrap}
.cp-identity-actions button{max-width:100%;white-space:normal;text-align:left}.cp-identity-actions a{font-size:12px;color:var(--gl-text);text-underline-offset:3px}
.cp-hint,.cp-updated{font-size:12px;line-height:1.5;color:var(--gl-muted);margin:14px 0 0}
.cp-dialog textarea{resize:vertical;max-height:180px}
@media(max-width:560px){.cp-tax-fields{grid-template-columns:minmax(0,1fr) 95px;gap:10px}.cp-identity-actions{align-items:stretch;gap:12px}.cp-identity-actions button{width:100%}.cp-dialog .gl-form-footer{flex-direction:column-reverse}.cp-dialog .gl-form-footer>button{width:100%;min-height:46px;flex:auto}}

/* v307: acceso directo a la ficha, junto a los controles de empresa. */
html body #app>.toolbar .company-actions:has(>#companyDataButton:not(.hidden)){max-width:660px!important}
@media(max-width:600px){html body #app>.toolbar .company-actions:has(>#companyDataButton:not(.hidden))>.admin-menu{grid-column:auto!important}html body #app>.toolbar #companyDataButton{white-space:normal!important;overflow-wrap:anywhere}}
