/* Mobilne M1–M4 — stil telefona (390×844, radi i na 360 px). Boje i oblik prate prototip mobilne.html. */
:root { --mbg: #eef0f3; --mcard: #fff; --mline: #dfe3e8; --mink: #1c2230; --mmute: #5d6778; --macc: #2f6fdb; --maccbg: #e8f0fd;
        --mred: #c93a3a; --mredbg: #fdeaea; --mgrn: #1f8a4c; --mgrnbg: #e6f5ec; --mamb: #9a6700; --mambbg: #fff4d6; --mpur: #6b46c1; --mpurbg: #efe9fb; --mgold: #c99700; }
html, body { background: var(--mbg); }
body { overflow-x: hidden; }
/* zajedničko zaglavlje pogona (pogon.js) na uskom ekranu */
.p-zag { flex-wrap: wrap; gap: 2px 10px; padding: 6px 12px; }
.p-zag b { font-size: 1em; }
.p-demo { font-size: .72em; padding: 3px 12px; line-height: 1.3; }
@media (max-width: 560px) { .p-pod { display: none; } .p-sat { font-size: .8em; } }
#pogon-toast { left: 12px; right: 12px; bottom: 12px; align-items: center; }
#pogon-toast .pt { max-width: 460px; width: 100%; font-size: 14px; }
.p-modal-box { padding: 14px; }
.p-lista { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.mob { max-width: 480px; margin: 0 auto; color: var(--mink); font: 14.5px/1.42 "Segoe UI", system-ui, Arial, sans-serif; }
.mob * { box-sizing: border-box; }
.mob .ah { padding: 10px 14px; color: #fff; display: flex; align-items: center; gap: 10px; }
.mob .ah b { font-size: 16px; display: block; }
.mob .ah span { font-size: 12px; opacity: .88; }
.mob .ah .ah-x { margin-left: auto; text-align: right; }
.mob .ah a, .mob .ah button.lnk { color: #fff; opacity: .9; font-size: 12px; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.ah.m1 { background: #394150; } .ah.m2 { background: #1f5fbf; } .ah.m3 { background: #1f7a4c; } .ah.m4 { background: #0f6470; } .ah.m4.bad { background: #c93a3a; }
.mob .pd { background: #fff6d9; color: #5c4600; font-size: 12.5px; padding: 5px 14px; border-bottom: 1px solid #f0e2b0; }
.mob .bd { padding: 12px; }
.mob .cd { background: var(--mcard); border: 1px solid var(--mline); border-radius: 12px; padding: 12px; margin-bottom: 10px; min-width: 0; }
.mob .h1 { font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.mob .h2 { font-size: 16px; font-weight: 600; }
.mob .mu { color: var(--mmute); }
.mob .sm { font-size: 12.5px; }
.mob .xs { font-size: 11.5px; line-height: 1.35; }
.mob .btn { display: block; width: 100%; border: none; border-radius: 10px; font: 600 16px "Segoe UI", Arial, sans-serif; padding: 13px; cursor: pointer;
            margin-top: 8px; color: #fff; background: var(--macc); text-align: center; }
.mob .btn.g { background: var(--mgrn); } .mob .btn.r { background: var(--mred); } .mob .btn.a { background: #d49a00; }
.mob .btn.w { background: #fff; color: var(--mink); border: 1.5px solid var(--mline); }
.mob .btn:disabled { opacity: .4; cursor: not-allowed; }
.mob .row { display: flex; gap: 8px; align-items: center; }
.mob .row .btn { flex: 1; }
.mob .gr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mob .gr .btn { margin-top: 0; font-size: 14px; padding: 12px 8px; line-height: 1.25; }
.mob .gr .btn small { display: block; font-weight: 400; font-size: 11.5px; opacity: .85; }
.mob .li { display: flex; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--mline); cursor: pointer; min-width: 0; }
.mob .li:last-child { border-bottom: none; }
.mob .li > div:first-child { min-width: 0; flex: 1; }
.mob .li .x { margin-left: auto; text-align: right; font-size: 12px; color: var(--mmute); white-space: nowrap; flex: none; }
.mob .li .t { font-weight: 600; overflow-wrap: anywhere; }
.mob .li.nc { cursor: default; }
.mob .pill { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; display: inline-block; }
.pill.k { background: var(--mredbg); color: var(--mred); } .pill.r { background: var(--mambbg); color: var(--mamb); } .pill.v, .pill.u { background: var(--mgrnbg); color: var(--mgrn); }
.pill.iz { background: var(--mpurbg); color: var(--mpur); } .pill.b { background: var(--maccbg); color: var(--macc); }
.pill.n { background: #eef0f3; color: var(--mmute); } .pill.p { background: #fff; color: var(--mmute); border: 1px dashed #b9c3d3; }
.pill.h { background: var(--mred); color: #fff; }
.mob .st { color: var(--mgold); font-weight: 700; }
.mob .ok { color: var(--mgrn); font-weight: 700; } .mob .no { color: var(--mred); font-weight: 700; } .mob .am { color: var(--mamb); font-weight: 700; }
.mob .tm { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.mob .prompt { border: 2.5px dashed #b9c3d3; border-radius: 12px; padding: 18px 12px; text-align: center; color: #394355; }
.mob .bn { border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13.5px; }
.bn.g { background: var(--mgrnbg); color: #145c33; } .bn.r { background: var(--mredbg); color: #8f1f1f; } .bn.a { background: var(--mambbg); color: #6b4b00; } .bn.b { background: var(--maccbg); color: #1f3d6d; }
.mob .fz { list-style: none; margin: 6px 0 0; padding: 0; }
.mob .fz li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--mline); font-size: 13.5px; min-width: 0; }
.mob .fz li:last-child { border-bottom: none; }
.mob .fz li > span:first-child { flex: none; width: 16px; text-align: center; }
.mob .fz li .fn { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.mob .fz li .x { margin-left: auto; color: var(--mmute); font-size: 12px; text-align: right; flex: none; max-width: 42%; }
.mob .fz li.r .x { color: var(--macc); font-weight: 600; } .mob .fz li.z .x { color: var(--mred); font-weight: 600; } .mob .fz li.p .x { color: var(--mamb); font-weight: 600; }
.mob .pr { height: 6px; background: #e7eaef; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.mob .pr div { height: 6px; background: var(--macc); }
.mob .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13.5px; }
.mob .kv > span:nth-child(odd) { color: var(--mmute); }
.mob .kv > span { overflow-wrap: anywhere; }
.mob .inp { width: 100%; height: 44px; border: 1.5px solid var(--mline); border-radius: 10px; padding: 0 12px; font: 15px "Segoe UI", Arial; }
.mob textarea.inp { height: 64px; padding: 8px 12px; resize: vertical; }
.mob select.inp { padding: 0 8px; }
.mob .link { color: var(--macc); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; }
.mob .pret { font-size: 11.5px; color: var(--mmute); margin: 4px 2px 10px; line-height: 1.35; }
.mob .obav { position: sticky; top: 0; z-index: 5; background: #1f5fbf; color: #fff; border-radius: 0 0 10px 10px; padding: 9px 12px; font-size: 13.5px; margin: -12px -12px 10px; }
.mob .obav button { float: right; background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.mob .sek { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--mmute); margin: 12px 2px 6px; }
.mob .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mob .chips button { border: 1px solid var(--mline); background: #f7f8fa; border-radius: 16px; padding: 6px 10px; font-size: 12.5px; color: var(--mink); }
.mob .demo-pom { border: 1px dashed #e0b84a; background: #fffaf0; border-radius: 12px; padding: 8px 10px; margin-top: 12px; }
.mob .demo-pom > b { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--mamb); }
/* kamera (BarcodeDetector) */
.kam { position: fixed; inset: 0; background: #000; z-index: 60; display: flex; flex-direction: column; }
.kam video { flex: 1; width: 100%; object-fit: cover; }
.kam .kam-t { color: #fff; padding: 10px 14px; font: 14px "Segoe UI", Arial; display: flex; gap: 10px; align-items: center; }
.kam .kam-t button { margin-left: auto; }
.kam .kam-o { position: absolute; left: 12%; right: 12%; top: 38%; height: 18%; border: 3px solid #f2b705; border-radius: 10px; pointer-events: none; }
/* slike M3 */
.mob .ph8 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.mob .ph8 div { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #dfe3e9; position: relative; }
.mob .ph8 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mob .ph8 div span { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 3px; }
.mob .ph8 div button { position: absolute; right: 3px; top: 3px; border: 0; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; width: 22px; height: 22px; padding: 0; font-size: 13px; line-height: 22px; }
.mob label.btn input[type=file] { display: none; }
/* M4 kontrola koleta na utovaru (P32) */
.m4_hr { margin-left: auto; background: rgba(255,255,255,.18); border-radius: 7px; padding: 3px 9px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.m4_fb { border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; font-size: 13.5px; line-height: 1.35; }
.m4_fb .m4_ft { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: .3px; }
.m4_fb.ok { background: var(--mgrnbg); color: #145c33; border: 2px solid #9fd4b4; }
.m4_fb.bad { background: #c93a3a; color: #fff; box-shadow: 0 0 0 4px #f3c4c4; }
.m4_fb.bad .m4_ft { font-size: 25px; } .m4_fb .m4_fk { font-size: 19px; font-weight: 800; margin: 2px 0; }
.m4_fb.wr { background: var(--mambbg); color: #6b4b00; border: 2px solid #ecd28b; }
.m4_fb .btn { margin-top: 6px; padding: 8px; font-size: 14px; }
.m4_tk { display: flex; gap: 10px; align-items: center; }
.m4_rp { background: #151b26; color: #fff; border-radius: 10px; padding: 4px 12px 6px; font-size: 30px; font-weight: 800; text-align: center; line-height: 1; flex: none; }
.m4_rp small { display: block; font-size: 10px; font-weight: 700; color: #aab3c2; letter-spacing: .5px; margin-bottom: 2px; }
.m4_rp.nema { font-size: 13px; padding: 6px 8px; max-width: 92px; white-space: normal; }
.m4_tot { font-size: 20px; font-variant-numeric: tabular-nums; }
.m4_or { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--mline); }
.m4_or:last-child { border-bottom: none; }
.m4_or > div { min-width: 0; flex: 1; }
.m4_n { width: 26px; height: 26px; border-radius: 50%; background: #e9edf2; color: var(--mmute); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.m4_or.now .m4_n { background: var(--macc); color: #fff; } .m4_or.dn .m4_n { background: var(--mgrn); color: #fff; }
.m4_or .pr div { background: var(--mgrn); }
.m4_cnt { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; } .m4_cnt small { font-size: 13px; font-weight: 600; color: var(--mmute); }
.m4_rz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.m4_rz .btn { margin: 0; font-size: 12.5px; padding: 9px 4px; line-height: 1.2; }
.m4_ck { width: 52px; height: 52px; border-radius: 50%; background: var(--mgrn); color: #fff; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; }
.m4_li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--mline); cursor: pointer; }
.m4_li:last-child { border-bottom: none; }
.m4_li > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.m4_li .pill { white-space: normal; }
.m4_li .m4_rb { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #151b26; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.m4_li .m4_rb.nema { background: #e9edf2; color: var(--mmute); font-size: 11px; }
.m4_li.m4_mu { opacity: .6; }
.m4_bb { border: 2px dashed #e0b84a; background: #fffaf0; padding: 6px 12px; font-size: 13.5px; line-height: 1.35; }
.m4_bb.now { border-style: solid; border-color: #d49a00; background: var(--mambbg); } .m4_bb.dn { border: 1px solid #9fd4b4; background: var(--mgrnbg); }
.m4_bt { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--mamb); } .m4_bb.dn .m4_bt { color: var(--mgrn); }
.m4_sk { display: flex; gap: 8px; align-items: stretch; }
.m4_sk .inp { flex: 1.3; min-width: 0; border-style: dashed; border-width: 2px; border-color: #b9c3d3; font-weight: 600; }
.m4_sk .btn { margin: 0; flex: 1; padding: 8px; font-size: 14px; }
.m4_kl { font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--mline); display: flex; gap: 8px; }
.m4_kl:last-child { border-bottom: none; }
.m4_kl > span:first-child { flex: none; width: 18px; text-align: center; }
.m4_kl .fn { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.m4_kl .x { margin-left: auto; color: var(--mmute); white-space: nowrap; flex: none; }
details.cd > summary { cursor: pointer; font-weight: 600; }
