/* SMP v7.6.1 — Desktop-only full workspace. Mobile keeps its own UI. */
@media (min-width: 921px) {
  html,body { max-width:100%; overflow-x:hidden; }
  .smp-app { width:100%; max-width:none; }
  /* Drawers are entire desktop workspaces, not right-side mini-panels. */
  .smp-app .smp-drawer {
    position:fixed!important; inset:0!important; top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100vw!important; max-width:none!important;height:100dvh!important;max-height:none!important;
    border-radius:0!important;border:0!important;z-index:110!important;
    display:flex!important; flex-direction:column!important;
    background:#f5f7fb!important; box-shadow:none!important;
    transform:translateX(105%)!important;
  }
  .smp-app .smp-drawer.is-open { transform:translateX(0)!important; }
  .smp-app .smp-drawer-head {
    position:relative!important; flex:0 0 auto!important; width:100%!important;
    padding:16px clamp(22px,3vw,52px)!important;min-height:80px!important;
    border-radius:0!important;display:flex!important;align-items:center!important;
    justify-content:space-between!important;gap:20px!important;
    background:#fff!important;border-bottom:1px solid #dbe4ef!important;
  }
  .smp-app .smp-drawer-head h2 { font-size:clamp(22px,2vw,32px)!important; }
  .smp-app .smp-drawer-body {
    box-sizing:border-box!important; width:100%!important;max-width:none!important;
    padding:22px clamp(22px,3vw,52px) 50px!important;
    flex:1 1 auto!important; min-height:0!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  }
  .smp-app .smp-drawer-body > * {max-width:none;}
  .smp-app .smp-candidate-picker-drawer .smp-drawer-body{overflow-x:hidden!important;}
  .smp-candidate-picker-drawer .smp-candidate-search-first {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;gap:12px 22px!important;padding:17px 20px!important;
  }
  .smp-candidate-picker-drawer .smp-candidate-search-first > label {grid-column:1/-1!important;}
  .smp-candidate-picker-drawer .smp-candidate-search-row {width:100%!important;max-width:none!important;}
  .smp-candidate-picker-drawer .smp-candidate-search-tools {align-items:center!important;justify-content:flex-end!important;}
  .smp-candidate-picker-drawer .smp-candidate-results-host {width:100%!important;max-width:none!important;min-width:0!important;}
  .smp-candidate-picker-drawer .smp-candidate-sheet-scroll,
  .smp-candidate-picker-drawer .smp-universal-sheet {
    display:block!important; width:100%!important;max-width:none!important; min-width:0!important;
    overflow-x:auto!important;overflow-y:visible!important; border:1px solid #dce4ed!important;
    border-radius:16px!important;background:#fff!important;
  }
  .smp-candidate-picker-drawer table.smp-candidate-sheet,
  .smp-candidate-picker-drawer table.smp-universal-table {
    display:table!important;table-layout:auto!important;width:100%!important;min-width:1080px!important;
    border-collapse:separate!important;border-spacing:0!important;
  }
  .smp-candidate-picker-drawer table.smp-candidate-sheet thead {display:table-header-group!important;}
  .smp-candidate-picker-drawer table.smp-candidate-sheet tbody {display:table-row-group!important;}
  .smp-candidate-picker-drawer table.smp-candidate-sheet tr {display:table-row!important;}
  .smp-candidate-picker-drawer table.smp-candidate-sheet th,
  .smp-candidate-picker-drawer table.smp-candidate-sheet td {
    display:table-cell!important;position:static; width:auto!important;height:auto!important;
    font-size:clamp(11px,.9vw,14px)!important;line-height:1.4!important;
    padding:12px 10px!important;text-align:left!important;vertical-align:middle!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  .smp-candidate-picker-drawer table.smp-candidate-sheet th {background:#eef3f9!important;font-weight:800!important;white-space:nowrap!important;}
  .smp-candidate-picker-drawer table.smp-candidate-sheet td:first-child {min-width:170px!important;}
  .smp-candidate-picker-drawer table.smp-candidate-sheet td .smp-primary {min-height:40px!important;white-space:nowrap!important;}
  .smp-candidate-picker-drawer table.smp-candidate-sheet .smp-sheet-detail-row td {padding:12px!important;}
  .smp-candidate-picker-drawer .smp-sheet-preview {max-width:none!important;width:100%!important;box-sizing:border-box!important;}
  .smp-candidate-picker-drawer .smp-mobile-candidate-results {display:none!important;}
  /* Other full-screen dossiers / forms benefit from available desktop columns. */
  .smp-drawer-body .smp-grid-2 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .smp-drawer-body .smp-grid-3 {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .smp-drawer-body .smp-slot-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .smp-drawer-body .smp-detail-summary {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
