/* JAMAL CRM V40.30 — Parts Center Style Restore + Server Working Date Sync */
/* JAMAL CRM V40.29 — Global Working Date + Bottom Sidebar Control */
#jamal-working-date-bar{display:none!important}

/* Compact View Date stays in the top CRM header. */
#jamal-v6-view-date.v4028-view-date{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  width:auto!important;max-width:310px!important;min-width:225px!important;
  margin:0 10px!important;padding:4px 7px!important;
  border:1px solid rgba(255,255,255,.28)!important;border-radius:8px!important;
  background:rgba(255,255,255,.96)!important;color:#18312c!important;
  box-shadow:0 1px 4px rgba(0,0,0,.08)!important;font-size:11px!important;
  flex:0 0 auto!important;
}
#jamal-v6-view-date.v4028-view-date strong{
  display:block!important;white-space:nowrap!important;font-size:10px!important;
  font-weight:900!important;color:#174c40!important;text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
#jamal-v6-view-date.v4028-view-date input[type=date]{
  width:145px!important;min-width:135px!important;height:28px!important;
  padding:3px 6px!important;margin:0!important;border:1px solid #bfd2cc!important;
  border-radius:6px!important;background:#fff!important;color:#172033!important;
  font-size:11px!important;box-sizing:border-box!important;
}
.v4028-view-date-wrap{display:flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important}


/* Global Operational Working Date: visible on every CRM page. */
#v4029-global-working-date{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  flex:0 0 auto!important;min-height:34px!important;padding:4px 10px!important;
  margin:0 7px!important;border-radius:9px!important;border:1px solid transparent!important;
  box-sizing:border-box!important;box-shadow:0 1px 5px rgba(0,0,0,.10)!important;
  line-height:1.05!important;white-space:nowrap!important;
}
#v4029-global-working-date span:last-child{display:flex!important;flex-direction:column!important;gap:2px!important}
#v4029-global-working-date b{font-size:8.5px!important;letter-spacing:.055em!important;font-weight:950!important}
#v4029-global-working-date strong{font-size:12px!important;font-weight:950!important}
#v4029-global-working-date .v4029-date-dot{
  width:20px!important;height:20px!important;border-radius:50%!important;display:grid!important;
  place-items:center!important;font-size:11px!important;font-weight:950!important;flex:0 0 auto!important;
}
#v4029-global-working-date.v4029-backdated{
  background:#fff1d6!important;border-color:#f0a51d!important;color:#8a3f00!important;
  box-shadow:0 0 0 2px rgba(240,165,29,.10),0 2px 7px rgba(0,0,0,.10)!important;
}
#v4029-global-working-date.v4029-backdated .v4029-date-dot{background:#c2410c!important;color:#fff!important}
#v4029-global-working-date.v4029-current-date{background:#e8f8ef!important;border-color:#7bc69b!important;color:#17613b!important}
#v4029-global-working-date.v4029-current-date .v4029-date-dot{background:#198754!important;color:#fff!important}

/* Working Date only in sidebar. */
.v4028-workdate{
  margin:4px 6px 8px!important;border:1px solid rgba(255,255,255,.16)!important;
  border-radius:9px!important;background:rgba(255,255,255,.055)!important;color:#fff!important;
  overflow:hidden!important;
}
.v4028-workdate summary{
  list-style:none!important;cursor:pointer!important;padding:8px 9px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:6px!important;font-size:11px!important;font-weight:900!important;color:#dff7f0!important;
}
.v4028-workdate summary::-webkit-details-marker{display:none!important}
.v4028-workdate summary:after{content:"▾";font-size:10px;opacity:.8}
.v4028-workdate[open] summary:after{content:"▴"}
.v4028-workdate-body{display:grid!important;gap:6px!important;padding:0 8px 8px!important}
.v4028-workdate-status{font-size:9.5px!important;line-height:1.35!important;color:rgba(255,255,255,.72)!important}
.v4028-workdate-label{font-size:9px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#9bd9c9!important}
.v4028-workdate form{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;width:100%!important;max-width:none!important}
.v4028-workdate form input[type=date]{width:100%!important;min-width:0!important;height:29px!important;padding:4px 6px!important;margin:0!important;border:1px solid rgba(255,255,255,.23)!important;border-radius:6px!important;background:#fff!important;color:#172033!important;font-size:10px!important;box-sizing:border-box!important}
.v4028-workdate form button,.v4028-workdate form input[type=submit]{width:100%!important;margin:0!important;padding:6px 7px!important;border:0!important;border-radius:6px!important;background:#13846f!important;color:#fff!important;font-size:10px!important;font-weight:900!important}
.v4028-workdate .v4028-perm{display:block!important;padding:6px 7px!important;border-radius:6px!important;background:#173e5c!important;color:#fff!important;text-decoration:none!important;font-size:9.5px!important;font-weight:900!important;text-align:center!important}

/* Professional, consistent full-width sidebar navigation. */
.sidebar{padding-left:5px!important;padding-right:5px!important}
.sidebar > a,
aside.sidebar > a{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
  text-align:left!important;white-space:normal!important;
  width:calc(100% - 2px)!important;min-height:31px!important;box-sizing:border-box!important;
  margin:2px 1px!important;padding:7px 9px 7px 11px!important;
  border:1px solid transparent!important;border-left:3px solid transparent!important;
  border-radius:8px!important;color:#f7fffc!important;text-decoration:none!important;
  font-weight:800!important;line-height:1.16!important;transition:background .14s ease,border-color .14s ease,transform .14s ease,box-shadow .14s ease!important;
}
.sidebar > a:before,
aside.sidebar > a:before{
  content:""!important;width:5px!important;height:5px!important;border-radius:50%!important;
  background:rgba(200,245,232,.48)!important;margin-right:7px!important;flex:0 0 auto!important;
}
.sidebar > a:hover,
aside.sidebar > a:hover{
  background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.10)!important;
  border-left-color:#74d9bd!important;transform:translateX(1px)!important;
}
.sidebar > a.v4028-active,
.sidebar > a.active,
.sidebar > a[aria-current="page"],
aside.sidebar > a.v4028-active,
aside.sidebar > a.active,
aside.sidebar > a[aria-current="page"]{
  background:linear-gradient(90deg,rgba(57,139,119,.88),rgba(49,112,99,.72))!important;
  border-color:rgba(154,230,209,.25)!important;border-left-color:#79efd0!important;
  box-shadow:0 2px 8px rgba(0,0,0,.12)!important;color:#fff!important;
}
.sidebar > a.v4028-active:before,
.sidebar > a.active:before,
aside.sidebar > a.v4028-active:before,
aside.sidebar > a.active:before{background:#a7f3d0!important;box-shadow:0 0 0 2px rgba(167,243,208,.15)!important}
.sidebar a[data-v4027-parts-center="1"]{font-weight:900!important}

/* Keep zoom/utility blocks visually separated from navigation. */
.sidebar .screen-zoom,.sidebar [class*="zoom"]{margin-top:10px!important}

@media(max-width:1050px){
  #jamal-v6-view-date.v4028-view-date{min-width:205px!important;max-width:255px!important;margin:4px 6px!important}
  #jamal-v6-view-date.v4028-view-date input[type=date]{width:128px!important;min-width:120px!important}
}


/* V40.29: Working Date is a utility control at the bottom, not a primary nav item. */
#v4028-working-date{margin-top:12px!important;margin-bottom:8px!important}
.sidebar > a,.sidebar > a *{text-align:left!important}
.sidebar > a.v4028-active,.sidebar > a.active,.sidebar > a[aria-current="page"]{justify-content:flex-start!important;text-align:left!important;padding-left:11px!important}
@media(max-width:1180px){#v4029-global-working-date{padding:4px 7px!important;margin:3px 4px!important}#v4029-global-working-date b{font-size:8px!important}#v4029-global-working-date strong{font-size:11px!important}}


/* V40.30: restore Parts & Stock Center visual system. */
.psc-page{display:grid;gap:16px}.psc-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}.psc-head h1{margin:0;font-size:26px}.psc-head p{margin:5px 0 0;color:#64748b}
.psc-kpis{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px}.psc-kpi{border:1px solid #dbe4ee;border-radius:14px;padding:13px 14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.04)}.psc-kpi span{display:block;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.psc-kpi strong{display:block;font-size:22px;margin-top:4px;color:#0f172a}.psc-danger{color:#b91c1c!important}.psc-warn{color:#b45309!important}
.psc-section{border:1px solid #dbe4ee;border-radius:16px;padding:16px;background:#fff}.psc-section h2{margin:0 0 12px;font-size:18px}.psc-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:12px}.psc-card{display:block;text-decoration:none!important;border-radius:14px;padding:15px 16px;border:1px solid transparent;min-height:94px;transition:.14s ease;box-shadow:0 3px 10px rgba(15,23,42,.04)}.psc-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(15,23,42,.09)}.psc-card strong{display:block;font-size:16px;margin-bottom:5px}.psc-card small{display:block;line-height:1.35;color:#475569}
.psc-green{background:#ecfdf3;border-color:#a7e3bd;color:#166534}.psc-blue{background:#eff6ff;border-color:#b8d4ff;color:#1d4ed8}.psc-purple{background:#f5f3ff;border-color:#d8ccff;color:#6d28d9}.psc-amber{background:#fff7e6;border-color:#f5cf7e;color:#9a5a00}.psc-pink{background:#fff0f6;border-color:#f5c0d8;color:#a4265d}.psc-red{background:#fff1f2;border-color:#fecaca;color:#b91c1c}.psc-note{padding:11px 13px;border-radius:11px;background:#f8fafc;border:1px solid #dbe4ee;color:#475569;font-size:12px}
@media(max-width:1200px){.psc-kpis{grid-template-columns:repeat(3,1fr)}.psc-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.psc-kpis,.psc-grid{grid-template-columns:1fr}}

.psc-page{padding-bottom:18px!important}
.psc-kpi,.psc-section,.psc-card{box-sizing:border-box!important}
.psc-kpi strong{line-height:1.05!important}
.psc-card strong,.psc-card small{text-decoration:none!important}


/* V40.32 — unified navigation stability */
.sidebar > a[data-v4027-parts-center="1"]{box-sizing:border-box!important}

/* V40.35 inherits instant-visible behavior. */


/* ========================================================================
   V40.36 DESIGN 4 — BRANDING + CAR + SIDEBAR PROFILE
   Navigation/header only. Business screen layouts/data remain unchanged.
   ======================================================================== */

:root{
  --v4035-charcoal:#081b19;
  --v4035-charcoal-2:#0b2521;
  --v4035-emerald:#08a878;
  --v4035-emerald-2:#0fd391;
  --v4035-mint:#77f2c5;
  --v4035-line:rgba(119,242,197,.18);
  --v4035-ink:#0b1720;
}

/* Premium top header */
.topbar,header.topbar,body>header{
  background:
    radial-gradient(circle at 70% -80%,rgba(20,210,145,.18),transparent 48%),
    linear-gradient(110deg,#0a2622 0%,#09201e 46%,#0d2d28 100%)!important;
  border-bottom:1px solid rgba(99,236,190,.20)!important;
  box-shadow:0 5px 18px rgba(1,20,17,.16)!important;
}

/* Premium sidebar canvas */
.sidebar,aside.sidebar,.layout>aside{
  position:relative!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at -10% 20%,rgba(18,214,145,.20),transparent 33%),
    radial-gradient(circle at 125% 80%,rgba(14,184,128,.17),transparent 38%),
    linear-gradient(180deg,#071b19 0%,#09241f 48%,#061714 100%)!important;
  border-right:1px solid rgba(103,240,194,.18)!important;
  box-shadow:8px 0 24px rgba(0,24,19,.12)!important;
  padding:8px 7px 12px!important;
}
.sidebar:before,aside.sidebar:before{
  content:""!important;position:absolute!important;inset:auto -55px 12% -70px!important;height:150px!important;
  background:linear-gradient(120deg,transparent 20%,rgba(24,255,171,.10) 45%,transparent 68%)!important;
  transform:rotate(-12deg)!important;pointer-events:none!important;z-index:0!important;
}
.sidebar:after,aside.sidebar:after{
  content:""!important;position:absolute!important;left:-35px!important;right:-45px!important;bottom:-42px!important;height:120px!important;
  border-radius:50%!important;border:1px solid rgba(80,255,195,.10)!important;
  box-shadow:0 -22px 45px rgba(19,218,148,.07)!important;pointer-events:none!important;z-index:0!important;
}
.sidebar>*{position:relative!important;z-index:1!important}

/* Sidebar brand */
#v4035-sidebar-brand{
  display:flex!important;align-items:center!important;gap:10px!important;
  padding:10px 9px 12px!important;margin:1px 2px 9px!important;
  border-bottom:1px solid rgba(126,240,204,.14)!important;
}
#v4035-sidebar-brand .v4035-brand-mark{
  width:38px!important;height:38px!important;border-radius:12px!important;display:grid!important;place-items:center!important;
  color:#d8fff1!important;background:linear-gradient(145deg,#0ab47e,#087255)!important;
  border:1px solid rgba(156,255,221,.30)!important;
  box-shadow:0 0 0 3px rgba(13,204,140,.08),0 7px 18px rgba(0,0,0,.18)!important;
  flex:0 0 auto!important;
}
#v4035-sidebar-brand svg{width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#v4035-sidebar-brand b{display:block!important;color:#fff!important;font-size:12px!important;font-weight:900!important;letter-spacing:.01em!important;line-height:1.15!important}
#v4035-sidebar-brand small{display:block!important;color:#98c9ba!important;font-size:8.5px!important;margin-top:3px!important;letter-spacing:.02em!important}

/* Sidebar links */
.sidebar>a,aside.sidebar>a{
  min-height:34px!important;margin:2px 1px!important;padding:6px 8px!important;
  border:1px solid transparent!important;border-left:0!important;border-radius:9px!important;
  color:#e8f7f2!important;font-weight:750!important;font-size:11px!important;
  gap:8px!important;transform:none!important;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,color .14s ease!important;
}
.sidebar>a:before,aside.sidebar>a:before{display:none!important}
.sidebar>a:hover,aside.sidebar>a:hover{
  background:linear-gradient(90deg,rgba(15,126,92,.46),rgba(15,126,92,.14))!important;
  border-color:rgba(112,241,197,.14)!important;color:#fff!important;
  box-shadow:inset 3px 0 0 rgba(97,241,191,.55)!important;
  transform:none!important;
}
.sidebar>a.v4028-active,.sidebar>a.active,.sidebar>a[aria-current="page"],
aside.sidebar>a.v4028-active,aside.sidebar>a.active,aside.sidebar>a[aria-current="page"]{
  background:linear-gradient(100deg,#0fba80 0%,#079267 58%,#087956 100%)!important;
  border-color:rgba(155,255,220,.30)!important;color:#fff!important;
  box-shadow:0 7px 15px rgba(0,130,91,.23),inset 0 1px 0 rgba(255,255,255,.16)!important;
}
.v4035-nav-icon{
  width:22px!important;height:22px!important;border-radius:7px!important;display:grid!important;place-items:center!important;
  flex:0 0 22px!important;color:#8fe6c7!important;background:rgba(255,255,255,.045)!important;
}
.v4035-nav-icon svg{
  width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
.sidebar>a:hover .v4035-nav-icon{color:#c9ffec!important;background:rgba(96,240,191,.10)!important}
.sidebar>a.v4028-active .v4035-nav-icon,.sidebar>a.active .v4035-nav-icon{
  color:#fff!important;background:rgba(255,255,255,.13)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important;
}

/* Screen Zoom becomes a compact glass utility; Working Date is NOT in sidebar. */
#v4028-working-date,#v4027-date-controls{display:none!important}
.sidebar .screen-zoom,.sidebar [class*="zoom"]{
  margin:12px 2px 2px!important;padding:9px!important;border-radius:11px!important;
  background:rgba(255,255,255,.055)!important;border:1px solid rgba(132,241,204,.13)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}

/* Compact top-right user card */
.v4035-user-area{
  display:flex!important;align-items:center!important;gap:8px!important;min-height:38px!important;
  padding:4px 8px!important;border-radius:11px!important;
  background:rgba(4,24,21,.44)!important;border:1px solid rgba(110,239,195,.18)!important;
  color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
  white-space:nowrap!important;
}
.v4035-user-area .v4035-user-avatar{
  width:28px!important;height:28px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
  background:linear-gradient(145deg,#14c78a,#079467)!important;color:#fff!important;
  font-size:10px!important;font-weight:950!important;letter-spacing:.02em!important;
  box-shadow:0 0 0 2px rgba(118,241,199,.12)!important;flex:0 0 auto!important;
}
.v4035-user-area a{color:#d8fff0!important;text-decoration:none!important;font-weight:800!important}
.v4035-user-area a:hover{color:#fff!important;text-decoration:underline!important}

/* Single top-right functional Working Date control */
#v4035-working-date-top{
  position:relative!important;flex:0 0 auto!important;margin-left:4px!important;color:#fff!important;
}
#v4035-working-date-top summary{
  list-style:none!important;display:flex!important;align-items:center!important;gap:8px!important;
  min-width:155px!important;min-height:40px!important;padding:5px 9px!important;box-sizing:border-box!important;
  cursor:pointer!important;border-radius:11px!important;
  background:linear-gradient(145deg,rgba(6,121,86,.96),rgba(4,83,65,.96))!important;
  border:1px solid rgba(100,255,200,.30)!important;
  box-shadow:0 6px 14px rgba(0,91,64,.19),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
#v4035-working-date-top summary::-webkit-details-marker{display:none!important}
#v4035-working-date-top .v4035-cal{
  width:27px!important;height:27px!important;border-radius:8px!important;display:grid!important;place-items:center!important;
  background:rgba(255,255,255,.11)!important;color:#baffdf!important;font-size:15px!important;
}
#v4035-working-date-top .v4035-date-copy{display:flex!important;flex-direction:column!important;line-height:1.05!important;min-width:88px!important}
#v4035-working-date-top .v4035-date-copy b{font-size:8px!important;text-transform:uppercase!important;letter-spacing:.045em!important;color:#aee8d4!important}
#v4035-working-date-top .v4035-date-copy strong{font-size:11px!important;color:#fff!important;margin-top:3px!important}
#v4035-working-date-top .v4035-chev{margin-left:auto!important;color:#a8dbc9!important;font-size:12px!important}
#v4035-working-date-top.is-backdated summary{
  background:linear-gradient(145deg,#9a4a06,#713402)!important;border-color:rgba(255,196,106,.45)!important;
}
#v4035-working-date-top .v4035-date-pop{
  position:absolute!important;right:0!important;top:calc(100% + 7px)!important;z-index:9999!important;
  width:245px!important;padding:11px!important;border-radius:13px!important;
  background:#0a2420!important;border:1px solid rgba(106,239,193,.22)!important;
  box-shadow:0 18px 42px rgba(0,17,14,.34)!important;color:#e9fff7!important;
}
#v4035-working-date-top:not([open]) .v4035-date-pop{display:none!important}
.v4035-date-status{display:flex!important;flex-direction:column!important;gap:3px!important;padding:2px 2px 9px!important;border-bottom:1px solid rgba(122,239,200,.12)!important;margin-bottom:9px!important}
.v4035-date-status b{font-size:10px!important;color:#fff!important}
.v4035-date-status span{font-size:9px!important;color:#9ac8b9!important}
.v4035-working-form{display:grid!important;gap:7px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.v4035-working-form input[type=date]{
  width:100%!important;height:32px!important;border-radius:8px!important;border:1px solid #b7dacf!important;
  background:#fff!important;color:#10241e!important;padding:4px 7px!important;font-size:10px!important;box-sizing:border-box!important;
}
.v4035-working-form button,.v4035-working-form input[type=submit]{
  width:100%!important;min-height:31px!important;border:0!important;border-radius:8px!important;
  background:linear-gradient(100deg,#12b77e,#078961)!important;color:#fff!important;font-size:10px!important;font-weight:900!important;
}
.v4035-date-perm{
  display:block!important;margin-top:7px!important;padding:7px!important;border-radius:8px!important;text-align:center!important;
  background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.08)!important;
  color:#d7fff0!important;text-decoration:none!important;font-size:9.5px!important;font-weight:850!important;
}

/* View Date stays separate and compact; Working Date is now only top-right. */
#jamal-v6-view-date.v4028-view-date{
  border-radius:10px!important;box-shadow:none!important;border-color:rgba(87,159,137,.25)!important;
}

/* Keep content completely untouched. */
@media(max-width:1180px){
  #v4035-sidebar-brand small{display:none!important}
  #v4035-working-date-top summary{min-width:142px!important}
  .v4035-user-area{padding:4px 6px!important}
}


/* ========================================================================
   V40.36 EXACT DESIGN-4 POLISH
   - Top: larger company logo/brand block in sidebar
   - Bottom: sports-car artwork + single user profile/logout card
   - Header user source hidden so profile is never duplicated
   - Working Date remains top-right only
   ======================================================================== */

.v4036-header-user-source{
  display:none!important;
}

/* Stronger premium brand block using the site's real logo/favicon when available. */
#v4036-sidebar-brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:58px!important;
  padding:8px 8px 10px!important;
  margin:0 1px 8px!important;
  border-bottom:1px solid rgba(129,246,205,.16)!important;
  background:
    linear-gradient(110deg,rgba(7,77,62,.24),rgba(5,35,30,.10))!important;
  border-radius:11px 11px 5px 5px!important;
}
#v4036-sidebar-brand .v4036-brand-mark{
  width:44px!important;height:44px!important;display:grid!important;place-items:center!important;
  flex:0 0 44px!important;border-radius:14px!important;
  background:
    radial-gradient(circle at 35% 30%,rgba(57,255,186,.23),transparent 42%),
    linear-gradient(145deg,#06392e,#071f1b)!important;
  border:1px solid rgba(115,251,205,.28)!important;
  box-shadow:0 0 0 3px rgba(10,211,144,.055),0 8px 18px rgba(0,0,0,.18)!important;
  overflow:hidden!important;
}
#v4036-sidebar-brand .v4036-brand-mark img{
  width:38px!important;height:38px!important;object-fit:contain!important;border-radius:9px!important;
}
#v4036-sidebar-brand .v4036-brand-mark svg{
  width:37px!important;height:37px!important;
  fill:none!important;stroke:#84f7ce!important;stroke-width:2.1!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
  filter:drop-shadow(0 0 6px rgba(40,255,179,.25))!important;
}
#v4036-sidebar-brand .v4036-brand-copy{
  min-width:0!important;flex:1 1 auto!important;
}
#v4036-sidebar-brand .v4036-brand-copy b{
  display:block!important;color:#fff!important;font-size:12.5px!important;font-weight:950!important;
  line-height:1.12!important;letter-spacing:.005em!important;white-space:nowrap!important;
}
#v4036-sidebar-brand .v4036-brand-copy small{
  display:block!important;color:#a6cfc2!important;font-size:8.5px!important;margin-top:4px!important;
  white-space:nowrap!important;
}
#v4036-sidebar-brand .v4036-brand-menu{
  color:#d7fff1!important;font-size:18px!important;line-height:1!important;opacity:.92!important;
  flex:0 0 auto!important;
}

/* Use new icon class from V40.36 */
.v4036-nav-icon{
  width:22px!important;height:22px!important;border-radius:7px!important;display:grid!important;place-items:center!important;
  flex:0 0 22px!important;color:#8fe6c7!important;background:rgba(255,255,255,.045)!important;
}
.v4036-nav-icon svg{
  width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
.sidebar>a:hover .v4036-nav-icon{color:#c9ffec!important;background:rgba(96,240,191,.10)!important}
.sidebar>a.v4028-active .v4036-nav-icon,.sidebar>a.active .v4036-nav-icon{
  color:#fff!important;background:rgba(255,255,255,.13)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important;
}

/* Remove the V40.35 generated brand if stale markup somehow remains. */
#v4035-sidebar-brand{display:none!important}

/* Bottom car + profile area */
#v4036-sidebar-bottom{
  margin-top:13px!important;
  padding:0 2px 4px!important;
  position:relative!important;
}
.v4036-car-art{
  height:86px!important;
  margin:0 -2px 5px!important;
  overflow:hidden!important;
  position:relative!important;
  border-radius:12px 12px 4px 4px!important;
  background:
    radial-gradient(circle at 60% 88%,rgba(27,218,154,.12),transparent 38%),
    linear-gradient(180deg,rgba(1,26,22,0),rgba(1,18,16,.44))!important;
  border-bottom:1px solid rgba(97,240,190,.11)!important;
}
.v4036-car-art:before{
  content:""!important;position:absolute!important;inset:0!important;pointer-events:none!important;
  background:linear-gradient(115deg,transparent 0 32%,rgba(33,255,178,.08) 45%,transparent 62%)!important;
}
.v4036-car-art svg{
  width:100%!important;height:100%!important;display:block!important;
  transform:translateY(4px) scale(1.03)!important;
  transform-origin:center bottom!important;
}
.v4036-profile-card{
  display:flex!important;align-items:center!important;gap:8px!important;
  min-height:48px!important;padding:7px 7px!important;border-radius:11px!important;
  background:
    linear-gradient(100deg,rgba(8,57,48,.90),rgba(4,35,31,.94))!important;
  border:1px solid rgba(113,244,199,.17)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 7px 16px rgba(0,0,0,.15)!important;
}
.v4036-profile-avatar{
  width:34px!important;height:34px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
  flex:0 0 34px!important;
  color:#fff!important;font-size:10px!important;font-weight:950!important;letter-spacing:.025em!important;
  background:linear-gradient(145deg,#16d792,#079165)!important;
  box-shadow:0 0 0 3px rgba(104,248,196,.08)!important;
}
.v4036-profile-copy{
  min-width:0!important;flex:1 1 auto!important;line-height:1.1!important;
}
.v4036-profile-copy b{
  display:block!important;color:#fff!important;font-size:10px!important;font-weight:900!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
.v4036-profile-copy small{
  display:block!important;color:#96c3b5!important;font-size:8px!important;margin-top:3px!important;
  text-transform:capitalize!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
.v4036-profile-logout{
  flex:0 0 auto!important;
  padding:7px 8px!important;border-radius:8px!important;
  color:#effff9!important;text-decoration:none!important;font-size:8.5px!important;font-weight:850!important;
  background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.09)!important;
}
.v4036-profile-logout:hover{
  background:rgba(19,196,137,.18)!important;border-color:rgba(99,243,194,.20)!important;
}

/* Working Date remains the one functional control at top-right.
   Slightly stronger placement after the profile source is removed. */
#v4035-working-date-top{
  margin-left:auto!important;
  margin-right:4px!important;
}

/* Sidebar utilities stay above the decorative bottom area. */
.sidebar .screen-zoom,.sidebar [class*="zoom"]{
  margin-bottom:0!important;
}

@media(max-width:1180px){
  #v4036-sidebar-brand .v4036-brand-copy small{display:none!important}
  #v4036-sidebar-brand .v4036-brand-copy b{font-size:11.5px!important}
  .v4036-car-art{height:74px!important}
}


/* ========================================================================
   V40.37 — DESIGN 4 REFERENCE PROPORTIONS
   Fixes the 80% Screen Zoom compression visible in the real CRM screenshot.
   Core compact layout uses 168px sidebar; at 80% zoom that becomes ~134px.
   V40.37 uses 250px desktop base width => ~200px at 80% zoom.
   ======================================================================== */

@media(min-width:801px){
  .layout{
    grid-template-columns:250px minmax(0,1fr)!important;
  }
  .sidebar,aside.sidebar,.layout>aside{
    width:auto!important;
    min-width:250px!important;
    min-height:calc(100vh - 40px)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding:9px 9px 10px!important;
  }

  /* Navigation readable at 80% without becoming oversized at 100%. */
  .sidebar>a,aside.sidebar>a{
    min-height:35px!important;
    padding:6px 9px!important;
    margin:2px 1px!important;
    font-size:11.5px!important;
    line-height:1.14!important;
    flex:0 0 auto!important;
  }
  .v4036-nav-icon{
    width:24px!important;height:24px!important;flex-basis:24px!important;
  }
  .v4036-nav-icon svg{width:16px!important;height:16px!important}

  /* Reference-size top branding. */
  #v4036-sidebar-brand{
    min-height:76px!important;
    padding:10px 10px 12px!important;
    margin:0 0 10px!important;
    gap:12px!important;
    flex:0 0 auto!important;
    border-radius:13px 13px 7px 7px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark{
    width:58px!important;height:58px!important;flex-basis:58px!important;border-radius:16px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark img{
    width:50px!important;height:50px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark svg{
    width:48px!important;height:48px!important;
  }
  #v4036-sidebar-brand .v4036-brand-copy b{
    font-size:14px!important;line-height:1.12!important;
  }
  #v4036-sidebar-brand .v4036-brand-copy small{
    display:block!important;font-size:9.5px!important;margin-top:4px!important;
  }
  #v4036-sidebar-brand .v4036-brand-menu{
    font-size:20px!important;
  }

  /* Utilities remain compact and leave room for the premium bottom block. */
  .sidebar .screen-zoom,.sidebar [class*="zoom"]{
    flex:0 0 auto!important;
    margin:10px 1px 0!important;
    padding:9px!important;
  }
  .sidebar-version{
    flex:0 0 auto!important;
    margin-top:7px!important;
    padding:6px 8px!important;
    font-size:8px!important;
    opacity:.30!important;
  }

  /* Push the reference car/profile section to the visual bottom of the sidebar. */
  #v4036-sidebar-bottom{
    margin-top:auto!important;
    padding:8px 1px 2px!important;
    flex:0 0 auto!important;
  }
  .v4036-car-art{
    height:126px!important;
    margin:0 -3px 7px!important;
    border-radius:14px 14px 5px 5px!important;
  }
  .v4036-car-art svg{
    transform:translateY(3px) scale(1.08)!important;
  }
  .v4036-profile-card{
    min-height:60px!important;
    padding:8px 9px!important;
    gap:9px!important;
    border-radius:12px!important;
  }
  .v4036-profile-avatar{
    width:40px!important;height:40px!important;flex-basis:40px!important;font-size:11px!important;
  }
  .v4036-profile-copy b{font-size:11.5px!important}
  .v4036-profile-copy small{font-size:8.8px!important}
  .v4036-profile-logout{
    padding:8px 10px!important;font-size:9.5px!important;border-radius:8px!important;
  }
}

/* Deterministic top-right header controls.
   Search + View Date + Working Date always stay together at the right. */
.topbar,header.topbar,body>header{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  min-height:58px!important;
  padding:7px 10px!important;
}
#v4037-header-right{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  min-width:0!important;
  flex:0 1 auto!important;
}
#v4037-header-right .v4037-header-search{
  width:min(470px,32vw)!important;
  min-width:310px!important;
  margin:0!important;
  flex:0 1 470px!important;
}
#v4037-header-right .v4037-header-search input{
  margin:0!important;
}
#v4037-header-right #jamal-v6-view-date.v4028-view-date{
  min-width:220px!important;
  max-width:240px!important;
  margin:0!important;
  flex:0 0 auto!important;
}
#v4037-header-right #v4035-working-date-top{
  margin:0!important;
  flex:0 0 auto!important;
}
#v4037-header-right #v4035-working-date-top summary{
  min-width:158px!important;
}

/* Never allow Working Date to float in the middle of the header. */
#v4035-working-date-top{
  margin-left:0!important;
  margin-right:0!important;
}

@media(max-width:1250px) and (min-width:801px){
  .layout{grid-template-columns:235px minmax(0,1fr)!important}
  .sidebar,aside.sidebar,.layout>aside{min-width:235px!important}
  #v4037-header-right .v4037-header-search{width:340px!important;min-width:260px!important}
  #v4037-header-right #jamal-v6-view-date.v4028-view-date{min-width:205px!important;max-width:220px!important}
  #v4036-sidebar-brand .v4036-brand-copy b{font-size:13px!important}
}

@media(max-width:800px){
  /* Preserve existing compact/mobile behavior. */
  .layout{grid-template-columns:1fr!important}
}


/* ========================================================================
   V40.38 — FIXED BRAND / SCROLLABLE MENU / FIXED CAR-PROFILE FOOTER
   Reference-matching structural sidebar.
   ======================================================================== */

@media(min-width:801px){
  .sidebar,aside.sidebar,.layout>aside{
    height:calc(100vh - 58px)!important;
    min-height:0!important;
    max-height:calc(100vh - 58px)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }

  #v4036-sidebar-brand{
    flex:0 0 auto!important;
    min-height:88px!important;
    padding:12px 10px 13px!important;
    margin:0 0 7px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark{
    width:68px!important;height:68px!important;flex-basis:68px!important;
    border-radius:18px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark img{
    width:60px!important;height:60px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark svg{
    width:57px!important;height:57px!important;
  }
  #v4036-sidebar-brand .v4036-brand-copy b{
    font-size:15.5px!important;
  }
  #v4036-sidebar-brand .v4036-brand-copy small{
    font-size:10px!important;
    margin-top:5px!important;
  }

  #v4038-nav-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:1px 1px 7px!important;
    scrollbar-width:thin!important;
    scrollbar-color:rgba(70,220,165,.34) transparent!important;
  }
  #v4038-nav-scroll::-webkit-scrollbar{width:5px!important}
  #v4038-nav-scroll::-webkit-scrollbar-track{background:transparent!important}
  #v4038-nav-scroll::-webkit-scrollbar-thumb{
    background:rgba(70,220,165,.28)!important;
    border-radius:999px!important;
  }

  #v4038-nav-scroll>a{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:34px!important;
    margin:2px 0!important;
    padding:6px 9px!important;
    border-radius:9px!important;
    color:#e9f8f3!important;
    text-decoration:none!important;
    font-size:11.5px!important;
    font-weight:760!important;
    gap:8px!important;
    transition:background .14s ease,border-color .14s ease,box-shadow .14s ease!important;
  }
  #v4038-nav-scroll>a:hover{
    background:linear-gradient(90deg,rgba(15,126,92,.46),rgba(15,126,92,.14))!important;
    box-shadow:inset 3px 0 0 rgba(97,241,191,.55)!important;
  }
  #v4038-nav-scroll>a.v4028-active,
  #v4038-nav-scroll>a.active,
  #v4038-nav-scroll>a[aria-current="page"]{
    background:linear-gradient(100deg,#0fba80 0%,#079267 58%,#087956 100%)!important;
    border-color:rgba(155,255,220,.30)!important;
    color:#fff!important;
    box-shadow:0 7px 15px rgba(0,130,91,.23),inset 0 1px 0 rgba(255,255,255,.16)!important;
  }

  /* Utility blocks live inside the scrollable middle, not below the footer. */
  #v4038-nav-scroll .screen-zoom,
  #v4038-nav-scroll [class*="zoom"]{
    margin:10px 0 5px!important;
  }
  #v4038-nav-scroll .sidebar-version{
    margin:6px 0!important;
    padding:6px 8px!important;
    opacity:.30!important;
  }

  #v4036-sidebar-bottom{
    flex:0 0 auto!important;
    margin:7px 0 0!important;
    padding:0 0 2px!important;
    background:
      linear-gradient(180deg,rgba(4,27,23,.12),rgba(2,18,16,.96))!important;
    border-top:1px solid rgba(99,235,190,.10)!important;
  }
  .v4036-car-art{
    height:118px!important;
    margin:0 -2px 7px!important;
    overflow:visible!important;
  }
  .v4036-car-art svg{
    transform:translateY(0) scale(1.10)!important;
  }
  .v4036-profile-card{
    min-height:62px!important;
    margin:0!important;
    padding:9px 9px!important;
  }
}

/* At 80% CRM zoom this still visually approximates the selected Design 4 reference. */
@media(min-width:801px) and (max-height:850px){
  #v4036-sidebar-brand{
    min-height:76px!important;
    padding:9px 9px 10px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark{
    width:58px!important;height:58px!important;flex-basis:58px!important;
  }
  #v4036-sidebar-brand .v4036-brand-mark img{width:51px!important;height:51px!important}
  #v4036-sidebar-brand .v4036-brand-mark svg{width:49px!important;height:49px!important}
  #v4036-sidebar-brand .v4036-brand-copy b{font-size:14px!important}
  .v4036-car-art{height:96px!important}
  .v4036-profile-card{min-height:54px!important;padding:7px 8px!important}
}

/* Mobile stays on existing compact responsive behavior. */
@media(max-width:800px){
  #v4038-nav-scroll{display:contents!important}
}


/* ========================================================================
   V40.39 — FIXED SIDEBAR SCREEN ZOOM
   Always visible between the scrollable menu and car/profile footer.
   ======================================================================== */

#v4039-sidebar-zoom{
  flex:0 0 auto!important;
  margin:7px 1px 5px!important;
  padding:8px 8px 7px!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(8,65,53,.88),rgba(4,38,33,.94))!important;
  border:1px solid rgba(111,242,198,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
#v4039-sidebar-zoom .v4039-zoom-title{
  margin:0 0 6px!important;
  color:#dffff4!important;
  font-size:9.5px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
#v4039-sidebar-zoom .crm-zoom-controls{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 34px!important;
  grid-template-areas:
    "minus level plus"
    "slider slider slider"!important;
  align-items:center!important;
  gap:6px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  z-index:auto!important;
}
#v4039-sidebar-zoom #crmZoomOut{grid-area:minus!important}
#v4039-sidebar-zoom #crmZoomReset{grid-area:level!important}
#v4039-sidebar-zoom #crmZoomIn{grid-area:plus!important}
#v4039-sidebar-zoom #crmZoomSlider{grid-area:slider!important}

#v4039-sidebar-zoom .crm-zoom-btn,
#v4039-sidebar-zoom .crm-zoom-level{
  min-width:0!important;
  width:100%!important;
  height:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  border-radius:7px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:28px!important;
  text-align:center!important;
}
#v4039-sidebar-zoom .crm-zoom-level{
  background:rgba(8,149,104,.20)!important;
  color:#dffff2!important;
}
#v4039-sidebar-zoom .crm-zoom-btn:hover,
#v4039-sidebar-zoom .crm-zoom-level:hover{
  background:rgba(17,190,132,.24)!important;
  border-color:rgba(107,246,198,.22)!important;
}
#v4039-sidebar-zoom .crm-zoom-slider{
  width:100%!important;
  height:4px!important;
  min-height:4px!important;
  margin:1px 0 0!important;
  padding:0!important;
  accent-color:#14c98b!important;
  cursor:pointer!important;
}

@media(max-height:850px) and (min-width:801px){
  #v4039-sidebar-zoom{
    margin-top:5px!important;
    padding:6px 7px!important;
  }
  #v4039-sidebar-zoom .v4039-zoom-title{
    margin-bottom:4px!important;
    font-size:9px!important;
  }
  #v4039-sidebar-zoom .crm-zoom-btn,
  #v4039-sidebar-zoom .crm-zoom-level{
    height:25px!important;
    min-height:25px!important;
    line-height:25px!important;
  }
}


/* ========================================================================
   V40.40 — FULL-HEIGHT SIDEBAR COLUMN + ALIGNMENT + PREMIUM CAR
   ======================================================================== */

/* The visual sidebar column and its border now continue for the entire page,
   even when the right-side content is taller than the viewport sidebar UI. */
@media(min-width:801px){
  .layout{
    position:relative!important;
    isolation:isolate!important;
    background:
      linear-gradient(
        90deg,
        #071b19 0,
        #08241f 250px,
        var(--crm-page-bg,#edf5f1) 250px,
        var(--crm-page-bg,#edf5f1) 100%
      )!important;
  }
  .layout::after{
    content:""!important;
    position:absolute!important;
    z-index:2!important;
    top:0!important;
    bottom:0!important;
    left:249px!important;
    width:1px!important;
    background:linear-gradient(
      180deg,
      rgba(112,245,198,.34),
      rgba(41,170,128,.20) 60%,
      rgba(16,93,72,.28)
    )!important;
    box-shadow:1px 0 0 rgba(255,255,255,.03)!important;
    pointer-events:none!important;
  }
  .sidebar,aside.sidebar,.layout>aside{
    z-index:3!important;
    align-self:start!important;
    border-right:0!important;
  }
  .content{
    position:relative!important;
    z-index:1!important;
    background:var(--crm-page-bg,#edf5f1)!important;
  }
}

/* Every navigation row follows the same icon -> label alignment.
   Fixes the rows that were drifting to the right in the real screenshot. */
#v4038-nav-scroll > a.v4040-nav-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:left!important;
  direction:ltr!important;
  gap:8px!important;
  padding-left:9px!important;
  padding-right:9px!important;
}
#v4038-nav-scroll > a.v4040-nav-row > *{
  text-align:left!important;
}
#v4038-nav-scroll > a.v4040-nav-row .v4036-nav-icon{
  margin-left:0!important;
  margin-right:0!important;
  flex:0 0 24px!important;
}
#v4038-nav-scroll > a.v4040-nav-row .badge,
#v4038-nav-scroll > a.v4040-nav-row [class*="badge"],
#v4038-nav-scroll > a.v4040-nav-row [class*="count"]{
  margin-left:auto!important;
}

/* Premium photo-like car asset, blended into the emerald footer. */
.v4036-car-art{
  position:relative!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 56% 84%,rgba(27,218,154,.13),transparent 42%),
    linear-gradient(180deg,rgba(2,31,26,.05),rgba(2,19,17,.84))!important;
}
.v4036-car-art::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:
    linear-gradient(180deg,rgba(7,30,26,.24) 0%,transparent 20%,transparent 78%,rgba(3,19,17,.40) 100%),
    linear-gradient(90deg,rgba(5,25,22,.28),transparent 18%,transparent 82%,rgba(5,25,22,.25))!important;
}
.v4036-car-art .v4040-premium-car{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 58%!important;
  display:block!important;
  filter:saturate(1.08) contrast(1.04) brightness(.94)!important;
  transform:scale(1.04)!important;
  transform-origin:center center!important;
}

/* Improve top brand readability without changing the selected Design 4 style. */
#v4036-sidebar-brand .v4036-brand-copy{
  overflow:visible!important;
}
#v4036-sidebar-brand .v4036-brand-copy b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.08!important;
}
#v4036-sidebar-brand .v4036-brand-menu{
  margin-left:auto!important;
  flex:0 0 auto!important;
}

/* Match the V40.37 narrower fallback while keeping the full-height column line aligned. */
@media(max-width:1250px) and (min-width:801px){
  .layout{
    background:
      linear-gradient(
        90deg,
        #071b19 0,
        #08241f 235px,
        var(--crm-page-bg,#edf5f1) 235px,
        var(--crm-page-bg,#edf5f1) 100%
      )!important;
  }
  .layout::after{left:234px!important}
}


/* ========================================================================
   V40.41 — FINAL APPROVED DESIGN-4 REFERENCE POLISH
   ======================================================================== */

#v4036-sidebar-brand.v4041-brand-final{
  min-height:92px!important;
  padding:12px 11px!important;
  gap:12px!important;
}
#v4036-sidebar-brand.v4041-brand-final .v4036-brand-mark{
  width:64px!important;height:64px!important;flex-basis:64px!important;
}
#v4036-sidebar-brand.v4041-brand-final .v4036-brand-mark img{
  width:56px!important;height:56px!important;
}
#v4036-sidebar-brand.v4041-brand-final .v4036-brand-copy{
  display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;
}
#v4036-sidebar-brand.v4041-brand-final .v4036-brand-copy b{
  font-size:15px!important;font-weight:950!important;line-height:1.05!important;
  white-space:normal!important;max-width:118px!important;margin:0!important;
}
#v4036-sidebar-brand.v4041-brand-final .v4036-brand-copy small{
  font-size:9.5px!important;line-height:1.1!important;margin-top:5px!important;color:#a8d4c5!important;
}
#v4036-sidebar-brand.v4041-brand-final .v4036-brand-menu{
  align-self:center!important;font-size:18px!important;opacity:.9!important;
}

/* Approved Zoom layout */
#v4039-sidebar-zoom{
  margin:8px 4px 7px!important;
  padding:10px 11px 9px!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,rgba(6,49,42,.93),rgba(3,31,27,.96))!important;
  border:1px solid rgba(109,244,198,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 18px rgba(0,0,0,.10)!important;
}
#v4039-sidebar-zoom .v4039-zoom-title{
  margin:0 0 8px!important;font-size:10px!important;font-weight:900!important;color:#f2fff9!important;
}
#v4039-sidebar-zoom .crm-zoom-controls{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 40px!important;
  grid-template-areas:"minus level plus" "slider slider slider"!important;
  gap:8px!important;width:100%!important;position:static!important;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#v4039-sidebar-zoom #crmZoomOut{grid-area:minus!important}
#v4039-sidebar-zoom #crmZoomReset{grid-area:level!important}
#v4039-sidebar-zoom #crmZoomIn{grid-area:plus!important}
#v4039-sidebar-zoom #crmZoomSlider{grid-area:slider!important}
#v4039-sidebar-zoom .crm-zoom-btn,
#v4039-sidebar-zoom .crm-zoom-level{
  height:31px!important;min-height:31px!important;padding:0!important;margin:0!important;
  border-radius:7px!important;font-size:11px!important;font-weight:950!important;line-height:31px!important;
  background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.10)!important;color:#fff!important;
}
#v4039-sidebar-zoom .crm-zoom-level{
  background:rgba(12,102,76,.30)!important;border-color:rgba(110,244,198,.18)!important;color:#e8fff6!important;
}
#v4039-sidebar-zoom .crm-zoom-slider{
  width:100%!important;height:5px!important;min-height:5px!important;margin:1px 0 2px!important;padding:0!important;
  accent-color:#16d392!important;
}
#v4039-sidebar-zoom .v4041-reset-zoom{
  display:block!important;width:112px!important;min-height:28px!important;margin:8px auto 0!important;
  padding:5px 10px!important;border-radius:7px!important;border:1px solid rgba(112,241,197,.17)!important;
  background:rgba(255,255,255,.055)!important;color:#effff8!important;font-size:9.5px!important;font-weight:900!important;
}
#v4039-sidebar-zoom .v4041-reset-zoom:hover{
  background:rgba(18,177,126,.18)!important;
}

/* Approved reference car crop */
.v4036-car-art{
  height:118px!important;margin:0 -1px 7px!important;border-radius:13px!important;overflow:hidden!important;
  background:radial-gradient(circle at 55% 82%,rgba(27,218,154,.15),transparent 45%),
             linear-gradient(180deg,rgba(2,31,26,.08),rgba(2,19,17,.85))!important;
}
.v4036-car-art .v4040-premium-car{
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 50%!important;
  transform:scale(1)!important;filter:saturate(1.03) contrast(1.02) brightness(.96)!important;
}
.v4036-car-art::after{
  background:linear-gradient(180deg,rgba(5,24,21,.16),transparent 18%,transparent 80%,rgba(3,18,16,.32)),
             linear-gradient(90deg,rgba(5,25,22,.18),transparent 15%,transparent 85%,rgba(5,25,22,.16))!important;
}

.v4036-profile-card{
  min-height:58px!important;padding:8px 9px!important;border-radius:11px!important;
}
.v4036-profile-avatar{
  width:39px!important;height:39px!important;flex-basis:39px!important;
}
.v4036-profile-copy b{font-size:11px!important}
.v4036-profile-logout{padding:7px 9px!important}

@media(min-width:801px){
  .layout::after{opacity:1!important}
}


/* ========================================================================
   V40.42 — FINAL ZOOM + FULL-CAR FIX
   ======================================================================== */

/* Hide any legacy stray labels inside the zoom utility. */
#v4039-sidebar-zoom .v4041-reset-zoom{display:none!important}
#v4039-sidebar-zoom .v4039-zoom-host{
  display:block!important;
  width:100%!important;
}
#v4039-sidebar-zoom .crm-zoom-controls{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 40px!important;
  grid-template-areas:
    "minus level plus"
    "slider slider slider"!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
#v4039-sidebar-zoom #crmZoomOut{grid-area:minus!important}
#v4039-sidebar-zoom #crmZoomReset{grid-area:level!important}
#v4039-sidebar-zoom #crmZoomIn{grid-area:plus!important}
#v4039-sidebar-zoom #crmZoomSlider{grid-area:slider!important}

#v4039-sidebar-zoom #crmZoomOut,
#v4039-sidebar-zoom #crmZoomIn{
  width:40px!important;
  min-width:40px!important;
  height:31px!important;
  min-height:31px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  font-size:13px!important;
  line-height:1!important;
  border-radius:7px!important;
}
#v4039-sidebar-zoom #crmZoomReset{
  width:100%!important;
  min-width:0!important;
  height:31px!important;
  min-height:31px!important;
  margin:0!important;
  padding:0 8px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:7px!important;
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#v4039-sidebar-zoom #crmZoomSlider{
  width:100%!important;
  margin:1px 0 2px!important;
  padding:0!important;
  min-height:5px!important;
  height:5px!important;
}
#v4039-sidebar-zoom .v4042-reset-zoom{
  display:block!important;
  width:112px!important;
  min-height:28px!important;
  margin:8px auto 0!important;
  padding:5px 10px!important;
  border-radius:7px!important;
  border:1px solid rgba(112,241,197,.17)!important;
  background:rgba(255,255,255,.055)!important;
  color:#effff8!important;
  font-size:9.5px!important;
  font-weight:900!important;
  line-height:1.1!important;
  text-align:center!important;
}
#v4039-sidebar-zoom .v4042-reset-zoom:hover{
  background:rgba(18,177,126,.18)!important;
}

/* Full car must remain visible — no side crop. */
.v4036-car-art{
  height:112px!important;
  padding:3px 3px 2px!important;
  background:
    radial-gradient(circle at 52% 80%,rgba(27,218,154,.16),transparent 47%),
    linear-gradient(180deg,#06231e 0%,#031815 100%)!important;
}
.v4036-car-art .v4040-premium-car{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:none!important;
  filter:saturate(1.04) contrast(1.03) brightness(.98)!important;
}
.v4036-car-art::after{
  background:
    linear-gradient(180deg,rgba(5,24,21,.12),transparent 22%,transparent 83%,rgba(3,18,16,.26))!important;
}

/* Final brand spacing — keep title readable without squeezing. */
#v4036-sidebar-brand.v4042-brand-final .v4036-brand-copy b{
  max-width:128px!important;
  font-size:14.5px!important;
  line-height:1.06!important;
}
#v4036-sidebar-brand.v4042-brand-final .v4036-brand-copy small{
  font-size:9.2px!important;
}


/* ========================================================================
   V40.43 — CLEAN DEDICATED ZOOM + FULL APPROVED CAR
   ======================================================================== */

.v4043-native-zoom-hidden{display:none!important}

#v4043-sidebar-zoom{
  flex:0 0 auto!important;
  margin:8px 4px 7px!important;
  padding:10px 11px 9px!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,rgba(6,49,42,.94),rgba(3,31,27,.97))!important;
  border:1px solid rgba(109,244,198,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 18px rgba(0,0,0,.10)!important;
}
#v4043-sidebar-zoom .v4043-zoom-title{
  margin:0 0 8px!important;
  color:#f2fff9!important;
  font-size:10px!important;
  font-weight:900!important;
}
#v4043-sidebar-zoom .v4043-zoom-row{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 40px!important;
  gap:8px!important;
  align-items:center!important;
}
#v4043-sidebar-zoom .v4043-zoom-minus,
#v4043-sidebar-zoom .v4043-zoom-plus,
#v4043-sidebar-zoom .v4043-zoom-percent{
  height:31px!important;
  min-height:31px!important;
  margin:0!important;
  padding:0!important;
  border-radius:7px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.065)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
}
#v4043-sidebar-zoom .v4043-zoom-percent{
  background:rgba(12,102,76,.30)!important;
  border-color:rgba(110,244,198,.18)!important;
  color:#e8fff6!important;
}
#v4043-sidebar-zoom .v4043-zoom-minus:hover,
#v4043-sidebar-zoom .v4043-zoom-plus:hover,
#v4043-sidebar-zoom .v4043-zoom-percent:hover,
#v4043-sidebar-zoom .v4043-reset-zoom:hover{
  background:rgba(18,177,126,.18)!important;
}
#v4043-sidebar-zoom .v4043-zoom-slider{
  display:block!important;
  width:100%!important;
  min-height:5px!important;
  height:5px!important;
  margin:9px 0 3px!important;
  padding:0!important;
  accent-color:#16d392!important;
  cursor:pointer!important;
}
#v4043-sidebar-zoom .v4043-reset-zoom{
  display:block!important;
  width:112px!important;
  min-height:28px!important;
  margin:8px auto 0!important;
  padding:5px 10px!important;
  border-radius:7px!important;
  border:1px solid rgba(112,241,197,.17)!important;
  background:rgba(255,255,255,.055)!important;
  color:#effff8!important;
  font-size:9.5px!important;
  font-weight:900!important;
  line-height:1.1!important;
  text-align:center!important;
}

/* Full approved car: no inherited crop/absolute positioning. */
.v4036-car-art{
  height:112px!important;
  padding:3px 3px 2px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 52% 80%,rgba(27,218,154,.16),transparent 47%),
    linear-gradient(180deg,#06231e 0%,#031815 100%)!important;
}
.v4036-car-art .v4043-full-car{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:none!important;
  filter:saturate(1.04) contrast(1.03) brightness(.98)!important;
}
.v4036-car-art::after{
  background:linear-gradient(180deg,rgba(5,24,21,.10),transparent 20%,transparent 84%,rgba(3,18,16,.24))!important;
}
