/* v5: Shopify (Polaris) stiliaus išvaizda – tik vaizdas, funkcijos nekeičiamos */
:root{--ink:#303030;--mut:#616161;--line:#e3e3e3;--bg:#f1f1f1;--card:#fff;
--ok:#0c5132;--okbg:#cdfee1;--warn:#5e4200;--warnbg:#ffeb78;--bad:#8e0b21;--badbg:#fed1d7;--blue:#00527c;--bluebg:#e0f0ff;
--link:#005bd3;--sh:0 1px 0 rgba(26,26,26,.07),0 1px 0 rgba(208,208,208,.4) inset,0 -1px 0 rgba(0,0,0,.08) inset;
--cardsh:0 1px 0 rgba(26,26,26,.07),0 0 0 1px rgba(0,0,0,.06)}
html,body{background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Outfit,Helvetica,Arial,sans-serif;font-size:13px;color:var(--ink)}
a{color:var(--link)}
h1{font-size:20px;font-weight:650}
h2{font-size:14px;font-weight:650}
.sub{color:var(--mut)}

header.top{background:#1a1a1a;height:56px;padding:0 16px;gap:16px}
header.top b{font-size:14px;font-weight:650}
header.top .btn,header.top .btn.ghost{background:#303030;color:#e3e3e3;box-shadow:none}
@media (min-width:901px){
header.top nav{position:fixed;top:56px;left:0;bottom:0;width:240px;flex-direction:column;gap:2px;padding:12px 8px;background:#ebebeb;border-right:1px solid #e0e0e0;overflow-y:auto}
header.top nav a{color:#303030;border-radius:8px;padding:7px 12px;font-weight:550;font-size:13px}
header.top nav a:hover{background:#f6f6f6;color:#1a1a1a}
header.top nav a.on{background:#fafafa;color:#1a1a1a;box-shadow:0 1px 0 rgba(0,0,0,.05)}
main{margin-left:240px;max-width:none;padding:20px 32px}
main>*{max-width:1200px;margin-left:auto;margin-right:auto}
}
@media (max-width:900px){header.top nav a{color:#cfcfcf}header.top nav a.on{background:#303030;color:#fff}}

.card,.mo,.line{border:0;border-radius:12px;box-shadow:var(--cardsh);background:#fff}
.card{padding:16px}
.mo-h{background:#fff;border-bottom:1px solid #ebebeb}
.ml{border-bottom:1px solid #ebebeb}
.ops,.inner{background:#f7f7f7;border-color:#ebebeb;border-radius:8px}

.btn{border-radius:8px;min-height:30px;padding:0 12px;font-weight:550;font-size:13px;border:0;background:linear-gradient(180deg,#3a3a3a,#252525);color:#fff;box-shadow:0 -1px 0 1px rgba(0,0,0,.8) inset,0 0 0 1px #303030 inset,0 .5px 0 1.5px rgba(255,255,255,.25) inset}
.btn:hover{background:#1a1a1a}
.btn.ghost{background:#fff;color:#303030;box-shadow:var(--sh),0 0 0 1px #e3e3e3}
.btn.ghost:hover{background:#f7f7f7}
.btn.sm{min-height:28px;font-size:12px}
.btn.danger{background:#fff;color:var(--bad);box-shadow:var(--sh),0 0 0 1px #fdc9c9}
.ic:hover{background:#ebebeb}

input[type=text],input[type=number],input[type=date],input[type=url],input[type=email],input[type=search],select,textarea{border:1px solid #8a8a8a;border-radius:8px;min-height:32px;padding:6px 10px;font-size:13px}
input:focus,select:focus,textarea:focus{border-color:#005bd3;box-shadow:0 0 0 1px #005bd3}
label.f{color:#303030;font-weight:550}
.chk label{border-radius:8px}

.tw{border:0;border-radius:12px;box-shadow:var(--cardsh);background:#fff}
table.t th{background:#f7f7f7;color:#616161;font-weight:550;font-size:12px;padding:8px 12px;border-bottom:1px solid #e3e3e3}
table.t td{padding:8px 12px;border-bottom:1px solid #ebebeb}
table.t tr:last-child td{border-bottom:0}
table.t tr.click:hover td{background:#f7f7f7}

.pill{border-radius:8px;padding:2px 8px;font-weight:550;background:#e3e3e3;color:#303030}
.pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.7}
.st-Naujas{background:#ffd6a4;color:#5e2a00}
.st-Priimtas,.st-Gamyboje{background:var(--warnbg);color:var(--warn)}
.st-Pagamintas{background:var(--bluebg);color:var(--blue)}
.st-Išsiųstas,.st-Atsiimta{background:var(--okbg);color:var(--ok)}
.st-Atšaukta,.st-Sustabdytas{background:var(--badbg);color:var(--bad)}

.kpis{gap:0;background:#fff;border-radius:12px;box-shadow:var(--cardsh);overflow:hidden}
.kpi{border:0;border-right:1px solid #ebebeb;border-radius:0;flex:1;padding:12px 16px;box-shadow:none}
.kpi:last-child{border-right:0}
.kpi b{font-size:18px;font-weight:650}
.kpi:hover{background:#f7f7f7}
.kpi.on{background:#f1f1f1;box-shadow:inset 0 -2px 0 #303030}

.line-h .img,.ml .img{background-color:#fff;background-size:cover;border-radius:8px;border:1px solid #e3e3e3}
.ml .img{width:56px;height:56px}
.line-h .img{width:56px;height:56px}
.pp-list{border-radius:12px}
.ev{border-bottom-color:#ebebeb}
.mystep{border-radius:8px;background:#303030}
.rs{border-radius:8px}
#toast{border-radius:8px;background:#303030}

/* v5.1: gamintojo portalas – sąrašas kaip savininko lentelė (viena kortelė, eilutės) */
main .mr-tools{margin:0 0 12px}
main .mr-head{background:#f7f7f7;border-radius:12px 12px 0 0;box-shadow:0 0 0 1px rgba(0,0,0,.06);padding:10px 14px;margin:0;font-size:12px;font-weight:550;text-transform:none;letter-spacing:0;color:#616161;align-items:center;border-bottom:1px solid #e3e3e3}
main .mo.mr{margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:1px 0 0 rgba(0,0,0,.06),-1px 0 0 rgba(0,0,0,.06)!important;border-bottom:1px solid #ebebeb!important;background:#fff}
main .mo.mr:not(:has(~ .mo.mr)){border-radius:0 0 12px 12px!important;border-bottom:0!important;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 0 rgba(26,26,26,.07)!important;clip-path:inset(0 -2px -3px -2px);margin-bottom:16px!important}
main .mr-row{padding:10px 14px}
main .mr-row:hover{background:#f7f7f7}
main .mo.open .mr-row{background:#f7f7f7;border-bottom:1px solid #ebebeb}
main .mo.mr.exp{background:#fff3f4}
main .mo.mr.exp .mr-row{box-shadow:inset 4px 0 #d4001a}
main .mr-th{width:40px;height:40px;border-radius:8px;background-color:#fff;border:1px solid #e3e3e3}
main .mr-code b{font-size:13px;font-weight:650}
main .mr-code img{display:none}
main .mr-prod .t{font-weight:550}
main .mr-ind span{border-radius:8px}
main .mr-act .btn{width:auto}
main .mr-body{background:#f1f1f1}
main .mr-blk{border:0;border-radius:12px;box-shadow:var(--cardsh)}
main .mr-blk>h4{text-transform:none;letter-spacing:0;font-size:13px;font-weight:650;color:#303030}
main .mr-al{border-radius:12px}
.exp-b{border-radius:8px;font-weight:650;letter-spacing:.02em;padding:1px 7px}
tr.exp-row td:first-child{box-shadow:inset 4px 0 #d4001a}
