:root {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #e9eef5;
  --border: #dfe5ee;
  --border-strong: #c5cfdc;
  --text: #16243a;
  --text-2: #4a5a72;
  --muted: #74839a;
  --primary: #2a64ad;
  --primary-600: #20518f;
  --primary-50: #e8f0fa;
  --primary-100: #d3e2f5;
  --accent: #3ba3c9;
  --green: #1f9d6b;
  --green-bg: #dcf5ea;
  --red: #d64545;
  --red-bg: #fde6e6;
  --amber: #e3a008;
  --sidebar: #1a2740;
  --sidebar-2: #23344f;
  --sidebar-text: #b9c6da;
  /* Kategorije: Š = škola, F = fakultet, O = ostali */
  --cat-S: #e6a817; --cat-S-bg: #fdf3d6; --cat-S-text: #8a5d00;
  --cat-F: #2f9e74; --cat-F-bg: #daf3e8; --cat-F-text: #17654a;
  --cat-O: #7a68d6; --cat-O-bg: #ebe7fb; --cat-O-text: #4b3aa6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 36, 58, .05), 0 2px 6px rgba(22, 36, 58, .05);
  --shadow-lg: 0 24px 48px -16px rgba(22, 36, 58, .35);
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
[hidden] { display: none !important; }
svg.lucide { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }
::selection { background: var(--primary-100); }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0; color: var(--sidebar-text);
  background: linear-gradient(180deg, #1a2740 0%, #1d2f4c 60%, #213a5c 100%);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { width: 44px; height: 44px; display: block; flex-shrink: 0; border-radius: 10px; background: #fff; padding: 4px; object-fit: contain; }
.brand-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: #8fa3c0; margin-top: 2px; }
.nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #6f84a3; padding: 14px 12px 6px; font-weight: 600; }
.nav a, .nav-bottom a, .nav-bottom button {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--sidebar-text);
  font-weight: 500; text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%; text-align: left;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav-bottom a:hover, .nav-bottom button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: linear-gradient(90deg, var(--primary), #3576c4); color: #fff; box-shadow: 0 6px 16px -8px rgba(42,100,173,.9); }
.nav-bottom { padding: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3ba3c9, #2a64ad); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; flex-shrink: 0; }
.user-name { color: #fff; font-weight: 500; font-size: 13px; }
.user-role { font-size: 11.5px; color: #8fa3c0; }
.main { flex: 1; min-width: 0; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 48px; }
.page.wide { max-width: none; }
.mobile-bar { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.page-sub { color: var(--text-2); margin-top: 4px; font-size: 14.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }

/* ---------- Gumbi i polja ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px -6px rgba(42,100,173,.8); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-danger:hover { background: #b93636; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn.danger { color: var(--red); }

.input, .select, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42, 100, 173, .15); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.input.ok { border-color: var(--green); }
.input.bad { border-color: var(--red); }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2374839a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.search { position: relative; }
.search > svg.lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 36px; }
.search:has(.search-clear) .input { padding-right: 34px; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.search-clear:hover { background: var(--border); color: var(--text); }
.search:has(.input:placeholder-shown) .search-clear { display: none; }
label.lbl, .lbl { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.lbl .opt { color: var(--muted); font-weight: 400; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.span-2 { grid-column: span 2; }
.date-field { display: flex; gap: 6px; position: relative; }
.dp { position: fixed; z-index: 300; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; width: 276px; }
.dp-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.dp-head select { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 0 4px; cursor: pointer; }
.dp-head select[data-year] { flex: 0 0 72px; }
.dp-nav { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-2); cursor: pointer; }
.dp-nav:hover { background: var(--surface-2); color: var(--text); }
.dp-nav svg { width: 16px; height: 16px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.dp-dow.we { color: #b0bccb; }
.dp-day { height: 32px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.dp-day:hover { background: var(--primary-50); }
.dp-day.we { color: var(--muted); }
.dp-day.hol { color: var(--red); }
.dp-day.out { opacity: .35; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--primary); font-weight: 600; }
.dp-day.sel, .dp-day.sel:hover { background: var(--primary); color: #fff; font-weight: 600; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-section { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 8px 0 12px; display: flex; align-items: center; gap: 10px; }
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Kartice ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-title svg.lucide { color: var(--primary); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { padding: 18px; display: flex; justify-content: space-between; align-items: flex-start; position: relative; overflow: hidden; }
.stat-link { color: inherit; text-decoration: none; transition: box-shadow .18s, transform .18s, border-color .18s; }
.stat-link:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 12px 26px -10px rgba(22, 36, 58, .28); }
.stat-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stat-label { color: var(--text-2); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat-foot { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.stat-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.stat-icon svg.lucide { width: 20px; height: 20px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; border: 1px solid transparent; }
.list-item:hover { background: var(--primary-50); border-color: var(--primary-100); }
.li-title { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.li-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }

/* ---------- Oznake ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge.blue { background: var(--primary-50); color: var(--primary); }
.badge.green { background: var(--green-bg); color: #17654a; }
.badge.red { background: var(--red-bg); color: #a12f2f; }
.cat { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.cat-S { background: var(--cat-S-bg); color: var(--cat-S-text); }
.cat-F { background: var(--cat-F-bg); color: var(--cat-F-text); }
.cat-O { background: var(--cat-O-bg); color: var(--cat-O-text); }
.lvl { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.lvl-Promatrao { background: #eef1f6; color: #55657d; }
.lvl-Asistirao { background: #e3effc; color: #2a64ad; }
.lvl-Samostalno { background: var(--green-bg); color: #17654a; }

/* ---------- Tablice ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:hover { background: #f7f9fc; }
.tbl tr.clickable { cursor: pointer; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl tr:last-child td { border-bottom: 0; }
.sub { font-size: 12px; color: var(--muted); }
.name-cell { display: flex; align-items: center; gap: 10px; }
.name-cell .avatar { width: 34px; height: 34px; }
.progress { width: 90px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 999px; }

/* ---------- Alatna traka ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 220px; }
.toolbar .select { width: auto; min-width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 0 13px; height: 34px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--primary); color: #fff; }
.seg button:not(.on):hover { background: var(--surface-2); }
.menu { position: absolute; z-index: 160; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 180px; }
.menu button { display: flex; width: 100%; gap: 8px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; text-align: left; color: var(--text); }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--red); }

/* ---------- Tabovi ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .count { background: var(--surface-3); color: var(--text-2); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.tabs button.on .count { background: var(--primary-50); color: var(--primary); }

/* ---------- Karton praktikanta ---------- */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile-card { padding: 22px; }
.profile-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-top .avatar { width: 56px; height: 56px; font-size: 19px; }
.profile-name { font-size: 19px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.module { border: 1px solid var(--border); border-radius: 11px; margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.module-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; background: var(--surface-2); user-select: none; }
.module-head:hover { background: var(--surface-3); }
.module-code { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.module-name { font-weight: 600; flex: 1; }
.module-body { padding: 4px 0; }
.module.closed .module-body { display: none; }
.module .chev { transition: transform .15s; color: var(--muted); }
.module.closed .chev { transform: rotate(-90deg); }
.act-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid #eef2f7; }
.act-row:first-child { border-top: 0; }
.act-row:hover { background: #f9fbfd; }
.act-name { line-height: 1.4; }
.act-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.act-state { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.act-done { color: var(--green); }
.act-todo { color: #c3ccd9; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.tl-item.now::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.tl-item.future::before { background: var(--border-strong); box-shadow: 0 0 0 3px var(--surface-2); }
.tl-title { font-weight: 600; }
.tl-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.doc-pill { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; margin-bottom: 6px; }
.doc-pill a { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.doc-pill .sub { margin-left: 4px; }
.drop-zone { border: 1.5px dashed var(--border-strong); border-radius: 11px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* ---------- Skeniranje osobne ---------- */
.scan-box { border: 1px solid var(--primary-100); background: linear-gradient(135deg, #f3f8fe, #eaf2fb); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.scan-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.scan-title { font-weight: 600; display: flex; gap: 8px; align-items: center; color: var(--primary-600); }
.scan-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scan-status { font-size: 12.5px; color: var(--primary); display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.scan-preview { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.scan-preview img { height: 90px; border-radius: 8px; border: 1px solid var(--border); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--primary-100); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.camera { position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.camera video { width: 100%; display: block; }
.camera .frame { position: absolute; inset: 12% 8%; border: 2px dashed rgba(255,255,255,.8); border-radius: 12px; pointer-events: none; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 27, 46, .55); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fbfcfe; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; padding: 22px 24px; position: relative; animation: pop .14s ease-out; }
.modal.lg { max-width: 760px; }
.modal.xl { max-width: 980px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-title { font-size: 19px; font-weight: 700; margin: 0 0 18px; padding-right: 30px; display: flex; align-items: center; gap: 10px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.form-error { color: #a12f2f; background: var(--red-bg); border-radius: 9px; padding: 9px 12px; margin-top: 12px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-50); color: var(--primary-600); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 12.5px; font-weight: 500; }
.chip-x button { border: 0; background: rgba(42,100,173,.12); color: inherit; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.chip-x button svg.lucide { width: 12px; height: 12px; }
.chip-x.bad { background: #fdecea; color: #b42318; }
.chip-x.bad a { display: inline-flex; align-items: center; gap: 4px; }
.chip-x.bad a svg.lucide { width: 13px; height: 13px; }
.other-school { margin-top: 8px; font-size: 12.5px; color: #b42318; display: flex; align-items: center; gap: 4px; }
.other-school svg.lucide { width: 14px; height: 14px; }
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-lg); z-index: 20; max-height: 260px; overflow-y: auto; }
.ac-item { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.ac-item:hover, .ac-item.hl { background: var(--primary-50); }
.pick-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.pick-list .module-head { position: sticky; top: 0; z-index: 1; padding: 9px 12px; }
.pick-row { display: flex; gap: 10px; padding: 7px 12px; border-top: 1px solid #eef2f7; align-items: flex-start; cursor: pointer; }
.pick-row:hover { background: #f7f9fc; }
.pick-row input { margin-top: 2px; }
.pick-row .done { margin-left: auto; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #16243a; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 400px; animation: pop .15s; }
.toast.error { background: var(--red); }
.toast.success { background: #17654a; }

/* ---------- Kalendar rasporeda ---------- */
.cal-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cal-title { font-size: 16px; font-weight: 700; min-width: 190px; text-align: center; text-transform: capitalize; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.planner { overflow: auto; height: calc(100vh - 210px); min-height: 420px; position: relative; border-radius: var(--radius); }
.pl-grid { display: grid; position: relative; width: max-content; min-width: 100%; }
.pl-corner, .pl-mhead, .pl-dhead { position: sticky; background: var(--surface); z-index: 6; }
.pl-corner { left: 0; top: 0; z-index: 9; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 12px; display: flex; align-items: flex-end; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; gap: 8px; }
.pl-mhead { top: 0; height: 28px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border-strong); font-weight: 700; font-size: 12px; color: var(--primary-600); padding: 6px 10px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; background: #f6f9fd; }
.pl-mhead span { position: sticky; left: 270px; }
.pl-dhead { top: 28px; height: 36px; border-bottom: 1px solid var(--border); border-left: 1px solid #edf1f6; text-align: center; font-size: 10.5px; line-height: 1.3; color: var(--muted); padding-top: 3px; }
.pl-dhead b { display: block; font-size: 12px; color: var(--text); font-weight: 600; }
.pl-grid[data-mode=year] .pl-dhead { padding-top: 10px; }
.pl-grid[data-mode=year] .pl-dhead b { font-size: 9px; letter-spacing: -.4px; font-weight: 500; }
.pl-grid[data-mode=year] .pl-bar { font-size: 10px; padding: 0 3px; }
.pl-dhead.we, .pl-cell.we { background: #f3f5f9; }
.pl-dhead.hol, .pl-cell.hol { background: #fbeeee; }
.pl-dhead.today { background: var(--primary); }
.pl-dhead.today, .pl-dhead.today b { color: #fff; }
.pl-dhead.m1 { border-left-color: var(--border-strong); }
.pl-group { position: sticky; left: 0; z-index: 5; grid-column: 1; background: #e9eff7; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 6px 12px; font-weight: 700; font-size: 12px; line-height: 1.3; color: var(--primary-600); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.pl-group .badge { flex-shrink: 0; }
.pl-group-fill { background: #e9eff7; border-bottom: 1px solid var(--border); }
.pl-group svg.lucide { width: 14px; height: 14px; transition: transform .15s; }
.pl-group.closed svg.lucide { transform: rotate(-90deg); }
.pl-dept { position: sticky; left: 0; z-index: 4; grid-column: 1; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border-strong); display: grid; grid-template-columns: 1fr 30px; }
.pl-dept-name { padding: 3px 10px; font-size: 12.5px; font-weight: 500; line-height: 1.3; display: flex; align-items: center; border-right: 1px solid #edf1f6; }
.pl-dept-name small { color: var(--muted); margin-right: 5px; font-weight: 600; }
.pl-sub { display: grid; place-items: center; border-bottom: 1px solid #edf1f6; font-weight: 700; font-size: 11px; }
.pl-sub:last-child { border-bottom: 0; }
.pl-sub.S { color: var(--cat-S-text); background: var(--cat-S-bg); }
.pl-sub.F { color: var(--cat-F-text); background: var(--cat-F-bg); }
.pl-sub.O { color: var(--cat-O-text); background: var(--cat-O-bg); }
/* Stupci za vikend/praznik/danas leže ispod redova; redovi su prozirni i crtaju samo linije dana. */
.pl-cell { pointer-events: none; z-index: 0; }
.pl-cell.m1 { box-shadow: inset 1px 0 0 var(--border-strong); }
.pl-cell.today { background: rgba(42,100,173,.09); }
.pl-lane { z-index: 1; cursor: cell; border-bottom: 1px solid #edf1f6; touch-action: none;
  background-image: repeating-linear-gradient(90deg, #edf1f6 0 1px, transparent 1px var(--dw)); }
.pl-lane.last { border-bottom-color: var(--border-strong); }
.pl-lane:hover { background-color: rgba(42,100,173,.04); }
.pl-bar .rz { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.pl-bar .rz:hover { background: rgba(0,0,0,.08); }
.pl-bar { touch-action: none; user-select: none; }
.pl-bar.dim { opacity: .3; }
.pl-bar.hit { box-shadow: 0 0 0 2px var(--primary), 0 2px 6px rgba(22,36,58,.25); z-index: 3; }
.pl-bar {
  margin: 3px 1px; border-radius: 6px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px;
  padding: 0 6px; white-space: nowrap; overflow: hidden; cursor: grab; position: relative; z-index: 2; border: 1px solid; min-width: 0;
  box-shadow: 0 1px 2px rgba(22,36,58,.08); transition: box-shadow .12s, transform .12s;
}
.pl-bar:hover { box-shadow: 0 4px 12px -4px rgba(22,36,58,.35); transform: translateY(-1px); z-index: 3; }
.pl-bar span { overflow: hidden; text-overflow: ellipsis; }
.pl-bar .cnt { background: rgba(255,255,255,.65); border-radius: 4px; padding: 0 4px; font-size: 10.5px; flex-shrink: 0; }
.pl-bar.S { background: #fde9a8; border-color: #efc24c; color: #6c4800; }
.pl-bar.F { background: #b9ebd5; border-color: #63c39b; color: #0f5038; }
.pl-bar.O { background: #d9d2fa; border-color: #a597ec; color: #3b2c8f; }
.pl-bar.dragging { opacity: .35; }
.pl-bar.readonly { cursor: pointer; }
.pl-tip { position: fixed; z-index: 150; background: #16243a; color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; max-width: 320px; pointer-events: none; box-shadow: var(--shadow-lg); }
.pl-tip b { font-size: 13px; }
.pl-tip .muted { color: #9fb0c8; }

/* ---------- Potvrde ---------- */
.cert-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; margin-bottom: 8px; background: var(--surface); }
.cert-ico { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #f7d774, #e6a817); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Odjeli: dodjela aktivnosti ---------- */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.dept-list { max-height: calc(100vh - 220px); overflow-y: auto; }
.dept-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.dept-item:hover { background: var(--surface-2); }
.dept-item.on { background: var(--primary-50); color: var(--primary-600); font-weight: 600; }
.dept-item.parent { font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; cursor: default; padding-top: 14px; }
.dept-item.parent:hover { background: none; }
.dept-item.child { padding-left: 22px; }
.dept-item.inactive { opacity: .5; }

/* ---------- Prijava ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.login-art { background: radial-gradient(circle at 20% 20%, rgba(59,163,201,.35), transparent 45%), radial-gradient(circle at 80% 80%, rgba(42,100,173,.5), transparent 50%), linear-gradient(160deg, #18253d, #1f3a60 55%, #2a64ad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.login-art h2 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; font-weight: 700; letter-spacing: -.02em; max-width: 460px; }
.login-art p { color: #c4d3e8; max-width: 440px; line-height: 1.6; margin: 0; }
.login-feats { display: grid; gap: 12px; margin-top: 30px; max-width: 420px; }
.login-feats div { display: flex; gap: 12px; align-items: center; color: #dbe6f5; }
.login-feats svg.lucide { width: 18px; height: 18px; color: #7cc7e3; }
.login-side { display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 34px; }
.login-logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 26px; }
.login-logo img { width: 96px; height: 96px; object-fit: contain; }
.login-logo .t1 { font-size: 18px; font-weight: 700; }
.login-logo .t2 { font-size: 13px; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 40px; }
.pw-wrap button { position: absolute; right: 4px; top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .profile, .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--sidebar); color: #fff; position: sticky; top: 0; z-index: 50; }
  .mobile-bar .icon-btn { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
  .page { padding: 20px 16px 40px; }
  .two-col, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .planner { height: calc(100vh - 250px); }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Kartice koje korisnik slaže (nadzorna ploča, statistika) ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dash-block { min-width: 0; position: relative; display: flex; flex-direction: column; }
.dash-block.w-quarter { grid-column: span 3; }
.dash-block.w-third { grid-column: span 4; }
.dash-block.w-half { grid-column: span 6; }
.dash-block.w-full { grid-column: 1 / -1; }
.dash-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-body > .card { flex: 1; }
.dash-edit .dash-block { outline: 2px dashed var(--border-strong); outline-offset: 5px; border-radius: 12px; cursor: grab; }
.dash-edit .dash-block.is-hidden .dash-body { opacity: .35; }
.dash-edit .dash-body a, .dash-edit .dash-body button, .dash-edit .dash-body select { pointer-events: none; }
.dash-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.dash-grip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--text-2); min-width: 0; }
.dash-grip > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-grip svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.dash-btns { display: inline-flex; gap: 6px; align-items: center; }
.seg-sm button { height: 28px; padding: 0 9px; font-size: 13px; font-weight: 600; }
.dash-btns .icon-btn { width: 30px; height: 30px; }
.dash-hint { margin-right: 4px; }
.dash-block.dragging { opacity: .4; }
.dash-block.drop-before { box-shadow: -4px 0 0 var(--primary); border-radius: 12px; }
.dash-block.drop-after { box-shadow: 4px 0 0 var(--primary); border-radius: 12px; }
.dash-block.w-full.drop-before { box-shadow: 0 -4px 0 var(--primary); }
.dash-block.w-full.drop-after { box-shadow: 0 4px 0 var(--primary); }
@media (max-width: 1100px) { .dash-block.w-quarter, .dash-block.w-third { grid-column: span 6; } }
@media (max-width: 720px) { .dash-block.w-quarter, .dash-block.w-third, .dash-block.w-half { grid-column: 1 / -1; } }

/* ---------- Uvoz praktikanata ---------- */
.import-drop { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 34px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.import-drop > svg { width: 36px; height: 36px; color: var(--primary); }
.import-drop.over { border-color: var(--primary); background: var(--primary-50); }
.import-status { margin-top: 12px; text-align: center; }
.import-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.import-file svg { color: var(--green, #2f9e74); }
.import-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.import-tbl { margin: 0; font-size: 13px; }
.import-tbl th { position: sticky; top: 0; z-index: 2; text-transform: none; letter-spacing: 0; vertical-align: top; padding: 8px; }
.import-tbl td { padding: 6px 8px; white-space: nowrap; }
.import-tbl td[contenteditable] { outline: none; min-width: 60px; }
.import-tbl td[contenteditable]:focus { box-shadow: inset 0 0 0 2px var(--primary); background: #fff; }
.import-tbl td.unmapped { color: var(--muted); }
.import-tbl tr.off td:not(:first-child) { opacity: .4; }
.import-tbl tr.bad { background: #fff7f7; }
.import-tbl [data-st] { min-width: 140px; white-space: normal; }
.import-orig { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.select-sm { height: 30px; font-size: 12.5px; padding: 0 26px 0 8px; min-width: 120px; }

/* ---------- Aktivni filtri (raspored) ---------- */
.filter-btn { position: relative; color: var(--muted); }
.filter-btn.active { color: #fff; background: #e08a1e; border-color: #e08a1e; }
.filter-btn.active:hover { background: #c97810; }
.fbadge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; padding: 8px 10px; border-radius: 10px; background: #fff6e8; border: 1px solid #f3d9ad; }
.filter-chips > .sub { display: inline-flex; align-items: center; gap: 5px; color: #9a5d00; font-weight: 600; margin-right: 2px; }
.filter-chips > .sub svg { width: 14px; height: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: #fff; border: 1px solid #f0c98a; font-size: 12.5px; color: #6b4300; font-weight: 500; }
.fchip button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #9a5d00; cursor: pointer; padding: 0; }
.fchip button:hover { background: #fde3b8; }
.fchip button svg { width: 13px; height: 13px; }
.link-btn { border: 0; background: none; color: var(--primary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 6px; margin-left: 4px; }
.link-btn:hover { text-decoration: underline; }
.pl-grid > .empty { position: relative; z-index: 6; background: var(--surface); padding: 36px 16px; line-height: 1.6; }
.pl-grid > .empty > * { position: sticky; left: 16px; }

/* ---------- Tko je unio / izmijenio · koš za smeće ---------- */
.audit { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.audit svg { width: 13px; height: 13px; flex-shrink: 0; }
.modal-foot .left { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.btn-danger-ghost { color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-bg); border-color: #f2b8b8; }
.badge svg { width: 13px; height: 13px; }

/* Matična ustanova i radno vrijeme odjela */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.home-logo { height: 130px; display: grid; place-items: center; background: var(--bg, #f5f7fb); border: 1px dashed var(--border); border-radius: 10px; }
.home-logo img { max-width: 80%; max-height: 110px; object-fit: contain; }
.home-own { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.home-own a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: inherit; text-decoration: none; font-size: 13px; }
.home-own a:hover { background: var(--primary-50); }
.dept-hours { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.dept-hours svg.lucide { width: 16px; height: 16px; color: var(--primary); }
.dept-item .badge svg.lucide { width: 11px; height: 11px; margin-right: 2px; }
.dept-hint { display: flex; align-items: center; gap: 4px; min-height: 16px; }
.dept-hint svg.lucide { width: 13px; height: 13px; }

/* Procjena mentora */
.ev-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.ev-progress { display: block; width: 100%; margin: 8px 0 6px; }
.ev-section { margin-top: 14px; }
.ev-section-name { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-600); padding: 4px 0; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.ev-section-name:hover { color: var(--primary); }
.ev-section-name > span:first-of-type { flex: 1; }
.ev-chev { width: 16px; height: 16px; transition: transform .15s; flex-shrink: 0; }
.ev-section.collapsed .ev-chev { transform: rotate(-90deg); }
.ev-section.collapsed .ev-item { display: none; }
.ev-sec-count { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; color: var(--muted); }
.ev-sec-count.full { color: #1d7a4a; }
.ev-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px dashed var(--primary); background: var(--primary-50); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.ev-all .ev-scores button { border-color: var(--primary); color: var(--primary-600); }
.ev-all .ev-scores button:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: #fff; }
.ev-all .ev-clear { display: inline-flex; align-items: center; justify-content: center; }
.ev-all .ev-clear svg.lucide { width: 16px; height: 16px; }
.ev-toggle-all { text-align: right; font-size: 12.5px; color: var(--muted); margin-top: -2px; }
.ev-toggle-all .link-btn { margin: 0; }
.ev-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.ev-item:last-child { border-bottom: 0; }
.ev-name { font-size: 13.5px; }
.ev-item.done .ev-name { color: var(--text); }
.ev-scores { display: flex; gap: 5px; flex-shrink: 0; }
.ev-scores button { width: 38px; height: 34px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text-2); }
.ev-scores button[data-v="0"] { width: 46px; font-size: 12px; }
.ev-scores button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ev-scores button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ev-scores button[data-v="0"].on { background: #74839a; border-color: #74839a; }
.ev-scores button:disabled { cursor: default; }
@media (max-width: 640px) { .ev-item { flex-direction: column; align-items: flex-start; } }
.ev-avg { display: flex; align-items: center; gap: 16px; background: var(--primary-50); border-radius: 10px; padding: 12px 16px; margin: 14px 0 8px; }
.ev-avg > b { font-size: 26px; color: var(--primary-600); min-width: 64px; text-align: center; }
.ev-avg-t { font-weight: 700; }
.ev-scale { margin-bottom: 4px; font-size: 13px; }
.ev-scale summary { cursor: pointer; font-weight: 600; color: var(--primary-600); }
.ev-scale dl { margin: 6px 0 0 18px; }
.ev-scale dt { font-weight: 500; padding: 2px 0; }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.ev-row:hover { border-color: var(--primary); background: var(--primary-50); }
.ev-row > div:first-of-type { flex: 1; }
.ev-row.todo { border-style: dashed; }
.ev-ico { color: var(--primary); flex-shrink: 0; }
.ev-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.ev-pill svg.lucide { width: 13px; height: 13px; }
.ev-pill.grade { background: #e7f6ee; color: #1d7a4a; }
.ev-pill.muted { color: var(--muted); font-weight: 500; }
.ev-stats { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.crit-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.crit-row.inactive { opacity: .55; }
.ev-all .ev-scores button[data-all="0"] { width: 46px; font-size: 12px; }
/* Ustanove: vrste studija i ugovor */
.sf-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sf-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); white-space: nowrap; }
.tbl tr.tbl-group td { background: var(--surface-2); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--primary-600); padding-top: 10px; padding-bottom: 8px; }
.tbl tr.tbl-group td .sub { text-transform: none; letter-spacing: 0; }
.sf-edit { display: grid; gap: 6px; }
.sf-row { display: grid; grid-template-columns: 210px 1fr; gap: 10px; align-items: center; }
@media (max-width: 640px) { .sf-row { grid-template-columns: 1fr; } }
.inst-tbl td:first-child { min-width: 300px; }
.inst-tbl td:nth-child(5) .badge { white-space: normal; }
