:root{
  --deep:#08251f; --deep2:#123b32; --turf:#3fae2a; --lime:#72d84b;
  --gold:#bfa56a; --bg:#f6f8f5; --card:#ffffff; --text:#14211d; --muted:#66746e;
  --line:#dfe8dd; --danger:#b33a3a; --amber:#b7791f; --blue:#2765a8;
  --shadow:0 10px 28px rgba(8,37,31,.08);
  --headerText:#ffffff;
}
body.dark{
  --bg:#071512; --card:#0f241f; --text:#edf6f0; --muted:#aebdb5; --line:#23443b;
  --shadow:0 16px 40px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  display:flex;
  min-height:100vh;
}

/* Premium branded login with robotic mower/turf background */
.loginScreen{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:hidden;
  background:
    linear-gradient(115deg,rgba(3,18,14,.90) 0%,rgba(8,37,31,.76) 40%,rgba(8,37,31,.28) 100%),
    url("./login-bg.jpg") center/cover no-repeat;
}
.loginScreen:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 75% 65%,rgba(114,216,75,.20),transparent 24%),
    linear-gradient(180deg,transparent,rgba(0,0,0,.28));
  pointer-events:none;
}
.loginCard{
  position:relative;
  z-index:2;
  width:min(430px,100%);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  border-radius:26px;
  padding:36px;
  box-shadow:0 36px 100px rgba(0,0,0,.42);
  text-align:center;
  border:1px solid rgba(255,255,255,.55);
}
.loginLogo{height:92px;max-width:245px;object-fit:contain;margin-bottom:12px}
.loginCard h1{margin:0;color:var(--deep)}
.loginCard p{margin:6px 0 20px;color:#607068}
.loginCard label{text-align:left;display:block;margin:12px 0;color:#14211d}
.loginCard small{display:block;margin-top:14px;color:#607068}
.wide{width:100%;margin-top:10px}

.sidebar{
  width:290px;
  background:#fff;
  color:var(--deep);
  padding:16px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  border-right:1px solid var(--line);
  box-shadow:4px 0 22px rgba(8,37,31,.04);
}
body.dark .sidebar{background:#081a16;color:#edf6f0}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:18px;
  padding:13px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--deep),var(--deep2));
  color:white;
}
.brand img{width:74px;height:48px;object-fit:contain;background:white;border-radius:10px;padding:4px}
.brand strong{display:block;font-size:17px}.brand span{font-size:12px;color:#cfe0d6}
.nav{
  width:100%;
  text-align:left;
  padding:11px 13px;
  margin:3px 0;
  border:0;
  border-radius:11px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-weight:850;
}
.nav:hover,.nav.active{
  background:linear-gradient(90deg,rgba(63,174,42,.16),rgba(63,174,42,.04));
  color:var(--deep);
  box-shadow:inset 4px 0 0 var(--turf);
}
body.dark .nav:hover,body.dark .nav.active{color:white;background:rgba(63,174,42,.15)}
.sidebar-foot{margin-top:22px;display:grid;gap:8px}
.sidebar-foot button,.importBtn{
  font-size:13px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--text);
  cursor:pointer;
  text-align:center
}
.importBtn input{display:none}

.main{flex:1;padding:24px;overflow:auto}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  background:linear-gradient(135deg,var(--deep),var(--deep2));
  color:white;
  border-radius:20px;
  padding:21px 24px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.08);
}
h1{margin:0;color:inherit;font-size:30px}
.topbar p{margin:6px 0 0;color:#d6e5dc}
button{font-family:inherit}
.primary,.ghost,.danger,.mini,.themeToggle{
  border-radius:10px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
}
.primary{border:0;background:linear-gradient(135deg,var(--turf),var(--lime));color:white;box-shadow:0 8px 20px rgba(63,174,42,.22)}
.ghost{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);color:white}
.panel .ghost,.invoiceBox .ghost, dialog .ghost{background:white;border:1px solid var(--deep);color:var(--deep)}
body.dark .panel .ghost,body.dark .invoiceBox .ghost, body.dark dialog .ghost{background:#132b25;color:white;border-color:#376154}
.danger{background:#fff0f0;color:var(--danger);border:1px solid #ffd0d0}
.mini{padding:6px 9px;font-size:12px;background:#f7faf6;border:1px solid var(--line);color:var(--text)}
body.dark .mini{background:#132b25}
.themeToggle{background:white;color:var(--deep);border:0;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.page{display:none}.page.active{display:block}
.grid{display:grid;gap:18px}.cards{grid-template-columns:repeat(4,minmax(150px,1fr))}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
}
.card.dark{background:linear-gradient(135deg,var(--deep),var(--deep2));color:white}
.card.green{background:linear-gradient(135deg,var(--turf),#2e8f20);color:white}
.card.gold{background:linear-gradient(135deg,var(--gold),#967c3f);color:white}
.kpi{font-size:31px;font-weight:950}
.label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.dark .label,.green .label,.gold .label{color:#f1f7ee}
.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
  margin-bottom:18px;
}
.panel h2{margin:0 0 14px;color:var(--text)}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
input,select,textarea{
  width:100%;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--text);
}
textarea{min-height:90px}
.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.twogrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
table{
  width:100%;
  border-collapse:collapse;
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
}
th,td{
  padding:10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px;
  vertical-align:top;
}
th{background:rgba(63,174,42,.08);color:var(--deep)}
body.dark th{color:white;background:rgba(63,174,42,.16)}
tr:hover td{background:rgba(63,174,42,.035)}
.badge{padding:5px 8px;border-radius:999px;font-size:12px;font-weight:950;display:inline-block}
.paid,.complete,.in-stock,.active,.accepted{background:#e7f7e3;color:#206d17}
.pending,.booked,.low,.sent,.draft{background:#fff4d8;color:#805300}
.overdue,.urgent,.out,.declined{background:#ffe5e5;color:#8a1d1d}
.converted{background:#e7f0ff;color:#174d91}
dialog{
  border:0;
  border-radius:20px;
  padding:0;
  max-width:1080px;
  width:calc(100% - 32px);
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  background:var(--card);
  color:var(--text);
}
dialog::backdrop{background:rgba(4,21,17,.55)}
#modalContent{padding:26px}
.x{float:right;border:0;background:#f2f2f2;border-radius:50%;width:30px;height:30px;cursor:pointer}
.lineTable input,.lineTable select{min-width:95px}
.invoiceBox{border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--card)}
.invoiceHead{display:flex;justify-content:space-between;gap:20px}
.invoiceHead img{max-width:170px}
.right{text-align:right}.muted{color:var(--muted)}
.scanBox{font-size:24px;padding:18px;border:3px solid var(--turf)}
.printLabel{border:2px dashed #333;width:260px;padding:16px;margin:10px;background:white;text-align:center;color:#111}
.printLabel .sku{font-size:22px;font-weight:950}.printLabel .barcode{font-family:monospace;letter-spacing:3px;font-size:20px}

@media print{
  body{display:block;background:white}
  .sidebar,.topbar,.toolbar,.noPrint{display:none!important}
  .main{padding:0}.page{display:block}.page:not(.printTarget){display:none!important}
  .invoiceBox{box-shadow:none;border:0}
}
@media(max-width:980px){
  body{display:block}.sidebar{width:100%;height:auto;position:relative}.main{padding:14px}
  .cards,.formgrid,.twogrid{grid-template-columns:1fr}.topbar{display:block}.top-actions{margin-top:12px}
}


/* VERSION 3.7 — horizontal Xero-style navigation + blurred login */
body{
  display:block !important;
}
.loginScreen{
  background:
    linear-gradient(115deg,rgba(3,18,14,.88) 0%,rgba(8,37,31,.70) 46%,rgba(8,37,31,.30) 100%),
    url("./login-bg.jpg") center/cover no-repeat !important;
}
.loginScreen:before{
  content:"";
  position:absolute;
  inset:-18px;
  background:inherit;
  filter:blur(5px);
  transform:scale(1.03);
  z-index:0;
}
.loginScreen:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.42));
  pointer-events:none;
  z-index:1;
}
.loginCard{position:relative;z-index:2}

.sidebar{
  width:100% !important;
  height:auto !important;
  position:sticky !important;
  top:0 !important;
  z-index:20;
  display:flex !important;
  align-items:center;
  gap:10px;
  overflow:visible !important;
  padding:10px 18px !important;
  background:#ffffff !important;
  border-right:0 !important;
  border-bottom:1px solid var(--line);
  box-shadow:0 6px 20px rgba(8,37,31,.07);
}
body.dark .sidebar{background:#081a16 !important}
.brand{
  margin:0 !important;
  min-width:250px;
  padding:9px 12px !important;
}
.nav{
  width:auto !important;
  white-space:nowrap;
  padding:10px 12px !important;
  margin:0 !important;
  font-size:13px;
}
.nav:hover,.nav.active{
  box-shadow:inset 0 -3px 0 var(--turf) !important;
  background:rgba(63,174,42,.10) !important;
}
.sidebar-foot{
  margin-top:0 !important;
  margin-left:auto;
  display:flex !important;
  gap:8px;
  align-items:center;
}
.sidebar-foot button,.importBtn{
  padding:8px 10px !important;
  white-space:nowrap;
}
.main{
  padding:22px !important;
}
.topbar{
  margin-top:0;
}
@media(max-width:1100px){
  .sidebar{align-items:flex-start;overflow:auto !important}
  .brand{min-width:210px}
  .sidebar-foot{width:100%;margin-left:0;flex-wrap:wrap}
}
.importMap{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.importPreview{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.good{color:#206d17;font-weight:900}
.warn{color:#805300;font-weight:900}


/* V4 SUPABASE CONNECTED — keeps dealer UI intact */
.cloudStatus{
  margin-top:6px!important;
  font-size:12px;
  color:#d6e5dc!important;
}
.cloudStatus.ok{color:#bff5b8!important}
.cloudStatus.warn{color:#ffe2a8!important}
.syncBadge{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#e7f7e3;
  color:#206d17;
}
.dealerNotice{
  border-left:5px solid var(--turf);
}


/* PROPER DEALER MANAGEMENT SYSTEM NAVIGATION */
.sidebar{
  width:320px!important;
  height:100vh!important;
  position:sticky!important;
  top:0!important;
  display:block!important;
  overflow:auto!important;
  padding:14px!important;
  background:#f7faf6!important;
  border-right:1px solid var(--line)!important;
  border-bottom:0!important;
  box-shadow:4px 0 22px rgba(8,37,31,.05)!important;
}
body.dark .sidebar{background:#081a16!important}
.brand{
  margin-bottom:14px!important;
  padding:12px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,var(--deep),var(--deep2))!important;
}
.dealerNav{display:grid;gap:8px}
.dealerNav > .nav{
  width:100%!important;
  text-align:left!important;
  padding:12px 14px!important;
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  color:var(--deep)!important;
  box-shadow:none!important;
}
body.dark .dealerNav > .nav{background:#10231e!important;color:#fff!important}
.dealerSection{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
body.dark .dealerSection{background:#10231e}
.sectionTitle{
  width:100%;
  text-align:left;
  padding:11px 13px;
  border:0;
  background:linear-gradient(90deg,rgba(8,37,31,.96),rgba(18,59,50,.92));
  color:white;
  font-weight:950;
  letter-spacing:.01em;
  cursor:pointer;
}
.sectionTitle:after{content:"›";float:right;opacity:.75}
.subNav{
  display:block;
  width:100%;
  text-align:left;
  padding:9px 16px 9px 24px;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  color:var(--text);
  font-weight:750;
  cursor:pointer;
  font-size:13px;
}
.subNav:hover,.subNav.active{
  background:rgba(63,174,42,.10);
  box-shadow:inset 4px 0 0 var(--turf);
  color:var(--deep);
}
body.dark .subNav{color:#edf6f0;border-top-color:#23443b}
body.dark .subNav:hover,body.dark .subNav.active{color:#fff;background:rgba(63,174,42,.15)}
.sidebar-foot{
  margin-top:14px!important;
  display:grid!important;
  gap:8px!important;
}
.main{
  margin-left:0!important;
  padding:22px!important;
}
body{
  display:flex!important;
}
.topbar{
  border-radius:16px!important;
}
.dealerHubGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:14px;
}
.dealerTile{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow:var(--shadow);
}
.dealerTile h3{margin:0 0 8px;color:var(--text)}
.dealerTile p{margin:0 0 12px;color:var(--muted)}
.dealerTile button{width:100%;margin-top:6px}
.partsCounterBox{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}
.counterSearch{
  font-size:20px;
  padding:16px;
  border:3px solid var(--turf);
}
.counterBasket{
  background:rgba(63,174,42,.06);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}
@media(max-width:1050px){
  body{display:block!important}
  .sidebar{width:100%!important;height:auto!important;position:relative!important}
  .dealerHubGrid,.partsCounterBox{grid-template-columns:1fr}
}


/* CLASSIC DEALER MANAGEMENT SYSTEM UI — compact, white, dense, operational */
:root{
  --deep:#0b332b;
  --deep2:#0f4538;
  --turf:#2f9d24;
  --line:#bfc8bf;
  --line2:#d8ded6;
  --bg:#ffffff;
  --panel:#ffffff;
  --head:#e7eee5;
  --tab:#eef3ec;
  --text:#111;
  --muted:#555;
  --bluebar:#dfe8dd;
  --warn:#fff4ce;
  --danger:#f9dddd;
}
*{box-sizing:border-box}
body{
  display:block!important;
  margin:0!important;
  background:#fff!important;
  color:var(--text)!important;
  font-family:Arial, Helvetica, sans-serif!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.legacyHidden{display:none!important}
.classicMasthead{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  border-bottom:1px solid #aeb9ad;
  padding:4px 8px;
}
.classicBrand{display:flex;align-items:center;gap:8px;min-width:260px}
.classicBrand img{height:38px;width:62px;object-fit:contain;border:1px solid #d7ded5;background:#fff;padding:2px}
.classicBrand strong{display:block;font-size:15px;color:#08251f;line-height:1.1}
.classicBrand span{display:block;font-size:11px;color:#4d5b52}
.classicStatus{display:flex;align-items:center;gap:5px}
.cloudStatus{font-size:11px!important;color:#4d5b52!important;margin-right:8px!important}
.classicSmallBtn,.classicStatus button,.themeToggle{
  height:24px!important;
  padding:3px 8px!important;
  border:1px solid #9aa99a!important;
  background:linear-gradient(#ffffff,#e9eee7)!important;
  color:#111!important;
  border-radius:2px!important;
  font-size:11px!important;
  font-weight:700!important;
  box-shadow:none!important;
  cursor:pointer;
}
.primaryMini,.classicSmallBtn.primaryMini{
  background:linear-gradient(#3dad31,#247f1d)!important;
  color:#fff!important;
  border-color:#247f1d!important;
}
.moduleBar{
  height:30px;
  display:flex;
  align-items:stretch;
  background:linear-gradient(#17483d,#08251f);
  border-bottom:1px solid #04130f;
  padding-left:4px;
  overflow-x:auto;
}
.moduleBtn{
  min-width:86px;
  padding:0 10px;
  border:0;
  border-right:1px solid rgba(255,255,255,.18);
  background:transparent;
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.moduleBtn:hover,.moduleBtn.active{
  background:linear-gradient(#3fae2a,#287d20);
}
.subTaskBar{
  min-height:30px;
  display:flex;
  align-items:center;
  gap:4px;
  background:#e9f0e6;
  border-bottom:1px solid #b8c4b6;
  padding:3px 6px;
  overflow-x:auto;
}
.subTaskBtn{
  height:23px;
  padding:2px 8px;
  border:1px solid #aab7a7;
  background:linear-gradient(#fff,#edf2eb);
  color:#111;
  border-radius:2px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}
.subTaskBtn:hover,.subTaskBtn.active{
  border-color:#2f9d24;
  background:#dff2dc;
}
.openTabs{
  height:27px;
  display:flex;
  align-items:end;
  background:#f5f6f4;
  border-bottom:1px solid #bfc8bf;
  padding:2px 6px 0;
  gap:2px;
  overflow-x:auto;
}
.openTab{
  height:24px;
  min-width:120px;
  max-width:180px;
  padding:3px 22px 3px 8px;
  border:1px solid #bfc8bf;
  border-bottom:0;
  background:#e9eee7;
  color:#111;
  font-size:11px;
  text-align:left;
  position:relative;
  cursor:pointer;
  border-radius:3px 3px 0 0;
}
.openTab.active{background:#fff;font-weight:700}
.openTab .closeTab{
  position:absolute;
  right:5px;
  top:3px;
  font-size:11px;
  color:#777;
}
.classicMain{
  padding:6px!important;
  height:calc(100vh - 135px);
  overflow:auto;
  background:#fff;
}
.page{display:none!important}
.page.active{display:block!important}
.panel{
  background:#fff!important;
  border:1px solid #bfc8bf!important;
  border-radius:0!important;
  padding:6px!important;
  margin:0 0 6px 0!important;
  box-shadow:none!important;
}
.panel h2{
  margin:-6px -6px 6px -6px!important;
  padding:4px 7px!important;
  font-size:12px!important;
  font-weight:700!important;
  color:#111!important;
  background:linear-gradient(#eef4ec,#dfe8dd)!important;
  border-bottom:1px solid #bfc8bf!important;
}
.panel h3{
  font-size:12px!important;
  margin:4px 0!important;
}
.muted,.panel p{
  font-size:11px!important;
  color:#555!important;
  margin:3px 0!important;
}
.grid,.cards,.twogrid,.dealerHubGrid,.partsCounterBox{
  display:grid!important;
  gap:6px!important;
}
.cards{grid-template-columns:repeat(4,1fr)!important}
.twogrid,.partsCounterBox{grid-template-columns:1fr 1fr!important}
.dealerHubGrid{grid-template-columns:repeat(4,minmax(160px,1fr))!important}
.card,.dealerTile,.integrationCard{
  background:#fff!important;
  border:1px solid #bfc8bf!important;
  border-radius:0!important;
  padding:6px!important;
  box-shadow:none!important;
  color:#111!important;
}
.card.dark,.card.green,.card.gold{
  background:#fff!important;
  color:#111!important;
}
.kpi{
  font-size:18px!important;
  font-weight:700!important;
  color:#08251f!important;
}
.label{
  font-size:10px!important;
  color:#555!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.dealerTile h3{
  font-size:12px!important;
  margin:0 0 4px!important;
  color:#08251f!important;
}
.dealerTile p{
  min-height:28px;
}
button.primary,.primary,button.ghost,.ghost,.danger,.mini{
  border-radius:2px!important;
  padding:3px 7px!important;
  font-size:11px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.primary{
  background:linear-gradient(#3dad31,#247f1d)!important;
  color:#fff!important;
  border:1px solid #247f1d!important;
}
.ghost{
  background:linear-gradient(#fff,#edf2eb)!important;
  color:#111!important;
  border:1px solid #aab7a7!important;
}
.danger{
  background:#f7e4e4!important;
  color:#8a1d1d!important;
  border:1px solid #d2a4a4!important;
}
.toolbar{
  display:flex!important;
  gap:4px!important;
  margin-bottom:5px!important;
  flex-wrap:wrap;
}
table{
  width:100%!important;
  border-collapse:collapse!important;
  background:#fff!important;
  border:1px solid #bfc8bf!important;
  border-radius:0!important;
  font-size:11px!important;
}
th,td{
  padding:3px 5px!important;
  border:1px solid #d5ddd3!important;
  font-size:11px!important;
  vertical-align:middle!important;
  line-height:1.2!important;
}
th{
  background:#dfe8dd!important;
  color:#111!important;
  font-weight:700!important;
}
tr:nth-child(even) td{background:#fbfcfb!important}
tr:hover td{background:#edf7ea!important}
input,select,textarea{
  border-radius:1px!important;
  border:1px solid #aab7a7!important;
  padding:3px 5px!important;
  font-size:11px!important;
  min-height:23px!important;
  background:#fff!important;
  color:#111!important;
}
textarea{min-height:60px!important}
.formgrid{
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  gap:5px!important;
}
label{font-size:11px!important;font-weight:700;color:#333}
.badge{
  padding:2px 5px!important;
  border-radius:2px!important;
  font-size:10px!important;
  font-weight:700!important;
}
.loginScreen{
  background:#0b332b!important;
}
.loginCard{
  border-radius:0!important;
  padding:20px!important;
  box-shadow:0 8px 30px rgba(0,0,0,.35)!important;
}
.loginCard h1{font-size:18px!important}
dialog{
  border-radius:0!important;
  border:1px solid #777!important;
  box-shadow:0 8px 40px rgba(0,0,0,.35)!important;
}
#modalContent{padding:8px!important}
.x{border-radius:0!important}
.counterSearch,.scanBox{
  font-size:14px!important;
  padding:7px!important;
  border:2px solid #2f9d24!important;
}
.counterBasket{
  background:#fff!important;
  border:1px solid #bfc8bf!important;
  border-radius:0!important;
  padding:6px!important;
}
.classicSplitter{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:6px;
}
.leftMenu{
  border:1px solid #bfc8bf;
  background:#f8faf7;
}
.leftMenuTitle{
  background:#dfe8dd;
  border-bottom:1px solid #bfc8bf;
  padding:4px 6px;
  font-weight:700;
}
.leftMenu button{
  display:block;
  width:100%;
  text-align:left;
  padding:5px 8px;
  border:0;
  border-bottom:1px solid #e1e7df;
  background:transparent;
  font-size:11px;
  cursor:pointer;
}
.leftMenu button:hover{background:#edf7ea}
@media(max-width:900px){
  .cards,.twogrid,.partsCounterBox,.dealerHubGrid,.formgrid,.classicSplitter{grid-template-columns:1fr!important}
  .classicMasthead{height:auto;display:block}
  .classicStatus{margin-top:4px;flex-wrap:wrap}
  .classicMain{height:auto}
}


/* V4.5 DEALER OPERATIONS MODULES */
.opsBar{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  padding:4px;
  border:1px solid #bfc8bf;
  background:#f4f7f2;
  margin-bottom:6px;
}
.opsBtn{
  height:23px;
  padding:2px 7px;
  border:1px solid #9aa99a;
  background:linear-gradient(#fff,#e9eee7);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.opsBtn.green{
  background:linear-gradient(#3dad31,#247f1d);
  color:#fff;
  border-color:#247f1d;
}
.dataSplit{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:6px;
}
.recordPane{
  border:1px solid #bfc8bf;
  background:#fff;
}
.recordPaneTitle{
  background:#dfe8dd;
  border-bottom:1px solid #bfc8bf;
  padding:4px 6px;
  font-weight:700;
}
.recordList button{
  display:block;
  width:100%;
  border:0;
  border-bottom:1px solid #e1e7df;
  background:#fff;
  text-align:left;
  padding:5px 6px;
  font-size:11px;
  cursor:pointer;
}
.recordList button:hover{background:#edf7ea}
.summaryStrip{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:4px;
  margin-bottom:6px;
}
.summaryCell{
  border:1px solid #bfc8bf;
  background:#fff;
  padding:5px;
}
.summaryCell b{
  display:block;
  font-size:14px;
  color:#08251f;
}
.jobCard{
  border:1px solid #777;
  background:#fff;
  padding:6px;
}
.jobCardHeader{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  border-bottom:1px solid #bfc8bf;
  padding-bottom:5px;
  margin-bottom:5px;
}
.signatureBox{
  height:70px;
  border:1px dashed #777;
  background:#fafafa;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
}
.robotStatus{
  font-weight:700;
  padding:2px 5px;
  border-radius:2px;
}
.robotStatus.active{background:#e7f7e3;color:#206d17}
.robotStatus.service{background:#fff4d8;color:#805300}
.robotStatus.warranty{background:#e7f0ff;color:#174d91}
.robotStatus.issue{background:#ffe5e5;color:#8a1d1d}
@media(max-width:900px){
  .dataSplit,.summaryStrip,.jobCardHeader{grid-template-columns:1fr}
}


/* V5 CORE CLOUD FEATURES */
.syncStatus{
  padding:2px 5px;
  border-radius:2px;
  font-size:10px;
  font-weight:700;
  display:inline-block;
}
.syncStatus.synced{background:#e7f7e3;color:#206d17}
.syncStatus.ready{background:#fff4d8;color:#805300}
.syncStatus.failed{background:#ffe5e5;color:#8a1d1d}
.roleGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.roleCard{border:1px solid #bfc8bf;background:#fff;padding:6px}
.roleCard h3{font-size:12px;margin:0 0 5px;color:#08251f}
.cloudPanel{border-left:4px solid #2f9d24!important}
.machineHeader{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:6px}
.robotFleetMap{display:grid;grid-template-columns:260px 1fr;gap:6px}
.siteList{border:1px solid #bfc8bf;background:#fff}
.siteList button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e1e7df;background:#fff;padding:5px;font-size:11px}
.siteList button:hover{background:#edf7ea}
@media(max-width:900px){.roleGrid,.machineHeader,.robotFleetMap{grid-template-columns:1fr}}
