/* Gailan Ramzi V71 CSS: source order preserved from V70 */

/* SOURCE gr-v29-mobile.css */
/* V29 responsive drawer: a single top-left menu replaces the cramped bottom dock. */
.gr-v29-hamburger,.gr-v29-backdrop{display:none}
.gr-v29-hamburger[hidden]{display:none!important}
@media(max-width:880px){
 .mobilemenu{display:none!important}
 .app{display:block!important;min-width:0!important}
 .main{width:100%!important;min-width:0!important;margin:0!important;padding:64px 14px 28px!important}
 .sidebar{position:fixed!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;
   width:min(315px,86vw)!important;max-width:86vw!important;display:flex!important;flex-direction:column;
   padding:18px 12px!important;transform:translateX(-105%);transition:transform .22s ease;
   z-index:92!important;overflow-y:auto!important;box-shadow:12px 0 35px #0004}
 .sidebar .navlabel,.sidebar .brandtxt,.sidebar .navtitle,.sidebar .sidebottom{display:initial!important}
 .sidebar .brand{justify-content:flex-start!important;padding:6px 8px 18px!important}
 .sidebar .navbtn{justify-content:flex-start!important;padding:12px 13px!important;text-align:right!important;gap:12px!important}
 .sidebar .navbtn .ico{font-size:18px!important}
 .gr-v29-hamburger{display:flex;align-items:center;justify-content:center;position:fixed;
   top:calc(env(safe-area-inset-top,0px) + 9px);left:12px;z-index:90;border:1px solid #e2c252;
   border-radius:12px;background:#f7c944;color:#152133;width:45px;height:43px;
   box-shadow:0 5px 15px #0002;cursor:pointer;font-size:25px;line-height:1}
 .gr-v29-backdrop{display:block;position:fixed;inset:0;z-index:91;background:#07132299;
   opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
 body.gr-v29-nav-open .sidebar{transform:translateX(0)!important}
 body.gr-v29-nav-open .gr-v29-backdrop{opacity:1;visibility:visible}
 body.gr-v29-nav-open{overflow:hidden}
 body.gr-v29-nav-open .gr-v29-hamburger{z-index:89}
 .topbar{position:relative!important;top:auto!important;width:100%;min-width:0!important;
   margin:0 0 14px!important;display:flex;flex-wrap:wrap;gap:10px}
 .topright{width:100%;max-width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:8px}
 .previewselector{max-width:100%;flex-wrap:wrap}
 .daily-usd{max-width:100%;min-width:0!important}
 .card,.hero,.subtle,.topbar,.filters{max-width:100%;min-width:0}
 .formgrid,.two,.three{grid-template-columns:1fr!important}
 .dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 22px)!important;padding:16px!important}
}
@media(max-width:570px){
 html,body{max-width:100%;overflow-x:hidden}
 .main{padding:65px 11px 24px!important}
 .topbar{padding:11px!important}
 .gr-v29-hamburger{left:10px}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .productpic{height:145px!important;min-height:0!important}
 .product{min-height:0!important}
 .pbody{padding:12px!important}
 .topright>.field,.topright>.btn{max-width:100%}
 .hero{padding:20px 15px!important}
 .toast{bottom:14px!important;left:12px!important;right:12px!important;max-width:none!important}
}
@media(max-width:390px){
 .grid{grid-template-columns:1fr!important}
 .productpic{height:215px!important}
 .pname{font-size:15px!important}
}
@media(min-width:881px){.gr-v29-hamburger,.gr-v29-backdrop{display:none!important}}
@media print{.gr-v29-hamburger,.gr-v29-backdrop{display:none!important}}


/* SOURCE gr-v34-mobile.css */
/* V34: phone-first layout. Desktop is unchanged; only <= 880px is affected. */
.gr-v34-mobile-dock{display:none}
@media(max-width:880px){
 html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
 body{width:100%;max-width:100%;overflow-x:clip;line-height:1.65}
 #app,#app>.app,.app,.main{min-width:0!important;max-width:100%!important;box-sizing:border-box}
 .main{padding:66px 12px calc(100px + env(safe-area-inset-bottom,0px))!important;width:100%!important;overflow:clip}
 .main>*{min-width:0;max-width:100%}
 .main .topbar{position:relative!important;top:auto!important;margin:0 0 15px!important;padding:13px!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;
  border-radius:15px!important;box-shadow:0 3px 12px #1c30490e}
 .main .topbar>div:first-child{min-width:0;overflow-wrap:anywhere}
 .main .topbar .heading{font-size:clamp(18px,5vw,26px)!important;line-height:1.4!important;margin:3px 0!important}
 .main .topbar .crumb{overflow-wrap:anywhere;font-size:12px}
 .topright{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;align-items:stretch!important}
 .topright>*{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box}
 .topright>.daily-usd{grid-column:1/-1;min-width:0!important;padding:10px!important;white-space:normal!important}
 .topright>.previewselector{grid-column:1/-1;display:grid!important;grid-template-columns:1fr;align-items:stretch;gap:6px!important;
  white-space:normal!important;font-size:13px!important}
 .previewselector select{max-width:100%!important;width:100%!important;font-size:15px!important}
 .topright>.currency-select-top{grid-column:1/-1;display:flex!important;justify-content:space-between;gap:9px}
 .topright>.currency-select-top select{flex:1}
 .topright>.pill{font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:center}
 .topright>.btn{min-height:44px}
 .filters{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
  align-items:stretch!important;margin-bottom:14px!important}
 .filters>*{min-width:0!important;width:100%!important;max-width:100%!important}
 .filters .search,.filters .filter-select{min-height:48px;font-size:16px!important}
 .filters .pill{white-space:normal;justify-content:center}
 .card{padding:15px!important;border-radius:14px!important;max-width:100%;min-width:0}
 .hero{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-height:0!important;
  gap:14px!important;padding:22px 17px!important;border-radius:17px!important}
 .hero .hero-copy,.hero .numbers{position:relative!important;max-width:100%;overflow-wrap:anywhere}
 .hero .hero-copy h2{font-size:clamp(21px,5.5vw,30px)!important;line-height:1.48!important}
 .hero .hero-copy p{font-size:13px;line-height:1.85}
 .hero .numbers{display:flex!important;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
 .hero .numbers b{font-size:29px}
 .hero-with-slides{isolation:isolate;min-height:210px!important}
 .hero-with-slides .hero-slide{object-fit:cover!important}
 .hero-navigation button,.hero-dots button{min-height:36px;min-width:36px}
 .grid,.category-grid,.customer-card-grid,.discount-product-grid,.quote-picker-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .grid>* ,.category-grid>* ,.customer-card-grid>* ,.quote-picker-grid>*{min-width:0!important;max-width:100%!important}
 .product{min-height:0!important;overflow:hidden!important;border-radius:15px!important;box-shadow:0 4px 14px #17243a12}
 .productpic{height:clamp(130px,35vw,220px)!important;min-height:0!important;overflow:hidden!important}
 .productpic img{padding:8px!important;object-fit:contain!important;width:100%!important;height:100%!important}
 .product .catpill{max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis}
 .product .deal-ribbon{left:0!important;right:0!important;top:0!important;border-radius:8px 8px 0 0;font-size:11px!important}
 .product:has(.deal-ribbon){overflow:hidden!important}
 .product:has(.deal-ribbon) .productpic img{padding-top:45px!important}
 .pbody{min-width:0;display:flex!important;flex-direction:column;padding:11px!important;gap:3px}
 .pname{font-size:clamp(13px,3.5vw,17px)!important;line-height:1.6!important;overflow-wrap:anywhere}
 .pcode,.pack-note{font-size:11px!important;overflow-wrap:anywhere}
 .pfoot{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;margin-top:auto}
 .pfoot .price{font-size:clamp(16px,4vw,23px)!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere}
 .pfoot .toolbar{width:100%;display:flex!important}
 .pfoot .toolbar>.btn{width:100%!important;min-height:44px!important;padding:9px 5px!important;
  white-space:normal;text-align:center;font-size:12px!important}
 .catgroup-heading,.sectionline,.category-heading{display:flex!important;align-items:flex-start!important;
  flex-wrap:wrap!important;gap:9px!important;min-width:0;overflow-wrap:anywhere}
 .catgroup-heading{padding:11px!important}
 .catgroup-heading h3{font-size:16px!important;min-width:0;overflow-wrap:anywhere}
 .catgroup-heading .count{font-size:11px!important}
 .category-card{min-height:0!important;padding:9px!important;gap:7px!important;overflow:hidden}
 .category-card img{height:clamp(100px,33vw,175px)!important;object-fit:contain!important}
 .category-card b{font-size:13px!important;overflow-wrap:anywhere}
 .two,.three,.formgrid,.quote-grid,.template-sum-grid,.discount-targets,.checkgrid{
  grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .full,[style*="grid-column:1/-1"]{grid-column:auto!important}
 .toolbar,.sectionhead,.inputrow,.pack-actions,.sheet-actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important;min-width:0}
 .toolbar>*{min-width:0;max-width:100%;box-sizing:border-box}
 .toolbar .btn,.pack-actions .btn,.sheet-actions .btn{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 .field,.stack,.notice,.note,.subtle,.status-cards,.quote-preview{min-width:0;max-width:100%;overflow-wrap:anywhere}
 input,select,textarea{min-width:0!important;max-width:100%!important;box-sizing:border-box;font-size:16px!important}
 input[type=file]{white-space:normal}
 textarea{min-height:100px}
 button,.btn{touch-action:manipulation}
 .gr-v29-hamburger{width:47px!important;height:47px!important;box-shadow:0 4px 14px #1027393b!important}
 .sidebar{max-width:min(340px,88vw)!important;width:min(340px,88vw)!important;overscroll-behavior:contain}
 .sidebar .navbtn{min-height:46px!important;overflow-wrap:anywhere}
 .sidebar .brandtxt{min-width:0;overflow-wrap:anywhere}
 .overlay{z-index:100!important;align-items:flex-end!important;padding:0!important;overscroll-behavior:contain}
 .dialog{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 8px)!important;
  border-radius:19px 19px 0 0!important;padding:15px!important;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain}
 .dialoghead{position:sticky!important;top:-15px;z-index:5;background:#fff;border-bottom:1px solid #e9ecef;
  padding:10px 0;margin-bottom:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .dialoghead h3{font-size:17px!important;overflow-wrap:anywhere;flex:1;min-width:0}
 .dialoghead .btn{min-height:44px}
 body:has(#overlay) .gr-v29-hamburger,body:has(#overlay) .gr-v34-mobile-dock{display:none!important}
 .pack-modal-header{flex-direction:column!important;gap:10px!important}
 .pack-modal-header img{width:100%!important;height:170px!important;max-height:170px;object-fit:contain!important}
 .pack-summary,.pack-modal-header h3{max-width:100%;overflow-wrap:anywhere}
 .pack-toggle,.pack-switch{flex-wrap:wrap!important}
 .tablewrap{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;border-radius:12px}
 .table{font-size:12px}
 .table td,.table th{padding:9px!important}
 .cart-product{min-width:0!important;gap:9px!important;overflow-wrap:anywhere}
 .cart-product>div{min-width:0;overflow-wrap:anywhere}
 .tablewrap:has([data-qty]){overflow:visible!important;border:0!important}
 .tablewrap:has([data-qty]) .table,.tablewrap:has([data-qty]) tbody{width:100%!important;min-width:0!important;display:block!important}
 .tablewrap:has([data-qty]) thead{display:none!important}
 .tablewrap:has([data-qty]) tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;padding:12px;margin:12px 0;background:#fff;border:1px solid #e4e8ed;border-radius:14px}
 .tablewrap:has([data-qty]) td{border:0!important;padding:0!important;min-width:0!important;overflow-wrap:anywhere}
 .tablewrap:has([data-qty]) td:first-child{grid-column:1/-1}
 .tablewrap:has([data-qty]) td:nth-child(2)::before{content:'نرخ';display:block;color:#6d7786;font-size:11px}
 .tablewrap:has([data-qty]) td:nth-child(3)::before{content:'بڕ';display:block;color:#6d7786;font-size:11px}
 .tablewrap:has([data-qty]) td:nth-child(4)::before{content:'کۆی نرخ';display:block;color:#6d7786;font-size:11px}
 .tablewrap:has([data-qty]) td:nth-child(5){display:flex;align-items:flex-end;justify-content:flex-end}
 .tablewrap:has([data-qty]) td:nth-child(5) .btn{min-height:42px!important;min-width:45px}
 .tablewrap:has([data-packageqty]){overflow:visible!important;border:0!important}
 .tablewrap:has([data-packageqty]) .table,.tablewrap:has([data-packageqty]) tbody{width:100%!important;min-width:0!important;display:block!important}
 .tablewrap:has([data-packageqty]) thead{display:none!important}
 .tablewrap:has([data-packageqty]) tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;padding:12px;margin:12px 0;background:#fff;border:1px solid #e4e8ed;border-radius:14px}
 .tablewrap:has([data-packageqty]) td{border:0!important;padding:0!important;min-width:0!important;overflow-wrap:anywhere}
 .tablewrap:has([data-packageqty]) td:first-child{grid-column:1/-1}
 .tablewrap:has([data-packageqty]) td:nth-child(2)::before{content:'نرخی پاکێج';display:block;color:#64748b;font-size:11px}
 .tablewrap:has([data-packageqty]) td:nth-child(3)::before{content:'دۆنم';display:block;color:#64748b;font-size:11px}
 .tablewrap:has([data-packageqty]) td:nth-child(4)::before{content:'کۆی پاکێج';display:block;color:#64748b;font-size:11px}
 .tablewrap:has([data-packageqty]) td:nth-child(5){display:flex;justify-content:flex-end;align-items:end}
 .quantity{width:100%!important;min-height:44px}
 .totalbar{flex-direction:column!important;align-items:flex-start!important;gap:6px!important;padding:18px!important;
  max-width:100%;overflow-wrap:anywhere}
 .totalbar strong{font-size:clamp(18px,6vw,28px)!important;overflow-wrap:anywhere}
 .quote-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  border:1px solid #e1e7ed!important;border-radius:13px;margin:10px 0;padding:12px!important}
 .quote-row>img{width:95px!important;height:93px!important;max-width:100%!important;object-fit:contain}
 .quote-row>div{min-width:0;overflow-wrap:anywhere}
 .quote-row>input{min-height:44px!important;width:100%!important}
 .quote-row>[data-qqty] {grid-column:1}
 .quote-row>[data-qprice] {grid-column:2}
 .quote-row>.line-total{min-width:0!important;overflow-wrap:anywhere}
 .quote-row>.btn{min-height:42px;justify-self:end}
 .customer-sheet .sheet-row{flex-wrap:wrap;overflow-wrap:anywhere}
 .authback{min-height:100dvh!important;padding:12px!important;align-items:flex-start!important}
 .authpanel{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:520px;margin:10px auto!important;
  border-radius:20px!important}
 .authvisual{display:none!important}
 .authform{min-width:0!important;padding:20px 15px!important}
 .gr-v34-catalog-choice{margin:12px 0}
 .gr-v34-catalog-options{display:flex;gap:10px;flex-wrap:wrap}
 .gr-v34-catalog-options>.btn,.gr-v34-catalog-choice>button{min-height:48px;width:100%}
 .gr-v34-mobile-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;position:fixed;
  bottom:0;left:0;right:0;width:100%;padding:7px 9px calc(8px + env(safe-area-inset-bottom,0px));
  z-index:85;background:#fff;box-shadow:0 -5px 22px #0c243020;border-top:1px solid #e3e9ec;direction:rtl}
 .gr-v34-mobile-dock[hidden]{display:none!important}
 .gr-v34-mobile-dock button{border:0;background:transparent;color:#5c6975;border-radius:12px;padding:5px 3px;
  min-height:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  font:700 11px/1.35 Tahoma,Arial,sans-serif;overflow-wrap:anywhere}
 .gr-v34-mobile-dock button .gr-v34-dock-icon{font-size:22px;line-height:1.2}
 .gr-v34-mobile-dock button[data-active="true"]{color:#153d3d;background:#fff3ca}
 .gr-v34-mobile-dock button:focus-visible{outline:2px solid #197a62;outline-offset:-2px}
 .toast{z-index:120!important;bottom:calc(85px + env(safe-area-inset-bottom,0px))!important;
  left:10px!important;right:10px!important;max-width:none!important}
 .sidebar .sidebottom{margin-top:auto;overflow-wrap:anywhere}
}
@media(max-width:380px){
 .grid,.category-grid,.quote-picker-grid{grid-template-columns:minmax(0,1fr)!important}
 .productpic{height:220px!important}
 .topright{grid-template-columns:minmax(0,1fr)!important}
 .topright>*{grid-column:1/-1!important}
 .pfoot .btn{font-size:14px!important}
 .gr-v34-mobile-dock button{font-size:10px!important}
}
@media print{.gr-v34-mobile-dock{display:none!important}}


/* SOURCE gr-v39-grid-layout.css */
/* Only product cards are configurable. Admin tables, category cards and PDF
   layouts keep their existing website design. */
:root {
  --gr-shop-desktop-cols: 4;
  --gr-shop-mobile-cols: 2;
}
#product-grid .grid {
  grid-template-columns: repeat(var(--gr-shop-desktop-cols), minmax(0, 1fr)) !important;
}
@media (max-width: 880px) {
  #product-grid .grid {
    grid-template-columns: repeat(var(--gr-shop-mobile-cols), minmax(0, 1fr)) !important;
  }
  #product-grid .product { min-width: 0; }
  #product-grid .productpic img { object-fit: contain; }
}
@media (max-width: 380px) {
  #product-grid .productpic { height: clamp(105px, 36vw, 215px) !important; }
}
@media print {
  #product-grid .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* SOURCE gr-v54-sticky.css */
/* V54 – category return controls stay reachable during scrolling. */
.gr54-category-sticky {position:sticky!important; top:8px; z-index:11; background:rgba(249,250,252,.98); padding:10px 12px; border:1px solid #e0e4e9; border-radius:14px; box-shadow:0 6px 18px #13222e11;}
.gr54-picker-back{position:sticky!important;top:0;z-index:15;background:#fff!important;border:1px solid #d6dde7!important;box-shadow:0 4px 12px #0002;}
@media(max-width:700px){.gr54-category-sticky{top:4px;padding:8px;gap:6px}.gr54-category-sticky h2{font-size:17px;margin:0}.gr54-category-sticky .pill{display:none}}


/* SOURCE gr-v51-suppliers.css */
/* V51 supplier orders - scoped to its own page. */
.v51-stack{display:grid;gap:16px;direction:rtl}.v51-company-grid,.v51-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.v51-company,.v51-product{background:white;border:1px solid #e6e9ed;border-radius:16px;padding:15px;display:flex;flex-direction:column;gap:8px;min-width:0;box-shadow:0 3px 14px #1c253408}
.v51-company img{max-width:120px;max-height:75px;object-fit:contain;margin:auto}.v51-product img{width:100%;height:112px;object-fit:contain;background:#f8f9fa;border-radius:10px}
.v51-code{font-size:12px;color:#3e5060;direction:ltr;text-align:right;overflow-wrap:anywhere}.v51-pair{background:#fff7d9;border-radius:10px;padding:7px;font-size:12px}
.v51-tabs{display:flex;flex-wrap:wrap;gap:8px}.v51-tabs button{border-radius:9px;padding:9px 14px;background:#f1f3f5;color:#232f3b;font-weight:bold}.v51-tabs button.on{background:#f7c944}
.v51-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.v51-head h3{margin:0}.v51-logo{max-height:80px;max-width:140px;object-fit:contain}
.v51-product h4{margin:1px 0 0;overflow-wrap:anywhere}.v51-product input[type=number]{width:100%;padding:9px;border-radius:9px;border:1px solid #dae1e9;font-size:14px}
.v51-wide{display:flex;gap:10px;flex-wrap:wrap}.v51-toolbar{background:#fff;border:1px solid #e3e9ef;padding:12px;border-radius:13px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.v51-toolbar input{flex:1;min-width:180px}.v51-muted{font-size:12px;color:#687784}.v51-card-summary{background:#e3f7ef;border:1px solid #c1ebd9;border-radius:11px;padding:10px;font-weight:bold;color:#086248}
.v51-snapshot{border:1px solid #e1e7e8;background:#fff;border-radius:12px;padding:12px;line-height:2}.v51-snapshot strong{color:#102d2d}
@media(max-width:600px){.v51-company-grid,.v51-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v51-company,.v51-product{padding:9px}.v51-product img{height:94px}}

/* V60: categorized supplier shopping workspace; works in RTL and on phones. */
.v60-category-strip{display:flex;gap:8px;overflow-x:auto;padding:9px 1px 13px;position:sticky;top:0;z-index:3;background:#f5f6f8}.v60-cat{white-space:nowrap;flex:0 0 auto;padding:9px 14px;border:1px solid #d9dee7;background:#fff;border-radius:12px;font-weight:700}.v60-cat.selected{background:#f7c944;border-color:#d4aa29}.v60-group{display:grid;gap:12px;padding-top:10px}.v60-group-title{display:flex;justify-content:space-between;align-items:center;border-right:5px solid #f7c944;border-radius:10px;background:white;padding:11px 16px}.v60-group-title span{background:#fff2c0;border-radius:20px;padding:3px 10px;font-size:12px}.v60-shopping-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.v60-product{padding:12px;gap:9px}.v60-photo{height:152px;display:grid;place-items:center;background:#f6f7f9;border-radius:10px}.v60-product .v60-photo img{height:100%;width:100%;object-fit:contain}.v60-product-details{display:grid;gap:3px;font-size:12px;background:#f8fafb;padding:8px;border-radius:9px}.v60-product-details b{color:#16734e}.v60-product-details .v60-low b{color:#b13e3e}.v60-qty-row{display:flex;align-items:center;gap:7px}.v60-qty-row input{text-align:center;min-width:0;flex:1;border:1px solid #d5dce4;border-radius:8px;padding:8px;max-width:100%}.v60-qty-row .btn{font-size:17px;min-width:35px}.v60-add{margin-top:auto}.v60-basket{border:1px solid #dfc66b;background:white;border-radius:15px;padding:13px;display:grid;gap:9px}.v60-basket-head{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap}.v60-basket-rows{display:grid;gap:6px;max-height:340px;overflow-y:auto}.v60-basket-line{display:grid;grid-template-columns:minmax(130px,1fr) minmax(75px,.5fr) 115px auto;gap:8px;align-items:center;padding:7px;border-bottom:1px solid #e6e9ed}.v60-basket-line input{width:100%;min-width:0;padding:8px;border:1px solid #d8dde3;border-radius:7px}.v60-basket-line small{overflow-wrap:anywhere;color:#677}.v60-basket-line .btn{justify-self:start}@media(max-width:650px){.v60-shopping-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v60-photo{height:105px}.v60-product{padding:8px}.v60-basket-line{grid-template-columns:1fr 90px auto}.v60-basket-line small{display:none}}

@media(max-width:1150px){.v60-shopping-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.v60-shopping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V61 — supplier cards match the main catalog: fixed photo viewport, clean body, responsive columns.
   Restrict styles to the supplier shopping grid; do not affect catalog or supplier mapping page. */
.v51-product-grid.v60-shopping-grid {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-items:stretch; min-width:0;}
.v60-shopping-grid > .v61-supplier-card { display:flex; flex-direction:column; width:100%; min-width:0; max-width:100%; height:100%; padding:0; gap:0; overflow:hidden; border-radius:15px; background:#fff; border:1px solid #e3e8ec; box-shadow:0 3px 12px #182e4b09; }
.v60-shopping-grid > .v61-supplier-card > .v61-product-image { display:flex; align-items:center; justify-content:center; flex:0 0 160px; height:160px; min-height:0; max-height:160px; width:100%; min-width:0; padding:12px; overflow:hidden; background:#f3f5f7; border-radius:0; position:relative; }
.v60-shopping-grid > .v61-supplier-card > .v61-product-image > img { display:block; flex:0 1 auto; width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important; min-width:0; min-height:0; object-fit:contain !important; object-position:center; border-radius:0; background:transparent; }
.v61-product-body { display:flex; flex:1; flex-direction:column; gap:7px; padding:12px; min-width:0; overflow-wrap:anywhere; }
.v61-product-name { font-weight:800; font-size:14px; line-height:1.5; margin:0; min-height:42px; max-height:64px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow-wrap:anywhere; }
.v61-local-code { color:#73808e; font-size:11px; line-height:1.5; direction:rtl; text-align:right; }
.v61-supplier-info { background:#fff7e2; border:1px solid #faedc6; padding:8px 9px; border-radius:9px; min-height:70px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.v61-supplier-name { font-size:12px; line-height:1.5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.v61-supplier-code { color:#736246; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.v61-product-meta { gap:4px; font-size:11px; padding:9px; }
.v61-product-meta span { overflow-wrap:anywhere; }
.v61-card-actions { display:flex; flex-direction:column; gap:8px; margin-top:auto; padding-top:4px; min-width:0; }
.v61-qty-row { width:100%; gap:6px; flex-wrap:nowrap; min-width:0; }
.v61-qty-row .btn { flex:0 0 34px; min-width:34px; height:37px; padding:0; justify-content:center; font-size:17px; }
.v61-qty-row input { flex:1 1 0; width:0; min-width:0; max-width:100%; height:37px; padding:4px 3px; text-align:center; }
.v61-add { width:100%; min-height:40px; padding:9px 7px; line-height:1.4; white-space:normal; }
@media(max-width:1150px){.v51-product-grid.v60-shopping-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:800px){.v51-product-grid.v60-shopping-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v60-shopping-grid > .v61-supplier-card > .v61-product-image{height:125px;max-height:125px;flex-basis:125px;padding:9px}.v61-product-body{padding:9px;gap:6px}.v61-product-name{font-size:12px;min-height:37px;line-height:1.45}.v61-supplier-name{font-size:11px}.v61-supplier-code,.v61-local-code,.v61-product-meta{font-size:10px}.v61-qty-row .btn{flex-basis:30px;min-width:30px;height:34px}.v61-qty-row input{height:34px}}
@media(max-width:410px){.v60-shopping-grid > .v61-supplier-card > .v61-product-image{height:103px;max-height:103px;flex-basis:103px;padding:7px}.v61-supplier-info{min-height:68px;padding:6px}.v61-add{font-size:11px}}


/* SOURCE gr-v53-order-edit.css */
/* V53 isolated order-preparation editor */
.gr53-line{background:#f7f9fc;border:1px solid #dfe6ef;border-radius:12px;padding:12px;margin:7px 0}
.gr53-line-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
#gr53OrderForm{max-width:100%;overflow-wrap:anywhere}
#gr53OrderForm .toolbar{display:flex;gap:9px;flex-wrap:wrap}
#gr53OrderForm [name="qty"]{max-width:170px}
@media(max-width:600px){#gr53OrderForm .toolbar{flex-direction:column}#gr53OrderForm [name="qty"]{max-width:none;width:100%}}


/* SOURCE gr-v63-sort.css */
.gr63-overlay{position:fixed;inset:0;z-index:120;background:#101723c9;display:flex;align-items:center;justify-content:center;padding:14px;direction:rtl}
.gr63-window{background:#fff;width:min(960px,100%);height:min(92vh,900px);border-radius:20px;box-shadow:0 20px 80px #0005;padding:22px;display:flex;flex-direction:column;gap:14px;min-height:0;color:#1d2630}
.gr63-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;flex-wrap:wrap}.gr63-head h2{margin:0;font-size:20px}.gr63-head p{margin:4px 0 0}
.gr63-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.gr63-toolbar input{flex:1;max-width:310px}.gr63-counter,.gr63-dirty{border:1px solid #e1e5e9;background:#f7f8fa;border-radius:9px;padding:8px 12px;font-size:12px}.gr63-dirty{margin-inline-start:auto;color:#306953}
.gr63-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:4px 3px}
.gr63-sortrow{display:flex;align-items:center;gap:9px;padding:11px 10px;border:1px solid #e0e5ec;border-radius:11px;background:#fff;min-height:65px}
.gr63-sortrow:hover{border-color:#dbb336;background:#fffdf5}.gr63-sortrow.gr63-dragging{opacity:.45}.gr63-sortrow.gr63-target{background:#fff4cf;outline:2px dashed #d8a91c}
.gr63-handle{cursor:grab;user-select:none;touch-action:none;font-size:23px;color:#667281;width:28px;text-align:center}.gr63-handle:active{cursor:grabbing}
.gr63-name{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:2px;background:transparent;color:#1c2835;overflow-wrap:anywhere}.gr63-name b{font-size:14px}.gr63-name small{font-size:11px;color:#6c7888}
.gr63-step{background:#f8fafb;border:1px solid #dee4ea;color:#344252;width:34px;height:34px;border-radius:8px}.gr63-move{max-width:160px;border-radius:7px;border:1px solid #dce2e9;background:#fff;padding:7px;font-size:11px}
.gr63-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid #e6e9ed}
#settingsForm .checkboxline:has(input:checked){background:#edf9f1;border:1px solid #afd7be;color:#1d6242}#settingsForm .checkboxline:not(:has(input:checked)){border:1px solid #e4e7ed}
.gr63-on-state{margin-inline-start:auto;font-size:11px;font-weight:800;white-space:nowrap;border-radius:10px;padding:3px 9px;background:#edf0f4;color:#55616e}.gr63-on-state.is-on{background:#d8f4e2;color:#136a3c}
@media(max-width:650px){.gr63-window{height:94vh;padding:12px}.gr63-sortrow{gap:4px;padding:8px 5px}.gr63-step{width:28px}.gr63-move{max-width:110px}.gr63-toolbar .gr63-dirty{margin-inline-start:0}}


/* SOURCE gr-v65-settings.css */
/* V65 ON/OFF sliders: original input remains in the DOM for FormData and keyboard access. */
#settingsForm .checkboxline:has(.gr65-switch){display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-height:60px;padding:11px 14px;border-radius:12px;background:#f6f7f9;border:1px solid #e0e5eb;cursor:pointer}
#settingsForm .gr65-switch{appearance:none;-webkit-appearance:none;display:inline-block;flex:0 0 54px;width:54px;height:29px;border:1px solid #b6c0ce;border-radius:18px;background:#cad0d9;position:relative;cursor:pointer;transition:background .16s,border-color .16s;vertical-align:middle;outline:none;margin:0}
#settingsForm .gr65-switch::before{content:'';display:block;position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:white;box-shadow:0 1px 4px #0003;transition:transform .16s}
#settingsForm .gr65-switch:checked{background:#16a466;border-color:#0b8751}
#settingsForm .gr65-switch:checked::before{transform:translateX(25px)}
#settingsForm .gr65-switch:focus-visible{outline:3px solid #f7c944;outline-offset:3px}
#settingsForm .gr65-toggle-state{font-size:12px;font-weight:800;color:#5b6675;white-space:nowrap;border-radius:50px;background:#e9ecf0;padding:6px 10px}
#settingsForm .gr65-switch:checked+.gr65-toggle-state{background:#d9f5e5;color:#087643}
#settingsForm[data-gr65-dirty="1"]>div:has(button[type="submit"]),#settingsForm[data-gr65-dirty="1"]>div:has(button:not([type])){border-inline-start:4px solid #f5bb2e}
@media(max-width:600px){#settingsForm .checkboxline:has(.gr65-switch){gap:8px;padding:10px}#settingsForm .gr65-toggle-state{font-size:11px}}


/* SOURCE gr-v64-list-designs.css */
.gr64-wrap{margin:20px 0;max-width:1050px;direction:rtl;overflow:visible}
.gr64-intro{color:#5b6879;font-size:13px;line-height:1.9}
.gr64-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(270px,1fr);gap:14px}
.gr64-field{display:flex;flex-direction:column;gap:6px;min-width:0}.gr64-field label{font-size:12px;font-weight:700;color:#374151}
.gr64-field input:not([type=checkbox]),.gr64-field select,.gr64-field textarea{width:100%;min-width:0;border:1px solid #d8dee8;border-radius:10px;background:#fff;padding:10px;color:#1f2937;box-sizing:border-box}
.gr64-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:15px}
.gr64-actions button{border:1px solid #cfd8e4;border-radius:10px;background:white;padding:9px 12px;cursor:pointer;color:#1c2c3d;font-weight:700;font-size:12px}
.gr64-actions button.gr64-primary{background:#f8c941;border-color:#dfb02c}.gr64-actions button:disabled{opacity:.55;cursor:default}
.gr64-pill{padding:4px 9px;border-radius:20px;background:#eaf7ed;color:#16592d;font-size:11px;font-weight:700}
.gr64-preview{border:1px solid #e0e5ec;border-radius:12px;background:white;padding:15px;max-width:520px;box-shadow:0 4px 17px #0000000a}
.gr64-preview-head{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 11px;border-bottom:3px solid var(--accent)}
.gr64-preview-logo{border:1px solid #ddd;padding:8px;max-height:44px;font-weight:800;color:#926a10}.gr64-preview-table{width:100%;border-collapse:collapse;font-size:11px;margin-top:14px}
.gr64-preview-table th,.gr64-preview-table td{border:1px solid #cdd5dc;padding:6px;vertical-align:middle;text-align:right}.gr64-preview-table th{background:#f5f7fa}.gr64-preview-total{display:flex;justify-content:space-between;margin-top:12px;padding:8px;font-weight:800;border-top:2px solid var(--accent)}
.gr64-code{width:100%;font-family:monospace!important;direction:ltr!important;text-align:left;line-height:1.6;font-size:12px;min-height:190px;white-space:pre;tab-size:2}
.gr64-alert{padding:11px 13px;border:1px solid #f3d178;border-radius:9px;background:#fff8dd;color:#7a5414;margin:8px 0}
.gr64-checkbox{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:12px}
@media(max-width:700px){.gr64-grid{grid-template-columns:1fr}.gr64-wrap{padding:14px}}
@media print{.gr64-wrap{display:none!important}}


/* V77: category opens inside its own dedicated box with a back action. */
.gr77-category-box{background:#fff;border:1px solid #e5eaf0;border-top:4px solid #f7c944;border-radius:16px;padding:16px;box-shadow:0 8px 20px #12202b0d;min-height:230px}.gr77-category-box .category-heading{background:#fff;z-index:5}.gr77-category-box .grid{padding-top:6px}@media(max-width:680px){.gr77-category-box{padding:10px;border-radius:12px}}

/* V79 supplier purchase order quick entry – isolated to supplier workspace */
.v79-supplier-quick-panel{background:#fff;border:1px solid #e3e8ed;border-radius:16px;padding:12px;margin:10px 0 16px;box-shadow:0 5px 18px rgba(15,23,42,.05)}
.v79-supplier-quick-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.v79-supplier-quick-top>div{display:grid;gap:5px}.v79-supplier-quick-top b{font-size:17px;color:#19252c}.v79-supplier-quick-top small{font-size:12px;color:#64748b}
.v79-supplier-quick-list{display:grid;gap:4px;max-height:65vh;overflow:auto}
.v79-supplier-quick-row{display:grid;grid-template-columns:52px minmax(135px,1fr) 38px 88px 38px;gap:8px;align-items:center;padding:6px 8px;background:#fcfdfe;border:1px solid #e8eef2;border-radius:10px}
.v79-supplier-quick-row:hover{background:#fffaec;border-color:#f0d47b}
.v79-supplier-thumb{height:46px;width:50px;object-fit:contain;border:1px solid #e5eaeb;border-radius:8px;background:#fff;display:grid;place-items:center;color:#aab3b9;font-size:10px}
.v79-supplier-thumb img{height:100%;width:100%;object-fit:contain}
.v79-supplier-quick-name{min-width:0;display:grid;gap:3px;text-align:right}.v79-supplier-quick-name strong{font-size:13px;overflow-wrap:anywhere}.v79-supplier-quick-name small{font-size:11px;color:#64748b;overflow-wrap:anywhere}
.v79-supplier-quick-row input,.v79-supplier-basket-line input{width:100%;height:35px;border:1px solid #cbd5e1;border-radius:7px;text-align:center;font-weight:700;font-size:14px;background:#fff}
.v79-supplier-basket-line{display:grid!important;grid-template-columns:50px minmax(100px,1fr) 34px 80px 34px 38px;align-items:center;gap:6px}
.v79-supplier-basket-line>span{display:grid;gap:4px;text-align:right;min-width:0}.v79-supplier-basket-line small{color:#64748b}
@media(max-width:720px){.v79-supplier-quick-row{grid-template-columns:40px minmax(80px,1fr) 28px 60px 28px;gap:4px;padding:5px 3px}.v79-supplier-thumb{width:40px;height:40px}.v79-supplier-quick-name strong{font-size:12px}.v79-supplier-quick-name small{font-size:10px}.v79-supplier-basket-line{grid-template-columns:38px minmax(70px,1fr) 27px 54px 27px 27px;gap:3px}.v79-supplier-basket-line .btn{padding:6px 2px!important}.v79-supplier-quick-panel{padding:8px}}
