/* Lokalni Plus Jakarta Sans (dev-sec 469b9b54: bez Google Fonts). 300 ne postoji; PIN ide na 400. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/pdf/PlusJakartaSans-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/pdf/PlusJakartaSans-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/pdf/PlusJakartaSans-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/pdf/PlusJakartaSans-Bold.ttf') format('truetype'); }

/* Radnik (R1 v1.17) · nacrt v5 — iOS razina (Mario 23.11.: „mobile app UI apple kvalitete“).
   Jedan sloj za sve radničke ekrane; ne ovisi o r1.css ni moje-v117.css. Tokeni: sistemske boje iOS-a uz jedan naglasak (brand).
   Tipografija: veličina i tinta, ne bold (Mario 21.11.) — 600 samo za veliki naslov i glavni gumb, brojke tanke. */

body.radnik, .m5 {
  --bg: #F2F2F7; --cell: #FFFFFF; --cell-2: #F7F7FA; --fill: rgba(118,118,128,.12); --fill-2: rgba(118,118,128,.08);
  --ink: #111114; --ink-2: rgba(60,60,67,.78); --ink-3: rgba(60,60,67,.42);
  --tab-ink: #6C6C70;   /* neaktivna kartica: 4,99:1 na traci; iOS sivi #8E8E93 daje 3,13:1 */ --sep: rgba(60,60,67,.18);
  --acc: #6A45F2; --acc-ink: #5B34E0; --acc-tint: rgba(106,69,242,.12); --acc-on: #FFFFFF;
  --green: #248A3D; --green-fill: #34C759; --green-tint: rgba(52,199,89,.18); --orange: #B25000; --orange-fill: #FF9500; --red: #D70015; --red-fill: #FF3B30; --red-ink: #C40012;
  --bar: rgba(249,249,251,.86); --mat: rgba(255,255,255,.72); --dim: rgba(0,0,0,.32);
  --sheet: #F2F2F7; --sheet-cell: rgba(255,255,255,.92);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --deva: 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Mangal', 'Nirmala UI', system-ui, sans-serif;
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.29; font-weight: 400;
  letter-spacing: -.012em; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
html[data-theme="dark"] body.radnik, html[data-theme="dark"] .m5 {
  --bg: #000000; --cell: #1C1C1E; --cell-2: #232326; --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.16);
  --ink: #FFFFFF; --ink-2: rgba(235,235,245,.66); --ink-3: rgba(235,235,245,.34);
  --tab-ink: #A0A0A5;   /* izmjereno na traci rgba(22,22,24,.86) nad #000: iOS #8E8E93 daje 4,45:1 (pad), ovaj sivi ~6,0:1 */ --sep: rgba(84,84,88,.55);
  --acc: #A08BFF; --acc-ink: #BFAFFF; --acc-tint: rgba(160,139,255,.18); --acc-on: #0B0420;
  --green: #30D158; --green-fill: #30D158; --green-tint: rgba(48,209,88,.18); --orange: #FF9F0A; --orange-fill: #FF9F0A; --red: #FF453A; --red-fill: #FF453A; --red-ink: #FF6B63;
  --bar: rgba(22,22,24,.86); --mat: rgba(44,44,46,.72); --dim: rgba(0,0,0,.55);
  --sheet: #1C1C1E; --sheet-cell: rgba(44,44,46,.92);
  color-scheme: dark;
}
.m5[lang="hi"], .m5[lang="ne"], .m5 [lang="hi"], .m5 [lang="ne"] { font-family: var(--deva); letter-spacing: 0; }
.m5 *, .m5 *::before, .m5 *::after { box-sizing: border-box; }
:where(.m5) :where(button, a) { font: inherit; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:where(.m5) :where(button) { border: 0; background: none; padding: 0; cursor: pointer; }
.m5 :focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 2px; }
.m5 svg.bi { width: 1em; height: 1em; vertical-align: -.125em; fill: currentColor; flex: none; }
/* okvir nacrta boji svaki <a> (g03.css) — u radničkoj ljusci poveznice nose boju svoje uloge */
.m5 a.m5-row, .m5 a.m5-note, .m5 a.m5-thumb { color: inherit; }
.m5 a.m5-tab { color: var(--tab-ink); } .m5 a.m5-tab[aria-current="page"] { color: var(--acc); }
.m5 a.m5-back, .m5 a.m5-btn.tint, .m5 a.m5-btn.plain { color: var(--acc-ink); }
.m5 a.m5-push { color: #000; } html[data-theme="dark"] .m5 a.m5-push { color: #fff; }

/* ---------- navigacija ---------- */
.m5-nav { flex: none; height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.m5-me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.m5-av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff;
  background: linear-gradient(180deg, #A9A9B3, #84848F); }
.m5-me b { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m5-lang { position: relative; height: 44px; min-width: 68px; padding: 0 14px; border-radius: 22px; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.m5-back { display: inline-flex; align-items: center; gap: 2px; height: 44px; margin-left: -8px; padding-right: 8px; color: var(--acc-ink); font-size: 17px; }
.m5-back .bi { font-size: 22px; }
.m5-lt { flex: none; padding: 2px 16px 10px; }
.m5-lt small { display: block; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.m5-lt h1 { margin: 0; font-size: 32px; line-height: 1.16; font-weight: 600; letter-spacing: -.028em; }

/* ---------- tijelo i trake ---------- */
.m5-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 0 24px; display: flex; flex-direction: column; gap: 22px; }
.m5-col { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 22px; }
.m5-tabs { flex: none; height: 84px; padding: 7px 0 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep); position: relative; z-index: 4; }
/* redak verzije (SkladisPro · <app_version>): podatak, ne ukras — --ink-2 (--ink-3 ≈ 3:1 ne prolazi);
   u toku iznad trake kartica, na prijavi iznad sigurne zone; ne crta se pod zastorom dijaloga.
   PM 08e671cf: redak je na DNU ekrana — `margin-top: auto` ga u tijelu prijave gura do dna, a u stupcu
   (početna, „Moje“) tek uz `flex: 1 0 auto` na stupcu, jer stupac inače ima visinu sadržaja i auto-margin
   nema što rastegnuti (mjereno: 302 px iznad traka na 390 × 844). */
.m5-body > .m5-col { flex: 1 0 auto; }
.m5-ver { flex: none; margin: auto 0 0; padding: 0 16px 6px; font-size: 12px; line-height: 1.34; letter-spacing: 0; color: var(--ink-2); text-align: center; white-space: nowrap; }
.m5.pin .m5-ver { padding: 10px 16px 26px; }
.m5-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 50px; color: var(--tab-ink); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.m5-tab .bi { font-size: 26px; height: 28px; display: grid; place-items: center; }
.m5-tab[aria-current="page"] { color: var(--acc); }
.m5-bdg { position: absolute; top: -3px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; }

/* ---------- glavna radnja (početak) ---------- */
.m5-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 300px; border-radius: 26px;
  color: #fff; background: linear-gradient(160deg, #7F5CFF 0%, #5B37E6 100%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 30px -14px rgba(91,55,230,.55); }
html[data-theme="dark"] .m5-hero { background: linear-gradient(160deg, #6C4CF5 0%, #4A2BC9 100%); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset; }
.m5-hero .ring { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; }
.m5-hero .ring .bi { font-size: 50px; }
.m5-hero b { font-size: 24px; font-weight: 600; letter-spacing: -.024em; }
.m5-hero[disabled] { background: var(--fill); color: var(--ink-2); box-shadow: none; cursor: not-allowed; }
html[data-theme="dark"] .m5-hero[disabled] { background: var(--fill); box-shadow: none; }
.m5-hero[disabled] .ring { background: var(--fill-2); box-shadow: none; }

/* ---------- grupirani popis ---------- */
.m5-sec { display: flex; flex-direction: column; gap: 7px; }
.m5-sh { padding: 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.m5-sf { padding: 0 16px; font-size: 13px; color: var(--ink-2); letter-spacing: -.004em; }
.m5-list { background: var(--cell); border-radius: 14px; overflow: hidden; }
.m5-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 9px 16px; width: 100%; text-align: left; }
.m5-row + .m5-row::before { content: ''; position: absolute; top: 0; right: 0; left: var(--inset, 16px); border-top: .5px solid var(--sep); }
.m5-row.has-ic { --inset: 62px; }
.m5-row.has-im { --inset: 70px; }
.m5-ico { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; font-size: 17px; }
.m5-ico.red { background: var(--red-fill); } .m5-ico.orange { background: var(--orange-fill); } .m5-ico.green { background: var(--green-fill); }
.m5-ico.acc { background: var(--acc); } .m5-ico.gray { background: #8E8E93; }
.m5-im { width: 40px; height: 52px; border-radius: 6px; flex: none; background: #d9d9de center / cover no-repeat; box-shadow: 0 0 0 .5px var(--sep); }
.m5-im.blur { filter: blur(1.2px); }
.m5-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m5-tx b { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m5-tx span { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m5-tx span.red { color: var(--red); }
.m5-val { flex: none; font-size: 17px; color: var(--ink-2); font-weight: 400; }
.m5-chev { flex: none; color: var(--ink-3); font-size: 15px; margin-left: -6px; }
.m5-st { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.m5-st .bi { font-size: 16px; }
.m5-st.ok .bi { color: var(--green-fill); } .m5-st.wait .bi { color: var(--orange-fill); } .m5-st.chk .bi { color: var(--ink-3); }
.m5-st.go .bi { color: var(--acc); } .m5-st.back { color: var(--red); } .m5-st.back .bi { color: var(--red); }
.m5-row.back .m5-tx b { color: var(--ink); }
.m5-mono { font-variant-numeric: tabular-nums; }

/* ---------- traka stanja (bez signala, šaljem, pun) ---------- */
.m5-note { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 14px; background: var(--cell); font-size: 16px; }
.m5-note .bi { font-size: 20px; color: var(--ink-2); flex: none; }
.m5-note b { font-weight: 500; flex: 1; min-width: 0; }
.m5-note span { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.m5-note.red .bi, .m5-note.red b { color: var(--red); }
.m5-note.go .bi { color: var(--acc); }
.m5-prog { height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; margin-top: -14px; }
.m5-prog i { display: block; height: 100%; width: 50%; border-radius: 2px; background: var(--acc); }

/* ---------- gumbi ---------- */
.m5-btns { display: flex; flex-direction: column; gap: 10px; }
.m5-btn { height: 56px; width: 100%; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -.016em; }
.m5-btn .bi { font-size: 20px; }
.m5-btn.pri { background: #6A45F2; color: #fff; }   /* isti u obje teme: bijelo na #6A45F2 = 5,3:1 */
.m5-btn.tint { background: var(--acc-tint); color: var(--acc-ink); }
.m5-btn.plain { height: 48px; color: var(--acc-ink); font-weight: 500; }
.m5-btn.red { color: var(--red-ink); font-weight: 500; }
.m5-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m5-row2 .m5-btn { font-size: 16px; font-weight: 500; line-height: 1.15; padding: 0 10px; text-align: center; }

/* ---------- kamera ----------
   2228 (Mario: „KAMERA RADNIKA = UREDSKA KAMERA 1:1”): samu kameru (`#grCam`, prsten, okvir, libela, okidač, blic)
   crta `static/css/gradilista-kamera.css` — iste razrede i iste vrijednosti kao ured. Ovdje je samo crna podloga
   koja nosi ono IZA snimke (HUD „Šaljem”/„Poslano”, izlaz tijekom slanja, poveznica na „Moje”); kopija kamere
   u `radnik.css` nije dopuštena. */
.m5.cam { background: #000; color: #fff; }
.m5-cam { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.m5-ctop { position: absolute; left: 0; right: 0; top: 0; padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m5-rb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff; background: rgba(30,30,30,.48); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.m5-cbot { flex: none; height: 150px; background: #000; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 30px 26px; }
.m5-thumb { justify-self: start; position: relative; width: 48px; height: 48px; border-radius: 10px; background: #2c2c2e center / cover no-repeat; box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.m5-thumb .n { position: absolute; top: -7px; right: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--acc); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
html[data-theme="dark"] .m5-thumb .n { background: #7C5CFF; }

/* HUD „Poslano“ preko kamere */
/* R1 (qa Astra 2228-R1 #3): potvrda je iznad zajedničke kamere (.gr-cam, fixed, z-index 1070) */
.m5-hud { position: fixed; z-index: 1080; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 168px; padding: 24px 12px 20px; border-radius: 22px; text-align: center;
  background: rgba(28,28,30,.72); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.m5-hud .bi { font-size: 58px; line-height: 1; color: #fff; }
.m5-hud b { font-size: 19px; font-weight: 600; letter-spacing: -.018em; }
.m5-hud.bad .bi { color: #FFD60A; }
.m5-hud-im { width: 58px; height: 74px; border-radius: 8px; background: #444 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.m5-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.28); border-top-color: #fff; animation: m5spin .9s linear infinite; }
@keyframes m5spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .m5-spin { animation-duration: 2.4s; } }
.m5-hud .m5-btn { height: 44px; border-radius: 12px; font-size: 16px; margin-top: 4px; background: rgba(255,255,255,.16); color: #fff; }

/* ---------- pregled snimke (Dobro / Ponovi) ---------- */
.m5-rev { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 6px 16px 26px; max-width: 560px; width: 100%; margin: 0 auto; }
.m5-photo { position: relative; flex: 1; min-height: 0; border-radius: 16px; background: #d9d9de center / cover no-repeat; box-shadow: 0 0 0 .5px var(--sep), 0 10px 30px -18px rgba(0,0,0,.45); overflow: hidden; }
.m5-photo.bad { box-shadow: 0 0 0 3px var(--red-fill); }
.m5-photo.blur::after { content: ''; position: absolute; inset: 0; background: inherit; background-size: cover; filter: blur(1.6px); }
.m5-photo .pg { position: absolute; left: 12px; bottom: 12px; z-index: 1; height: 28px; padding: 0 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  color: #fff; background: rgba(30,30,30,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.m5-photo .no { position: absolute; left: 12px; top: 12px; z-index: 1; height: 30px; padding: 0 12px; border-radius: 15px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500;
  color: #fff; background: rgba(30,30,30,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.m5-out { display: flex; align-items: center; gap: 14px; }
.m5-out .mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 26px; }
.m5-out .mark.ok { background: var(--green-fill); } .m5-out .mark.bad { background: var(--red-fill); } .m5-out .mark.warn { background: var(--orange-fill); }
.m5-out .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m5-out h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.024em; }
.m5-out span { font-size: 17px; color: var(--ink-2); }
.m5-out .who { font-size: 15px; color: var(--ink-3); }

/* ---------- prijava (PIN) ---------- */
.m5.pin .m5-body { align-items: center; justify-content: flex-start; padding-top: 34px; gap: 0; }
.m5-pinhead { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.m5-pinhead .m5-av { width: 76px; height: 76px; font-size: 28px; font-weight: 500; }
.m5-pinhead b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.m5-pinhead span { font-size: 17px; color: var(--ink-2); }
.m5-dots { display: flex; gap: 22px; margin: 26px 0 34px; height: 14px; }
.m5-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.m5-dots i.f { background: var(--ink); }
.m5-keys { display: grid; grid-template-columns: repeat(3, 80px); gap: 16px 26px; }
.m5-key { width: 80px; height: 80px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 34px; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.m5-key.x { background: none; font-size: 26px; }
.m5-keys.off { opacity: .32; pointer-events: none; }
.m5-pinfoot { margin-top: 22px; }
.m5-lockmsg { margin: 22px 0 26px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.m5-lockmsg b { font-size: 20px; font-weight: 600; color: var(--orange); }
html[data-theme="dark"] .m5-lockmsg b { color: var(--orange-fill); }
.m5-lockmsg span { font-size: 17px; color: var(--ink-2); }

/* ---------- list radnje (odjava), upozorenje, list dozvole ---------- */
.m5-dim { position: absolute; inset: 0; background: var(--dim); z-index: 10; }
.m5-as { position: absolute; left: 8px; right: 8px; bottom: 34px; z-index: 11; display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; }
.m5-as .grp { border-radius: 14px; overflow: hidden; background: var(--sheet-cell); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.m5-as .hd { padding: 14px 18px 13px; text-align: center; display: flex; flex-direction: column; gap: 3px; border-bottom: .5px solid var(--sep); }
.m5-as .hd b { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.m5-as .hd span { font-size: 13px; color: var(--ink-2); }
.m5-as .it { display: flex; align-items: center; justify-content: center; height: 58px; width: 100%; font-size: 20px; color: var(--acc); letter-spacing: -.02em; }
.m5-as .it + .it { border-top: .5px solid var(--sep); }
.m5-as .it.red { color: var(--red-ink); }
.m5-as .it.can { font-weight: 600; }
.m5-alert { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 280px; z-index: 11; border-radius: 16px; overflow: hidden; background: var(--sheet-cell);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); text-align: center; }
.m5-alert .hd { padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.m5-alert .hd b { font-size: 17px; font-weight: 600; }
.m5-alert .hd span { font-size: 14px; color: var(--ink-2); }
.m5-alert .bt { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid var(--sep); }
.m5-alert .bt.one { grid-template-columns: 1fr; }
.m5-alert .bt button { height: 48px; font-size: 17px; color: var(--acc); }
.m5-alert .bt button + button { border-left: .5px solid var(--sep); }
.m5-alert .bt .red { color: var(--red-ink); font-weight: 600; }
.m5-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; border-radius: 14px 14px 0 0; background: var(--sheet); padding: 8px 20px 42px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.m5-sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--ink-3); margin-bottom: 14px; }
.m5-sheet .bell { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--acc); color: #fff; font-size: 30px; }
.m5-sheet h3 { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.022em; }
.m5-sheet p { margin: 0 0 10px; font-size: 17px; color: var(--ink-2); }
.m5-sheet .m5-btns { width: 100%; max-width: 520px; }

/* ---------- zaključani zaslon (obavijest) ---------- */
.m5.lock { background: radial-gradient(120% 80% at 20% 0%, #5B3FE0 0%, #2A1A73 45%, #0B0820 100%); color: #fff; }
.m5-clock { text-align: center; margin-top: 18px; display: flex; flex-direction: column; gap: 0; }
.m5-clock span { font-size: 19px; font-weight: 500; opacity: .9; }
.m5-clock b { font-size: 92px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.m5-push { margin: 34px 10px 0; display: flex; gap: 12px; padding: 13px 14px; border-radius: 22px; background: rgba(255,255,255,.62); color: #000;
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); text-align: left; }
html[data-theme="dark"] .m5-push { background: rgba(40,40,44,.72); color: #fff; }
.m5-push .appi { width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #7F5CFF, #5B37E6); color: #fff; font-size: 20px; }
.m5-push .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.m5-push .h { display: flex; justify-content: space-between; font-size: 15px; } .m5-push .h b { font-weight: 600; } .m5-push .h time { opacity: .6; font-size: 14px; }
.m5-push .t { font-size: 15px; font-weight: 600; } .m5-push .b { font-size: 15px; }
.m5-flash { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; justify-content: space-between; padding: 0 46px; }
.m5-flash span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(16px); font-size: 21px; }

/* ---------- prazno ---------- */
.m5-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px 8px; text-align: center; }
.m5-empty .bi { font-size: 46px; color: var(--ink-3); }
.m5-empty b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- šire od mobitela (tablet/desktop pregled): stupac sadržaja, trake preko cijele širine ---------- */


/* ---------- TR-1: aplikacijski korijen (bez okvira nacrta) ---------- */
html, body.radnik { margin: 0; padding: 0; }
body.radnik { min-height: 100dvh; background: var(--bg); color: var(--ink); }
.m5 { position: relative; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.m5-body { -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) {
  .m5-nav, .m5-lt { width: 100%; max-width: 592px; margin: 0 auto; }
  .m5-tabs { grid-template-columns: repeat(2, 140px); justify-content: center; }
  .m5-hero { min-height: 340px; }
  .m5-as { left: 50%; right: auto; width: 420px; margin-left: -210px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .m5-sheet { left: 50%; right: auto; width: 440px; margin-left: -220px; bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 18px; padding-bottom: 26px; }
  .m5-cbot { padding-bottom: 20px; }
}

/* ---------- pomoćne klase predložaka (bez inline style atributa) ---------- */
.m5[hidden], .radnik-stanje[hidden] { display: none !important; }
.m5-me.end { justify-content: flex-end; }
.m5-me.end b { font-size: 15px; color: var(--ink-2); font-weight: 400; }
.m5-note.slim { min-height: 36px; padding: 6px 14px; border-radius: 18px; margin-bottom: 22px; }
.m5-note.slim b { font-size: 15px; }
.m5-btn.w260 { width: 260px; }
.m5 .fw4 { font-weight: 400; }
.m5 .fw6 { font-weight: 600; }
.m5-alert .bt button.fw4 { font-weight: 400; }
.m5-alert, .m5-as, .m5-sheet { color: var(--ink); }

/* ---------- TR-1 ugradnja: korisničko ime, stanja ---------- */
.m5-user { width: 292px; max-width: 100%; height: 56px; border: 0; border-radius: 14px; background: var(--cell); padding: 0 16px;
  font-family: var(--font); font-size: 17px; color: var(--ink); -webkit-appearance: none; }
.m5-user::placeholder { color: var(--ink-3); }
.m5-user:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: 2px; }
.m5-prijava-form { display: flex; flex-direction: column; align-items: center; gap: 0; }
.m5-prijava-form .m5-user { margin-top: 22px; }
/* 2226 (PM 04450ee3): stalni natpis ispod imena - placeholder nestaje čim radnik počne tipkati */
.m5-user-hint { width: 292px; max-width: 100%; margin: 8px 0 0; padding: 0 16px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.radnik [hidden] { display: none !important; }

#radnikMojeLista { display: flex; flex-direction: column; gap: 22px; }

/* Pravo PIN polje: vizualno skriveno, dostupno čitaču zaslona (nije display:none). */
.m5-pin-in { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.radnik-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* TR-1 odjava: dodir na ime otvara list odozdo (nacrt v5 odjava-upozorenje) */
.m5-fix { position: fixed; }
.m5-dim.m5-fix { inset: 0; }
@media (max-width: 699px) { .m5-as.m5-fix { bottom: calc(34px + env(safe-area-inset-bottom, 0px)); } }
button.m5-me { text-align: left; color: inherit; min-height: 44px; }

/* Vraćeni papir: uredski razlog može biti dulji od nacrtovih — crveni redak se lomi, nikad ne reže razlog */
.m5-row.back .m5-tx span.red { white-space: normal; overflow: visible; text-overflow: clip; }

/* R1 korak 2 (Mario 24.11.): redak sa zadatkom se otvara; list „Ponovi snimku“ i potvrda „Nemam više papir“ nose papir */
.m5-row.tap { cursor: pointer; }
/* PWA-RADNIK: redak „Obavijesti“ - uključeno je zeleno, blokirano/uputa su sivi i ne reagiraju na dodir */
.m5-row[data-akcija="obavijesti"].on .m5-val { color: var(--green-fill); }
.m5-row[data-akcija="obavijesti"]:disabled { cursor: default; }
/* Mario 25.11.: opis se ne reže s „…“ - dugi jezici idu u dva retka, font ostaje 17 px */
.m5-row[data-akcija="obavijesti"] .m5-tx b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.m5-row[data-akcija="obavijesti"].greska .m5-val { color: var(--red-ink); white-space: normal; max-width: 52%; text-align: right; font-size: 15px; }
.m5-row[data-akcija="obavijesti"]:disabled .m5-val { white-space: normal; max-width: 52%; text-align: right; font-size: 15px; }
.m5-row.tap:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
/* qa Astra 2231 A2: traka otvorenog zadatka na početnom kad kamere nema */
.m5-zd-traka { display: grid; gap: 8px; margin: 0 0 14px; padding: 14px; border-radius: 14px; background: var(--sheet-cell); }
.m5-zd-traka .m5-zd-naslov { font-size: 17px; font-weight: 600; color: var(--ink); }
.m5-as .hd.m5-zd { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.m5-zd .m5-im, .m5-zd-im { width: 48px; height: 62px; border-radius: 8px; flex: none; background: #d9d9de center / cover no-repeat; }
.m5-zd .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m5-zd .tx b { font-size: 16px; font-weight: 600; color: var(--ink); }
.m5-zd .tx .red { color: var(--red-ink); }
.m5-alert .hd .m5-zd-im { margin: 0 auto 6px; }
.m5-alert .bt button.red { color: var(--red-ink); }

/* 12.43.2235 (Mario 25.11.): početna radnika stane u ekran mobitela, bez okomitog pomicanja. Ljuska je točno visina
   ekrana, a glavni gumb „Slikaj“ zadržava 300 px kad ima mjesta i smanjuje se do 150 px kad ekran nije dovoljno
   visok (mali mobitel, preglednik s trakama). Tek ispod toga tijelo se pomiče samo, a traka kartica ostaje na dnu. */
.m5.home { height: 100vh; height: 100dvh; min-height: 0; }
.m5.home .m5-body > .m5-col { flex: 1 1 auto; min-height: 0; }
.m5.home .m5-hero { flex: 0 1 300px; min-height: 150px; }
@media (min-width: 700px) { .m5.home .m5-hero { flex-basis: 340px; } }
@media (max-height: 660px) {
  .m5.home .m5-body { padding-bottom: 12px; }
  .m5.home .m5-col { gap: 16px; }
  .m5.home .m5-hero { gap: 12px; border-radius: 22px; }
  .m5.home .m5-hero .ring { width: 84px; height: 84px; }
  .m5.home .m5-hero .ring .bi { font-size: 40px; }
  .m5.home .m5-hero b { font-size: 22px; }
}
/* obavijesti bez dozvole / s greškom: stanje ide ispod natpisa (cijela širina), umjesto da natpis stisne u tri retka */
.m5-row[data-akcija="obavijesti"]:disabled, .m5-row[data-akcija="obavijesti"].greska { flex-wrap: wrap; row-gap: 2px; }
.m5-row[data-akcija="obavijesti"]:disabled .m5-tx, .m5-row[data-akcija="obavijesti"].greska .m5-tx { flex: 1 1 0; }
.m5-row[data-akcija="obavijesti"]:disabled .m5-val, .m5-row[data-akcija="obavijesti"].greska .m5-val { flex: 1 0 100%; max-width: none; padding-left: 46px; text-align: left; }
