/* Proizvodnjaya — Meatraya stil (tamna tema, magenta akcenat; isti fazon kao Zachinjaya / Nabavkaya) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/inter-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/inter-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/archivo-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/archivo-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Dancing Script';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/dancing-script-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Dancing Script';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/dancing-script-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root {
  --mag: #ed1162; --mag-l: #ff4d8e; --mag-d: #d10c57;
  --bg: #0b0b0d; --panel: #141418; --panel2: #1e1e25; --panel3: #26262e; --deep: #08080a;
  --line: #2c2c35; --txt: #f5f5f7; --mut: #9a9aa6;
  --ok: #88c540; --warn: #ffb224; --err: #ff5252; --info: #5aa9ff;
  --head: 'Archivo', 'Inter', system-ui, Arial, sans-serif;
  --radius: 16px;
  --brand: var(--mag); --muted: var(--mut); --text: var(--txt);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.45; touch-action: manipulation;
}
a { color: var(--mag-l); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }
button { font-family: inherit; touch-action: manipulation; }
button:active { transform: scale(.975); }

/* ---------- zaglavlje (logo + Nabavkaya) ---------- */
#hdr {
  display: flex; align-items: center; gap: 16px; padding: 0 20px; min-height: 78px;
  background: linear-gradient(180deg, #131316, #0e0e11); border-bottom: 2px solid var(--mag);
}
#hdr .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
#hdr img.logo { height: 56px; width: auto; display: block; }
#hdr .tstack { display: flex; flex-direction: column; line-height: 1; }
#hdr .appname { font-family: 'Dancing Script', cursive; font-size: 38px; font-weight: 700; color: var(--mag); letter-spacing: .5px; }
#hdr .sub { font-family: var(--head); font-weight: 800; font-size: 11px; letter-spacing: 3.5px; color: var(--mut); text-transform: uppercase; margin-top: 3px; }
#hdr .spacer { flex: 1; }
#hdr #clock { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--txt); }
#hdr .pill {
  font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--mut); background: var(--panel2);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
#hdr .user { display: flex; align-items: center; gap: 10px; }
#hdr .user .name { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--txt); }
#hdr .user a { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mag-l); background: rgba(237,17,98,.1); border: 1px solid rgba(237,17,98,.35); padding: 8px 14px; border-radius: 999px; }
#hdr .user a:hover { text-decoration: none; background: rgba(237,17,98,.2); }

/* ---------- navigacija (tabovi) ---------- */
#nav { display: flex; background: #101014; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
#nav::-webkit-scrollbar { display: none; }
#nav a {
  flex: 1 0 auto; min-height: 62px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 800; font-size: 14px; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap;
  color: var(--mut); border-bottom: 4px solid transparent; text-decoration: none;
}
#nav a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#nav a:hover { color: var(--txt); text-decoration: none; }
#nav a.on { color: #fff; border-bottom-color: var(--mag); background: rgba(237,17,98,.08); }

.testbar {
  background: rgba(255,178,36,.12); color: var(--warn); text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 700;
  border-bottom: 1px solid rgba(255,178,36,.3);
}

main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 70px; }
main.narrow { max-width: 760px; }
footer.foot { text-align: center; padding: 10px 16px 24px; color: var(--mut); font-size: 13px; font-family: var(--head); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- poruke ---------- */
.flash { padding: 14px 18px; border-radius: 14px; margin: 0 0 14px; font-weight: 700; border: 1px solid transparent; }
.flash.ok { background: rgba(136,197,64,.12); color: var(--ok); border-color: rgba(136,197,64,.35); }
.flash.error { background: rgba(255,82,82,.12); color: var(--err); border-color: rgba(255,82,82,.4); }

/* ---------- kartice / naslovi ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h2, .card h3 { margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; line-height: 1.15; }
h1 { font-size: 24px; margin: 4px 0 16px; }
h2 { font-size: 17px; letter-spacing: 1.5px; }
h3 { font-size: 14px; letter-spacing: 2px; color: var(--mut); }
.muted { color: var(--mut); }
.small { font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--mag); color: #fff; border: 0; border-radius: 14px; padding: 12px 20px;
  font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 50px; line-height: 1.2;
}
.btn:hover { background: var(--mag-d); text-decoration: none; color: #fff; }
.btn:active { background: var(--mag-d); }
.btn.secondary { background: var(--panel2); color: var(--txt); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--panel3); color: #fff; }
.btn.ok { background: rgba(136,197,64,.15); color: var(--ok); border: 1px solid rgba(136,197,64,.45); }
.btn.ok:hover { background: rgba(136,197,64,.25); color: var(--ok); }
.btn.danger { background: rgba(255,82,82,.13); color: var(--err); border: 1px solid rgba(255,82,82,.4); }
.btn.danger:hover { background: rgba(255,82,82,.22); color: var(--err); }
.btn.small { padding: 7px 14px; font-size: 15px; min-height: 40px; border-radius: 11px; }
.btn.big { padding: 18px 22px; font-size: 20px; min-height: 64px; width: 100%; font-family: var(--head); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- forme ---------- */
label { display: block; font-family: var(--head); font-weight: 800; margin: 14px 0 7px; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); }
label .hint { font-family: 'Inter', sans-serif; font-weight: 400; color: var(--mut); text-transform: none; letter-spacing: 0; font-size: 13px; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], input[type=search], input[type=time],
select, textarea {
  width: 100%; padding: 13px 15px; font-size: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2);
  color: #fff; font-family: inherit; font-weight: 600; min-height: 54px;
}
input::placeholder, textarea::placeholder { color: #6b6b78; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--mag); border-color: var(--mag); }
select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ed1162' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--panel2); color: #fff; }
textarea { min-height: 96px; resize: vertical; font-weight: 500; line-height: 1.4; }
input[type=file] { width: 100%; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel2); font-size: 15px; color: var(--mut); }
input[type=file]::file-selector-button { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .5px; color: var(--mag-l); background: rgba(237,17,98,.12); border: 1px solid rgba(237,17,98,.4); border-radius: 10px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--mag); }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; margin: 14px 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--txt); font-family: 'Inter', sans-serif; }
.check input { width: 26px; height: 26px; flex: none; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- pretraga i pločice artikala (tablet) ---------- */
.search-box { position: relative; }
.search-box input { padding: 16px 20px 16px 56px; font-size: 22px; border-radius: 16px; min-height: 66px; background: var(--panel); }
.search-box svg { position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); stroke: var(--mag); fill: none; stroke-width: 2.6; stroke-linecap: round; pointer-events: none; }
.item-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 14px; }
.item-tile {
  display: block; width: 100%; text-align: left; background: var(--panel2); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px;
  color: var(--txt); min-height: 78px; cursor: pointer; position: relative; font-family: inherit; text-decoration: none;
}
.item-tile:hover { border-color: var(--mag); text-decoration: none; }
.item-tile:active { transform: scale(.985); }
.item-tile .name { font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: .3px; text-transform: uppercase; color: var(--txt); padding-right: 6px; }
.item-tile .meta { color: var(--mut); font-size: 13.5px; margin-top: 5px; }
.item-tile .pend {
  display: inline-block; margin-top: 8px; font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .5px;
  color: var(--mag-l); background: rgba(237,17,98,.12); border: 1px solid rgba(237,17,98,.4); padding: 4px 10px; border-radius: 999px;
}
.item-tile .pend:empty { display: none; }
.item-tile.just { border-color: var(--mag); background: linear-gradient(135deg, rgba(237,17,98,.2), rgba(237,17,98,.06)); }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.topline h1 { margin: 0; }
.statusline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--mut); }

/* ---------- količina (klasična strana) ---------- */
.qty-wrap { display: flex; align-items: stretch; gap: 10px; }
.qty-wrap input { text-align: center; font-size: 32px; font-weight: 800; font-family: var(--head); padding: 10px; }
.qty-wrap button { width: 68px; font-size: 30px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--mag-l); cursor: pointer; }
.qty-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qty-quick button { padding: 10px 18px; font-size: 17px; font-family: var(--head); font-weight: 800; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--txt); cursor: pointer; }
.qty-quick button:hover { border-color: var(--mag); color: var(--mag-l); }

/* ---------- popup (modal) i tastatura ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 14px; }
.modal { background: #1a1a20; border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 560px; max-height: 94vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal.wide { max-width: 860px; }
.modal .mhead { padding: 18px 22px 4px; flex: none; }
.modal .mhead .mt { font-family: var(--head); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.15; }
.modal .mhead .ms { color: var(--mut); font-size: 14px; margin-top: 5px; }
.modal .mbody { padding: 10px 22px; overflow-y: auto; flex: 1; font-size: 16px; }
.modal .mfoot { display: flex; gap: 12px; padding: 14px 22px 20px; flex: none; border-top: 1px solid var(--line); }
.modal .mfoot .btn { flex: 1; min-height: 60px; font-size: 18px; }
.modal .mfoot .btn.secondary { flex: 0 0 auto; min-width: 130px; }
.modal label:first-child { margin-top: 4px; }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kpmVal { display: flex; align-items: baseline; justify-content: center; gap: 10px; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; position: relative; }
.kpmVal .v { font-family: var(--head); font-weight: 800; font-size: 50px; min-height: 56px; color: #fff; }
.kpmVal .u { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--mag); }
.kpmVal .cbtn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 12px; background: var(--panel3); color: var(--mut); border: 0; font-family: var(--head); font-weight: 800; font-size: 18px; cursor: pointer; }
.kpmVal .cbtn:active { transform: translateY(-50%) scale(.94); }
.chips { display: flex; gap: 8px; margin-bottom: 10px; }
.chips button { flex: 1; min-height: 48px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; font-family: var(--head); font-weight: 800; font-size: 17px; color: var(--txt); cursor: pointer; padding: 0 4px; }
.chips button:hover { border-color: var(--mag); }
.kpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.kpgrid button { min-height: 62px; font-family: var(--head); font-weight: 800; font-size: 28px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kpgrid button.alt { background: var(--panel3); color: var(--mag-l); font-size: 24px; }
.kpgrid button svg { width: 30px; height: 30px; stroke: var(--mag-l); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.segm { display: flex; gap: 8px; }
.segm button { flex: 1; min-height: 58px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--mut); cursor: pointer; text-transform: uppercase; letter-spacing: .5px; padding: 6px 10px; line-height: 1.2; }
.segm button.on { background: rgba(237,17,98,.16); border-color: var(--mag); color: #fff; }
.segm button.on.hot { background: rgba(255,82,82,.18); border-color: var(--err); color: #fff; }
.minfo { border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 15px; line-height: 1.4; }
.minfo.warn { background: rgba(255,178,36,.12); color: var(--warn); border: 1px solid rgba(255,178,36,.35); }
.minfo.info { background: rgba(90,169,255,.12); color: var(--info); border: 1px solid rgba(90,169,255,.35); }
.minfo b { color: #fff; }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(140px); z-index: 99; visibility: hidden;
  background: #1f1f26; border: 1px solid var(--mag); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px 26px; border-radius: 999px; transition: transform .25s; box-shadow: 0 8px 30px rgba(0,0,0,.6);
  max-width: 92vw; text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
#toast.err { border-color: var(--err); color: var(--err); }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mut); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: rgba(237,17,98,.06); }

/* ---------- bedževi ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-family: var(--head); font-weight: 800; letter-spacing: .4px; white-space: nowrap;
  background: var(--panel3); color: var(--txt); border: 1px solid var(--line); text-transform: uppercase; vertical-align: middle;
}
.badge.ok { background: rgba(136,197,64,.14); color: var(--ok); border-color: rgba(136,197,64,.4); }
.badge.warn { background: rgba(255,178,36,.14); color: var(--warn); border-color: rgba(255,178,36,.4); }
.badge.err { background: rgba(255,82,82,.14); color: var(--err); border-color: rgba(255,82,82,.45); }
.badge.info { background: rgba(90,169,255,.14); color: var(--info); border-color: rgba(90,169,255,.4); }
.badge.urgent { background: var(--err); color: #fff; border-color: var(--err); }

/* ---------- filteri ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a {
  padding: 10px 16px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--txt);
  font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.tabs a.active { background: rgba(237,17,98,.16); color: #fff; border-color: var(--mag); }
.tabs a:hover { text-decoration: none; border-color: var(--mag); }
.tabs .count { margin-left: 6px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.tabs a.active .count { background: var(--mag); }

/* ---------- razno ---------- */
.stat { text-align: center; padding: 14px; }
.stat .n { font-family: var(--head); font-weight: 800; font-size: 36px; color: #fff; }
.stat .n.badge { font-size: 22px; padding: 6px 16px; }
.stat .l { color: var(--mut); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--head); font-weight: 800; margin-top: 2px; }
.notice { padding: 12px 14px; border-radius: 12px; margin: 10px 0; font-size: 15px; border: 1px solid transparent; }
.notice.warn { background: rgba(255,178,36,.12); color: var(--warn); border-color: rgba(255,178,36,.35); }
.notice.info { background: rgba(90,169,255,.12); color: var(--info); border-color: rgba(90,169,255,.35); }
.notice.err { background: rgba(255,82,82,.12); color: var(--err); border-color: rgba(255,82,82,.4); }
.notice b { color: #fff; }
.notice a { color: #fff; text-decoration: underline; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.login-box { max-width: 420px; margin: 40px auto; text-align: center; }
.login-box .logo-big { height: 110px; margin: 6px auto 4px; display: block; }
.login-box .appname { font-family: 'Dancing Script', cursive; font-size: 52px; color: var(--mag); line-height: 1; }
.login-box .sub { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: 3.5px; color: var(--mut); text-transform: uppercase; margin: 6px 0 18px; }
.login-box label { text-align: left; }
.kbd-pin input { font-size: 24px; letter-spacing: 3px; text-align: center; }
details summary { cursor: pointer; font-weight: 700; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
pre { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel3); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 760px) {
  .mcols { grid-template-columns: 1fr; gap: 6px; }
  .modal { max-height: 96vh; }
  .modal .mfoot .btn.secondary { min-width: 100px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  #hdr { padding: 0 12px; gap: 10px; min-height: 64px; }
  #hdr img.logo { height: 44px; }
  #hdr .appname { font-size: 30px; }
  #hdr .sub { display: none; }
  #hdr #clock, #hdr .pill { display: none; }
  #hdr .user .name { display: none; }
  #nav a { min-height: 54px; font-size: 13px; padding: 0 12px; gap: 7px; }
  main { padding: 12px 10px 60px; }
  .card { padding: 14px; }
  .kpgrid button { min-height: 56px; }
}

/* ---------- Proizvodnjaya: vrste naloga / obrasci kao pločice ---------- */
.type-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 4px; }
.type-tile {
  display: flex; flex-direction: column; gap: 4px; position: relative; cursor: pointer; text-align: left;
  background: var(--panel2); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; min-height: 74px; color: var(--txt); font-family: inherit;
}
.type-tile input { position: absolute; opacity: 0; pointer-events: none; }
.type-tile .tt-name { font-family: var(--head); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .3px; line-height: 1.2; }
.type-tile .tt-sub { color: var(--mut); font-size: 13px; }
.type-tile:hover { border-color: var(--mag); }
.type-tile:has(input:checked), .type-tile.sel { border-color: var(--mag); background: linear-gradient(135deg, rgba(237,17,98,.2), rgba(237,17,98,.06)); }
.type-tile:has(input:checked) .tt-name { color: var(--mag-l); }
label.sub { margin-top: 0; font-size: 11.5px; }
table.lines input { min-height: 46px; padding: 8px 10px; font-size: 16px; }
table.lines td { padding: 6px 6px; vertical-align: middle; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; max-height: 420px; overflow-y: auto; }
.check-grid .check { font-size: 15px; }
.check-grid .check input { width: 22px; height: 22px; }

/* nalog: kartica obrade */
.op-card { padding: 12px 0; border-top: 1px solid var(--line); }
.op-card:first-of-type { border-top: 0; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.linechip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--mut); }
.linechip b { color: #fff; margin-left: 4px; }
.linechip.waste { border-color: rgba(255,82,82,.35); }
.rn-tile .badge { flex: none; }

/* unos kilaža: polja zaglavlja i redovi proizvoda */
.hdr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.hf { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; color: var(--txt); font-family: inherit; min-height: 92px; }
button.hf { cursor: pointer; border-color: var(--mag); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
button.hf:hover { background: var(--panel2); }
.hf .hl { font-family: var(--head); font-weight: 800; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); }
.hf .hv { font-family: var(--head); font-weight: 800; font-size: 30px; color: #fff; line-height: 1.1; }
button.hf .hv { color: var(--mag-l); }
.hf .hu { font-size: 12.5px; color: var(--mut); }
.hf.tot .hv { font-size: 26px; }
.lsec { margin-bottom: 8px; }
@media (min-width: 900px) { .lsec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .lsec .lsec-h { grid-column: 1 / -1; } }
.lsec-h { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mut); padding: 10px 6px 6px; }
.lrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--panel2); border: 2px solid transparent; border-radius: 12px; padding: 12px 16px; margin: 6px 0; min-height: 62px; color: var(--txt); font-family: inherit;
}
.lrow:hover { border-color: var(--mag); }
.lrow .ln { font-weight: 700; font-size: 17px; }
.lrow .lv { font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--mut); white-space: nowrap; }
.lrow .lu, .lrow .lpc { font-size: 14px; color: var(--mut); font-family: 'Inter', sans-serif; font-weight: 600; }
.lrow.has .lv { color: var(--mag-l); }
.lrow.has { border-color: rgba(237,17,98,.35); }
.lrow.waste .ln { color: var(--mut); }
.lrow.just { background: linear-gradient(135deg, rgba(237,17,98,.22), rgba(237,17,98,.06)); border-color: var(--mag); }
@media (max-width: 600px) {
  .hf .hv { font-size: 24px; }
  .lrow .lv { font-size: 20px; }
}
