/* SpawnTime – stil aplikacije. Boje, senke i poluprečnici su promenljive iz tokens.css. */
/* Osnova */
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 1.6rem; letter-spacing: -.025em; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .9rem; }
p { margin: 0 0 .75rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--chip); padding: .1rem .35rem; border-radius: 4px; }
::selection { background: var(--primary-soft-strong); color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ink { color: var(--text); }
/* Scrollbar: tanak, bez strelica, u boji ivica; u Chrome-u i Safariju preko pseudo-elemenata. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
/* Fokus tastaturom je isti prsten svuda; miš ga ne prikazuje. */
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Raspored: bočni meni levo, sadržaj centriran u ostatku ekrana */
.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 2.5rem; }
.has-sidebar .page { padding-left: var(--sidebar); }
.page .container { padding-top: .5rem; padding-bottom: 3rem; }

/* Logo: znak u pločici, pa naziv. Pločica je uvek bela jer je znak ljubičast na belom. */
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand .mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--logo-tile); border: 1px solid var(--border); box-shadow: var(--shadow); }
.brand .word b { color: var(--primary); font-weight: 700; }

/* Bočni meni */
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar); z-index: 40; display: flex; flex-direction: column; padding: 1.25rem 1rem 1rem; background: var(--sidebar-bg); border-right: 1px solid var(--border); overflow-y: auto; }
.sidebar .brand { padding: .25rem .5rem; margin-bottom: 1.5rem; }
.nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.nav a { display: flex; align-items: center; gap: .7rem; height: 2.6rem; padding: 0 .75rem; border-radius: 10px; color: var(--muted); font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--chip); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.active svg { color: var(--primary); }
.nav svg { width: 19px; height: 19px; flex: none; color: var(--muted); transition: color .15s var(--ease); }
.nav a:hover svg { color: var(--text); }
/* Podstavke (stranice admin panela): manje, uvučene, sa tačkom umesto ikonice. */
.nav a.sub { height: 2.1rem; padding-left: 1rem; font-size: .9rem; font-weight: 400; }
.nav a.sub svg { width: 12px; height: 12px; margin-right: .25rem; }
.nav-label { margin: 1.1rem .75rem .35rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.badge { margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.4rem; }
.sidebar-foot { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.userbox { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .25rem .25rem; }
.userbox .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.userbox .name { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox .role { font-size: .75rem; color: var(--muted); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--primary-soft-strong), var(--primary-soft)); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.sidebar-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sidebar-actions form { margin: 0; }
/* Prekidač teme: u svetloj se vidi mesec (pređi na tamnu), u tamnoj sunce. */
.theme-toggle, .push-toggle { color: var(--muted); }
/* Zvonce: sivo kad su obaveštenja isključena, u boji sa tačkom kad su uključena, precrtano kad ih je browser blokirao. */
.push-toggle { position: relative; }
.push-toggle svg { width: 17px; height: 17px; }
.push-toggle .bell-off, .push-toggle[data-state="denied"] .bell { display: none; }
.push-toggle[data-state="denied"] .bell-off { display: block; }
.push-toggle[data-state="denied"] { opacity: .55; cursor: not-allowed; }
.push-toggle[data-state="on"] { color: var(--primary); }
.push-toggle .dot { display: none; position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--sidebar-bg); }
.push-toggle[data-state="on"] .dot { display: block; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* Gornja traka za neprijavljene (stranica za prijavu) i za uzak ekran */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.topbar .spacer { flex: 1; }
.mobilebar, .sidebar-backdrop { display: none; }
@media (max-width: 900px) {
  .has-sidebar .page { padding-left: 0; }
  .container { padding: 0 1rem; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 .75rem; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .mobilebar .btn svg { width: 20px; height: 20px; }
  .mobilebar .brand { font-size: 1.1rem; }
  .mobilebar .brand .mark { width: 32px; height: 32px; }
  .mobilebar .brand img { height: 19px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s var(--ease); }
  .sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: var(--backdrop); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
}

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 2.5rem; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; line-height: 1; white-space: nowrap; box-shadow: var(--shadow); transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease), transform .08s var(--ease); }
.btn:hover { background: var(--subtle); border-color: var(--border-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--primary-ring); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--primary-solid); border-color: var(--primary-solid); color: #fff; box-shadow: 0 1px 2px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-sm { height: 2rem; padding: 0 .7rem; font-size: .85rem; border-radius: 8px; }
.btn-icon { width: 2rem; height: 2rem; padding: 0; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; box-shadow: none; }
.btn-group .btn:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 10px 10px 0; }
.btn-group .btn:hover { position: relative; z-index: 1; }
/* Prekidač Lista/Tabela */
.seg { display: inline-flex; background: var(--chip); border-radius: 10px; padding: 3px; }
.seg a { height: 2rem; display: inline-flex; align-items: center; padding: 0 .85rem; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .9rem; transition: background .15s var(--ease), color .15s var(--ease); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* Kartice i forme */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem; }
.table-card { padding: 0; overflow: auto; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field > span.label { font-size: .85rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea { font: inherit; padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .9; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.field textarea { min-height: 6.5rem; line-height: 1.5; resize: vertical; }
/* Ista visina za sva polja u redu: browseri polja za vreme crtaju višim od tekstualnih. */
.field input, .field select, .project-pick select, .datepick-btn { height: 2.6rem; }
.field textarea { height: auto; }
/* Safari crta svoj, niži select i ignoriše padding; zato sopstveni izgled i strelica. */
.field select, .inline-select, .project-pick select { -webkit-appearance: none; appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7084' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: .65rem; }
.field input[type=time]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.field .error { color: var(--danger); font-size: .8rem; }
.field.spaced { margin-top: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.form-actions.start { justify-content: flex-start; }
.errorlist { color: var(--danger); font-size: .85rem; margin: .5rem 0 0; padding-left: 1rem; }

/* Poruke */
.alert { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: var(--radius); margin: 1rem 0; font-size: .9rem; border: 1px solid; border-left-width: 3px; background: var(--card); border-color: var(--border); color: var(--text); }
.alert.success { background: var(--success-soft); border-color: var(--success-border); border-left-color: var(--success); color: var(--success-text); }
.alert.error { background: var(--danger-soft); border-color: var(--danger-border); border-left-color: var(--danger); color: var(--danger-text); }
.alert.warning { background: var(--warning-soft); border-color: var(--warning-border); border-left-color: var(--warning-text); color: var(--warning-text); }
.alert.info { background: var(--primary-soft); border-color: var(--info-border); border-left-color: var(--primary); color: var(--info-text); }
.alert code { background: rgba(0, 0, 0, .06); }

/* Tabele */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--subtle); white-space: nowrap; }
.table td { padding: .65rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 1.25rem; }
.table th:last-child, .table td:last-child { padding-right: 1.25rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--subtle); }
.table td.right, .table th.right { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .85rem; }
.pill.small { font-size: .72rem; padding: .05rem .45rem; }
/* Statusi: sive oznake sa značenjskim bojama */
.status { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--chip); color: var(--muted); line-height: 1.5; }
.status.error { background: var(--danger-soft); color: var(--danger-text); }
.status.exists { background: var(--primary-soft); color: var(--info-text); }
.status.skip { background: var(--warning-soft); color: var(--warning-text); }
.chip-static { display: inline-flex; gap: .35rem; align-items: center; padding: .15rem .65rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; background: var(--card); color: var(--text); }

/* Zaglavlje stranice */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 1.25rem; flex-wrap: wrap; }
.page-header .title { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.page-header .title h1 { margin: 0; }
.page-header .actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.section-heading { margin: 2rem 0 .75rem; font-size: .95rem; font-weight: 600; color: var(--text); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head form, .section-head .btn { margin: 2rem 0 .75rem; }
.inline-form { display: inline; margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 2.5rem 1rem; }
.more { text-align: center; margin: .5rem 0 2rem; }

/* Traka za brzi unos i tajmer */
.quick-bar { display: flex; flex-direction: column; gap: .85rem; padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.quick-form { margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.quick-main, .quick-meta, .timer-running { display: flex; align-items: center; gap: .6rem; }
.quick-main .field.grow { flex: 1; }
/* Opis je glavno polje: veći, bez okvira dok se ne fokusira, pa traka deluje kao jedna celina. */
.quick-main .field.grow input { height: 2.75rem; font-size: 1.02rem; border-color: transparent; background: var(--subtle); }
.quick-main .field.grow input:hover { border-color: var(--border); }
.quick-main .field.grow input:focus { background: var(--card); border-color: var(--primary); }
/* Izbor projekta u traci: prazan je "+ Projekat" u boji brenda, a izabran je obojen kao oznaka projekta u listi. */
.project-pick { position: relative; display: flex; align-items: center; min-width: 240px; }
.project-pick::before { content: ""; position: absolute; left: .9rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--entry-color, var(--primary)); pointer-events: none; }
.project-pick.unset::before { content: "+"; width: auto; height: auto; left: .85rem; background: none; color: var(--primary); font-weight: 600; font-size: 1.1rem; line-height: 1; }
.project-pick select { width: 100%; height: 2.75rem; font: inherit; font-weight: 500; padding: 0 2.2rem 0 2rem; border: 1px solid transparent; border-radius: 10px; cursor: pointer; background-color: color-mix(in srgb, var(--entry-color, var(--primary)) 12%, var(--card)); color: color-mix(in srgb, var(--entry-color, var(--primary)) 60%, var(--text)); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.project-pick.unset select { background-color: var(--primary-soft); color: var(--primary); }
.project-pick select:hover { border-color: color-mix(in srgb, var(--entry-color, var(--primary)) 45%, transparent); }
.project-pick select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.project-pick option { color: var(--text); background: var(--card); font-weight: 400; }
.quick-meta { flex-wrap: wrap; padding-top: .75rem; border-top: 1px solid var(--border); }
.quick-meta .time-range { flex-direction: row; align-items: center; gap: .4rem; }
.quick-meta .time-range input { width: auto; font-variant-numeric: tabular-nums; }
.quick-duration { margin-left: auto; min-width: 4ch; text-align: right; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.quick-meta .btn-primary { order: 2; min-width: 6.5rem; }
.quick-timer { order: 3; }
.timer-running { padding: .25rem 0 .9rem; border-bottom: 1px solid var(--border); }
.timer-info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.timer-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-clock { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; color: var(--primary); letter-spacing: -.02em; min-width: 7ch; text-align: right; }
.timer-running form { margin: 0; }
.pulse { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--entry-color, var(--primary)); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--entry-color, var(--primary)) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.copy-day { margin: -.35rem 0 -.25rem; align-self: flex-start; }
.copy-day .btn { padding-left: 0; }
.reminder { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.reminder .btn { height: 1.9rem; }
.reminder-previous { background: var(--card); border-color: var(--border); border-left-color: var(--border-strong); color: var(--muted); margin-top: -.5rem; }
@media (max-width: 700px) { .quick-main { flex-wrap: wrap; } .quick-main .field, .project-pick { flex: 1 1 100%; min-width: 0; } .quick-meta .btn-primary { flex: 1; } }

/* Lista unosa: nedelja > dan > jedan red po unosu */
.week-section { margin-bottom: 2rem; scroll-margin-top: 1rem; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 .25rem .6rem; }
.week-head h3 { margin: 0; display: flex; align-items: baseline; gap: .6rem; font-size: 1rem; }
.week-head h3 .muted { font-weight: 400; font-size: .85rem; }
.week-head [data-week-total] { font-variant-numeric: tabular-nums; }
.day-card { padding: 0; margin-bottom: .75rem; overflow: hidden; border-radius: var(--radius); }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .6rem .55rem 1.1rem; background: var(--subtle); border-bottom: 1px solid var(--border); }
.day-head .name { font-weight: 600; text-transform: capitalize; }
.day-head .date { color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.day-card.today .day-head .name { color: var(--primary); }
.day-card.today { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.entry-row { display: grid; align-items: center; column-gap: 1rem; }
/* Zbir dana pa dugmad (odsustvo, novi unos); zbir je poravnat sa kolonom trajanja u redovima. */
.day-head .side { display: flex; align-items: center; gap: .1rem; }
.day-head .total { min-width: 3.5rem; margin-right: .9rem; }
.day-head .side .btn { font-size: 1.15rem; }
.day-head .side .btn svg { width: 16px; height: 16px; }
.day-head .total, .entry-row .dur { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.entry-row { grid-template-columns: minmax(0, 1fr) auto 3.5rem auto; padding: .55rem .6rem .55rem 1.1rem; border-top: 1px solid var(--border); transition: background .15s var(--ease); }
.entry-row:first-of-type, .day-head + .entry-row { border-top: 0; }
.entry-row:hover { background: var(--subtle); }
.entry-row.running { background: var(--primary-soft); }
.entry-row.saved { background: var(--success-soft); }
.entry-row .what { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.entry-row .desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-row .proj { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .12rem .65rem .12rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 500; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--entry-color, var(--primary)) 12%, transparent); color: color-mix(in srgb, var(--entry-color, var(--primary)) 60%, var(--text)); }
.entry-row .proj::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--entry-color, var(--primary)); }
.entry-row .proj .client { font-weight: 400; opacity: .75; margin-left: -.15rem; }
.entry-row .when { display: flex; align-items: center; gap: .15rem; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-row .tools { display: flex; justify-content: flex-end; gap: .1rem; min-width: 2rem; }
.entry-row .tools .btn-icon { width: 1.9rem; height: 1.9rem; }
.entry-row .tools svg { width: 15px; height: 15px; }
.entry-row .bill { font-weight: 700; font-size: .8rem; color: var(--faint); }
.entry-row .bill[aria-pressed=true] { color: var(--primary); }
/* Alati se vide na prelazak mišem ili fokus; na ekranu na dodir su uvek vidljivi, a naplativost ostaje vidljiva uvek. */
@media (hover: hover) {
  .entry-row .tools .btn-icon:not(.bill) { opacity: 0; transition: opacity .15s var(--ease); }
  .entry-row:hover .tools .btn-icon, .entry-row:focus-within .tools .btn-icon { opacity: 1; }
}
/* Izmena na licu mesta: polja izgledaju kao tekst dok se ne pređe mišem ili ne klikne. */
.entry-row .inline { font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: .2rem .45rem; margin: -.2rem 0; min-width: 0; font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease), background .15s var(--ease); }
.entry-row .inline:hover { border-color: var(--border); background: var(--card); }
.entry-row .inline:focus { outline: none; border-color: var(--primary); background: var(--card); box-shadow: 0 0 0 3px var(--primary-ring); }
.entry-row input.desc { flex: 1; margin-left: -.45rem; text-overflow: ellipsis; }
.entry-row input.desc::placeholder { color: var(--muted); opacity: 1; }
.entry-row input[type=time]::-webkit-calendar-picker-indicator { display: none; }
.entry-row button.proj { border: 0; font-family: inherit; cursor: pointer; transition: box-shadow .15s var(--ease); }
.entry-row button.proj:hover, .entry-row button.proj:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--entry-color) 35%, transparent); }
.entry-row .proj[hidden] { display: none; }
.inline-select { flex: none; font: inherit; font-size: .85rem; height: 1.9rem; padding: 0 1.8rem 0 .6rem; background-position: right .55rem center; border: 1px solid var(--primary); border-radius: 999px; background-color: var(--card); color: var(--text); max-width: 16rem; box-shadow: 0 0 0 3px var(--primary-ring); }
.entry-row .row-error { grid-column: 1 / -1; color: var(--danger); font-size: .8rem; padding-top: .2rem; }
@media (max-width: 900px) { .form-grid.cols-4 { grid-template-columns: 1fr 1fr; } .week-section { scroll-margin-top: 72px; } }
@media (max-width: 700px) {
  .entry-row { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: .3rem; }
  .entry-row .what { grid-column: 1 / -1; flex-wrap: wrap; }
  .entry-row .desc { white-space: normal; }
  .entry-row input.desc { flex: 1 1 100%; }
  .entry-row[data-save-url] .when { margin-left: -.45rem; }
  .day-head .total { min-width: 0; margin-right: .4rem; }
}

/* Tabela projekat × dan */
.timesheet-wrap { padding: 0; overflow-x: auto; border-radius: var(--radius); }
.timesheet { width: 100%; border-collapse: collapse; font-size: .9rem; }
.timesheet th, .timesheet td { padding: .6rem .6rem; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.timesheet th { font-weight: 500; color: var(--muted); font-size: .78rem; background: var(--subtle); }
.timesheet th .dname { display: block; text-transform: capitalize; color: var(--text); font-weight: 600; }
.timesheet th .ddate { font-size: .74rem; }
.timesheet .proj { text-align: left; min-width: 200px; padding-left: 1.1rem; }
.timesheet .sum { font-weight: 700; color: var(--primary); text-align: right; padding-right: 1.1rem; font-variant-numeric: tabular-nums; }
.timesheet .today { background: var(--primary-soft); }
.timesheet th.today .dname, .timesheet th.today .ddate { color: var(--primary); }
.timesheet tfoot td { font-weight: 600; border-bottom: 0; background: var(--subtle); font-variant-numeric: tabular-nums; }
.timesheet tfoot td.today { background: var(--primary-soft-strong); }
.timesheet tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.cell-btn { width: 100%; min-width: 3.5rem; height: 2rem; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 0 .4rem; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.cell-btn:hover { border-color: var(--primary); background: var(--card); color: var(--primary); }
.cell-btn.add { color: var(--faint); font-weight: 400; }
.cell-btn.add:hover { color: var(--primary); }

/* Birač datuma: dugme u stilu polja i kalendar koji se otvara ispod njega */
.datepick { position: relative; }
.datepick-btn { display: inline-flex; align-items: center; gap: .55rem; width: 100%; font: inherit; font-variant-numeric: tabular-nums; line-height: 1.5; padding: 0 .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.datepick-btn svg { flex: none; color: var(--muted); }
.datepick-btn:hover { border-color: var(--border-strong); }
.datepick-btn:focus-visible, .datepick-btn[aria-expanded=true] { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.datepick-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 18.5rem; padding: .85rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .14s var(--ease); }
.datepick-pop[hidden] { display: none; }
.datepick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.datepick-head strong { font-weight: 600; text-transform: capitalize; font-size: .95rem; }
.datepick-head .btn { font-size: 1.2rem; }
.datepick-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.datepick-grid span { text-align: center; font-size: .68rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: .35rem 0; }
.datepick-grid button { aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--text); cursor: pointer; padding: 0; transition: background .12s var(--ease), color .12s var(--ease); }
.datepick-grid button:hover { background: var(--primary-soft); color: var(--primary); }
.datepick-grid button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.datepick-grid button.other { color: var(--faint); }
.datepick-grid button.today { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); font-weight: 600; }
.datepick-grid button.selected, .datepick-grid button.selected:hover { background: var(--primary-solid); color: #fff; font-weight: 600; box-shadow: 0 2px 8px var(--primary-glow); }
.datepick-foot { display: flex; justify-content: center; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); }

/* Modali sa zamagljenom pozadinom */
dialog { border: 1px solid var(--border); border-radius: 18px; padding: 0; overflow: visible; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 2rem)); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog[open] { animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-body { padding: 1.75rem; }
.dialog-body h2 { margin-bottom: 1.25rem; }
.dialog-body textarea { min-height: 9rem; }

/* Izveštaj i kartice sa zbirovima */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.5rem; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat .label { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat:first-child .value { color: var(--primary); }
.stat .value .of { font-size: 1rem; font-weight: 500; margin-left: .3rem; letter-spacing: 0; }
.stat .value.warn { color: var(--danger); }
.stat .rows { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; font-size: .9rem; }
.stat .rows div { display: flex; justify-content: space-between; gap: .75rem; }
.stat .rows .nums { display: flex; gap: .6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat .rows .nums .muted { min-width: 7.5rem; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; display: inline-flex; align-items: center; height: 2rem; padding: 0 .8rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; cursor: pointer; background: var(--card); user-select: none; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--primary); }
.chip:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 500; }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--primary-ring); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }
/* Dok se izveštaj osvežava posle promene filtera, stari brojevi su zasivljeni. */
[data-report-results] { transition: opacity .15s; }
[data-report-results].stale { opacity: .45; }

/* Prijava */
.login-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 400px; padding: 2.25rem 2rem; text-align: center; border-radius: 20px; }
.login-card .brand { flex-direction: column; gap: .9rem; font-size: 1.5rem; margin-bottom: .5rem; }
.login-card .brand .mark { width: 64px; height: 64px; border-radius: 18px; }
.login-card .brand img { height: 40px; }
.login-card h1 { font-size: 1.25rem; margin: .75rem 0 .25rem; }
.login-card .lead { color: var(--muted); margin-bottom: 1.5rem; }
.login-card form { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.login-card .btn-primary { width: 100%; height: 2.75rem; margin-top: .25rem; }

/* Uvoz iz CSV-a */
.field input[type=file] { padding: .3rem; height: auto; }
.field input[type=file]::file-selector-button { font: inherit; font-weight: 500; font-size: .9rem; margin-right: .75rem; height: 1.9rem; padding: 0 .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--subtle); color: var(--text); cursor: pointer; }
.import-intro { margin: 0 0 1rem; }
.import-help { margin-top: 1rem; }
.import-help .table { margin: .5rem 0; }
.import-help .table th:first-child, .import-help .table td:first-child { padding-left: .9rem; }
.import-notes { margin: .75rem 0 0; padding-left: 1.1rem; font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.import-summary { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.import-summary .label { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.import-summary .value { font-size: 1.6rem; font-weight: 700; color: var(--primary); letter-spacing: -.03em; }
.import-summary .counts { display: flex; gap: .4rem; flex-wrap: wrap; }
.import-actions { margin: 0 0 0 auto; display: flex; gap: .5rem; }
.import-users { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1rem; }
.import-users .label { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-right: .25rem; }
.import-heading { margin: 1.75rem 0 .6rem; font-size: .95rem; }

/* Tim: pregled za admina */
.grid-table th, .grid-table td { padding: .5rem .45rem; }
.grid-table .center { text-align: center; font-variant-numeric: tabular-nums; }
.grid-table th .dname { display: block; text-transform: capitalize; color: var(--text); font-weight: 600; letter-spacing: 0; }
.grid-table th .ddate { font-size: .72rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.grid-table td.logged { color: var(--text); font-weight: 600; }
.grid-table td.missing { background: var(--danger-soft); color: var(--danger-text); font-weight: 700; }
.grid-table td.holiday { background: var(--chip); color: var(--muted); font-weight: 600; }
.grid-table th.holiday .dname { color: var(--muted); }
.grid-table td.absent { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.team-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.bars { display: flex; flex-direction: column; gap: .8rem; }
.bar-label { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; margin-bottom: .3rem; }
.bar-label strong { font-variant-numeric: tabular-nums; }
.bar { height: .5rem; border-radius: 999px; background: var(--chip); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary-solid), var(--primary)); }
.columns-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; height: 170px; align-items: end; }
.column { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; }
.col-bar { display: block; width: 100%; max-width: 2.6rem; min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--primary-solid); opacity: .85; transition: opacity .15s var(--ease); }
.column:hover .col-bar { opacity: 1; }
.col-value { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.col-label { font-size: .72rem; color: var(--muted); }
@media (max-width: 900px) { .team-columns { grid-template-columns: 1fr; } .team-stats { grid-template-columns: 1fr; } }

/* Praksa: levo moja praksa i praktikanti, desno vodič; ispod tabla zadataka */
.eyebrow { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.practice-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.practice-main .section-heading { margin: 0 0 .75rem; }
.practice-hero { display: flex; flex-direction: column; gap: 1.1rem; }
.practice-hero .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.practice-hero .period { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin-top: .15rem; }
.person { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.person .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.person .who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .status { margin-left: auto; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mini-stat { padding: .65rem .9rem; border-radius: var(--radius); background: var(--subtle); border: 1px solid var(--border); }
.mini-stat .n { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mini-stat .l { color: var(--muted); font-size: .82rem; }
/* Sledeći korak: jedan zadatak i jedno dugme, da se ne traži po tabli. */
.next-up { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--info-border); }
.next-up .what { flex: 1; min-width: 12rem; }
.next-up .what a { color: var(--text); }
.mentee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .75rem; }
.mentee { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; border-radius: var(--radius); }
.mentee-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; margin: 0; }
.mentee-facts div:last-child { grid-column: 1 / -1; }
.mentee-facts dt { color: var(--muted); font-size: .76rem; margin-bottom: .15rem; }
.mentee-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mentee-facts dd .muted { font-weight: 400; }
.mentee-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--border); }

/* Vodič: spisak stranica sa oznakom pročitanog i stranica sa tekstom */
.guide-list { padding: 1rem; position: sticky; top: 1rem; }
.guide-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: 0 .35rem; margin-bottom: .5rem; }
.guide-list-head h3 { margin: 0; }
.guide-nav { display: flex; flex-direction: column; gap: .15rem; }
.guide-nav a { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 8px; color: var(--muted); font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); }
.guide-nav a:hover { background: var(--chip); color: var(--text); text-decoration: none; }
.guide-nav a.active { background: var(--primary-soft); color: var(--primary); }
.guide-num { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; }
.guide-nav a.active .guide-num { background: var(--card); }
/* Pročitana stranica: broj postaje kvačica. Pamti se u browseru, bez naloga na serveru. */
.guide-nav a.read .guide-num { background: var(--success-soft); color: var(--success-text); font-size: 0; }
.guide-nav a.read .guide-num::after { content: "\2713"; font-size: .8rem; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.guide-layout > .guide-nav { padding: .6rem; position: sticky; top: 1rem; }
.guide { padding: 2rem 2.25rem; line-height: 1.7; max-width: 52rem; }
.guide h1 { font-size: 1.6rem; margin: 0 0 1rem; }
.guide h2 { font-size: 1.15rem; margin: 1.9rem 0 .6rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.guide h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.guide p { margin: 0 0 .9rem; }
.guide ul, .guide ol { margin: 0 0 .9rem; padding-left: 1.4rem; }
.guide li { margin-bottom: .3rem; }
.guide a { text-decoration: underline; text-underline-offset: 2px; }
.guide table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.1rem; font-size: .92rem; line-height: 1.45; }
.guide th, .guide td { padding: .5rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.guide th { background: var(--subtle); font-weight: 600; white-space: nowrap; }
.guide-pager { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.guide-pager a { text-decoration: none; }
.guide-foot { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--border); }
@media (max-width: 1100px) { .practice-layout { grid-template-columns: 1fr; } .guide-list { position: static; } }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .guide-layout > .guide-nav { position: static; } .guide { padding: 1.25rem; } .mini-stats { gap: .5rem; } }

/* Zadaci na praksi: tabla po stanjima */
.board-hint { margin: -.5rem 0 1rem; }
.task-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.task-column { background: var(--chip); border-radius: var(--radius); padding: .5rem; display: flex; flex-direction: column; gap: .5rem; min-height: 6rem; }
.task-column-head { display: flex; align-items: center; justify-content: space-between; padding: .25rem .35rem; }
.task-card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: .75rem .85rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.task-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.task-card.overdue { border-left: 3px solid var(--danger); }
.task-title { color: var(--text); font-weight: 500; line-height: 1.35; }
.task-title:hover { text-decoration: none; color: var(--primary); }
/* Naslov je razvučen preko cele kartice, pa klik bilo gde otvara zadatak; dugmad stoje iznad njega. */
.task-title::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.task-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .78rem; }
.task-steps { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.task-card .task-steps { position: relative; z-index: 1; margin-top: .2rem; }
.task-empty { text-align: center; padding: .9rem .5rem; border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--muted); font-size: .82rem; }
.task-status.assigned { background: var(--card); color: var(--muted); border: 1px solid var(--border); }
.task-status.in_progress { background: var(--primary-soft); color: var(--primary); }
.task-status.review { background: var(--warning-soft); color: var(--warning-text); }
.task-status.done { background: var(--success-soft); color: var(--success-text); }
.due-overdue { color: var(--danger); font-weight: 600; }

/* Zadatak: tok stanja, sledeći korak, opis i razgovor; sa strane činjenice */
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.task-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.task-flow { list-style: none; display: flex; gap: .35rem; padding: 0; margin: 0 0 1rem; counter-reset: korak; }
.task-flow li { flex: 1; display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .5rem .7rem; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; counter-increment: korak; }
.task-flow li::before { content: counter(korak); flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card); font-size: .72rem; }
.task-flow li.done { background: var(--success-soft); color: var(--success-text); }
.task-flow li.done::before { content: "\2713"; }
.task-flow li.current { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--info-border); }
.task-next { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .8rem 1rem; margin-bottom: 1.25rem; border-radius: var(--radius); background: var(--subtle); border: 1px solid var(--border); }
.task-next .hint { flex: 1; min-width: 14rem; color: var(--muted); font-size: .9rem; }
.task-description.guide { padding: 0; max-width: none; box-shadow: none; border: 0; background: transparent; }
.task-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.task-facts { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.task-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.task-facts dt { color: var(--muted); font-size: .85rem; }
.task-facts dd { margin: 0; text-align: right; font-weight: 500; }
.task-side-block { padding-top: 1rem; border-top: 1px solid var(--border); }
.task-side-block .eyebrow { margin-bottom: .5rem; }
.task-comments h3 { margin-bottom: .9rem; }
.comment { display: flex; gap: .65rem; margin-bottom: .75rem; }
.comment .avatar { width: 30px; height: 30px; font-size: .78rem; }
.comment-text { flex: 1; min-width: 0; padding: .6rem .85rem; border-radius: 4px 12px 12px 12px; background: var(--subtle); border: 1px solid var(--border); }
.comment.mine .comment-text { background: var(--primary-soft); border-color: var(--info-border); }
.comment-head { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .15rem; font-size: .88rem; }
.comment-body { line-height: 1.55; overflow-wrap: anywhere; }
.comment-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.comment-form .form-actions { margin-top: .5rem; }
.task-form { max-width: 52rem; }
.task-form .form-grid { gap: 1rem; }
@media (max-width: 1100px) { .task-board { grid-template-columns: 1fr 1fr; } .task-layout { grid-template-columns: 1fr; } .task-side { position: static; } }
@media (max-width: 700px) { .task-board { grid-template-columns: 1fr; } .task-flow { flex-wrap: wrap; } .task-flow li { flex: 1 1 40%; } }

/* Instalirana aplikacija na laptopu sa sopstvenom naslovnom trakom (window-controls-overlay):
   sistemska dugmad za prozor stoje gore desno, pa se sadržaj spušta ispod njih, a gornja traka se prevlači. */
.titlebar-drag { display: none; }
@media (display-mode: window-controls-overlay) {
  .titlebar-drag { display: block; position: fixed; z-index: 50; left: env(titlebar-area-x, 0); top: env(titlebar-area-y, 0); width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, 0); -webkit-app-region: drag; app-region: drag; }
  .sidebar { padding-top: calc(env(titlebar-area-height, 0px) + .5rem); }
  .page .container { padding-top: env(titlebar-area-height, 0px); }
  .sidebar .brand, .sidebar .nav, .sidebar-foot, .page-header .actions, .btn, input, select, a { -webkit-app-region: no-drag; app-region: no-drag; }
}


/* Odsustva u listi i tabeli: kartica ima samo opis i dugme za brisanje, pa i na telefonu staje u jedan red. */
.absence-row { background: var(--chip); grid-template-columns: minmax(0, 1fr) auto; }
.absence-row .what { gap: .75rem; grid-column: auto; }
.status.absence { background: var(--primary-soft); color: var(--primary); }
.timesheet th.absent .ddate { color: var(--primary); }
