/* Inventory Add/Edit Product only; Add Batch and shared dialogs keep their presentation. */
html[data-medaliza-ui-mode="mobile"]:has(#app :is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) {scrollbar-width:none;}
html[data-medaliza-ui-mode="mobile"]:has(#app :is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui])::-webkit-scrollbar {display:none;}
html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) {
  --pa-space:clamp(12px,2.85vw,27px); --pa-gap:clamp(8px,2.25vw,20px);
  width:100%; max-width:940px; padding:clamp(10px,2.3vw,22px) clamp(10px,3.6vw,34px) calc(105px + env(safe-area-inset-bottom));
  background:linear-gradient(115deg,#eefaff,#eaf8ff 60%,#f4fcff);color:#080d4b;
  & .medaliza-mobile-shell-content--inner {padding-top:0;}
}
html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) .medaliza-mobile-shell-header {padding:0 clamp(4px,1.4vw,14px);min-height:clamp(58px,8.1vw,76px);margin:0 0 clamp(10px,2.1vw,20px);}
html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) .medaliza-mobile-shell-header img {display:none;}
html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) .medaliza-mobile-shell-header b {font-size:clamp(21px,3.8vw,36px);color:#080d4b;line-height:1.15;}
html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) .medaliza-mobile-shell-header small {font-size:clamp(13px,2.7vw,25px);color:#8891c5;}
/* Dealer Add source values, Inventory Add/Edit only. Live inputs, menus,
   disabled fieldsets and all save/stock handlers are left untouched. */
html[data-medaliza-ui-mode="mobile"] #app :is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui] {
  color:#102454;display:block!important;
  --pa-space:10px;--pa-gap:8px;
  --pa-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M4 2h8l4 4v16H4zM12 2v5h4M7 12h6M7 16h6'/%3E%3C/svg%3E");
  & :is(h1,h2,label,button,input,select,small,b,p){font-family:Arial,sans-serif!important;letter-spacing:0!important;box-sizing:border-box}
  & .product-live-title{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px;min-height:0;margin:0 0 8px!important;padding:10px!important;border:1px solid #cee7ff;border-radius:12px;background:linear-gradient(115deg,#fff,#e4f5ff);box-shadow:0 3px 9px #368bc01c}
  & .product-live-title::after{content:none}
  & .product-live-title>div{flex:1;min-width:0}
  & .product-live-title>div>span{font:700 9px/1.2 Arial!important;color:#0785fb}
  & .product-live-title h1{font:700 20px/1.2 Arial!important;margin:4px 0!important;color:#101e4c}
  & .product-live-title p{font:400 10px/1.4 Arial!important;margin:0;max-width:none;color:#6985b2}
  & .product-live-title>button{width:auto!important;height:29px;min-height:29px!important;flex:none;margin:0;padding:6px 9px!important;border:1px solid #9acbff;border-radius:8px;background:#f9fdff;color:#0078fc;font:700 11px Arial!important}
  & .product-live-form{max-width:none;overflow:visible;padding:10px!important;border:1px solid #d2e9ff;border-radius:12px;background:linear-gradient(115deg,#fff,#f8fcff);box-shadow:0 3px 8px #4897cd0d}
  & .product-live-form>section:first-child{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  & .product-live-form>section:first-child>header{position:relative;display:block;min-height:36px;padding:0 0 9px 35px!important;margin:0;border:0}
  & .product-live-form>section:first-child>header::before{content:'';position:absolute;left:0;top:0;width:27px;height:29px;border-radius:7px;background:var(--pa-field-icon) center/16px no-repeat,linear-gradient(140deg,#d8f4ff,#e1edff);box-shadow:0 3px 6px #168cff22}
  & .product-live-form h2{font:700 15px/1.25 Arial!important;margin:0 0 3px!important;color:#0b1949!important}
  & .product-live-form header small{font:400 9px/1.35 Arial!important;margin:0;color:#6c84ad!important}
  & .product-live-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 9px!important;padding:0!important}
  & .product-live-form-grid:not(.product-price-grid)>:is(label,.medaliza-category-field,.product-live-master-field):not(.product-live-switch){position:relative;display:grid;grid-column:auto!important;grid-template-rows:none!important;align-content:start;min-width:0;gap:4px!important;margin:0;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#355582!important;font:600 10px/1.35 Arial!important}
  & .product-live-form-grid:not(.product-price-grid)>:is(.medaliza-category-field,.product-live-master-field)>label{margin:0;color:#355582!important;font:600 10px/1.35 Arial!important}
  /* Retain the existing visual order; only the column density changes. */
  & .product-live-form-grid>:has([name=name]){order:0}
  & .product-live-form-grid>:has([name=barcode]){order:1}
  & .product-live-form-grid>:has([name=generic_composition]){order:2}
  & .product-live-form-grid>:has([name=manufacturer]){order:3}
  & .product-live-form-grid>:has([name=gst_percentage]){order:4}
  & .product-live-form-grid>:has([name=default_sales_discount_percentage]){order:5}
  & .product-live-form-grid>:has([name=minimum_stock]){order:6}
  & .product-live-form-grid>:has([name=hsn]){order:7}
  & .product-live-form-grid>:has([name=unit]){order:8}
  & .product-live-form-grid>:has([name=pack_size]){order:9}
  & .product-live-form-grid>:has([name=category]){order:10}
  & .product-live-form-grid>:has([name=rack_location]){order:11}
  & .product-live-form-grid>:has([name=prescription_required]){order:12}
  & .product-live-form-grid>:has([name=active]){order:13}
  & .product-live-form-grid>label:has([name=default_sales_discount_percentage])>small{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  & .product-live-form-grid small[role=status]:empty{display:none}
  & .product-live-form :is(input:not([type=checkbox]),select){width:100%!important;max-width:100%!important;min-width:0!important;height:31px!important;min-height:31px!important;padding:5px 6px 5px 24px!important;border:1px solid #c4dfff!important;border-radius:7px!important;background:#f8fcff!important;color:#263d62!important;font:400 11px Arial!important;box-shadow:none!important}
  & .product-live-form :is(input,select):focus{font-size:11px!important;outline:2px solid #83bfff;outline-offset:1px}
  & .product-live-form input::placeholder{color:#7b91b1;opacity:1}
  & input[type=number]{appearance:textfield}
  & input::-webkit-inner-spin-button{appearance:none;margin:0}
  & .mi-product-input-wrap{position:relative;display:block;min-width:0;width:100%;flex:1}
  & .product-live-form .mi-product-input-wrap input{padding-right:26px!important}
  & .mi-product-input-wrap::before{content:'';position:absolute;pointer-events:none;left:7px;top:8px;width:12px;height:15px;background:var(--pa-field-icon) center/contain no-repeat;z-index:1}
  & .mi-product-input-wrap:has([name=name])::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230080ef'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M3 22v-3a9 8 0 0 1 18 0v3z'/%3E%3C/svg%3E")}
  & .mi-product-input-clear{position:absolute;inset:1px 1px 1px auto;display:grid;place-items:center;width:23px;height:auto;min-height:0!important;margin:0;padding:0!important;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#2375ba;font:400 17px/1 Arial!important}
  & .product-barcode-control{display:flex;align-items:stretch;min-width:0;gap:5px}
  & .product-barcode-control .mi-product-input-wrap{width:0}
  & .product-barcode-scan-button{flex:none;min-width:40px!important;height:31px;min-height:31px;margin:0;padding:0 7px!important;border:1px solid #9acbff;border-radius:7px;background:#f9fdff;color:#0078fc;font:700 11px Arial!important}
  & .product-barcode-scan-button svg{display:none}
  & :is(.medaliza-category-control,.product-live-master-control){display:flex;min-width:0;gap:5px!important}
  & :is(.medaliza-category-control,.product-live-master-control) .mi-product-input-wrap{width:0}
  & :is(.medaliza-category-add,.product-live-master-add){flex:0 0 31px;width:31px;min-width:31px!important;height:31px;min-height:31px;padding:0!important;border:1px solid #9acbff;border-radius:7px;background:#f9fdff;color:#0078fc;font:400 20px/1 Arial!important}
  & :is(.medaliza-category-option,.product-master-option){min-height:31px;font:500 11px/1.35 Arial!important;white-space:normal;overflow-wrap:anywhere}
  & :is(.product-live-form-grid,.product-view-options)>.product-live-switch{display:flex!important;flex-direction:row;align-items:center;min-height:0;gap:4px!important;padding:5px!important;border:1px solid #c9e8ff!important;border-radius:8px!important;background:#f1faff!important;box-shadow:none!important;color:#355582!important;font:600 10px/1.35 Arial!important;cursor:pointer}
  & :is(.product-live-form-grid,.product-view-options)>.product-live-switch:has([name=active]){border-color:#c9e8ff!important;background:#f1faff!important}
  & .product-live-switch input[type=checkbox]{position:absolute;display:block!important;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0}
  & .product-live-switch:focus-within{outline:2px solid #007aff;outline-offset:2px}
  & .product-live-switch>span{position:relative;flex:none;width:29px;height:17px;margin:0;border-radius:20px;background:#ccd5df}
  & .product-live-switch>span::after{width:13px;height:13px;top:2px;left:2px;aspect-ratio:auto;transform:none}
  & .product-live-switch input:checked+span{background:linear-gradient(120deg,#00bfff,#0074ff)}
  & .product-live-switch input:checked+span::after{left:14px;transform:none}
  & .product-live-switch b{color:#14274d;font:600 10px/1.3 Arial!important}
  & .product-live-switch small{margin-top:3px;color:#7186ac;font:400 8px/1.3 Arial!important}
  & .product-live-form .product-gst-master{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:8px 0 0;padding:8px;border:1px solid #d2e9ff;border-radius:8px;background:#f1faff}
  & .product-gst-master>label{position:relative;display:grid;min-width:0;gap:4px;color:#355582!important;font:600 10px/1.35 Arial!important}
  & .product-gst-master>label::after,& .product-opening-grid>label::after{content:'';position:absolute;pointer-events:none;left:7px;bottom:8px;width:12px;height:15px;background:var(--pa-field-icon) center/contain no-repeat}
  & .product-gst-master>small{margin:0;color:#6c84ad;font:400 9px/1.35 Arial!important}
  & .product-live-form>section.product-opening-card{margin:8px 0 0!important;padding:10px!important;border:1px solid #d2e9ff!important;border-radius:12px!important;background:linear-gradient(115deg,#fff,#f8fcff)!important;box-shadow:0 3px 8px #4897cd0d!important}
  & .product-opening-card>header{display:flex!important;flex-direction:column;align-items:flex-start;gap:6px!important;padding:0!important}
  & .product-opening-card>header>div{padding-left:0}
  & .product-opening-card h2{font-size:15px!important}
  & .product-opening-toggle{display:flex;align-items:center;min-height:31px;gap:6px;color:#355582!important;white-space:normal;font:600 10px/1.35 Arial!important}
  & .product-opening-toggle>span{font:inherit!important;color:inherit!important}
  & .product-opening-toggle input{width:18px;height:18px;min-height:18px;margin:0;accent-color:#0785fb}
  & .product-opening-grid:not(:disabled){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 9px!important;margin:0;padding:8px 0 0!important}
  & .product-opening-grid label{position:relative;display:grid;align-content:start;gap:4px;min-width:0;color:#355582!important;font:600 10px/1.35 Arial!important}
  & .product-live-form>footer{display:flex!important;grid-template-columns:none;justify-content:flex-end;gap:7px!important;margin-top:8px;padding:8px 0 0!important;border-top:1px solid #d2e9ff;background:none}
  & .product-live-form>footer button{width:auto!important;height:34px;min-height:34px!important;padding:7px 13px!important;border:1px solid #bddcff;border-radius:8px;background:#fff;color:#15234c;font:700 11px Arial!important}
  & .product-live-form>footer .product-live-primary{background:linear-gradient(115deg,#00b9ff,#0846fa)!important;color:#fff!important;border-color:#1698ff!important;box-shadow:0 3px 7px #1683e92b}
}

html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) .medaliza-mobile-shell-nav {max-width:872px;}
@media (min-width:768px) {
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) {
    & .medaliza-mobile-shell-nav {left:34px;right:34px;padding:6px;}
    & .medaliza-mobile-shell-nav__track {gap:12px;padding:0;}
    & .medaliza-mobile-shell-nav__item--main {width:clamp(150px,21vw,202px);height:88px;border-radius:20px;}
    & .medaliza-mobile-shell-nav__label {font-size:20px;font-weight:500;}
  }
}
@media (max-width:479px) {
  html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has(:is([data-mobile-route="product-form"],[data-mobile-route="product-details"]) .product-live-page[data-inventory-product-ui]) {
    --pa-space:10px; --pa-gap:8px;
    padding:10px 10px calc(90px + env(safe-area-inset-bottom));
    & .medaliza-mobile-shell-header {min-height:48px;margin-bottom:8px;}
  }

}
@media print { .mi-product-input-clear {display:none!important;} }

/* Keep Retail opening stock's 2-3-3-2 rows compact on phones. */
html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-form"] .product-live-page:not(.product-edit-page) [data-inventory-add-opening] .product-opening-retail-grid:not(:disabled){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;padding:8px 0 0!important}
html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-form"] .product-live-page:not(.product-edit-page) [data-inventory-add-opening] .product-opening-retail-grid > label{gap:0!important;border-radius:10px;font:700 10px/1.25 Arial!important;color:#0b174d!important}
html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-form"] .product-live-page:not(.product-edit-page) [data-inventory-add-opening] .product-opening-retail-label{padding:5px 7px}
html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-form"] .product-live-page:not(.product-edit-page) [data-inventory-add-opening] .product-opening-retail-grid input{height:31px!important;min-height:31px!important;padding:0 5px 0 24px!important;font:500 11px/1.25 Arial!important}
html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-form"] .product-live-page:not(.product-edit-page) [data-inventory-add-opening] .product-opening-retail-grid > label::after{left:8px;bottom:8px;width:11px;height:15px}

/* Inventory View only: shared live form, reference overview and complete batch data. */
html[data-medaliza-ui-mode="mobile"] #app .medaliza-mobile-shell:has([data-mobile-route="product-details"] .product-live-page[data-inventory-product-ui][data-product-mobile-view]){
 max-width:1024px;
 & .medaliza-mobile-shell-header{gap:9px;padding:0 3px;}
 & .medaliza-mobile-shell-header img{display:block;width:clamp(88px,24vw,150px);max-height:42px;}
 & .medaliza-mobile-shell-header>div{padding-left:9px;border-left:1px solid #b7d8ef;}
 & .medaliza-mobile-shell-header b{font:700 16px/1.2 Arial;color:#0b1949;}
 & .medaliza-mobile-shell-header small{font:400 11px/1.3 Arial;color:#607ca2;}
 & [data-product-view-back]{flex:none;height:31px;margin-left:auto;padding:5px 9px;border:1px solid #bddcff;border-radius:8px;background:linear-gradient(120deg,#fff,#f0f8ff);color:#0e376a;font:700 11px Arial;box-shadow:0 3px 8px #2c83c51c;}
}
html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-details"] .product-live-page[data-inventory-product-ui][data-product-mobile-view]{
 & .product-view-icon{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
 & .product-live-title{display:grid!important;grid-template-columns:32px minmax(0,1fr);gap:8px!important;padding:0!important;border:0;background:none;box-shadow:none;}
 & .product-live-title::before{content:none;}
 & .product-view-title-icon{display:grid;place-items:center;width:32px;height:36px;border:1px solid #c8e3fa;border-radius:9px;background:#f6fcff;box-shadow:0 3px 8px #208bda12;color:#0785f7;}
 & .product-view-title-icon svg{width:23px;height:23px;}
 & .product-view-title-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
 & .product-view-title-actions button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:34px;min-width:0;padding:4px 7px;border:1px solid #bddcff;border-radius:8px;background:linear-gradient(120deg,#fff,#edf7ff);color:#0860bf;font:700 11px/1.15 Arial;box-shadow:0 3px 7px #2774c51a;}
 & .product-view-title-actions .product-live-primary{background:linear-gradient(130deg,#00b6ff,#0066ff)!important;}
 & .product-view-overview{display:grid;gap:8px;margin-bottom:8px;padding:10px;border:1px solid #d2e9ff;border-radius:12px;background:linear-gradient(115deg,#fff,#f1f9ff);box-shadow:0 3px 8px #4897cd0d;}
 & .product-view-identity{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
 & .product-view-identity>div{min-width:0;}
 & .product-view-identity h2{margin:0 0 5px;color:#0b1949;font:700 17px/1.2 Arial;overflow-wrap:anywhere;}
 & .product-view-identity p{margin:3px 0 0;color:#526c96;font:400 10px/1.35 Arial;overflow-wrap:anywhere;}
 & .product-live-status{flex:none;padding:6px 8px;border-radius:9px;font:700 10px Arial;}
 & .product-live-status::before{content:'●';margin-right:4px;}
 & .product-view-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
 & .product-view-summary article{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;padding:7px 3px;border-radius:10px;background:linear-gradient(140deg,#e0f4ff,#eaf4ff);color:#0064c4;}
 & .product-view-summary article:nth-child(2){background:linear-gradient(140deg,#e8fbef,#d9f7e7);color:#05833c;}
 & .product-view-summary article:nth-child(3){background:linear-gradient(140deg,#fff3e9,#ffede3);color:#f16820;}
 & .product-view-summary article:nth-child(4){background:linear-gradient(140deg,#f3ebff,#eae1ff);color:#7240c6;}
 & .product-view-summary article:nth-child(5){background:linear-gradient(140deg,#fff9e7,#fff1ce);color:#9a6506;}
 & .product-view-summary article:nth-child(6){background:linear-gradient(140deg,#e9f5ff,#dfeaff);color:#0860bf;}
 & .product-view-summary span{font:400 10px/1.2 Arial;text-align:center;}
 & .product-view-summary b{font:700 19px/1.1 Arial;color:#102454;overflow-wrap:anywhere;max-width:100%;}
 & .product-view-summary .product-view-lowest-purchase{max-width:100%;font:400 9px/1.2 Arial;text-align:center;overflow-wrap:anywhere;color:#526c96;}
 & .product-live-form{display:grid;gap:8px;padding:0!important;border:0;background:none;box-shadow:none;}
 & .product-live-form>section:first-child{padding:10px!important;border:1px solid #d2e9ff!important;border-radius:12px;background:linear-gradient(115deg,#fff,#f8fcff)!important;box-shadow:0 3px 8px #4897cd0d!important;}
 & .product-live-form>section:first-child>header{min-height:29px;padding-bottom:9px!important;}
 & .product-live-form>section:first-child>header::before{content:'i';display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:linear-gradient(130deg,#00b6ff,#0066ff);color:#fff;font:700 18px/1 Arial;}
 & .product-live-form>section:first-child>header small{display:none;}
 & .product-live-form-grid>:has([name=category]){order:8;}
 & .product-live-form-grid>:has([name=unit]){order:9;}
 & .product-live-form-grid>:has([name=pack_size]){order:10;}
 & .product-view-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;}
 & .product-view-options>.product-live-switch{width:100%;}
 & .product-view-options>.product-gst-master{grid-column:1/-1;min-width:0;margin:0;}
 & .product-gst-master>small{font-size:8px!important;}
 & .product-live-form>footer{margin:0;padding:0!important;border:0;}
 & .product-live-form>footer button{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;}
 & .product-view-batches{min-width:0;padding:10px;border:1px solid #d2e9ff;border-radius:12px;background:linear-gradient(115deg,#fff,#f1f8ff);box-shadow:0 3px 8px #4897cd0d;overflow:visible;}
 & .product-view-batches>header{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 8px;border:0;}
 & .product-view-batches>header>div:first-child{flex:1;min-width:140px;}
 & .product-view-batches>header>div:last-child{display:flex;gap:6px;}
 & .product-view-batches header button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:31px;min-height:31px;margin:0;padding:5px 8px;border:1px solid #bddcff;border-radius:8px;background:#f7fcff;color:#0078fc;font:700 11px Arial;}
 & .product-view-batches header small{font:400 9px/1.35 Arial;}
 & .product-view-batches header h2{display:flex;align-items:center;gap:8px;}
 & .product-view-batches header h2 svg{box-sizing:content-box;padding:5px;border-radius:7px;background:#e3f4ff;color:#0084fa;}
 & .product-live-table{width:100%;min-width:0;overflow:visible!important;}
 & .product-live-table :is(table,tbody){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0;border:0;}
 & .product-live-table thead{display:none!important;}
 & .product-live-table tbody{display:grid!important;gap:8px;}
 & .product-live-table tbody>tr{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 0;padding:9px 4px;border:1px solid #d5e8fc;border-left:3px solid #008bff;border-radius:10px;background:linear-gradient(115deg,#fff,#f6faff);}
 & .product-live-table td{display:block!important;grid-column:auto!important;min-width:0;margin:0;padding:0 6px!important;border:0;border-right:1px solid #dceaf7;color:#193557!important;font:400 11px/1.35 Arial!important;overflow-wrap:anywhere;}
 & .product-live-table td::before{content:attr(data-mobile-label);display:block;margin:0 0 4px;color:#627ca2;font:400 10px/1.25 Arial;}
 & .product-live-table td:last-child{border-right:0;}
 & .product-live-table td b{font:700 11px/1.35 Arial;}
 & .product-live-table tr.mi-message-row>td{grid-column:1/-1!important;border:0;}
 & .mi-product-input-wrap::before{background-image:var(--pv-field-icon,var(--pa-field-icon))!important;}
 & .mi-product-input-wrap:has([name=name]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M9 15l6-6M7 12l-3 3a4 4 0 0 0 6 6l3-3M11 6l3-3a4 4 0 0 1 6 6l-3 3'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=generic_composition]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M8 2h8M10 2v7L3 21h18L14 9V2M7 15h10'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=manufacturer]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M3 21V9l6 4V9l6 4V3h5v18zM6 17h1M11 17h1M16 17h1'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=category]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=rack_location]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M20 9c0 6-8 13-8 13S4 15 4 9a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=unit]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M5 19a5 5 0 0 1 0-7l7-7a5 5 0 0 1 7 7l-7 7a5 5 0 0 1-7 0zM8 9l7 7'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=default_sales_discount_percentage]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M3 12l9-9h9v9l-9 9z'/%3E%3Ccircle cx='17' cy='7' r='1'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=barcode]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M3 4v16M7 4v16M10 4v16M14 4v16M17 4v16M21 4v16'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has([name=gst_percentage]){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M4 20L20 4'/%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3C/svg%3E");}
 & .mi-product-input-wrap:has(:is([name=minimum_stock],[name=pack_size],[name=hsn])){--pv-field-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080ef' stroke-width='2'%3E%3Cpath d='M3 7l9-5 9 5-9 5zM3 12l9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E");}
}
@media(min-width:768px){
 html[data-medaliza-ui-mode="mobile"] #app [data-mobile-route="product-details"] .product-live-page[data-inventory-product-ui][data-product-mobile-view]{
  & .product-live-title{grid-template-columns:40px minmax(0,1fr) auto;}
  & .product-view-title-icon{width:40px;height:44px;}
  & .product-view-title-actions{grid-column:1/-1;}
  & .product-view-title-actions button{min-width:135px;}
  & .product-view-overview{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;}
  & .product-view-identity{padding-right:12px;border-right:1px solid #d8e8f6;}
  & .product-view-options{grid-template-columns:repeat(3,minmax(0,1fr));}
  & .product-view-options>.product-gst-master{grid-column:auto;}
  & .product-live-table tbody>tr{grid-template-columns:repeat(9,minmax(0,1fr))!important;}
 }
}
