
/* v1.23.2 — tablet/header/overflow repair based on live shop dashboard screenshot */
html,body{max-width:100%;overflow-x:clip}
body.mdw-next-ui #app{width:100%;max-width:100%;overflow-x:clip}
body.mdw-next-ui #app .workspace{width:calc(100% - 266px);max-width:calc(100% - 266px);min-width:0}
body.mdw-next-ui #app .topbar{box-sizing:border-box;min-width:0;min-height:83px;height:auto!important;gap:12px;overflow:visible}
body.mdw-next-ui #app .topbar>*{min-width:0}
body.mdw-next-ui.admin-bar #app .topbar{top:0!important}
body.mdw-next-ui #app .mdw-top-actions{min-width:0;flex:0 1 auto;gap:10px;padding-right:0}
body.mdw-next-ui #app .profile{display:flex;align-items:center;flex:0 1 290px;width:auto;min-width:0;max-width:290px;overflow:hidden}
body.mdw-next-ui #app .profile>div:last-child{min-width:0;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}
body.mdw-next-ui #app .profile>div:last-child small{display:block;white-space:nowrap}
body.mdw-next-ui #app .main{width:100%;max-width:1680px;min-width:0;box-sizing:border-box}
body.mdw-next-ui #app .main>*{min-width:0;max-width:100%}
body.mdw-next-ui #app :where(.hero,.stats,.columns,.panel,.table-wrap,.tools){min-width:0;max-width:100%}
body.mdw-next-ui #app :where(.stats,.columns){grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
body.mdw-next-ui #app .hero{max-width:100%;overflow:hidden}
body.mdw-next-ui #app .hero>*{min-width:0}
body.mdw-next-ui #app :where(img,svg,video,canvas,iframe){max-width:100%}
body.mdw-next-ui #app :where(table){max-width:100%}
body.mdw-next-ui #app .table-wrap{overflow-x:auto}

/* Mid-size tablets and narrow laptop windows: preserve the desktop shell without
   squeezing the profile/actions into the breadcrumb. */
@media (min-width:761px) and (max-width:1180px){
 body.mdw-next-ui #app .desktop-sidebar{width:226px!important;padding-left:12px!important;padding-right:12px!important}
 body.mdw-next-ui #app .workspace{margin-left:226px!important;width:calc(100% - 226px)!important;max-width:calc(100% - 226px)!important}
 body.mdw-next-ui #app .topbar{min-height:76px;height:auto!important;padding:12px 18px!important;gap:9px;flex-wrap:wrap}
 body.mdw-next-ui #app .desktop-crumb{flex:1 1 150px;min-width:120px}
 body.mdw-next-ui #app .mdw-top-actions{flex:0 1 auto;margin-left:auto;gap:8px}
 body.mdw-next-ui #app .profile{max-width:210px;flex-basis:210px}
 body.mdw-next-ui #app .profile>div:last-child{max-width:110px}
 body.mdw-next-ui #app .main{padding-left:20px!important;padding-right:20px!important}
 body.mdw-next-ui #app .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.mdw-next-ui #app .hero{gap:16px}
}
@media (min-width:761px) and (max-width:900px){
 body.mdw-next-ui #app .topbar{align-items:flex-start!important}
 body.mdw-next-ui #app .mdw-top-actions{flex:1 1 100%;justify-content:flex-end}
 body.mdw-next-ui #app .profile{max-width:220px}
 body.mdw-next-ui #app .main{padding-top:20px!important}
}
@media(max-width:760px){
 body.mdw-next-ui #app .workspace{width:100%!important;max-width:100%!important}
 body.mdw-next-ui #app .topbar{min-height:64px!important;height:64px!important;overflow:visible}
 body.mdw-next-ui #app .main{width:100%;max-width:100%;overflow-x:clip}
}


/* v1.23.3 — Warranty header search action: explicit skin + correct placement */
body.mdw-next-ui #app .topbar .mdw-top-actions{
  display:flex!important; align-items:center!important; justify-content:flex-end!important;
  flex:0 0 auto!important; min-width:0!important; margin-left:auto!important;
  padding:0!important; gap:8px!important;
}
body.mdw-next-ui #app .topbar .mdw-top-search{
  appearance:none!important; -webkit-appearance:none!important;
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  gap:9px!important; box-sizing:border-box!important; min-height:44px!important;
  min-width:0!important; padding:0 16px!important; margin:0!important;
  border:1px solid #ead7c8!important; border-radius:13px!important;
  background:linear-gradient(180deg,#fffaf5 0%,#fff2e8 100%)!important;
  color:#9a4d22!important; box-shadow:0 3px 10px rgba(125,74,40,.07)!important;
  font:600 14px/1.2 inherit!important; text-decoration:none!important;
  white-space:nowrap!important; cursor:pointer!important;
}
body.mdw-next-ui #app .topbar .mdw-top-search svg{
  display:block!important; width:19px!important; height:19px!important;
  flex:0 0 19px!important; stroke:#d66b2d!important; color:#d66b2d!important;
}
body.mdw-next-ui #app .topbar .mdw-top-search:hover{
  background:#ffeadb!important; border-color:#e9b895!important;
  color:#813c19!important; transform:translateY(-1px);
}
body.mdw-next-ui #app .topbar .profile{flex:0 0 auto!important; margin-left:0!important;}
@media (min-width:901px){
  body.mdw-next-ui #app .topbar{justify-content:flex-start!important;}
  body.mdw-next-ui #app .topbar .desktop-crumb{flex:0 1 auto!important;}
}
@media (min-width:761px) and (max-width:900px){
  body.mdw-next-ui #app .topbar .mdw-top-actions{flex:1 1 100%!important; margin-left:0!important;}
}
@media (max-width:760px){
  body.mdw-next-ui #app .topbar .mdw-top-actions{margin-left:auto!important; flex:0 0 auto!important;}
  body.mdw-next-ui #app .topbar .mdw-top-search{min-height:40px!important; padding:0 11px!important; font-size:13px!important;}
}

/* v1.23.6 — repair manager modal */
.repair-history-dialog{display:grid;gap:14px;min-width:0}
.repair-history-product{display:grid;gap:3px;color:#254b3d;font-size:13px}
.repair-history-product span,.repair-history-meta{color:#71867b;font-size:11px}
.repair-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.repair-history-summary span{display:grid;gap:3px;padding:10px;border:1px solid #e0ebe4;border-radius:11px;background:#f6faf7;color:#6a8074;font-size:10px}
.repair-history-summary strong{font-size:18px;color:#08745b}
.repair-limit-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:12px;border:1px solid #dce9e1;border-radius:12px;background:#f8fbf9}
.repair-limit-form label{min-width:0}.repair-limit-form small{grid-column:1/-1;color:#75897e;font-size:10px}
.repair-history-heading,.repair-history-item-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.repair-history-heading h3,.repair-history-item h3{margin:0;color:#173f33;font-size:15px}
.repair-history-heading .primary{white-space:nowrap}
.repair-history-list{display:grid;gap:10px}
.repair-history-item{padding:13px;border:1px solid #deebe3;border-radius:13px;background:#fff;min-width:0}
.repair-history-item .eyebrow{font-size:9px;letter-spacing:.1em;color:#168066;font-weight:850}
.repair-history-issue{margin:8px 0;color:#284d3f;font-size:13px;font-weight:700}
.repair-history-meta{display:flex;flex-wrap:wrap;gap:10px}
.repair-history-notes{white-space:pre-wrap;color:#6d8177;font-size:12px}
.repair-history-item .job-meta{margin-top:8px;padding:9px;background:#f6faf7;border-radius:9px;font-size:11px}
.repair-history-actions,.repair-editor-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.repair-history-actions button,.repair-editor-actions button{flex:1 1 auto;min-width:100px}
.repair-editor{display:grid;gap:11px;padding:13px;border:1px solid #cfe5d8;border-radius:14px;background:#f5faf7}
.repair-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.repair-editor textarea{width:100%;box-sizing:border-box;resize:vertical}
.repair-editor fieldset{min-width:0}
.repair-editor[hidden]{display:none!important}
@media(max-width:600px){
 .repair-history-summary{gap:5px}
 .repair-history-summary span{padding:8px 6px}
 .repair-history-summary strong{font-size:16px}
 .repair-limit-form{grid-template-columns:minmax(0,1fr)}
 .repair-limit-form small{grid-column:1}
 .repair-editor-grid{grid-template-columns:minmax(0,1fr)}
 #modal .dialog-head{padding:15px 16px}
 #modal .dialog-body{padding:14px}
}

/* v1.23.6 — touch tablet bottom navigation.
   Android Chrome Desktop Site can expose a wide CSS viewport; pointer capability
   is therefore used instead of only max-width breakpoints. */
@media (hover:none) and (pointer:coarse) and (min-width:761px) {
 body.mdw-next-ui #app .bottom-nav.shop-bottom-nav {
  position:fixed!important;
  left:226px!important;
  right:12px!important;
  bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  width:auto!important;
  z-index:250!important;
  display:flex!important;
  min-height:66px!important;
  padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px))!important;
  margin:0!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid #d8e8df!important;
  box-shadow:0 8px 28px rgba(12,60,43,.16)!important;
  backdrop-filter:blur(18px)!important;
 }
 body.mdw-next-ui #app .main {
  padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important;
 }
 body.mdw-next-ui #app .bottom-nav.shop-bottom-nav .mdwu-nav-item,
 body.mdw-next-ui #app .bottom-nav.shop-bottom-nav .bottom-nav-item {
  min-height:54px!important;flex:1 1 0!important;
 }
}
