/* V34 responsive fit: mobile / tablet / desktop only CSS, no business logic changes */
html,body{width:100%;max-width:100%;overflow-x:hidden}.main,.content,.top,.card,.cart,.table{max-width:100%}.card{overflow-x:auto}img{max-width:100%;height:auto}.tableWrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:720px}.content{scroll-margin-bottom:70px}.top .btn{white-space:nowrap}.products{align-items:stretch}.pCard{width:100%}.cart{align-self:start}.form{min-width:0}.field{min-width:0}.field input,.field select,.field textarea,.search{max-width:100%}.modalBox{width:min(760px,94vw)}
@media (min-width:1280px){.content{max-width:1500px;margin:0 auto}.products{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.split{grid-template-columns:minmax(0,1fr) 380px}.hero{grid-template-columns:minmax(0,1fr) 420px}}
@media (max-width:1180px){.app{grid-template-columns:220px minmax(0,1fr)}.side{padding:16px 12px}.brand b{font-size:19px}.brandName{max-width:95px}.nav button{padding:11px 10px;font-size:14px}.content{padding:18px}.split{grid-template-columns:minmax(0,1fr) 320px}.products{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.pCard{min-height:280px}.pImg{height:150px}.heroBasket{width:100%;max-height:230px}.footer{left:220px;font-size:13px}}
@media (max-width:900px){.app{display:block}.side{position:sticky;top:0;z-index:20;height:auto;max-height:none;border-right:0;border-bottom:1px solid var(--line);padding:10px 12px;gap:10px}.brand{justify-content:center}.brand .logo{width:46px;height:46px;border-radius:15px;font-size:24px}.brand b{font-size:18px}.brandName{max-width:220px}.support,.userBox{display:none}.nav{display:flex;flex-direction:row;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:thin}.nav button{flex:0 0 auto;white-space:nowrap;padding:10px 12px;border-radius:999px;font-size:13px}.top{position:sticky;top:116px;z-index:18;height:auto;padding:10px 12px;display:flex;justify-content:center}.top .btn{flex:1;min-width:145px;padding:11px 10px}.content{padding:14px 12px 82px}.footer{left:0;display:grid;grid-template-columns:1fr 1fr;gap:4px;text-align:center;font-size:12px;padding:8px}.split{grid-template-columns:1fr}.cart{position:relative;top:auto;margin-top:14px}.kpis{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr;padding:18px;text-align:center}.hero h1{font-size:26px}.hero img,.heroBasket{width:100%;max-height:210px;transform:none}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pCard{min-height:245px;padding:10px;border-radius:20px}.pImg{height:130px;border-radius:16px}.pName{font-size:16px}.form{grid-template-columns:1fr}.actions{gap:8px}.actions .btn{flex:1 1 140px}.dashProductHead{display:block}.dashSearch,.pageSearch{width:100%;min-width:0;max-width:none;margin-top:10px}.table{font-size:13px}.modalBox{width:94vw;max-height:84vh;padding:16px}.splitPay{grid-template-columns:1fr 1fr}}
@media (max-width:560px){body{font-size:14px}.content{padding:10px 8px 84px}.top{top:106px}.top .btn{font-size:13px;padding:10px 8px}.title{font-size:22px}.card{padding:14px;border-radius:18px}.kpis{grid-template-columns:1fr}.products{grid-template-columns:1fr 1fr;gap:10px}.pCard{min-height:224px;padding:8px}.pImg{height:112px}.price,.stock{font-size:12px}.add{width:34px;height:34px;right:10px;bottom:12px}.cart h2{font-size:22px}.cartItem{grid-template-columns:46px 1fr auto}.cartItem img{width:44px!important;height:44px!important}.qty button{width:26px;height:26px}.weights{grid-template-columns:repeat(2,1fr)}.payGrid{grid-template-columns:1fr}.sumRow{font-size:13px}.sumRow.big{font-size:17px}.footer{grid-template-columns:1fr;font-size:11px}.brandName{max-width:170px}.nav button{font-size:12px}.hero{padding:14px}.hero h1{font-size:22px}.heroBasket{max-height:170px}.loginCard{padding:20px}.loginCard h2{font-size:24px}.table{min-width:680px}.table th,.table td{padding:9px}.permGrid{grid-template-columns:1fr}.splitPay{grid-template-columns:1fr}.imagePick img{width:140px!important;height:105px!important}}
@media (max-width:380px){.products{grid-template-columns:1fr}.pImg{height:150px}.pCard{min-height:255px}.top{top:100px}.nav button{padding:9px 10px}.footer{position:static}.content{padding-bottom:20px}}
@media (orientation:landscape) and (max-height:520px){.side{position:relative}.top{top:0}.footer{position:static}.content{padding-bottom:16px}.cart{position:relative;top:auto}}

/* V35 desktop restore: responsive rules affect tablet/mobile only; desktop keeps full POS layout */
@media (min-width:901px){
  html,body{overflow-x:auto!important}
  .app{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;min-height:100vh!important}
  .side{position:sticky!important;top:0!important;height:100vh!important;border-right:1px solid var(--line)!important;border-bottom:0!important;padding:22px 16px!important;display:flex!important;flex-direction:column!important;gap:18px!important}
  .brand{justify-content:flex-start!important}.brand .logo{width:62px!important;height:62px!important;border-radius:20px!important;font-size:32px!important}.brand b{font-size:24px!important}.brandName{max-width:115px!important}.support,.userBox{display:block!important}.nav{display:flex!important;flex-direction:column!important;gap:8px!important;overflow:visible!important;padding:0!important}.nav button{width:100%!important;white-space:normal!important;border-radius:16px!important;padding:13px 14px!important;font-size:16px!important}
  .top{position:sticky!important;top:0!important;height:86px!important;padding:0 28px!important;justify-content:flex-start!important;display:flex!important;flex-wrap:nowrap!important}
  .top .btn{flex:0 0 auto!important;min-width:auto!important;padding:13px 18px!important}.search{min-width:340px!important;width:auto!important}
  .content{max-width:none!important;margin:0!important;padding:24px 28px 64px!important}.footer{left:250px!important;display:flex!important;grid-template-columns:none!important;font-size:16px!important;position:fixed!important}
  .split{display:grid!important;grid-template-columns:minmax(0,1fr) 340px!important;gap:20px!important}.cart{position:sticky!important;top:100px!important;margin-top:0!important;align-self:start!important}
  .products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:18px!important}.pCard{min-height:285px!important;padding:14px!important;border-radius:22px!important}.pImg{height:160px!important;border-radius:18px!important}.pName{font-size:17px!important}.kpis{grid-template-columns:repeat(4,minmax(160px,1fr))!important}.hero{grid-template-columns:minmax(0,1fr) 520px!important;text-align:left!important;padding:32px!important}.hero h1{font-size:32px!important}.heroBasket{width:min(620px,44vw)!important;max-height:270px!important;transform:scale(1.18)!important}.modalBox{width:min(760px,92vw)!important}.form{grid-template-columns:repeat(2,1fr)!important}.table{font-size:16px!important;min-width:0!important}.dashProductHead{display:flex!important}.dashSearch,.pageSearch{width:auto!important;min-width:280px!important;margin-top:0!important}.payGrid{grid-template-columns:repeat(3,1fr)!important}.weights{grid-template-columns:repeat(4,1fr)!important}
}
