@font-face { font-family: "Poppins"; font-weight: 400; src: url("/fonts/Poppins-Regular.ttf"); }
@font-face { font-family: "Poppins"; font-weight: 500; src: url("/fonts/Poppins-Medium.ttf"); }
@font-face { font-family: "Poppins"; font-weight: 600; src: url("/fonts/Poppins-SemiBold.ttf"); }
:root { --ink: #1d1d1b; --red: #e52322; --line: #e7e7e4; --soft: #f6f6f4; --muted: #77776f; --r: 4px; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 "Poppins", system-ui, sans-serif; color: var(--ink); background: #fbfbfa; }
a { color: var(--ink); }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
header.top img { height: 28px; }
header.top .who { color: var(--muted); font-size: 13px; }
header.top form { display: inline; }
main { max-width: 1280px; margin: 0 auto; padding: 24px 28px 80px; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r); font: 500 13px "Poppins"; cursor: pointer; text-decoration: none; }
.btn.light { background: #fff; color: var(--ink); }
.btn.red { background: var(--red); border-color: var(--red); }
input[type=text], input[type=password], input[type=number], textarea, select { font: 14px "Poppins"; padding: 8px 10px; border: 1px solid #d6d6d1; border-radius: var(--r); background: #fff; width: 100%; }
label { font-size: 12px; color: var(--muted); display: block; margin: 8px 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid4 { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; gap: 12px; align-items: end; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 500 11px "Poppins"; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 6px 8px; }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
.msg { background: #fff4f4; border: 1px solid #f3c7c6; color: #a31a19; border-radius: var(--r); padding: 10px 14px; margin-bottom: 12px; }
.ok { background: #f2f8f2; border: 1px solid #cfe5cf; border-radius: var(--r); padding: 10px 14px; }
.login { max-width: 380px; margin: 90px auto; }
.login img { height: 34px; margin-bottom: 18px; }
.item-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.chips span { display: inline-block; background: var(--soft); border-radius: var(--r); padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 12px; }
.issue { color: #a3620a; font-size: 12px; }
.score { white-space: nowrap; font-size: 12px; }
.score b { font-weight: 600; }
.s-ok { color: #1f7a33; } .s-fail { color: var(--red); } .s-no { color: #a3620a; } .s-unk { color: var(--muted); }
details.checks summary { cursor: pointer; font-size: 12px; color: var(--muted); }
details.checks ul { margin: 6px 0 0; padding-left: 16px; font-size: 12px; }
tr.sel { background: #fff8e9; }
.sticky { position: sticky; top: 0; z-index: 5; background: #fbfbfa; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.totals { font-size: 13px; } .totals b { font-size: 15px; }
.tag { font-size: 11px; background: var(--soft); border-radius: var(--r); padding: 1px 6px; margin-left: 4px; }

/* učitavanje i povratne informacije */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--red); border-radius: 50%; display: inline-block; vertical-align: -4px; animation: spin .8s linear infinite; }
.btn .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.btn.light .spinner { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled] { opacity: .75; cursor: progress; }
.wait { text-align: center; padding: 50px 20px; }
.wait .big { width: 46px; height: 46px; border-width: 3px; margin-bottom: 18px; }
.wait .step { font-weight: 500; font-size: 15px; min-height: 24px; }
.bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; max-width: 420px; margin: 18px auto 8px; }
.bar > div { height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width 1s linear; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(10px); transition: all .3s; z-index: 50; }
.toast.show { opacity: 1; transform: none; }
.toast .ok-ic { color: #7ee08f; margin-right: 6px; }
.overlay { position: fixed; inset: 0; background: rgba(251,251,250,.85); display: none; align-items: center; justify-content: center; z-index: 40; }
.overlay.show { display: flex; }
.overlay .box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 34px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.overlay .box .spinner { width: 34px; height: 34px; border-width: 3px; margin-bottom: 12px; }
