/* Evitar que el contenido de las fichas ensanche la página o mueva la cabecera. */
@media(max-width:1000px){
 .workspace,main,.home-grid,.home-grid>div,.panel,.case-list,.case-row-wrap,.case-row,.case-row-top,.case-title-line{min-width:0;max-width:100%}
 .home-grid{grid-template-columns:minmax(0,1fr)}
 .case-list{grid-template-columns:minmax(0,1fr)}
 .case-row-top>.badges{min-width:0;max-width:100%}
 .case-row .badge{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .case-row h3{min-width:0;max-width:100%;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
 .case-row p{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .case-row-wrap>.case-row-footer{display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;gap:6px;align-items:center;min-width:0;max-width:100%}
 .case-row-wrap>.case-row-footer>.case-row-owner{min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .case-row-wrap>.case-row-footer>.case-workflow-actions{position:static;max-width:none;min-width:0;display:flex;flex-direction:row;gap:3px;margin:0}
 .case-row-footer .icon-button{position:static;width:44px;min-width:44px;min-height:44px;padding:12px}
 .detail-head,.reader-heading,.reader-context,.reader-next,.case-overview,.conversation-body{min-width:0;max-width:100%}
 .case-overview{grid-template-columns:minmax(0,1fr)}
 .case-overview>div,.case-overview dl,.case-overview dl>div,.case-overview dd{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .detail-state .badge{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .detail-state,.detail-state>.badges,.case-reader>.badges{min-width:0;max-width:100%}
 .detail-state>.badges{flex:1 1 100%}
 .detail-head h1,.case-reader h2,.reader-context p,.case-overview p,.conversation-body p,.workflow-review p{overflow-wrap:anywhere}
 .reader-heading>.reader-id{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .reader-heading>.case-workflow-actions,.detail-state>.case-workflow-actions{position:static;flex-shrink:0;max-width:none}
 .work-filters select,.work-search-stack,.work-filter-options,.work-filter-options>div{min-width:0;max-width:100%}
 .work-tab-label{min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
 .work-paging>span{min-width:0;overflow-wrap:anywhere;text-align:center}
}
@media(max-width:700px){
 .sidebar{width:100%;min-width:0;max-width:100%;overflow-anchor:none}
 .sidebar nav,.sidebar>.topbar,.sidebar .mailbox-pills{min-width:0}
 .sidebar .nav-item{max-width:100%;overflow:hidden;text-overflow:ellipsis}
 /* El aviso de novedades no añade filas ni cambia la altura del menú fijo. */
 .sidebar>.topbar>.work-refresh-notice{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:8;width:auto;max-width:calc(100vw - 32px);min-height:44px;margin:0;padding:10px 14px;font-size:12px;white-space:normal;box-shadow:var(--shadow)}
}
