/* SMP v8.0.1: unified shell and screens. Loaded after all legacy styles. */
:root{--smp-ui-ink:#172c45;--smp-ui-line:#dbe4ee;--smp-ui-bg:#f3f6fa;--smp-ui-blue:#1767c9}
.smp-app,.smp-app *{box-sizing:border-box}
.smp-app{color:var(--smp-ui-ink)}
.smp-app .smp-main,.smp-app .smp-page,.smp-app .smp-card,.smp-app .smp-toolbar{min-width:0!important}
.smp-app .smp-main{max-width:none!important}
.smp-app .smp-card{border:1px solid var(--smp-ui-line)!important;border-radius:18px!important;padding:clamp(15px,1.4vw,22px)!important;background:#fff!important;box-shadow:0 2px 10px rgba(28,57,85,.035)!important}
.smp-app .smp-toolbar{border-radius:17px!important}
.smp-app .smp-card h2,.smp-app .smp-section-head h2{font-size:clamp(20px,2vw,25px)!important;line-height:1.2!important;overflow-wrap:normal!important}
.smp-app .smp-card p{max-width:85ch;line-height:1.5}
.smp-app .smp-primary,.smp-app .smp-secondary,.smp-app .smp-icon-button{border-radius:11px!important}
.smp-app .smp-primary{background:#1767c9!important;color:#fff!important}
.smp-app .smp-primary:hover{background:#1156ac!important}
.smp-app .smp-search-control,.smp-app .smp-filterbar,.smp-app .smp-advanced-filters{min-width:0!important}
.smp-app .smp-search-control input,.smp-app .smp-big-search input,.smp-app .smp-form input,.smp-app .smp-form select,.smp-app .smp-form textarea{font-size:16px!important;max-width:100%!important;min-width:0!important}
.smp-app .smp-quick,.smp-app .smp-human-row,.smp-app .smp-assignment-row,.smp-app .smp-subcard{border:1px solid var(--smp-ui-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:none!important}
.smp-app .smp-human-row{display:block!important;width:100%!important;text-align:left!important}
.smp-app .smp-human-row .smp-human-main{min-width:0!important;max-width:100%!important}
.smp-app .smp-human-topline{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}
.smp-app .smp-human-details{max-width:100%!important;min-width:0!important}
.smp-app .smp-activity{overflow-wrap:anywhere!important}
.smp-app .smp-form{width:100%!important;max-width:100%!important}
.smp-app .smp-form .smp-grid-2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.smp-app .smp-form .smp-grid-3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.smp-app .smp-form label{min-width:0!important}
.smp-app .smp-form [type=submit]{width:auto!important;max-width:100%!important}
.smp-app .smp-expedient-quick-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important}
/* Crucial: cancel legacy body grid; only the explicit inner layout controls columns. */
body .smp-app #smp-drawer.smp-expedient-workspace #smp-drawer-body{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;width:100%!important;min-width:0!important;overflow-x:hidden!important}
body .smp-app #smp-drawer.smp-expedient-workspace #smp-drawer-body>*{max-width:100%!important;min-width:0!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-hero{display:flex!important;width:100%!important;grid-column:auto!important;grid-row:auto!important;margin:0 0 12px!important;gap:16px!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-layout{display:grid!important;width:100%!important;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)!important;gap:14px!important;align-items:start!important;grid-column:auto!important;grid-row:auto!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-main,body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-side{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;gap:12px!important;position:static!important;grid-template-columns:none!important;grid-column:auto!important;grid-row:auto!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-main>*,body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-side>*{display:block;width:100%!important;min-width:0!important;max-width:100%!important;grid-column:auto!important;grid-row:auto!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-history-priority{grid-column:auto!important;grid-row:auto!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-timeline-row{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;gap:8px!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-history-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-history-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-service-summary{display:block!important;min-width:0!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-service-summary strong,body .smp-app #smp-drawer.smp-expedient-workspace .smp-service-summary span{display:block!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-compliance-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-detail-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-section-minihead{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:8px!important}
body .smp-app #smp-drawer.smp-expedient-workspace .smp-pill{white-space:normal!important;max-width:100%!important;overflow-wrap:normal!important;word-break:normal!important}
@media(max-width:1100px){body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-layout{grid-template-columns:1fr!important}}
@media(max-width:920px){
 .smp-app .smp-sidebar{max-width:100vw!important}
 .smp-app .smp-toolbar-actions{min-width:0!important}
 .smp-app .smp-toolbar h1{font-size:20px!important;line-height:1.16!important;overflow-wrap:normal!important;word-break:normal!important}
 .smp-app .smp-filterbar{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
 .smp-app .smp-filterbar>*{width:100%!important;min-width:0!important}
 .smp-app .smp-human-row{padding:13px!important}
 .smp-app .smp-advanced-filters{grid-template-columns:1fr!important}
 .smp-app .smp-form .smp-grid-2,.smp-app .smp-form .smp-grid-3{grid-template-columns:1fr!important}
 .smp-app .smp-nav-item span{font-size:10px!important;line-height:1.1!important;word-break:normal!important;overflow-wrap:normal!important}
 body .smp-app #smp-drawer.smp-expedient-workspace .smp-compliance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .smp-app #smp-drawer.smp-expedient-workspace .smp-detail-summary{grid-template-columns:1fr!important}
}
@media(max-width:480px){
 .smp-app .smp-card{padding:14px!important}
 .smp-app .smp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .smp-app .smp-work-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .smp-app #smp-drawer.smp-expedient-workspace .smp-expedient-hero{align-items:flex-start!important;flex-direction:column!important}
}
