/* Final responsive/premium fixes */
html,body{max-width:100%;overflow-x:hidden}.admin-main{width:100%;min-width:0}.admin-main>*{max-width:100%}.panel,.toolbar,.page-head,.ai-import-head,.ai-import-grid,.data-table,.table-panel{max-width:100%}
@media(max-width:700px){.admin-top{height:68px!important;padding:0 12px!important}.admin-top .crumb{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.admin-top .top-actions .timezone-chip{display:none}.admin-main{padding:16px 12px 28px!important}.page-head{gap:12px!important;align-items:flex-start!important;flex-wrap:wrap!important}.page-head h1{font-size:28px!important;line-height:1.08}.page-head p{font-size:11px!important}.page-head>.btn{margin-left:auto}.toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}.toolbar .search{max-width:none!important;width:100%!important}.table-panel{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.data-table{min-width:760px}.ai-import-grid{grid-template-columns:1fr!important}.ai-import-head{flex-direction:column!important;align-items:flex-start!important}.ai-import-head .btn{width:100%}.form-grid{grid-template-columns:1fr!important}.form-grid .full{grid-column:auto!important}.modal{padding:10px!important}.modal-box{width:100%!important;max-height:92vh!important;overflow:auto}.bulk-bar{padding:12px!important}.bulk-form{flex-wrap:wrap!important}.bulk-form .input{width:100%!important}.bulk-form .btn{width:100%!important}.sidebar{width:300px!important;max-width:82vw!important}.sidebar.open{box-shadow:30px 0 70px rgba(0,0,0,.35)}}
/* keep customer cards compact; small +/- quantity control */
.menu-qty{display:inline-flex;align-items:center;justify-content:center;gap:0;height:32px;min-width:76px;padding:3px;border-radius:11px;background:#25252b;color:#fff;box-shadow:0 7px 16px rgba(20,20,25,.18);vertical-align:middle}.menu-qty button{width:23px!important;height:25px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:inherit!important;font-size:17px!important;line-height:1!important;padding:0!important;box-shadow:none!important;cursor:pointer}.menu-qty .qty-number{min-width:26px;text-align:center;font-size:11px;font-weight:900}.card.selected .menu-qty,.mm-card.selected .menu-qty{background:linear-gradient(145deg,#cdb56e,#a58a4c);color:#17171b}.card.selected{outline:1px solid rgba(181,151,83,.55)!important}.mm-card.selected{outline:2px solid rgba(181,151,83,.5)!important;box-shadow:0 10px 30px rgba(120,95,40,.15)!important}.mm-price{gap:7px}.mm-price button{min-width:30px}
@media(max-width:380px){.menu-qty{min-width:70px;height:30px}.menu-qty button{width:21px!important;height:23px!important}.menu-qty .qty-number{min-width:24px}.bottom{grid-template-columns:auto 1fr auto!important}.bottom span{font-size:7px}.card-menu .body h3{font-size:14px}}

/* Public menu contrast fix: item title, description and rate must remain readable on dark cards. */
.card-menu .body h3{color:#f4f3f0!important;}
.card-menu .body p{color:#c0c0c6!important;}
.card-menu .bottom>strong{color:#f4f3f0!important;}
.card-menu .bottom>span{color:#d8bf82!important;}
.card-menu .type{color:#7fbc87!important;}
.admin-shell .sidebar{overflow-y:auto!important;overflow-x:hidden!important;}
.admin-shell .side-spacer{flex:0 0 12px!important;min-height:12px!important;}
.admin-shell .admin-user{margin-top:auto!important;flex-shrink:0!important;}

/* Item Image Master: dedicated layout and interaction fixes */
.image-master-page .image-master-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(260px,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
.image-master-page .image-master-card{
  display:flex!important;
  position:relative!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e8e5de!important;
  border-radius:18px!important;
  box-shadow:0 8px 30px rgba(32,33,38,.055)!important;
}
.image-master-page .image-master-card[hidden]{display:none!important;}
.image-master-page .select-check{
  position:absolute!important;
  top:12px!important;
  left:12px!important;
  z-index:10!important;
  width:30px!important;
  height:30px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.94)!important;
  color:#8d8f94!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  box-shadow:0 5px 15px rgba(0,0,0,.12)!important;
}
.image-master-page .select-check span{font-size:15px!important;line-height:1!important;opacity:.25!important;}
.image-master-page .select-check.checked{background:#25262a!important;color:#fff!important;border-color:#25262a!important;}
.image-master-page .select-check.checked span{opacity:1!important;}
.image-master-page .image-master-card.selected{outline:2px solid #b4975a!important;outline-offset:-2px!important;}
.image-master-page .image-preview{
  width:100%!important;
  height:220px!important;
  min-height:220px!important;
  flex:0 0 220px!important;
  display:grid!important;
  place-items:center!important;
  position:relative!important;
  overflow:hidden!important;
  background:#f3f1eb!important;
}
.image-master-page .image-preview img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:14px!important;display:block!important;}
.image-master-page .image-status{position:absolute!important;right:10px!important;bottom:10px!important;padding:5px 8px!important;border-radius:999px!important;background:rgba(37,38,43,.86)!important;color:#fff!important;font-size:8px!important;font-weight:800!important;letter-spacing:.7px!important;}
.image-master-page .image-info{display:flex!important;align-items:center!important;gap:10px!important;padding:14px 15px 10px!important;min-height:62px!important;}
.image-master-page .image-title{flex:1!important;min-width:0!important;}
.image-master-page .image-title h3{margin:0 0 4px!important;font-size:14px!important;line-height:1.25!important;}
.image-master-page .image-title span{display:block!important;color:#92949a!important;font-size:10px!important;}
.image-master-page .veg-dot{flex:0 0 auto!important;margin:0!important;}
.image-master-page .image-form{padding:0 15px 12px!important;margin-top:auto!important;display:grid!important;gap:9px!important;}
.image-master-page .upload-drop{position:relative!important;display:grid!important;grid-template-columns:auto 1fr!important;grid-template-rows:auto auto!important;column-gap:9px!important;align-items:center!important;min-height:58px!important;padding:10px 12px!important;border:1px dashed #d7d3c9!important;border-radius:13px!important;background:#faf9f6!important;cursor:pointer!important;}
.image-master-page .upload-drop>span{grid-row:1/3;font-size:20px!important;color:#9d8451!important;}
.image-master-page .upload-drop>b{font-size:11px!important;color:#2a2b30!important;}
.image-master-page .upload-drop>small{font-size:8px!important;color:#999!important;}
.image-master-page .upload-drop input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;}
.image-master-page .save-row{display:flex!important;justify-content:flex-end!important;}
.image-master-page .save-row .btn{width:100%!important;min-height:40px!important;}
.image-master-page .remove-image-form{padding:0 15px 13px!important;}
.image-master-page .remove-image{width:100%!important;border:1px solid #ead8d5!important;background:#fff8f7!important;border-radius:10px!important;color:#a34c4c!important;font-size:10px!important;font-weight:700!important;padding:8px!important;cursor:pointer!important;}
.image-master-page .image-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:12px 15px!important;}
.image-master-page .image-search{flex:0 1 520px!important;max-width:520px!important;width:100%!important;}
.image-master-page .image-master-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;}
.image-master-page .bulk-actions{align-items:center!important;}
.image-master-page .tool-btn,.image-master-page .bulk-actions>.btn{min-height:44px!important;}
@media(max-width:1100px){.image-master-page .image-master-grid{grid-template-columns:repeat(2,minmax(250px,1fr))!important;}}
@media(max-width:700px){.image-master-page .image-master-grid{grid-template-columns:1fr!important;}.image-master-page .image-master-actions,.image-master-page .image-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;}.image-master-page .bulk-actions{display:grid!important;grid-template-columns:1fr 1fr!important;}.image-master-page .image-search{max-width:none!important;flex:1 1 auto!important;}.image-master-page .image-preview{height:210px!important;min-height:210px!important;flex-basis:210px!important;}}
@media(max-width:480px){.image-master-page .bulk-actions{grid-template-columns:1fr!important;}.image-master-page .image-master-hero{padding:18px!important;}.image-master-page .image-master-hero h1{font-size:28px!important;}}

/* MENU MATRIX HARDENING — legacy Card Menu typography + cart content must remain readable for every page style. */
.public-main.theme-dark .card-menu .body h3,.public-main.theme-dark .card-menu .bottom>strong,.public-main.theme-dark .card-menu .section-head h2{color:#f4f3ef!important}.public-main.theme-dark .card-menu .body p{color:#c0c0c6!important}.public-main.theme-dark .card-menu .bottom>span{color:#d8bf82!important}.public-main.theme-dark .card-menu .type{color:#7fbc87!important}
.public-main.theme-ivory .card-menu .body h3,.public-main.theme-ivory .card-menu .bottom>strong,.public-main.theme-ivory .card-menu .section-head h2{color:#332b25!important}.public-main.theme-ivory .card-menu .body p{color:#76695f!important}.public-main.theme-ivory .card-menu .bottom>span{color:#a87948!important}.public-main.theme-ivory .card-menu .type{color:#6f8d67!important}
.public-main.theme-ocean .card-menu .body h3,.public-main.theme-ocean .card-menu .bottom>strong,.public-main.theme-ocean .card-menu .section-head h2{color:#eafaff!important}.public-main.theme-ocean .card-menu .body p{color:#a9c7d0!important}.public-main.theme-ocean .card-menu .bottom>span{color:#70d7d4!important}.public-main.theme-ocean .card-menu .type{color:#8dd89d!important}
.public-main.theme-rose .card-menu .body h3,.public-main.theme-rose .card-menu .bottom>strong,.public-main.theme-rose .card-menu .section-head h2{color:#fff1f5!important}.public-main.theme-rose .card-menu .body p{color:#d8b9c6!important}.public-main.theme-rose .card-menu .bottom>span{color:#efb0b9!important}.public-main.theme-rose .card-menu .type{color:#9fd09f!important}
.public-main.theme-forest .card-menu .body h3,.public-main.theme-forest .card-menu .bottom>strong,.public-main.theme-forest .card-menu .section-head h2{color:#eff9f1!important}.public-main.theme-forest .card-menu .body p{color:#b9d0c1!important}.public-main.theme-forest .card-menu .bottom>span{color:#b9d88d!important}.public-main.theme-forest .card-menu .type{color:#9fd69f!important}
.public-main.theme-sunset .card-menu .body h3,.public-main.theme-sunset .card-menu .bottom>strong,.public-main.theme-sunset .card-menu .section-head h2{color:#fff3ea!important}.public-main.theme-sunset .card-menu .body p{color:#ddc0b4!important}.public-main.theme-sunset .card-menu .bottom>span{color:#f0b27f!important}.public-main.theme-sunset .card-menu .type{color:#a7d19b!important}
.public-main .cart-line,.public-main .cart-total,.public-main .mm-line,.public-main .pm-line,.public-main .pm-grand,.public-main .card-menu .line,.public-main .card-menu .grand{color:inherit!important}.public-main .cart-line small,.public-main .mm-line small,.public-main .pm-line small{opacity:.72!important}
.public-main .cart-sheet input,.public-main .mm-sheet input,.public-main .pm-sheet input,.public-main .card-menu .sheet input{color:#25262b!important;background:#fff!important;-webkit-text-fill-color:#25262b!important;caret-color:#25262b!important;opacity:1!important}.public-main .cart-sheet input::placeholder,.public-main .mm-sheet input::placeholder,.public-main .pm-sheet input::placeholder,.public-main .card-menu .sheet input::placeholder{color:#85878c!important;-webkit-text-fill-color:#85878c!important;opacity:1!important}
