/* PPP Dielňa – tablet app (Alldocube X Neo, 1280×800 CSS px, landscape) */
@font-face{font-family:Poppins;font-weight:400;font-display:swap;src:url(fonts/poppins-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:Poppins;font-weight:400;font-display:swap;src:url(fonts/poppins-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Poppins;font-weight:500;font-display:swap;src:url(fonts/poppins-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:Poppins;font-weight:500;font-display:swap;src:url(fonts/poppins-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Poppins;font-weight:600;font-display:swap;src:url(fonts/poppins-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:Poppins;font-weight:600;font-display:swap;src:url(fonts/poppins-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Poppins;font-weight:700;font-display:swap;src:url(fonts/poppins-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:Poppins;font-weight:700;font-display:swap;src:url(fonts/poppins-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Poppins;font-weight:800;font-display:swap;src:url(fonts/poppins-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:Poppins;font-weight:800;font-display:swap;src:url(fonts/poppins-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --bg:#0B1117;--bg2:#101A22;--panel:rgba(22,36,46,.72);--panel2:rgba(30,48,60,.6);
  --line:rgba(120,200,220,.16);--line2:rgba(39,217,230,.45);
  --text:#E8F1F5;--muted:#8DA3B0;--dim:#5F7683;
  --cyan:#27D9E6;--cyan2:#1BB3C0;--cyanbg:rgba(39,217,230,.12);
  --green:#34D399;--orange:#F5A524;--red:#F05252;
  --r:18px;--r2:12px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:Poppins,system-ui,sans-serif;overflow:hidden;user-select:none;-webkit-user-select:none}
body{background:radial-gradient(1200px 600px at 85% -10%,rgba(39,217,230,.10),transparent 60%),radial-gradient(900px 500px at -10% 110%,rgba(39,130,230,.08),transparent 60%),var(--bg)}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
input{font:inherit;color:inherit}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

#app{display:grid;grid-template-rows:72px 1fr 68px;height:100vh;height:100dvh}

/* header */
.top{display:flex;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);background:rgba(11,17,23,.7);backdrop-filter:blur(10px)}
.brand{display:flex;align-items:baseline;gap:12px;white-space:nowrap}
.brand-ppp{font-weight:800;font-size:30px;letter-spacing:1px;color:var(--cyan);text-shadow:0 0 18px rgba(39,217,230,.45)}
.brand-name{font-weight:600;font-size:15px;letter-spacing:2.5px;color:var(--text)}
.brand-name b{color:var(--cyan);font-weight:700}
.crumbs{flex:1;display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;font-size:15px;color:var(--muted)}
.crumbs button{padding:8px 12px;border-radius:10px;white-space:nowrap;color:var(--muted)}
.crumbs button:last-child{color:var(--text);font-weight:600}
.crumbs .sep{color:var(--dim)}
.search{display:flex;align-items:center;gap:10px;width:360px;height:46px;padding:0 16px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}
.search:focus-within{border-color:var(--line2);box-shadow:0 0 0 3px rgba(39,217,230,.12)}
.search svg{width:20px;height:20px;color:var(--muted);flex:none}
.search input{flex:1;min-width:0;background:none;border:0;outline:0;font-size:16px}
.search input::placeholder{color:var(--dim)}

#view{overflow:hidden;position:relative}
.screen{height:100%;overflow-y:auto;padding:20px 24px 24px;animation:fade .18s ease-out}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.screen::-webkit-scrollbar{width:6px}.screen::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}

/* bottom tabs */
.tabs{display:flex;justify-content:center;gap:8px;border-top:1px solid var(--line);background:rgba(11,17,23,.85);padding:6px 24px}
.tabs button{display:flex;align-items:center;gap:10px;padding:0 28px;border-radius:14px;color:var(--muted);font-weight:500;font-size:15px}
.tabs button svg{width:24px;height:24px}
.tabs button.on{color:var(--cyan);background:var(--cyanbg)}

/* generic */
h1{font-size:24px;font-weight:700;margin:0 0 4px}
h2{font-size:17px;font-weight:600;margin:0 0 12px;color:var(--muted);letter-spacing:.3px}
.sub{color:var(--muted);font-size:14px;margin:0 0 18px}
.glass{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);backdrop-filter:blur(8px)}
.tile{position:relative;background:linear-gradient(160deg,rgba(34,54,68,.75),rgba(18,30,40,.75));border:1px solid var(--line);border-radius:var(--r);transition:transform .08s,border-color .15s,background .15s}
.tile:active{transform:scale(.97)}
.tile.on{border-color:var(--cyan);background:linear-gradient(160deg,rgba(39,217,230,.22),rgba(18,40,52,.85));box-shadow:0 0 0 1px var(--cyan),0 0 24px rgba(39,217,230,.18)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:56px;padding:0 26px;border-radius:16px;font-weight:600;font-size:17px;background:var(--panel2);border:1px solid var(--line)}
.btn:active{transform:scale(.97)}
.btn.primary{background:linear-gradient(135deg,#2EE6F2,#18A9B8);color:#04232A;border:0;box-shadow:0 6px 24px rgba(39,217,230,.28)}
.btn.primary:disabled{opacity:.35;box-shadow:none}
.btn svg{width:22px;height:22px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:600;background:var(--panel2);color:var(--muted)}
.pill.suv{background:rgba(245,165,36,.15);color:var(--orange)}
.empty{color:var(--muted);padding:40px;text-align:center}

/* home */
.home{display:grid;grid-template-columns:1fr 340px;gap:22px;height:100%}
.brands{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.brands .tile:active{filter:brightness(1.25)}
.more-makes{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.chip{height:48px;padding:0 18px;border-radius:14px;font-size:15px;font-weight:500;display:inline-flex;align-items:center;gap:8px}
.chip.accent{color:var(--cyan);border-color:var(--line2)}
.side{display:flex;flex-direction:column;gap:14px;min-height:0}
.bigbtn{display:flex;align-items:center;gap:16px;padding:16px 18px;text-align:left}
.bigbtn img{width:64px;height:64px;object-fit:contain}
.bigbtn b{display:block;font-size:18px}
.bigbtn span{color:var(--muted);font-size:13px}
.recent{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px}
.recent h2{margin-bottom:8px}
.recent ul{list-style:none;margin:0;padding:0;overflow-y:auto}
.recent li button{width:100%;text-align:left;padding:11px 10px;border-radius:12px;display:flex;flex-direction:column}
.recent li button:active{background:var(--cyanbg)}
.recent li b{font-weight:600;font-size:15px}
.recent li span{font-size:13px;color:var(--muted)}

/* lists */
.grid{display:grid;gap:12px}
.g5{grid-template-columns:repeat(5,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g6{grid-template-columns:repeat(6,1fr)}
.mtile{min-height:84px;padding:14px 16px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:4px}
.mtile b{font-size:17px;font-weight:600;line-height:1.2}
.mtile span{font-size:13px;color:var(--muted)}
.mtile .pill{position:absolute;top:10px;right:10px}
.letter{grid-column:1/-1;color:var(--cyan);font-weight:700;font-size:14px;margin:8px 0 -4px;letter-spacing:1px}
.gtile{min-height:120px;padding:18px 20px;text-align:left}
.gtile b{display:block;font-size:22px;font-weight:700}
.gtile .yrs{font-size:16px;color:var(--cyan);font-weight:600;margin-top:2px}
.gtile .sz{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.5}

/* order (zákazka) */
.order{display:grid;grid-template-columns:1fr 360px;gap:20px;height:100%}
.order-main{overflow-y:auto;padding-right:4px;min-height:0}
.order-main::-webkit-scrollbar{width:6px}.order-main::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.sec{margin-bottom:18px}
.sizes{display:flex;flex-wrap:wrap;gap:10px}
.size{height:56px;padding:0 18px;border-radius:14px;font-size:17px;font-weight:600;display:inline-flex;align-items:center;gap:8px}
.size small{font-size:11px;font-weight:500;color:var(--muted)}
.size .dot{width:8px;height:8px;border-radius:50%}
.opts{display:flex;gap:12px}
.opt{display:flex;align-items:center;gap:10px;height:68px;padding:0 16px 0 8px;font-size:16px;font-weight:600;white-space:nowrap}
.opt img{width:56px;height:50px;object-fit:contain}
.diam{height:56px;min-width:64px;border-radius:14px;font-size:18px;font-weight:700}
.ukony{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.uk{height:136px;padding:8px 6px 6px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center}
.uk img{width:62px;height:62px;object-fit:contain;margin-bottom:4px}
.uk b{font-size:13.5px;font-weight:600;line-height:1.2}
.uk .code{font-size:11px;color:var(--muted);margin-top:2px}
.uk.na{opacity:.35}
.uk .qty{position:absolute;top:8px;right:8px;min-width:30px;height:30px;padding:0 8px;border-radius:15px;background:var(--cyan);color:#04232A;font-weight:800;font-size:15px;display:none;align-items:center;justify-content:center}
.uk.on .qty{display:flex}
.extras{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}

.panel{display:flex;flex-direction:column;gap:12px;min-height:0}
.card{padding:16px 18px}
.card h3{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--muted);letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.card h3 img{width:26px;height:26px}
.big{font-size:40px;font-weight:800;line-height:1}
.big small{font-size:18px;font-weight:600;color:var(--muted);margin-left:4px}
.press{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.press div{background:rgba(0,0,0,.18);border-radius:12px;padding:10px 12px}
.press label{font-size:12px;color:var(--muted);display:block}
.press .v{font-size:30px;font-weight:800}
.press .v small{font-size:14px;color:var(--muted);font-weight:600;margin-left:3px}
.press .l{font-size:12.5px;color:var(--muted);margin-top:2px}
.trust{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;margin-top:10px;padding:4px 10px;border-radius:99px}
.t2{color:var(--green);background:rgba(52,211,153,.12)}.t1{color:var(--orange);background:rgba(245,165,36,.12)}.t0{color:var(--red);background:rgba(240,82,82,.12)}
.dot.t2,.tdot.t2{background:var(--green)}.dot.t1,.tdot.t1{background:var(--orange)}.dot.t0,.tdot.t0{background:var(--red)}
.tdot{width:8px;height:8px;border-radius:50%;display:inline-block}
.meta{font-size:12.5px;color:var(--muted);margin-top:6px}
.sum{margin-top:auto;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sum .lbl{font-size:13px;color:var(--muted)}
.sum .val{font-size:32px;font-weight:800}
.edited{color:var(--orange);font-size:11px;font-weight:600;margin-left:6px}

/* result */
.result{display:grid;grid-template-columns:1fr 400px;gap:20px;height:100%}
.vrp{padding:18px 20px;display:flex;flex-direction:column;min-height:0}
.vrp table{width:100%;border-collapse:collapse}
.vrp th{font-size:12px;color:var(--muted);font-weight:600;text-align:left;padding:6px 8px;letter-spacing:.5px;text-transform:uppercase}
.vrp td{padding:12px 8px;border-top:1px solid var(--line);font-size:17px;vertical-align:middle}
.vrp td.code{font-size:30px;font-weight:800;color:var(--cyan);width:90px}
.vrp td.q{font-size:22px;font-weight:700;text-align:center;width:90px}
.vrp td.p{text-align:right;font-weight:600;white-space:nowrap}
.vrp td .n{font-size:12.5px;color:var(--muted);display:block}
.vrp .total{display:flex;justify-content:space-between;align-items:center;border-top:2px solid var(--line2);margin-top:auto;padding-top:14px}
.vrp .total b{font-size:40px;font-weight:800}
.actions{display:flex;gap:12px;margin-top:14px}
.actions .btn{flex:1}
.vrp-scroll{overflow-y:auto;min-height:0}

/* modal + stepper */
.modal{position:fixed;inset:0;background:rgba(3,8,12,.66);display:flex;align-items:center;justify-content:center;z-index:50;backdrop-filter:blur(3px)}
.modal[hidden]{display:none}
.dlg{width:520px;max-height:90vh;overflow:auto;padding:24px;border-radius:22px;background:#13212B;border:1px solid var(--line2);box-shadow:0 30px 80px rgba(0,0,0,.5)}
.dlg h1{font-size:21px}
.dlg .row{display:flex;gap:12px;margin-top:18px}
.dlg .row .btn{flex:1}
.stepper{display:flex;align-items:center;justify-content:center;gap:16px;margin:18px 0 8px}
.stepper button{width:72px;height:72px;border-radius:20px;font-size:36px;font-weight:700;background:var(--panel2);border:1px solid var(--line)}
.stepper .val{min-width:90px;text-align:center;font-size:48px;font-weight:800}
.quick{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.quick button{width:56px;height:48px;border-radius:12px;font-size:18px;font-weight:700;background:var(--panel2);border:1px solid var(--line)}
.field{display:block;margin-top:14px}
.field span{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.field input{width:100%;height:52px;border-radius:12px;background:rgba(0,0,0,.25);border:1px solid var(--line);padding:0 14px;font-size:18px;outline:0}
.field input:focus{border-color:var(--cyan)}

.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);background:#1C3340;border:1px solid var(--line2);padding:12px 22px;border-radius:14px;font-weight:500;z-index:60}
.toast[hidden]{display:none}

/* cennik / history / settings */
.ctable{width:100%;border-collapse:collapse}
.ctable td,.ctable th{padding:9px 10px;border-bottom:1px solid var(--line);font-size:15px;text-align:left}
.ctable th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.ctable td:first-child{color:var(--cyan);font-weight:700;width:70px}
.ctable td.p{text-align:right;font-weight:600;white-space:nowrap}
.ctable .n{color:var(--muted);font-size:13px}
.cols2{columns:2;column-gap:28px}
.cgroup{break-inside:avoid;margin-bottom:18px}
.cgroup h2{color:var(--cyan);margin-bottom:4px}
.hist li{list-style:none}
.hist{padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.hist .h{padding:14px 18px;display:grid;grid-template-columns:1fr auto;gap:4px 12px}
.hist .h b{font-size:16px}
.hist .h .t{font-size:13px;color:var(--muted)}
.hist .h .s{font-size:22px;font-weight:800;text-align:right;grid-row:1/3;grid-column:2;align-self:center}
.hist .h .c{font-size:13px;color:var(--muted);grid-column:1/-1}
.set{max-width:820px;display:flex;flex-direction:column;gap:14px}
.set .card p{margin:4px 0;color:var(--muted);font-size:14px;line-height:1.5}

.otitle h1{font-size:22px;line-height:1.2}

/* dlaždice s obrázkom + textová náhrada */
.btile,.mimg{position:relative;overflow:hidden;padding:0;display:block}
.btile{aspect-ratio:1/1;border-radius:22px}
.btile .tl,.mimg .tl{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;gap:4px}
.btile .tl b{font-size:17px;font-weight:700;letter-spacing:.5px}
.btile img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.btile.hasimg{background:none;border:0;box-shadow:none}
.btile.hasimg .tl{display:none}
.mhead{display:flex;align-items:baseline;gap:14px;margin-bottom:12px}
.mhead .sub{margin:0}
.mgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.mimg{aspect-ratio:3/2;border-radius:18px}
.mimg .tl b{font-size:18px;font-weight:700;line-height:1.15}
.mimg .tl small{font-size:12.5px;color:var(--muted)}
.mimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.mimg.hasimg{background:none;border:0}
.mimg.hasimg .tl{justify-content:flex-end;padding:0 6px 7px;background:none}
.mimg.hasimg .tl b{font-size:14.5px;text-shadow:0 1px 6px rgba(0,0,0,.9);z-index:1}
.mimg.hasimg .tl small{display:none}
.mimg.allm{border-color:var(--line2)}
.mimg.allm .tl b{color:var(--cyan)}
