/* Step 201: the actual shared Dealer Overview / Inventory / Deals shell for Write Check.
   This changes presentation and navigation only: original check persistence,
   expense allocation, scanner bridge, and 3-part print logic are untouched. */
@media screen {
  #main-app .ld201-checks-shell{isolation:isolate;}
  #main-app .ld201-checks-shell .ld201-checks-page{padding:14px 18px 28px;min-width:0;}
  #main-app .ld201-checks-shell .ld201-checks-header{padding:4px 0 12px 4px;min-height:98px;}
  #main-app .ld201-checks-shell .ld201-heading-desc{color:var(--ld166-muted)!important;font-size:12px;margin:6px 0 0;line-height:1.4;}
  #main-app .ld201-checks-shell .ld166-search-wrap input{background:transparent!important;color:var(--ld166-text)!important;border:0!important;box-shadow:none!important;font-size:12px!important;min-height:0!important;height:32px!important;outline:0!important;}
  #main-app .ld201-checks-shell .ld166-search-wrap input::placeholder{color:var(--ld166-muted)!important;opacity:1;}
  #main-app .ld201-checks-shell .ld166-actions button{white-space:nowrap;}
  #main-app .ld201-checks-shell .ld200-check-workspace{padding:0!important;margin:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;font-family:inherit!important;color:var(--ld166-text)!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .ld200-notice{margin-bottom:12px!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-ws-stats{margin-bottom:14px!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-ws-stat{min-height:105px!important;padding:13px 16px!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-ws-stat small{font-size:10px!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-ws-stat strong{margin:7px 0 5px!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-ws-tabs{margin:0 0 14px!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-layout{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)!important;}
  #main-app .ld201-checks-shell .ld200-check-workspace .check-editor,
  #main-app .ld201-checks-shell .ld200-check-workspace .check-preview-panel,
  #main-app .ld201-checks-shell .ld200-check-workspace .ld200-recent{min-width:0;}
  /* Keep the shared shell as the only navigation; the legacy horizontal bar is underneath this overlay. */
  #main-app .ld201-checks-shell .ld166-sidebar{z-index:1;}
}
@media screen and (max-width:1250px){
  #main-app .ld201-checks-shell .ld200-check-workspace .check-layout{grid-template-columns:1fr!important;}
}
@media screen and (max-width:800px){
  #main-app .ld201-checks-shell .ld201-checks-page{padding:10px!important;}
  #main-app .ld201-checks-shell .ld201-checks-header{flex-wrap:wrap;gap:10px;}
  #main-app .ld201-checks-shell .ld166-header-tools{width:100%;align-items:stretch;}
  #main-app .ld201-checks-shell .ld166-search-wrap{width:100%;}
}

/* Day-mode helper text must remain readable, not washed out. */
@media screen {
 #main-app .ld201-checks-shell[data-ld166-theme="day"] .ld200-check-workspace #check-vin-match,
 #main-app .ld201-checks-shell[data-ld166-theme="day"] .ld200-check-workspace .check-note { color:#405a72!important; }
}
/* Do not let the fixed dashboard shell clip the existing calibrated paper sheet. */
@media print {
 body.printing-aligned-check #main-app .ld201-checks-shell {
   position:static!important;inset:auto!important;overflow:visible!important;
   display:block!important;isolation:auto!important;z-index:auto!important;
   background:#fff!important;min-height:0!important;
 }
 body.printing-aligned-check #main-app .ld201-checks-shell .ld201-checks-page {display:block!important;overflow:visible!important;padding:0!important;}
 body.printing-aligned-check #main-app .ld201-checks-shell .ld200-check-workspace {overflow:visible!important;}
 body.printing-aligned-check #main-app .ld201-checks-shell .ld166-sidebar,
 body.printing-aligned-check #main-app .ld201-checks-shell .ld201-checks-header {display:none!important;}
}
