.agro-auth-languages{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:0 0 10px}.agro-auth-languages button,[data-agro-lang]{border:1px solid rgba(125,211,252,.28);background:#0b2030;color:#dff7ff;border-radius:9px;padding:7px 11px;font-weight:800;cursor:pointer}.agro-auth-languages button.active,[data-agro-lang].active{background:linear-gradient(135deg,#14b8a6,#2563eb);color:#fff;box-shadow:0 6px 18px rgba(37,99,235,.25)}
.modalbox:has(.agro-pos-shell){width:min(1180px,96vw);height:min(740px,94vh);display:flex;flex-direction:column}.modalbox:has(.agro-pos-shell) #modalForm{display:flex;min-height:0;flex:1;flex-direction:column}.modalbox:has(.agro-pos-shell) .modalbody{min-height:0;flex:1;overflow:hidden}.modalbox:has(.agro-pos-shell) .formgrid{height:100%;display:block}.agro-pos-shell{height:100%;display:flex;flex-direction:column;gap:10px}.agro-pos-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.agro-pos-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:10px;min-height:0;flex:1}.agro-pos-products,.agro-pos-cart{border:1px solid rgba(56,189,248,.25);background:rgba(2,18,30,.7);border-radius:14px;padding:10px;min-height:0}.agro-pos-products{display:flex;flex-direction:column}.agro-pos-search{width:100%;margin:0 0 9px}.agro-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:auto;padding-right:4px}.agro-product-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1px solid rgba(94,234,212,.28);background:linear-gradient(160deg,#0d2832,#10203b);color:#eefcff;border-radius:12px;padding:9px;min-height:150px;cursor:pointer}.agro-product-card:hover{border-color:#22d3ee;transform:translateY(-1px)}.agro-product-card small,.agro-product-card span{font-size:11px;color:#9cc9d2}.agro-product-card strong{font-size:17px;color:#facc15}.agro-product-card em{margin-top:auto;width:100%;font-style:normal;text-align:center;background:linear-gradient(90deg,#10b981,#2563eb);padding:7px;border-radius:8px;color:#fff;font-weight:800}.agro-product-icon{font-size:25px!important}.agro-pos-cart{display:flex;flex-direction:column;overflow:hidden}.agro-pos-cart h3{display:flex;justify-content:space-between;margin:0 0 8px}.agro-cart-count{background:#2563eb;border-radius:999px;padding:2px 8px}.agro-cart-lines{display:flex;flex-direction:column;gap:7px;overflow:auto;min-height:80px;flex:1}.agro-cart-row{display:grid;grid-template-columns:minmax(0,1fr) 58px 76px auto 26px;gap:5px;align-items:center;border:1px solid rgba(148,163,184,.2);border-radius:9px;padding:7px;background:#071827}.agro-cart-row div{min-width:0}.agro-cart-row b,.agro-cart-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agro-cart-row input{min-width:0;padding:6px}.agro-cart-row button{padding:5px;background:#7f1d1d;color:#fff;border:0;border-radius:6px}.agro-cart-empty{display:grid;place-items:center;height:100%;color:#8da7b5}.agro-pos-totals{border-top:1px solid rgba(148,163,184,.25);margin-top:8px;padding-top:8px}.agro-pos-totals>div{display:flex;justify-content:space-between;padding:5px 0}.agro-pos-totals b{color:#facc15}.agro-pos-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.agro-pos-stats>div{border:1px solid rgba(45,212,191,.25);background:linear-gradient(135deg,#0e2930,#12243b);border-radius:11px;padding:10px}.agro-pos-stats span,.agro-pos-stats b{display:block}.agro-pos-stats span{color:#9fc4cc;font-size:12px}.agro-pos-stats b{font-size:19px;color:#facc15;margin-top:3px}html[dir="rtl"] .agro-product-card{text-align:right}
@media(max-width:900px){.agro-pos-top{grid-template-columns:repeat(2,minmax(0,1fr))}.agro-pos-main{grid-template-columns:1fr}.agro-pos-cart{max-height:270px}.agro-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.agro-pos-top{grid-template-columns:1fr}.agro-product-grid{grid-template-columns:1fr}.agro-pos-stats{grid-template-columns:1fr}.agro-cart-row{grid-template-columns:minmax(0,1fr) 52px 65px auto 24px}.modalbox:has(.agro-pos-shell){width:100vw;height:100vh;max-height:none;border-radius:0}}
.agro-cart-row-wrap{border:1px solid rgba(148,163,184,.2);border-radius:9px;padding:7px;background:#071827}.agro-cart-row-wrap .agro-cart-row{border:0;padding:0;background:transparent}.agro-cart-batch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}.agro-cart-batch input{min-width:0;padding:6px}

/* Premium purple POS — matched to the supplied reference */
.modalbox:has(.agro-pos-shell){width:min(1240px,98vw);height:min(780px,96vh);max-width:none;background:linear-gradient(145deg,#0d0820 0%,#140b2b 50%,#09071a 100%);border:1px solid #4b2d7c;border-radius:20px;box-shadow:0 32px 100px rgba(0,0,0,.7),0 0 60px rgba(124,58,237,.16);color:#f8f5ff;overflow:hidden}.modalbox:has(.agro-pos-shell) .modalhead{background:linear-gradient(90deg,#15092f,#26104b,#130923);border-bottom:1px solid #44256c;padding:10px 16px}.modalbox:has(.agro-pos-shell) .modalhead h3{font-size:14px}.modalbox:has(.agro-pos-shell) .modalbody{padding:0}.modalbox:has(.agro-pos-shell) .modalfoot{padding:10px 14px;background:#100823;border-top:1px solid #39215e}.modalbox:has(.agro-pos-shell) .modalfoot button[type="submit"]{min-width:220px;background:linear-gradient(90deg,#7c3aed,#a855f7);border:1px solid #c084fc;box-shadow:0 8px 28px rgba(168,85,247,.28);font-size:16px;font-weight:900}.modalbox:has(.agro-pos-shell) input,.modalbox:has(.agro-pos-shell) select{background:#100b23;border:1px solid #49356f;color:#fff;border-radius:9px}.agro-pos-shell{gap:0;background:radial-gradient(circle at 35% 0%,rgba(147,51,234,.12),transparent 40%)}
.agro-pos-hero{display:flex;align-items:center;gap:12px;padding:12px 18px;background:linear-gradient(90deg,rgba(32,15,65,.96),rgba(20,10,44,.7));border-bottom:1px solid #39215f}.agro-pos-hero>span{font-size:30px}.agro-pos-hero h2{margin:0;color:#fff;font-size:25px}.agro-pos-hero p{margin:2px 0 0;color:#c7b7e6;font-size:13px}.agro-pos-top{grid-template-columns:1fr 1fr 1.35fr;padding:10px 16px;gap:10px;border-bottom:1px solid #332054}.agro-pos-top label{margin:0;color:#b9add1;font-size:11px}.agro-pos-main{grid-template-columns:minmax(0,1fr) 360px;gap:0}.agro-pos-products,.agro-pos-cart{border:0;border-radius:0;background:transparent}.agro-pos-products{padding:14px 12px 12px 16px;border-right:1px solid #39215d}.agro-pos-searchbar{display:grid;grid-template-columns:1fr 160px;gap:10px}.agro-pos-search{height:46px;margin:0!important;padding-left:15px!important;font-size:14px}.agro-pos-searchbar button{background:linear-gradient(90deg,#7c3aed,#a855f7);border:1px solid #c084fc;color:#fff;border-radius:10px;font-weight:850}.agro-category-strip{display:flex;gap:7px;overflow:auto;padding:11px 0}.agro-category-strip button{white-space:nowrap;padding:7px 15px;border-radius:9px;border:1px solid #49386a;background:#151029;color:#d7cfeb;font-weight:750}.agro-category-strip button.active{background:linear-gradient(90deg,#7c3aed,#9333ea);border-color:#c084fc;color:white}.agro-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 4px 8px 0}.agro-product-card{position:relative;display:flex;min-height:255px;padding:7px;border-radius:14px;border:1px solid #38255d;background:linear-gradient(160deg,#16102c,#100b22);box-shadow:0 8px 24px rgba(0,0,0,.24);overflow:hidden}.agro-product-card:hover{border-color:#a855f7;box-shadow:0 12px 32px rgba(124,58,237,.23);transform:translateY(-2px)}.agro-card-media{position:relative;width:100%;height:128px;display:block;border-radius:10px;background-image:url('fertilizer-pos-products-v1.png');background-size:300% 100%;background-repeat:no-repeat;background-color:#1a1133;overflow:hidden}.agro-art-fertilizer{background-position:0 50%}.agro-art-seed{background-position:50% 50%}.agro-art-pesticide{background-position:100% 50%}.agro-card-media i{display:none}.agro-card-media mark{position:absolute;right:6px;top:6px;background:rgba(5,105,75,.92);border:1px solid #34d399;color:#ecfdf5;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900}.agro-product-card>b{font-size:15px;margin:2px 3px 0;color:#fff}.agro-product-card small{margin:0 3px;color:#a99ac6}.agro-product-card strong{margin:2px 3px;color:#fff;font-size:18px}.agro-product-card em{margin-top:auto;background:linear-gradient(90deg,#7c3aed,#a855f7);border:1px solid #b36dff;border-radius:9px;padding:9px;font-size:13px}.agro-product-icon{display:none!important}
.agro-pos-cart{padding:0;background:linear-gradient(180deg,#100a24,#0b0819);border-left:1px solid rgba(143,85,214,.18)}.agro-cart-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #38235d}.agro-cart-tabs h3,.agro-cart-tabs>b{display:flex;align-items:center;justify-content:center;margin:0;padding:13px 8px;font-size:14px}.agro-cart-tabs h3{background:linear-gradient(90deg,#7c3aed,#9333ea);color:#fff}.agro-cart-tabs>b{color:#bdb0d4;border-left:1px solid #3c285e}.agro-cart-count{margin-left:6px;background:#2563eb}.agro-cart-lines{padding:10px;gap:9px}.agro-cart-empty{gap:6px;text-align:center;color:#897ca7}.agro-cart-empty span{font-size:34px;opacity:.35}.agro-cart-empty b{font-size:14px}.agro-cart-empty small{font-size:11px}.agro-cart-row-wrap{border:1px solid #3b285d!important;background:linear-gradient(145deg,#17102d,#100a22)!important;border-radius:12px!important;padding:8px!important}.agro-cart-row{grid-template-columns:54px minmax(0,1fr) 92px auto 28px!important;gap:8px!important}.agro-cart-thumb{width:54px;height:54px;border-radius:9px;background-image:url('fertilizer-pos-products-v1.png');background-size:300% 100%;background-repeat:no-repeat}.agro-cart-name b{font-size:12px}.agro-cart-name small{color:#a99ac6;font-size:10px}.agro-cart-name label{display:flex;align-items:center;gap:4px;margin-top:4px;color:#9f8fbd;font-size:9px}.agro-cart-name input{width:72px;padding:3px!important;font-size:10px}.agro-qty-step{display:grid;grid-template-columns:25px 38px 25px;gap:2px}.agro-qty-step button{background:#271747!important;color:#fff!important}.agro-qty-step input{padding:4px!important;text-align:center}.agro-cart-row>strong{font-size:12px;color:#fff;white-space:nowrap}.agro-cart-row .agro-remove{background:transparent!important;color:#fb7185!important;font-size:16px}.agro-cart-batch{margin-top:8px}.agro-pos-totals{padding:10px 13px 12px;margin:0;border-top:1px solid #3c265e;background:rgba(14,8,31,.92)}.agro-pos-totals>div,.agro-pos-totals>label{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;color:#bcb0d3;font-size:12px}.agro-pos-totals label input{width:120px;padding:7px}.agro-pos-totals b{color:#fff}.agro-pos-totals .agro-net-row{border-top:1px dashed #3f2a61;margin-top:3px;padding-top:9px;font-size:15px}.agro-pos-totals .agro-net-row b{color:#c084fc;font-size:20px}.agro-pos-totals .agro-due{color:#fbbf24}.agro-pos-totals .agro-change{color:#34d399}
html[dir="rtl"] .agro-pos-products{border-right:0;border-left:1px solid #39215d}html[dir="rtl"] .agro-product-card{text-align:right}
@media(max-width:900px){.modalbox:has(.agro-pos-shell){width:100vw;height:100vh;max-height:none;border-radius:0}.agro-pos-main{grid-template-columns:1fr}.agro-pos-products{border-right:0}.agro-pos-cart{max-height:330px;border-top:1px solid #39215d}.agro-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agro-pos-hero{padding:9px 12px}.agro-pos-hero h2{font-size:20px}}
@media(max-width:560px){.agro-pos-top{grid-template-columns:1fr 1fr;padding:8px}.agro-pos-top .field:last-child{grid-column:1/-1}.agro-pos-searchbar{grid-template-columns:1fr}.agro-pos-searchbar button{display:none}.agro-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.agro-product-card{min-height:210px}.agro-card-media{height:92px}.agro-pos-main{overflow:auto}.agro-pos-products{min-height:440px;padding:9px}.agro-pos-cart{min-height:320px}.agro-cart-row{grid-template-columns:44px minmax(0,1fr) 86px 26px!important}.agro-cart-thumb{width:44px;height:44px}.agro-cart-row>strong{grid-column:2/4}.agro-pos-hero p{display:none}.modalbox:has(.agro-pos-shell) .modalfoot button[type="submit"]{min-width:160px}}

/* POS is an app page, not a detached popup */
.layout.agro-pos-mode{grid-template-columns:185px minmax(0,1fr)!important}.layout.agro-pos-mode>.rightbar{display:none!important}.layout.agro-pos-mode>main.main{min-width:0;overflow:hidden!important}.layout.agro-pos-mode .agro-pos-pagehead-hidden{display:none!important}.layout.agro-pos-mode #content{height:100%;min-height:0;padding:0!important;overflow:hidden!important}.modalbox.agro-inline-pos{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}.agro-inline-pos>.modalhead{display:none!important}.agro-inline-pos .modalbody{padding:0!important}.agro-inline-pos .agro-pos-hero{padding-top:9px;padding-bottom:9px}.agro-inline-pos .agro-pos-hero h2{font-size:21px}.agro-inline-pos .agro-pos-top{padding-top:7px;padding-bottom:7px}.agro-inline-pos .agro-card-media{height:105px}.agro-inline-pos .agro-product-card{min-height:225px}.agro-inline-pos .modalfoot{padding-top:7px!important;padding-bottom:7px!important}
@media(max-width:900px){.layout.agro-pos-mode{grid-template-columns:150px minmax(0,1fr)!important}.agro-inline-pos .agro-pos-main{grid-template-columns:minmax(0,1fr) 300px}.agro-inline-pos .agro-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.layout.agro-pos-mode{grid-template-columns:1fr!important}.layout.agro-pos-mode>#sidebar{display:none!important}.agro-inline-pos .agro-pos-main{grid-template-columns:1fr;overflow:auto}.agro-inline-pos .agro-pos-cart{min-height:330px}.agro-inline-pos .agro-pos-products{min-height:430px}.agro-inline-pos .modalfoot{position:sticky;bottom:0}}

/* Compact professional cards inside the sidebar layout */
.agro-inline-pos .agro-product-grid{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;overflow-x:hidden}.agro-inline-pos .agro-card-media{height:82px}.agro-inline-pos .agro-product-card{min-width:0;min-height:188px;padding:6px;border-radius:11px}.agro-inline-pos .agro-product-card>b{font-size:13px;line-height:1.22}.agro-inline-pos .agro-product-card small{font-size:10px}.agro-inline-pos .agro-product-card strong{font-size:15px}.agro-inline-pos .agro-product-card em{padding:7px;font-size:11px}.agro-inline-pos .agro-card-media mark{font-size:9px;padding:3px 6px}
@media(max-width:900px){.agro-inline-pos .agro-pos-main{grid-template-columns:minmax(0,1fr) 285px}}
@media(max-width:680px){.agro-inline-pos .agro-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.agro-inline-pos .agro-product-grid{grid-template-columns:1fr 1fr}.agro-inline-pos .agro-card-media{height:76px}.agro-inline-pos .agro-product-card{min-height:180px}}

/* Keep the language switcher out of the two-column content grid. */
#authGate{padding:16px;overflow-y:auto;overscroll-behavior:contain}
#authGate .furniture-login-window{display:grid;grid-template-columns:44% 56%;grid-template-rows:auto minmax(0,1fr);grid-template-areas:'visual languages' 'visual form';width:min(1000px,100%);height:min(760px,calc(100dvh - 32px));min-height:0;border-radius:22px}
#authGate .login-visual{grid-area:visual;min-width:0;height:100%;border-right:1px solid #1e6048}
#authGate .login-formpane{grid-area:form;min-height:0;min-width:0;overflow-y:auto;padding:18px 26px 22px;scrollbar-width:thin;scrollbar-color:#256d51 transparent}
#authGate .agro-auth-languages{grid-area:languages;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;align-self:start;gap:6px;margin:0;padding:18px 26px 0;background:#08271f;min-width:0;height:auto}
#authGate .agro-auth-languages button{flex:1 1 auto;min-width:52px;height:38px;min-height:38px;max-height:38px;padding:7px 10px;font-size:12px;line-height:1.3;border-radius:9px;align-self:center;background:#0d3028;border-color:#2a5c4c;color:#bfe8d7;white-space:nowrap}
#authGate .agro-auth-languages button.active{background:linear-gradient(130deg,#18a05b,#087f63);border-color:#4bda96;color:white;box-shadow:0 3px 12px #0002}
#authGate .auth-tabs{margin-bottom:18px;padding:4px;border:1px solid #24543f;border-radius:12px;gap:4px}
#authGate .auth-tabs button{min-height:40px;padding:8px!important;font-size:12px;border-radius:9px}
#authGate .desktop-download{min-height:50px;border-radius:12px}
#authGate .login-heading h2{font-size:25px;margin-bottom:5px}
#authGate .login-heading p{font-size:12px;line-height:1.6;margin-bottom:16px}
#authGate .auth-form{gap:12px}
#authGate .auth-form>label>span{font-size:10px;margin-bottom:6px}
#authGate .field-wrap{min-height:46px;border-radius:11px}
#authGate .field-wrap input{font-size:16px;min-width:0;min-height:44px;padding:10px;background:transparent!important;color:#edfff3!important}
#authGate input:-webkit-autofill{-webkit-text-fill-color:#edfff3!important;-webkit-box-shadow:0 0 0 1000px #09271d inset!important}
#authGate input::placeholder{color:#82a698;opacity:1}
#authGate .auth-options{font-size:11px;flex-wrap:wrap;row-gap:6px}
#authGate .check{min-height:30px}
#authGate .check input{accent-color:#22c55e;width:16px;height:16px}
#authGate .login-row{grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
#authGate .signin-btn,#authGate .demo-btn{display:flex;align-items:center;justify-content:center;min-height:48px;height:auto;padding:12px;font-size:14px;font-weight:800;border-radius:12px;line-height:1.4}
#authGate .signin-btn{background:linear-gradient(120deg,#21bf5f,#109955);border:1px solid #39d77d;color:white}
#authGate .demo-btn{background:#12392d;border:1px solid #3b8565;color:#b7f4d0}
#authGate button:focus-visible,#authGate a:focus-visible{outline:3px solid #85f7ba;outline-offset:3px}
#authGate .msg{font-size:11px;line-height:1.7;min-height:0;margin-top:2px}
#authGate .msg:empty{display:none}
#authGate .device-card{margin-top:16px;padding:10px 12px;gap:10px}
#authGate .device-card>div{min-width:0}
#authGate .device-card strong{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
#authGate .local-privacy-line{margin-top:16px;font-size:10px;line-height:1.7;text-align:left}
@media(max-width:768px){
  #authGate{display:block;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
  #authGate .furniture-login-window{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'visual' 'languages' 'form';height:auto;min-height:0;max-height:none;border-radius:18px}
  #authGate .login-visual{display:block;height:auto;border-right:0;border-bottom:1px solid #23533d}
  #authGate .visual-content{height:auto;min-height:0;padding:20px}
  #authGate .login-visual img,#authGate .land-logo,#authGate .feature-list,#authGate .visual-bottom{display:none}
  #authGate .visual-content h1{font-size:24px;line-height:1.25}
  #authGate .visual-subtitle{margin:8px 0 0;font-size:11px;line-height:1.6}
  #authGate .agro-auth-languages{padding:16px 18px 0;gap:5px}
  #authGate .agro-auth-languages button{flex:1 1 48px;min-width:0;min-height:40px;max-height:40px;height:40px;padding:7px 5px;font-size:11px}
  #authGate .login-formpane{padding:16px 18px 20px;overflow:visible}
  #authGate .auth-tabs button{min-height:44px}
  #authGate .auth-options{align-items:flex-start;gap:3px}
  #authGate .auth-options>span{font-size:10px;line-height:30px}
}
@media(max-width:360px){#authGate .login-formpane{padding:16px 14px}#authGate .agro-auth-languages{padding-left:14px;padding-right:14px}#authGate .agro-auth-languages button{flex:1 1 65px}#authGate .auth-options{flex-direction:column}#authGate .auth-options>span{line-height:1.5}}
