/* InventoryRoad desktop redesign. Desktop-only by design; mobile styles remain untouched. */
@media (min-width:1024px){
  body.desktop-shell{
    --desk-sidebar:248px;
    --desk-top:72px;
    --desk-navy:#12283b;
    --desk-navy-2:#18364d;
    --desk-accent:#d23a35;
    --desk-blue:#2f6fa5;
    --desk-line:#dfe6ec;
    --desk-bg:#f3f6f9;
    --desk-card:#ffffff;
    --desk-text:#1f2d3a;
    --desk-muted:#71808d;
    background:var(--desk-bg);
    color:var(--desk-text);
    font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    font-size:13px;
  }

  body.desktop-shell .topbar{
    position:fixed!important;
    inset:0 auto 0 0;
    width:var(--desk-sidebar);
    height:100vh;
    z-index:90;
    background:var(--desk-navy);
    border:0;
    box-shadow:8px 0 28px rgba(20,41,58,.08);
  }
  body.desktop-shell .topbar-inner{
    max-width:none;
    width:100%;
    min-height:100%;
    height:100%;
    padding:22px 16px 18px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:16px;
  }
  body.desktop-shell .brand{
    flex:none;
    min-height:48px;
    color:#fff;
    font-size:18px;
    padding:0 8px;
    gap:11px;
  }
  body.desktop-shell .brand-mark.small{
    width:36px;
    height:36px;
    border-radius:10px;
    background:#fff;
    color:var(--desk-navy);
    font-size:13px;
  }
  body.desktop-shell .nav{
    flex:1;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:5px;
    overflow-y:auto;
    padding:8px 0;
  }
  body.desktop-shell .nav>a,
  body.desktop-shell .nav>a.btn{
    width:100%;
    min-height:44px;
    margin:0!important;
    padding:11px 13px!important;
    border:0!important;
    border-radius:9px!important;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    color:#dbe7ef;
    background:transparent;
    font-size:13px;
    font-weight:720;
    transition:background .12s ease,color .12s ease;
  }
  body.desktop-shell .desktop-nav-icon{
    width:22px;
    height:22px;
    flex:0 0 22px;
    display:grid;
    place-items:center;
    margin-right:10px;
    color:currentColor;
  }
  body.desktop-shell .desktop-nav-icon svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  body.desktop-shell .desktop-sidebar-motto{
    margin:8px 10px 2px;
    padding:12px 4px 6px;
    border-top:1px solid rgba(255,255,255,.12);
    color:#eef4f8;
    font-size:12px;
    line-height:1.35;
    font-style:italic;
    text-align:center;
    letter-spacing:.01em;
  }
  body.desktop-shell .nav>a:hover{background:rgba(255,255,255,.07);color:#fff}
  body.desktop-shell .nav>a.active{
    background:#fff!important;
    color:var(--desk-navy)!important;
    box-shadow:0 4px 14px rgba(0,0,0,.12);
  }
  body.desktop-shell .nav>a.btn.primary{
    margin-top:auto!important;
    background:var(--desk-accent)!important;
    color:#fff!important;
    justify-content:center;
    box-shadow:0 7px 18px rgba(210,58,53,.22);
  }
  body.desktop-shell .userbox{display:none!important}

  body.desktop-shell .desktop-contextbar{
    position:fixed;
    top:0;
    left:var(--desk-sidebar);
    right:0;
    height:var(--desk-top);
    z-index:80;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--desk-line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:0 28px;
    box-shadow:0 3px 16px rgba(26,47,64,.05);
  }
  body.desktop-shell .desktop-context-title{
    display:grid;
    gap:2px;
    min-width:0;
  }
  body.desktop-shell .desktop-context-title strong{font-size:15px;color:#263746}
  body.desktop-shell .desktop-context-title span{font-size:11px;color:var(--desk-muted)}
  body.desktop-shell .desktop-context-controls{display:flex;align-items:center;gap:10px}
  body.desktop-shell .desktop-context-control{
    min-width:176px;
    height:42px;
    border:1px solid var(--desk-line);
    border-radius:10px;
    background:#fff;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 11px;
  }
  body.desktop-shell .desktop-context-control.store{min-width:190px}
  body.desktop-shell .desktop-context-control label{
    flex:none;
    font-size:9px;
    line-height:1;
    font-weight:850;
    letter-spacing:.06em;
    color:#8794a0;
    text-transform:uppercase;
  }
  body.desktop-shell .desktop-context-control select{
    min-width:0;
    flex:1;
    border:0;
    outline:0;
    background:transparent;
    color:#263746;
    font-size:12px;
    font-weight:800;
    padding:0;
  }
  body.desktop-shell .desktop-context-static{
    min-width:0;
    flex:1;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:#263746;
    font-size:12px;
    font-weight:800;
  }
  body.desktop-shell .desktop-avatar{
    width:38px;height:38px;border-radius:50%;
    display:grid;place-items:center;
    background:#e5edf4;color:#25445e;
    font-size:12px;font-weight:900;
  }
  body.desktop-shell .desktop-signout{
    border:0;background:transparent;color:#6d7e8b;
    padding:7px 4px;font-weight:800;cursor:pointer;font-size:11px;
  }

  body.desktop-shell .page-shell{
    max-width:none!important;
    margin-left:var(--desk-sidebar);
    padding:calc(var(--desk-top) + 24px) 30px 48px!important;
  }
  body.desktop-shell .page-header{
    margin:0 0 18px;
    align-items:center;
  }
  body.desktop-shell .page-header h1{
    margin:0 0 3px;
    font-size:25px!important;
    letter-spacing:-.02em;
    color:#263746;
  }
  body.desktop-shell .page-header p{font-size:12px;color:var(--desk-muted)}
  body.desktop-shell.dashboard-route #pageHeader{display:none!important}
  body.desktop-shell.dashboard-route .page-shell{padding-top:calc(var(--desk-top) + 24px)!important}

  body.desktop-shell .card,
  body.desktop-shell .stat,
  body.desktop-shell .workflow-kpi,
  body.desktop-shell .appraisal-collapse{
    border:1px solid var(--desk-line);
    border-radius:14px;
    background:var(--desk-card);
    box-shadow:0 7px 22px rgba(24,48,67,.055);
  }
  body.desktop-shell .card{overflow:hidden}
  body.desktop-shell .card-pad,
  body.desktop-shell .section{padding:18px 20px}
  body.desktop-shell .section h2,
  body.desktop-shell .card-title{font-size:15px;color:#263746;margin:0 0 10px}
  body.desktop-shell .stats,
  body.desktop-shell .workflow-kpis{gap:12px}
  body.desktop-shell .stat,
  body.desktop-shell .workflow-kpi{
    border-top:1px solid var(--desk-line);
    padding:16px 18px;
    min-height:100px;
  }
  body.desktop-shell .stat .label,
  body.desktop-shell .workflow-kpi .kpi-title{font-size:10px;color:#7b8b98;letter-spacing:.04em}
  body.desktop-shell .stat .value,
  body.desktop-shell .workflow-kpi .kpi-value{font-size:27px;color:#243847;font-weight:850}
  body.desktop-shell .stat .sub,
  body.desktop-shell .workflow-kpi .kpi-caption{font-size:11px;color:#8794a0}

  body.desktop-shell .toolbar{
    padding:12px 14px;
    border-color:var(--desk-line);
    background:#f8fafc;
    gap:10px;
  }
  body.desktop-shell .toolbar input,
  body.desktop-shell .toolbar select,
  body.desktop-shell .field input,
  body.desktop-shell .field select,
  body.desktop-shell .field textarea{
    border:1px solid #cfd9e1;
    border-radius:8px;
    padding:9px 10px;
    font-size:12px;
    background:#fff;
  }
  body.desktop-shell .btn{
    border-radius:8px;
    padding:9px 12px;
    font-size:12px;
  }
  body.desktop-shell .btn.primary{background:#2f6fa5;color:#fff}
  body.desktop-shell .btn.ghost{background:#fff;border-color:#cad5de}

  body.desktop-shell .data-table{min-width:0}
  body.desktop-shell .data-table th{
    background:#f4f7f9;
    border-color:#e0e7ed;
    color:#60717f;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.045em;
    padding:10px 11px;
  }
  body.desktop-shell .data-table td{
    border-color:#e8edf1;
    font-size:11px;
    padding:10px 11px;
    background:#fff;
  }
  body.desktop-shell .data-table tbody tr:nth-child(even){background:#fbfcfd}
  body.desktop-shell .data-table tbody tr:hover td{background:#f6faff}
  body.desktop-shell .badge{border-radius:999px;padding:4px 8px;font-size:9px;font-weight:850}

  /* Dashboard */
  body.desktop-shell .desktop-dashboard-kpis{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:16px;
  }
  body.desktop-shell .desktop-kpi{
    background:#fff;border:1px solid var(--desk-line);border-radius:13px;
    padding:16px 18px;box-shadow:0 6px 20px rgba(24,48,67,.05);
  }
  body.desktop-shell .desktop-kpi span{display:block;font-size:10px;font-weight:850;color:#7b8a97;text-transform:uppercase;letter-spacing:.04em}
  body.desktop-shell .desktop-kpi strong{display:block;font-size:28px;line-height:1.05;margin:7px 0 3px;color:#243847}
  body.desktop-shell .desktop-kpi small{color:#8996a1;font-size:10px}
  body.desktop-shell .desktop-dashboard-grid{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
    gap:16px;
    align-items:start;
  }
  body.desktop-shell .desktop-dashboard-stack{display:grid;gap:16px}
  body.desktop-shell .desktop-panel-head{
    display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;
  }
  body.desktop-shell .desktop-panel-head h2{margin:0;font-size:15px}
  body.desktop-shell .desktop-panel-head a,
  body.desktop-shell .desktop-panel-head button{
    font-size:11px;font-weight:800;color:#2f6fa5;background:none;border:0;cursor:pointer;
  }
  body.desktop-shell .desktop-outside-bids{
    border-left:4px solid #f2b72f;
  }
  body.desktop-shell .desktop-outside-bids strong.count{font-size:32px;color:#8a5a00}
  body.desktop-shell .desktop-outside-bids p{margin:6px 0 0;color:#71808d;font-size:11px}

  /* Appraisal quadrants */
  body.desktop-shell .desktop-appraisal-toolbar{
    display:grid;
    grid-template-columns:minmax(260px,1fr) auto;
    gap:12px;
    align-items:center;
    margin-bottom:14px;
  }
  body.desktop-shell .desktop-appraisal-toolbar input{
    width:100%;height:40px;border:1px solid #cfd9e1;border-radius:9px;padding:0 12px;background:#fff;
  }
  body.desktop-shell .desktop-appraisal-summary{
    display:flex;gap:8px;align-items:center;color:#7c8b97;font-size:11px;font-weight:700;
  }
  body.desktop-shell .desktop-appraisal-board{
    display:grid;
    grid-template-columns:repeat(4,minmax(220px,1fr));
    gap:12px;
    align-items:start;
  }
  body.desktop-shell .desktop-appraisal-lane{
    min-width:0;
    background:#edf2f6;
    border:1px solid #dce4ea;
    border-radius:13px;
    padding:11px;
  }
  body.desktop-shell .desktop-appraisal-lane-head{
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    padding:2px 2px 10px;
  }
  body.desktop-shell .desktop-appraisal-lane-head strong{
    font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#485d6d;
  }
  body.desktop-shell .desktop-appraisal-count{
    min-width:24px;height:22px;border-radius:999px;display:grid;place-items:center;
    background:#d9e3eb;color:#40596d;font-size:10px;font-weight:900;
  }
  body.desktop-shell .desktop-appraisal-cards{display:grid;gap:9px}
  body.desktop-shell .desktop-appraisal-card{
    display:block;
    background:#fff;
    border:1px solid #dce4e9;
    border-radius:11px;
    padding:12px;
    box-shadow:0 4px 12px rgba(28,49,65,.05);
    cursor:pointer;
  }
  body.desktop-shell .desktop-appraisal-card:hover{border-color:#aebfcb;box-shadow:0 7px 18px rgba(28,49,65,.09)}
  body.desktop-shell .desktop-appraisal-card .customer{
    font-size:13px;font-weight:850;color:#243847;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body.desktop-shell .desktop-appraisal-card .vehicle{
    margin-top:3px;font-size:11px;color:#617482;line-height:1.35;
  }
  body.desktop-shell .desktop-appraisal-card .meta{
    display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #edf1f4;
    color:#82909b;font-size:9.5px;
  }
  body.desktop-shell .desktop-lane-empty{
    padding:18px 8px;text-align:center;color:#8a98a3;font-size:11px;
  }

  /* Sales: open delivery overview above Sales Log */
  body.desktop-shell .sales-open-times-card{display:block}
  body.desktop-shell .sales-open-times-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(150px,1fr));
    gap:9px;
  }
  body.desktop-shell .sales-open-day{
    border:1px solid #dbe4ea;border-radius:10px;background:#f8fafc;padding:10px;
  }
  body.desktop-shell .sales-open-day>strong{display:block;font-size:11px;color:#445a6a;margin-bottom:7px}
  body.desktop-shell .sales-open-slot{
    width:100%;
    display:flex;justify-content:space-between;gap:8px;
    padding:6px 0;border:0;border-top:1px solid #e8edf1;
    background:transparent;text-align:left;font:inherit;cursor:pointer;font-size:10px;
  }
  body.desktop-shell .sales-open-slot:hover b{text-decoration:underline}
  body.desktop-shell .sales-open-slot:first-of-type{border-top:0}
  body.desktop-shell .sales-open-slot b{color:#2f6fa5}
  body.desktop-shell .sales-open-slot span{color:#7b8b98}
  body.desktop-shell .sales-open-times-note{font-size:10px;color:#8996a1;margin-top:8px}
  body.desktop-shell .sales-open-refresh{font-size:10px!important;padding:6px 8px!important}

  /* Keep large desktop content usable on narrower laptops without affecting tablets/phones. */
  @media (max-width:1240px){
    body.desktop-shell{--desk-sidebar:220px}
    body.desktop-shell .desktop-appraisal-board{grid-template-columns:repeat(2,minmax(260px,1fr))}
    body.desktop-shell .sales-open-times-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}
    body.desktop-shell .desktop-dashboard-grid{grid-template-columns:1fr}
  }
}


/* 2026-09-21 desktop mockup match. Intentionally desktop-only. */
@media (min-width:1024px){
  body.desktop-shell{--desk-sidebar:258px;--desk-top:74px}

  /* McClain's owns the sidebar; InventoryRoad moves to the global header. */
  body.desktop-shell .brand{
    display:flex!important;
    min-height:86px!important;
    padding:8px 9px 12px!important;
    justify-content:center!important;
    border-bottom:1px solid rgba(255,255,255,.11);
  }
  body.desktop-shell .desktop-dealer-logo{
    width:100%;height:72px;border-radius:10px;background:#fff;
    display:flex;align-items:center;justify-content:center;padding:6px 8px;overflow:hidden;
  }
  body.desktop-shell .desktop-dealer-logo img{display:block;max-width:100%;max-height:60px;object-fit:contain}
  body.desktop-shell .brand-mark.small{display:none!important}
  body.desktop-shell .nav{padding:4px 0 0;gap:3px}
  body.desktop-shell .nav>a,body.desktop-shell .nav>a.btn{min-height:40px;padding:9px 11px!important;font-size:12px}
  body.desktop-shell .nav>a.desktop-new-appraisal{
    margin-top:auto!important;min-height:42px;justify-content:center!important;
    background:#d83a34!important;color:#fff!important;font-size:12px;font-weight:850;
  }
  body.desktop-shell .desktop-nav-icon{width:20px;height:20px;flex-basis:20px;margin-right:9px}
  body.desktop-shell .desktop-nav-icon svg,body.desktop-shell .desktop-sub-icon svg{
    width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
  }
  body.desktop-shell .desktop-subnav{
    display:none;margin:-1px 0 4px 31px;padding:2px 0 3px 8px;
    border-left:1px solid rgba(255,255,255,.18)
  }
  body.desktop-shell .desktop-subnav.open{display:grid;gap:1px}
  body.desktop-shell .desktop-subnav a{
    min-height:30px;padding:6px 8px;border-radius:6px;color:#c7d6e2;font-size:10.5px;font-weight:650;
    display:flex;align-items:center;gap:6px
  }
  body.desktop-shell .desktop-subnav a:hover,body.desktop-shell .desktop-subnav a.active{background:rgba(255,255,255,.08);color:#fff}
  body.desktop-shell .desktop-sub-icon{display:grid;place-items:center;width:15px;height:15px}
  body.desktop-shell .desktop-sub-icon svg{width:14px;height:14px}
  body.desktop-shell .desktop-sidebar-motto{
    margin:10px 8px 0!important;padding:12px 6px 3px!important;
    font-size:11px!important;line-height:1.4!important;font-style:italic;
    color:#f2f6f9!important;border-top:1px solid rgba(255,255,255,.12)!important;
  }

  /* IR + global search replaces the duplicated page label in the top bar. */
  body.desktop-shell .desktop-contextbar{padding:0 24px;gap:16px}
  body.desktop-shell .desktop-global-area{display:flex;align-items:center;gap:12px;min-width:0;flex:1;max-width:690px}
  body.desktop-shell .desktop-ir-mark{
    width:38px;height:38px;border-radius:10px;background:#12283b;color:#fff;
    display:grid;place-items:center;flex:none;font-size:11px;font-weight:900;letter-spacing:.04em
  }
  body.desktop-shell .desktop-global-search{position:relative;flex:1;min-width:260px}
  body.desktop-shell .desktop-global-search>input{
    width:100%;height:42px;border:1px solid #d5dee6;border-radius:9px;background:#f8fafc;
    padding:0 14px 0 39px;color:#263746;font-size:12px;outline:0
  }
  body.desktop-shell .desktop-global-search>input:focus{background:#fff;border-color:#8fafc7;box-shadow:0 0 0 3px rgba(47,111,165,.08)}
  body.desktop-shell .desktop-search-icon{
    position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#506979;z-index:2
  }
  body.desktop-shell .desktop-search-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  body.desktop-shell .desktop-search-results{
    position:absolute;top:48px;left:0;right:0;z-index:120;background:#fff;border:1px solid #d8e1e8;
    border-radius:10px;box-shadow:0 14px 34px rgba(19,43,60,.16);overflow:hidden;max-height:420px;overflow-y:auto
  }
  body.desktop-shell .desktop-search-results a{
    display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:8px;padding:10px 12px;border-bottom:1px solid #edf1f4;color:#263746
  }
  body.desktop-shell .desktop-search-results a:last-child{border-bottom:0}
  body.desktop-shell .desktop-search-results a:hover{background:#f5f9fc}
  body.desktop-shell .desktop-search-type{grid-row:1/3;font-size:8.5px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#6c8291}
  body.desktop-shell .desktop-search-results strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.desktop-shell .desktop-search-results small{font-size:9px;color:#7b8b97;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.desktop-shell .desktop-search-empty{padding:14px;color:#71818d;font-size:11px}
  body.desktop-shell .desktop-context-controls{flex:none}
  body.desktop-shell .desktop-context-control{height:40px;min-width:150px}
  body.desktop-shell .desktop-context-control.store{min-width:170px}
  body.desktop-shell .desktop-avatar{width:36px;height:36px}
  body.desktop-shell .desktop-signout{font-size:10px}

  /* Page title is shown once, in the content area. */
  body.desktop-shell .page-shell{padding:calc(var(--desk-top) + 18px) 22px 44px!important}
  body.desktop-shell .page-header{margin-bottom:14px}
  body.desktop-shell .page-header h1{font-size:29px!important;line-height:1.05}
  body.desktop-shell .page-header p{margin-top:4px;font-size:12px}
  body.desktop-shell .desktop-page-actions{display:flex;gap:8px;align-items:center}

  /* Rich KPI cards */
  body.desktop-shell .desktop-dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.desktop-shell .desktop-appraisal-kpis{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-bottom:12px
  }
  body.desktop-shell a.desktop-kpi{
    position:relative;display:flex!important;align-items:center;gap:12px;min-height:88px;
    border:1px solid var(--desk-line);border-radius:12px;padding:13px 15px!important;
    text-decoration:none;box-shadow:0 5px 18px rgba(24,48,67,.045);overflow:hidden
  }
  body.desktop-shell .desktop-kpi .desktop-kpi-icon{
    display:grid!important;place-items:center;flex:none;width:42px;height:42px;border-radius:10px;
    text-transform:none!important;letter-spacing:0!important
  }
  body.desktop-shell .desktop-kpi .desktop-kpi-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  body.desktop-shell .desktop-kpi .desktop-kpi-copy{display:block!important;min-width:0}
  body.desktop-shell .desktop-kpi .desktop-kpi-copy small{
    display:block;color:inherit;font-size:10px;font-weight:850;letter-spacing:.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  body.desktop-shell .desktop-kpi .desktop-kpi-copy strong{display:block;font-size:25px;margin:2px 0 1px;color:inherit;line-height:1}
  body.desktop-shell .desktop-kpi .desktop-kpi-copy em{display:block;font-style:normal;font-size:8.5px;font-weight:650;opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.desktop-shell .desktop-kpi .desktop-kpi-arrow{display:block!important;margin-left:auto;font-size:19px!important;color:currentColor!important;text-transform:none!important;letter-spacing:0!important}
  body.desktop-shell .desktop-kpi.tone-slate{background:#f4f6f8;color:#4a5f6e;border-color:#dbe2e8}
  body.desktop-shell .desktop-kpi.tone-slate .desktop-kpi-icon{background:#e4e9ee}
  body.desktop-shell .desktop-kpi.tone-blue{background:#edf5ff;color:#1768b1;border-color:#cfe2f6}
  body.desktop-shell .desktop-kpi.tone-blue .desktop-kpi-icon{background:#dcecff}
  body.desktop-shell .desktop-kpi.tone-purple{background:#f7efff;color:#7a2fc0;border-color:#e5d1f5}
  body.desktop-shell .desktop-kpi.tone-purple .desktop-kpi-icon{background:#ead9f8}
  body.desktop-shell .desktop-kpi.tone-orange{background:#fff3e8;color:#c65a12;border-color:#f0dbc7}
  body.desktop-shell .desktop-kpi.tone-orange .desktop-kpi-icon{background:#ffe4cf}
  body.desktop-shell .desktop-kpi.tone-green{background:#edf8f1;color:#25834a;border-color:#cce6d5}
  body.desktop-shell .desktop-kpi.tone-green .desktop-kpi-icon{background:#d8efdf}

  /* Appraisals filter row and board */
  body.desktop-shell .desktop-appraisal-filters{
    display:grid;grid-template-columns:150px 150px 140px 150px minmax(220px,1fr) auto;
    gap:9px;align-items:end;margin-bottom:12px
  }
  body.desktop-shell .desktop-appraisal-filters>label{display:grid;gap:4px;color:#697c89;font-size:9px;font-weight:800}
  body.desktop-shell .desktop-appraisal-filters select,body.desktop-shell .desktop-appraisal-filters input{
    height:38px;border:1px solid #d3dde4;border-radius:8px;background:#fff;padding:0 10px;font-size:11px;color:#2a3d4c
  }
  body.desktop-shell .desktop-app-search-filter{position:relative}
  body.desktop-shell .desktop-app-search-filter>span{
    position:absolute;left:10px;bottom:10px;width:16px;height:16px;color:#627786
  }
  body.desktop-shell .desktop-app-search-filter svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
  body.desktop-shell .desktop-app-search-filter input{padding-left:33px!important}
  body.desktop-shell .desktop-clear-filters{height:38px;border:0;background:transparent;color:#2f6fa5;font-size:10px;font-weight:850;cursor:pointer}
  body.desktop-shell .desktop-appraisal-notice{
    display:flex;align-items:center;gap:10px;padding:9px 12px;margin-bottom:10px;border:1px solid #dfe5ea;border-radius:9px;
    background:#f7f9fb;color:#526672;font-size:10px
  }
  body.desktop-shell .desktop-appraisal-notice strong{color:#334b5b}
  body.desktop-shell .desktop-appraisal-board{grid-template-columns:repeat(4,minmax(220px,1fr));gap:10px}
  body.desktop-shell .desktop-appraisal-board.single{grid-template-columns:minmax(320px,620px)}
  body.desktop-shell .desktop-appraisal-lane{padding:0;border-radius:12px;overflow:hidden;background:#f5f7f8}
  body.desktop-shell .desktop-appraisal-lane-head{padding:10px 11px;justify-content:flex-start;align-items:center;border-bottom:1px solid rgba(40,60,75,.07)}
  body.desktop-shell .desktop-appraisal-lane-head>div{min-width:0;flex:1}
  body.desktop-shell .desktop-appraisal-lane-head strong{display:block;font-size:11px!important;letter-spacing:0!important;text-transform:none!important;color:inherit}
  body.desktop-shell .desktop-appraisal-lane-head small{display:block;margin-top:2px;font-size:8.5px;opacity:.75}
  body.desktop-shell .lane-step{
    width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;background:rgba(255,255,255,.7);
    font-size:13px;font-weight:900
  }
  body.desktop-shell .desktop-appraisal-count{margin-left:auto;background:rgba(255,255,255,.65);color:inherit}
  body.desktop-shell .lane-slate{background:#f2f4f6;border-color:#dce3e8}.lane-slate .desktop-appraisal-lane-head{background:#e9edf0;color:#435969}
  body.desktop-shell .lane-blue{background:#f1f7fd;border-color:#cfe1f1}.lane-blue .desktop-appraisal-lane-head{background:#deedfb;color:#22689f}
  body.desktop-shell .lane-purple{background:#faf5ff;border-color:#e6d5f3}.lane-purple .desktop-appraisal-lane-head{background:#eedff8;color:#7334a5}
  body.desktop-shell .lane-orange{background:#fff7ef;border-color:#eddaca}.lane-orange .desktop-appraisal-lane-head{background:#fce7d6;color:#b9581c}
  body.desktop-shell .lane-green{background:#f1f9f4;border-color:#d0e7d7}.lane-green .desktop-appraisal-lane-head{background:#ddf0e3;color:#287747}
  body.desktop-shell .desktop-appraisal-cards{padding:8px;gap:7px}
  body.desktop-shell .desktop-appraisal-card{
    position:relative;display:grid;grid-template-columns:62px minmax(0,1fr);gap:9px;min-height:88px;
    padding:8px!important;border-radius:9px;background:#fff
  }
  body.desktop-shell .desktop-appraisal-thumb{
    width:62px;height:58px;border-radius:7px;background:#e8eef2;overflow:hidden;display:grid;place-items:center;color:#8998a3;font-size:9px;font-weight:900
  }
  body.desktop-shell .desktop-appraisal-thumb img{width:100%;height:100%;object-fit:cover;display:block}
  body.desktop-shell .desktop-appraisal-card-copy{min-width:0;padding-right:56px}
  body.desktop-shell .desktop-appraisal-card .vehicle{margin:0;font-size:10.5px;font-weight:850;color:#283d4d;line-height:1.25}
  body.desktop-shell .desktop-appraisal-card .customer{margin-top:3px;font-size:9.5px;font-weight:650;color:#536977}
  body.desktop-shell .desktop-appraisal-card .stock{margin-top:2px;font-size:8.5px;color:#82909a}
  body.desktop-shell .desktop-appraisal-card .meta{margin-top:7px;padding-top:6px;font-size:8px}
  body.desktop-shell .desktop-card-status{
    position:absolute;right:7px;top:7px;padding:3px 5px;border-radius:5px;background:#eef2f5;color:#586b78;
    font-size:7.5px;text-transform:capitalize;font-weight:850
  }
  body.desktop-shell .desktop-appraisal-bottom{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:12px;margin-top:12px}
  body.desktop-shell .desktop-quick-actions{display:grid;grid-template-columns:1fr;gap:7px}

  /* Individual appraisal: four working quadrants. */
  body.desktop-shell .appraisal-workbench.appraisal-zones{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:
      "workflow workflow"
      "vehicle recon"
      "market values"
      "history history";
    gap:12px!important;
    align-items:stretch!important
  }
  body.desktop-shell .appraisal-workbench .status-workflow{
    grid-area:workflow!important;
    grid-column:auto!important;
    border-radius:12px;overflow:hidden;border:1px solid #dce4ea;border-top:4px solid #2f6fa5;
    box-shadow:0 5px 18px rgba(24,48,67,.04)
  }
  body.desktop-shell .status-workflow-head{padding:10px 12px;background:#f8fafc;gap:10px}
  body.desktop-shell .status-workflow-head label{font-size:9px;letter-spacing:.03em}
  body.desktop-shell .status-workflow-head label input,body.desktop-shell .status-workflow-head label select{min-width:150px;max-width:210px;border-radius:7px;padding:7px 8px}
  body.desktop-shell .status-workflow-head .list-price-label{margin-left:auto}
  body.desktop-shell .status-workflow-steps{grid-template-columns:repeat(6,1fr)}
  body.desktop-shell .status-step{padding:9px 4px}.status-step b{font-size:9px}
  body.desktop-shell .appraisal-workbench>.appraisal-collapse{
    position:static!important;
    top:auto!important;
    grid-column:auto!important;
    align-self:stretch!important;
    min-width:0;
    margin:0!important;
    border-radius:12px!important;
    overflow:hidden;
    box-shadow:0 5px 17px rgba(24,48,67,.045)!important
  }
  body.desktop-shell .appraisal-workbench>.vehicle-section{grid-area:vehicle!important}
  body.desktop-shell .appraisal-workbench>.recon-section{grid-area:recon!important}
  body.desktop-shell .appraisal-workbench>.market-section{grid-area:market!important}
  body.desktop-shell .appraisal-workbench>.appraisal-section{grid-area:values!important}
  body.desktop-shell .appraisal-workbench>.submission-section{grid-area:history!important;grid-column:auto!important}
  body.desktop-shell .appraisal-workbench>.appraisal-collapse summary{
    display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px!important;font-size:11px!important;
    list-style:none;cursor:pointer;border-bottom:1px solid rgba(40,60,75,.08)
  }
  body.desktop-shell .appraisal-workbench>.appraisal-collapse summary::-webkit-details-marker{display:none}
  body.desktop-shell .appraisal-zone-title{display:flex;align-items:center;gap:8px;font-weight:850}
  body.desktop-shell .appraisal-zone-icon{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:rgba(255,255,255,.72)}
  body.desktop-shell .appraisal-zone-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  body.desktop-shell .zone-summary-hint{font-size:8.5px!important;font-weight:800!important;letter-spacing:0!important;color:inherit!important;opacity:.72}
  body.desktop-shell .appraisal-workbench>.vehicle-section{border-color:#dce3e8!important;background:#fbfcfd!important}
  body.desktop-shell .appraisal-workbench>.vehicle-section summary{background:#e9edf0!important;color:#405768!important}
  body.desktop-shell .appraisal-workbench>.recon-section{border-color:#cfe1f1!important;background:#f9fcff!important}
  body.desktop-shell .appraisal-workbench>.recon-section summary{background:#deedfb!important;color:#22689f!important}
  body.desktop-shell .appraisal-workbench>.market-section{border-color:#e4d3f1!important;background:#fdfaff!important}
  body.desktop-shell .appraisal-workbench>.market-section summary{background:#eddef7!important;color:#7334a5!important}
  body.desktop-shell .appraisal-workbench>.appraisal-section{border-color:#d0e6d7!important;background:#fbfffc!important}
  body.desktop-shell .appraisal-workbench>.appraisal-section summary{background:#def0e4!important;color:#287747!important}
  body.desktop-shell .appraisal-workbench>.submission-section{border-color:#e0e6ea!important;background:#fff!important}
  body.desktop-shell .appraisal-workbench>.submission-section summary{background:#f1f4f6!important;color:#536775!important}
  body.desktop-shell .appraisal-workbench .collapse-body{padding:12px!important}
  body.desktop-shell .appraisal-workbench .zone-subhead{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#6d7d88;margin:5px 0 7px}
  body.desktop-shell .appraisal-workbench .zone-fields{gap:9px 10px}
  body.desktop-shell .appraisal-workbench .field label{font-size:9px}
  body.desktop-shell .appraisal-workbench .field input,body.desktop-shell .appraisal-workbench .field select,body.desktop-shell .appraisal-workbench .field textarea{border-radius:7px;padding:8px 9px;background:#fff}
  body.desktop-shell .appraisal-workbench .appraisal-save-actions{margin-top:10px}
  body.desktop-shell .appraisal-workbench .photo-grid{grid-template-columns:repeat(4,minmax(75px,1fr))}

  /* Sales open-time strip */
  body.desktop-shell .sales-open-times-note a{color:#2f6fa5;font-weight:800}
  body.desktop-shell #salesDeliverySource{display:block;margin-top:4px;font-size:9px}

  @media (max-width:1360px){
    body.desktop-shell{--desk-sidebar:238px}
    body.desktop-shell .desktop-appraisal-kpis{grid-template-columns:repeat(5,minmax(145px,1fr));overflow-x:auto}
    body.desktop-shell .desktop-appraisal-filters{grid-template-columns:repeat(4,minmax(125px,1fr));}
    body.desktop-shell .desktop-app-search-filter{grid-column:1/4}
  }
  @media (max-width:1240px){
    body.desktop-shell .desktop-global-search{min-width:220px}
    body.desktop-shell .desktop-context-control{min-width:130px}
    body.desktop-shell .desktop-context-control.store{min-width:145px}
    body.desktop-shell .desktop-appraisal-board{grid-template-columns:repeat(2,minmax(280px,1fr))}
    body.desktop-shell .appraisal-workbench.appraisal-zones{
      grid-template-columns:1fr!important;
      grid-template-areas:"workflow" "vehicle" "recon" "market" "values" "history"
    }
    body.desktop-shell .appraisal-workbench>.submission-section{grid-column:auto!important}
    body.desktop-shell .desktop-appraisal-bottom{grid-template-columns:1fr}
  }
}
