/* SMP 7.7 — single workspace contract; desktop and touch layouts are intentionally separate. */
.smp-app,.smp-main,.smp-page,.smp-card{min-width:0;box-sizing:border-box}
.smp-app button{cursor:pointer}
.smp-app :is(button,input,select,textarea):focus-visible{outline:3px solid #77b5fc;outline-offset:2px}
.smp-app .smp-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.smp-app .smp-toolbar-actions :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.smp-app .smp-pill.is-green{background:#e7f5eb;color:#167c3b;border-color:#b9dfc6}
.smp-app .smp-pill.is-blue{background:#e9f2ff;color:#1769d2;border-color:#c7dcfa}
.smp-app .smp-pill.is-orange{background:#fff3d9;color:#a36500;border-color:#f0d5a1}
.smp-app .smp-pill.is-red{background:#feecec;color:#b42332;border-color:#fac8ce}
.smp-app .smp-pill.is-purple{background:#f0e9ff;color:#7045b8;border-color:#ddd0f5}
.smp-app :is(input,textarea,select){max-width:100%;box-sizing:border-box}
@media(min-width:921px){
  body.smp-drawer-open{overflow:hidden!important}
  /* The original application CSS had multiple 710–850px side-panel declarations. */
  body .smp-app #smp-drawer.smp-drawer{
    position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
    display:flex!important;flex-direction:column!important;width:100vw!important;max-width:100vw!important;
    min-height:100vh!important;height:100dvh!important;max-height:100dvh!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:#f5f7fb!important;z-index:200!important;overflow:hidden!important;
    box-shadow:none!important;transform:translate3d(105vw,0,0)!important;
  }
  body .smp-app #smp-drawer.smp-drawer.is-open{transform:translate3d(0,0,0)!important}
  body .smp-app #smp-drawer .smp-drawer-head{position:relative!important;z-index:2!important;width:100%!important;flex:0 0 auto!important;min-height:76px!important;padding:12px clamp(20px,3vw,54px)!important;display:flex!important;justify-content:space-between!important;align-items:center!important;background:#fff!important;border-bottom:1px solid #dce4ec!important}
  body .smp-app #smp-drawer .smp-drawer-body{width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 auto!important;min-height:0!important;box-sizing:border-box!important;padding:24px clamp(20px,3vw,54px) 58px!important;overflow-y:auto!important;overflow-x:auto!important;background:#f5f7fb!important}
  body .smp-app #smp-drawer .smp-drawer-body>*{max-width:none!important}
  body .smp-app #smp-drawer .smp-drawer-body .smp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .smp-app #smp-drawer .smp-drawer-body .smp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .smp-app #smp-drawer .smp-drawer-body .smp-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .smp-app #smp-drawer .smp-drawer-body .smp-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  /* Expedient: overview across width, timeline and profile visible side by side. */
  body .smp-app #smp-drawer.smp-expedient-workspace #smp-drawer-body{display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(340px,.85fr)!important;gap:16px 20px!important;align-content:start!important;align-items:start!important}
  body .smp-app .smp-expedient-workspace .smp-expedient-hero{grid-column:1/-1!important;margin:0!important}
  body .smp-app .smp-expedient-workspace .smp-current-service,body .smp-app .smp-expedient-workspace .smp-upcoming-service,body .smp-app .smp-expedient-workspace .smp-timing-card{grid-column:1/-1!important;margin:0!important}
  body .smp-app .smp-expedient-workspace .smp-history-priority{grid-column:1!important;grid-row:span 4!important;min-width:0!important;margin:0!important}
  body .smp-app .smp-expedient-workspace :is(.smp-person-info-v41,.smp-normative-disclosure,.smp-subcard){min-width:0!important}
  body .smp-app .smp-expedient-workspace .smp-person-info-v41{grid-column:2!important;margin:0!important}
  body .smp-app .smp-expedient-workspace .smp-detail-summary{grid-template-columns:1fr!important}
  body .smp-app .smp-expedient-workspace .smp-timeline{max-width:none!important}
  /* Candidate selection uses the whole desktop workspace. */
  body .smp-app #smp-drawer.smp-candidate-picker-drawer #smp-drawer-body{display:block!important}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-results-host{max-width:none!important;width:100%!important}
  body .smp-app .smp-candidate-picker-drawer .smp-mobile-candidate-results{display:none!important}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-sheet-scroll{overflow-x:auto!important;max-width:none!important}
  body .smp-app .smp-candidate-picker-drawer table.smp-candidate-sheet{display:table!important;min-width:1050px!important;width:100%!important}
}
@media(min-width:921px) and (max-width:1150px){
  body .smp-app #smp-drawer.smp-expedient-workspace #smp-drawer-body{grid-template-columns:1fr!important}
  body .smp-app .smp-expedient-workspace :is(.smp-history-priority,.smp-person-info-v41){grid-column:1!important;grid-row:auto!important}
}
@media(max-width:920px){
  body .smp-app #smp-drawer.smp-drawer{inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;border-radius:0!important}
  body .smp-app #smp-drawer .smp-drawer-body{display:block!important;overflow-x:hidden!important;overscroll-behavior:contain;padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
  .smp-app :is(input,select,textarea){font-size:16px!important}
  .smp-app .smp-history-actions{flex-wrap:wrap}
  .smp-app :is(.smp-user-actions,.smp-inline-actions){flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){body .smp-app #smp-drawer{transition:none!important}}
