:root{
  /* Original v134 color palette */
  --bg:#141411;
  --panel:#211f1c;
  --line:#3a3732;
  --tx:#f1eee7;
  --tx2:#aaa49b;
  --tx3:#736d63;
  --accent:#d49132;
  --ok:#7abf45;
  --okbg:#15290f;
  --danger:#e15a4f;
  --badbg:#301210;
  --warn:#e4b13e;
  --warnbg:#2d220b;

  /* Aliases for v138+ component names — map to original colors */
  --text:var(--tx);
  --muted:var(--tx2);
  --bad:var(--danger);
  --panel2:#252320;
  --panel3:#2a2825;
  --accent2:#e8a83a;
  --shadow:0 8px 24px rgba(0,0,0,.45);
  --radius:10px;
  --radius-sm:8px;
  --gap:8px;
  --font:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{margin:0;background:var(--bg);color:var(--tx);min-height:100vh}button,input,textarea,select{font:inherit}svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ico{width:13px;height:13px;vertical-align:-2px;margin-right:5px}.ico-lg{width:20px;height:20px}
.top{height:52px;background:#2a2925;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:5}.title{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:800}.topRight{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page{padding:14px 12px 90px;max-width:100vw;overflow-x:hidden}.screen{padding:18px;max-width:760px;margin:0 auto}
.card,.component,.meal,.login-card,.batch-card{background:var(--panel);border:1px solid var(--line);border-radius:10px}.login-card,.batch-card{padding:18px;margin-bottom:10px}.login-card h1,.batch-card h2{margin:0 0 8px}
.summary{padding:16px;margin-bottom:12px;display:flex;justify-content:space-between;gap:18px}.summary h1{font-size:22px;margin:3px 0 6px}.summary-main{flex:1}.muted{color:var(--tx2)}.small{font-size:12px}.tiny{font-size:11px}.meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--tx2);font-size:12px}
.stats{display:flex;gap:8px}.stat{background:#272521;border-radius:7px;padding:10px 16px;min-width:82px}.num{font-size:28px;font-weight:850;line-height:1}.progress-label{margin-top:12px;display:flex;justify-content:space-between}
.bar{height:4px;background:#131310;border-radius:99px;overflow:hidden;margin-top:7px}.fill{height:100%;background:var(--accent);width:0;transition:.25s}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:12px 2px 7px}.section-head.no-top{margin-top:0}.label{font-size:12px;letter-spacing:.08em;color:var(--tx3);font-weight:850;text-transform:uppercase}
.pill{display:inline-flex;align-items:center;border-radius:99px;font-size:11px;font-weight:850;padding:3px 8px;background:#38352f;color:var(--tx2)}.pill.ok{background:var(--okbg);color:var(--ok);border:1px solid #416f29}.pill.bad{background:var(--badbg);color:var(--danger);border:1px solid #79302a}.pill.warn{background:var(--warnbg);color:var(--warn);border:1px solid #805c17}
.san{padding:16px;margin-bottom:10px}.check{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #35322d;cursor:pointer}.check:last-child{border-bottom:0}.box{width:20px;height:20px;border-radius:4px;border:1px solid #55514a;display:flex;align-items:center;justify-content:center;flex-shrink:0}.box.on{background:#eee;color:#111;border-color:#eee}
.components{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:8px;margin-bottom:11px}.component{padding:12px;min-height:235px;display:flex;flex-direction:column;min-width:0}.ctype{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);font-weight:850}.cname{font-size:14px;font-weight:850;margin:2px 0}.used{font-size:12px;color:var(--tx2);line-height:1.35;margin-bottom:8px}.statusline{min-height:21px;margin:4px 0 8px}
.btn{border:1px solid #56534b;background:#2b2a25;color:var(--tx);border-radius:6px;padding:8px 11px;font-size:13px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px}.btn:hover{background:#34322d}.btn.full{width:100%}.btn.small{padding:5px 8px;font-size:12px}.btn.ok{border-color:#416f29;background:var(--okbg);color:var(--ok)}.btn.bad{border-color:#79302a;background:var(--badbg);color:var(--danger)}.btn:disabled{opacity:.42;cursor:not-allowed}.component .btn{margin-top:auto}
.meals{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}.meal{padding:13px;min-height:218px;display:flex;flex-direction:column;min-width:0}.meal.locked{opacity:.45}.meal h3{font-size:14px;margin:0 0 2px}.qty{font-size:34px;font-weight:850;line-height:1}.need{font-size:12px;color:var(--tx2);margin-bottom:8px}.chips{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 8px;min-height:22px}.chip{font-size:11px;font-weight:800;border-radius:99px;padding:3px 7px;background:#38352f;color:var(--tx2)}.chip.ok{background:var(--okbg);color:var(--ok)}.stage{font-size:12px;font-weight:850;color:var(--tx2);margin:3px 0 8px}.steps{display:flex;gap:3px;margin:4px 0 6px}.step{height:4px;flex:1;background:#2b2925;border-radius:3px}.step.done{background:var(--ok)}.step.now{background:var(--accent)}.step.pass{background:var(--ok)}.step.fail{background:var(--danger)}.main-action{margin-top:auto}.note-row{display:flex;gap:6px;margin-top:8px}.note{font-size:12px;color:var(--tx2);background:#292824;border:1px solid var(--line);border-radius:7px;padding:6px 8px;margin-top:8px}
.coolbox{background:#25241f;border:1px solid #34312d;border-radius:7px;padding:8px;margin-bottom:8px}.coolrow{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--tx2);margin-top:5px}.cooltime{font-size:18px;font-weight:850;color:var(--tx);font-variant-numeric:tabular-nums}
.banner{display:none;margin-bottom:10px;padding:12px 14px;border-radius:9px;border:1px solid #416f29;background:var(--okbg);color:var(--ok);font-weight:850;align-items:center;justify-content:space-between}.banner.show{display:flex}.warnbox{background:var(--warnbg);border:1px solid #805c17;color:var(--warn);border-radius:8px;padding:10px 12px;font-size:13px;font-weight:800;margin-bottom:12px}
.modal-wrap{display:none;position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:20;align-items:center;justify-content:center;padding:18px}.modal-wrap.open{display:flex}.modal{width:min(430px,100%);max-height:90vh;overflow:auto;background:#24221f;border:1px solid #55514a;border-radius:10px;padding:18px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-title{font-size:16px;font-weight:850}.x{background:none;border:0;color:var(--tx2);font-size:28px;cursor:pointer}.field{margin:10px 0}.field label{display:block;font-size:12px;color:var(--tx2);margin-bottom:5px}.input{width:100%;background:#2e2c28;border:1px solid #55514a;color:var(--tx);border-radius:7px;padding:11px}.temp{font-size:36px;text-align:center;font-weight:850}
.log{max-height:55vh;overflow:auto}.logrow{border-bottom:1px solid var(--line);padding:9px 0;font-size:13px}.logrow.flag{color:var(--danger)}.fab{position:fixed;right:14px;bottom:14px;z-index:10;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.batch-card.locked{opacity:.5}.batch-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--tx2);font-size:12px;margin:8px 0}.batch-actions{margin-top:12px}.worker-badge{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:99px;padding:4px 8px;color:var(--tx2);font-size:12px;margin-left:8px}
@media(max-width:760px){.components,.meals{grid-template-columns:1fr}.stats{flex-wrap:wrap}.top{padding:0 10px}.summary{padding:12px;display:block}.topRight{gap:4px}.page{padding:14px 12px 90px;max-width:100vw;overflow-x:hidden}}

.dashboard-grid{display:grid;grid-template-columns:1fr;gap:10px}
.batch-card.complete{border-color:#416f29;background:linear-gradient(0deg,rgba(21,41,15,.25),rgba(21,41,15,.25)),var(--panel)}
.archive-list{display:grid;gap:8px;margin-top:10px}
.archive-item{border:1px solid var(--line);border-radius:8px;padding:10px;background:#1b1a17}
.trace-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.trace-box{background:#181713;border:1px solid var(--line);border-radius:7px;padding:8px}
.label-preview{background:#fff;color:#111;border-radius:8px;padding:14px 16px;margin:10px auto 14px;max-width:310px;aspect-ratio:4/6;display:flex;flex-direction:column}
.label-brand{text-align:center;font-weight:900;letter-spacing:.06em;font-size:21px;line-height:1.05}
.label-brand span{display:block;font-size:12px;letter-spacing:.18em}
.label-hr{border:0;border-top:1.5px solid #111;margin:9px 0}
.label-meal{text-align:center;font-size:22px;font-weight:900;margin:2px 0 10px}
.label-row{display:grid;grid-template-columns:92px 1fr;gap:6px;font-size:14px;margin:4px 0}
.label-footer{font-size:12px;line-height:1.25;border-top:1px solid #ccc;margin-top:auto;padding-top:8px}

.production-tabs{display:flex;gap:8px;background:var(--bg);padding:12px 0;margin:0 0 14px;border-bottom:1px solid var(--line);overflow-x:auto;position:relative;z-index:1}
.prod-tab{border:1px solid var(--line);background:#201f1b;color:var(--tx2);border-radius:9px;padding:10px 13px;font-weight:850;white-space:nowrap;cursor:pointer}
.prod-tab.active{background:var(--okbg);border-color:#416f29;color:var(--ok)}
.tab-panel{display:none}.tab-panel.active-panel{display:block}.tab-panel{padding-top:0}
.prod-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:12px;width:100%}
.dash-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px}
.dash-card strong{display:block;font-size:28px;line-height:1.1;margin-top:6px}
.dash-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:10px;width:100%}
.label-queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
.audit-full{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px}
@media(max-width:760px){.production-tabs{display:flex;gap:8px;background:var(--bg);padding:12px 0;margin:0 0 14px;border-bottom:1px solid var(--line);overflow-x:auto;position:relative;z-index:1}.prod-tab{padding:9px 11px;font-size:12px}}

#productionDashboard{width:100%}
.dash-card{min-width:0;overflow:hidden}
.dash-card strong{word-break:break-word}
@media(max-width:900px){
  .prod-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-actions{grid-template-columns:1fr 1fr}
  .prod-tab{padding:8px 10px;font-size:12px}
}
@media(max-width:560px){
  .prod-dashboard-grid,.dash-actions{grid-template-columns:1fr}
}

/* v14 simplified production view */
.fab{display:none!important}
.production-tabs{display:flex;gap:10px;background:var(--bg);padding:12px 0;margin:0 0 14px;border-bottom:1px solid var(--line);overflow-x:auto;position:relative;z-index:1}
.prod-tab{min-width:105px}

.meal-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px}
.meal-check-grid input{width:18px;height:18px}
a.btn{text-decoration:none}

.client-details{margin-top:8px;line-height:1.55;color:var(--tx2)}
textarea.input{resize:vertical;min-height:70px}
select.input{appearance:auto}

.address-grid{grid-template-columns:1fr 1fr .55fr .8fr}
.input, select.input{min-height:45px}
select.input{height:45px;padding:11px;background:#2e2c28;border:1px solid #55514a;color:var(--tx);border-radius:7px}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.meal-quantity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.modal{width:min(720px,100%)}
@media(max-width:760px){.address-grid{grid-template-columns:1fr 1fr}.meal-quantity-grid,.menu-grid{grid-template-columns:1fr}}

.report-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.report-meta{line-height:1.55;margin-top:4px}

/* v30 hard screen visibility fix */
.screen-off{display:none!important}
.screen-on{display:block!important}
#signinScreen.screen-on{display:block!important}
#batchesScreen.screen-off,#productionScreen.screen-off,#signinScreen.screen-off{display:none!important}
#batchesScreen.screen-on,#productionScreen.screen-on{display:block!important}

/* v31 clean boot hard visibility */
.page{display:none}
.page.active-page{display:block!important}
#signinScreen.active-page,#batchesScreen.active-page,#productionScreen.active-page{display:block!important}
#signinScreen:not(.active-page),#batchesScreen:not(.active-page),#productionScreen:not(.active-page){display:none!important}

/* v34 admin rebuild helpers */
#adminLogin{display:block}
#adminApp{display:none}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.meal-quantity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.address-grid{grid-template-columns:1fr 1fr .55fr .8fr}
.input,select.input{min-height:45px}
select.input{height:45px}
.report-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.client-details{margin-top:8px;line-height:1.55;color:var(--tx2)}
textarea.input{resize:vertical;min-height:70px}
@media(max-width:760px){.address-grid{grid-template-columns:1fr 1fr}.meal-quantity-grid,.menu-grid{grid-template-columns:1fr}}

/* v35 admin visibility fix */
.admin-page{display:block!important}
body:has(.admin-page) .admin-page{display:block!important}
body:has(.admin-page) #adminLogin{display:block}
body:has(.admin-page) #adminApp{display:none}
body:has(.admin-page) #adminApp[style*="block"]{display:block!important}
body:has(.admin-page) #adminLogin[style*="none"]{display:none!important}

.admin-body .admin-page{display:block!important}
.admin-body #adminLogin{display:block}
.admin-body #adminApp{display:none}
.admin-body #adminApp.admin-visible{display:block!important}
.admin-body #adminLogin.admin-hidden{display:none!important}

input[type="date"].input{height:45px;color-scheme:dark}

/* v38 admin alignment fixes */
.trace-grid{align-items:start}
.field{min-width:0}
.field .input,.field select.input,input[type="date"].input{width:100%;max-width:100%;box-sizing:border-box}
input[type="date"].input{height:45px;min-height:45px;line-height:45px;padding:10px 11px;color-scheme:dark}
#deliveryDayDisplay,#editDeliveryDayDisplay{margin-top:6px}
.modal .trace-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}

/* v39 date alignment + date visibility fixes */
.batch-date-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:8px!important;
  width:100%!important;
}
.batch-date-grid .field,
.batch-delivery-date-field{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
.batch-date-grid input,
.batch-delivery-date-field input,
input[type="date"].input{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
input[type="date"].input::-webkit-date-and-time-value{
  text-align:left;
}
@media(max-width:760px){
  .batch-date-grid{grid-template-columns:1fr!important}
}


/* v40 header cleanup */
.topbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}

.topbar-left{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
}

.topbar-right{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}

.batch-inline{
  font-size:18px!important;
  color:#cfc7bf!important;
  white-space:nowrap!important;
}

.worker-badge{
  white-space:nowrap!important;
}

.top-actions{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}

@media(max-width:900px){
  .topbar{
    align-items:flex-start!important;
  }

  .topbar-left,
  .topbar-right{
    width:100%!important;
  }

  .topbar-right{
    justify-content:flex-start!important;
  }

  .batch-inline{
    font-size:16px!important;
  }
}

/* admin generate batch alignment */
.generate-batch-card{
  overflow:hidden!important;
}

.generate-batch-card .field{
  width:100%!important;
  min-width:0!important;
}

.generate-batch-card .input,
.generate-batch-card textarea{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

.generate-batch-card textarea{
  resize:vertical!important;
}

.generate-batch-card .batch-date-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  width:100%!important;
}

.generate-batch-card .batch-delivery-date-field{
  width:100%!important;
}

@media(max-width:760px){
  .generate-batch-card .batch-date-grid{
    grid-template-columns:1fr!important;
  }
}


/* v41 hard overflow fix */
html,body{
  max-width:100vw!important;
  overflow-x:hidden!important;
}

*{
  box-sizing:border-box!important;
}

.top,
header.top,
.topbar,
.page,
.admin-page,
.card,
.san,
.generate-batch-card,
.tab-panel,
.screen,
#adminApp,
#productionScreen,
#batchesScreen,
#signinScreen{
  max-width:100%!important;
  overflow-x:hidden!important;
}

.page,
.admin-page{
  width:100%!important;
  padding-left:24px!important;
  padding-right:24px!important;
}

/* Production header: keep content inside screen */
header.top,
.top{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  padding:18px 24px!important;
}

header.top .title,
.top .title,
.brand{
  flex:0 1 auto!important;
  min-width:0!important;
}

#topBatch{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}

#topBatch .topbar{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}

#topBatch .topbar-left{
  min-width:0!important;
  max-width:100%!important;
  flex-wrap:wrap!important;
}

.batch-inline{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  max-width:100%!important;
  line-height:1.25!important;
}

.worker-badge{
  white-space:normal!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

.head-actions,
.topRight,
.topbar-right,
.top-actions{
  flex:0 0 auto!important;
  max-width:100%!important;
}

/* Admin generate batch: date/input rows must never exceed card width */
.generate-batch-card{
  width:100%!important;
  max-width:100%!important;
  padding-left:22px!important;
  padding-right:22px!important;
}

.generate-batch-card .trace-grid,
.generate-batch-card .batch-date-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}

.generate-batch-card .field,
.generate-batch-card .batch-delivery-date-field{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}

.generate-batch-card input.input,
.generate-batch-card textarea.input,
.generate-batch-card select.input,
.generate-batch-card input[type="date"].input{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}

.generate-batch-card textarea.input{
  resize:vertical!important;
}

/* Fix Safari date input internal sizing */
input[type="date"].input{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

/* On iPad/narrow screens, stack the batch date fields */
@media(max-width:1024px){
  header.top,
  .top{
    flex-wrap:wrap!important;
  }

  #topBatch{
    order:3!important;
    flex-basis:100%!important;
  }

  .head-actions,
  .topRight{
    margin-left:auto!important;
  }

  .generate-batch-card .trace-grid,
  .generate-batch-card .batch-date-grid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:760px){
  .page,
  .admin-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .generate-batch-card{
    padding-left:14px!important;
    padding-right:14px!important;
  }
}

/* v42 production header button fix */
.production-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  width:100%!important;
  max-width:100vw!important;
  overflow:visible!important;
  padding:18px 24px!important;
  box-sizing:border-box!important;
}

.production-header-main{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  flex-wrap:wrap!important;
}

.production-header .title{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

.top-batch-info{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
}

.production-header-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  white-space:nowrap!important;
  overflow:visible!important;
  z-index:5!important;
}

.production-header-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:auto!important;
}

.production-header-actions a.btn{
  text-decoration:none!important;
}

.batch-inline{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

@media(max-width:760px){
  .production-header{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  .production-header-actions{
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
}

/* v43 visible production action buttons */
header.top{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  min-height:74px!important;
  width:100%!important;
  max-width:100vw!important;
  padding:16px 24px!important;
  overflow:visible!important;
}

header.top .title{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

#topBatch{
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
}

.fixed-production-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:9999!important;
}

.fixed-production-actions .btn,
.fixed-production-actions a.btn{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  min-width:92px!important;
  height:46px!important;
  white-space:nowrap!important;
}

@media(max-width:760px){
  header.top{
    flex-wrap:wrap!important;
    align-items:flex-start!important;
  }
  #topBatch{
    order:3!important;
    flex-basis:100%!important;
  }
  .fixed-production-actions{
    order:2!important;
    margin-left:auto!important;
  }
}


/* v44 remove duplicate floating buttons */
.upcoming .btn.small,
.screen .btn.small{
  position:relative;
}

.upcoming .top-actions,
.screen .top-actions,
.screen .head-actions{
  display:none !important;
}

/* keep ONLY the fixed header action buttons */
.fixed-production-actions{
  display:flex !important;
}

.fixed-production-actions .btn,
.fixed-production-actions a.btn{
  display:inline-flex !important;
}

/* tighten top spacing */
.top-batch-info{
  margin-top:0 !important;
}

/* v45 single production header action row */
.production-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  width:100%!important;
  padding:18px 24px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

.production-title-row{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  flex-wrap:wrap!important;
}

.production-header .title{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

.top-batch-info{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  overflow:visible!important;
}

.fixed-production-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:10000!important;
}

.fixed-production-actions .btn,
.fixed-production-actions a.btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:92px!important;
  height:46px!important;
  text-decoration:none!important;
}

/* Hide duplicate action groups anywhere except the real header */
body > .head-actions,
body > .top-actions,
.page .head-actions,
.page .top-actions,
#batchesScreen .head-actions,
#batchesScreen .top-actions,
#productionScreen .head-actions,
#productionScreen .top-actions,
.dashboard-grid > .head-actions,
.dashboard-grid > .top-actions{
  display:none!important;
}

@media(max-width:760px){
  .production-header{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  .fixed-production-actions{
    margin-left:0!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
}


/* v46 final production header layout */
.production-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:18px 24px!important;
  flex-wrap:nowrap!important;
}

.production-title-row{
  display:flex!important;
  align-items:center!important;
  gap:22px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
}

.top-batch-info{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
}

.batch-inline{
  font-size:18px!important;
  line-height:1.2!important;
}

.worker-badge{
  font-size:15px!important;
}

.fixed-production-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
  margin-left:12px!important;
}

.fixed-production-actions .btn,
.fixed-production-actions a.btn{
  min-width:88px!important;
  height:42px!important;
  padding:0 18px!important;
}

/* keep buttons INSIDE top bar */
header.top{
  overflow:hidden!important;
}

/* tablet layout */
@media(max-width:1180px){
  .production-header{
    flex-wrap:wrap!important;
    align-items:flex-start!important;
  }

  .production-title-row{
    width:100%!important;
  }

  .fixed-production-actions{
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-start!important;
    padding-top:2px!important;
  }
}

/* phone */
@media(max-width:760px){
  .batch-inline{
    font-size:16px!important;
  }

  .fixed-production-actions{
    flex-wrap:wrap!important;
  }

  .fixed-production-actions .btn,
  .fixed-production-actions a.btn{
    min-width:78px!important;
    height:40px!important;
  }
}


/* v47 emergency header cleanup */
.top-batch-info,
#topBatch{
  display:none !important;
}

.production-header{
  min-height:86px !important;
  align-items:center !important;
}

.production-title-row{
  align-items:center !important;
  min-height:48px !important;
}

/* remove the large empty gap */
header.top{
  padding-top:16px !important;
  padding-bottom:16px !important;
}

/* keep buttons visible */
.fixed-production-actions{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.fixed-production-actions .btn,
.fixed-production-actions a.btn{
  display:inline-flex !important;
}


/* v48 FINAL HEADER CODE FIX */
/* Reset every previous production header experiment */
header.top.production-header,
.production-header{
  display:block !important;
  width:100% !important;
  max-width:100vw !important;
  min-height:0 !important;
  height:auto !important;
  padding:18px 24px 14px !important;
  margin:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  border-bottom:1px solid var(--line) !important;
}

.prod-header-row,
.prod-header-main-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

.production-header .title{
  font-size:28px !important;
  line-height:1.1 !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

.prod-header-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  transform:none !important;
}

.prod-header-actions .btn,
.prod-header-actions a.btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  visibility:visible !important;
  opacity:1 !important;
  height:42px !important;
  min-width:88px !important;
  padding:0 16px !important;
  margin:0 !important;
  position:static !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

.prod-header-status,
#topBatch.prod-header-status{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  max-width:100% !important;
  min-height:0 !important;
  margin:12px 0 0 !important;
  padding:0 !important;
  overflow:visible !important;
  line-height:1.25 !important;
}

.batch-inline{
  display:inline !important;
  font-size:18px !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
}

.worker-badge{
  display:inline-flex !important;
  font-size:14px !important;
  line-height:1.2 !important;
  white-space:normal !important;
  max-width:100% !important;
}

/* Kill old duplicate button containers and old broken topbar containers */
.fixed-production-actions,
.production-header-actions,
.head-actions,
.top-actions,
#topBatch .topbar,
#topBatch .topbar-left,
#topBatch .topbar-right{
  display:none !important;
}

/* But do not hide the new action group */
.prod-header-actions{
  display:flex !important;
}

@media(max-width:760px){
  .prod-header-main-row{
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  .prod-header-actions{
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
  }

  .prod-header-actions .btn,
  .prod-header-actions a.btn{
    min-width:78px !important;
    height:40px !important;
  }
}


/* v49 polished production header with logo */
header.top.production-header,
.production-header{
  background:linear-gradient(180deg,#24231f 0%,#1d1c19 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  padding:20px 30px 18px!important;
}

.prod-header-main-row{
  align-items:center!important;
}

.prod-title-wrap{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex:0 0 auto!important;
}

.prod-title-icon{
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#102b0d!important;
  border:1px solid #3d7d28!important;
  color:#74c947!important;
  font-size:24px!important;
  box-shadow:0 0 0 3px rgba(92,169,52,.08)!important;
}

.production-header .title{
  font-size:30px!important;
  font-weight:900!important;
  letter-spacing:-.03em!important;
}

.prod-header-status{
  margin-top:14px!important;
  padding-left:54px!important;
}

.batch-inline{
  font-size:18px!important;
  color:#d8d1c8!important;
  font-weight:650!important;
}

.worker-badge{
  background:#24221e!important;
  border:1px solid #454139!important;
  color:#c9c0b6!important;
  padding:7px 14px!important;
  border-radius:999px!important;
  font-size:14px!important;
}

.prod-header-actions{
  gap:12px!important;
}

.prod-header-actions .btn,
.prod-header-actions a.btn{
  border-radius:12px!important;
  height:44px!important;
  min-width:96px!important;
  font-weight:850!important;
  background:#2c2a26!important;
  border:1px solid #5b564d!important;
  color:#f3eee8!important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset!important;
}

.prod-header-actions .btn:hover,
.prod-header-actions a.btn:hover{
  border-color:#6faa45!important;
  color:#80d454!important;
}

@media(max-width:900px){
  header.top.production-header,
  .production-header{
    padding:18px 24px 16px!important;
  }

  .prod-header-main-row{
    gap:14px!important;
  }

  .prod-header-status{
    padding-left:0!important;
  }

  .prod-title-icon{
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
    font-size:22px!important;
  }

  .production-header .title{
    font-size:28px!important;
  }
}

@media(max-width:760px){
  .prod-header-actions{
    width:100%!important;
  }

  .prod-header-actions .btn,
  .prod-header-actions a.btn{
    flex:1 1 90px!important;
  }
}


/* v50 matched professional headers */
.top,
header.top,
.production-header,
.admin-header{
  all:unset;
}

.app-header{
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  background:linear-gradient(180deg,#25241f 0%,#1e1d1a 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  padding:22px 30px!important;
  color:#f4f0ea!important;
}

.app-header-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:22px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

.app-brand{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}

.app-brand-icon{
  width:46px!important;
  height:46px!important;
  flex:0 0 46px!important;
  border-radius:15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#102b0d!important;
  border:1px solid #3d7d28!important;
  color:#74c947!important;
  font-size:24px!important;
  box-shadow:0 0 0 4px rgba(92,169,52,.08)!important;
}

.app-brand-icon.admin-icon{
  background:#26231d!important;
  border-color:#5b554b!important;
  color:#d8d1c8!important;
}

.app-title{
  font-size:30px!important;
  font-weight:900!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
  color:#f4f0ea!important;
  white-space:nowrap!important;
}

.app-subtitle{
  margin-top:8px!important;
  font-size:16px!important;
  line-height:1.25!important;
  color:#bfb8ae!important;
  font-weight:650!important;
  min-height:20px!important;
}

.app-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

.app-header-actions .btn,
.app-header-actions a.btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:44px!important;
  min-width:96px!important;
  padding:0 18px!important;
  border-radius:12px!important;
  font-weight:850!important;
  background:#2c2a26!important;
  border:1px solid #5b564d!important;
  color:#f3eee8!important;
  text-decoration:none!important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset!important;
}

.app-header-actions .btn:hover,
.app-header-actions a.btn:hover{
  border-color:#6faa45!important;
  color:#80d454!important;
}

.worker-badge.compact{
  display:inline-flex!important;
  vertical-align:middle!important;
  margin-left:8px!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  background:#24221e!important;
  border:1px solid #454139!important;
  color:#c9c0b6!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.2!important;
  white-space:normal!important;
}

/* prevent old header systems from reappearing */
.production-title-row,
.prod-title-wrap,
.prod-header-actions,
.fixed-production-actions,
.production-header-actions,
.head-actions,
.top-actions,
.prod-header-status{
  display:none!important;
}

@media(max-width:900px){
  .app-header{
    padding:20px 24px!important;
  }

  .app-header-row{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:16px!important;
  }

  .app-header-actions{
    width:100%!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }

  .app-title{
    font-size:28px!important;
  }

  .app-subtitle{
    font-size:15px!important;
  }
}

@media(max-width:560px){
  .app-brand-icon{
    width:40px!important;
    height:40px!important;
    flex-basis:40px!important;
    border-radius:13px!important;
    font-size:21px!important;
  }

  .app-header-actions .btn,
  .app-header-actions a.btn{
    flex:1 1 90px!important;
    min-width:0!important;
  }
}


/* v51 inline matched headers + date centering */
.app-title-line{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  min-width:0!important;
  flex-wrap:wrap!important;
}

.app-subtitle{
  margin-top:0!important;
  min-height:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:16px!important;
  line-height:1.2!important;
}

.app-brand{
  align-items:center!important;
}

.admin-icon{
  font-family:Arial,Helvetica,sans-serif!important;
  font-weight:900!important;
  font-size:25px!important;
}

/* Center text inside date boxes on iPad/Safari */
input[type="date"].input{
  display:flex!important;
  align-items:center!important;
  height:52px!important;
  min-height:52px!important;
  line-height:52px!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

input[type="date"].input::-webkit-date-and-time-value{
  line-height:52px!important;
  height:52px!important;
  display:flex!important;
  align-items:center!important;
  text-align:left!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

input[type="date"].input::-webkit-datetime-edit{
  padding:0!important;
  line-height:52px!important;
}

input[type="date"].input::-webkit-datetime-edit-fields-wrapper{
  display:flex!important;
  align-items:center!important;
  height:52px!important;
}

/* keep batch form date fields visually aligned */
.generate-batch-card input[type="date"].input{
  height:52px!important;
  min-height:52px!important;
}

@media(max-width:900px){
  .app-title-line{
    gap:10px!important;
  }
  .app-subtitle{
    width:100%!important;
  }
}


/* v52 final header alignment + sync dot */
.app-header.unified-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  padding:20px 30px!important;
  box-sizing:border-box!important;
}

.unified-header-left{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  flex-wrap:wrap!important;
}

.app-title{
  white-space:nowrap!important;
}

.sync-status-line{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 0 4px!important;
  font-size:15px!important;
  color:#bfb8ae!important;
  line-height:1.2!important;
  min-height:0!important;
}

.sync-dot{
  width:9px!important;
  height:9px!important;
  border-radius:50%!important;
  display:inline-block!important;
  flex:0 0 9px!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.04)!important;
}

.sync-dot.ok{background:#64c84a!important;box-shadow:0 0 0 3px rgba(100,200,74,.12)!important}
.sync-dot.bad{background:#d9534f!important;box-shadow:0 0 0 3px rgba(217,83,79,.12)!important}
.sync-dot.warn{background:#c79b38!important;box-shadow:0 0 0 3px rgba(199,155,56,.12)!important}

.admin-icon{
  position:relative!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:0!important;
  line-height:1!important;
}

.admin-mark{
  width:24px!important;
  height:24px!important;
  border-radius:8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:16px!important;
  font-weight:900!important;
  color:#74c947!important;
  border:2px solid #74c947!important;
  box-sizing:border-box!important;
}

.app-header-actions{
  margin-left:auto!important;
  align-self:center!important;
}

@media(max-width:980px){
  .app-header.unified-header{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:14px!important;
  }
  .app-header-actions{
    margin-left:0!important;
  }
}

/* dashboard simplification */
.admin-dashboard-clean{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

/* client meal quantity picker */
.client-meal-qty-list{
  display:grid!important;
  gap:8px!important;
}

.client-meal-qty-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 90px!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#22201c!important;
}

.client-meal-qty-row .input{
  text-align:center!important;
  font-weight:900!important;
}

@media(max-width:560px){
  .client-meal-qty-row{
    grid-template-columns:1fr!important;
  }
}

/* v53 true inline headers */
.app-header,.top,header.top,.production-header,.admin-header,.inline-app-header{all:unset}
.inline-app-header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;
  width:100%!important;max-width:100vw!important;box-sizing:border-box!important;padding:22px 30px!important;
  background:linear-gradient(180deg,#25241f 0%,#1e1d1a 100%)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;
  color:#f4f0ea!important;overflow:visible!important;
}
.inline-header-left{display:flex!important;align-items:center!important;gap:14px!important;flex:1 1 auto!important;min-width:0!important;flex-wrap:nowrap!important}
.inline-brand-icon{
  width:46px!important;height:46px!important;flex:0 0 46px!important;border-radius:15px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  background:#102b0d!important;border:1px solid #3d7d28!important;color:#74c947!important;font-size:24px!important;box-shadow:0 0 0 4px rgba(92,169,52,.08)!important;line-height:1!important;
}
.inline-title{font-size:30px!important;font-weight:900!important;letter-spacing:-.035em!important;line-height:1!important;white-space:nowrap!important;flex:0 0 auto!important}
.inline-sync-status{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;flex:1 1 auto!important;color:#bfb8ae!important;font-size:15px!important;line-height:1.2!important;font-weight:650!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.inline-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:0 0 auto!important;margin-left:auto!important;white-space:nowrap!important}
.inline-header-actions .btn,.inline-header-actions a.btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;height:44px!important;min-width:96px!important;padding:0 18px!important;
  border-radius:12px!important;font-weight:850!important;background:#2c2a26!important;border:1px solid #5b564d!important;color:#f3eee8!important;text-decoration:none!important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset!important;visibility:visible!important;opacity:1!important;
}
.sync-dot{width:9px!important;height:9px!important;border-radius:50%!important;display:inline-block!important;flex:0 0 9px!important}
.sync-dot.ok{background:#64c84a!important;box-shadow:0 0 0 3px rgba(100,200,74,.12)!important}
.sync-dot.bad{background:#d9534f!important;box-shadow:0 0 0 3px rgba(217,83,79,.12)!important}
.sync-dot.warn{background:#c79b38!important;box-shadow:0 0 0 3px rgba(199,155,56,.12)!important}
.admin-mark{width:24px!important;height:24px!important;border-radius:8px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:16px!important;font-weight:900!important;color:#74c947!important;border:2px solid #74c947!important;box-sizing:border-box!important;line-height:1!important}
.worker-badge.compact{display:inline-flex!important;vertical-align:middle!important;margin-left:8px!important;padding:3px 9px!important;border-radius:999px!important;background:#24221e!important;border:1px solid #454139!important;color:#c9c0b6!important;font-size:13px!important;font-weight:650!important;line-height:1.2!important}
.app-title-line,.app-brand,.app-subtitle,.app-header-row,.prod-header-row,.prod-header-main-row,.production-title-row,.prod-title-wrap,.prod-header-actions,.fixed-production-actions,.production-header-actions,.head-actions,.top-actions,.prod-header-status{display:none!important}
@media(max-width:900px){
  .inline-app-header{padding:20px 24px!important;gap:12px!important}
  .inline-title{font-size:28px!important}
  .inline-header-actions .btn,.inline-header-actions a.btn{min-width:84px!important;padding:0 14px!important}
}
@media(max-width:760px){
  .inline-app-header{flex-wrap:wrap!important}
  .inline-header-left{width:100%!important}
  .inline-header-actions{width:100%!important;justify-content:flex-start!important;margin-left:60px!important}
}


/* v54 delivery module */
.delivery-check{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:10px;
}

.delivery-stop{
  margin-top:14px;
}

.delivery-stop-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.delivery-stop-title{
  font-size:22px;
  font-weight:900;
}

.delivery-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}

.delivery-meals{
  margin-bottom:12px;
}

.fail-select{
  min-height:48px;
}

.hidden{
  display:none !important;
}


/* v55 delivery button visibility */
.inline-header-actions,
.app-header-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}

.inline-header-actions a.btn,
.app-header-actions a.btn{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
}

/* v56 batch draft spacing */
#batchMealEditor,
.meal-quantity-grid{
  margin-top:14px!important;
}
.generate-batch-card .trace-grid + .section-head,
.generate-batch-card .trace-grid + #batchMealEditor,
.generate-batch-card .trace-grid + .meal-quantity-grid{
  margin-top:18px!important;
}
.generate-batch-card .trace-grid:has(button){
  margin-bottom:18px!important;
}
.released-batch-grid{
  display:grid!important;
  gap:18px!important;
}
.signout-row{
  grid-column:1/-1!important;
}

/* v56 production sync visibility */
#topBatch.inline-sync-status{
  display:flex!important;
  align-items:center!important;
}
#topBatch .sync-dot{
  display:inline-block!important;
}

/* v57 clean production header */
#topBatch.inline-sync-status{
  max-width:260px!important;
}
#topBatch .worker-badge{
  display:none!important;
}

/* v58 stable production tabs */
.prod-tabs{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:18px 0!important;
}
.tab-panel{display:none!important}
.tab-panel.active-panel{display:block!important}
#prodTab-batch.active-panel,
#prodTab-ingredients.active-panel,
#prodTab-assembly.active-panel{display:block!important}
#sanList .check{display:flex!important}
#components.components,
#meals.meals{display:grid!important}

/* v59 header position hard fix */
body{
  display:block!important;
}
.inline-app-header{
  position:relative!important;
  top:auto!important;
  bottom:auto!important;
  order:0!important;
  z-index:10!important;
}
main.page,
.page{
  position:relative!important;
  order:1!important;
}
.delivery-truck-mark svg{
  width:25px!important;
  height:25px!important;
  display:block!important;
}
.delivery-truck-mark{
  font-size:0!important;
}

/* v60 force header top and delivery visibility */
body > .inline-app-header{
  display:flex!important;
  position:relative!important;
  top:0!important;
  bottom:auto!important;
  z-index:50!important;
}
body > main.page{
  display:block!important;
}
.delivery-stop.complete{
  border-color:#3d7d28!important;
}

/* v61 hard header-at-top fix */
body{
  padding-top:0!important;
}
body > .inline-app-header,
.inline-app-header.production-header,
.inline-app-header.admin-header{
  position:sticky!important;
  top:0!important;
  bottom:auto!important;
  z-index:99999!important;
  width:100%!important;
  transform:none!important;
}
#productionScreen{
  padding-top:0!important;
}

/* v61 lifecycle/status polish */
.pill.bad{border-color:#7d3028!important;color:#ff8f83!important;background:#2b100d!important}
.pill.warn{border-color:#7d6428!important;color:#f0bd4a!important;background:#2b220d!important}
.pill.ok{border-color:#3d7d28!important;color:#74c947!important;background:#102b0d!important}

/* v62 fixed top production header */
#fixedTopHeader{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;width:100%!important;box-sizing:border-box!important;padding:18px 30px!important;background:linear-gradient(180deg,#25241f 0%,#1e1d1a 100%)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;color:#f4f0ea!important}
.fixed-header-left{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;flex:1 1 auto!important;flex-wrap:nowrap!important}
.fixed-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:0 0 auto!important;white-space:nowrap!important}
.fixed-header-actions .btn,.fixed-header-actions a.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:44px!important;min-width:96px!important;padding:0 18px!important;border-radius:12px!important;font-weight:850!important;background:#2c2a26!important;border:1px solid #5b564d!important;color:#f3eee8!important;text-decoration:none!important;visibility:visible!important;opacity:1!important}
body{padding-top:92px!important}
body>.inline-app-header.production-header,.inline-app-header.production-header{display:none!important}
@media(max-width:760px){#fixedTopHeader{flex-wrap:wrap!important;padding:16px 20px!important}.fixed-header-left{width:100%!important}.fixed-header-actions{width:100%!important;justify-content:flex-start!important;flex-wrap:wrap!important;margin-left:60px!important}body{padding-top:150px!important}}

/* v64 example client seed button */
.section-head .btn.small{
  min-height:34px!important;
  padding:0 12px!important;
}

/* v65 weekly order engine */
.weekly-order-controls{align-items:end!important}
.weekly-flow{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:14px 0 16px!important;
}
.flow-step{
  padding:9px 12px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:#24221e!important;
  font-weight:800!important;
  font-size:13px!important;
  color:#d8d1c8!important;
}
.flow-arrow{color:#777!important;font-weight:900!important}
.warn-card{border-color:#7d6428!important;background:#2b220d!important;margin:12px 0!important}
.ok-card{border-color:#3d7d28!important;background:#102b0d!important;margin:12px 0!important}

/* v66 automated admin workflow */
.workflow-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:16px 0!important;
}
.workflow-node{
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  padding:14px!important;
  background:#22201c!important;
}
.workflow-node strong{display:block!important;font-size:15px!important}
.workflow-node span{display:block!important;color:var(--tx2)!important;font-size:12px!important;margin-top:5px!important}
.workflow-status-row{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;
  gap:8px!important;
  margin-bottom:16px!important;
}
.workflow-status-pill{
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  background:#24221e!important;
}
.workflow-status-pill strong{color:#74c947!important}
.workflow-status-pill span{font-size:11px!important;color:var(--tx2)!important}
.weekly-flow{
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin:14px 0 16px!important;
}
.flow-step{padding:9px 12px!important;border:1px solid var(--line)!important;border-radius:999px!important;background:#24221e!important;font-weight:800!important;font-size:13px!important;color:#d8d1c8!important}
.flow-arrow{color:#777!important;font-weight:900!important}
.warn-card{border-color:#7d6428!important;background:#2b220d!important;margin:12px 0!important}
.ok-card{border-color:#3d7d28!important;background:#102b0d!important;margin:12px 0!important}
@media(max-width:800px){.workflow-strip{grid-template-columns:1fr 1fr!important}}
@media(max-width:520px){.workflow-strip{grid-template-columns:1fr!important}}


/* v71 targeted UI fixes */
.temp-modal-card{max-width:620px!important}
.temp-input{
  font-size:42px!important;
  font-weight:900!important;
  text-align:center!important;
  min-height:84px!important;
  margin:18px 0!important;
}
.production-timer{
  margin-top:6px!important;
  font-weight:800!important;
  color:#74c947!important;
}
.meal-chip-list{display:grid!important;gap:8px!important;margin-bottom:10px!important}
.meal-chip-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:10px 12px!important;
  border:1px solid var(--line,#3d3933)!important;
  border-radius:12px!important;
  background:#22201c!important;
}
.meal-add-grid{align-items:center!important}


/* v72 temp modal size + centering fix */
#tempModal{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(0,0,0,.72)!important;
  z-index:2147483647!important;
  overflow:hidden!important;
}

#tempModal.hidden{
  display:none!important;
}

#tempModal .temp-modal-card{
  position:relative!important;
  width:min(560px, calc(100vw - 36px))!important;
  max-width:560px!important;
  min-width:0!important;
  max-height:calc(100dvh - 48px)!important;
  overflow:auto!important;
  margin:0!important;
  transform:none!important;
  border-radius:18px!important;
  padding:26px!important;
  background:#24221e!important;
  border:1px solid #5b564d!important;
  box-shadow:0 24px 80px rgba(0,0,0,.55)!important;
}

#tempModal .modal-x{
  position:absolute!important;
  top:14px!important;
  right:16px!important;
  width:42px!important;
  height:42px!important;
  border:0!important;
  background:transparent!important;
  color:#c9c0b6!important;
  font-size:34px!important;
  line-height:1!important;
}

#tempModal h2{
  font-size:26px!important;
  line-height:1.15!important;
  margin:0 46px 12px 0!important;
}

#tempModal .muted{
  font-size:17px!important;
  line-height:1.35!important;
  margin:0 0 16px!important;
}

#tempModal .temp-input{
  width:100%!important;
  min-height:72px!important;
  height:72px!important;
  font-size:44px!important;
  line-height:1!important;
  font-weight:900!important;
  text-align:center!important;
  margin:14px 0 16px!important;
  padding:8px 14px!important;
  border-radius:14px!important;
}

#tempModal .btn{
  height:54px!important;
  min-height:54px!important;
  font-size:18px!important;
  border-radius:14px!important;
}

@media(max-width:600px){
  #tempModal{
    align-items:center!important;
    padding:14px!important;
  }
  #tempModal .temp-modal-card{
    width:calc(100vw - 28px)!important;
    padding:22px!important;
  }
  #tempModal h2{
    font-size:23px!important;
  }
  #tempModal .temp-input{
    height:66px!important;
    min-height:66px!important;
    font-size:38px!important;
  }
}

/* v73 remove top gap above admin/delivery headers */
html,body{margin:0!important;padding-top:0!important;}
body:not(.production-body) > .inline-app-header{
  margin-top:0!important;
  top:0!important;
}
.admin-body,.dark{
  padding-top:0!important;
}

/* v73 temp modal strict center */
#tempModal{
  position:fixed!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:20px!important;
  background:rgba(0,0,0,.72)!important;
  z-index:2147483647!important;
}
#tempModal.hidden{display:none!important}
#tempModal .temp-modal-card{
  width:min(520px,calc(100vw - 40px))!important;
  max-height:calc(100dvh - 60px)!important;
  overflow:auto!important;
  margin:0!important;
  padding:24px!important;
  border-radius:18px!important;
}
#tempModal .temp-input{
  height:72px!important;
  min-height:72px!important;
  font-size:42px!important;
}


/* v74 combined batches + reports */
.batch-report-row{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.batch-report-actions{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  min-width:220px!important;
}
@media(max-width:700px){
  .batch-report-row{
    flex-direction:column!important;
  }
  .batch-report-actions{
    width:100%!important;
    justify-content:flex-start!important;
  }
}

/* v75 production header overlap fix */
body.production-body{
  padding-top:150px!important;
}
body.production-body main,
body.production-body .page{
  padding-top:28px!important;
}
@media(max-width:760px){
  body.production-body{
    padding-top:190px!important;
  }
}

/* v75 ingredients photo upload boxes */
.photo-upload-box{
  border:1px dashed #5b564d!important;
  border-radius:14px!important;
  padding:12px!important;
  background:#22201c!important;
}


/* v76 production header must not cover page content */
body.production-body{
  padding-top:0!important;
}
body.production-body #fixedTopHeader,
body.production-body .fixed-top-header{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  z-index:20!important;
}
body.production-body main,
body.production-body #app,
body.production-body .page{
  padding-top:24px!important;
  margin-top:0!important;
}
body.production-body .fixed-header-left{
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:visible!important;
}
body.production-body .inline-title{
  flex:0 0 auto!important;
  margin-right:10px!important;
}
body.production-body .inline-sync-status{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  overflow:visible!important;
  min-width:72px!important;
}
body.production-body .sync-dot{
  flex:0 0 auto!important;
}

/* v76 client add-meal modal selector */
.selected-meal-list{
  display:grid!important;
  gap:8px!important;
  margin-bottom:12px!important;
}
.selected-meal-row{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid #3d3933!important;
  background:#22201c!important;
  border-radius:12px!important;
  padding:10px 12px!important;
}
.meal-selector-footer{
  display:grid!important;
  grid-template-columns:1fr 120px!important;
  gap:10px!important;
  align-items:center!important;
}
.meal-total-pill{
  border:1px solid #5b564d!important;
  border-radius:999px!important;
  padding:10px 12px!important;
  text-align:center!important;
  font-weight:900!important;
  color:#d8d1c8!important;
}
.meal-total-pill.ok{
  border-color:#3d7d28!important;
  color:#74c947!important;
  background:#102b0d!important;
}
.meal-option-card{
  width:min(520px,calc(100vw - 36px))!important;
  max-width:520px!important;
}
@media(max-width:650px){
  .meal-selector-footer{grid-template-columns:1fr!important}
}


/* v77 TRUE production header/content fix */
body.production-body,
body.dark.production-body{
  padding-top:0!important;
  margin-top:0!important;
}

body.production-body #fixedTopHeader,
body.production-body .fixed-top-header{
  position:static!important;
  display:flex!important;
  width:100%!important;
  margin:0!important;
  transform:none!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
}

body.production-body #app{
  display:block!important;
  padding-top:28px!important;
  margin-top:0!important;
  position:relative!important;
  clear:both!important;
}

body.production-body #app > .page,
body.production-body .page{
  padding-top:0!important;
  margin-top:0!important;
}

body.production-body .fixed-header-left{
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
}

body.production-body .inline-title{
  flex:0 0 auto!important;
  min-width:max-content!important;
}

body.production-body #topBatch,
body.production-body .inline-sync-status{
  flex:0 0 auto!important;
  min-width:86px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  margin-left:8px!important;
}

body.production-body .fixed-header-actions{
  flex:0 0 auto!important;
}

/* v77 final client meal modal UI */
.selected-meal-list{display:grid!important;gap:8px!important;margin-bottom:12px!important}
.selected-meal-row{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  padding:10px 12px!important;border:1px solid #3d3933!important;border-radius:12px!important;background:#22201c!important;
}
.meal-selector-footer{display:grid!important;grid-template-columns:1fr 120px!important;gap:10px!important;align-items:center!important}
.meal-total-pill{
  border:1px solid #5b564d!important;border-radius:999px!important;padding:10px 12px!important;text-align:center!important;font-weight:900!important;color:#d8d1c8!important
}
.meal-total-pill.ok{border-color:#3d7d28!important;color:#74c947!important;background:#102b0d!important}
.meal-option-card{width:min(520px,calc(100vw - 36px))!important;max-width:520px!important}
@media(max-width:650px){.meal-selector-footer{grid-template-columns:1fr!important}}

/* v78 structural fixes that target actual markup */
body.production-body{padding-top:0!important;margin-top:0!important;}
body.production-body #fixedTopHeader.production-normal-header,
body.production-body #fixedTopHeader,
body.production-body .fixed-top-header{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  transform:none!important;
  margin:0!important;
}
body.production-body main{display:block!important;margin-top:0!important;padding-top:28px!important;}
body.production-body main > section:first-child{margin-top:0!important;}
body.production-body .fixed-header-left{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:visible!important;
}
body.production-body .inline-title{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
body.production-body #topBatch.inline-sync-status{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 92px!important;
  min-width:92px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  margin-left:10px!important;
}
body.production-body #topBatch .sync-dot{flex:0 0 9px!important;display:inline-block!important;}

.selected-meal-list{display:grid!important;gap:8px!important;margin-bottom:12px!important}
.selected-meal-row{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  padding:10px 12px!important;border:1px solid var(--line,#3d3933)!important;border-radius:12px!important;background:#22201c!important;
}
.meal-selector-footer{display:grid!important;grid-template-columns:1fr 120px!important;gap:10px!important;align-items:center!important}
.meal-total-pill{
  border:1px solid #5b564d!important;border-radius:999px!important;padding:10px 12px!important;text-align:center!important;font-weight:900!important;color:#d8d1c8!important
}
.meal-total-pill.ok{border-color:#3d7d28!important;color:#74c947!important;background:#102b0d!important}
.meal-option-card{width:min(520px,calc(100vw - 36px))!important;max-width:520px!important}
@media(max-width:650px){.meal-selector-footer{grid-template-columns:1fr!important}}

/* v79 header sync consistency + production tabs + add meal alignment */
.inline-header-left,
.fixed-header-left{
  min-width:0!important;
  overflow:visible!important;
}
.inline-title{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.inline-sync-status,
#adminCloudStatus,
#deliveryCloudStatus,
#topBatch{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
  min-width:86px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  margin-left:10px!important;
}
.sync-dot{flex:0 0 9px!important;}

.prod-tab.active,
.prod-tab[aria-selected="true"],
.production-tabs .prod-tab.active,
.prod-tabs .prod-tab.active{
  background:#102b0d!important;
  border-color:#3d7d28!important;
  color:#74c947!important;
  box-shadow:inset 0 0 0 1px rgba(116,201,71,.25)!important;
}
.prod-tab:not(.active):not([aria-selected="true"]){
  background:#211f1c!important;
  color:#bfb8ae!important;
  border-color:#3d3933!important;
}

.meal-selector-footer{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) 120px!important;
  gap:12px!important;
  align-items:center!important;
  margin-top:12px!important;
}
.add-meal-option-btn{
  min-height:50px!important;
  justify-content:center!important;
}
.selected-meal-list{
  display:grid!important;
  gap:8px!important;
}
.selected-meal-row{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px!important;
  border:1px solid var(--line,#3d3933)!important;
  border-radius:12px!important;
  background:#22201c!important;
}
.meal-total-pill{
  border:1px solid #5b564d!important;
  border-radius:999px!important;
  padding:12px!important;
  text-align:center!important;
  font-weight:900!important;
  color:#d8d1c8!important;
}
.meal-total-pill.ok{
  border-color:#3d7d28!important;
  color:#74c947!important;
  background:#102b0d!important;
}
.meal-option-card{
  width:min(520px,calc(100vw - 36px))!important;
  max-width:520px!important;
}
@media(max-width:650px){
  .meal-selector-footer{grid-template-columns:1fr!important;}
}


/* v80 admin automated pipeline */
.admin-pipeline-tabs{
  gap:8px!important;
  margin-bottom:14px!important;
}
.admin-pipeline-tabs .prod-tab{
  min-height:44px!important;
  padding:10px 14px!important;
}
.home-action-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  gap:10px!important;
}
.home-action-card{
  text-align:left!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#22201c!important;
  color:var(--tx)!important;
  padding:14px!important;
  min-height:112px!important;
}
.home-action-card strong{
  display:block!important;
  font-size:34px!important;
  line-height:1!important;
  margin:8px 0!important;
}
.home-action-card.needs-attention{
  border-color:#7d6428!important;
  background:#2b220d!important;
}
.home-action-card.clear strong{
  color:#74c947!important;
}
.pipeline-status-strip{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:10px!important;
  margin:14px 0!important;
}
.pipeline-status-strip>div{
  border:1px solid var(--line)!important;
  background:#22201c!important;
  border-radius:14px!important;
  padding:14px!important;
}
.pipeline-status-strip strong{
  display:block!important;
  font-size:28px!important;
}
.pipeline-status-strip span{
  display:block!important;
  color:var(--tx2)!important;
  font-size:12px!important;
}
.pipeline-flow{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:14px 0!important;
}
.pipeline-flow div{
  border:1px solid var(--line)!important;
  background:#24221e!important;
  border-radius:999px!important;
  padding:9px 12px!important;
  font-weight:800!important;
  font-size:13px!important;
}
.pipeline-flow span{
  color:var(--tx3)!important;
  font-weight:900!important;
}
.pipeline-flow.compact div{
  font-size:12px!important;
}
.pipeline-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
}
.pipeline-row-actions{
  display:flex!important;
  gap:8px!important;
}
.pipeline-progress{
  grid-column:1/-1!important;
  height:9px!important;
  border-radius:999px!important;
  background:#111!important;
  overflow:hidden!important;
}
.pipeline-progress>div{
  height:100%!important;
  background:#74c947!important;
}
.pill.warn{border-color:#7d6428!important;color:#f0bd4a!important;background:#2b220d!important}
.pill.bad{border-color:#7d3028!important;color:#ff8f83!important;background:#2b100d!important}
.pill.ok{border-color:#3d7d28!important;color:#74c947!important;background:#102b0d!important}
@media(max-width:700px){
  .pipeline-row{grid-template-columns:1fr!important}
  .admin-pipeline-tabs{display:grid!important;grid-template-columns:1fr 1fr!important}
}


/* v81 cleaned admin pipeline */
.home-action-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  gap:10px!important;
}
.home-action-card{
  text-align:left!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#22201c!important;
  color:var(--tx)!important;
  padding:14px!important;
  min-height:112px!important;
}
.home-action-card strong{
  display:block!important;
  font-size:34px!important;
  line-height:1!important;
  margin:8px 0!important;
}
.home-action-card.needs-attention{
  border-color:#7d6428!important;
  background:#2b220d!important;
}
.home-action-card.clear strong{color:#74c947!important}
.pipeline-status-strip{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:10px!important;
  margin:14px 0!important;
}
.pipeline-status-strip>div{
  border:1px solid var(--line)!important;
  background:#22201c!important;
  border-radius:14px!important;
  padding:14px!important;
}
.pipeline-status-strip strong{display:block!important;font-size:28px!important}
.pipeline-status-strip span{display:block!important;color:var(--tx2)!important;font-size:12px!important}
.pipeline-flow{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:14px 0!important;
}
.pipeline-flow div{
  border:1px solid var(--line)!important;
  background:#24221e!important;
  border-radius:999px!important;
  padding:9px 12px!important;
  font-weight:800!important;
  font-size:13px!important;
}
.pipeline-flow span{color:var(--tx3)!important;font-weight:900!important}
.pipeline-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
}
.pipeline-row-actions{display:flex!important;gap:8px!important}
.pipeline-progress{
  grid-column:1/-1!important;
  height:9px!important;
  border-radius:999px!important;
  background:#111!important;
  overflow:hidden!important;
}
.pipeline-progress>div{height:100%!important;background:#74c947!important}
.selected-meal-list{display:grid!important;gap:8px!important;margin-bottom:12px!important}
.selected-meal-row{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px!important;
  border:1px solid var(--line,#3d3933)!important;
  border-radius:12px!important;
  background:#22201c!important;
}
.meal-selector-footer{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) 120px!important;
  gap:12px!important;
  align-items:center!important;
}
.meal-total-pill{
  border:1px solid #5b564d!important;
  border-radius:999px!important;
  padding:12px!important;
  text-align:center!important;
  font-weight:900!important;
}
.meal-total-pill.ok{
  border-color:#3d7d28!important;
  color:#74c947!important;
  background:#102b0d!important;
}
.meal-option-card{width:min(520px,calc(100vw - 36px))!important;max-width:520px!important}
.pill.warn{border-color:#7d6428!important;color:#f0bd4a!important;background:#2b220d!important}
.pill.bad{border-color:#7d3028!important;color:#ff8f83!important;background:#2b100d!important}
.pill.ok{border-color:#3d7d28!important;color:#74c947!important;background:#102b0d!important}
@media(max-width:700px){
  .pipeline-row{grid-template-columns:1fr!important}
  .admin-pipeline-tabs{display:grid!important;grid-template-columns:1fr 1fr!important}
  .meal-selector-footer{grid-template-columns:1fr!important}
}

/* v83 production → delivery cleanup */
.delivery-card{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.delivery-load-list{
  margin-bottom:16px!important;
}
.delivery-load-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.delivery-primary{
  margin-top:14px!important;
  min-height:54px!important;
}
.delivery-check{
  border:1px solid var(--line,#3d3933)!important;
  border-radius:14px!important;
  padding:14px!important;
  background:#22201c!important;
  margin-bottom:8px!important;
}
.route-dashboard .progress{
  margin-top:14px!important;
}
.current-stop h1,
.delivery-card h1{
  margin:4px 0 8px!important;
  letter-spacing:-.03em!important;
}
.map-placeholder{
  border:1px solid var(--line,#3d3933)!important;
  border-radius:18px!important;
  background:#161512!important;
  min-height:150px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  color:var(--tx2,#bfb8ae)!important;
  margin:12px 0!important;
}
.delivery-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  margin-top:12px!important;
}
@media(max-width:700px){
  .delivery-actions{grid-template-columns:1fr!important;}
}


/* v86 operational cleanup: centered overlay modals, neutral home cards, responsive admin tabs, delivery consistency */
body > .modal:not(.modal-wrap){
  position:fixed!important;
  inset:0!important;
  z-index:9999!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(0,0,0,.72)!important;
  width:auto!important;
  max-height:none!important;
  overflow:auto!important;
  border:0!important;
  border-radius:0!important;
}
body > .modal.hidden{display:none!important}
body > .modal .modal-card{
  width:min(720px,calc(100vw - 36px))!important;
  max-height:88vh!important;
  overflow:auto!important;
  background:#24221f!important;
  border:1px solid #55514a!important;
  border-radius:18px!important;
  padding:20px!important;
  box-shadow:0 24px 80px rgba(0,0,0,.45)!important;
}
body > .modal .modal-x{
  float:right!important;
  border:0!important;
  background:transparent!important;
  color:var(--tx2)!important;
  font-size:28px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.admin-pipeline-tabs{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  gap:8px!important;
}
.admin-pipeline-tabs .prod-tab{
  white-space:normal!important;
  line-height:1.15!important;
  min-height:44px!important;
  padding:10px 8px!important;
  font-size:13px!important;
}
.home-action-card strong,
.home-action-card.clear strong,
.home-action-card.needs-attention strong,
.pipeline-status-strip strong{
  color:var(--tx)!important;
}
.meal-warning-box{margin:8px 0 10px!important;line-height:1.35!important}
body .delivery-card,
body .route-dashboard,
body .current-stop{
  border-radius:18px!important;
  border:1px solid var(--line)!important;
  background:#24221f!important;
}
body .delivery-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:12px!important}
@media(max-width:700px){
  .admin-pipeline-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .delivery-actions{grid-template-columns:1fr!important}
}

/* v87 startup usability cleanup */
.filter-bar{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:8px!important;
  margin:12px 0 14px!important;
}
.tag-picker{display:grid!important;gap:8px!important}
.tag-chip-row{display:flex!important;flex-wrap:wrap!important;gap:6px!important;min-height:34px!important;align-items:center!important}
.tag-chip{display:inline-flex!important;align-items:center!important;gap:6px!important;border:1px solid var(--line,#3d3933)!important;border-radius:999px!important;padding:6px 10px!important;background:#22201c!important;font-size:12px!important;font-weight:800!important}
.tag-chip button{border:0!important;background:transparent!important;color:var(--tx2,#bfb8ae)!important;font-weight:900!important;cursor:pointer!important;padding:0!important}
.tag-add-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
.qty-stepper{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
.qty-input{width:72px!important;text-align:center!important;padding:8px!important}
.warn-text{color:#f0bd4a!important}
.menu-list-view{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.meal-total-pill.warn{border-color:#7d6428!important;color:#f0bd4a!important;background:#2b220d!important}
@media(max-width:700px){.selected-meal-row{align-items:flex-start!important;flex-direction:column!important}.qty-stepper{justify-content:flex-start!important}.tag-add-row{grid-template-columns:1fr!important}}

/* v88 admin workflow cleanup */
.client-edit-card{width:min(760px,calc(100vw - 36px))!important;}
.selected-meal-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  min-height:68px!important;
}
.selected-meal-row strong{
  display:block!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  line-height:1.25!important;
}
.selected-meal-row .qty-stepper{white-space:nowrap!important;flex-wrap:nowrap!important;}
.layered-filter-bar select[multiple]{min-height:88px!important;padding:8px!important;}
.tag-management{background:#211f1c!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:14px!important;}
.tag-admin-group{display:grid!important;gap:8px!important;border-top:1px solid var(--line)!important;padding-top:12px!important;margin-top:12px!important;}
.pipeline-row-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-end!important;}
@media(max-width:760px){
  .selected-meal-row{grid-template-columns:1fr!important;align-items:start!important;}
  .selected-meal-row .qty-stepper{justify-content:flex-start!important;flex-wrap:wrap!important;white-space:normal!important;}
}

/* v92 client map + component management cleanup */
.client-map-card{margin:12px 0 16px;padding:14px;border:1px solid var(--border,#d8dee6);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.client-map{position:relative;height:280px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#eef6ff,#f8fafc);border:1px solid #dbe4ef}
.client-map:before{content:"";position:absolute;inset:18px;border:1px dashed rgba(100,116,139,.35);border-radius:50%;transform:rotate(-12deg)}
.client-map:after{content:"";position:absolute;left:15%;right:12%;top:50%;height:2px;background:rgba(148,163,184,.45);transform:rotate(-8deg)}
.map-label{position:absolute;left:14px;top:12px;font-size:12px;color:#64748b;background:rgba(255,255,255,.75);padding:4px 8px;border-radius:999px}
.map-pin{position:absolute;width:18px;height:18px;border:2px solid #fff;border-radius:999px;transform:translate(-50%,-50%);box-shadow:0 4px 12px rgba(15,23,42,.35);cursor:pointer}
.map-pin:hover{width:24px;height:24px;z-index:5}
.map-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#475569}
.map-legend span{display:inline-flex;align-items:center;gap:5px}.map-legend i{display:inline-block;width:10px;height:10px;border-radius:99px}
.component-check-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:8px}
.component-check-list .check{align-items:flex-start;gap:8px;border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#fff}
.component-admin-card .archive-item{align-items:flex-start}.filter-bar.layered-filter-bar select[multiple]{min-height:76px}

/* v93 focused UI/workflow cleanup */
.admin-pipeline-tabs{
  display:flex!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  gap:8px!important;
  padding:8px 2px 12px!important;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.admin-pipeline-tabs .prod-tab{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  min-width:max-content!important;
  scroll-snap-align:start;
}
body > .modal:not(.hidden){display:flex!important;align-items:center!important;justify-content:center!important;position:fixed!important;inset:0!important;background:rgba(0,0,0,.55)!important;z-index:9999!important;padding:18px!important;}
body > .modal.hidden{display:none!important;}
body > .modal .modal-card{width:min(760px,96vw)!important;max-height:90vh!important;overflow:auto!important;padding:22px!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(0,0,0,.45)!important;}
.real-client-map{height:420px;min-height:320px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#e5e7eb;}
.client-map-card{margin:14px 0;}
.map-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:var(--muted)}
.map-legend span{display:inline-flex;align-items:center;gap:5px}.map-legend i,.day-dot{width:10px;height:10px;border-radius:999px;display:inline-block}.day-monday{background:#2563eb}.day-tuesday{background:#16a34a}.day-wednesday{background:#f59e0b}.day-thursday{background:#9333ea}.day-friday{background:#dc2626}
.menu-grid .archive-item{display:flex!important;flex-direction:column!important;min-height:190px!important;}
.menu-grid .archive-item > div:last-child{margin-top:auto!important;}
.component-admin-card .archive-list{display:grid;gap:10px}.component-admin-card .archive-item{border-radius:14px;padding:14px;}
.phase-list{display:grid;gap:8px;margin-bottom:8px}.phase-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}
.meal-check-grid,.selected-meal-list{display:grid!important;gap:8px!important}.selected-meal-row,.meal-selected-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:10px!important;align-items:center!important;padding:10px!important;border:1px solid var(--line)!important;border-radius:12px!important}.selected-meal-row strong,.meal-selected-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;}
.inventory-record-card,.archive-item{box-sizing:border-box}.archive-item .btn{align-self:center}
body.delivery-body,body .delivery-card{font-family:inherit}.delivery-card{border-radius:18px!important;box-shadow:0 12px 34px rgba(0,0,0,.22)!important;padding:18px!important}.delivery-stop{border-radius:16px!important;padding:14px!important}.delivery-actions .btn,.delivery-card .btn{border-radius:12px!important;padding:12px!important}
@media(max-width:760px){.real-client-map{height:340px}.selected-meal-row,.meal-selected-row{grid-template-columns:1fr!important}.modal-actions{display:grid}.admin-pipeline-tabs{padding-left:4px!important}}

.map-placeholder-message{height:100%;min-height:320px;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#475569;background:#f8fafc;border-radius:16px;font-size:14px}
.map-placeholder-message.bad{color:#991b1b;background:#fef2f2}
.map-info{font:13px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;min-width:190px}

.portal-landing{min-height:100vh;display:grid;place-items:center;padding:24px}.portal-card{max-width:520px;width:100%}.portal-grid{display:grid;gap:12px;margin-top:18px}.collapsible-client-list{margin:12px 0}.collapsible-client-list summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px}.client-map-card{background:var(--card,#fff);border:1px solid var(--line,#dbe4ef);border-radius:18px;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.map-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.map-legend span{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted,#64748b)}

/* v97 admin polish */
.admin-pipeline-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;padding-bottom:8px}.admin-pipeline-tabs .prod-tab{flex:0 0 auto;white-space:nowrap}.collapsible-client-list{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));border:1px solid rgba(255,255,255,.12);border-radius:18px;margin:12px 0;overflow:hidden}.collapsible-client-list summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;list-style:none}.collapsible-client-list summary::-webkit-details-marker{display:none}.collapsible-client-list[open] summary{border-bottom:1px solid rgba(255,255,255,.1)}.collapsible-client-list .archive-list{padding:12px}.client-map-card{background:linear-gradient(180deg,#111827,#0b1220);border:1px solid rgba(148,163,184,.22);border-radius:20px;padding:16px;margin-top:14px}.real-client-map{min-height:430px;border-radius:18px;overflow:hidden;border:1px solid rgba(148,163,184,.22);background:#111827}.map-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;padding:10px;border-radius:14px;background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.16)}.map-legend span{display:flex;align-items:center;gap:6px;font-size:.85rem;color:#d1d5db}.component-admin-card,.inventory-record-card{background:rgba(15,23,42,.55);border:1px solid rgba(148,163,184,.16);border-radius:18px}.component-admin-card .archive-item,.inventory-record-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.component-phase-rows{display:grid;gap:10px;margin-bottom:14px}.component-phase-row{display:grid;grid-template-columns:1.25fr 1.25fr .55fr 1fr auto;gap:8px;align-items:center;padding:10px;border:1px solid rgba(148,163,184,.16);border-radius:14px;background:rgba(255,255,255,.03)}.menu-grid .archive-item{display:flex;flex-direction:column;min-height:170px}.menu-grid .archive-item>div:last-child{margin-top:auto}.weekly-order-card #weeklyRangePreview{margin-top:6px}.map-placeholder-message{display:flex;align-items:center;justify-content:center;min-height:260px;color:#cbd5e1}.map-placeholder-message.bad{color:#fecaca}@media(max-width:760px){.component-phase-row{grid-template-columns:1fr}.component-admin-card .archive-item,.inventory-record-card{display:block}.real-client-map{min-height:340px}}
/* v98 admin/delivery cleanup */
.client-filter-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;align-items:start;margin:12px 0 16px}
.client-filter-panel{position:sticky;top:72px;display:grid;gap:10px;background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(2,6,23,.82));border:1px solid rgba(148,163,184,.22);border-radius:18px;padding:14px;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.client-filter-panel .input{width:100%}.client-list-area{min-width:0}.client-results-list{display:grid;gap:10px;padding:12px}.client-result-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-radius:16px!important;background:rgba(15,23,42,.55)!important;border:1px solid rgba(148,163,184,.16)!important}.client-card-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.collapsible-client-list summary .pill{background:rgba(148,163,184,.16)}
.component-admin-card{margin-top:16px!important;padding:16px!important}.component-admin-card .archive-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px!important}.component-admin-card .archive-item{min-height:128px;display:flex!important;flex-direction:column;justify-content:space-between;background:rgba(15,23,42,.58)!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:18px!important}.component-admin-card .archive-item>div:last-child{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.menu-grid .archive-item strong .pill{margin-right:6px}.menu-grid .archive-item{justify-content:flex-start}.menu-grid .archive-item>div:last-child{margin-top:auto!important;display:flex;gap:8px;flex-wrap:wrap}.inventory-record-card,.inventory-log-card,.archive-item.inventory-record-card{background:rgba(15,23,42,.58)!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:18px!important;padding:14px!important}
#inventoryLogList .archive-list{display:grid;gap:10px}#inventoryLogList .archive-item{background:rgba(15,23,42,.52);border:1px solid rgba(148,163,184,.16);border-radius:18px;padding:14px}#inventoryLogList .archive-item>div:last-child{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.weekly-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.weekly-day-sections{display:grid;gap:10px}.weekly-day-card{background:rgba(15,23,42,.52)!important;border:1px solid rgba(148,163,184,.16)!important;border-radius:18px!important}.weekly-order-client-list{display:grid;gap:5px;margin-top:8px}.delivery-summary-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.delivery-summary-bar>div{background:rgba(15,23,42,.62);border:1px solid rgba(148,163,184,.16);border-radius:16px;padding:10px;text-align:center}.delivery-summary-bar strong{display:block;font-size:1.35rem}.delivery-summary-bar span{font-size:.78rem;color:#94a3b8}.delivery-stop-accordion summary{cursor:pointer;padding:12px;border-radius:14px;background:rgba(15,23,42,.52);border:1px solid rgba(148,163,184,.16)}.delivery-stop-row{cursor:pointer}.delivery-stop-row.current{border-color:#60a5fa!important;box-shadow:0 0 0 1px rgba(96,165,250,.25)}.delivery-stop-row.done{opacity:.55}.delivery-route-map{min-height:360px!important}.delivery-load-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}.delivery-load-row input{width:22px;height:22px}.inline-header-actions .btn{white-space:nowrap}
@media(max-width:820px){.client-filter-layout{grid-template-columns:1fr}.client-filter-panel{position:static}.client-result-card{display:block}.client-card-actions{margin-top:10px}.delivery-summary-bar{grid-template-columns:1fr 1fr 1fr}}


/* v99 focused cleanup overrides */
.client-map-card,.component-admin-card,.inventory-record-card,.delivery-card,.route-dashboard,.weekly-order-card,.collapsible-client-list,.tag-management{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important}.real-client-map{background:#171512!important;border:1px solid var(--line)!important;border-radius:10px!important}.map-legend{background:#1a1916!important;border:1px solid var(--line)!important;color:var(--tx2)!important}.map-legend span{color:var(--tx2)!important}.component-admin-card .archive-item,.inventory-record-card,.inventory-records .archive-item,#inventoryLogList .archive-item{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:10px!important;padding:12px!important;margin-bottom:8px}.component-check-list,.dark-check-list{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:10px!important;padding:8px!important;display:grid;gap:6px;max-height:260px;overflow:auto}.component-check-list label,.dark-check-list label{background:#211f1c!important;border:1px solid var(--line)!important;border-radius:8px!important;padding:8px!important;color:var(--tx)!important}.client-filter-layout{display:grid;grid-template-columns:minmax(190px,235px) 1fr;gap:12px;align-items:start}.client-filter-panel.compact-filter-panel{position:sticky;top:76px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px;display:grid;gap:7px;max-width:235px}.client-filter-panel .input{min-height:34px;padding:7px 9px;font-size:13px}.client-filter-panel select[multiple]{height:auto;max-height:92px}.client-results-list{display:grid;gap:8px;padding:10px}.client-result-card{background:#1b1a17;border:1px solid var(--line);border-radius:10px;padding:11px}.collapsible-client-list summary{background:#1b1a17;border-radius:10px}.menu-filter-clean{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;align-items:end}.filter-field{display:grid;gap:4px}.filter-field span{font-size:11px;color:var(--tx2);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.menu-grid{align-items:stretch}.menu-grid .archive-item{background:#1b1a17;border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;min-height:170px}.menu-grid .archive-item>div:last-child{margin-top:auto}.component-admin-card .archive-list{display:grid;gap:8px}.weekly-summary-strip{display:flex;gap:8px;overflow-x:auto;margin:8px 0 12px}.weekly-summary-strip>div{min-width:120px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px}.weekly-summary-strip strong{font-size:24px;display:block}.weekly-summary-strip span{font-size:12px;color:var(--tx2)}.weekly-day-card summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}.weekly-day-card summary::-webkit-details-marker{display:none}.weekly-order-client-list{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.compact-ok{padding:10px!important}.home-action-card .label,.dash-card .label{color:var(--tx2)!important}.selected-meal-row,.kp-meal-row{display:grid;grid-template-columns:1fr 82px auto;gap:8px;align-items:center;background:#1b1a17;border:1px solid var(--line);border-radius:10px;padding:8px;margin-bottom:8px}.delivery-load-row{display:grid!important;grid-template-columns:42px 1fr auto!important;align-items:center!important;gap:10px!important}.delivery-qty{font-size:20px;font-weight:900;text-align:right;color:var(--accent);font-variant-numeric:tabular-nums}.delivery-summary-bar{display:flex!important;gap:8px!important;justify-content:flex-start!important}.delivery-summary-bar>div{min-width:92px!important;padding:8px 10px!important;background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:10px!important}.delivery-summary-bar strong{font-size:22px!important}.delivery-card{margin-bottom:10px!important;padding:14px!important}.inline-app-header,.fixed-top-header{gap:10px}.inline-header-actions,.fixed-header-actions{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.btn{background:#2a2824;border-color:var(--line);color:var(--tx)}.btn.ok{background:var(--okbg);color:var(--ok);border-color:#416f29}.btn.bad{background:var(--badbg);color:var(--danger);border-color:#5a211d}.btn:hover{filter:brightness(1.08)}@media(max-width:760px){.client-filter-layout{grid-template-columns:1fr}.client-filter-panel.compact-filter-panel{position:relative;top:auto;max-width:none}.inline-app-header,.fixed-top-header{align-items:flex-start}.inline-header-left,.fixed-header-left{min-width:0}.inline-title{font-size:17px}.selected-meal-row,.kp-meal-row{grid-template-columns:1fr}.delivery-summary-bar>div{min-width:82px}.delivery-card{padding:12px!important}}

/* v100 admin-only cleanup */
.icon-home-btn{width:38px;height:38px;min-width:38px;display:inline-flex!important;align-items:center;justify-content:center;font-size:20px;line-height:1;padding:0!important;border-radius:10px!important}
.inline-app-header.admin-header{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;padding:10px 14px!important;gap:10px!important}.inline-app-header .inline-header-left{display:flex;align-items:center;gap:10px;min-width:0}.inline-title{white-space:nowrap}.inline-sync-status{white-space:nowrap}.inline-header-actions{flex:0 0 auto}
.client-shell{overflow:hidden}.client-shell summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between}.collapse-icon::before{content:'+';display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid var(--line);border-radius:8px;background:#2a2824;color:var(--tx);font-weight:900}.client-shell[open] .collapse-icon::before{content:'−'}
.client-shell .client-filter-layout{padding:12px;border-top:1px solid var(--line);grid-template-columns:minmax(170px,220px) 1fr}.client-filter-panel.compact-filter-panel{max-width:220px;padding:9px;border-radius:10px;gap:6px}.client-filter-panel .label{font-size:12px}.client-filter-panel label{margin-top:2px}.client-filter-panel .input{font-size:12px;min-height:32px}.client-filter-panel select[multiple]{max-height:76px}.client-results-list{padding:0!important}.client-result-card{margin:0!important}.meal-selector-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 10px}.meal-total-pill{white-space:nowrap}.selected-meal-row{grid-template-columns:minmax(0,1fr) auto!important}.selected-meal-row strong{overflow-wrap:anywhere}.qty-stepper{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.qty-input{width:56px!important;text-align:center}.inventory-record-card{display:flex!important;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px!important}.inventory-record-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;min-width:190px}.week-history-select{margin:8px 0 12px;max-width:420px}.component-admin-card .btn{border-radius:10px}.tag-chip button{cursor:pointer}
@media(max-width:760px){.inline-app-header.admin-header{padding:8px 10px!important}.inline-app-header .inline-brand-icon{width:30px;height:30px;min-width:30px}.inline-title{font-size:16px!important}.inline-sync-status{font-size:11px}.icon-home-btn{width:34px;height:34px;min-width:34px;font-size:18px}.client-shell .client-filter-layout{grid-template-columns:1fr}.client-filter-panel.compact-filter-panel{max-width:none;position:relative;top:auto}.meal-selector-toolbar{align-items:stretch;flex-direction:column}.selected-meal-row{grid-template-columns:1fr!important}.qty-stepper{justify-content:flex-start;flex-wrap:wrap}.inventory-record-card{display:block!important}.inventory-record-actions{justify-content:flex-start;margin-top:10px;min-width:0}}

/* v101 admin-only polish overrides */
.inline-app-header.admin-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px 12px!important;
  flex-wrap:nowrap!important;
}
.inline-app-header.admin-header .inline-header-left{
  display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;flex-wrap:nowrap!important;
}
.inline-app-header.admin-header .inline-brand-icon{flex:0 0 auto!important;width:40px!important;height:40px!important;min-width:40px!important}
.inline-app-header.admin-header .inline-title{font-size:20px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important}
.inline-app-header.admin-header .inline-sync-status{font-size:15px!important;white-space:nowrap!important;flex:0 0 auto!important}
.inline-app-header.admin-header .inline-header-actions{position:static!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;margin:0!important}
.inline-app-header.admin-header .icon-home-btn{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;font-size:0!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#2a2824!important;border:1px solid var(--line)!important;color:var(--tx)!important;transform:none!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important}
.inline-app-header.admin-header .icon-home-btn::before{content:'⌂';font-size:17px;line-height:1;color:var(--tx)}

.client-shell,.collapsible-client-list,.client-result-card,.client-filter-panel.compact-filter-panel{background:var(--panel)!important;border-color:var(--line)!important;box-shadow:none!important;color:var(--tx)!important}
.client-result-card{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:10px!important;padding:12px!important}
.client-shell summary{background:#1b1a17!important;border-radius:10px!important;color:var(--tx)!important}
.client-shell .client-filter-layout{padding:10px!important;gap:10px!important;grid-template-columns:minmax(160px,210px) minmax(0,1fr)!important}
.client-filter-panel.compact-filter-panel{max-width:210px!important;padding:8px!important;gap:6px!important}
.client-filter-panel.compact-filter-panel .input{min-height:30px!important;font-size:12px!important;padding:6px 8px!important}

.meal-check-grid{display:block!important;width:100%!important}
.meal-selector-toolbar{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:10px!important;margin:8px 0 12px!important;width:100%!important}
.add-meal-option-btn{width:100%!important;justify-content:center!important}
.meal-total-pill{justify-self:end!important;white-space:nowrap!important;padding:10px 16px!important;border-radius:999px!important;background:#2a210b!important;border:1px solid #876b12!important;color:#ffd85a!important;font-weight:900!important}
.selected-meal-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:10px!important;width:100%!important}
.selected-meal-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-items:start!important;background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:12px!important;margin:0!important;min-height:0!important}
.selected-meal-row strong{overflow-wrap:anywhere!important;line-height:1.15!important}
.qty-stepper{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important;flex-wrap:nowrap!important}.qty-input{width:64px!important;text-align:center!important}

.component-admin-card,.component-admin-card .archive-item,#inventoryLogList .archive-item,.inventory-record-card,.weekly-day-card,.week-group .archive-item{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;color:var(--tx)!important;box-shadow:none!important}
.component-admin-card{padding:14px!important;margin-top:14px!important}.component-admin-card .archive-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;gap:10px!important}.component-admin-card .archive-item{padding:12px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-height:132px!important}.component-admin-card .archive-item>div:last-child{display:flex!important;gap:8px!important;align-items:center!important;margin-top:12px!important}.component-admin-card .btn{min-width:76px!important}
#inventoryLogList .archive-list{display:grid!important;gap:10px!important}#inventoryLogList .archive-item,.inventory-record-card{padding:14px!important;margin:0 0 10px 0!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important}.inventory-record-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important}

.weekly-order-card .section-head{align-items:flex-start!important}.weekly-order-card .small.muted{line-height:1.25!important}.weekly-order-controls{grid-template-columns:minmax(0,1fr) minmax(190px,240px)!important;align-items:end!important;gap:12px!important}.weekly-order-card{padding:16px!important}.weekly-order-card #weeklyRangePreview{font-size:12px!important;margin-top:5px!important}.week-history-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important;align-items:end!important;margin:10px 0!important}.weekly-summary-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;margin:10px 0 14px!important}.weekly-summary-strip>div{min-width:0!important;text-align:center!important;padding:10px 6px!important;background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important}.weekly-summary-strip strong{font-size:28px!important;line-height:1!important}.weekly-summary-strip span{font-size:12px!important;display:block;margin-top:4px!important}.weekly-day-card{padding:0!important;overflow:hidden!important}.weekly-day-card summary{padding:12px!important}.weekly-day-card .weekly-order-client-list{padding:10px 12px!important;background:#171512!important}
.home-action-card.needs-attention{background:#2a210b!important;border-color:#876b12!important;color:var(--tx)!important}

@media(max-width:760px){
  .inline-app-header.admin-header{grid-template-columns:minmax(0,1fr) 38px!important;padding:7px 10px!important;gap:6px!important}
  .inline-app-header.admin-header .inline-brand-icon{width:34px!important;height:34px!important;min-width:34px!important}
  .inline-app-header.admin-header .inline-title{font-size:18px!important;max-width:38vw!important}
  .inline-app-header.admin-header .inline-sync-status{font-size:14px!important}
  .inline-app-header.admin-header .icon-home-btn{width:34px!important;height:34px!important;min-width:34px!important}
  .client-shell .client-filter-layout{grid-template-columns:1fr!important}
  .client-filter-panel.compact-filter-panel{max-width:none!important;position:relative!important;top:auto!important}
  .meal-selector-toolbar{grid-template-columns:1fr!important}.meal-total-pill{justify-self:start!important}.selected-meal-list{grid-template-columns:1fr!important}
  .weekly-order-controls{grid-template-columns:1fr!important}.week-history-row{grid-template-columns:1fr auto auto!important}.weekly-summary-strip{grid-template-columns:repeat(3,1fr)!important}.weekly-summary-strip strong{font-size:24px!important}.weekly-summary-strip span{font-size:11px!important}
  #inventoryLogList .archive-item,.inventory-record-card{display:block!important}.inventory-record-actions{justify-content:flex-start!important;margin-top:10px!important}
}


/* v102 focused alignment/spacing cleanup */
.portal-header,
.inline-app-header.portal-header,
.fixed-top-header.portal-header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;padding:10px 14px!important;background:#161512!important;border-bottom:1px solid var(--line)!important;
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;z-index:5!important;box-sizing:border-box!important;
}
.portal-header .inline-header-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;}
.portal-header .inline-title{font-size:20px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;}
.portal-header .inline-sync-status{white-space:nowrap!important;flex:0 0 auto!important;}
.portal-header .inline-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;margin:0!important;position:static!important;}
.icon-home-btn{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#2a2824!important;border:1px solid var(--line)!important;color:var(--tx)!important;font-size:0!important;line-height:1!important;transform:none!important;position:static!important;margin:0!important;}
.icon-home-btn::before{content:'⌂';font-size:17px;line-height:1;color:var(--tx);display:block;transform:translateY(-1px)}
.admin-header .icon-home-btn::before{content:'⌂'!important;}
.production-normal-header{margin:0!important;}

/* client form meal selector */
.meal-selector-toolbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;margin:0 0 10px!important;}
.meal-total-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:8px 18px!important;border-radius:999px!important;font-weight:900!important;}
.selected-meal-list{display:grid!important;gap:10px!important;margin-bottom:10px!important;}
.add-meal-option-btn{width:100%!important;min-height:48px!important;margin-top:6px!important;}
.selected-meal-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:10px!important;align-items:center!important;background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:12px!important;margin:0!important;min-height:72px!important;}
.selected-meal-text{min-width:0!important;display:grid!important;gap:3px!important;}
.selected-meal-text strong{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important;}
.qty-stepper{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;}
.qty-stepper .qty-input{width:58px!important;text-align:center!important;padding-left:6px!important;padding-right:6px!important;}
.qty-btn{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.remove-meal-btn{height:38px!important;align-self:center!important;}
.empty-selected-meals{background:#1b1a17;border:1px solid var(--line);border-radius:10px;padding:12px;margin:0;}

/* client list neutral collapse */
.collapsible-client-list{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:0!important;overflow:hidden!important;}
.collapsible-client-list summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;background:#1b1a17!important;padding:14px 16px!important;cursor:pointer!important;list-style:none!important;border-bottom:1px solid transparent!important;}
.collapsible-client-list[open] summary{border-bottom-color:var(--line)!important;}
.collapsible-client-list summary::-webkit-details-marker{display:none!important;}
.collapse-icon{width:32px!important;height:32px!important;min-width:32px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:#24221f!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;}
.collapse-icon::before{content:'+';font-size:22px;font-weight:900;line-height:1;display:block;transform:translateY(-1px)}
.collapsible-client-list[open] .collapse-icon::before{content:'−';font-size:24px;transform:translateY(-2px)}
.client-filter-layout{padding:12px!important;background:#171613!important;}
.client-result-card{background:#1f1d1a!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:12px!important;display:flex!important;justify-content:space-between!important;gap:10px!important;align-items:flex-start!important;}
.client-card-actions{display:flex!important;gap:6px!important;align-items:center!important;flex:0 0 auto!important;}

/* menu/component card consistency */
.menu-grid .archive-item,.component-admin-card .pipeline-row{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:8px!important;background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:12px!important;min-height:166px!important;}
.menu-grid .archive-item > div:last-child,.component-admin-card .card-actions{margin-top:auto!important;display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-start!important;}
.component-admin-card{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:16px!important;}
.component-check-list,.dark-check-list{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:10px!important;display:grid!important;gap:8px!important;}
.component-check-list label,.dark-check-list label{background:#24221f!important;border:1px solid var(--line)!important;border-radius:10px!important;color:var(--tx)!important;padding:10px!important;display:flex!important;gap:8px!important;align-items:center!important;}

/* system tags */
.tag-management{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:16px!important;overflow:hidden!important;}
.tag-admin-group{padding:12px 0!important;border-top:1px solid var(--line)!important;}
.tag-chip{background:#24221f!important;border:1px solid var(--line)!important;color:var(--tx)!important;}
.tag-chip button{background:transparent!important;border:0!important;color:var(--tx2)!important;font-weight:900!important;padding:2px 4px!important;}

/* inventory records spacing */
.inventory-records,.inventory-record-card,#inventoryLogList{box-sizing:border-box!important;}
#inventoryLogList{display:grid!important;gap:10px!important;margin-top:12px!important;padding:0!important;}
#inventoryLogList .archive-item,.inventory-record-card{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:14px!important;margin:0!important;}
.inventory-record-actions{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;margin-top:10px!important;}
#adminTab-intake .card.san + .card.san, #adminTab-intake .card{padding:18px!important;}
#adminTab-intake .label{margin-bottom:4px!important;}

/* weekly generated week controls */
.week-history-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important;align-items:end!important;margin:8px 0 12px!important;}
.week-history-row .field{margin:0!important;}
.week-history-row .btn{height:48px!important;align-self:end!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.weekly-summary-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;}
.weekly-summary-strip>div{min-width:0!important;text-align:center!important;padding:12px 6px!important;background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;}
.weekly-summary-strip strong{font-size:28px!important;line-height:1!important;}
.weekly-day-card{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:12px!important;}
.weekly-day-card summary{align-items:center!important;}

/* modal spacing */
.modal-card{background:#1b1a17!important;border:1px solid var(--line)!important;border-radius:16px!important;padding:18px!important;}
.modal-actions,.trace-grid{gap:10px!important;}
#clientMealOptionModal .modal-card,#mealOptionModal .modal-card{padding:18px!important;}
#clientMealOptionModal .modal-actions,#mealOptionModal .modal-actions{margin-top:14px!important;}

@media(max-width:760px){
  .portal-header,.inline-app-header.portal-header,.fixed-top-header.portal-header{padding:8px 10px!important;gap:6px!important;}
  .portal-header .inline-brand-icon{width:34px!important;height:34px!important;min-width:34px!important;}
  .portal-header .inline-title{font-size:17px!important;max-width:42vw!important;}
  .portal-header .inline-sync-status{font-size:13px!important;}
  .icon-home-btn{width:34px!important;height:34px!important;min-width:34px!important;}
  .selected-meal-row{grid-template-columns:1fr!important;align-items:stretch!important;}
  .qty-stepper{justify-content:flex-start!important;}
  .remove-meal-btn{width:100%!important;}
  .client-filter-layout{grid-template-columns:1fr!important;padding:10px!important;}
  .client-result-card{display:grid!important;grid-template-columns:1fr!important;}
  .week-history-row{grid-template-columns:1fr 1fr!important;}
  .week-history-row .week-history-select{grid-column:1 / -1!important;}
  .weekly-summary-strip{gap:6px!important;}
  .weekly-summary-strip strong{font-size:24px!important;}
  .weekly-summary-strip span{font-size:11px!important;}
}


/* v103 admin-only cleanup */
.add-meal-option-btn[disabled]{opacity:.45!important;cursor:not-allowed!important;filter:grayscale(.25)!important;}
#clientMealOptionModal .modal-card{display:grid!important;gap:12px!important;}
#clientMealOptionModal .modal-action-spacer{margin-top:16px!important;padding-top:6px!important;}
#clientMealOptionModal .meal-warning-box{margin:6px 0 2px!important;padding:8px 10px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#171512!important;}

/* clean single collapse button */
.collapse-icon{box-sizing:border-box!important;width:34px!important;height:34px!important;min-width:34px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#24221f!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;line-height:1!important;box-shadow:none!important;}
.collapse-icon::before{content:'+'!important;display:block!important;font-size:22px!important;line-height:1!important;font-weight:900!important;transform:translateY(-1px)!important;}
.collapsible-client-list[open] .collapse-icon::before{content:'−'!important;font-size:24px!important;transform:translateY(-2px)!important;}
.collapsible-client-list summary *{box-shadow:none!important;}

/* meal + component card buttons unified */
.menu-grid .archive-item .btn,.component-admin-card .btn{height:40px!important;min-width:78px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;}
.menu-grid .archive-item>div:last-child,.component-admin-card .archive-item>div:last-child,.component-admin-card .card-actions{margin-top:auto!important;display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-start!important;}
.menu-grid .archive-item,.component-admin-card .archive-item{min-height:170px!important;}

/* inventory record section spacing parity */
#adminTab-intake > section.card:not(.san){padding:18px!important;margin-top:18px!important;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px!important;}
.inventory-records-head{margin:0 0 12px 0!important;padding:0!important;}
#inventoryLogList .archive-list{padding:0!important;margin:0!important;display:grid!important;gap:10px!important;}
#inventoryLogList .archive-item{padding:14px!important;margin:0!important;}

/* weekly controls alignment */
.weekly-order-controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(220px,260px)!important;align-items:end!important;gap:12px!important;}
.weekly-order-controls .input,.weekly-generate-field .btn{height:48px!important;min-height:48px!important;box-sizing:border-box!important;}
.weekly-generate-field{display:grid!important;align-content:end!important;}
.week-history-row{align-items:end!important;}
.week-history-row .input,.week-history-row .btn{height:48px!important;min-height:48px!important;box-sizing:border-box!important;}

/* remove clutter pills if legacy markup slips through */
#adminTab-menu .section-head.no-top > .pill,
#adminTab-intake .section-head.no-top > .pill,
#adminTab-orders .section-head.no-top > .pill,
#adminTab-queue .section-head.no-top > .pill,
.weekly-day-card summary > .pill{display:none!important;}

@media(max-width:760px){
  .weekly-order-controls{grid-template-columns:1fr!important;}
  .weekly-generate-field label{display:none!important;}
  .weekly-generate-field .btn{margin-top:4px!important;}
  .week-history-row{grid-template-columns:1fr 1fr!important;}
  .week-history-row .week-history-select{grid-column:1 / -1!important;}
}

/* v104 portal/header/admin consistency patch */
.portal-header,.inline-app-header.portal-header,.fixed-top-header.portal-header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:62px!important;height:62px!important;padding:10px 16px!important;gap:12px!important;background:var(--panel,#1f1d1a)!important;border-bottom:1px solid var(--line,#3a3631)!important;box-sizing:border-box!important;overflow:visible!important;
}
.portal-header .inline-header-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;white-space:nowrap!important;}
.portal-header .inline-title{display:block!important;font-weight:800!important;font-size:22px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;max-width:none!important;color:var(--text,#f4f1ea)!important;}
.portal-header .inline-brand-icon{width:42px!important;height:42px!important;min-width:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.portal-header .inline-sync-status{font-size:14px!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;color:var(--muted,#b8b0a6)!important;}
.portal-header .inline-header-actions{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;margin:0!important;position:static!important;}
.icon-home-btn{width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:14px!important;font-size:0!important;line-height:1!important;}
.icon-home-btn::before{content:'⌂';font-size:20px!important;line-height:1!important;display:block!important;transform:translateY(-1px);}
@media(max-width:560px){.portal-header,.inline-app-header.portal-header{height:56px!important;min-height:56px!important;padding:8px 10px!important;gap:8px!important}.portal-header .inline-brand-icon{width:36px!important;height:36px!important;min-width:36px!important}.portal-header .inline-title{font-size:18px!important;max-width:44vw!important}.portal-header .inline-sync-status{font-size:12px!important}.icon-home-btn{width:34px!important;height:34px!important;min-width:34px!important;border-radius:12px!important}.icon-home-btn::before{font-size:17px!important}}

/* client list collapse and meal selector polish */
.client-list-toggle,.client-collapse-toggle,.collapse-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border-radius:12px!important;background:#24211d!important;border:1px solid #464139!important;box-shadow:none!important;line-height:1!important;position:relative!important;}
.client-list-toggle *,.client-collapse-toggle *,.collapse-toggle *{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;margin:0!important;padding:0!important;box-shadow:none!important;background:transparent!important;border:0!important;position:static!important;}
.client-card,.client-row,.client-list-card{background:#171612!important;border:1px solid #393530!important;color:#f3efe7!important;box-shadow:none!important;}
.selected-meal-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:12px!important;margin:12px 0!important;}
.meal-counter-row{display:flex!important;justify-content:flex-start!important;margin:0 0 10px!important;}
.selected-meal-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important;padding:14px!important;border:1px solid #3d3933!important;border-radius:18px!important;background:#191814!important;min-height:96px!important;}
.selected-meal-main{min-width:0!important}.selected-meal-main strong{display:block!important;overflow-wrap:anywhere!important}.qty-controls{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}.meal-qty-input,.qty-input{width:64px!important;text-align:center!important}.add-meal-option-btn[disabled],.btn[disabled]{opacity:.45!important;filter:grayscale(.35)!important;cursor:not-allowed!important}.meal-option-card{padding:24px!important}.meal-option-card .field{margin-bottom:16px!important}.meal-option-actions{margin-top:24px!important;padding-top:8px!important}
@media(max-width:560px){.selected-meal-list{grid-template-columns:1fr!important}.selected-meal-card{grid-template-columns:1fr!important;align-items:stretch!important}.qty-controls{justify-content:flex-start!important}}

/* meals/components card button consistency */
.meal-card,.component-card,.pipeline-row,.archive-item{background:#171612!important;border:1px solid #3b3730!important;border-radius:18px!important;}
.meal-card .card-actions,.component-card .card-actions,.archive-item .card-actions,.pipeline-row-actions{display:flex!important;align-items:center!important;gap:10px!important;margin-top:16px!important;justify-content:flex-start!important;}
.meal-card .btn.small,.component-card .btn.small,.archive-item .btn.small,.pipeline-row-actions .btn.small{min-height:38px!important;min-width:86px!important;padding:8px 14px!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.dark-check-list,.component-check-list{background:#171612!important;border:1px solid #3b3730!important;border-radius:16px!important;padding:12px!important;display:grid!important;gap:8px!important}.dark-check-list label,.component-check-list label{background:#22201b!important;border:1px solid #403c35!important;border-radius:12px!important;padding:10px 12px!important;color:#f3efe7!important}

/* inventory records spacing */
#inventoryLogList{padding:0!important}.inventory-record-shell{padding:0!important}.inventory-records-head{padding:0 4px 16px!important;margin:0!important}.inventory-record-list{display:grid!important;gap:12px!important;margin:0!important}.inventory-record-card{padding:16px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important}.inventory-record-main{min-width:0!important}.inventory-record-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important;min-width:190px!important}@media(max-width:680px){.inventory-record-card{display:grid!important}.inventory-record-actions{justify-content:flex-start!important;min-width:0!important}}

/* weekly orders compact alignment */
.weekly-order-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:14px!important}.weekly-generate-field{align-self:end!important}.weekly-generate-field .btn,#adminTab-orders .weekly-order-controls .btn{height:52px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.week-history-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:end!important;gap:10px!important;margin:12px 0!important}.week-history-row .btn{height:48px!important}.weekly-summary-strip{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin:14px 0!important}.weekly-summary-strip>div{min-width:0!important;text-align:center!important;padding:14px 8px!important;border:1px solid #3b3730!important;border-radius:16px!important;background:#171612!important}.weekly-summary-strip strong{display:block!important;font-size:28px!important}.weekly-summary-strip span{display:block!important;font-size:12px!important;color:#b7aea4!important}.weekly-day-card{background:#171612!important;border-color:#3b3730!important}.weekly-day-card summary{cursor:pointer!important;list-style:none!important;display:flex!important;justify-content:space-between!important;align-items:center!important}@media(max-width:560px){.weekly-order-controls{grid-template-columns:1fr!important}.week-history-row{grid-template-columns:1fr!important}.weekly-summary-strip{gap:6px!important}.weekly-summary-strip strong{font-size:24px!important}.weekly-summary-strip span{font-size:11px!important}}

.pill.ok,.status-approved{background:#10340e!important;border-color:#2c8a25!important;color:#7ddc52!important}


/* v105 admin cleanup: collapse, components, inventory, weekly alignment */
.collapsible-client-list.client-shell{background:#171612!important;border:1px solid #3b3730!important;border-radius:18px!important;overflow:hidden!important;margin:12px 0 16px!important;box-shadow:none!important;}
.collapsible-client-list.client-shell summary{min-height:54px!important;padding:12px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;list-style:none!important;cursor:pointer!important;}
.collapsible-client-list.client-shell summary::-webkit-details-marker{display:none!important;}
.collapsible-client-list.client-shell[open] summary{border-bottom:1px solid #3b3730!important;}
.collapse-icon{appearance:none!important;-webkit-appearance:none!important;width:36px!important;height:36px!important;min-width:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;border:1px solid #464139!important;border-radius:12px!important;background:#24211d!important;color:#f3efe7!important;line-height:1!important;box-shadow:none!important;position:relative!important;}
.collapse-icon::before{content:'+'!important;position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;font-weight:900!important;line-height:1!important;transform:none!important;}
.collapsible-client-list[open] .collapse-icon::before{content:'−'!important;font-size:24px!important;transform:none!important;}
.client-filter-layout{padding:12px!important;background:transparent!important;}
.client-result-card{background:#171612!important;border:1px solid #3b3730!important;border-radius:14px!important;}

.components-section{background:#171612!important;border:1px solid #3b3730!important;border-radius:18px!important;padding:16px!important;}
.components-section .section-head{padding:0!important;margin:0 0 12px!important;}
.component-filter-bar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 12px!important;}
.component-results.card-view{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:12px!important;}
.component-results.list-view{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.component-item-card{background:#171612!important;border:1px solid #3b3730!important;border-radius:18px!important;padding:16px!important;display:flex!important;flex-direction:column!important;min-height:190px!important;}
.component-item-card .card-actions,.menu-grid .archive-item>div:last-child{margin-top:auto!important;display:flex!important;gap:10px!important;align-items:center!important;justify-content:flex-start!important;}
.component-item-card .btn.small,.menu-grid .archive-item .btn.small{height:40px!important;min-width:86px!important;padding:0 14px!important;border-radius:12px!important;}
.component-phase-stack{display:grid!important;gap:3px!important;margin-top:8px!important;line-height:1.32!important;}
.add-component-bottom{margin-top:14px!important;height:48px!important;}
.component-check-list{background:#171612!important;border:1px solid #3b3730!important;border-radius:14px!important;padding:10px!important;}
.component-check-list label{background:#22201b!important;border:1px solid #403c35!important;color:#f3efe7!important;}

.inventory-record-shell{background:#171612!important;border:1px solid #3b3730!important;border-radius:18px!important;padding:16px!important;margin-top:14px!important;}
.inventory-records-head{padding:0!important;margin:0 0 14px!important;}
.inventory-record-list{display:grid!important;gap:12px!important;margin:0!important;}
.inventory-record-card{background:#171612!important;border:1px solid #3b3730!important;border-radius:18px!important;padding:16px!important;}
.inventory-record-actions .btn{height:38px!important;min-width:82px!important;border-radius:12px!important;}

.weekly-order-controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,270px)!important;align-items:end!important;gap:12px!important;}
.weekly-order-controls .field,.weekly-generate-field{margin:0!important;align-self:end!important;}
.weekly-order-controls .input,.weekly-order-controls .btn{height:52px!important;min-height:52px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.weekly-actions .btn[disabled]{opacity:.45!important;filter:saturate(.55)!important;}
@media(max-width:760px){.component-filter-bar,.weekly-order-controls{grid-template-columns:1fr!important}.client-filter-layout{grid-template-columns:1fr!important}.component-results.card-view{grid-template-columns:1fr!important}}


/* v106 targeted fix: Client List collapse/header only */
.collapsible-client-list.client-shell{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  padding:0!important;
  margin:12px 0 16px!important;
  box-shadow:none!important;
}
.collapsible-client-list.client-shell .client-list-header{
  min-height:52px!important;
  padding:12px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  background:var(--panel)!important;
  border:0!important;
}
.collapsible-client-list.client-shell.is-open .client-list-header{
  border-bottom:1px solid var(--line)!important;
}
.collapsible-client-list.client-shell .collapse-icon{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:#24221f!important;
  color:var(--tx)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  box-shadow:none!important;
  position:static!important;
  text-align:center!important;
}
.collapsible-client-list.client-shell .collapse-icon::before,
.collapsible-client-list.client-shell[open] .collapse-icon::before{
  content:none!important;
  display:none!important;
}
.collapsible-client-list.client-shell .collapse-icon span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
}
.collapsible-client-list.client-shell .client-list-body{
  padding:10px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
}
.collapsible-client-list.client-shell .client-filter-layout{
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  display:grid!important;
  grid-template-columns:minmax(160px,210px) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
}
.collapsible-client-list.client-shell.is-collapsed .client-list-body{
  display:none!important;
}
@media(max-width:760px){
  .collapsible-client-list.client-shell .client-filter-layout{grid-template-columns:1fr!important;}
}


/* v107 exact fix: Client List collapse button only */
.collapsible-client-list.client-shell .collapse-icon{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  max-width:36px!important;
  max-height:36px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:#24221f!important;
  color:var(--tx)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
  overflow:hidden!important;
}
.collapsible-client-list.client-shell .collapse-icon::before,
.collapsible-client-list.client-shell .collapse-icon::after{
  content:none!important;
  display:none!important;
}
.collapsible-client-list.client-shell .collapse-icon span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  position:static!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1!important;
  text-align:center!important;
  transform:none!important;
  pointer-events:none!important;
}

/* v108 targeted fix: Clients list alignment only */
.collapsible-client-list.client-shell .collapse-icon{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  max-width:36px!important;
  max-height:36px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:#24221f!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  line-height:1!important;
  box-sizing:border-box!important;
  cursor:pointer!important;
  overflow:hidden!important;
  vertical-align:middle!important;
}
.collapsible-client-list.client-shell .collapse-icon span{
  display:none!important;
  line-height:1!important;
}
.collapsible-client-list.client-shell .collapse-icon::before,
.collapsible-client-list.client-shell .collapse-icon::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:14px!important;
  height:2px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--tx)!important;
  transform:translate(-50%,-50%)!important;
  box-shadow:none!important;
}
.collapsible-client-list.client-shell.is-collapsed .collapse-icon::after{
  transform:translate(-50%,-50%) rotate(90deg)!important;
}
.collapsible-client-list.client-shell.is-open .collapse-icon::after{
  display:none!important;
}
.client-result-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.client-result-card > div:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}
.client-card-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
  align-self:center!important;
}
@media(max-width:760px){
  .client-result-card{align-items:flex-start!important;}
  .client-card-actions{justify-content:flex-start!important;margin-top:10px!important;}
}

/* v109 micro-fix: visual center collapse icon + center client action buttons without resizing cards */
.collapsible-client-list.client-shell .collapse-icon{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  max-width:36px!important;
  max-height:36px!important;
  padding:0!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
.collapsible-client-list.client-shell .collapse-icon span{
  display:none!important;
  line-height:1!important;
}
.collapsible-client-list.client-shell .collapse-icon::before,
.collapsible-client-list.client-shell .collapse-icon::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:calc(50% - 1px)!important;
  width:14px!important;
  height:2px!important;
  border-radius:999px!important;
  background:var(--tx)!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  box-shadow:none!important;
}
.collapsible-client-list.client-shell.is-collapsed .collapse-icon::after{
  transform:translate(-50%,-50%) rotate(90deg)!important;
}
.collapsible-client-list.client-shell.is-open .collapse-icon::after{
  display:none!important;
}
.client-result-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.client-result-card > div:first-child{
  flex:1 1 auto!important;
  min-width:0!important;
}
.client-card-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
  margin-top:0!important;
}
@media(max-width:760px){
  .client-result-card{align-items:center!important;}
  .client-card-actions{align-self:center!important;align-items:center!important;justify-content:center!important;margin-top:0!important;}
}


/* v110 exact fix: Client List collapse button only */
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  max-width:38px!important;
  max-height:38px!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#2a2824!important;
  color:var(--tx)!important;
  line-height:1!important;
  text-align:center!important;
  cursor:pointer!important;
  position:relative!important;
  overflow:hidden!important;
  vertical-align:middle!important;
}
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon:hover{
  background:#34322d!important;
  filter:none!important;
}
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon:active{
  background:#3a3731!important;
  transform:translateY(1px)!important;
}
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon::before,
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon::after{
  content:none!important;
  display:none!important;
}
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon .collapse-symbol{
  display:block!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  position:relative!important;
  line-height:1!important;
  font-size:0!important;
  pointer-events:none!important;
  transform:none!important;
}
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon .collapse-symbol::before,
.collapsible-client-list.client-shell .client-list-collapse-btn.collapse-icon .collapse-symbol::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:14px!important;
  height:2px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:currentColor!important;
  transform:translate(-50%,-50%)!important;
  box-shadow:none!important;
  line-height:1!important;
}
.collapsible-client-list.client-shell.is-collapsed .client-list-collapse-btn.collapse-icon .collapse-symbol::after{
  transform:translate(-50%,-50%) rotate(90deg)!important;
}
.collapsible-client-list.client-shell.is-open .client-list-collapse-btn.collapse-icon .collapse-symbol::after{
  display:none!important;
}


/* v111 Menu tab only: closed multi-select filters + meal/component parity */
#menuList .menu-filter-clean,
#menuList .component-filter-bar{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;
  gap:8px!important;
  align-items:end!important;
}
#menuList .app-multi-wrap{position:relative;min-width:0;}
#menuList .app-multi-trigger{
  width:100%!important;
  min-height:40px!important;
  height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  cursor:pointer!important;
  text-align:left!important;
  line-height:1!important;
  padding:0 10px!important;
}
#menuList .multi-caret{line-height:1;opacity:.8;}
#menuList .multi-filter-chips{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px;min-height:18px;}
#menuList .mini-chip{font-size:11px;line-height:1;border:1px solid var(--line);background:#211f1c;color:var(--tx2);border-radius:999px;padding:4px 7px;}
#menuList .app-multi-menu{
  position:absolute!important;
  z-index:80!important;
  top:calc(100% + 6px)!important;
  left:0!important;
  right:0!important;
  max-height:240px!important;
  overflow:auto!important;
  background:#1b1a17!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  box-shadow:0 14px 38px rgba(0,0,0,.45)!important;
  padding:8px!important;
}
#menuList .app-multi-menu.hidden{display:none!important;}
#menuList .app-multi-option{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px!important;
  border-radius:8px!important;
  color:var(--tx)!important;
  cursor:pointer!important;
}
#menuList .app-multi-option:hover{background:rgba(255,255,255,.05)!important;}
#menuList .multi-menu-actions{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:8px;margin-top:8px;}
#menuList .menu-grid,
#menuList .component-results.card-view{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
#menuList .menu-list-view,
#menuList .component-results.list-view{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
#menuList .menu-item-card,
#menuList .component-item-card{
  background:#1b1a17!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  padding:12px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-height:178px!important;
  height:auto!important;
}
#menuList .menu-card-body,
#menuList .component-card-body{display:grid!important;gap:6px!important;min-width:0!important;}
#menuList .menu-item-card strong,
#menuList .component-item-card strong{display:block!important;line-height:1.25!important;}
#menuList .menu-item-card .card-actions,
#menuList .component-item-card .card-actions{
  margin-top:auto!important;
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
}
#menuList .menu-item-card .btn.small,
#menuList .component-item-card .btn.small{
  height:40px!important;
  min-width:86px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#menuList .component-admin-card{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  padding:14px!important;
}
#menuList .add-component-bottom,
#menuList > .btn.full.ok{margin-top:10px!important;}
@media(max-width:760px){
  #menuList .menu-filter-clean,#menuList .component-filter-bar{grid-template-columns:1fr!important;}
  #menuList .menu-grid,#menuList .component-results.card-view{grid-template-columns:1fr!important;}
}

/* v112 Menu filters only: match app select controls and stay closed until clicked */
#menuList .filter-field.app-multi-wrap{
  position:relative!important;
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
#menuList .app-multi-trigger.input{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#1b1a17!important;
  color:var(--tx)!important;
  font:inherit!important;
  font-size:14px!important;
  line-height:1!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  cursor:pointer!important;
  text-align:left!important;
}
#menuList .app-multi-trigger:hover,
#menuList .app-multi-trigger[aria-expanded="true"]{
  filter:brightness(1.08)!important;
  border-color:rgba(255,255,255,.22)!important;
}
#menuList .app-multi-label{font-size:14px!important;color:var(--tx)!important;text-transform:none!important;letter-spacing:0!important;font-weight:500!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
#menuList .multi-caret{font-size:13px!important;line-height:1!important;color:var(--tx2)!important;transform:none!important;flex:0 0 auto!important;}
#menuList .app-multi-menu{
  position:absolute!important;
  top:calc(100% + 6px)!important;
  left:0!important;
  right:0!important;
  display:grid!important;
  gap:4px!important;
  max-height:240px!important;
  overflow:auto!important;
  z-index:500!important;
  background:#1b1a17!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  box-shadow:0 16px 40px rgba(0,0,0,.48)!important;
  padding:8px!important;
}
#menuList .app-multi-menu.hidden{display:none!important;}
#menuList .multi-filter-chips{display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-height:0!important;margin-top:2px!important;}
#menuList .mini-chip{font-size:11px!important;line-height:1!important;border:1px solid var(--line)!important;background:#211f1c!important;color:var(--tx2)!important;border-radius:999px!important;padding:4px 7px!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important;}
#menuList .app-multi-option{display:flex!important;align-items:center!important;gap:8px!important;padding:8px!important;border-radius:8px!important;color:var(--tx)!important;cursor:pointer!important;}
#menuList .app-multi-option span{font-size:13px!important;color:var(--tx)!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important;}
#menuList .app-multi-option:hover{background:rgba(255,255,255,.06)!important;}
#menuList .multi-menu-actions{display:flex!important;gap:8px!important;justify-content:flex-end!important;border-top:1px solid var(--line)!important;padding-top:8px!important;margin-top:6px!important;}


/* v114 Inventory Log section-only cleanup */
#adminTab-intake > section.card:has(#inventoryLogList){
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  padding:16px!important;
  box-shadow:none!important;
}
#inventoryLogList{
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
#inventoryLogList .inventory-records-head{
  margin:0 0 12px 0!important;
  padding:0!important;
  border:0!important;
}
#inventoryLogList .inventory-record-list{
  display:grid!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
#inventoryLogList .inventory-record-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  background:#1b1a17!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  padding:12px!important;
  margin:0!important;
  box-shadow:none!important;
}
#inventoryLogList .inventory-record-main{min-width:0!important;}
#inventoryLogList .inventory-record-actions{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  flex:0 0 auto!important;
  margin:0!important;
}
#inventoryLogList .inventory-empty{
  background:#1b1a17!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  padding:12px!important;
}
@media(max-width:760px){
  #inventoryLogList .inventory-record-row{display:block!important;}
  #inventoryLogList .inventory-record-actions{justify-content:flex-start!important;margin-top:10px!important;}
}

/* v126: shared portal headers, weekly controls, day toggles, kitchen status colors */
.portal-header,
.inline-app-header.portal-header,
.fixed-top-header.portal-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:58px!important;
  height:auto!important;
  padding:10px 14px!important;
  overflow:hidden!important;
}
.portal-header .inline-header-left{
  display:grid!important;
  grid-template-columns:auto minmax(0,max-content) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.portal-header .inline-brand-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.portal-header .inline-title{
  display:block!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
  line-height:1.1!important;
  font-size:20px!important;
  font-weight:850!important;
}
.portal-header .inline-sync-status{
  min-width:0!important;
  white-space:nowrap!important;
  font-size:13px!important;
}
.portal-header .inline-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
  position:static!important;
  margin:0!important;
}
.portal-header .icon-home-btn{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:static!important;
  margin:0!important;
  line-height:1!important;
}
.portal-header .icon-home-btn::before{
  line-height:1!important;
  transform:none!important;
}
@media(max-width:560px){
  .portal-header,
  .inline-app-header.portal-header,
  .fixed-top-header.portal-header{
    min-height:50px!important;
    padding:8px 10px!important;
    gap:8px!important;
  }
  .portal-header .inline-header-left{
    grid-template-columns:auto minmax(96px,1fr) auto!important;
    gap:7px!important;
  }
  .portal-header .inline-brand-icon{width:30px!important;height:30px!important;min-width:30px!important;}
  .portal-header .inline-title{font-size:16px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .portal-header .inline-sync-status{font-size:11px!important;}
  .portal-header .icon-home-btn{width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important;}
}
.weekly-order-controls{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(250px,auto)!important;
  align-items:end!important;
  gap:12px!important;
}
.weekly-order-controls .field{margin:0!important;align-self:end!important;}
.weekly-order-controls .field label{min-height:18px!important;display:block!important;margin-bottom:6px!important;}
.weekly-order-controls .input,
.weekly-order-controls .weekly-generate-field .btn{
  height:48px!important;
  min-height:48px!important;
  box-sizing:border-box!important;
}
.weekly-order-controls .weekly-generate-field .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0!important;
}
@media(max-width:760px){
  .weekly-order-controls{grid-template-columns:1fr!important;}
  .weekly-order-controls .weekly-generate-field label{display:none!important;}
  .weekly-order-controls .weekly-generate-field .btn{width:100%!important;}
}
.weekly-day-card summary{gap:12px!important;}
.weekly-day-toggle{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:10px!important;
  line-height:1!important;
}
.weekly-toggle-symbol{display:block!important;line-height:1!important;position:relative!important;width:14px!important;height:14px!important;}
.weekly-toggle-symbol::before,
.weekly-toggle-symbol::after{
  content:''!important;
  position:absolute!important;
  left:0!important;
  top:6px!important;
  width:14px!important;
  height:2px!important;
  border-radius:2px!important;
  background:currentColor!important;
}
.weekly-toggle-symbol::after{transform:rotate(90deg)!important;}
.weekly-day-card[open] .weekly-toggle-symbol::after{display:none!important;}
.pill.released{
  background:#2f2d29!important;
  border:1px solid #5a554d!important;
  color:#cfc8bc!important;
}

/* v127: final shared portal header + weekly date/button alignment override */
.portal-header,
.inline-app-header.portal-header,
.fixed-top-header.portal-header{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  height:58px!important;
  min-height:58px!important;
  max-height:58px!important;
  padding:10px 14px!important;
  gap:10px!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.portal-header .inline-header-left{
  display:contents!important;
}
.portal-header .inline-brand-icon{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
}
.portal-header .inline-title{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:20px!important;
  line-height:1.1!important;
  font-weight:850!important;
  margin:0!important;
  color:var(--tx, #f4f1ea)!important;
}
.portal-header .inline-sync-status{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1!important;
  margin:0!important;
  max-width:74px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.portal-header .inline-header-actions{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:static!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
}
.portal-header .icon-home-btn{
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding:0!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  position:static!important;
  transform:none!important;
  line-height:1!important;
  font-size:0!important;
  border-radius:10px!important;
}
.portal-header .icon-home-btn::before{
  display:block!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
@media(max-width:560px){
  .portal-header,
  .inline-app-header.portal-header,
  .fixed-top-header.portal-header{
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    padding:8px 10px!important;
    gap:7px!important;
  }
  .portal-header .inline-brand-icon{
    flex-basis:30px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    max-width:30px!important;
  }
  .portal-header .inline-title{
    font-size:16px!important;
    min-width:92px!important;
  }
  .portal-header .inline-sync-status{
    font-size:11px!important;
    max-width:54px!important;
  }
  .portal-header .icon-home-btn{
    flex-basis:32px!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    min-height:32px!important;
    max-height:32px!important;
  }
}

.weekly-order-controls{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-end!important;
  gap:12px!important;
  width:100%!important;
}
.weekly-order-controls > .field:first-child{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
}
.weekly-order-controls > .weekly-generate-field{
  flex:0 0 260px!important;
  margin:0!important;
  padding:0!important;
  align-self:flex-end!important;
}
.weekly-order-controls .field label{
  display:block!important;
  min-height:18px!important;
  margin:0 0 6px 0!important;
  line-height:18px!important;
}
.weekly-order-controls .weekly-generate-field label{
  visibility:hidden!important;
}
.weekly-order-controls .input,
.weekly-order-controls .weekly-generate-field .btn{
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  box-sizing:border-box!important;
  margin:0!important;
}
.weekly-order-controls .weekly-generate-field .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:1.1!important;
}
@media(max-width:760px){
  .weekly-order-controls{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .weekly-order-controls > .field:first-child,
  .weekly-order-controls > .weekly-generate-field{
    flex:0 0 auto!important;
    width:100%!important;
  }
  .weekly-order-controls .weekly-generate-field label{
    display:none!important;
  }
  .weekly-order-controls .input,
  .weekly-order-controls .weekly-generate-field .btn{
    width:100%!important;
  }
}


/* v128 exact layout fix: shared portal header, weekly row, matching day toggles */
body > .portal-header.shared-portal-header,
.portal-header.shared-portal-header,
#fixedTopHeader.portal-header.shared-portal-header{
  all: unset;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 16px !important;
  background: var(--bg2, #151411) !important;
  border-bottom: 1px solid var(--line, #38332b) !important;
  color: var(--tx, #f4f1ea) !important;
  overflow: hidden !important;
}
.portal-header.shared-portal-header .inline-header-left{
  display: contents !important;
}
.portal-header.shared-portal-header .inline-brand-icon{
  grid-column: 1 !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.portal-header.shared-portal-header .inline-title{
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  color: var(--tx, #f4f1ea) !important;
  margin: 0 !important;
}
.portal-header.shared-portal-header .inline-sync-status{
  grid-column: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1 !important;
  margin: 0 !important;
  color: var(--tx2, #b8b0a6) !important;
}
.portal-header.shared-portal-header .inline-header-actions{
  grid-column: 4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}
.portal-header.shared-portal-header .icon-home-btn{
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  transform: none !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.portal-header.shared-portal-header .icon-home-btn::before{
  content: '⌂' !important;
  display: block !important;
  font-size: 17px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-1px) !important;
}
@media (max-width: 560px){
  body > .portal-header.shared-portal-header,
  .portal-header.shared-portal-header,
  #fixedTopHeader.portal-header.shared-portal-header{
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    grid-template-columns: auto minmax(92px,1fr) auto auto !important;
    gap: 7px !important;
    padding: 8px 10px !important;
  }
  .portal-header.shared-portal-header .inline-brand-icon{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
  .portal-header.shared-portal-header .inline-title{
    font-size: 16px !important;
  }
  .portal-header.shared-portal-header .inline-sync-status{
    font-size: 11px !important;
  }
  .portal-header.shared-portal-header .icon-home-btn{
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
}
.week-of-control-block{
  display: grid !important;
  gap: 6px !important;
  margin: 0 0 12px 0 !important;
}
.week-of-control-block > label{
  display:block !important;
  margin:0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  color: var(--tx2, #b8b0a6) !important;
  text-transform: uppercase !important;
}
.week-of-control-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:12px !important;
  width:100% !important;
}
.week-of-date-wrap{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:grid !important;
  gap:5px !important;
}
.week-of-date-wrap .input,
.week-generate-btn{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
.week-generate-btn{
  flex:0 0 260px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
}
@media (max-width: 760px){
  .week-of-control-row{flex-direction:column !important;align-items:stretch !important;gap:10px !important;}
  .week-generate-btn{flex:0 0 auto !important;width:100% !important;}
  .week-of-date-wrap .input{width:100% !important;}
}
.weekly-day-card summary{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}
.weekly-day-toggle.client-list-collapse-btn{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  min-height:36px !important;
  padding:0 !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid var(--line,#38332b) !important;
  background:#2a2824 !important;
  color:var(--tx,#f4f1ea) !important;
  border-radius:10px !important;
  line-height:1 !important;
  font-size:0 !important;
}
.weekly-day-toggle.client-list-collapse-btn:hover{filter:brightness(1.08) !important;}
.weekly-day-toggle.client-list-collapse-btn .collapse-symbol{
  display:block !important;
  line-height:1 !important;
  font-size:20px !important;
  width:20px !important;
  height:20px !important;
  text-align:center !important;
  transform:translateY(-1px) !important;
}
.weekly-day-card:not([open]) .weekly-day-toggle .collapse-symbol::before{content:'+' !important;}
.weekly-day-card[open] .weekly-day-toggle .collapse-symbol::before{content:'−' !important;}


/* v131 exact-only fix: one shared portal header layout, weekly toggles, production spacing */
body > header.portal-header.shared-portal-header,
header.portal-header.shared-portal-header,
#fixedTopHeader.portal-header.shared-portal-header{
  all: unset !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto 36px !important;
  align-items: center !important;
  column-gap: 10px !important;
  padding: 10px 14px !important;
  background: var(--bg2, #151411) !important;
  border-bottom: 1px solid var(--line, #38332b) !important;
  color: var(--tx, #f4f1ea) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
}
header.portal-header.shared-portal-header .inline-header-left{display:contents!important;min-width:0!important;margin:0!important;padding:0!important;}
header.portal-header.shared-portal-header .inline-brand-icon{
  grid-column:1!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;box-sizing:border-box!important;font-size:18px!important;line-height:1!important;
}
header.portal-header.shared-portal-header .inline-title{
  grid-column:2!important;min-width:0!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:20px!important;font-weight:850!important;line-height:1.1!important;margin:0!important;padding:0!important;color:var(--tx,#f4f1ea)!important;
}
header.portal-header.shared-portal-header .inline-sync-status{
  grid-column:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-width:0!important;white-space:nowrap!important;font-size:12px!important;line-height:1!important;margin:0!important;padding:0!important;color:var(--tx2,#b8b0a6)!important;
}
header.portal-header.shared-portal-header .inline-header-actions{grid-column:4!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;position:static!important;}
header.portal-header.shared-portal-header .icon-home-btn{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;margin:0!important;padding:0!important;
  position:static!important;transform:none!important;border-radius:10px!important;font-size:0!important;line-height:1!important;
}
header.portal-header.shared-portal-header .icon-home-btn::before{content:'⌂'!important;display:block!important;font-size:17px!important;line-height:1!important;margin:0!important;padding:0!important;transform:translateY(-1px)!important;}
@media(max-width:560px){
  body > header.portal-header.shared-portal-header,
  header.portal-header.shared-portal-header,
  #fixedTopHeader.portal-header.shared-portal-header{height:50px!important;min-height:50px!important;max-height:50px!important;grid-template-columns:30px minmax(96px,1fr) auto 32px!important;column-gap:7px!important;padding:8px 10px!important;}
  header.portal-header.shared-portal-header .inline-brand-icon{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:16px!important;}
  header.portal-header.shared-portal-header .inline-title{font-size:16px!important;}
  header.portal-header.shared-portal-header .inline-sync-status{font-size:11px!important;}
  header.portal-header.shared-portal-header .icon-home-btn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;}
}
body.production-body{padding-top:0!important;margin-top:0!important;}
body.production-body main, body.production-body #app, body.production-body .page{margin-top:0!important;padding-top:16px!important;}
body.production-body main > section:first-child, body.production-body #app > section:first-child{margin-top:0!important;}
.weekly-day-card summary{list-style:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;cursor:pointer!important;}
.weekly-day-card summary::-webkit-details-marker{display:none!important;}
.weekly-day-card summary::marker{content:''!important;display:none!important;}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn,
.weekly-day-toggle.client-list-collapse-btn{
  appearance:none!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;
  padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
  border:1px solid var(--line,#38332b)!important;background:#2a2824!important;color:var(--tx,#f4f1ea)!important;border-radius:10px!important;
  font-size:0!important;line-height:1!important;flex:0 0 36px!important;box-shadow:none!important;
}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn:hover{filter:brightness(1.08)!important;}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn:active{filter:brightness(.96)!important;}
.weekly-day-card .weekly-day-toggle .collapse-symbol{display:block!important;width:18px!important;height:18px!important;line-height:1!important;font-size:20px!important;text-align:center!important;margin:0!important;padding:0!important;transform:translateY(-1px)!important;}
.weekly-day-card:not([open]) .weekly-day-toggle .collapse-symbol::before{content:'+'!important;}
.weekly-day-card[open] .weekly-day-toggle .collapse-symbol::before{content:'−'!important;}


/* v132 exact fix: weekly day toggle uses one clean square button, no pseudo/nested icons */
.weekly-day-card > summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;list-style:none!important;}
.weekly-day-card > summary::-webkit-details-marker{display:none!important;}
.weekly-day-card > summary::marker{content:""!important;}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn{
  appearance:none!important;-webkit-appearance:none!important;
  width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;
  flex:0 0 36px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
  border:1px solid var(--line,#38332b)!important;border-radius:10px!important;background:#24211d!important;color:var(--tx,#f4f1ea)!important;
  box-shadow:none!important;font-size:0!important;line-height:1!important;position:relative!important;overflow:hidden!important;cursor:pointer!important;
}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn::before,
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn::after{content:none!important;display:none!important;}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn:hover{filter:brightness(1.08)!important;}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn:active{filter:brightness(.96)!important;}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn .collapse-symbol{
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;
  font-size:22px!important;font-weight:900!important;line-height:1!important;text-align:center!important;transform:none!important;
}
.weekly-day-card .weekly-day-toggle.client-list-collapse-btn .collapse-symbol::before{display:block!important;line-height:1!important;margin:0!important;padding:0!important;transform:translateY(-1px)!important;}
.weekly-day-card:not([open]) .weekly-day-toggle.client-list-collapse-btn .collapse-symbol::before{content:'+'!important;}
.weekly-day-card[open] .weekly-day-toggle.client-list-collapse-btn .collapse-symbol::before{content:'−'!important;}

/* v132 exact fix: final shared portal header one-row grid for every portal */
body > header.portal-header.shared-portal-header,
header.portal-header.shared-portal-header,
#fixedTopHeader.portal-header.shared-portal-header{
  all:unset!important;box-sizing:border-box!important;width:100%!important;height:56px!important;min-height:56px!important;max-height:56px!important;
  display:grid!important;grid-template-columns:36px minmax(0,1fr) auto 36px!important;align-items:center!important;column-gap:10px!important;
  padding:10px 14px!important;margin:0!important;background:var(--bg2,#151411)!important;border-bottom:1px solid var(--line,#38332b)!important;color:var(--tx,#f4f1ea)!important;
  overflow:hidden!important;white-space:nowrap!important;position:relative!important;inset:auto!important;z-index:10!important;
}
header.portal-header.shared-portal-header .inline-header-left{display:contents!important;margin:0!important;padding:0!important;min-width:0!important;}
header.portal-header.shared-portal-header .inline-brand-icon{grid-column:1!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;font-size:18px!important;line-height:1!important;box-sizing:border-box!important;}
header.portal-header.shared-portal-header .inline-title{grid-column:2!important;display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:20px!important;font-weight:850!important;line-height:1.1!important;margin:0!important;padding:0!important;color:var(--tx,#f4f1ea)!important;}
header.portal-header.shared-portal-header .inline-sync-status{grid-column:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;font-size:12px!important;line-height:1!important;margin:0!important;padding:0!important;color:var(--tx2,#b8b0a6)!important;}
header.portal-header.shared-portal-header .inline-header-actions{grid-column:4!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;position:static!important;transform:none!important;}
header.portal-header.shared-portal-header .icon-home-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;box-sizing:border-box!important;position:static!important;transform:none!important;border-radius:10px!important;font-size:0!important;line-height:1!important;}
header.portal-header.shared-portal-header .icon-home-btn::before{content:'⌂'!important;display:block!important;font-size:17px!important;line-height:1!important;margin:0!important;padding:0!important;transform:translateY(-1px)!important;}
@media(max-width:560px){
  body > header.portal-header.shared-portal-header,header.portal-header.shared-portal-header,#fixedTopHeader.portal-header.shared-portal-header{height:50px!important;min-height:50px!important;max-height:50px!important;grid-template-columns:30px minmax(96px,1fr) auto 32px!important;column-gap:7px!important;padding:8px 10px!important;}
  header.portal-header.shared-portal-header .inline-brand-icon{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:16px!important;}
  header.portal-header.shared-portal-header .inline-title{font-size:16px!important;}
  header.portal-header.shared-portal-header .inline-sync-status{font-size:11px!important;}
  header.portal-header.shared-portal-header .icon-home-btn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;}
}
body.production-body{padding-top:0!important;margin-top:0!important;}
body.production-body main{margin-top:0!important;padding-top:16px!important;}
body.production-body header.portal-header.shared-portal-header + main{margin-top:0!important;}

/* v133: Production Portal mobile header only — force one inline row without affecting desktop */
@media (max-width:560px){
  body.production-body > header.portal-header.shared-portal-header,
  body.production-body header.portal-header.shared-portal-header,
  body.production-body #fixedTopHeader.portal-header.shared-portal-header{
    all:unset!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    padding:8px 10px!important;
    margin:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    background:var(--bg2,#151411)!important;
    border-bottom:1px solid var(--line,#38332b)!important;
    color:var(--tx,#f4f1ea)!important;
    position:relative!important;
    inset:auto!important;
    z-index:10!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-header-left{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-brand-icon{
    flex:0 0 30px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    font-size:16px!important;
    line-height:1!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-title{
    flex:1 1 auto!important;
    min-width:0!important;
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:850!important;
    margin:0!important;
    padding:0!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-sync-status{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    white-space:nowrap!important;
    font-size:10px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-header-actions{
    flex:0 0 32px!important;
    width:32px!important;
    min-width:32px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
  }
  body.production-body header.portal-header.shared-portal-header .icon-home-btn{
    flex:0 0 32px!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
    box-sizing:border-box!important;
    font-size:0!important;
    line-height:1!important;
  }
  body.production-body header.portal-header.shared-portal-header .icon-home-btn::before{
    content:'⌂'!important;
    display:block!important;
    font-size:16px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
    transform:translateY(-1px)!important;
  }
}

/* v134: Production Portal iPad/tablet header one-row fix only */
@media (min-width:561px) and (max-width:1024px){
  body.production-body > header.portal-header.shared-portal-header,
  body.production-body header.portal-header.shared-portal-header,
  body.production-body #fixedTopHeader.portal-header.shared-portal-header{
    all:unset!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:9px 12px!important;
    margin:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    background:var(--bg2,#151411)!important;
    border-bottom:1px solid var(--line,#38332b)!important;
    color:var(--tx,#f4f1ea)!important;
    position:relative!important;
    inset:auto!important;
    z-index:10!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-header-left{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-brand-icon{
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    font-size:17px!important;
    line-height:1!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-title{
    flex:1 1 auto!important;
    min-width:0!important;
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:18px!important;
    line-height:1!important;
    font-weight:850!important;
    margin:0!important;
    padding:0!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-sync-status{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
  }
  body.production-body header.portal-header.shared-portal-header .inline-header-actions{
    flex:0 0 34px!important;
    width:34px!important;
    min-width:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
  }
  body.production-body header.portal-header.shared-portal-header .icon-home-btn{
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
    box-sizing:border-box!important;
    font-size:0!important;
    line-height:1!important;
  }
}
